text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Could not find 'libpng' headers in any of '.' Tkinter: no * No tk/win32 support for this python version yet wxPython: 2.8.9.2 * WxAgg extension not required
[ 0.12603874504566193, -0.2404634952545166, 0.04293122515082359, -0.08818542212247849, -0.20955227315425873, -0.12447982281446457, 0.5357275605201721, 0.25202909111976624, -0.190802201628685, -0.2748331129550934, -0.26425856351852417, 0.5480983853340149, -0.7126181125640869, -0.0960081815719...
for wxPython >= 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: no
[ -0.021714093163609505, 0.26055580377578735, 0.1764518767595291, -0.07203679531812668, -0.17952300608158112, -0.08694402128458023, 0.4770667850971222, -0.10698801279067993, -0.2337927520275116, -0.371600866317749, -0.6090995669364929, 0.6960542798042297, -0.43638876080513, -0.15994824469089...
Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide
[ -0.14031782746315002, -0.23704156279563904, 0.3686521053314209, 0.08205088973045349, 0.16284725069999695, -0.18737560510635376, 0.1904505342245102, 0.25462114810943604, 0.07791558653116226, -0.986263632774353, -0.7134957909584045, 0.18501445651054382, -0.22696606814861298, 0.04731081053614...
pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: no latex: no pdftops: no [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ...
[ -0.279413640499115, -0.16341644525527954, 0.6889610290527344, 0.29531794786453247, 0.1074962168931961, 0.21363012492656708, -0.11389709264039993, 0.08860623091459274, -0.33263710141181946, -0.694147527217865, -0.4921509027481079, 0.08096396178007126, -0.5096704363822937, -0.248088791966438...
build running build_py copying lib\matplotlib\mpl-data\matplotlibrc -> build\lib.win32-2.6\matplotlib\m pl-data copying lib\matplotlib\mpl-data\matplotlib.conf -> build\lib.win32-2.6\matplotli b\mpl-data running build_ext building 'matplotlib.ft2font' extension C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe...
[ -0.28067833185195923, 0.543121337890625, 0.4731992185115814, -0.2587013840675354, 0.13811135292053223, 0.04416874423623085, 0.7114721536636353, -0.28878483176231384, -0.028771821409463882, -0.444379597902298, -0.4486958086490631, 0.7130215764045715, -0.500255286693573, -0.10051294416189194...
and the directory where that file is found is the one that you should specify with `-I`. The string "GnuWin32" does not appear anywhere in the output of your build command, so it looks like you have not placed that directory in the correct include list.
[ 0.42510420083999634, 0.0848403200507164, 0.13193486630916595, -0.19145675003528595, 0.23686933517456055, -0.4679858684539795, 0.46015679836273193, -0.08058538287878036, 0.016105491667985916, -0.734809935092926, -0.14900632202625275, 1.0609214305877686, -0.3455217778682709, 0.12116753309965...
According to W3Cschools just 17% of users still use IE6. [Source](http://www.w3schools.com/browsers/browsers_stats.asp) Also their statistics show that just 4% of users have a resolution of 800x600 or lower. [Source](http://www.w3schools.com/browsers/browsers_display.asp) At what point do I neglect users that r...
[ 0.29163771867752075, 0.09168552607297897, 0.4206675589084625, -0.09168067574501038, -0.31289517879486084, -0.01582762598991394, 0.4702390134334564, 0.03436199948191643, -0.25680699944496155, -1.0448399782180786, -0.10517314821481705, 0.47915029525756836, -0.04091380536556244, -0.1472589075...
I don't get it! Rack: <http://rack.rubyforge.org/> Rails Metal: <http://weblog.rubyonrails.org/2008/12/17/introducing-rails-metal> I read the two articles and my eyes got blurry. How do the two components relate? Examples would be great? Rack is a very lightweight specification that Ruby web servers can implement. I...
[ 0.43631690740585327, -0.07896142452955246, 0.16682963073253632, 0.21170511841773987, -0.43928807973861694, -0.10922741889953613, 0.3653966188430786, -0.001374744577333331, -0.005505598150193691, -0.33502593636512756, 0.065545454621315, 0.29129329323768616, -0.0782676413655281, 0.4616634845...
an implementation of a Rack handler. You might find these two Railscasts on the subject informative: * [Rails Metal](http://railscasts.com/episodes/150-rails-metal) * [Rack Middleware](http://railscasts.com/episodes/151-rack-middleware) You can get a listing of the Rack middleware stack for a Rails application using...
[ 0.5581923723220825, -0.3156423568725586, 0.004839435685425997, 0.1609509289264679, -0.36115673184394836, -0.0031729487236589193, 0.27920764684677124, -0.024766048416495323, -0.19335906207561493, -0.44373464584350586, 0.03922351077198982, 0.29325467348098755, 0.09387173503637314, 0.24998529...
I really like the PHP function strtotime(), but the [user manual](http://ca.php.net/strtotime) doesn't give a complete description of the supported date formats. It only gives a few examples like "10 September 2000", "+1 week 2 days 4 hours 2 seconds", and "next Thursday". Where can I find a complete description? I ca...
[ 0.38893842697143555, -0.18065783381462097, 0.6844755411148071, -0.1327955275774002, -0.2988783121109009, -0.1282350718975067, 0.42210841178894043, 0.014679787680506706, -0.40187740325927734, -0.44292306900024414, -0.03443192318081856, 0.495319128036499, 0.028561217710375786, 0.083378925919...
unless today is a Thursday. If today is a Thursday, then * strtotime("Thursday") == strtotime("today") * strtotime("next Thursday") == strtotime("today + 7 days") If today is not a Thursday, then * strtotime("Thursday") == strtotime("next Thursday") I'm using PHP 5.2.6. **Update:** I guess the user manual has be...
[ 0.3645261824131012, -0.23319357633590698, 0.7385326027870178, 0.05686033517122269, 0.08289975672960281, -0.2662694454193115, 0.4530053734779358, 0.38723671436309814, -0.6150534152984619, -0.6939758658409119, -0.17012625932693481, 0.6949556469917297, -0.16980546712875366, 0.1858072280883789...
When I run this in Chrome (ver 2), it doesn't return the string, but it works in Firefox (ver 3). Why is this? ``` <html> <head> <script type="text/javascript"> function disp_prompt() { var name=prompt("Please enter your name","Harry Potter"); if (name!=null && name!="") { document.write("Hello " + nam...
[ 0.22062140703201294, -0.08905692398548126, 0.7365067005157471, -0.22460420429706573, -0.14088615775108337, -0.5518882274627686, 0.3475935161113739, -0.24782994389533997, 0.00027268490521237254, -0.8538638949394226, -0.16824768483638763, 0.6055388450622559, -0.22112885117530823, -0.14520883...
as in your event handler, there is no parsing going on, so nowhere for that string `'foo'` to go. What should happen according to the [original JavaScript reference](http://docs.sun.com/source/816-6408-10/document.htm#1221642) is: > Event handlers execute after the original document closes, so the write method implic...
[ 0.1419389694929123, 0.028899529948830605, 0.28859326243400574, -0.30562469363212585, 0.16209067404270172, -0.4667695462703705, 0.38952550292015076, -0.2154383659362793, -0.2533724904060364, -0.48002755641937256, -0.5264552235603333, 0.6296696066856384, -0.3314889371395111, 0.08086185902357...
content to be written to the document (but it never comes). In this case, you are `document.write()`ing a string: ``` Hello bobince! How are you today? ``` that is clearly not a valid HTML document. Chrome (and Safari, which behaves the same) is trying to parse it as an HTML document, but fails because it is non-wh...
[ 0.5173197984695435, 0.18214133381843567, 0.7327959537506104, -0.07509493082761765, -0.012829754501581192, -0.34103572368621826, 0.5451518893241882, 0.0012759862001985312, -0.428200364112854, -0.829773485660553, -0.43859994411468506, 0.5431365370750427, -0.354778528213501, 0.068422518670558...
save you, but Chrome doesn't. If you want to `document.write()` a new document, you should make sure it is indeed a complete document: ``` <html><head><title>Greetings</title><body><p>Hello bobince! How are you today?</p></body></html> ``` Or, if you want to `document.write()` a text string, you should theoreticall...
[ 0.3974531292915344, 0.026744293048977852, 0.42205819487571716, -0.10865134000778198, 0.09611916542053223, -0.2778184115886688, 0.31060266494750977, 0.19709239900112152, -0.5151442885398865, -1.096312165260315, -0.006673798896372318, 0.7825306057929993, 0.01377927977591753, -0.1100307703018...
or replacing the body contents using innerHTML. `document.write()` is needed in a few places (in particular, when you are creating a new window or frame from scratch), but otherwise it's generally the wrong thing and should be viewed with suspicion.
[ 0.5865105390548706, -0.07631316035985947, 0.34276580810546875, 0.14893610775470734, 0.09217432141304016, -0.4521406888961792, 0.11855103075504303, 0.13587340712547302, -0.23824775218963623, -0.5685164928436279, -0.4806000292301178, 0.47559085488319397, -0.040096625685691833, -0.07453017681...
What should I use for writing a file to the response? There are two different options as I see it. Option one is to read the file into a stream and then write the bytes to the browser with ``` Response.BinaryWrite(new bytes[5]) ``` Next option is to just write the file from the file system directly with Response.Wri...
[ 0.16090096533298492, -0.30009013414382935, 0.3321695923805237, 0.10220570862293243, -0.2622324824333191, 0.33143460750579834, 0.020866718143224716, -0.0604378841817379, -0.21726392209529877, -0.8178590536117554, 0.07192901521921158, 0.8407560586929321, -0.2378321886062622, 0.03978866711258...
memory, I would not write it to the file system and use `Response.WriteFile`.
[ 0.08810528367757797, 0.3135278522968292, 0.09237145632505417, 0.06852097809314728, 0.020639685913920403, 0.059454429894685745, 0.16246271133422852, 0.08036637306213379, 0.0012874886160716414, -0.3969727158546448, 0.14653034508228302, 0.502528965473175, -0.023751795291900635, -0.04230759292...
I'm trying to regexp a line from a webpage. The line is as follows: ``` <tr><td width=60 bgcolor='#ffffcc'><b>random Value</b></td><td align=center width=80> ``` This is what I tried, but it doesn't seem to work, can anyone help me out? 'htmlbody' contains the html page and no, I did not forget to import 're'. ``` ...
[ 0.05188099294900894, 0.014568480663001537, 0.5773133039474487, -0.22280147671699524, -0.22646960616111755, 0.4584406912326813, 0.6571719646453857, -0.25965940952301025, -0.03590123727917671, -0.676532506942749, -0.15682213008403778, 0.35621529817581177, -0.4367057979106903, -0.196085944771...
using a proper parser using the [HTMLParser module built in to Python](http://docs.python.org/library/htmlparser.html).
[ -0.21268610656261444, 0.3105982840061188, 0.3220517039299011, -0.029241258278489113, -0.1907307356595993, -0.12941916286945343, 0.5251156687736511, -0.1949966847896576, -0.11968407779932022, -0.5395724773406982, -0.4633963108062744, 0.34870612621307373, -0.38973134756088257, -0.57092487812...
I want to write a simple batch script that loads the Visual Studio build environment using `vcvars32.bat` and then continue with the build, using `vcbuild`. However, my script won't execute past the invocation of `vcvars32.bat`. The last output I get is: ``` Setting environment for using Microsoft Visual Studio 2008 x...
[ 0.17521031200885773, 0.3193129003047943, 0.27430459856987, -0.4399048984050751, -0.0870865061879158, 0.1210458055138588, 0.408810019493103, -0.4919050633907318, 0.11689937859773636, -0.5295453071594238, 0.16766691207885742, 0.7095550298690796, -0.49215269088745117, 0.1555715650320053, -0...
I am thinking of using Unity's free version. Does anyone know if it comes with full source code? Also, what are the licenses like (how flexible compare to Torque engine.) Unity does not comes with full source. You can request a source license, but the price is negotiated I believe. See bottom of page - <https://store....
[ 0.5003613233566284, 0.11620860546827316, 0.03547370806336403, -0.029837455600500107, -0.27894893288612366, -0.18172365427017212, 0.17645446956157684, 0.14971141517162323, 0.09027596563100815, -0.4791097640991211, 0.22969061136245728, 0.8994346857070923, -0.10393818467855453, 0.275175541639...
So according to my JSP reference book, as well as every other reference I can find on the web, I'm supposed to be able to do something like: ``` <%@ tag dynamic-attributes="dynamicAttributesVar" %> ``` and then when someone uses an attribute that I didn't define in an attribute directive, I should be able to access ...
[ 0.07250967621803284, -0.015465471893548965, 0.21143555641174316, -0.052238162606954575, -0.03551575914025307, -0.32126039266586304, 0.5380060076713562, 0.009973537176847458, -0.1279558390378952, -0.6294062733650208, 0.05003577470779419, 0.803532063961029, -0.22646234929561615, 0.0200640186...
Map dynamicAttributesVar = _jspx_dynamic_attrs; %> ``` Now, that hack doesn't work unless I also use the dynamic-attributes parameter on my tag directive, so it seems that the parameter is doing *something*. But what I want to know is, how can I make it do what it does for every other JSP user out there? Isn't "dyna...
[ -0.3405331075191498, -0.2857915759086609, 0.5676422119140625, -0.15254651010036469, -0.29996833205223083, -0.26862743496894836, 0.316683828830719, -0.3018603026866913, -0.3301204741001129, -0.6392360925674438, -0.12197989225387573, 0.7325783967971802, -0.4511125981807709, -0.16229701042175...
reasonable)
[ -0.06428021192550659, -0.1493838131427765, 0.17046523094177246, 0.07968805730342865, 0.1127675473690033, 0.36684414744377136, 0.7439561486244202, -0.6625001430511475, 0.2099902629852295, 0.08051956444978714, -0.16329650580883026, 0.8155388236045837, -0.322195440530777, 0.16427429020404816,...
I've been trying to write a mySQL-statement for the scenario below, but I just can't get it to work as intended. I would be very grateful if you guys could help me get it right! I have two tables in a mySQL-database, *event* and *route*: **event:** > id | date | destination | drivers | > passengers | description | ...
[ 0.049623019993305206, 0.10997919738292694, 0.1532755345106125, 0.33169135451316833, 0.44915008544921875, 0.19080621004104614, -0.11657203733921051, 0.03680950403213501, -0.41034531593322754, -0.6284506916999817, 0.07194176316261292, 0.3682195246219635, 0.013639789074659348, 0.0199970770627...
field *name* in the table *route* (i.e. the destination must already exist in *route*). * *executed* tells if the event is upcoming (0) or already executed (1). * *distance* is the distance to the destination in km from the home location. What I want is to get the total distance covered for one specific user, only cou...
[ 0.11598069220781326, -0.09757934510707855, 0.4936412572860718, 0.25234177708625793, -0.1094924807548523, 0.1956063061952591, 0.027404997497797012, -0.20129679143428802, -0.23496407270431519, -0.45307356119155884, -0.013514364138245583, 0.3538355231285095, 0.3222351372241974, 0.144565418362...
AND executed = 1` to get the executed events where Jill was driving, and `SUM()` to get the total distance, but how do I combine the two tables and get it all to work? Your help is very much appreciated! /Linus Isn't "dynamicAttributesVar" the name of the key in the page context that the dynamic attributes are put in...
[ 0.06877119839191437, -0.22972074151039124, 0.3136547803878784, 0.1571548879146576, -0.11849990487098694, -0.126241534948349, 0.18441633880138397, -0.49447885155677795, -0.19407933950424194, -0.2727693021297455, 0.1260729432106018, 0.7907653450965881, -0.10459688305854797, -0.40455234050750...
I have a php site setup with multiple controllers for the different sections of the site. e.g index.php, gallery.php, faq.php etc. Currently I have a base template which I call from each controller, which in turn includes the relevant content for the page. I also use tinymce to edit this content file. So it's rea...
[ 0.5817933678627014, 0.24274428188800812, 0.4905962646007538, 0.20770613849163055, -0.1405486762523651, -0.11696934700012207, -0.08429662138223648, 0.20472925901412964, -0.39740055799484253, -0.6260380148887634, 0.2831481993198395, 0.34316352009773254, -0.12360569089651108, 0.22981351613998...
find a cms which can plug in to my multi-controller system, instead of forcing me to develop my app in it's framework. I guess I want it to manage just the content, not any other backend stuff of my site. Hope this is understandable. I believe you're looking for: ``` info symbol <addresss> ``` Print the name of a s...
[ -0.11412202566862106, 0.2538018524646759, 0.7212071418762207, 0.17073459923267365, 0.2192935198545456, -0.01315300166606903, -0.41725650429725647, -0.00358250318095088, -0.515508770942688, -0.8850455284118652, -0.08598657697439194, 0.1543768048286438, -0.396592915058136, -0.026480080559849...
read more about it [here](https://sourceware.org/gdb/onlinedocs/gdb/Symbols.html).
[ 0.4672158658504486, -0.16098317503929138, 0.09663492441177368, 0.03800845518708229, 0.09772138297557831, -0.42175552248954773, 0.2154642939567566, 0.5944722890853882, -0.3939652442932129, -0.519336998462677, -0.28685271739959717, -0.12357094883918762, 0.13134470582008362, 0.166548132896423...
Are there tools that make the job easier? If command-line only tools exist, then can anyone speculate if there is a market for a GUI tool? For example, you can create a relational database by modeling visually. Should the same notion exist for LDAP? Apache Directory Studio includes an ldif-Editor. It is still a text ed...
[ 0.17335067689418793, -0.011893226765096188, 0.14654821157455444, 0.1784539669752121, -0.34655195474624634, -0.3742048442363739, -0.1105138286948204, -0.1385149210691452, -0.12766577303409576, -0.6397517919540405, -0.0015016616089269519, 0.62675541639328, -0.46141108870506287, -0.4168251752...
I have some basic classes with cloning methods: ``` public class SimpleClass { public int ValueA { get; set; } public string ValueB { get; set; } public ulong ValueC { get; set; } public SimpleClass TypedClone() { var item = new SimpleClass { ValueA = this.ValueA, ...
[ -0.034886471927165985, -0.2644151449203491, 0.2860187590122223, -0.22616183757781982, 0.0865056961774826, 0.2093408703804016, 0.3457942605018616, -0.3719557523727417, 0.003447467926889658, -0.5603792667388916, -0.22571438550949097, 0.38768208026885986, -0.35748425126075745, 0.3117556571960...
ValueC = this.ValueC }; return item; } } ``` I want a unit test that will tell me if I add ValueD, but forget to add it to the Clone method. My first attempt was to use Moq and its VerifyGet method to make sure that each property was accessed. ``` public void GenericCloneTest() { ...
[ 0.38418737053871155, -0.04203920438885689, 0.23137015104293823, -0.04788532480597496, 0.052783478051424026, 0.10156002640724182, 0.4565875828266144, -0.43690550327301025, 0.0237566065043211, -0.36894509196281433, 0.003201607847586274, 0.7736331820487976, -0.3046080470085144, 0.458278626203...
var c = mock.Object.GenericClone(); var properties = typeof(SimpleClass).GetProperties(); foreach (var property in properties) { var expression = Expression.Property( Expression.Parameter(typeof(SimpleClass), "c"), property); var type
[ -0.024350333958864212, -0.008185024373233318, 0.4229370355606079, -0.22719494998455048, 0.06355196237564087, 0.33938369154930115, 0.6076593399047852, -0.5324081778526306, 0.028088824823498726, -0.2729649841785431, -0.5393474102020264, 0.798298180103302, -0.422344446182251, 0.22268627583980...
= Expression.GetFuncType(typeof (SimpleClass), property.PropertyType); var actionExpression = Expression.Lambda(type, expression, Expression.Parameter(typeof(SimpleClass), "c")); mock.VerifyGet<object> ((Expression<Func<SimpleClass,object>>)act...
[ -0.024475988000631332, 0.05110293626785278, 0.48788148164749146, -0.17003320157527924, 0.2287231981754303, 0.10202790051698685, 0.5232748985290527, -0.4801703691482544, -0.08889422565698624, -0.18030637502670288, -0.19641873240470886, 0.8565481305122375, -0.5252288579940796, -0.08140442520...
needs to know the return type of the Property accessor, and I can't figure out any way to insert it at runtime (you'll notice my lame attempt to use "object" which crashed and burned). I'm not even sure using Moq is a good idea, it was just my first one. UPDATE: With no quick and easy generic way to test a cloning m...
[ 0.4268011748790741, 0.06894678622484207, 0.11387581378221512, 0.0968247801065445, 0.15369732677936554, -0.08763198554515839, 0.16675452888011932, -0.023075683042407036, 0.009905393235385418, -0.6811252236366272, 0.01373008918017149, 0.5400934815406799, -0.12303248047828674, 0.1990584731101...
var signature = typeof (Connection) .GetProperties() .Select(p => p.Name) .Aggregate( new StringBuilder(), (builder, name) => builder.Append(name)).ToString();
[ 0.02706521563231945, -0.31763020157814026, 0.5544835329055786, -0.36034688353538513, 0.23591838777065277, 0.27507713437080383, 0.6003278493881226, -0.5796336531639099, -0.19824865460395813, -0.5434604287147522, -0.1213931143283844, 0.3823704123497009, -0.4897514283657074, 0.358562231063842...
Assert.AreEqual( "DataSessionStateDataTechnologyBytesReceivedBytesSentDuration", signature); ``` If I add a property the test will fail. It still depends on me being responsible enough to fix the rest of the test when the signature match fails. One of the simplest ways to ensure you get all of y...
[ 0.23899000883102417, -0.06410474330186844, 0.2156321108341217, 0.25416040420532227, -0.10778817534446716, -0.42090609669685364, 0.5697239637374878, -0.5653185844421387, 0.019281353801488876, -0.36898913979530334, 0.14805811643600464, 0.9549496173858643, 0.04427148774266243, 0.1777333319187...
These questions are for TeamCity users only 1) Is it possible to configure TeamCity to extract build artifact information based on your own your regular expressions? This is exactly what Pulse does [here](http://zutubi.com/products/pulse/features/list/#process) 2) Does TeamCity integrate with any task/bug tracking to...
[ 0.20255939662456512, -0.09712640196084976, 0.05794646963477135, 0.43848034739494324, -0.3012467324733734, -0.08191561698913574, 0.10191788524389267, -0.44195523858070374, 0.04455699399113655, -0.4431627094745636, 0.252442866563797, 0.4501907229423523, -0.30892693996429443, -0.5396716594696...
it good? Atlassian seems to be much better. 1. TeamCity allows to get build artifacts with a Ant-based pattern. You can specify multiple patterns and set target directory for each pattern. Read more at <http://www.jetbrains.net/confluence/display/TCD4/Build+Artifact> 2. There is an integration which allows to link RF-3...
[ 0.7426649332046509, 0.18383537232875824, 0.15798543393611908, 0.03961188718676567, -0.3514845371246338, -0.428481787443161, 0.20779083669185638, 0.04065801575779915, 0.04049143195152283, -0.44476887583732605, 0.19742101430892944, 0.42850974202156067, -0.3027110993862152, -0.267733424901962...
Paid customers also have e-mail support. Hope this helps, KIR
[ 0.5203666687011719, -0.06030729040503502, 0.05711646378040314, 0.16402669250965118, -0.1018022820353508, 0.03259170427918434, 0.3729460835456848, 0.27579888701438904, 0.0017437196802347898, -0.477864533662796, -0.22866593301296234, -0.04277214780449867, 0.44102153182029724, 0.0229126960039...
**What patterns contribute or detract from the usability of a CLI interface?** As an example consider the CLI for ClearCase. The CLI is very comprehensive (+1) but it is has several glaring opportunities. Recently, I wanted to force the files to lower case into ClearCase using [clearfsimport](http://publib.boulder.ibm...
[ -0.0895204246044159, 0.16662712395191193, 0.6128894686698914, 0.01624007150530815, -0.024000342935323715, -0.23600338399410248, 0.010532692074775696, 0.10349337756633759, -0.19121600687503815, -0.582155704498291, -0.14902934432029724, 0.37832194566726685, -0.3131360709667206, 0.00798137392...
`fsclearimport` * `clear_fs_import` * `clearimport_fs` Anything would be better than what they went with. The code I am working on **IS** a CLI and this experience made me look at my own choices. I think I have all the basics covered (standard help, long-form vs short-form, short meaningful names, providing examples, ...
[ 0.16621331870555878, 0.17272739112377167, 0.43999549746513367, -0.040066033601760864, -0.09455481171607971, -0.26665201783180237, 0.06101415678858757, -0.23283743858337402, -0.06946548819541931, -0.38179612159729004, -0.21176669001579285, 0.5861598253250122, -0.3300236463546753, -0.2809240...
that CLI needs to support scriptability (participate many times perhaps in a series of pipes). Another is that autocompletion and namespaces don't exist in the same way. You don't always have a nice colorful GUI doing stuff for you. CLIs must document themselves externally to customer directly. And finally the audience...
[ 0.25889888405799866, 0.11349242180585861, 0.3868692219257355, 0.05692271515727043, -0.03995876759290695, -0.2610597610473633, -0.11977812647819519, 0.1301100105047226, -0.29593485593795776, -0.4116306006908417, -0.093433678150177, 0.6219114065170288, -0.25612980127334595, 0.055496592074632...
to remember them effectively, and the help system would be a pain to slog through. But, if I don't remember how any particular subcommand works, I can just type: ``` svn help [subcommand] ``` ...and it shows me only the relevant portions of the help documentation.
[ 0.18496422469615936, 0.4126514494419098, 0.4068897068500519, 0.07361940294504166, 0.20622530579566956, -0.21637816727161407, 0.43733641505241394, 0.15668417513370514, -0.14091776311397552, -0.6542056798934937, -0.2771672010421753, 0.6134242415428162, -0.05702010914683342, -0.16078238189220...
I've work in embedded systems and systems programming for hardware interfaces to date. For fun and personal knowledge, recently I've been trying to learn more about server programming after getting my hands wet with Erlang. I've been going back and thinking about servers from a C++/Java prospective, and now I wonder h...
[ 0.33089205622673035, 0.1467459499835968, -0.09536514431238174, 0.11771705001592636, -0.12211957573890686, 0.11879370361566544, -0.08712412416934967, 0.15122075378894806, -0.5038697719573975, -0.8051181435585022, 0.3457012474536896, 0.518246054649353, -0.2309560924768448, 0.0742360949516296...
how does one determine the thread pool size? Does one simply have to measure and find the optimal balance? Eventually as the system scales then perhaps more than one server is needed to handle requests. How are requests managed across mulitple servers handling a large client base? I am just looking for some direction ...
[ 0.3815845847129822, -0.08252093195915222, 0.24138082563877106, 0.24138577282428741, -0.23327702283859253, 0.24370047450065613, -0.088679738342762, 0.06453588604927063, -0.5506141185760498, -0.6526877284049988, 0.27394312620162964, 0.49677494168281555, -0.09287969022989273, 0.12220222502946...
C++, and quite plesant to work with. Also the C++0x network libraries will be based on ASIO's implementation, so it's valuable knowledge. As for designs 1thread per client, doesn't work, as you've already learned. And for high performance multithreading the best number of threads seems to be CoresX2, but for servers, ...
[ -0.039972588419914246, 0.044748011976480484, 0.26855403184890747, 0.16818757355213165, -0.1490764021873474, 0.02587871067225933, -0.1477230340242386, 0.007771951146423817, -0.5513924360275269, -0.6326823234558105, 0.014783913269639015, 0.3404272496700287, -0.4377304017543793, -0.1131047010...
succesful systems, so if your system can be balanced to work optimally with similar numbers atleast you'll know your design isn't completely lousy.
[ -0.06845498830080032, -0.1419186145067215, 0.16819611191749573, 0.3479563891887665, 0.011313672177493572, 0.240531787276268, 0.1376148760318756, 0.10234543681144714, -0.10897905379533768, -0.5306317210197449, -0.05110232159495354, 0.365185022354126, -0.46247538924217224, 0.3713309168815613...
Can please someone one explain how to deal with out-of-order packets. I'm using raw socket to capture packets, and parse them as they come, but some of them come in wrong order, for example: 1. Id...........Flags 2. 16390 : (PSH, ACK) 3. 16535 : (PSH, ACK) 4. 16638 : (ACK) 5. 16640 : (PSH, ACK) 6. 16639 : (ACK) 7. 166...
[ -0.31712812185287476, -0.1431436687707901, 0.6460618376731873, 0.3425520658493042, -0.12136005610227585, 0.39818596839904785, 0.17353251576423645, -0.2677189111709595, -0.39427149295806885, -0.5140945911407471, -0.2532956004142761, -0.14184235036373138, -0.3349345922470093, 0.0732116699218...
so I just pass them along to parser, and then packet that preceds it comes and parser just discards it as corrupted. Is there any way to deal with it? TCP guarantees order. So I will just assume you are talking about IP. One thing you could try is putting the packets in a min-heap and then waiting until the next pack...
[ 0.3085584342479706, -0.03186589106917381, 0.1906224489212036, 0.19425570964813232, -0.15439634025096893, -0.18009531497955322, 0.11715593934059143, 0.24612557888031006, -0.19817018508911133, -0.5418351888656616, -0.03488804027438164, 0.37863653898239136, -0.32820338010787964, 0.25309273600...
you'll receive an earlier push packet.
[ 0.2511501610279083, -0.13212449848651886, 0.5715311765670776, 0.022223252803087234, 0.02474181167781353, -0.08869188278913498, -0.09847705066204071, -0.07974906265735626, -0.18069300055503845, -0.6579888463020325, -0.20742900669574738, 0.40910154581069946, 0.08447495102882385, -0.033759489...
In a follow up to a [previous question](https://stackoverflow.com/questions/762762/what-minimum-version-of-net-can-i-expect-on-client-machines), would you avoid using a component library that required .NET 3.0/3.5? Would the additional install requirements be too much to ask or, is the .NET installer easy enough to jus...
[ 0.49360212683677673, -0.298128604888916, 0.27684739232063293, 0.08389032632112503, 0.12170165777206421, -0.4010731875896454, 0.1773255467414856, -0.0791708305478096, -0.3088778853416443, -0.8739269971847534, -0.11844377964735031, 0.8798618316650391, -0.1997707188129425, -0.1445981860160827...
client that for some reason refused to accept any software that required .NET 3, then I would have to accomodate them if I expected to get paid. As for the installer, it really is no bigger deal to install the latest .NET then it is to install .NET 2.
[ 0.2155582755804062, -0.1737060248851776, 0.49787747859954834, -0.09737773984670639, -0.28746867179870605, -0.18564282357692719, -0.02913976088166237, 0.2306317239999771, -0.29068252444267273, -0.7018432021141052, 0.0685754120349884, 0.9557254910469055, -0.34055107831954956, 0.0813509151339...
How can I enumerate through all the key/values of a FormCollection (system.web.mvc) in [ASP.NET MVC](http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework)? Here are 3 ways to do it specifically with a FormCollection object. ``` public ActionResult SomeActionMethod(FormCollection formCollection) { foreach (var key in ...
[ -0.04613848403096199, -0.007869096472859383, 0.9521265029907227, -0.26389026641845703, 0.11791817843914032, -0.1783873736858368, 0.41266584396362305, -0.8529928922653198, -0.009990441612899303, -0.4041332006454468, -0.27281442284584045, 0.48764023184776306, -0.19179131090641022, 0.13451194...
C# 2005 I am using a installer class as I need a custom action that will read in a xml config file. So when the user double clicks the setup, there will be a config.xml file in the same folder. I would like to read in this config.xml file on install event. The folder will contain setup.exe and config.xml However, it...
[ 0.45848605036735535, 0.10657019168138504, 0.3963709771633148, -0.28496235609054565, -0.13672147691249847, -0.4433985650539398, 0.19949741661548615, -0.2303609848022461, -0.17968641221523285, -0.41569608449935913, -0.12327413260936737, 1.0673863887786865, -0.3929058313369751, -0.20672689378...
the current location. Which would be the setup folder. The difficulty is that my setup folder will be downloaded from the Internet and any user could download it and unzip it anywhere on their computer. Here is my code snippet for the on install event. Many thanks for any advice ``` protected override void OnAfterI...
[ 0.31543174386024475, 0.02526572346687317, 0.8837835192680359, -0.22716785967350006, 0.6250154376029968, -0.15667389333248138, 0.2847292721271515, -0.09465151280164719, -0.13855816423892975, -0.8938536643981934, -0.3750491738319397, 0.4368865489959717, -0.20848189294338226, 0.23014833033084...
this. The answer was just to write a simple bat file that will do all the work for me. Then the bat file will call the setup and install the application. Thanks,
[ 0.5902974009513855, 0.15631012618541718, 0.21772189438343048, 0.2917565405368805, -0.22497186064720154, 0.08356817811727524, 0.10680216550827026, -0.02766372263431549, 0.2275560051202774, -0.5292974710464478, 0.06839536875486374, 0.582824170589447, 0.08698076754808426, -0.20003709197044373...
I'm very new to the AJAX and Javascript world and I'm trying to implement [Scott Hanselman's](http://www.hanselman.com/blog/ASPNETMVCPreview4UsingAjaxAndAjaxForm.aspx) example of form submission to update part of a page. I have copied his example almost word-for-word and I can't seem to get it to work. When I click the...
[ 0.2582234740257263, 0.06084137782454491, 0.3115089535713196, -0.08968373388051987, -0.2818526029586792, -0.2839609980583191, 0.2790706157684326, -0.20794041454792023, -0.11034122854471207, -0.7538353204727173, 0.0868973582983017, 0.2634597420692444, -0.06560243666172028, 0.0581208579242229...
new AjaxOptions { UpdateTargetId = "target" })) { %> <%= Html.TextBox("TextBox")%> <input type="submit" value="Submit" /> <span id="target" /> <% } %> </asp:Content> ``` And my controller action: ``` public string TestAction(string TextBox) { return TextBox; ...
[ 0.029614385217428207, -0.13181084394454956, 0.6429286003112793, 0.02796740084886551, -0.10301003605127335, -0.18565301597118378, 0.14785543084144592, -0.283855676651001, -0.00542850699275732, -0.8452574014663696, 0.09979119151830673, 0.4328882694244385, -0.2390526384115219, -0.303710281848...
to do is call the action and render the result as a new page, instead of updating the target span. Here are some small screenshots to illustrate what's happening. [Screenshot 1 http://martindoms.com/scr1.JPG](http://martindoms.com/scr1.JPG) [Screenshot 2 http://martindoms.com/scr2.JPG](http://martindoms.com/scr2.JPG)...
[ 0.2922041714191437, 0.023652328178286552, 0.5732767581939697, -0.23521821200847626, -0.0010576838394626975, 0.011737675406038761, 0.4661926329135895, -0.5357306599617004, -0.3097973167896271, -0.4365552067756653, -0.18611620366573334, 0.2683972120285034, -0.23749910295009613, -0.2373609989...
I am not particularly new to C/C++ but today I discovered some things that I didn't expect. This compiles in gcc: ``` /* test.c */ #include <stddef.h> // ! typedef unsigned long int size_t; // NO ERROR typedef unsigned long int size_t; // NO ERROR int main(void) { typedef unsigned long int size_t; // NO ERROR r...
[ 0.13409103453159332, 0.27007320523262024, 0.1887386590242386, -0.27644798159599304, -0.05238993838429451, -0.07135655730962753, 0.42730391025543213, -0.32021528482437134, 0.000747634214349091, -0.5375946164131165, -0.07090062648057938, 0.511317789554596, -0.29281723499298096, 0.02395299263...
unsigned long int size_t; // ERROR ``` Similarly in g++ this compiles: ``` /* test.h */ // ! header #include <cstddef> inline void* operator new(size_t, void* p) throw() { return p; } ``` This doesn't: ``` /* test.h */ // ! header #include <new> // ! inline void* operator new(size_t, void* p) throw() { return...
[ 0.027884716168045998, -0.027803923934698105, 0.23927025496959686, -0.5146918892860413, -0.03998757526278496, 0.09388916939496994, 0.26861676573753357, -0.5611732006072998, -0.09493673592805862, -0.5208426117897034, -0.42137444019317627, 0.5124900341033936, -0.5072795748710632, -0.149282991...
char *buffer[4]; int *i = new (buffer) int; int *j = new int; return 0; } ``` (Replacing the standard new operator works in all of the above cases. Replacing the replacement new operator is illegal, I know.) It is easy to see a pattern, but can somebody offer me a "standard" explanation? Why can I do things in...
[ 0.38970762491226196, 0.09091166406869888, 0.10659196227788925, -0.039665427058935165, -0.2625083029270172, -0.13922277092933655, 0.5360398292541504, -0.1290428638458252, -0.3810827434062958, -0.5245628952980042, -0.08481376618146896, 0.46402838826179504, -0.28423771262168884, 0.04646606743...
g t ; & g t ; by mistake and forgot to include cstdlib. I have fixed the code so it compiles. However, another thing that I had omitted was #define \_NEW, which proved crucial. Apparently in GNU the header guard of <new> defines \_NEW, so my defining it here prevented the inclusion of the standard new header, so I the ...
[ 0.3243643343448639, 0.05947592481970787, 0.32919010519981384, -0.21065671741962433, -0.15472175180912018, -0.11076677590608597, 0.3419158458709717, -0.3081992268562317, -0.39139509201049805, -0.6946971416473389, -0.02171573042869568, 0.6758923530578613, -0.31862136721611023, 0.142337799072...
size_t; // NO ERROR typedef unsigned long int size_t; // NO ERROR int main(void) { typedef unsigned long int size_t; // NO ERROR return 0; } ``` Not that I want to do that anyway, but just wondering. EDIT: Thanks, that really answers all of it. Changing it to xyz does not allow multiple definitions in a given s...
[ 0.4436368942260742, 0.20827166736125946, 0.22632750868797302, -0.2627775967121124, -0.04195927083492279, -0.1264490783214569, 0.378399521112442, 0.00041715565021149814, -0.33686426281929016, -0.5538490414619446, 0.11714550852775574, 0.5488908886909485, -0.4121961295604706, 0.07427684962749...
I was trying to figure out how to ensure that (1) my code is being called in the tests (e.g my placement new) and (2) that my code doesn't clash with the GNU libraries. The answer to (1) now seems pretty obvious. I just #define the header guard macro from the standart X.h into my X.h :). Using GCC 4.0.1 on MacOS X 10.4...
[ 0.4725129306316376, 0.24190056324005127, 0.18268072605133057, -0.1298961341381073, -0.2046068161725998, -0.13294172286987305, 0.18172883987426758, -0.20944635570049286, -0.09659131616353989, -0.7062487602233887, -0.13091327250003815, 0.6678988933563232, -0.4127592146396637, 0.0556012056767...
the version in `stddef.h`. The first typedef inside main is 'obviously' legal; it is a new scope and can define a new meaning for the name. The C99 Rationale says: > In C89, a typedef could be redeclared in an inner block with a declaration that explicitly contained a type name. This rule avoided the ambiguity about...
[ -0.17137520015239716, -0.30986475944519043, 0.46174269914627075, -0.3459625840187073, -0.2947712540626526, -0.39567357301712036, 0.4832843840122223, 0.09437153488397598, -0.19966763257980347, -0.27433061599731445, -0.4069432020187378, 0.22897614538669586, -0.6358369588851929, 0.14117164909...
decided to make library headers “idempotent,” that is, they should be > includable any number of times, and includable in any order. This requirement, which reflects > widespread existing practice, may necessitate some protective wrappers within the headers to > avoid, for instance, redefinitions of typedefs. To ens...
[ 0.35492902994155884, -0.023387031629681587, 0.10380291938781738, 0.1477990299463272, 0.16658075153827667, -0.45814549922943115, 0.1552598625421524, -0.2165442854166031, -0.30427083373069763, -0.550898015499115, -0.5044069290161133, 0.300912082195282, -0.33783239126205444, 0.291639894247055...
of `size_t` is probably either a feature of GCC or a bug - actually, a feature. If you change `size_t` to `xyz`, you get many more errors.
[ 0.5570164322853088, 0.13832546770572662, 0.09210309386253357, 0.017822470515966415, 0.17590981721878052, -0.13801810145378113, -0.011639668606221676, 0.5182421207427979, -0.267979234457016, -0.5222924947738647, -0.3403811752796173, 0.45330744981765747, -0.4088866710662842, 0.49442592263221...
I'm developing a game for the iPhone at the moment and I'd like to offer the player the option to submit their high scores to my server. The gameplay itself does not require internet connectivity. What's the best way to handle this, just make the request and fail gracefully if there's no internet connection, or is the...
[ 0.1854666918516159, 0.04880703613162041, 0.1741141825914383, 0.37498563528060913, 0.17757973074913025, 0.02428826317191124, 0.1449434459209442, 0.07734772562980652, -0.11287903785705566, -0.7262781858444214, 0.3385840058326721, 0.43872854113578796, -0.039141468703746796, -0.039731927216053...
is appreciated. NSURLConnection will do all you need. If there is a connection available (WAN or WiFi) it will do everything needed to set up the connection. If there isn't a connection when you try, simply store the high-score and upload it when your app is next launched. Unless you want to provide detailed informati...
[ -0.1860916167497635, -0.2162068635225296, 0.44891777634620667, 0.45464813709259033, 0.08969622850418091, -0.437627911567688, 0.25578221678733826, 0.2578711211681366, -0.15267840027809143, -0.7652250528335571, -0.2030760645866394, 0.5616148114204407, 0.05174844712018967, -0.1632140427827835...
I have two tables namely States, Package\_Details. Below are the details of the table. States * state\_id * state\_name Package\_Details * id * sender\_state //Stores state with state ID * receiver\_state //Stores state with state ID Now I am having problems constructing a SQL query that will select and display th...
[ 0.2938283383846283, 0.2049974650144577, 0.3177858591079712, -0.05126171186566353, 0.017914362251758575, 0.18815243244171143, 0.16599814593791962, -0.5633215308189392, -0.19939783215522766, -0.8763339519500732, -0.03230036795139313, 0.1609458029270172, -0.18375928699970245, 0.51235729455947...
uses `states` twice in the query by assigning it an alias (`states s1`) and using the aliases to refer to the table. If you need to do this join often, you may wish to create a view. MySQL's documentation on joins is here: <http://dev.mysql.com/doc/refman/5.0/en/join.html>. The documentation on creating views is here...
[ 0.28980374336242676, 0.19349773228168488, 0.2724769711494446, 0.011312550865113735, -0.020693695172667503, -0.08831433951854706, 0.09135027229785919, -0.17869634926319122, -0.33582741022109985, -0.8010931611061096, -0.06501349806785583, 0.10478837043046951, -0.33043721318244934, 0.24863943...
I made a Powershell function just now and saved it to a ps1 file. However, when I try to execute it from within powershell, it won't run. I've allready changed to the settings for running unsigned code by entering this command: ``` set-executionpolicy remotesigned ``` The function is this: ``` Function listAllPath...
[ 0.366985023021698, -0.036610886454582214, 0.785369873046875, -0.13011404871940613, 0.36332303285598755, 0.055407796055078506, 0.1728658527135849, -0.31617724895477295, -0.22269600629806519, -0.6649988293647766, -0.04666242003440857, 0.5965526700019836, -0.4157845675945282, -0.0059798350557...
an error saying: > The term 'listAllPaths.ps1' is not > recognized as a cmdlet, function, > operable program, or script file. > Verify the term and try again. I've tried several things and I honestly don't know how to get this to work? What I expect is for a file to be created on the given path, c:\ in this exam...
[ 0.6240859031677246, 0.08503303676843643, 0.2488810420036316, 0.26155441999435425, -0.16897112131118774, -0.24387520551681519, 0.47217249870300293, 0.17661355435848236, -0.3720298409461975, -0.6395619511604309, 0.1888025999069214, 0.3238900601863861, -0.45622044801712036, 0.1507016271352768...
tried the online search-engines. This is a typical error across many platforms where your environment path does not include your current directory. so when you execute your script (or command or program etc), your runtime environment looks everywhere except your current/working directory. Try ``` PS> .\listAllPaths....
[ 0.09953554719686508, -0.06375879049301147, 0.40109193325042725, 0.005562015809118748, 0.20054596662521362, 0.05724693834781647, 0.3476531207561493, -0.04171338304877281, -0.08110632002353668, -1.0373022556304932, -0.11856264621019363, 0.5610108971595764, -0.39072805643081665, -0.2892739772...
How can I get a float or real value from integer division? For example: ``` double result = 30/233; ``` yields zero. I'd like the value with decimal places. How can I then format so only two decimal places display when used with a string? You could just add a decimal to either the numerator or the denominator: ```...
[ 0.07294107228517532, 0.07189153134822845, 0.0956430733203888, 0.0040440792217850685, -0.16206082701683044, 0.26994946599006653, -0.11652844399213791, -0.3386083245277405, -0.1456577330827713, -0.3535018861293793, 0.13349202275276184, 0.2871880531311035, -0.02327398769557476, -0.00293019320...
after the decimal point.
[ -0.3719935119152069, 0.40626227855682373, 0.2602522671222687, 0.04799572750926018, -0.3075658977031708, 0.21574580669403076, -0.13187777996063232, 0.12118682265281677, -0.1034112200140953, -0.10134303569793701, -0.2165820449590683, -0.056534796953201294, 0.19721676409244537, 0.436538994312...
I want to be notified when the current application will change. I looked at NSWorkspace. It will send notifications only when your own application becomes active or loses the activity. I want to be informed about every application. How can I do this in Cocoa? Thank you Jason. kEventAppFrontSwitched in Carbon Event Mana...
[ 0.39386188983917236, 0.1469235122203827, 0.42489004135131836, -0.06433339416980743, 0.249110609292984, -0.17356058955192566, 0.5173998475074768, -0.22848676145076752, -0.26092609763145447, -0.49417027831077576, -0.3023732602596283, 0.8952205181121826, -0.06140558421611786, -0.3096008002758...
NSLog(@"%@", [[NSWorkspace sharedWorkspace] activeApplication]); } ``` And the handler ``` static OSStatus AppFrontSwitchedHandler(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData) { [(id)inUserData appFrontSwitched]; return 0; } ```
[ -0.616549015045166, -0.23852990567684174, 0.4396466314792633, -0.162873312830925, 0.0533149316906929, 0.06456905603408813, 0.26491305232048035, 0.011386812664568424, -0.314205527305603, -0.4606253206729889, -0.46882155537605286, 0.6114815473556519, -0.2465454339981079, -0.02862748317420482...
does anyone know how to make live javascript time running.. i have this php code ``` $expiredate = date('d m Y G:i:s', $rdate1); $f_ex_date = explode(" ", $expiredate); $f_ex_time = explode(":", $expiredate); $_endDate = mktime($f_ex_date[0],$f_ex_date[1],$f_ex_date[2],$f_ex_date[1],$f_ex_date[0],$f_...
[ 0.27160319685935974, 0.2428319752216339, 0.7688606381416321, -0.07431089133024216, 0.4076521396636963, 0.05638871341943741, 0.575378954410553, -0.21660900115966797, -0.34237730503082275, -0.24887235462665558, -0.24580588936805725, 0.24972376227378845, -0.19198815524578094, 0.13340881466865...
<span style=\"color: #C11B17;font-family:arial;font-size: 16px;\">".$mins."</span> Minutes <span style=\"color: #C11B17;font-family:arial;font-size: 16px;\">".$secs."</span> Seconds"; ``` is it possible to make it like running live?? Here's how to do it. [**Working Demo**](http://www.rootspot.com/stackoverflow/timer....
[ 0.3059510290622711, 0.022675076499581337, 1.0137356519699097, -0.2411884367465973, 0.10242217034101486, -0.011080891825258732, 0.7617814540863037, -0.20200905203819275, -0.613005518913269, -0.5819167494773865, -0.1078345850110054, 0.6322106719017029, -0.0480041466653347, -0.111917033791542...
class='datetime' id='days'>%s</span> Days <span class='datetime' id='hours'>%s</span> Hours <span class='datetime' id='minutes'>%s</span> Minutes <span class='datetime' id='seconds'>%s</span> Seconds ", $days, $hours, $mins, $secs); ``` I'm not quite sure where that middle step you were taking for came fr...
[ 0.24216386675834656, -0.3223709166049957, 0.5263524651527405, -0.05312534049153328, 0.14513981342315674, -0.02674155682325363, 0.16566674411296844, -0.2036433070898056, -0.3487362563610077, -0.8054581880569458, -0.1366828829050064, 0.3866603374481201, -0.001327651203610003, 0.2737384438514...
var eSeconds = document.getElementById('seconds'); var timer; timer = setInterval(function() { var vDays = parseInt(eDays.innerHTML, 10); var vHours = parseInt(eHours.innerHTML, 10); var vMinutes = parseInt(eMinutes.innerHTML, 10); var vSeconds = parseInt(eSeconds.innerHTML, 10);...
[ 0.21975861489772797, -0.22324255108833313, 0.6719993352890015, -0.20306694507598877, 0.2115723192691803, 0.5055211782455444, 0.6051279306411743, -0.4933708906173706, -0.14409425854682922, -0.4746752381324768, -0.3223555386066437, 0.6326678991317749, -0.1589457094669342, 0.2085462510585785,...
vMinutes--; if(vMinutes < 0) { vMinutes = 59; vHours--; if(vHours < 0) { vHours =
[ -0.03152623772621155, -0.07965697348117828, 0.5966629385948181, -0.03951926529407501, 0.2840458154678345, 0.5795459747314453, 0.1352081596851349, -0.20552444458007812, -0.113007090985775, -0.2542990446090698, -0.030729489400982857, 0.391880601644516, -0.4869832992553711, 0.0987329035997390...
23; vDays--; } } } else { if(vSeconds == 0 && vMinutes == 0 &&
[ 0.18758782744407654, -0.35601091384887695, 0.5261270999908447, -0.1259993016719818, 0.13199342787265778, 0.1661481112241745, 0.4984084963798523, -0.22063274681568146, -0.12734080851078033, -0.5826937556266785, -0.21828973293304443, 0.44758501648902893, -0.15661023557186127, 0.3139672279357...
vHours == 0 && vDays == 0) { clearInterval(timer); } } eSeconds.innerHTML = vSeconds; eMinutes.innerHTML = vMinutes; eHours.innerHTML = vHours;
[ 0.13770903646945953, -0.04334947094321251, 0.7532564401626587, -0.12754569947719574, 0.3097633123397827, 0.3851783573627472, 0.6022222638130188, -0.49980008602142334, -0.19446387887001038, -0.3888854384422302, -0.16778798401355743, 0.7622174620628357, -0.3016420602798462, -0.00544959353283...
eDays.innerHTML = vDays; }, 1000); }); function addEvent( obj, type, fn ) { if ( obj.attachEvent ) { obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn]( window.event );} obj.attachEvent( 'on'+type, obj[type+fn] ); } else obj.addEventListener( type, fn, false ); } ```
[ -0.09973113983869553, 0.06162519007921219, 0.8170671463012695, -0.20159073173999786, 0.23712864518165588, 0.30803123116493225, 0.6676137447357178, -0.30208247900009155, 0.1721264272928238, -0.649181604385376, -0.48805516958236694, 0.9371399879455566, -0.3970021605491638, 0.2711574137210846...
I realize that there are a lot of questions regarding friend classes in C++. My question, though, is tied to a specific scenario. Given the below code, is it appropriate to use friend in such a manner? ``` class Software { friend class SoftwareProducer; SoftwareProducer* m_producer; int m_key; // Only...
[ 0.17784187197685242, 0.053421203047037125, 0.22329506278038025, -0.23179233074188232, 0.4619694650173187, 0.13544821739196777, 0.05385512113571167, -0.18671151995658875, 0.20655617117881775, -0.49620330333709717, -0.21176889538764954, 1.0261117219924927, -0.17125624418258667, 0.42418640851...
class Software; public: Software* produce() { return new Software(this); } private: // Only software from this producer can get a valid key for registration int next_key() { return ...; } }; ``` Thanks, Best regards, Sure, that's perfectly reasonable. Basically what you ...
[ 0.6059097647666931, 0.10764647275209427, 0.17645759880542755, -0.06453412771224976, 0.28509607911109924, -0.29048922657966614, 0.240152969956398, -0.21763864159584045, 0.1681194007396698, -0.5655872225761414, -0.2319895476102829, 0.7175157070159912, -0.22661447525024414, 0.4770437777042389...
its creator. Though, usually you can avoid to have "Manager" classes like SoftwareProducer, and just have static methods in Software. Since it seems likely that there will be only one SoftwareProducer. Something like this perhaps: ``` class Software { private: Software() : m_key(0) { /* whatever */ } public: ...
[ 0.2107437700033188, -0.19379177689552307, 0.2517387866973877, 0.0747949406504631, 0.16751813888549805, -0.1270158737897873, 0.01951848901808262, -0.18473432958126068, 0.006060546264052391, -0.8253819346427917, -0.0480797253549099, 0.7044870853424072, -0.24029555916786194, 0.606843888759613...
plan on having more than one SoftwareProducer object, then what you have done seems appropriate.
[ 0.1589592844247818, -0.0733654722571373, 0.05337907373905182, 0.4430948495864868, 0.1022161990404129, -0.008758444339036942, -0.3079001307487488, 0.020657649263739586, -0.09936370700597763, -0.5962575078010559, 0.026758644729852676, 0.6837679147720337, 0.16225974261760712, -0.0489836931228...
In building components for installation, I know that registration units are generally a "should be separate" thing, but what are the guidelines for when one should divide the component *installation* into two separate packages (typically one being runtime, and the other being design time). Bonus question: What are the...
[ 0.9444471001625061, -0.02208285965025425, 0.20428749918937683, 0.13025565445423126, 0.17156237363815308, -0.23919813334941864, -0.020310508087277412, -0.5012194514274597, -0.1852319836616516, -0.4539814889431, -0.3245874047279358, 0.5019075870513916, 0.1303025633096695, 0.3406618535518646,...
minimum necessary to use the components in an application goes into the run-time package. Any reference to the Design units are forbidden in the run-time package. It is common to have the compiler version number as a suffix to both design-time and runtime package: dclMyPackage120.bpl and MyPackage120.bpl (for D2009 w...
[ 0.3877418637275696, 0.008399986661970615, 0.4602636396884918, -0.016718819737434387, 0.0883486196398735, 0.11106228083372116, 0.26383310556411743, -0.39473143219947815, -0.21170619130134583, -0.36180680990219116, -0.2688020169734955, 0.2095460593700409, -0.2760757505893707, -0.027204932644...
My question is about the way in which Git handles branches: whenever you branch from a commit, this branch won’t ever receive changes from the parent branch unless you *force* it with a merge. But in other systems such us Clearcase or Accurev, you can specify how branches get filled with *some sort of inheritance mech...
[ 0.21564526855945587, -0.4148760735988617, 0.2758964002132416, 0.24126505851745605, 0.08015556633472443, -0.15002071857452393, -0.0999438688158989, 0.0006010635988786817, -0.503065824508667, -0.5793865323066711, -0.2778555452823639, 0.5162691473960876, -0.1422320455312729, 0.188773721456527...
branches (streams how they call them) without merging or creating a new commit on the branch. Don’t you miss this while using Git? Can you enumerate scenarios where this *inheritance* is a must? Thanks **Update** Please read VonC answer below to actually focus my question. Once we agree "linear storage" and DAG base...
[ 0.3850559592247009, -0.5056571364402771, 0.031269438564777374, 0.6458640098571777, 0.22455668449401855, -0.2697547972202301, 0.012138556689023972, 0.24580122530460358, -0.34959542751312256, -0.37307170033454895, -0.12370673567056656, 0.1910748928785324, -0.0493507906794548, 0.1901062428951...
involving a commit), you must first understand one of the **[core concepts](https://stackoverflow.com/questions/645008/what-are-the-basic-clearcase-concepts-every-developer-should-know/645771#645771)** of those SCMs (Git vs. ClearCase for instance) * ClearCase uses a **linear version storage**: each version of an elem...
[ -0.09864974766969681, -0.145438089966774, 0.24050520360469818, 0.14343926310539246, 0.2545861005783081, -0.33035922050476074, 0.02391594648361206, -0.22785083949565887, -0.3385923206806183, -0.5000595450401306, -0.5215755105018616, 0.37538233399391174, -0.3182808458805084, 0.01320727728307...
graph path. In a linear system, a config spec can specify several rules for achieving the "inheritance" you see (for a given file, first select a certain version, and if not present, then select another version, and if not present, then select a third, and so on). The branch is a [fork](http://en.wikipedia.org/wiki/F...
[ 0.04368630051612854, -0.3588602542877197, 0.41803178191185, 0.24946357309818268, 0.018387582153081894, -0.16827990114688873, -0.0966358482837677, -0.03977501019835472, -0.18102438747882843, -0.6961387991905212, -0.24564023315906525, 0.07466022670269012, -0.48545539379119873, 0.364829838275...