text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
of needing a `SELECT DISTINCT tag FROM TagList` every time you need the unique list. And the latter only gives you a list of tags *in use*, not a list of all eligible tags.
[ 0.3051120936870575, 0.14854493737220764, 0.032666273415088654, -0.04564858227968216, -0.03610607236623764, -0.23969699442386627, 0.1399553269147873, -0.22307050228118896, -0.4028899371623993, -0.5881363749504089, -0.31618937849998474, 0.5827081203460693, -0.3507576882839203, -0.00890446547...
I'm seeing a strange situation, that I'm trying to figure out if it's a PHP issue, file issue, or normal operation. I have some users complaining about very fast timeouts on our site (session expires?), and checking the php tmp directory, I see things like this: ``` -rw------- 1 www-data www-data 377 2009-01-15 22:46...
[ -0.2506280243396759, 0.2623870372772217, 0.6864946484565735, 0.09951154887676239, 0.04122417792677879, -0.007280272431671619, 0.674008309841156, 0.023299407213926315, -0.48553845286369324, -0.5375482439994812, -0.00855444185435772, 0.5047017931938171, -0.08848738670349121, 0.17480312287807...
sess_ffb2ed75ca311d08e41ec69c7d708d08 -rw------- 1 www-data www-data 1142 2009-01-15 22:49 sess_ffc2c882af3b3ad39b844dc5a530dc44 -rw------- 1 www-data www-data 0 2009-01-15 22:51 sess_fffbd6f7734ce3b4ef9d8009a324a459 ``` Is this normal behavior? TIA Mike Two possibilities spring to mind, one is that your out of ...
[ 0.018525900319218636, -0.002874133875593543, 0.401931494474411, 0.19128872454166412, 0.04486173018813133, -0.4567035138607025, 0.729708731174469, -0.1590886265039444, -0.39852333068847656, -0.31569918990135193, 0.0330267958343029, 0.6397402882575989, -0.34618374705314636, -0.01506575942039...
manual: > Note: If different scripts have different values of session.gc\_maxlifetime but share the same place for storing the session data then the script with the minimum value will be cleaning the data. In this case, use this directive together with session.save\_path. so i recommend changing your session save pat...
[ 0.28513577580451965, -0.20352542400360107, 0.38053402304649353, 0.036222368478775024, -0.023894350975751877, -0.20683078467845917, 0.35154837369918823, -0.207041934132576, -0.08739715069532394, -0.8198687434196472, -0.09655977785587311, 1.271841287612915, -0.19809599220752716, -0.164575994...
At my work we have our own XML classes which build a DOM, but I'm not sure how consecutive whitespace should be handled? e.g. ``` <some-text> Hello World </some-text> ``` When this is read into the DOM, should the text node include the consecutive whitespace inbetween Hello and World or just reduce it to one sp...
[ 0.028270605951547623, 0.295010507106781, 0.2641986906528473, -0.06895250827074051, -0.41067108511924744, -0.012109188362956047, -0.04155527055263519, -0.1657351404428482, -0.3705627918243408, -0.43902167677879333, -0.2671853005886078, 0.2691315710544586, -0.07863914966583252, 0.25605180859...
just that it only visually renders one space. How it appears in the DOM and how it appears on your screen are two entirely different things.
[ 0.5742092132568359, 0.1312037706375122, 0.434920996427536, 0.09385735541582108, 0.18603433668613434, 0.18664126098155975, -0.1651020646095276, 0.02190055511891842, -0.22732378542423248, -0.6786487102508545, 0.24445697665214539, 0.5215551257133484, 0.033384207636117935, 0.2719414532184601, ...
When creating a new WebForm, Visual Studios creates a Page\_Load handler in the code behind as a default, which is cool. So for years, I have always put code for doing things like set properties of controls in Page\_Load. Recently, I used Reflector to look at some assemblies written by Microsoft and saw that they have ...
[ 0.49356621503829956, -0.1144336387515068, 0.2554630637168884, 0.18640846014022827, -0.1681702733039856, -0.2117370218038559, 0.02616005577147007, -0.017784928902983665, -0.23965057730674744, -0.6002539992332458, 0.0745018944144249, 0.4765956401824951, -0.37018027901649475, 0.08412592113018...
And if not Page\_Load, why does Studio add that to the code behind? **My final thought:** Although I know that putting logic in OnLoad works fine, I will probably stick with Page\_Load for now because that's conventional. I asked the question really to find out if I had been missing out on something new after I starte...
[ 0.37006518244743347, 0.060877569019794464, -0.12114229053258896, 0.0730201005935669, -0.0760771855711937, -0.038019489496946335, 0.16302311420440674, -0.20466896891593933, -0.20080025494098663, -0.44702041149139404, 0.08922534435987473, 0.6952510476112366, -0.18165190517902374, -0.10114946...
that you should usually only deviate from the norm when you are trying to do something unexpected. Overriding a virtual method like OnLoad suggests that you are trying to do something different such as not calling base.Onload, which most programmers are typically not.
[ 0.4498821794986725, -0.03380950912833214, -0.17149490118026733, 0.1522590070962906, -0.35103410482406616, -0.329399436712265, 0.35007578134536743, 0.1763007640838623, -0.2881608009338379, 0.07350581884384155, -0.08782598376274109, 0.4617794156074524, -0.4313802421092987, -0.022033168002963...
I have 4 images, which I want to fade between each other in a loop. I have something like the following: ``` <img src="/images/image-1.jpg" id="featureImg1" /> <img src="/images/image-2.jpg" id="featureImg2" style="display:none;" /> <img src="/images/image-3.jpg" id="featureImg3" style="display:none;" /> <img src="/im...
[ 0.4190256893634796, 0.10699890553951263, 0.7912154197692871, -0.3262723684310913, -0.24562208354473114, 0.22650453448295593, 0.37262216210365295, -0.3018360137939453, -0.435481458902359, -0.7287184000015259, 0.013140357099473476, 0.48532986640930176, -0.22184248268604279, 0.051577981561422...
it's well structured and easy to setup. There's also a lightweight version called [jQuery Cycle Lite](http://malsup.com/jquery/cycle/lite/) which just supports fade transitions.
[ 0.6047003865242004, -0.23153217136859894, 0.37914443016052246, 0.15109944343566895, -0.11340384930372238, -0.2331809252500534, 0.02314675971865654, -0.04389774426817894, -0.1735791712999344, -0.6492773294448853, 0.08838286250829697, 0.29642346501350403, -0.31850117444992065, -0.12721464037...
I realise that it's not elegant or desired, but is it allowed (in well-formed XML) for an attribute value in an XML element to span multiple lines? e.g. ``` <some-xml-element value="this value goes over.... multiple lines!" /> ``` Yeah I realise there's better ways of writing that. I would personally write it like:...
[ 0.167933851480484, 0.19802223145961761, 0.7139558792114258, 0.020862974226474762, -0.19470135867595673, -0.2905876040458679, 0.1580628603696823, -0.2718377411365509, -0.32330596446990967, -0.4484952390193939, -0.28908687829971313, 0.49028652906417847, 0.06986769288778305, -0.09984792023897...
I have a fairly infrequent problem occuring with source control. In the example here the problem was occuring with Perforce, but I suspect the same problem will occur with many SCMs, especially distributed SCMs. Perforce supports changelists (or changesets if you prefer). Changelists support two common usages: 1. Whe...
[ 0.5506348609924316, -0.23136243224143982, 0.3786536753177643, -0.055258698761463165, -0.09311207383871078, -0.32035356760025024, 0.19944220781326294, -0.030937328934669495, -0.4703383147716522, -0.6882722973823547, -0.0673990324139595, 0.8206181526184082, -0.5871081352233887, 0.09977145493...
you are working on the fancy new email feature which is going to take months of work and makes millions of dollars and somebody from tech support comes to you with a bug that must be fixed yesterday, you don't have to start with a new branch of the whole project. You can just check out the buggy file into a new changel...
[ 0.5705453753471375, -0.018887508660554886, 0.3029892146587372, 0.2453431338071823, 0.2945394814014435, -0.17701230943202972, 0.3727998435497284, 0.3480026423931122, -0.37122392654418945, -0.4579838812351227, -0.11631491035223007, 0.6661792993545532, -0.3952198624610901, 0.05245392769575119...
email feature you are making zillions of changes all over the place, especially in main.h, and it just so happens that when go to work on the bug fix you discover that the tiny change you have to make is also in main.h. The changelist for the new feature already has main.h checked out, so you can't easily put it in the...
[ 0.30566442012786865, -0.1267823427915573, 0.31372788548469543, 0.14249777793884277, 0.023971738293766975, -0.08211774379014969, 0.15469777584075928, 0.22008700668811798, -0.32076138257980347, -0.5990096926689148, 0.018239717930555344, 0.6179994344711304, -0.3712197244167328, -0.05323613435...
copied. So you can create a second copy of the project without any of changes for the email feature. 2. Do a fudge. Backup your modified copy of main.h and revert this file. You are then free to checkout main.h into the bugfix changelist. You fix the bug, check in the bugfix changelist, then checkout main.h into the em...
[ 0.5195216536521912, -0.06642661988735199, 0.5849961638450623, 0.22980603575706482, 0.09921582043170929, -0.15388906002044678, 0.28378182649612427, -0.15634271502494812, -0.43240684270858765, -0.6649253964424133, -0.027403632178902626, 0.8070942759513855, -0.666976809501648, 0.0019678652752...
make the change and check it in. You then check it out again into the email feature changelist. Obviously there are two problems with this approach: firstly there may in fact be side affects that you hadn't considered and secondly you have corrupted your version histoty. Option 1 is probably the cleanest, but not alwa...
[ 0.2309975028038025, -0.4363791048526764, 0.27518194913864136, 0.005326894577592611, 0.24486874043941498, -0.039744481444358826, 0.38660579919815063, -0.25154387950897217, -0.2205314189195633, -0.6874103546142578, -0.19693948328495026, 0.6522539854049683, -0.44038915634155273, -0.1018499135...
but is is the quickest, so it can be very seductive. That leaves Option 2, which is the one I would generally use. Does anybody have a better solution? My apologies for the lengthy question, but I have discovered on StackOverflow that fully thought out questions elicit better answers. This exact problem has been ca...
[ 0.18997587263584137, -0.2464161366224289, 0.03574207052588463, 0.5000742673873901, -0.04606860131025314, -0.08557305485010147, -0.002359903883188963, 0.14658257365226746, -0.23563620448112488, -0.48760417103767395, -0.2020648568868637, 0.5851461887359619, -0.3074991703033447, -0.4228094518...
chunks of code that make sense independently of one another. The fact that two logically different changes are in the same source file has become irrelevant.
[ 0.2754960060119629, 0.24439679086208344, -0.2699746787548065, 0.36052075028419495, 0.056145645678043365, 0.0325203575193882, 0.014767765998840332, -0.02243240736424923, -0.10754334181547165, -0.4891909956932068, -0.2004987597465515, 0.12277787923812866, -0.18647357821464539, 0.182744920253...
I'm trying to monkey-patch (duck-punch :-) a `LWP::UserAgent` instance, like so: ``` sub _user_agent_get_basic_credentials_patch { return ($username, $password); } my $agent = LWP::UserAgent->new(); $agent->get_basic_credentials = _user_agent_get_basic_credentials_patch; ``` This isn't the right syntax -- it yiel...
[ 0.1173844039440155, 0.20984768867492676, 0.2156471610069275, -0.35997143387794495, 0.012953403405845165, 0.0791265219449997, 0.6970462203025818, -0.044568583369255066, -0.18980510532855988, -0.5569645166397095, -0.18570071458816528, 0.5415359735488892, -0.5306628346443176, -0.2292289137840...
isn't satisfactory, you can automate the custom package reblessing technique: ``` MONKEY_PATCH_INSTANCE: { my $counter = 1; # could use a state var in perl 5.10 sub monkey_patch_instance { my($instance, $method, $code) = @_; my $package = ref($instance) . '::MonkeyPatch' . $counter++; no strict 'ref...
[ 0.13383275270462036, 0.1874152570962906, 0.42347952723503113, -0.442635715007782, 0.13848485052585602, -0.036032408475875854, 0.8677586317062378, -0.2848111093044281, -0.09187720715999603, -0.5197951197624207, -0.27456873655319214, 0.6486373543739319, -0.5618702173233032, 0.022578604519367...
$dog1 = Dog->new; my $dog2 = Dog->new; monkey_patch_instance($dog2, speak => sub { print "yap!\n" }); $dog1->speak; # woof! $dog2->speak; # yap! ```
[ -0.05135972425341606, 0.29173043370246887, 0.208913654088974, -0.5455136299133301, 0.05722793564200401, 0.5754965543746948, 0.6265057921409607, -0.33638015389442444, -0.37380844354629517, -0.5169249773025513, -0.3415415585041046, 0.45281749963760376, -0.8631431460380554, -0.141664043068885...
A lot of people seem to agree, that the Singleton pattern has a number of drawbacks and some even suggest avoiding the pattern entirely. There's an [excellent discussion here](https://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons). Please direct any comments about the Singleton pattern to that ques...
[ 0.7608553171157837, 0.19049839675426483, -0.036700427532196045, 0.0011800314532592893, -0.07167474180459976, -0.004719501826912165, 0.4536714255809784, 0.15873441100120544, -0.4599108099937439, -0.8512843251228333, -0.003733411431312561, 0.3608718514442444, -0.5120593309402466, 0.248364150...
Overuse of patterns makes a given application or system cumbersome to further develop and maintain. Most of the time, there is a simple solution, and you won't need to apply any specific pattern. A good rule of thumb is to use a pattern whenever pieces of code tend to be replaced or need to be changed often and be pre...
[ 0.5130516886711121, 0.23740947246551514, -0.05157547444105148, 0.24832502007484436, 0.3078243136405945, -0.41760677099227905, 0.56180340051651, -0.09358488023281097, -0.4565865397453308, -0.8659032583236694, -0.18001939356327057, 0.2891915738582611, -0.6841318011283875, 0.03700017556548118...
to use patterns if they can evidently lead to over-engineered and complex solutions. However it is instead much more interesting for a programmer to read up on *design techniques and principles* that lay the foundation for most of the patterns. In fact one of my [favorite books on 'design patterns' stresses this](http:...
[ 0.5382055640220642, 0.07697204500436783, -0.2095194160938263, 0.034990545362234116, 0.04505312815308571, -0.0854075700044632, 0.19897209107875824, -0.21705801784992218, -0.20272856950759888, -0.7579248547554016, -0.19308148324489594, 0.22579987347126007, -0.6655001640319824, -0.18840914964...
you can build modules of your code. There are a multitude of design principles but those described in the [first chapter of GoF book](http://en.wikipedia.org/wiki/Design_Patterns) are quite useful to start with. * *Program to an 'interface', not an 'implementation'.* (Gang of Four 1995:18) * *Favor 'object compositio...
[ 0.4523400664329529, -0.12450221925973892, 0.0274724792689085, 0.07786811888217926, -0.3617158532142639, -0.30842676758766174, 0.1638343185186386, -0.42951062321662903, -0.329639732837677, -0.6787718534469604, -0.10591988265514374, 0.5118085741996765, -0.38038426637649536, -0.23916471004486...
observed overuse of inheritance which is [sadly still common today](https://stackoverflow.com/questions/1740706/object-oriented-programming-class-design-confusion/). From there you can read up on [SOLID principles](http://www.lostechies.com/blogs/chad_myers/archive/2008/03/07/pablo-s-topic-of-the-month-march-solid-pri...
[ 0.14242756366729736, 0.6047908067703247, -0.01569914072751999, -0.14723487198352814, -0.08858233690261841, 0.08431759476661682, 0.6030807495117188, -0.6291662454605103, -0.4815063178539276, -0.019024737179279327, -0.021942168474197388, 0.40258723497390747, -0.32588887214660645, 0.069778144...
find that these principles come naturally in practice as you need to follow them to some degree in order to create *isolated* and *repeatable* unit tests.
[ 0.48936399817466736, 0.06002425402402878, -0.37343543767929077, 0.09375020116567612, 0.087429478764534, -0.06679411232471466, 0.32895541191101074, -0.34673845767974854, -0.07611335813999176, -0.5923395752906799, -0.04729485884308815, 0.3202994465827942, 0.20922338962554932, 0.0276702884584...
I've discovered [VB2Py](http://vb2py.sourceforge.net/), but it's been silent for almost 5 years. Are there any other tools out there which could be used to convert VB6 projects to Python, Ruby, Tcl, whatever? Compile the VB code either into a normal DLL or a COM DLL. All Pythons on Windows, including the vanilla Active...
[ 0.7760655879974365, 0.12665784358978271, 0.04376855865120888, -0.010714886710047722, -0.1972072720527649, -0.2702837288379669, 0.2461930811405182, 0.4745943248271942, -0.4068986177444458, -0.44931402802467346, 0.016120897606015205, 0.5917978286743164, -0.3338760435581207, 0.352270126342773...
Where can I browse the source code for any Android Open Source Project (AOSP) application (for example the Contacts application)? Is the only way to clone the entire source repository for all of AOSP? Everything is mirrored on [omapzoom.org](http://omapzoom.org/). Some of the code is also [mirrored on github](https://g...
[ 0.17413784563541412, 0.37385293841362, 0.6977007389068604, 0.11576420813798904, 0.05429692566394806, -0.11038998514413834, 0.16546152532100677, 0.0971255674958229, -0.2660309970378876, -0.9851669669151306, -0.24883364140987396, 0.4137687683105469, -0.06923694908618927, 0.28380608558654785,...
it now only points you to clonable git repositories. To get all the code locally, you can use the [repo](http://source.android.com/source/git-repo.html) helper program, or you can just clone individual repositories. And others: * [Downloading the Source Tree](http://source.android.com/source/downloading.html)
[ 0.11241605877876282, -0.15192759037017822, 0.4222770631313324, 0.2036009579896927, 0.11398443579673767, 0.21390339732170105, 0.10529826581478119, 0.07235334813594818, -0.44125810265541077, -0.6381941437721252, -0.32402127981185913, 0.4211834967136383, -0.1176181212067604, 0.144958287477493...
I would like to ask a few questions regarding mobile game porting... Let say if I have a simple 2D C++ game engine and have a PC game based on that engine and I want to port it to different mobile platforms BREW, J2ME, iPhone, Android, Symbian, etc.. Do I need to re-code the engine and the game for each platform? or ...
[ 0.21946483850479126, 0.2328813225030899, 0.17408603429794312, 0.2964951992034912, -0.34983864426612854, -0.03401277959346771, -0.02381046488881111, 0.13734851777553558, 0.018790943548083305, -0.6795997023582458, 0.07392988353967667, 0.9868161082267761, -0.36010345816612244, 0.3018418252468...
game porting. First of all, until very recently it was mostly BREW and J2ME. The iPhone, Android and BlackBerry are changing this landscape and making the impossible task of mobile game porting even more impossible. I worked in 3rd party mobile game development for many years until recently. I watched BREW vanish and s...
[ 0.318141371011734, 0.1014113500714302, 0.3760385513305664, -0.03532009199261665, -0.033192526549100876, 0.08977467566728592, -0.03888173773884773, 0.44289085268974304, -0.1280602514743805, -0.601905107498169, 0.07324546575546265, 0.726637065410614, -0.11551740020513535, 0.5937635898590088,...
handled porting by having two engines that paralleled each other, one in BREW, one in J2ME. We never supported Symbian as Symbian development does not make any money. It is mainly for high-end tech demos that might be on one or two devices, nothing that could reach the mass market. Plus, most Symbian phones supported J...
[ 0.26572373509407043, -0.11672134697437286, 0.1348978877067566, 0.1903115212917328, -0.1996144950389862, 0.031596679240465164, -0.028567438945174217, 0.12312120944261551, -0.03364287689328194, -0.24712173640727997, 0.39027708768844604, 0.9704269766807556, -0.4789236783981323, 0.142656341195...
iPhone SKU was being left as "to be determined" based on the final product and how cost effective an iPhone version would be at that time. The reference versions would then be passed on to a porting house to translate the different references to the thousands of other required SKUs. Companies like Gameloft still brute...
[ 0.1141129583120346, 0.2747253179550171, 0.34319978952407837, 0.13082236051559448, 0.22752468287944794, 0.3303701877593994, 0.19945266842842102, 0.30572861433029175, -0.17231152951717377, -0.28803637623786926, -0.10258737206459045, 0.1521608680486679, -0.2277880311012268, -0.016038946807384...
Beijing with 5000 developers. There are many companies out there developing engines to cut porting costs. [Mobile-Distillery](http://www.mobile-distillery.com/home.htm) is one I was in contact with quite a lot, but we ended up never using it. So, I can't vouch for them. The problem here is that you will be at the merc...
[ 0.6136954426765442, 0.3752334713935852, 0.03134291619062424, -0.18083153665065765, -0.05062563717365265, 0.25737255811691284, -0.19442375004291534, 0.013864123262465, -0.11379489302635193, -0.34095367789268494, 0.07449711859226227, -0.09754053503274918, -0.288839727640152, -0.3135428428649...
lowest common denominator of phones. Finally, a lot of developers are just abandoning the idea of supporting all mobile platforms. There is a huge flood on games on the iPhone because 1) it requires only targeting one platform and 2) there is a 70 percent profit share through the AppStore for developers. Through carri...
[ 0.10252531617879868, 0.18548692762851715, 0.1411360800266266, 0.3948400914669037, 0.2090696543455124, 0.21446679532527924, 0.22213704884052277, 0.22355931997299194, -0.21946199238300323, -0.31333664059638977, -0.13110610842704773, 0.392830491065979, -0.2510465979576111, -0.1615787893533706...
I have programmed with WPF for more than a year. When I started there weren't so many examples and guidelines to follow, now the situation is much more better. I would like to ask you some help in listing the best WPF (open) source code examples or projects that you suggest to study in order to learn more about projec...
[ 0.7571616768836975, 0.07707049697637558, 0.2563377320766449, 0.11553696542978287, -0.15952491760253906, -0.33490920066833496, -0.1508890837430954, -0.3733617961406708, -0.3199132978916168, -0.5229125022888184, 0.32835420966148376, 0.33199039101600647, 0.16932746767997742, 0.209711372852325...
Are there any ways providing an alternate GIF/PNG image, in case the user has no Adobe Flash installed and/or deactivated. I’ve found recommendations, like the following from W3C, which determine via JavaScript the existence of Adobe Flash on the client: [W3C Providing alternative images](http://www.w3.org/WAI/GL/WD-WC...
[ 0.39274853467941284, 0.0849849209189415, 0.09968487918376923, 0.05325138941407204, -0.21903859078884125, -0.10867230594158173, 0.033805202692747116, 0.053209640085697174, -0.446225643157959, -0.528329610824585, 0.07657654583454132, 0.5069007277488708, -0.2248901128768921, -0.20881496369838...
be shown. In the past it was solved very likely in the way mentioned before. We’re currently working on a design refresh and that’s where I stumbled upon this piece of code which makes me wonder if it’s really the most elegant and compatible way of doing so. **Another idea** that strikes me: Is it actually possible to...
[ 0.09453341364860535, 0.16734373569488525, 0.2728203535079956, 0.12976576387882233, -0.04567273333668709, -0.4870968461036682, 0.28637489676475525, -0.19781260192394257, -0.2974746823310852, -0.4781635105609894, -0.28016290068626404, 0.7108283042907715, -0.2613283097743988, -0.0655098184943...
<!--<![endif]--> <img src="(...)" alt="Put your alternate content here" /> <!--[if !IE]>--> </object> <!--<![endif]--> </object> ```
[ -0.14079785346984863, -0.08601249754428864, 0.342011958360672, -0.058786842972040176, 0.1742861121892929, -0.03221575915813446, 0.05976417660713196, -0.03332894667983055, -0.11656221002340317, -0.7004995346069336, -0.5130519866943359, 0.4159020781517029, -0.4185543358325958, 0.072602026164...
We are using the GridView controls in some pages of our project which we dont want to change drastically, would it be possible to create a hierarchy in a gridview? Can this be achieved by using a GridView inside a Gridview to get the parent - child relation? Yes, you can nest GridViews inside one another. See the follo...
[ 0.5167218446731567, -0.16717107594013214, 0.042190104722976685, 0.27101337909698486, 0.2805928587913513, 0.28655320405960083, 0.09630759060382843, -0.43382328748703003, -0.08199870586395264, -0.5804822444915771, 0.22343729436397552, 0.18049530684947968, -0.12798748910427094, 0.179951712489...
Why do we need to use `int main` and not `void main` in C++? The short answer, is because the C++ standard requires `main()` to return `int`. As you probably know, the return value from the `main()` function is used by the runtime library as the exit code for the process. Both Unix and Win32 support the concept of a (...
[ -0.08714749664068222, -0.04402774199843407, 0.06478432565927505, -0.20185041427612305, 0.02252303436398506, 0.0029368912801146507, -0.013913044705986977, 0.16443464159965515, -0.2607227861881256, -0.13376200199127197, -0.1717073768377304, 0.4571003317832947, -0.23029416799545288, 0.1247156...
I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now. I d...
[ 0.19070957601070404, 0.2763749361038208, 0.582589864730835, -0.16185475885868073, -0.03499331325292587, 0.1709582805633545, 0.43453651666641235, -0.04859446734189987, -0.01995367743074894, -0.8782927989959717, -0.17651979625225067, 0.9889835119247437, -0.5853096842765808, -0.05564790964126...
because there could have been some old plugin files in there.
[ 0.27733632922172546, 0.14652536809444427, -0.13102972507476807, 0.2416379749774933, 0.3201330900192261, -0.18838271498680115, 0.111826591193676, 0.08130943030118942, -0.34870120882987976, 0.06626037508249283, -0.02489984594285488, 0.16631865501403809, -0.10989280790090561, 0.19488865137100...
I have a place holder image saying something like: ``` Your rating is: [rating here] ``` My PHP code is supposed to dynamically insert the rating number where there is a blank space left out for it on the placeholder image. How can I do that? Here's a an example how you could do it - use [gd function](http://uk.p...
[ 0.39524921774864197, 0.23579435050487518, 0.6837434768676758, 0.08472470194101334, 0.0949460119009018, -0.18455594778060913, 0.3426339328289032, -0.37816092371940613, 0.22417807579040527, -0.622627317905426, 0.02706776186823845, 0.2810710072517395, 0.04940976947546005, 0.15225857496261597,...
$score) { #figure out filename of cached file $file=$cachedir.'score'.$score.'gif'; #regenerate cached image if (!file_exists($file)) { #generate image - this is lifted straight from the php #manual, you'll need to work out how to make your #image, but this will get you s...
[ 0.17924070358276367, -0.12785422801971436, 0.4327165186405182, 0.26948967576026917, 0.17080794274806976, 0.04763825982809067, 0.32375603914260864, -0.20153532922267914, -0.22851146757602692, -0.49560585618019104, -0.07199262827634811, 0.32288694381713867, -0.17056433856487274, 0.0392828248...
= imagecreatefrompng("images/button1.png"); #allocate color for the text $orange = imagecolorallocate($im, 220, 210, 60); #attempt to centralise the text $px = (imagesx($im) - 7.5 * strlen($score)) / 2; imagestring($im, 3, $px, 9, $score, $orange); #save to cache...
[ -0.17687460780143738, -0.3011510968208313, 0.43748167157173157, -0.09861070662736893, 0.10469018667936325, 0.44297200441360474, 0.23399966955184937, -0.08342671394348145, -0.12909534573554993, -0.5870761871337891, -0.4876415729522705, 0.29530635476112366, -0.5925556421279907, -0.0736325457...
imagedestroy($im); } #return image to browser, but return a 304 if they already have it $mtime=filemtime($file); $headers = apache_request_headers(); if (isset($headers['If-Modified-Since']) && (strtotime($headers['If-Modified-Since']) >= $mtime)) { // Client's cache IS curr...
[ 0.07024068385362625, -0.2834699749946594, 0.8253194689750671, -0.05872105807065964, -0.02003937028348446, -0.006762776058167219, 0.5892823934555054, -0.3553884029388428, -0.21273861825466156, -0.6845182776451111, -0.26806366443634033, 0.8326511383056641, -0.32522085309028625, 0.00738673331...
exit; } header('Content-Type:image/gif'); header('Content-Length: '.filesize($file)); header('Last-Modified: '.gmdate('D, d M Y H:i:s', $mtime).' GMT'); readfile($file); } else { header("HTTP/1.0 401 Invalid score requested"); } ``` If you put this in image.php, you would use as follows in a...
[ -0.08978427201509476, -0.15383031964302063, 0.562815248966217, -0.007649603765457869, 0.049621302634477615, 0.11781415343284607, 0.05965343117713928, -0.2639538049697876, -0.19629034399986267, -0.6190701127052307, -0.37808018922805786, 0.4466512203216553, -0.267691433429718, 0.116012632846...
For reasons that are beyond my control I need to store huge arrays (10000+ entries) in database rows, and it has to be easy to access each index of the array individually, which means I'd rather avoid serialization/blobs, if at all possible. So my first idea, and the actual question here, is can I increase max columns...
[ 0.3144543170928955, 0.19182009994983673, 0.12047465145587921, 0.09458152949810028, -0.09967975318431854, 0.2757386565208435, 0.09303092956542969, -0.5889409184455872, -0.4422159492969513, -0.48132461309432983, 0.3645733594894409, 0.6815693378448486, -0.12994177639484406, -0.130132600665092...
database engine. So no luck there. I don't know how many rows your database will contain, but it could be a solution to use a table that stores three fields: ArrayId, FieldIndex, Contents. Each array field is a single row in the database. If you put a combined index on ArrayId and FieldIndex, access should be pretty f...
[ -0.16763518750667572, -0.27750736474990845, 0.29234740138053894, 0.29169270396232605, -0.09225820749998093, 0.013815552927553654, -0.15376341342926025, -0.13948799669742584, -0.1521276831626892, -0.6827506422996521, 0.42247894406318665, 0.5511819124221802, -0.4049857258796692, 0.1948051899...
Like I wrote [elsewhere](https://stackoverflow.com/questions/449760/dividing-workload-on-several-threads#449839), I seem to be sure that a white paper by Rick Brewster about multithreading used in [Paint.NET](http://www.getpaint.net/) once existed. I am not able to find any reference to this white paper again however....
[ 0.6874474883079529, -0.11382818967103958, 0.26055315136909485, 0.041742876172065735, -0.2899700701236725, -0.0733717754483223, 0.4055679738521576, 0.09986700117588043, -0.5571283102035522, -0.41474205255508423, 0.3485109508037567, 0.622168242931366, -0.19434235990047455, 0.0088996505364775...
meantime any answer you guys might have is more than welcome! I just received a private message reply on the [Paint.NET forum](http://paintdotnet.forumer.com) from [Rick Brewster](http://paintdotnet.forumer.com/memberlist.php?mode=viewprofile&u=3): > No such whitepaper has ever existed. That would at least explain wh...
[ 0.8094152808189392, -0.038303013890981674, 0.40203574299812317, 0.027477871626615524, 0.056176796555519104, -0.25836431980133057, 0.07883211225271225, 0.24777477979660034, -0.36761239171028137, -0.30166882276535034, -0.01308170985430479, 0.31194084882736206, -0.32671913504600525, 0.0347947...
I need to send email via my C# app. I come from a VB 6 background and had a lot of bad experiences with the MAPI control. First of all, MAPI did not support HTML emails and second, all the emails were sent to my default mail outbox. So I still needed to click on send receive. If I needed to send bulk html bodied emai...
[ 0.058109886944293976, 0.05066888406872749, 0.3186311423778534, -0.2646518051624298, -0.46464288234710693, 0.025171931833028793, 0.24008290469646454, -0.08332421630620956, -0.30978864431381226, -0.8653444051742554, 0.0934080258011818, 0.5462979674339294, -0.27463996410369873, -0.16166406869...
System.Net.Mime; ... try { SmtpClient mySmtpClient = new SmtpClient("my.smtp.exampleserver.net"); // set smtp-client with basicAuthentication mySmtpClient.UseDefaultCredentials = false; System.Net.NetworkCredential basicAuthenticationInfo = new System.Net.NetworkCredential("username", "password")...
[ 0.006542944349348545, -0.11052270978689194, 0.7056471705436707, 0.06480275839567184, -0.0023623178713023663, 0.29810622334480286, 0.7229729890823364, -0.4223974347114563, -0.1560283750295639, -0.763621985912323, -0.4217340648174286, 0.28425851464271545, -0.34356021881103516, 0.125690191984...
myMail.SubjectEncoding = System.Text.Encoding.UTF8; // set body-message and encoding myMail.Body = "<b>Test Mail</b><br>using <b>HTML</b>."; myMail.BodyEncoding = System.Text.Encoding.UTF8; // text or html myMail.IsBodyHtml = true; mySmtpClient.Send(myMail); } catch (SmtpException ex) { throw new...
[ 0.0787561908364296, 0.06133073568344116, 0.9004656076431274, -0.2920219600200653, -0.048130396753549576, 0.12993299961090088, 0.7480263710021973, -0.43594783544540405, -0.1772967427968979, -0.5997064113616943, -0.3233496844768524, 0.3013629615306854, -0.5302082300186157, 0.1044165343046188...
A web page displays the following:- * Bob * Fred * John However when the user (that would be me) prints the web page I want multiple repeats of this output with slight variations to be printed on separate pages :- * **Bob** * Fred * John `>page break here<` * Bob * **Fred** * John `>page break here<` * Bob * Fre...
[ 0.3203834295272827, 0.18267543613910675, 0.7243221998214722, -0.1551843285560608, -0.3729383647441864, 0.1185118556022644, 0.2897370457649231, 0.062471237033605576, -0.4687027335166931, -0.7774145007133484, -0.1274934709072113, 0.34542199969291687, -0.2284706085920334, -0.01402151212096214...
solution is fine). **Edit:** Page-Break-XXX css style is going be part of the answer, but I'm particularly interested in a means to dynamically create the print version HTML from the screen version. Note I don't want to navigate to a 'printer friendly' page and then print that. I just want to hit the browsers print bu...
[ 0.5161234140396118, 0.07330100983381271, 0.8158323764801025, 0.1104760691523552, -0.05946343019604683, -0.29083889722824097, 0.3899393081665039, 0.047266654670238495, -0.3022628426551819, -0.849989116191864, 0.09374947100877762, 0.6576542854309082, -0.2894255816936493, 0.025466028600931168...
printing devices --> <style type="text/css" media="print"> .printable{ page-break-after: always; } .no_print{ display: none; } </style> <!-- media="screen" means these styles will only be used by screen devices (e.g. monitors) --> <style type="text/css" media="screen"> .printable{...
[ -0.03897000849246979, 0.28408297896385193, 0.8328366279602051, -0.033443719148635864, 0.12800562381744385, 0.16680188477039337, -0.20961761474609375, -0.03406847268342972, -0.4957706034183502, -0.8303823471069336, -0.35848334431648254, 0.4146342873573303, -0.5446209907531738, 0.04937100410...
font-size: large; font-weight: bold; } </style> ``` Then, you're going to need to do some heavy lifting in your view to get HTML looking **something** like this: ``` <!-- Intial display for screen --> <div class="no_print"> <!-- Loop through users here using preferred looping/display method --> <ul...
[ -0.057950228452682495, 0.05389045178890228, 0.7653756737709045, -0.30279436707496643, -0.24468232691287994, 0.20137546956539154, 0.22374454140663147, -0.38071730732917786, -0.519694447517395, -0.7281652092933655, -0.18345095217227936, 0.1769457310438156, -0.4037250876426697, -0.14537021517...
<ul> <li><b>Bob</b></li> <li>Fred</li> <li>John</li> </ul> </div> <div class="printable"> <ul> <li>Bob</li> <li><b>Fred</b></li> <li>John</li> </ul> </div> <div class="printable"> <ul> <li>Bob</li> <li>Fred</li> <li><b>John</b></li>...
[ -0.36852961778640747, 0.20980575680732727, 0.20805619657039642, -0.4282446801662445, -0.30393919348716736, 0.41029414534568787, 0.1598740965127945, -0.3508290946483612, -0.07976245135068893, -0.6598647236824036, -0.20348168909549713, 0.43625280261039734, -0.612190306186676, 0.1573630422353...
"appropriate display method". I'm just getting started with MVC, so you've probably got a better method of doing this, but for now I'd probably use a RenderPartial method like this: ``` <% /* Using RenderPartial to render a usercontrol, we're passing in the Model here as the Model for the control, depends o...
[ -0.18554730713367462, 0.07259749621152878, 0.7360081076622009, 0.10372520983219147, -0.16068854928016663, 0.08059784024953842, -0.25385504961013794, -0.31366947293281555, -0.1099788099527359, -0.7147251963615417, -0.014460187405347824, 0.5742089152336121, -0.23971964418888092, 0.0255037900...
new {HighlightUser = null, IsPrintable = false}); // Loop through highlighting each user foreach (var user in ViewData.Model) { Html.RenderPartial("~/Views/Shared/Controls/UserList.ascx", ViewData.Model, new {HighlightUser = user, IsPrintable = true}); } %> ``` Your user control can then han...
[ 0.007761734537780285, -0.10239597409963608, 0.4794340431690216, -0.3441298305988312, -0.17667098343372345, 0.03315247967839241, 0.2139309197664261, -0.3014411926269531, -0.2963009476661682, -0.6452940702438354, -0.3981631100177765, 0.29973140358924866, -0.295769602060318, 0.001483128755353...
different rendering of the users for display and print - I guess you're probably adding quite a bit of jQuery goodness hiding and displaying stuff, etc, that you are actually going to display on the printed version, so you probably want two differnt user controls, and can then get away with not passing in the IsPrintab...
[ 0.2213669866323471, -0.006155936513096094, 0.432669073343277, 0.26081058382987976, -0.22626574337482452, -0.008639142848551273, 0.12281227111816406, 0.005960154812783003, -0.2574048638343811, -0.6043107509613037, -0.1124255582690239, 0.4556691646575928, -0.1642628163099289, 0.1305630207061...
that you'd like on that last page.
[ 0.14021408557891846, 0.26952505111694336, -0.012255433015525341, 0.13222411274909973, 0.17801347374916077, -0.08996250480413437, -0.07881950587034225, 0.49848616123199463, -0.20522671937942505, -0.20688311755657196, 0.011168591678142548, 0.23487789928913116, 0.05956122651696205, 0.15088950...
The stored procedures being written here currently concats the parameters to the queries: ``` SELECT * FROM Names WHERE Name = ' || prmName || ' ORDER BY ' || prmSortField ``` Is it possible to parameterize this query inside the stored procedure? Possibly like: ``` query = 'select * From Names Where...
[ -0.36828795075416565, -0.4017694890499115, 0.879948079586029, -0.0021979419980198145, -0.13786502182483673, -0.09072823077440262, -0.10845793783664703, -0.20091377198696136, -0.40829771757125854, -0.3468451499938965, 0.05191702023148537, 0.5339152216911316, -0.17747467756271362, 0.17201450...
generated. But other parameters make the queries open for injection. So I am looking a way to parameterize some of the parameters. Absolutely. Use [cursors](http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/sqloperations.htm). ``` DECLARE CURSOR c1 (job VARCHAR2, max_wage NUMBER) IS SELECT * FROM em...
[ 0.1733802706003189, 0.15835711359977722, 0.5055288672447205, 0.04289698973298073, 0.09964670985937119, 0.3293393552303314, -0.20649497210979462, -0.42191314697265625, -0.5658287405967712, -0.4008045792579651, -0.30295976996421814, 0.39759987592697144, -0.2412046194076538, 0.220401719212532...
person.salary || ', Job Id = ' || person.job_id ); END LOOP; END; ```
[ -0.17902493476867676, -0.13953177630901337, 0.21962258219718933, -0.2373407632112503, 0.28939110040664673, 0.5038811564445496, 0.15946067869663239, -0.17919979989528656, 0.0011870167218148708, -0.29567694664001465, -0.36109426617622375, 0.6957361698150635, -0.24584533274173737, 0.430191814...
I am making an app with many database operations. Since SQLite caches data, in my applicationDidReceiveMemoryWarning method, I am closing the database and opening it again to delete the cached data. When the do this, I get this error > \*\*\* Terminating app due to uncaught exception 'NSInternalInconsistencyException...
[ -0.3238883912563324, 0.4422803223133087, 0.7367193698883057, -0.21639522910118103, 0.12868620455265045, 0.33844852447509766, 0.6805610656738281, -0.25395894050598145, -0.34290558099746704, -0.8221228718757629, -0.35757574439048767, 0.5993234515190125, -0.6758145093917847, 0.052084591239690...
!= SQLITE_OK){ NSAssert1(0, @"Error: failed to open database with message '%s'.", sqlite3_errmsg(database)); } } else{ NSAssert1(0, @"Error: failed to close database on memwarning with message '%s'.", sqlite3_errmsg(database)); } ``` How to avoid this? Absolutely. Use [cursors](http://download.oracl...
[ -0.13038542866706848, 0.26508432626724243, 0.5132995843887329, -0.16077415645122528, 0.13909001648426056, 0.3689194917678833, 0.38199037313461304, -0.3423812687397003, -0.24852165579795837, -0.3777548670768738, -0.5635294914245605, 0.5718911290168762, -0.27931827306747437, 0.25306412577629...
person.salary || ', Job Id = ' || person.job_id ); END LOOP; END; ```
[ -0.17902493476867676, -0.13953177630901337, 0.21962258219718933, -0.2373407632112503, 0.28939110040664673, 0.5038811564445496, 0.15946067869663239, -0.17919979989528656, 0.0011870167218148708, -0.29567694664001465, -0.36109426617622375, 0.6957361698150635, -0.24584533274173737, 0.430191814...
Having written a [small article](http://www.codeproject.com/KB/testing/bddnbehave.aspx) on BDD, I got questions from people asking whether there are any cases of large-scale use of BDD (and specifically NBehave). So my question goes to the community: do you have a project that used BDD successfully? If so, what benef...
[ 0.693945586681366, 0.04045470803976059, -0.17635545134544373, -0.2601959705352783, -0.3659008741378784, -0.18770846724510193, 0.13911406695842743, -0.11288689076900482, -0.3137667775154114, -0.38662707805633545, 0.167713463306427, 0.5401391386985779, -0.3359714448451996, 0.2173567563295364...
driven UI Validation in .NET](http://abdullin.com/journal/2009/1/29/ddd-and-rule-driven-ui-validation-in-net.html)) ``` result = view.GetData( CustomerIs.Valid, CustomerIs.From(AddressIs.Valid, AddressIs.In(Country.Russia))); ``` 2. Telling the service layer, about the exception handling behavior ([ActionPolicy]...
[ 0.3699408173561096, -0.17635662853717804, 0.7056194543838501, 0.0002562329755164683, -0.2846668064594269, 0.01848813332617283, 0.21402283012866974, -0.6615954637527466, 0.04425586387515068, -0.3111160397529602, -0.2977730333805084, 0.6596893072128296, -0.3637964427471161, -0.03228124603629...
How do I get the internal serial number of a USB-Stick or USB-HardDrive in C#? Try this: ``` // add a reference to the System.Management assembly and // import the System.Management namespace at the top in your "using" statement. // Then in a method, or on a button click: ManagementObjectSearcher theSearcher = new Ma...
[ -0.2979191541671753, 0.14744646847248077, 0.7197699546813965, 0.08369286358356476, 0.3322107493877411, -0.12440624088048935, 0.10593704879283905, -0.3079471290111542, -0.5354325771331787, -0.7455386519432068, -0.1536557376384735, 0.9154786467552185, 0.10579047352075577, 0.4030090272426605,...
How can I get the list of all DLL dependencies of a given DLL or EXE file? In other words, I'd like to do the same as the "Dependency walker" tool, but programmatically. What is the Windows (ideally .NET) API for that? You can use [EnumProcessModules](http://msdn.microsoft.com/en-us/library/ms682631(VS.85).aspx) func...
[ 0.11087550222873688, -0.09200365096330643, 0.11864517629146576, 0.11973541229963303, -0.03081309050321579, -0.25320371985435486, 0.11187078803777695, -0.21541617810726166, -0.24618542194366455, -0.8381869792938232, -0.15420079231262207, 0.7385894060134888, -0.1624784916639328, 0.0841209739...
I've slightly modified the iPhone SDK's GLSprite example while learning OpenGL ES and it turns out to be quite slow. Even in the simulator (on the hw worst) so I must be doing something wrong since it's only 400 textured triangles. ``` const GLfloat spriteVertices[] = { 0.0f, 0.0f, 100.0f, 0.0f, 0.0f, 100.0f...
[ 0.0512065589427948, -0.12173275649547577, 0.9565669298171997, -0.14730742573738098, -0.15833139419555664, 0.2546052932739258, 0.7371190786361694, -0.31913673877716064, 0.009327213279902935, -0.6511791944503784, -0.06860962510108948, 0.6958099603652954, -0.2500171363353729, 0.14917206764221...
glMatrixMode(GL_MODELVIEW); glClearColor(0.3f, 0.0f, 0.0f, 1.0f); glVertexPointer(2, GL_FLOAT, 0, spriteVertices); glEnableClientState(GL_VERTEX_ARRAY); glTexCoordPointer(2, GL_SHORT, 0, spriteTexcoords); glEnableClientState(GL_TEXTURE_COORD_ARRAY); // sprite data is preloaded. 512x512 rgba88...
[ -0.21752960979938507, -0.43667176365852356, 1.0961227416992188, -0.16421782970428467, -0.38429656624794006, 0.25689932703971863, 0.19548268616199493, -0.4172477424144745, -0.01506822556257248, -0.6453928351402283, -0.36592593789100647, 0.6233938336372375, -0.43679913878440857, 0.4660353362...
glLoadIdentity(); glTranslatef(tx-100, ty-100,10); for (int i=0; i<200; i++) { glTranslatef(1, 1, 0); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); } .. } ``` drawView is called every time the screen is touched or the finger on the screen is moved and tx,ty are set to the x,y coordinates where...
[ -0.046853989362716675, -0.11947216838598251, 1.014069676399231, -0.37236297130584717, -0.11573243886232376, 0.08126381784677505, 0.05237703397870064, -0.2873768210411072, -0.1844923198223114, -0.6418469548225403, 0.04820765554904938, 0.7433782815933228, -0.17200243473052979, -0.03264924883...
quads are used (sized: 34x20) and much less overlapping is done. There are ~400 quads->800 triangles spread on the whole screen. Texture size is 512x512 atlas and RGBA\_8888 while the texture coordinates are in float. The code is very ugly in terms of API efficiency: there are two MatrixMode change along with two loads...
[ -0.025578102096915245, 0.14199452102184296, 0.541383683681488, 0.043833937495946884, -0.43371298909187317, 0.25939977169036865, 0.22051125764846802, -0.37150031328201294, -0.33012303709983826, -1.0483094453811646, 0.124292753636837, 0.460856556892395, -0.14908495545387268, -0.0483321323990...
know why people rated up Nils. He seems to have a fundamental misunderstanding of the OpenGL pipeline. He seems to think that for a given triangle, the entire texture is loaded and mapped onto that triangle. The opposite is true. Once the triangle has been mapped into the viewport, it is rasterized. For every on-scree...
[ 0.23814131319522858, 0.005387085024267435, 0.7696656584739685, 0.09782949835062027, -0.04350416734814644, -0.18591104447841644, 0.03800073266029358, -0.04684358835220337, -0.3312903344631195, -0.6796945929527283, 0.07986536622047424, 0.4041985869407654, -0.38107144832611084, -0.13298137485...
the higher quality GL\_LINEAR method to average the best texel. Still, if the pixel count in your triangle is, say 100, then the most texture bytes you will have to read is 4(lookups) \* 100(pixels) \* 4(bytes per color. Far far less than what Nils was saying. It's amazing that he can make it sound like he actually kno...
[ 0.1611589789390564, 0.10102898627519608, 0.7676786780357361, 0.02669224515557289, -0.34706681966781616, 0.23381857573986053, 0.24829542636871338, -0.315524697303772, -0.17707817256450653, -0.9868050217628479, 0.15798744559288025, 0.5274916887283325, -0.17394109070301056, -0.042550317943096...
draw on itself. This is going to be much slower when you have blending turned on, as you do. Because you are using large triangles that might overlap and blend with other tiles, the GPU has to do a lot of extra work. If, instead of rendering the example square with alpha edges, you were to render an actual shape (inste...
[ 0.5671780705451965, 0.041619084775447845, 0.1762974113225937, -0.13336049020290375, -0.27705466747283936, 0.22473883628845215, 0.002654614159837365, -0.46668320894241333, -0.014828416518867016, -1.0417639017105103, 0.25820979475975037, 0.38427630066871643, -0.48985156416893005, -0.10826266...
how much things speed up, even if the don't look right. glDisable(GL\_BLEND);
[ 0.2533263862133026, -0.38082852959632874, 0.629145085811615, 0.040566571056842804, 0.11497294157743454, -0.11283222585916519, -0.005123766139149666, 0.3086243271827698, -0.043398670852184296, -0.6698545813560486, -0.34633204340934753, 0.5404945015907288, -0.5025004744529724, -0.07709708809...
I'm programming with Visual C++ Express on the command line using makefiles (GNU Make). For this to work, I have to call the Visual Studio batch file *vsvars32.bat* to set up the environment. This has to be done everytime I open a new cmd.exe, before using make. When I try to call the batch file from my makefile, it ob...
[ 0.6564465165138245, 0.31013694405555725, -0.04292851686477661, -0.27391284704208374, -0.25958508253097534, -0.041388437151908875, 0.20618464052677155, -0.08534085005521774, -0.17846351861953735, -0.9309102892875671, 0.13656258583068848, 0.5680894255638123, -0.19362948834896088, -0.04986189...
after posting my own answer:** The above question is not quite right, it should be like this: Is it possible to call an environment-changing batch file from within a makefile, so that the changed environment persists for the other programs called in the makefile? The answer to the original question is yes: you can u...
[ 0.6752922534942627, 0.010161112993955612, 0.27303698658943176, -0.138591930270195, -0.003908846527338028, 0.046771712601184845, 0.2472020387649536, -0.26027435064315796, -0.08372651040554047, -0.3977808654308319, 0.10318728536367416, 0.4565667510032654, -0.2468288391828537, 0.1807196289300...
the following: > call "%VS90COMNTOOLS%vsvars32.bat" > > call make.exe %\* This does the job. But calling an environment-changing batch file from within a makefile, so that the changed environment persists for the other programs called in the makefile, seems to be impossible. **Edit:** After overflowing my PATH v...
[ 0.2539125382900238, -0.05429629981517792, 0.443381667137146, -0.5340737104415894, 0.151856929063797, 0.3216489255428314, 0.5102963447570801, -0.3584754467010498, 0.10580693930387497, -0.5828678011894226, 0.15301552414894104, 0.7724934816360474, -0.36466091871261597, 0.06452794373035431, ...
Currently our team is using [MoinMoin](http://moinmo.in/) as a wiki for IT and it's so nice. We want to promote to use wiki for end-users because some of them are interested. On the wiki we'll share and edit requirements of aplications, for instance. I think MoinMoin is not the more user-friendy (but I love to use it...
[ 0.3242434859275818, 0.1665913611650467, 0.33564573526382446, 0.254887193441391, 0.005454320926219225, -0.5362476110458374, 0.16201861202716827, 0.34933358430862427, -0.20894470810890198, -0.694561779499054, 0.009996955282986164, 0.6267202496528625, 0.13618306815624237, -0.09840591251850128...
can often help your non-programmer users by adding a feature or two to MoinMoin. Developers are up to speed with it and you have all the content there already. That said. Mediawiki is used for lots of general wikis out there today. Including Wikipedia. An aspect of user friendliness is recognition. Mediawiki might fee...
[ 0.3880941569805145, 0.1877426952123642, 0.27590250968933105, 0.2812970280647278, -0.20846231281757355, -0.3719131350517273, 0.21268314123153687, 0.22229422628879547, -0.7118789553642273, -0.5367388725280762, -0.054335303604602814, 0.8024197816848755, -0.14138464629650116, 0.055118203163146...
own verticals when the need arises. Mediawiki is reasonably feature rich without being totalluy overloaded. It has categories and templates which both come in handy for keeping things DRY and using the wiki in various processes. It shares lots of its syntax with MoinMoin since both have the same ancestor (syntax-wise)....
[ 0.2427818775177002, -0.27845174074172974, 0.3673979640007019, 0.23163734376430511, -0.461346834897995, -0.21425281465053558, 0.059261441230773926, 0.39743977785110474, -0.2228204309940338, -0.6372889876365662, -0.11522116512060165, 0.3906327486038208, -0.07408209145069122, -0.0276383329182...
everubody! can you help me with my trouble? I'm trying to create form for filling resume. User should not use mail client to submit form. How can I realize this idea on javascript or PHP? First: You need a server based script. Without any server interaction, no mail can be sent. PHP has a [mail() function](http://de2....
[ 0.10241405665874481, -0.18168914318084717, 0.7865756154060364, 0.12101911008358002, 0.0007890886627137661, 0.11552713811397552, 0.501484751701355, 0.21006439626216888, -0.08400843292474747, -0.8729441165924072, 0.005721976049244404, 0.6320830583572388, -0.5130975246429443, -0.2109892070293...
need to connect a SMTP server with correct credentials and then you can send mails via this connection. This function is implemented in the emailer module of phpBB2 e.g. Good luck!
[ 0.04676461219787598, 0.017784874886274338, 0.5086761713027954, 0.012922899797558784, -0.08395326882600784, -0.3906174302101135, 0.7469074726104736, 0.3163410723209381, -0.1705063283443451, -0.5091803073883057, -0.13492761552333832, 0.42486128211021423, -0.15616551041603088, -0.163767829537...
I have the following code: ``` [replyAllBtn addTarget:self.target action:@selector(ReplyAll:) forControlEvents:UIControlEventTouchUpInside]; - (void)replyAll:(NSInteger)tid { // some code } ``` How can I send a parameter to the `ReplyAll` function? The replyAll method should accept (id)sender. If a UIButton fired ...
[ 0.012506761588156223, -0.12482248991727829, 0.5411872863769531, -0.07423561811447144, -0.326606422662735, 0.08628527075052261, 0.15121819078922272, -0.5385099649429321, -0.04656337574124336, -0.5847504734992981, -0.1593586653470993, 0.49124854803085327, -0.27134567499160767, 0.194569557905...
So I have a generic list, and an `oldIndex` and a `newIndex` value. I want to move the item at `oldIndex`, to `newIndex`...as simply as possible. Any suggestions? Note ---- The item should be end up between the items at `(newIndex - 1)` and `newIndex` *before* it was removed. I know you said "generic list" but you ...
[ 0.15731745958328247, -0.1483856588602066, 0.5554042458534241, -0.03906426206231117, 0.09934674948453903, -0.08955374360084534, -0.05558900535106659, -0.16881205141544342, -0.34703031182289124, -0.7528985738754272, -0.19119326770305634, 0.4628235399723053, -0.3996472656726837, 0.30708238482...
the swap method that others have suggested is essentially what the *ObservableCollection* does in it's own Move method. **UPDATE 2015-12-30:** You can see the source code for the [Move](https://github.com/dotnet/corefx/blob/836f0480afbfc8fe7555530c6d98f70873db8ae4/src/System.ObjectModel/src/System/Collections/ObjectM...
[ 0.20842404663562775, -0.35191407799720764, 0.5116291046142578, 0.05000881478190422, -0.008234838955104351, 0.05566184222698212, -0.2137739062309265, -0.4841959476470947, -0.38911083340644836, -0.778394341468811, -0.26605960726737976, 0.48127350211143494, -0.3749876618385315, -0.25270947813...
Are there any problems with not prefixing private fields with an underscore in C# if the binary version is going to be consumed by other framework languages? For example since C# is case-sensitive you can call a field "foo" and the public property "Foo" and it works fine. Would this have **any** effect on a case-insen...
[ 0.38527345657348633, -0.006649286951869726, 0.01361755095422268, 0.1212843656539917, -0.23940519988536835, -0.2239186316728592, -0.036392852663993835, -0.09417825192213058, -0.34778261184692383, -0.36564913392066956, -0.0864250436425209, 0.9075536131858826, -0.555864691734314, -0.033585291...
should **NOT** have ``` public void foo() {...} ``` and ``` public void Foo() {...} ``` what you're describing isn't a problem because the private item isn't available to the user of the library
[ 0.2446766197681427, 0.0583716556429863, -0.13342267274856567, 0.13168573379516602, 0.19347476959228516, -0.2543680667877197, 0.08799151331186295, -0.18774226307868958, -0.26502925157546997, -0.5482669472694397, -0.26534977555274963, 0.4083842635154724, -0.5513042211532593, 0.29575443267822...
I'm building a web application that will is going to manipulate (pad, mix, merge etc) sound files and I've found that [sox](http://sox.sourceforge.net/) does exactly what I want. Sox is a linux command line program and I'm feeling a little uncomfortable with having the python web app starting new sox processes on my se...
[ 0.6130589842796326, 0.19878867268562317, 0.13791702687740326, -0.10450947284698486, -0.13618601858615875, -0.06306358426809311, 0.1088709607720375, -0.0986279621720314, 0.1898811310529709, -0.49937155842781067, 0.024196045473217964, 0.8578889966011047, -0.33736810088157654, -0.053043983876...
queues would be one thing to implement in order to get around the whole request response cycle. But is there other ways to make these things more elegant? The [`subprocess`](http://docs.python.org/library/subprocess.html) module is the preferred way of running other programs from Python -- much more flexible and nicer ...
[ 0.03662722557783127, -0.1727760285139084, 0.48217490315437317, 0.16523423790931702, 0.043994516134262085, 0.18248902261257172, -0.14441707730293274, 0.16751417517662048, -0.641520619392395, -0.6028404831886292, -0.235703706741333, 0.16308996081352234, -0.44346344470977783, 0.16801437735557...
I am installing active python, django. I really dont know how to set the python path in vista environment system. first of all will it work in vista. Temporary Change ================ To change the python path temporarily (i.e., for one interactive session), just append to `sys.path` like this: ``` >>> import sys >>>...
[ -0.013507937081158161, 0.09176796674728394, 0.6583343148231506, -0.26412567496299744, 0.19550369679927826, -0.1618267297744751, 0.2528839409351349, 0.11579522490501404, -0.1372440606355667, -0.7184125185012817, -0.4528474509716034, 0.7737969756126404, -0.4189338982105255, -0.05546550080180...