text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
package works best in general? I've never encountered any big problems with `listings`, though getting it to do Exactly What I Want is sometimes tricky (it's LaTeX; to expect anything else would be folly). Edit (to address your edit): intelligent page breaking might be problematic; it's certainly beyond my abilities. ...
[ 0.38380366563796997, -0.14487086236476898, 0.1304519921541214, -0.05367155373096466, -0.13583295047283173, -0.20539064705371857, 0.19515866041183472, -0.2427579164505005, -0.1667836755514145, -0.5127326250076294, -0.26613104343414307, 0.6361517906188965, -0.40885573625564575, -0.2589235007...
a LaTeX-specific list (`comp.text.tex` on Usenet is a great place to try), but page breaking in TeX has never been as good as line breaking, and so I wouldn't hold out too much hope, unfortunately.
[ 0.2023812085390091, -0.06443410366773605, 0.0803782269358635, 0.10613831132650375, -0.05882510915398598, -0.337600976228714, 0.30492547154426575, 0.271528422832489, -0.18774694204330444, -0.1307034194469452, -0.002743346383795142, 0.58098304271698, -0.18481026589870453, 0.01178725250065326...
I'm implemented a solution which is constituted by a .NET back-end application based on ASP.NET: since the team that I'm considering to build should be composed of me and one or two front-end developers working in PHP. A good side effect of this architecture is that PHP is a fast server-side scripting engine which req...
[ 0.40592899918556213, 0.1894632875919342, 0.45235374569892883, 0.03662346675992012, -0.182261660695076, -0.13972657918930054, 0.09247590601444244, -0.11286025494337082, -0.12823176383972168, -0.6640750169754028, 0.07288454473018646, 0.3507714569568634, -0.15830974280834198, -0.0344596318900...
authentication system and has some lack of performances in the serialization/deserialization between the object notation and the XML representation. Has anyone any consideration or alternative solution? Alex, I must say I haven't read the article and please don't take this the wrong way, but I think the best way to le...
[ 0.17594575881958008, 0.3434159755706787, 0.24500048160552979, 0.19776664674282074, -0.022966129705309868, -0.6369560360908508, 0.3542134761810303, -0.14411284029483795, 0.04890024662017822, -0.30801641941070557, 0.2931445837020874, 0.330837219953537, -0.01952267251908779, -0.45645070075988...
creating this framework is to learn, I think you can benefit from a code review. And what better way to get a code review than by inviting other people to join you in your "quest". This way you should also have the chance to challenge the others code and maybe ask questions to find out why they write code a certain wa...
[ 0.744104266166687, 0.14061011373996735, 0.10904594510793686, 0.4640010893344879, -0.1653929352760315, -0.45577871799468994, 0.22871240973472595, 0.17649520933628082, -0.11599943041801453, -0.6123140454292297, 0.2607214152812958, 0.571118175983429, 0.0716879591345787, 0.13538233935832977, ...
I used to use this when I wanted to trigger errors in PHP, coming from a PHP4 background. Note I had my own `set_error_handler()` for handling these errors. ``` if ($error) { trigger_error('Sorry, error has occured'); } ``` I can't remember where, but sometime ago someone told me I should be 'using exceptions'. ...
[ 0.08669418841600418, 0.4390294551849365, 0.018233656883239746, -0.15148301422595978, -0.1289667934179306, -0.07611499726772308, 0.5064394474029541, -0.06281768530607224, -0.4594559371471405, -0.498080313205719, 0.27501416206359863, 0.44793176651000977, -0.355304479598999, -0.07212319970130...
way of doing things, and if so, what is the best way to handle errors in PHP5? Yes, you may want to start looking into the PHP 5 exception model. Remember though that just because something is new doesn't mean that you must adopt it. Only adopt those features that you need and make sense in your domain. That being sai...
[ 0.6145772337913513, 0.10946595668792725, -0.09989775717258453, 0.12452587485313416, -0.1981586366891861, -0.3387022316455841, 0.7094784379005432, -0.07410917431116104, -0.4106636345386505, -0.5371962785720825, 0.16426116228103638, 0.533632218837738, 0.1310177892446518, -0.08647559583187103...
has an exception model similar > to that of other programming > languages. An exception can be thrown, > and caught ("catched") within PHP. > Code may be surrounded in a try block, > to facilitate the catching of > potential exceptions. Each try must > have at least one corresponding catch > block. Multiple cat...
[ 0.16620004177093506, -0.18627093732357025, -0.11329915374517441, 0.27542468905448914, -0.3494035601615906, -0.23876653611660004, 0.4352811574935913, -0.285845011472702, -0.05737210810184479, -0.39527538418769836, -0.22118046879768372, -0.11973032355308533, -0.25240954756736755, -0.09985296...
catch block defined in sequence. > Exceptions can be thrown (or > re-thrown) within a catch block. I would also encourage you to read [What Is an Exception?](http://java.sun.com/docs/books/tutorial/essential/exceptions/definition.html) (Note this is a Java tutorial but the concepts are universal) > When an error oc...
[ 0.28935351967811584, -0.050965566188097, -0.20412421226501465, 0.121333047747612, -0.303240567445755, -0.3146042227745056, 0.18563388288021088, -0.1862935870885849, -0.22892777621746063, -0.27852141857147217, -0.29131773114204407, -0.12927965819835663, -0.3831745684146881, 0.06227540224790...
order to implement a global exception handler (basically in order to establish a default exception handler that will handle previously unhandled exceptions) you will want to us the [`set_exception_handler`](http://www.php.net/set_exception_handler) function.
[ 0.1700911670923233, -0.20831100642681122, 0.103852778673172, 0.13790248334407806, 0.06603901833295822, -0.43090173602104187, -0.01076420582830906, 0.06061306968331337, -0.31164833903312683, -0.38452252745628357, -0.16953909397125244, 0.2993175685405731, -0.4335140287876129, -0.156564548611...
I can't really see a big difference other than signtool is newer and requires different file formats for your digital certificate? They both accomplish the same thing -- code signing. As you pointed out, the principal difference is that `signcode` requires the private key and software publisher certificate to be in two...
[ 0.7964165806770325, 0.16788533329963684, 0.5820375680923462, 0.07521812617778778, 0.22896376252174377, -0.4725126624107361, -0.10712111741304398, -0.47172510623931885, -0.17138278484344482, -0.6230230927467346, -0.02429838292300701, 0.33057254552841187, 0.14441971480846405, -0.208843678236...
i would like to return two record sets from a simple database table with one Linq2Sql query. I know how to do it if this was using Linq2Sql calling a stored procedure, but I don't want to use a stored procedure. ### Is it possible to do it? I've [found an article here](http://tonesdotnetblog.wordpress.com/2008/07/23/...
[ 0.1846417635679245, -0.19330082833766937, 0.09183536469936371, 0.16789424419403076, 0.33251118659973145, -0.2165588140487671, 0.3323223292827606, -0.1292261779308319, -0.4372888207435608, -0.5060694217681885, 0.07646745443344116, 0.40687522292137146, -0.13749650120735168, -0.15525622665882...
stored procedures and still using Linq2Sql) ? Wish [Matt Warren](http://blogs.msdn.com/mattwar/) was here to answer this :) ### EDIT I'm not asking about how to lazy-load / eager load (and using DataLoadOptions). That's a different concept. Potentially you may do this with Multiple Active Result Sets (MARS) which I ...
[ 0.12185527384281158, 0.10116002708673477, 0.3794730007648468, 0.3763485550880432, 0.24550968408584595, -0.06536772102117538, 0.18122094869613647, -0.005326735787093639, -0.7105132341384888, -0.36067983508110046, -0.11412587761878967, 0.44026264548301697, -0.3377503454685211, -0.03842866793...
here until .NET 4.0! Lastly I understand you say you do not wish to use Stored Procedures, but if you do, I found a really simple guide [here](http://blogs.msdn.com/swiss_dpe_team/archive/2008/02/04/linq-to-sql-returning-multiple-result-sets.aspx) and [here](http://www.thinqlinq.com/default/Using-LINQ-to-SQL-to-return...
[ 0.3216414153575897, -0.22438378632068634, 0.6196774840354919, 0.10314017534255981, 0.0331612303853035, -0.704923689365387, 0.32177039980888367, 0.18655534088611603, -0.3316994607448578, -0.623639702796936, -0.11359846591949463, 0.4472626745700836, -0.12805064022541046, -0.21332326531410217...
I noticed this semi weirdish-behavior in one of my projects using Scheme and lists. I managed to isolate the behavior into a single section. The code is: ``` (define x (list 1 2 3)) (define y (list 4 5)) (define z (cons (car x) (cdr y))) (define w (append y z)) (define v (cons (cdr x) (cdr y))) (set-car! x 6) (set-car...
[ 0.2926701307296753, 0.2818908393383026, 0.38761961460113525, 0.24573104083538055, 0.0784880742430687, -0.07910995185375214, -0.03884432837367058, 0.09851983189582825, 0.09745430201292038, -0.1767551451921463, -0.07146988809108734, 0.23132897913455963, -0.24526983499526978, 0.47330704331398...
is really weird and I'm kinda confused. 2. If `car`/`cdr` does not return references/pointers then how is the final `set-cdr!` manipulating the list `v`? Any ideas? It's a simple fix, but I'm more curious as to why the weirdness with the variables is going on. Okay, let's step through your program line by line. I'm al...
[ 0.5225700736045837, 0.17612355947494507, 0.37031424045562744, 0.3130074143409729, 0.039917733520269394, -0.15379713475704193, 0.016028253361582756, 0.23516927659511566, -0.1543104648590088, -0.36367860436439514, 0.02741370163857937, 0.5566943883895874, -0.2570778727531433, 0.21395637094974...
(1 . #2), #2 = (2 . #3), #3 = (3 . ()) (define y (list 4 5)) ; => #4 = (4 . #5), #5 = (5 . ()) (define z (cons (car x) (cdr y))) ; => #6 = (1 . #5) (define w (append y z)) ; => #7 = (4 . #8), #8 = (5 . #6) (define v (cons (cdr x) (cdr y))) ; => #9 = (#2 .
[ 0.38499486446380615, 0.16664792597293854, 0.33604446053504944, -0.1376265436410904, -0.08963429927825928, 0.3932720720767975, 0.0959974005818367, -0.40037959814071655, 0.011684571392834187, -0.25055134296417236, -0.4038664996623993, 0.8743435740470886, -0.2191130369901657, 0.32990339398384...
#5) (set-car! x 6) ; => #1 = (6 . #2) (set-car! y 7) ; => #4 = (7 . #5) (set-cdr! (cdr x) (list 8)) ; => #2 = (2 . #10), #10 = (8 . ()) ``` Now, let's look at your values (for each reference, use the last assigned value): ``` x
[ 0.46192190051078796, 0.3170657753944397, 0.707288920879364, -0.09851162880659103, 0.1692471206188202, 0.009534083306789398, 0.011598770506680012, -0.5572815537452698, -0.10261563956737518, -0.2128056138753891, -0.28024983406066895, 0.7263759970664978, -0.3205201029777527, 0.201699137687683...
; #1 => (6 . #2) => (6 . (2 . #10)) => (6 2 8) y ; #4 => (7 . #5) => (7 5) z ; #6 => (1 . #5) => (1 5) w ; #7 => (4 . #8) => (4 . (5 . #6)) => (4 . (5 . (1 . #5))) => (4 5 1 5) v ; #9 => (#2 . #5) => ((2 . #10) 5) => ((2 8) 5) ``` --- Edit: I'm adding a diagram to explain my answer, since you can't have diag...
[ 0.24552558362483978, 0.20109914243221283, 0.6390426754951477, 0.22539862990379333, -0.13287660479545593, 0.2508627772331238, 0.300899475812912, -0.4968613088130951, -0.1900811344385147, -0.6725791096687317, -0.289751261472702, 0.1422756463289261, -0.3353174328804016, 0.20552092790603638, ...
have time to make a diagram showing the values above, but this hopefully explains a few things. ![Expression tree](https://i.stack.imgur.com/YoHf6.png) Each pair has two "slots", `car` and `cdr`, represented as the left and right boxes in the diagram above. Each of these slots, as you see, has three possible things: ...
[ 0.5362289547920227, 0.2164946347475052, -0.06342655420303345, 0.25476130843162537, 0.1328325867652893, 0.18330934643745422, -0.11505734175443649, -0.25947338342666626, -0.18545520305633545, -0.6011242866516113, -0.1097964346408844, 0.10507810860872269, -0.3127123713493347, 0.16618882119655...
the `#` items is an arrow, each of the non-`#` numbers is an atom, and each of the `()` is a black box. So, in the line ``` (define v (cons (cdr x) (cdr y))) ``` you are creating a pair, where the left-hand slot has the same contents as the right-hand slot of `x` (i.e., an arrow going to pair 2), and the right-hand ...
[ 0.11424330621957779, 0.14102257788181305, 0.12608157098293304, 0.020434442907571793, -0.03723234310746193, 0.1996632218360901, 0.06367219984531403, -0.4418661594390869, -0.042472388595342636, -0.5222929120063782, -0.419270396232605, 0.05686487630009651, -0.6697218418121338, 0.1433998793363...
Does anyone know of a way to execute a stored procedure from within a stored procudure using some of the params passed in from the original procedure. i.e. if i pass in params @id, @event date, @ log into sproc 1 then sproc 1 will do it's own stuff and pass in @log and @event\_date to sproc 2. Thanks! Just execute th...
[ 0.2112758457660675, 0.1293027549982071, 0.5878912806510925, 0.1511160433292389, -0.019909288734197617, -0.09756706655025482, 0.13577865064144135, -0.3483308255672455, -0.5025779604911804, -0.3068773150444031, -0.035805948078632355, 0.39341655373573303, -0.12573392689228058, -0.078651227056...
Is it possible to use a relative path to an SQLite database file in the context.xml file of a Java web application? At present, I have: ``` <?xml version="1.0" encoding="UTF-8"?> <Context path="/mywebapp"> <Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30"...
[ -0.04741409420967102, 0.01248018816113472, 0.69879549741745, -0.01881280355155468, 0.08252895623445511, 0.07356433570384979, 0.27101144194602966, -0.10091633349657059, 0.05317172408103943, -0.8321311473846436, 0.24045291543006897, 0.7412216067314148, 0.08972851186990738, 0.0948714837431907...
the code through Subversion and currently, every time one of us updates our project, we have to manually replace the above path with the correct path for our computer. Thanks in advance. --- **UPDATE:** It appears that relative paths are not relative to the context.xml file, but to CATALINA\_HOME. Unfortunately that...
[ 0.3059493601322174, -0.17748810350894928, 0.5812608003616333, 0.21214480698108673, 0.12052091211080551, -0.1055135428905487, 0.511617124080658, 0.06387238949537277, -0.23196151852607727, -0.4238084554672241, 0.08792004734277725, 0.4326687157154083, -0.13734646141529083, 0.15946725010871887...
files are contained (2) will change. However, since all of the accounts are on a shared virtual network, CATALINA\_HOME (1) will not change. --- Also, how can I get the path to the database file my.db from the context.xml file above inside a servlet? I found the answer to my question [here](https://stackoverflow.com/...
[ 0.38928452134132385, 0.22855286300182343, 0.6150147318840027, 0.2848639190196991, 0.2086329311132431, -0.268525630235672, 0.21254892647266388, -0.4012199640274048, -0.19232553243637085, -0.4482021927833557, 0.047828804701566696, 0.38041239976882935, 0.21368835866451263, 0.11240951716899872...
I am wondering if there are clusters available to rent. Scenario: We have a program that will take what we estimate a week to run(after optimization) on a given file. Quite possibly, longer. Unfortunately, we also need to do approximately 300+ different files, resulting in approximately `300` weeks of compute time(ro...
[ 0.29351505637168884, 0.08284343034029007, 0.3591996431350708, 0.23244041204452515, 0.3035382032394409, -0.013178390450775623, 0.20424875617027283, 0.2145819514989853, -0.14821447432041168, -0.8308699727058411, -0.2062646895647049, 0.30480438470840454, 0.3732883632183075, 0.2423687577247619...
the completion of a PhD. What would be ideal would be a company that we send the source and the job files to the company and then receive a week or two later the result files. Voila! Quick googling doesn't turn up anything terribly promising. Suggested Solutions? Cloud computing sounds like what you need. Amazon, Mi...
[ 0.30646055936813354, 0.024584699422121048, 0.5254055261611938, 0.42671218514442444, 0.2926175594329834, 0.11685819923877716, -0.10006795078516006, -0.017011214047670364, -0.18906927108764648, -0.4288552403450012, 0.04790845513343811, 0.4847826659679413, 0.7153522968292236, -0.0952866375446...
I am trying out the VisualVM program that comes with the new JDKs. I am doing profiling on it and trying to profile CPU on only methods in a particular package. I put the following in the "Profile Only Classes:" ``` jig.* ``` Where jig is the package I want to instrument. Unfortunately I get back results on other ...
[ 0.4061121940612793, 0.3254503011703491, 0.12105673551559448, -0.013605814427137375, -0.17782220244407654, 0.05135441571474075, 0.1862621158361435, 0.07055483013391495, -0.38639122247695923, -0.8813775181770325, 0.2274549901485443, 0.7769426107406616, -0.3419174551963806, 0.1825003176927566...
does not meet the filtering criteria. I guess this is unclear functionality. You should make sure you uncheck that box before you do your profiling activity. Just be aware that with it unchecked, that probably means you won't see profile information of any of your own code that happens to be started as a separate Thre...
[ 0.5982126593589783, 0.035105906426906586, 0.006919330917298794, 0.17037081718444824, 0.048357438296079636, -0.4371200203895569, 0.3411150276660919, 0.2334391176700592, -0.33346569538116455, -0.33896034955978394, 0.09857726097106934, -0.012391753494739532, -0.05193256214261055, 0.2285331636...
I've seen repositories in SVN that did not at least create a local `trunk`, `branches`, and `tags` folders on the client. So are the default folders required for use with SVN? I'm using TortoiseSVN. I don't see why some people have the folders, but some do not in some implementations of repositories. As others have s...
[ 0.34701433777809143, -0.036087632179260254, 0.33325913548469543, -0.008580422028899193, -0.018453452736139297, -0.3082643151283264, 0.3584401309490204, 0.34689414501190186, -0.8187901973724365, -0.3590956926345825, -0.20071230828762054, 0.6189952492713928, -0.13238942623138428, -0.11065120...
commit to a sub-folder of /tags**. It enforces that a tag is not modified once it is created (another best-practice). --- **Update** (in response of your comment): The best practices say that you should have "trunk", "branches" and "tags" folders in your repository. One way (probably the most common one) to use thes...
[ 0.8123090267181396, -0.04739685356616974, 0.17070230841636658, 0.15600807964801788, 0.2456105351448059, -0.44577863812446594, 0.031170522794127464, -0.19829332828521729, -0.5097455382347107, -0.6815922260284424, -0.3833014965057373, 0.3955363929271698, -0.01305531244724989, -0.129647135734...
fix a bug in version 1.0 (you can then copy your 1.0 tag to a new branch and make modifications there). Now to subversion, all folders (trunk, tags, branches) are "normal" folders. They have now special meaning and subversion does not treat them any different (which means you could modify what you have in "/tags/1.0" ...
[ 0.2032271921634674, -0.36959606409072876, 0.46423885226249695, -0.1378093659877777, 0.11966490000486374, -0.32125282287597656, 0.49673008918762207, 0.4002102315425873, -0.7002063989639282, -0.27416613698005676, -0.4062414765357971, 0.37716615200042725, -0.6006962656974792, 0.11330948770046...
I have looked at the following, but they aren't clear, particularly the reference to DataMapper and gem dependencies. All I want as an outcome is to be able to take my @user.email value that is in a |do| loop and display a gravatar where the identicon is set to "y" -- in other words, those cute seemingly random drawin...
[ 0.2815401554107666, 0.3288903534412384, 0.2789866626262665, 0.20690986514091492, -0.1864343136548996, -0.037663161754608154, 0.2059520184993744, -0.20948226749897003, -0.3517599403858185, -0.311305433511734, 0.09624338895082474, 0.6194798350334167, 0.11256657540798187, 0.03335825726389885,...
plugin: <http://github.com/woods/gravatar-plugin/tree/master> which is the same as the one referred below...however, I get an error when I type in: ``` <%= gravatar_for @user %> ``` The error is: ``` undefined method `gravatar_for' for #<ActionView::Base:0x474ddf4> ``` There's a Gravatar Rails plugin that can be ...
[ -0.3477253019809723, 0.12695346772670746, 0.29591286182403564, -0.15342405438423157, -0.32351037859916687, 0.1756603717803955, 0.39160728454589844, -0.2515164315700531, -0.19806277751922607, -0.5083054304122925, -0.21583209931850433, 0.7581952214241028, -0.418135404586792, -0.0245545078068...
I have loaded a static (no servlets, jsp etc) website into the webapps folder of Tomcat. I have an index.html file under webapps/ourcompany so when I click the ourcompany link in the tomcat manager I am expecting to be taken to the ourcompany/index.html page. However Tomcat keeps redirecting me to localhost:8080/ourco...
[ 0.20047950744628906, 0.07918444275856018, 0.6978590488433838, -0.07319677621126175, -0.06328538805246353, -0.12195802479982376, 0.08124417066574097, 0.6309536695480347, -0.3522939383983612, -0.6687535643577576, -0.0015855738893151283, 0.46355628967285156, -0.20349009335041046, 0.5050391554...
I guess that may have something to do with it. How can I get the link in the Tomcat manager to take me to localhost:8080/ourcompany/index.html rather than localhost:8080/ourcompany/www.ourcompany.org/index.html There's a Gravatar Rails plugin that can be found here: <http://gravatarplugin.rubyforge.org/> Install the...
[ -0.17557217180728912, 0.15087847411632538, 0.42362499237060547, -0.05490514636039734, -0.1651414930820465, 0.2324681133031845, 0.42695775628089905, 0.04594116657972336, -0.25317734479904175, -0.6303350925445557, -0.047021958976984024, 0.6659147143363953, -0.21796979010105133, 0.09401845186...
Is there a way to call STL libraries from JNI, I believe JNI provides a C like interface for native calls, how do we achieve this for the C++ template libraries? I agree that if you're looking for just the plain STL, you could probably use a Java library instead. However, if you insist on wrapping STL, SWIG provides so...
[ 0.44506826996803284, 0.0969996526837349, -0.2238941192626953, 0.19897820055484772, -0.2470875233411789, -0.2258349508047104, -0.05076506361365318, -0.08785304427146912, -0.3248864412307739, -0.492509663105011, 0.0130485063418746, 0.7391493320465088, -0.2563980519771576, -0.1013295948505401...
My solution to [exercise 1.11](http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_1.2.2) of SICP is: ``` (define (f n) (if (< n 3) n (+ (f (- n 1)) (* 2 (f (- n 2))) (* 3 (f (- n 3)))) )) ``` As expected, a evaluation such as (f 100) takes a long time. I was wondering if there was a way to...
[ 0.3552938401699066, 0.25148242712020874, 0.26190370321273804, -0.3916034698486328, -0.04091278836131096, -0.07797112315893173, 0.4414692223072052, -0.4179234802722931, -0.008642557077109814, -0.583060085773468, -0.10735652595758438, 0.5814120173454285, -0.297103613615036, -0.39512357115745...
use [memoization](http://en.wikipedia.org/wiki/Memoization). In a nutshell, the idea is to cache the result of f(p) (possibly for every p seen, or possibly the last n values) so that next time you call f(p), the saved result is returned, rather than being recalculated. In general, the cache would be a map from a tuple ...
[ -0.2370201200246811, 0.027282139286398888, -0.12435240298509598, 0.15409797430038452, -0.17840668559074402, 0.21390411257743835, 0.12264697998762131, -0.2048361599445343, 0.08043013513088226, -0.5616491436958313, -0.41352683305740356, 0.3284161388874054, -0.3610263168811798, -0.12376610189...
If Ruby gets invited to a party and brings: ``` foobarobject.send('foomethod') ``` .. and Python gets invited to the same party and brings: ``` getattr(foobarobject, 'foomethod')() ``` .. what does PHP have to bring to the party? **Bonus question:** If Ruby and Python got jealous of PHP's party-favors, what Eng...
[ 0.16053049266338348, 0.09514495730400085, 0.3278101682662964, -0.0779770165681839, -0.3888092041015625, -0.18200303614139557, -0.0006872385274618864, -0.1904686540365219, -0.27717044949531555, -0.04588998854160309, -0.05773445591330528, 0.8047105073928833, -0.29851213097572327, -0.20527693...
I have a xaml code like this ``` <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="100"/> <ColumnDefinition Width="100"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="100"/> <RowDefinition Height="100"/> </Grid.RowDefinitions> <Label ...
[ 0.034299202263355255, 0.4064048230648041, 0.5725988745689392, -0.18040874600410461, 0.100155308842659, 0.038446251302957535, 0.16312557458877563, -0.522290050983429, 0.06860387325286865, -0.893695056438446, 0.038657478988170624, 0.227311372756958, -0.13888317346572876, 0.007060384843498468...
the label. Thanks In addition to Anand's answer, you can also do it like that : ``` Grid.SetColumn(label, 0); Grid.SetRow(label, 0); ```
[ 0.16231581568717957, -0.16006284952163696, 0.1718640923500061, 0.10441795736551285, -0.12324835360050201, -0.2967574894428253, -0.3200049102306366, -0.4327426254749298, -0.07880818098783493, -0.5653233528137207, -0.2504405379295349, 0.19259150326251984, -0.6270126700401306, 0.1872971504926...
What could be the deciding factor to use the methods asynchronously. One factor i can understand is **independent** and parallel execution so as to save time and uses the available resources. What could be the other factors ??? Any help is highly appreciated. * Allow the user to do other tasks (or cancel) during the...
[ 0.2563660740852356, -0.16112671792507172, -0.007629835978150368, 0.3717111647129059, -0.10236243158578873, 0.07726064324378967, 0.036562640219926834, -0.4463651180267334, -0.26382288336753845, -0.7489888668060303, 0.16063745319843292, 0.4151933789253235, -0.22758735716342926, 0.03735827282...
different time consuming tasks synchronously together, eg. network communication and Database access. On the other hand, software does not get faster if everything is asynchronous. It just allows using resources while waiting for others.
[ 0.09890507161617279, -0.0054535819217562675, -0.14863163232803345, 0.6318486928939819, 0.26299774646759033, 0.014050079509615898, 0.18831495940685272, 0.011528674513101578, -0.37067317962646484, -0.8313357830047607, 0.031189696863293648, 0.4785993993282318, -0.09817132353782654, 0.07029395...
If developers perform unit testing in their development environment before checking in to source control should that environment (including test failures) be shared? Should all builds be public? I think working in a sandbox is a good idea. It has saved me a few times. I usually have a few different virtual machines f...
[ 0.6996845006942749, 0.3681294918060303, -0.3976084887981415, 0.11610333621501923, -0.14473919570446014, -0.22669243812561035, 0.5779184699058533, 0.2195100486278534, -0.2198629081249237, -0.2600899934768677, 0.17264562845230103, 0.6784095168113708, -0.03291596099734306, 0.321460098028183, ...
having all their failures public necessarily but I worry that the information they provide isn't useful. It would be interesting to investigate some type of system whereby the developer is required to submit passing test results when they checkin but I think even that would be pushing things. It may have the detriment...
[ 0.8187198042869568, 0.25504782795906067, -0.0320451557636261, 0.2596063017845154, -0.16010317206382751, -0.11568143218755722, 0.5661023259162903, 0.3308719992637634, -0.21451056003570557, -0.11729692667722702, 0.23644429445266724, 0.5049232840538025, -0.037181463092565536, 0.21604351699352...
So far I have taught myself HTML by coding in Publisher 97 and using W3-Schools. I have picked up small amounts of CSS and PHP. *What Should I learn after learning HTML?* And what is the best editor for what I'm going to do?(Windows, Linux) Learn CSS, and JavaScript (with a framework). I'd start with [jQuery](http://...
[ 0.2198232114315033, -0.0170179083943367, 0.2628132700920105, -0.20360316336154938, -0.6166145205497742, 0.16982322931289673, 0.1525106430053711, -0.12007278949022293, -0.04813771694898605, -1.0328280925750732, 0.08810574561357498, 0.6003632545471191, -0.16956022381782532, -0.29187765717506...
for debugging HTML/CSS/JavaScript. Good luck!
[ 0.12857109308242798, 0.12726809084415436, 0.24161005020141602, 0.023410310968756676, -0.12357305735349655, -0.41778889298439026, 0.6832311749458313, 0.526709258556366, -0.36701714992523193, -0.5054263472557068, -0.23521268367767334, 0.3159470856189728, 0.18016919493675232, -0.2455743700265...
It is .net 2.0 here, not MVC, and I am crap at asp forms. I have a page with user controls on it. When I click on something in the page, I want to load the usercontrol based on a parameter from the page. I cannot do it. In my page's FaultTree\_Clicked, I get the value, then: * I tried exposing a property on the chi...
[ 0.21957875788211823, -0.1428859978914261, 0.26954418420791626, -0.0923599973320961, -0.05248148739337921, -0.35966458916664124, 0.4063003957271576, 0.08419372886419296, -0.03808407485485077, -0.7850009799003601, -0.07824426889419556, 0.44756415486335754, -0.5031508207321167, 0.261615931987...
is blank. EDIT: more specific info: Here is a cut down version of what the page(MyFault) looks like: ``` <form id="form" runat="server"> <div id="faulttree"> <asp:TreeView ID="FaultTree" ......> </div> <uc1:_DefectDetail ID="DefectDetail" runat="server" Visible="true" EnableViewState="true" /> </form> ``` An...
[ -0.1827116310596466, 0.0042216177098453045, 0.5360476970672607, -0.012682892382144928, -0.09978766739368439, -0.05707072839140892, 0.4369216859340668, -0.24584980309009552, -0.08175607025623322, -0.7015830874443054, -0.16373756527900696, 0.3413529396057129, -0.1542113572359085, -0.12500752...
happened. In order to better assist you, please provide a more detailed explanation of what the FaultTree control is, what is the desired result and some sample code. **UPDATE:** Instead of a public property, you can simply create a public method in the control that does the desired action and invoke it from the `F...
[ 0.35810405015945435, -0.15095259249210358, 0.265553742647171, 0.1859394758939743, 0.16057392954826355, -0.1477295458316803, 0.4608367681503296, -0.1349821388721466, -0.08523181080818176, -0.47097527980804443, -0.067818783223629, 0.40712136030197144, -0.23664630949497223, 0.2200591564178466...
I have the following piece of code: ``` void TestFunc(const void * const Var1, const float Var2) { *(float*)Var1 = Var2; } ``` It looks like I am changing the value of the const object the const pointer points to (thanks sharptooth), which should not be allowed. Fact is, none of the compilers I tried issued a war...
[ 0.6310381293296814, 0.37468191981315613, 0.040225036442279816, -0.2581678628921509, 0.002876467304304242, -0.07755591720342636, 0.442901611328125, -0.15835332870483398, 0.16431009769439697, -0.3687096834182739, 0.1125049814581871, 0.5531566739082336, -0.3629000186920166, 0.1995021104812622...
are pretty much the big hammer). This is why you don't get an error or warning. You're essentially telling the compiler, "be quiet, I know what I'm doing, this is how you should treat things". In fact, casts are probably the #1 way for programmers to get the compiler to stop issuing warnings. Your assignment expressio...
[ 0.5214357972145081, 0.27212539315223694, -0.08980352431535721, -0.13106054067611694, -0.13354600965976715, -0.37653490900993347, 0.6853694915771484, -0.020465610548853874, -0.14211493730545044, -0.366150438785553, -0.07205894589424133, 0.4836709201335907, -0.5014703869819641, 0.08201999962...
= Var2; } int main(void) { float x = 1.0; const float y = 2.0; TestFunc( &x, -1.0); // well defined (if not particularly great style) TestFunc( &y, -2.0); // undefined behavior return 0; } ``` You're treading dangerous waters... In general (I'm sure there are exceptions), casting so that...
[ 0.6666952967643738, -0.019614415243268013, 0.1061914935708046, -0.04245925694704056, 0.1072099506855011, -0.33543774485588074, 0.7721670269966125, -0.3290552794933319, -0.13192497193813324, -0.06145252287387848, -0.06464798003435135, 0.6541074514389038, -0.4624476134777069, 0.0145505191758...
qualifier is undefined. The inference is that doing the same for a non-const object is not undefined. An example given in the C++ standard makes this clear. C90 6.5.3 - Type Qualifiers (C99 6.7.3): > If an attempt is made to modify an object defined with a const-qualified type through use > of an lvalue with non-con...
[ 0.025430500507354736, -0.3229922652244568, 0.41958603262901306, 0.04551035538315773, 0.37116119265556335, -0.36791542172431946, 0.1440575271844864, -0.33357009291648865, 0.1370089203119278, -0.2947559654712677, -0.23353908956050873, 0.7972055673599243, -0.22271478176116943, 0.1166714429855...
even if the object referenced is a non-const object and can be modified through some other access path. [Note: cv-qualifiers are > supported by the type system so that they cannot be subverted without casting (5.2.11). ] > > > Except that any class member declared mutable (7.1.1) can be modified, any attempt to modi...
[ 0.06751900911331177, -0.2177465409040451, 0.4302597641944885, -0.11385377496480942, 0.3164507746696472, -0.3356260061264038, 0.33712926506996155, -0.2105410397052765, -0.10332076996564865, -0.5432306528091431, -0.519730269908905, 0.480459988117218, -0.27023205161094666, 0.5183836817741394,...
//pointer to const int > cip = &i; //OK: cv-qualified access path to unqualified > *cip = 4; //ill-formed: attempt to modify through ptr to const > > int* ip; > ip = const_cast<int*>(cip); //cast needed to convert const int*to int* > *ip = 4; //defined: *ip points to i, a...
[ -0.11310568451881409, -0.2401503473520279, 0.4295695424079895, 0.050734348595142365, 0.049953434616327286, 0.20276151597499847, 0.15914207696914673, -0.5781081914901733, -0.17675966024398804, -0.40077924728393555, -0.21029527485370636, 0.3226912319660187, -0.17516620457172394, 0.0111852772...
> const int* ciq = new const int (3); //initialized as required > int* iq = const_cast<int*>(ciq); //cast required > *iq = 4; //undefined: modifies a const object > > ```
[ 0.12256165593862534, -0.21853205561637878, 0.4026133716106415, -0.1177670881152153, -0.09659642726182938, 0.05482983961701393, 0.25556814670562744, -0.67970210313797, 0.16937603056430817, -0.6096069812774658, -0.3371421694755554, 0.3568041920661926, -0.5237129330635071, -0.2918013632297516...
I dont understand why my code does not work. This is my code. I don't know why I'm get an error segment. Could somebody explain the reason to me? ``` #include <iostream> #include <string> #include <sys/types.h> #include <unistd.h> int id_process; void manager_signal () { kill (id_process, SIGKILL); kill (ge...
[ 0.25511056184768677, -0.04072613641619682, 0.24527564644813538, -0.10113364458084106, 0.15280252695083618, 0.08842463046312332, 0.5223321914672852, -0.23123230040073395, 0.0092319929972291, -0.48635953664779663, 0.2034728229045868, 0.48098015785217285, -0.5137937664985657, 0.25558483600616...
printf("Father´s ID is %d \n", getpid()); alarm(5); (void) signal (SIGALRM, manager_signal); sleep (20); printf ("Running to where the father can be\n"); alarm (0);
[ 0.1173572763800621, -0.3582247197628021, 0.23501034080982208, -0.6097197532653809, 0.660746157169342, 0.1606990545988083, 0.42749693989753723, -0.12231665849685669, 0.004304846748709679, -0.5148840546607971, -0.5841563940048218, 0.4160197675228119, -0.3226463198661804, 0.275015264749527, ...
} else { printf ("CHildren´s ID is %d \n", getpid ()); for (;;) { printf ( "Children RUN FOREVER ^^"); sleep (2); } }
[ 0.3377554416656494, -0.3927913308143616, -0.02759784832596779, -0.08430082350969315, 0.9048646688461304, 0.18794560432434082, 0.09741806238889694, 0.21119463443756104, -0.05771731957793236, -0.7299304008483887, -0.38650599122047424, 0.608411431312561, -0.1910504549741745, 0.257072359323501...
} return 0; } ``` Your question is a little difficult to understand since you don't really explain what the error is, but I do have one question which I'm sure will be pertinent. Why is the "father" process killing its child and its *parent*? Shouldn't it kill its child and itself (`id_process` and `getpid()` rat...
[ 0.274640828371048, 0.2734496593475342, 0.28763827681541443, -0.07115872204303741, 0.3386847972869873, 0.3254837691783905, 0.302805632352829, 0.16943241655826569, 0.11478658765554428, -0.5492446422576904, -0.23384295403957367, 0.5057914853096008, -0.25251835584640503, 0.7277812361717224, ...
; g++ -o qq qq.cpp ; ./qq.exe Fathers ID is 6016 Childrens ID is 4512 Children RUN FOREVER ^^ Children RUN FOREVER ^^ Children RUN FOREVER ^^ Children RUN FOREVER ^^ Children RUN FOREVER ^^ Killed ``` This is with the program modified as follows: ``` #include <iostream> #include <string> #include <sys/types.h> #incl...
[ 0.20084638893604279, -0.2211623638868332, 0.3569060266017914, -0.16245044767856598, 0.38610073924064636, 0.46370044350624084, 0.19162389636039734, 0.03331300988793373, -0.2708667814731598, -0.40187710523605347, -0.12777124345302582, 0.14247998595237732, -0.31111660599708557, 0.766109228134...
0 ) { printf("Fathers ID is %d\n", getpid()); alarm(5); (void) signal (SIGALRM, manager_signal); sleep (20); printf ("Running to where the father can be\n"); alarm (0); } else
[ 0.26888346672058105, -0.2577056288719177, 0.3040978014469147, -0.5430564284324646, 0.6474555134773254, 0.20304012298583984, 0.5058441758155823, -0.23391813039779663, -0.05207999795675278, -0.5348018407821655, -0.4382430613040924, 0.26910698413848877, -0.300849974155426, 0.34004008769989014...
{ printf ("Childrens ID is %d\n", getpid ()); for (;;) { printf ( "Children RUN FOREVER ^^\n"); sleep (1); } } } return 0; } ```
[ 0.4449337124824524, -0.1048664078116417, 0.14562325179576874, -0.05786313861608505, 0.8646566271781921, 0.14159344136714935, 0.15439024567604065, 0.1891152411699295, -0.017482131719589233, -0.6192283630371094, -0.4813300669193268, 0.515893816947937, -0.21070002019405365, 0.4408169686794281...
When selecting a language to port COBOL programs from what language would you chose and why? I am not looking for the answer "because I am familiar with language X". I am looking for features in a language that map well to COBOL's design. **Update:** The programs would run the gammit to utilities, data processing, s...
[ 0.4404984712600708, 0.22456365823745728, 0.361158162355423, 0.001112414407543838, -0.1523909717798233, -0.0034658818040043116, 0.23476101458072662, 0.396993488073349, -0.27070382237434387, -0.7648065686225891, -0.07117107510566711, 1.0643028020858765, -0.45520099997520447, -0.0904955491423...
help. Is the platform on which it runs obsolete? Is management just pushing for a more 'modern' solution? Are you having to move stuff from System z to Windows (ugh!)? COBOL (in its purest form, not that OO-COBOL rubbish) is mostly a simple procedural language (ReportWriter notwithstanding) so will translate to any o...
[ -0.035334907472133636, 0.042921289801597595, 0.0748167335987091, 0.15334820747375488, -0.15237542986869812, -0.0861193910241127, 0.3301924467086792, 0.16599904000759125, -0.21297262609004974, -0.5154757499694824, -0.18599553406238556, 0.8066073656082153, -0.3922078013420105, -0.33040523529...
I would like to test: ``` <cfif Exists(MyStruct["mittens"])> </cfif> ``` If the "mittens" key doesn't exist in MyStruct, what will it return? 0, or ""?? What should replace Exists function? **UPDATE** I tried, ``` <cfif IsDefined(MyStruct.mittens)> ``` Which also throws the error > Element Mittens is undefin...
[ 0.07669688016176224, 0.18012191355228424, 0.3152737617492676, 0.03733237087726593, 0.13975301384925842, -0.2944098711013794, 0.41789576411247253, -0.41109487414360046, -0.04880590736865997, -0.5726855993270874, -0.36724889278411865, 0.45295512676239014, -0.3366313576698303, -0.034861437976...
so I believe) and tells you if the result is a variable reference. In comparison this is slower than `StructKeyExists()`. On the plus side: You can test for a sub-key in a nested structure in one call: ``` <cfif IsDefined("MyStruct.with.some.deeply.nested.key")> ```
[ 0.23085932433605194, 0.07369676232337952, 0.20567533373832703, -0.07576852291822433, 0.05887164548039436, -0.3073280155658722, 0.4433291256427765, -0.37213757634162903, 0.14864294230937958, -0.32360315322875977, 0.1070987656712532, 0.6353350877761841, -0.1516478955745697, 0.159759908914566...
I have a WAMP installation on my machine and I am developing a PHP website in that. Can anyone tell me what settings to be changed in order to show all errors / warning messages in the browser? Thanks in advance You need to set both [error\_reporting](http://au.php.net/manual/en/errorfunc.configuration.php#ini.error-r...
[ 0.5395520329475403, 0.18608638644218445, 0.24933744966983795, -0.1281263828277588, -0.2548615038394928, -0.07429385185241699, 0.4468265473842621, -0.23043781518936157, -0.14713925123214722, -0.9366183876991272, 0.13002941012382507, 0.47173646092414856, -0.23741325736045837, -0.198379710316...
setting them in an .htaccess: ``` # note: PHP constants such as E_ALL can't be used when setting it in Apache php_value error_reporting 2147483647 php_flag display_errors on ``` Alternatively you could set these in httpd.conf **display\_errors** makes sure that all reported errors are actually output to the browse...
[ 0.24066254496574402, 0.2536140978336334, 0.3137160539627075, 0.021166261285543442, -0.12039215862751007, -0.12802334129810333, 0.5563381910324097, -0.16409648954868317, -0.2248295694589615, -0.8081880807876587, 0.09883499890565872, 0.4541653096675873, -0.14048121869564056, -0.1622016876935...
being the most inclusive value possible now and for the future according to the PHP docs) because ignoring errors is generally a bad idea.
[ 0.003198523772880435, 0.16700734198093414, 0.48128703236579895, 0.19820387661457062, 0.02258651703596115, -0.20572401583194733, 0.2425394207239151, 0.10973122715950012, -0.07748918980360031, -0.442811518907547, 0.0375860370695591, 0.5280531644821167, 0.13089430332183838, -0.120268523693084...
Groovy has a concept of GStrings. I can write code like this: ``` def greeting = 'Hello World' println """This is my first program ${greeting}""" ``` I can access the value of a variable from within the String. How can I do this in Python? -- Thanks In Python, you have to explicitely pass a dictionary of possible...
[ -0.3636605441570282, 0.05250278115272522, 0.6886388063430786, -0.23386576771736145, -0.22914133965969086, -0.20441561937332153, 0.016608793288469315, 0.3072572648525238, -0.20327357947826385, -0.494848370552063, 0.296992689371109, 0.8610439300537109, -0.48947253823280334, 0.142638325691223...
2.6: print("My first programm; %(greeting)s" % locals()) # Since Python 2.6, the recommended example is: print("My first program; {greeting}".format(**locals())) # Works in 2.x and 3.x: from string import Template print(Template("My first programm; $greeting").substitute(locals())) ```
[ -0.027331558987498283, -0.11849217116832733, 0.36477863788604736, -0.46326974034309387, -0.15302765369415283, -0.043485578149557114, 0.07163234800100327, 0.06798426806926727, 0.008212925866246223, -0.44660887122154236, -0.2503143846988678, 0.6072260141372681, -0.36826369166374207, -0.02932...
How do i migrate my data from VSS to SubVersion?? It depends on whether you want to take the VSS Meta Data with you. If yes, have a look at [PowerAdmin](http://www.poweradmin.com/sourcecode/vssmigrate.aspx) or [Vss2SVN](http://vss2svn.tigris.org/) on Tigris If no, just to a search of the Code Folders on your machine ...
[ 0.39103567600250244, -0.4140232503414154, 0.4037056565284729, 0.13297542929649353, -0.22316379845142365, 0.04896470159292221, 0.2309626340866089, -0.2900053560733795, -0.1235295906662941, -0.7662062048912048, -0.02247084118425846, 0.5142683386802673, -0.32166793942451477, 0.144536167383193...
I'm working through [Josh Smith's CommandSink Example](http://www.codeproject.com/KB/WPF/VMCommanding.aspx) and the `base.Executed += (s, e) =>...` structures are throwing me, can someone help make this crystal clear? **what I understand:** * base.CanExecute is the event on the inherited class CommandBinding * the +=...
[ 0.3040536046028137, -0.06451113522052765, 0.1555454432964325, 0.06831120699644089, -0.02808464504778385, -0.26918283104896545, 0.39097002148628235, -0.3425024747848511, -0.3689214289188385, -0.7238592505455017, -0.0115593783557415, 0.3480834364891052, -0.2507512867450714, 0.339975565671920...
ICommandSink _commandSink; public ICommandSink CommandSink { get { return _commandSink; } set { if (value == null)
[ -0.11722207814455032, -0.23810577392578125, 0.32252949476242065, -0.043196577578783035, 0.1691390573978424, -0.03936122730374336, 0.5714480876922607, -0.24177329242229462, 0.016663163900375366, -0.6914862394332886, -0.3215007483959198, 0.6907930374145508, -0.2515481412410736, 0.20898200571...
throw new ArgumentNullException("Cannot set CommandSink to null."); if (_commandSink != null) throw new InvalidOperationException("Cannot set CommandSink more than once."); _commandSink = value; base.CanExecute += (s, e) =>
[ -0.0293740164488554, -0.14132404327392578, 0.4474118947982788, -0.22451260685920715, 0.20556148886680603, 0.3220033347606659, 0.6143050193786621, -0.42297524213790894, -0.13206398487091064, -0.4998416602611542, -0.16648079454898834, 0.5027007460594177, -0.34140750765800476, 0.2126167863607...
{ bool handled; e.CanExecute = _commandSink.CanExecuteCommand(e.Command, e.Parameter, out handled); e.Handled = handled;
[ -0.07871858030557632, -0.18456880748271942, 0.28472644090652466, -0.17711186408996582, -0.0029199409764260054, 0.5320338606834412, 0.4576886296272278, -0.3105742931365967, -0.31229841709136963, -0.3649614155292511, -0.1060217022895813, 0.5591135025024414, -0.47639480233192444, 0.3103458285...
}; base.Executed += (s, e) => { bool handled;
[ 0.41255491971969604, -0.36367470026016235, -0.14192180335521698, -0.3523586392402649, 0.05114205181598663, 0.0837319865822792, 0.699420690536499, -0.43988344073295593, -0.19491074979305267, -0.1766916960477829, -0.3956741392612457, 0.5398029685020447, -0.3514152765274048, 0.012244216166436...
_commandSink.ExecuteCommand(e.Command, e.Parameter, out handled); e.Handled = handled; }; } } ... ``` `(s, e)` is the Method Parameter Signature for the event handler (in this case the anoymous method that's defined) think `(object Sender, Event...
[ -0.19194598495960236, -0.41128110885620117, 0.23002970218658447, -0.1290234476327896, 0.19691386818885803, -0.04437517002224922, 0.11223664879798889, 0.037395939230918884, -0.3248511254787445, -0.5466145873069763, -0.23677237331867218, 0.5943140983581543, -0.19010378420352936, 0.2152245044...
e)` The `s` parameter just isn't being used in the rest of the method which is fine. It has to be there to match the expected signature ``` base.CanExecute += (s, e) => { bool handled; e.CanExecute =
[ 0.28988534212112427, -0.07017196714878082, 0.5259474515914917, 0.015437339432537556, -0.0028193325269967318, -0.011939850635826588, 0.4425113797187805, -0.4690059721469879, -0.11365114152431488, -0.47585752606391907, -0.22867192327976227, 0.50993412733078, -0.40570059418678284, -0.02539722...
_commandSink.CanExecuteCommand(e.Command, e.Parameter, out handled); e.Handled = handled; }; ``` is the equivalent of doing ``` base.CanExecute += new EventHandler(myMethod_CanExecute); ///.... protected void myMethod_CanExecute(object sender, EventArgs e) { bool hand...
[ -0.07529919594526291, -0.2898610830307007, 0.4923778474330902, -0.154281347990036, 0.11411077529191971, 0.4789498746395111, 0.49403509497642517, -0.2690664529800415, -0.17463602125644684, -0.48830077052116394, -0.15216737985610962, 0.5603542923927307, -0.5731194615364075, 0.394691884517669...
As far as I know the JVM uses escape analysis for some performance [optimisations](http://www.ibm.com/developerworks/java/library/j-jtp10185/) like lock coarsening and lock elision. I'm interested if there is a possibility for the JVM to decide that any particular object can be allocated on stack using escape analysis....
[ -0.03584854304790497, -0.027251150459051132, 0.008408374153077602, -0.08257116377353668, -0.07226162403821945, -0.07934010028839111, 0.2594572901725769, -0.4373941123485565, -0.33218875527381897, -0.33186808228492737, -0.08540189266204834, 0.5756795406341553, -0.4303828477859497, 0.1091970...
public Foo() { x = (++counter); } } public static void main(String[] args) { System.out.println("start"); for (int i = 0; i < 10000000; ++i) { Foo foo = new Foo(); }
[ -0.013140345923602581, 0.08918160945177078, 0.4171183109283447, -0.6234666705131531, 0.06772341579198837, 0.22008560597896576, 0.4172137379646301, -0.16120851039886475, -0.16853569447994232, -0.13053297996520996, -0.24602168798446655, 0.5317959189414978, -0.6047325134277344, 0.348538130521...
System.out.println(Foo.counter); } } ``` with `-server -verbose:gc -XX+DoEscapeAnalysis`: ``` start [GC 3072K->285K(32640K), 0.0065187 secs] [GC 3357K->285K(35712K), 0.0053043 secs] [GC 6429K->301K(35712K), 0.0030797 secs] [GC 6445K->285K(41856K), 0.0033648 secs] [GC 12573K->285K(41856K), 0.0050432 secs] [GC 12...
[ -0.8056235313415527, -0.062076449394226074, 0.3626329302787781, -0.08739174902439117, -0.04605745151638985, 0.2957622706890106, 0.34589940309524536, -0.4224756956100464, -0.36884644627571106, -0.6024705171585083, -0.34648433327674866, 0.2860684394836426, -0.25366681814193726, 0.15876017510...
Working my way through Effective STL at the moment. Item 5 suggests that it's usually preferable to use range member functions to their single element counterparts. I currently wish to copy all the values in a map (i.e. - I don't need the keys) to a vector. What is the cleanest way to do this? You can't easily use a r...
[ 0.5376107692718506, -0.08145461231470108, 0.41957569122314453, -0.014747469685971737, -0.0575961172580719, 0.10975608974695206, 0.32263150811195374, -0.47270411252975464, -0.05848892405629158, -0.8197280764579773, 0.016798125579953194, 0.6521266102790833, -0.09784331917762756, -0.073694914...
the key) not a pair. I really don't think it gets much cleaner than the obvious: ``` #include <map> #include <vector> #include <string> using namespace std; int main() { typedef map <string, int> MapType; MapType m; vector <int> v; // populate map somehow for( MapType::iterator it = m.begin()...
[ -0.2086912840604782, -0.4093317985534668, 0.7796812057495117, -0.265044242143631, 0.029061824083328247, 0.06347154080867767, 0.16932150721549988, -0.6047345995903015, -0.1959340125322342, -0.8265489935874939, -0.260044127702713, 0.49999719858169556, -0.44286882877349854, 0.0815545693039894...
typename V> void MapToVec( const M & m, V & v ) { for( typename M::const_iterator it = m.begin(); it != m.end(); ++it ) { v.push_back( it->second ); } } ```
[ -0.3072147071361542, -0.5447702407836914, 0.8382564187049866, -0.3420880436897278, 0.31778955459594727, 0.2145576775074005, 0.305152028799057, -0.3484881520271301, -0.05470157042145729, -0.6935360431671143, -0.5550005435943604, 0.5941120982170105, -0.26618000864982605, 0.2734736204147339, ...
I'm building an iPhone app with cookies. Deleting cookies in the Safari settings doesn't delete them. Where are they stored? Is it possible to read them from another UIWebView? Thanks! Your application has its own "cookie jar" in the `[NSHTTPCookieStorage sharedHTTPCookieStorage]` container. Here's how you might tak...
[ 0.19127871096134186, 0.2531206011772156, 0.13358023762702942, 0.0844830870628357, 0.11143011599779129, 0.0454399511218071, 0.26388347148895264, -0.11196868121623993, -0.2725716829299927, -0.9164609313011169, -0.2360123097896576, 0.5203811526298523, -0.17119374871253967, -0.0203864946961402...
I've just upload my ASPNETDB.mdf using "Generate Scripts" into server. The problem is, I don't know how can I connect to it for my Membership.(e.g LogIn Controls) where is the ConnectionString? update the Data Source tag in web config ``` Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<<PATH Goes Here>>;Persist Securit...
[ 0.4170311987400055, 0.09917254000902176, 0.4780551791191101, 0.020900670439004898, 0.16659677028656006, -0.3899974524974823, 0.5938966870307922, -0.11003384739160538, -0.33092495799064636, -0.9764680862426758, 0.009039842523634434, 0.2685913145542145, -0.2822777032852173, 0.297757297754287...
I need to sort the nodes of a directed graph such that the number of arrows that flow backwards (against the sorting order) is minimal. I can think of algorithms (e.g. keep swapping nodes until no swap will improve things) but I'm not sure how fast they run or whether they arrive at the best solution. What is the nam...
[ -0.21784864366054535, -0.1550936996936798, -0.005472844000905752, 0.17129634320735931, -0.23763324320316315, 0.23863311111927032, -0.03560291603207588, -0.2966490685939789, -0.46102550625801086, -0.7184485793113708, -0.08330655843019485, 0.1593707799911499, -0.4653171896934509, 0.212986096...
I want to use only jquery to update a method which is reading account information periodically from database every 60 minutes. I do not want to refresh or load the whole aspx page while I’m refreshing only that portion of the page. Is there any way for accomplish this task? Thank you in advance Internet Explorer doesn...
[ 0.2890092730522156, 0.1287480741739273, 0.5776829123497009, 0.23275043070316315, -0.05823320895433426, -0.2782543897628784, 0.22097307443618774, 0.2770846486091614, -0.3891916573047638, -0.6467297673225403, 0.1275830864906311, 0.5941571593284607, -0.07020418345928192, -0.1276063174009323, ...
would do this: ``` var source = document.getElementById('tableA'); var destination = document.getElementById('tableB'); var copy = source.cloneNode(true); copy.setAttribute('id', 'tableB'); destination.parentNode.replaceChild(copy, destination); ```
[ 0.1833840161561966, -0.07837259769439697, 0.3916446566581726, -0.013074148446321487, 0.5997663140296936, -0.11062723398208618, 0.31426897644996643, -0.22074759006500244, 0.12081043422222137, -0.5222040414810181, -0.3781805634498596, 0.4353940188884735, -0.4353024959564209, 0.41933241486549...
By default git init creates a folder called '.git'. In the recent Visual Studio tools (2005 and up) this works fine. But Visual Studio 2003 (and ... VB6 as well probably) crashes on this foldername. ideally I would like to change this per repository to something like 'git' instead of '.git'. Is this possible? I know t...
[ 0.08201003074645996, -0.1232609897851944, 0.32272323966026306, -0.045538417994976044, -0.4033232033252716, -0.03248295560479164, 0.2635728418827057, 0.2079532891511917, -0.2716788351535797, -0.6581730246543884, -0.1239752471446991, 0.5138907432556152, -0.2976094186306, 0.026270519942045212...
you set the GIT\_DIR variable on windows? I googled it but it didn't make much sense. edit2: Wouldn't an environment variable set it for *all* repositories on that machine? If so I would have to go into every repository and move the folder manually ... also, I tried setting it to 'git' and when I open the git gui app...
[ 0.345218688249588, 0.05454373359680176, 0.17522019147872925, -0.04387154057621956, -0.1854957938194275, -0.017416145652532578, 0.3441801071166992, 0.40482357144355774, -0.21872922778129578, -0.8987389802932739, 0.14063873887062073, 0.7554221749305725, -0.44782254099845886, 0.40814751386642...
I use Ext.form.ComboBox in very similar way as in this example: <http://extjs.com/deploy/dev/examples/form/forum-search.html> What annoys me is that when the ajax call is in progress it shows loading text and I cannot see any results from before. Eg I input 'test' -> it shows result -> I add 'e' (search string is 't...
[ 0.12293671071529388, 0.04305266961455345, 0.34758105874061584, -0.1416519284248352, -0.2656947374343872, -0.316681444644928, 0.47359392046928406, -0.34728482365608215, 0.06557302922010422, -0.8897239565849304, -0.06219007447361946, 0.5891880393028259, -0.31853625178337097, -0.0979870706796...
{ onBeforeLoad: function() {this.selectedIndex = -1;} }); ``` Please be warned, that this overrides the class method, so all of the ComboBox instances will not have the LoadingText showing. In case you would like to override only one instance - please use plugins (in quite similar way). You may also...
[ 0.019071713089942932, -0.37088215351104736, 0.2071891874074936, -0.20079775154590607, 0.4009667932987213, -0.09141719341278076, 0.38198602199554443, -0.287180095911026, -0.08275780081748962, -0.682225227355957, -0.3175240159034729, 0.746285080909729, -0.5639176368713379, 0.0048129269853234...
I would like to port an embedded application to x86 to create an emulator. We decided to give VS2008 a try but I'm not sure how to make vs to understand our existing directory structure: * arch/ + arch/hcs08 -- HAL implementation + arch/include -- public interface of HAL + arch/x86 -- *here should goes the emulatio...
[ -0.0351918525993824, 0.3573591709136963, 0.6837484240531921, 0.07801803946495056, -0.023569174110889435, 0.29966968297958374, -0.05729338154196739, -0.13225816190242767, -0.05371595174074173, -0.9365074038505554, 0.08767278492450714, 0.49146077036857605, -0.35540035367012024, 0.10482066869...
project, that contains everything in apps/app1/\* * app2 - console app project, that contains everything in apps/app1/\* I've created the above structure by importing files manually one by one, but obviously vs doesn't pick new files automatically and my project is flat (no folders) OS & application layers are under ...
[ 0.530878484249115, 0.07876750081777573, 0.43246740102767944, -0.046541955322027206, -0.14518782496452332, 0.07469185441732407, -0.08830060809850693, -0.2268846184015274, -0.36507752537727356, -0.76787269115448, -0.24234403669834137, 0.5496416687965393, -0.5872594118118286, -0.0632359310984...