text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the only way to get a reliable product to the customer before the next Ice Age. And it's a good story. But I truly appreciate, and share, your heartfelt sentiments.* Version 2 will leverage our newfound enlightenment by replacing our callback and several `iptables` rules with a custom NAT and/or [`conntrack` helper](h...
[ 0.519524097442627, -0.21046563982963562, 0.2920999825000763, 0.11882830411195755, -0.08852669596672058, -0.49729907512664795, 0.46073055267333984, -0.004720025230199099, 0.032392386347055435, -0.7995052337646484, -0.12436655908823013, 0.4118809103965759, -0.4221991300582886, -0.42087721824...
a userspace application registered to the socket to perform the payload modifications. The [libipq](http://linux.die.net/man/3/libipq) man page contains details on how to use this and provides a simple example.
[ 0.31441032886505127, 0.04362199455499649, -0.04419919475913048, -0.098503477871418, -0.2290443480014801, -0.05540499836206436, -0.1266794353723526, -0.25302109122276306, -0.291423499584198, -0.6132636070251465, -0.33912548422813416, 0.2743085026741028, -0.24461868405342102, 0.0399957746267...
I know that this question has already been asked [HERE](https://stackoverflow.com/questions/41207/javascript-interactive-shell-with-completion) but sadly none of the answers suggest a javascript standalone shell that has auto completion. I am reopening this question again, in the hope that some new answers might be fou...
[ 0.12570539116859436, 0.027555979788303375, 0.506648063659668, -0.016560548916459084, -0.28982028365135193, 0.14092645049095154, 0.5630213022232056, -0.02359042316675186, -0.609696090221405, -0.5066782832145691, -0.16659145057201385, 0.5161781311035156, -0.034771837294101715, -0.03167040646...
system with node installed) is the best terminal-based, system-context shell I've seen so far. I'm comparing it to rhino and the built-in v8 shell. It provides tab-completion and line editing history, as well as syntax-colouring of evaluations. You can also import [CommonJS](http://commonjs.org/) modules, or at least t...
[ -0.1197671890258789, -0.30214110016822815, 0.3983563482761383, -0.028959019109606743, 0.1753799170255661, -0.020213807001709938, 0.04171288385987282, 0.21415169537067413, -0.2569532096385956, -0.8102474212646484, -0.1703326404094696, 0.5947325229644775, -0.23339030146598816, 0.017674630507...
Is it possible to configure two separate web apps (WAR) in a J2EE application (EAR) to access a shared session context? Further info: I ended up creating a shared class from the EAR which stored the required information in static members. This did the trick, even if it seemed like a dirty hack. Not directly. Most con...
[ 0.5009766817092896, 0.1873311996459961, -0.2773236334323883, 0.13719427585601807, -0.09600192308425903, 0.17861555516719818, 0.024249620735645294, -0.1839710772037506, -0.15284256637096405, -0.6196784973144531, 0.0632350742816925, 0.6428861021995544, -0.20427703857421875, 0.108789533376693...
Anyone use a language called Interactive Data Language, IDL? It is popular with scientists. I think it is a poor language because it is proprietary (every terminal running it has to have an expensive license purchased) and it has minimal support (try searching for IDL, the language, right now on stack) . I am trying to...
[ 0.46930772066116333, 0.36231788992881775, -0.09383794665336609, 0.2789539694786072, 0.008369051851332188, -0.5742289423942566, 0.062059540301561356, 0.583795964717865, -0.13314048945903778, -0.47582384943962097, 0.16038256883621216, 0.6036646366119385, -0.28995221853256226, 0.0643626898527...
How can I convince them? Edit: People are getting the impression that I don't know or use IDL. Also, I said IDL has minimal support which is true in one sense, so I must clarify that the scientific libraries are indeed large. I use IDL all the time, but this is exactly the problem: I am only using IDL because colleagu...
[ 0.5766091346740723, 0.27349457144737244, 0.16440652310848236, 0.09463952481746674, -0.018185269087553024, -0.34075164794921875, 0.3033612370491028, 0.00439556036144495, -0.022800209000706673, -0.5297685265541077, -0.09481258690357208, 0.546040952205658, -0.05997355654835701, 0.132707580924...
be more efficient in another language. This is like someone sending you a microsoft word file in an email attachment and if you don't understand how wrong that is then you probably write too many words not enough code and you bought microsoft word. Edit: As an alternative to IDL Python is popular. Here is a list of [T...
[ 0.15999989211559296, 0.16180157661437988, 0.342863529920578, 0.17302623391151428, -0.2803031802177429, -0.03622599318623543, -0.036311835050582886, -0.10402156412601471, 0.014990530908107758, -0.49883803725242615, -0.2396157830953598, 1.0644975900650024, -0.20381823182106018, -0.3984217345...
documentation * Standard GUI run/debug tool (IDLDE) * Single widget system (no angst about which to choose or learn) * SAVE/RESTORE capability * Use of keyword arguments as flags more convenient Cons of IDL * Narrow applicability, not well suited to general programming * Slower for large arrays * Array functionality ...
[ 0.026693111285567284, 0.22072619199752808, -0.0021703059319406748, 0.32117760181427, -0.13119132816791534, -0.23638929426670074, 0.2369537502527237, -0.3943121135234833, -0.15264290571212769, -0.5167232751846313, -0.30291351675987244, 0.7185035943984985, -0.15458784997463226, -0.2935536801...
within another framework) * Plotting: + Awkward support for symbols and math text + Many font systems, portability issues (v5.1 alleviates somewhat) + not as flexible or as extensible + plot windows not intrinsically interactive (e.g., pan & zoom) Pros of Python * Very general and powerful programming language, y...
[ 0.020654648542404175, 0.1365146040916443, 0.3071303069591522, 0.2205648422241211, -0.32595178484916687, -0.35070374608039856, 0.04677099734544754, -0.2405490279197693, 0.01513698510825634, -0.594240128993988, -0.36437854170799255, 0.7361325025558472, -0.24008256196975708, -0.39795061945915...
general array capabilities * Faster for large arrays, better support for memory mapping * Many books and on-line documentation resources available (for the language and its libraries) * Better support for table structures * Plotting + framework (matplotlib) more extensible and general + Better font support and portab...
[ 0.09097083657979965, -0.19785016775131226, 0.592113196849823, 0.139776349067688, -0.6642172336578369, 0.10772525519132614, 0.02316473238170147, -0.3459608554840088, -0.3070017993450165, -0.8877390027046204, -0.07170580327510834, 0.47050565481185913, -0.14750531315803528, -0.350220292806625...
items to install separately * Not as well accepted in astronomical community (but support clearly growing) * Scientific libraries not as mature: + Documentation not as complete, not as unified + Not as deep in astronomical libraries and utilities + Not all IDL numerical library functions have corresponding functiona...
[ 0.384966641664505, 0.01483243703842163, 0.34035471081733704, 0.3825174570083618, -0.321177214384079, -0.10653073340654373, 0.11361337453126907, -0.4663703739643097, -0.4482050836086273, -0.31473878026008606, -0.27451831102371216, 0.432341992855072, -0.06303056329488754, -0.1465317755937576...
all IDL 2-D plotting capability (e.g., surface plots) * Use of keyword arguments used as flags less convenient * Plotting: + comparatively immature, still much development going on + missing some plot type (e.g., surface) + 3-d capability requires VTK (though matplotlib has some basic 3-d capability) So many IDL fan...
[ 0.1797173023223877, 0.36183226108551025, 0.23541992902755737, 0.004941222257912159, -0.29355061054229736, -0.5777861475944519, 0.24804402887821198, 0.20815463364124298, -0.10095994919538498, -0.5490713715553284, -0.09531978517770767, 0.7547373175621033, -0.10226614028215408, -0.04835941642...
there's only IDL in the entire world. By the way, many of the younger astronomy students are also all about IDL and don't even want to check Fortran, or god forbids Python or C/C++. Those are languages for programmers and mathematicians, and not for astronomers. About the licensing fees. How many IDL versions have be...
[ 0.6059920191764832, 0.08404887467622757, 0.4565780758857727, 0.6383982300758362, 0.08691629022359848, -0.6214450597763062, -0.3710848391056061, 0.4414280652999878, -0.18229077756404877, -0.21292142570018768, 0.008161011151969433, 0.549237072467804, 0.22983182966709137, -0.07327812910079956...
There's nothing in IDL that can't be done in Python in a much better and cleaner way. Most of the scientific tools in it are extensive and very stable. I haven't had any problems with plotting all sorts of plots in matplotlib. Its GUI tools are excellent and intuitive, and not unlike the crappy IDL "widgets". This is ...
[ 0.1838119626045227, 0.13536860048770905, -0.06160441413521767, 0.16436026990413666, -0.13460220396518707, -0.45537152886390686, 0.11108772456645966, 0.3983975946903229, -0.08189110457897186, -0.7498390674591064, 0.19064825773239136, 0.48490387201309204, 0.10817968845367432, 0.0212310235947...
I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any code or any examples of how to do this. Has anybody successfully done this before? I'm picturing having a dozen icons in a...
[ 0.33556750416755676, 0.10359612107276917, 0.716928243637085, -0.06906365603208542, 0.045518409460783005, -0.006842322647571564, 0.19827577471733093, -0.2530464231967926, -0.17618097364902496, -0.5971630811691284, -0.04011080041527748, 0.46435558795928955, -0.42296186089515686, 0.2838979065...
document.getElementsByTagName('head')[0].appendChild(link); } link.href = 'https://stackoverflow.com/favicon.ico'; ```
[ 0.0021308106370270252, 0.007117031142115593, 0.7045707702636719, 0.1739569753408432, 0.24673502147197723, -0.5178124904632568, 0.33107396960258484, -0.3876316249370575, -0.29638516902923584, -0.45846912264823914, -0.686610758304596, 0.3013184070587158, -0.20961393415927887, 0.3847534358501...
Whats the best/easiest GUI library out there for Ruby? I would prefer a cross-platform GUI library, but currently I'm only concerned about Windows (Win32). I am having difficulting finding any that seem to be easy to use. Are there any? Ruby [Shoes](http://shoesrb.com/) (by why) is intended to be a *really* simple GUI...
[ 0.5737099051475525, -0.004254769068211317, 0.05787718668580055, 0.2972657382488251, -0.03440823778510094, -0.27502942085266113, 0.42734041810035706, 0.03202478215098381, -0.1403651386499405, -0.822066605091095, 0.008227073587477207, 0.8354818820953369, -0.2237740308046341, -0.1224808022379...
To trim the leading spaces we are using strmove. But we were advised to use strlmove instead of strmove. I have read and used strlcpy and strlcat. Whether strlmove does the similar functionality and what all are its advantages? Edit 1: Thank you Mike B and Chris Young. This is how we use strlcpy. ``` size_t strlcpy(c...
[ -0.10700754821300507, -0.11387252062559128, 0.45772525668144226, -0.04398098960518837, -0.015329048037528992, -0.16478495299816132, 0.05055050924420357, -0.328066885471344, -0.18177513778209686, -0.6226195693016052, -0.19677230715751648, 0.6627505421638489, -0.14396533370018005, -0.3392893...
defined regarding the implementation of strlmove(). I know this is one of the best place i can ask. Edit 2: strlmove() is implemented the same way as strlcpy() and strlcat() using memmove(). ``` size_t strlmove(char *dst, const char *src, size_t size) { //Error if the size is 0 //If src length is greater than...
[ -0.36983248591423035, -0.011720649898052216, 0.335764080286026, 0.04985775053501129, 0.1541757881641388, -0.007962995208799839, 0.013388014398515224, -0.24361920356750488, -0.15734165906906128, -0.43948566913604736, -0.39206191897392273, 0.595000684261322, -0.11766549199819565, -0.18295270...
routines are not standard (or as far as I known in wide, common use) so I can't be 100% certain with more specifics, but: Typically the `strl()` variations of `str()` routines take an additional parameter that indicates the size of the destination buffer. The routine guarantees that it will not write data past the end...
[ 0.05983360856771469, -0.27711060643196106, 0.11353383213281631, -0.1380949467420578, 0.10450457781553268, -0.10440123081207275, 0.5045077204704285, -0.10372121632099152, -0.40448763966560364, 0.02171161398291588, 0.10299757868051529, 0.38744431734085083, -0.3300498425960541, -0.03230161219...
guaranteed to have a terminated string that will be generally OK to pass to other `str()` functions. Note that if the length of the buffer is specified as 0 (zero) the function will *not* place a terminating null character (as there's no room in the buffer for anything). In my opinion, it's nearly always better to use...
[ 0.22689016163349152, -0.46692541241645813, -0.08606898784637451, 0.004072506912052631, 0.34843119978904724, -0.44765669107437134, 0.5625418424606323, 0.18460702896118164, -0.003785226494073868, -0.36917972564697266, -0.41509154438972473, 0.7007265686988831, -0.40643858909606934, -0.0521230...
I'm having an issue with a standard ASP.NET page that has a TextBox and a RequiredFieldValidator. The steps to reproduce are quite simple: 1. Place a TextBox on a page 2. Place a RequiredFieldValidator on the page 3. Point the RequiredFieldValidator at the TextBox 4. Run the app 5. Tab away from the TextBox the Requir...
[ 0.33577319979667664, 0.14028647541999817, 0.6894267797470093, -0.058889422565698624, 0.08555908501148224, -0.16102594137191772, 0.5965042114257812, -0.3484484553337097, 0.08573931455612183, -0.7336201071739197, -0.04084742069244385, 0.7096847295761108, -0.2816629111766815, -0.1718625128269...
this without hacking away at JavaScript myself? Is it possible this behavior is by design to suppress the appearance of validation controls until user input? Generally speaking, Validate() gets called whenever a control is clicked that has CausesValidation set to true, like a submit button. In any case, a poor mans ...
[ 0.11602536588907242, 0.03605212643742561, 0.45817604660987854, -0.05248457193374634, -0.25349825620651245, -0.35767295956611633, 0.5366301536560059, -0.3745447099208832, -0.11533991247415543, -0.3577035069465637, -0.34572646021842957, 0.5222419500350952, -0.4141627252101898, 0.221718162298...
I am using a fictional example for this. Say, I have a Widget class like: ``` abstract class Widget { Widget parent; } ``` Now, my other classes would be derived from this Widget class, but suppose I want to put some constraint in the class while defining the derived types such that only a particular "type" of widge...
[ 0.4414750039577484, 0.12071357667446136, 0.08057114481925964, 0.1409270465373993, -0.007238347083330154, -0.17167885601520538, -0.008902473375201225, -0.04375946521759033, 0.09488455951213837, -0.6357870101928711, 0.24915577471256256, 0.5630640983581543, -0.1685025542974472, 0.572054147720...
every time I use it. Precisely, what I would have liked to do is this: ``` // This does not works! class Widget<PType>: where PType: Widget { PType parent; } class WidgetParent<Widget> { public void Slap(); } class WidgetChild<WidgetParent> { } ``` So that when I want to access the parent of WidgetChild, ...
[ 0.4609411954879761, 0.24685297906398773, 0.40559878945350647, -0.20909197628498077, -0.2641061544418335, -0.17664599418640137, 0.49189046025276184, -0.38952285051345825, -0.10820737481117249, -0.37421944737434387, 0.24243514239788055, 0.492872029542923, -0.3288241922855377, 0.6222791671752...
class Widget<T> : Widget where T : Widget { } ``` You then need to work out what belongs in the generic class and what belongs in the non-generic... from experience, this can be a tricky balancing act. Expect to go back and forth a fair amount!
[ 0.2634272277355194, -0.24767839908599854, 0.08089833706617355, 0.3012779951095581, -0.13887721300125122, -0.21972353756427765, 0.23248690366744995, -0.2694220542907715, 0.007226446643471718, -0.5655028223991394, 0.040399711579084396, 0.712973952293396, -0.23538169264793396, 0.1296707838773...
I launch a child process in Java as follows: ``` final String[] cmd = {"<childProcessName>"}; Process process = Runtime.getRuntime().exec(cmd); ``` It now runs in the background. All good and fine. If my program now crashes (it *is* still in dev :-)) the child process still seems to hang around. How can I make it ...
[ 0.2268858253955841, 0.21029531955718994, 0.19667178392410278, -0.18289850652217865, 0.27069365978240967, 0.22985075414180756, 0.2423863261938095, -0.10489089041948318, 0.07236786186695099, -0.39313024282455444, -0.04492565989494324, 0.21600982546806335, -0.19565244019031525, 0.510437309741...
will not be executed. (as said in this [SO question](https://stackoverflow.com/questions/191215/how-to-stop-java-process-gracefully)) * some of the standard libraries have their own hooks which may run before yours. * beware of deadlocks. Another possibility would be to [wrap your java program in a service](http://wra...
[ 0.41105717420578003, -0.22464005649089813, 0.007061561103910208, 0.057652268558740616, 0.014917926862835884, -0.4351475238800049, 0.6489742398262024, -0.21280330419540405, -0.3202343285083771, -0.5153071284294128, -0.47181567549705505, 0.3976164162158966, -0.2819555699825287, 0.00436750287...
There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: [http://xunit.github.io/docs/comparisons.html](https://xunit.net/docs/comparisons) Now I am to choose the best one for us. But how? Does it matter? Which one is most future proof and has a decent momentum behind...
[ 0.20516589283943176, -0.10601454973220825, 0.3521009683609009, 0.13814502954483032, -0.5258775949478149, 0.08827388286590576, -0.06378006935119629, -0.0261477492749691, -0.026290247216820717, -1.0250999927520752, 0.3355278968811035, 0.7067023515701294, 0.018491413444280624, 0.0049468465149...
most of the other testing frameworks mentioned are all pretty much the same, xUnit.NET has taken a pretty unique, modern, and flexible approach to unit testing. It changes terminology, so you no longer define TestFixtures and Tests...you specify Facts and Theories about your code, which integrates better with the conce...
[ 0.5044187903404236, -0.10299868881702423, -0.018866416066884995, 0.401105672121048, -0.3368048071861267, -0.498020201921463, -0.057971201837062836, 0.03142264857888222, 0.19177688658237457, -0.6381761431694031, 0.234103262424469, 0.6064010858535767, -0.06219404190778732, 0.1661502271890640...
form allows you to write test classes that are similar to NUnit test fixtures with their test methods, you are not confined to this form of unit testing at all. You are free to extend the framework to support BDD-style Concern/Context/Observation specifications, as depicted [here](http://iridescence.no/post/Extending-x...
[ 0.686562716960907, -0.10961494594812393, 0.4099934995174408, 0.29746749997138977, -0.5310617089271545, -0.2182665765285492, 0.012489636428654194, -0.2721942067146301, 0.04245466738939285, -0.6096521615982056, 0.05516013130545616, 0.519268810749054, -0.10421255230903625, 0.02819741331040859...
both unit tests and integration tests, which can be huge in reducing product dependencies and required training. Other approaches to testing may also be implemented with xUnit.NET...the possibilities are pretty limitless. Combined with another very forward looking mocking framework, [Moq](https://github.com/Moq/moq4),...
[ 0.4548822045326233, 0.15265154838562012, -0.10292980074882507, 0.2751868963241577, -0.017054755240678787, -0.1890166848897934, -0.13523335754871368, -0.06324288249015808, 0.27270346879959106, -0.6098811030387878, 0.22852109372615814, 0.602123498916626, 0.035386811941862106, 0.1667183190584...
I'm having a bit of trouble trying to get class variables to work in javascript. I thought that I understood the prototype inheritance model, but obviously not. I assumed that since prototypes will be shared between objects then so will their variables. This is why this bit of code confuses me. What is the correct ...
[ 0.326425701379776, 0.25432345271110535, 0.01707269251346588, -0.08440516889095306, -0.000022759677449357696, -0.07904434204101562, 0.4517625868320465, -0.4558442533016205, -0.13590528070926666, -0.6879549026489258, 0.07694464176893234, 0.4817562401294708, -0.351780503988266, 0.348023682832...
the fact that by incrementing the instance's variable we don't affect the prototype. This is fine, this is what I have documented in my example, but doesn't this seem like an error in the design of the language? Why would this behavior be desirable? I find it weird that when the instance's var is undefined we follow th...
[ 0.42651766538619995, 0.04768473654985428, -0.04653968662023544, 0.10681173205375671, -0.2885279953479767, 0.09451678395271301, 0.4131731688976288, 0.022370269522070885, -0.4066453278064728, -0.2709088921546936, 0.31259337067604065, 0.5408223271369934, -0.5008146166801453, 0.325571388006210...
good. ``` I assumed that since prototypes will be shared between objects then so will their variables. ``` They are, but this: ``` a.shared++ ``` is not doing what you think it's doing. It's in fact (approximately) sugar syntax for: ``` (a.shared= a.shared+1)-1 ``` (the -1 being to return the pre-increment valu...
[ 0.018794409930706024, 0.420835018157959, -0.0375390499830246, -0.18810254335403442, -0.08719991147518158, -0.017508843913674355, 0.4183700680732727, -0.021577995270490646, 0.03244051709771156, -0.5482074022293091, 0.07815539091825485, 0.297217458486557, -0.3111377954483032, 0.1070251986384...
instances of classA would continue to show the prototype's value 1. If you deleted a.shared you would once again be able to see the prototype's variable that was hidden behind it.
[ 0.020676257088780403, -0.3141309916973114, -0.41963744163513184, 0.3055415153503418, -0.5169646143913269, 0.12077800929546356, 0.5518548488616943, 0.14564816653728485, -0.09915533661842346, -0.4395582675933838, 0.18417015671730042, -0.15166626870632172, -0.5094650387763977, 0.7115759849548...
Let's say I have an array of lots of values (C++ syntax, sorry): ``` vector<double> x(100000); ``` This array is sorted such that `x[n] > x[n-1]`. I would like a function to retrieve an array of all values in the range [a, b] (that's inclusive). Some interface like: ``` void subarray(const double a, const double b...
[ -0.08613275736570358, -0.004354489967226982, 0.3977169394493103, -0.09553471952676773, -0.08704100549221039, 0.017631037160754204, 0.24282550811767578, -0.5154721736907959, -0.286051869392395, -0.5026390552520752, -0.19651702046394348, 0.45983272790908813, -0.23881712555885315, 0.122933045...
if (a <= data[i] && data[i] <= b) { sub.push_back(data[i]); } } } ``` However, because `data` is sorted, I should be able to do this much faster using a binary search. Who wants to take a stab at it? Any language is permitted! What you're asking is a bit confusing regarding the the exact range...
[ -0.02092044986784458, 0.07753406465053558, 0.08994472026824951, -0.11122780293226242, -0.014362777583301067, -0.23125329613685608, 0.21090732514858246, -0.4060499668121338, -0.09607207775115967, -0.4042535424232483, -0.29352161288261414, 0.6674260497093201, -0.3833422362804413, -0.16088068...
to use lower\_bound and upper\_bound to find the positions in the array that delineate the range you're looking for. ``` void subarray(const double a, const double b, vector <double> &sub, vector <int> pn) { vector <int>::const_iterator begin, end; begin = lower_bound(pn.begin(), pn.end(), a); end = upper_...
[ -0.22804898023605347, -0.29996249079704285, 0.4754011034965515, -0.2987252473831177, 0.22581781446933746, 0.3405281901359558, 0.08693238347768784, -0.4520947337150574, -0.17945021390914917, -0.6125372052192688, -0.4025292992591858, 0.6649616360664368, -0.39236322045326233, -0.2422109246253...
I am currently looking at different ORM solutions for a project that is planned for this spring. Entity Framework is one of the products I am looking closer at, but EF 2.0 would be quite a lot more interesting. Has there been any indications to when version 2.0 of Entity Framework is planned to be released? With .Net ...
[ 0.20199738442897797, -0.0338803231716156, 0.6848027110099792, 0.12416388094425201, 0.006616987753659487, -0.41459083557128906, -0.07540100812911987, 0.16039583086967468, -0.1655532270669937, -0.595978856086731, 0.22596339881420135, 0.4212172329425812, 0.04961494728922844, 0.014903267845511...
In C I know about the recursive function but I heard about the re-entrant function.What is that? And whats the difference between them? A function is re-entrant if it supports having multiple threads of execution "going through" it at the same time. This might be due to actual multi-threading, and I use this case below...
[ 0.09373371303081512, -0.1753213256597519, 0.025194207206368446, -0.08998201042413712, -0.028895584866404533, -0.07489268481731415, -0.11970071494579315, 0.15828901529312134, -0.6139270067214966, -0.4365103542804718, -0.24668943881988525, 0.6499412655830383, -0.5721395611763, 0.086311928927...
then be accessed by two (or more) threads in parallel, often breaking horribly. A re-entrant function often has an explicit argument to hold any call-specific state, rather than storing it statically. `strtok()` is a classic case of a function in the C standard library that is well-known *not* to be re-entrant. [Edit...
[ 0.11511451750993729, 0.03708481043577194, -0.1289965957403183, 0.10753034055233002, 0.0075362068600952625, -0.16145505011081696, 0.4143221974372864, 0.16740435361862183, -0.15730132162570953, -0.5267404317855835, -0.5370656251907349, 0.5094919800758362, -0.26861312985420227, 0.199154868721...
Talking from a 'best practice' point of view, what do you think is the best way to insert HTML using PHP. For the moment I use one of the following methods (mostly the latter), but I'm curious to know which you think is best. ``` <?php if($a){ ?> [SOME MARKUP] <?php } else{ ?> [SOME OTHER MARKUP] <?php } ?> `...
[ 0.3965042233467102, 0.09099355340003967, -0.01249611284583807, -0.21021653711795807, -0.19385164976119995, -0.2023744285106659, 0.20145320892333984, -0.1986989676952362, -0.05045654997229576, -0.6211215257644653, 0.15524613857269287, 0.6055164337158203, -0.29383572936058044, -0.41043826937...
Priority is about mindset. I have seen people do shocking things in Smarty, and it eventually turns into people developing sites **in** Smarty, and then some bright spark will decide they need to write a template engine in Smarty (Never underestimate the potential of a dumb idea). If you break your code into two parts...
[ 0.24188198149204254, -0.12529784440994263, 0.28927403688430786, 0.21189020574092865, -0.08677332103252411, -0.2551937699317932, 0.14454153180122375, -0.28955140709877014, -0.3605562150478363, -0.665283203125, -0.20868653059005737, 0.5185154676437378, 0.023120712488889694, -0.44214561581611...
<!-- etc --> <?php for ( $i = 1; $i < 10; $i++ ){ ?> <?php echo $pageData->foo[$i]; ?> <?php } ?> <!-- etc --> </html> ``` PHP Was written as a templating engine, so you at least should *try* to use it for its designed task before assessing whether or not you need to delve into Smarty. --- Moreover, i...
[ 0.037370119243860245, 0.07981599122285843, 0.4364907741546631, -0.17634455859661102, -0.22002969682216644, -0.2121189534664154, 0.4893451929092407, -0.16721495985984802, -0.2595570981502533, -0.4405391812324524, -0.08707143366336823, 0.44488975405693054, -0.401862233877182, -0.269169241189...
in this respect, and because of this, there are a lot of content-naïve templates written in it. ``` {if $cond} {$dangerous_value} {else} {$equally_dangerous_value} {/if} ``` Is generally how Smarty templates go. The problem is $dangerous\_value can be arbitrary HTML and this just leads to even **more** bad c...
[ 0.3149147927761078, -0.13593728840351105, -0.21905525028705597, 0.2152601033449173, 0.011866532266139984, -0.4868888854980469, 0.4982772171497345, -0.0837927758693695, -0.3304096758365631, -0.6724683046340942, -0.19541005790233612, 0.4119868278503418, -0.6806955337524414, 0.081879325211048...
I have a web page `x.php` (in a password protected area of my web site) which has a form and a button which uses the `POST` method to send the form data and opens `x.php#abc`. This works pretty well. However, if the users decides to navigate back in Internet Explorer 7, all the fields in the original `x.php` get clear...
[ 0.5457170009613037, 0.4508127272129059, 0.35846903920173645, -0.3145003318786621, -0.11717712879180908, -0.1264173984527588, 0.334109902381897, 0.27989494800567627, -0.01611359789967537, -0.6727940440177917, 0.14051799476146698, 0.40167734026908875, -0.22942636907100677, 0.1735843420028686...
that the HTTP header should contain explicit caching information. Currently, I've tried this : ``` session_name("FOO"); session_start(); header("Pragma: public"); header("Expires: Fri, 7 Nov 2008 23:00:00 GMT"); header("Cache-Control: public, max-age=3600, must-revalidate"); header("Last-Modified: Thu, 30 Oct 2008 17:...
[ 0.14498870074748993, 0.5339828729629517, 0.37426966428756714, -0.29835885763168335, -0.2830849289894104, -0.3926800787448883, 0.7318390607833862, -0.30756518244743347, -0.1087249368429184, -0.10476373136043549, -0.014921396970748901, 0.4418528079986572, -0.18045736849308014, 0.246391341090...
in hand, so I'm guessing the latter may apply. (As mkoeller says, Firefox avoids this problem if the page is in the last few back clicks by keeping the page itself alive for longer than it's on the screen. However this is optional, and Firefox will revert to the same behaviour as IE and other browsers once you've brows...
[ 0.24848082661628723, -0.05436427518725395, 0.5832069516181946, -0.38559475541114807, -0.22351285815238953, -0.20860518515110016, 0.4359745383262634, -0.13476642966270447, -0.26011866331100464, -0.7008870840072632, -0.26825979351997375, 0.44692933559417725, -0.07737374305725098, -0.05311281...
it can't fill it in with the previously-submitted value. In this case if you want it to play well with the back button you have to start storing data on the client. Then you have to use some sort of state-keying so that each set of data is tied to exactly one instance of the page, otherwise going through multiple inst...
[ 0.27157148718833923, -0.06014462932944298, 0.45393258333206177, 0.33135291934013367, -0.1034441888332367, -0.2174101620912552, 0.02208118885755539, -0.10000819712877274, -0.20118851959705353, -0.6515512466430664, 0.06476450711488724, 0.22793561220169067, -0.14057648181915283, 0.07529231160...
you're using is cookies you can start to lose data, as well as sending a load of unnecessary state nonsense with every HTTP request. Other client-side storage mechanisms are available but they're browser-specific. In short: doing dynamically-generated forms nicely is a huge pain and it's probably best avoided if you c...
[ 0.30541732907295227, -0.04612187668681145, 0.05422966554760933, 0.32818174362182617, -0.08452750742435455, -0.33529579639434814, 0.571523129940033, -0.02958719991147518, -0.21719489991664886, -0.850898802280426, 0.007716759108006954, 0.42119288444519043, -0.1370239555835724, -0.23527783155...
I've got an HTML "select" element which I'm updating dynamically with code something like this: ``` var selector = document.getElementById('selectorId'); for (var i = 0; i < data.length; ++i) { var opt = document.createElement('option'); opt.value = data[i].id; opt.text = data[i].name; selector.appendChild...
[ 0.1119094043970108, -0.17232206463813782, 0.6172153949737549, -0.4906350374221802, 0.30680614709854126, 0.03900296986103058, 0.292699933052063, -0.5519716739654541, -0.10880230367183685, -0.8783224821090698, -0.18975083529949188, 0.8327485918998718, -0.41291314363479614, -0.254453420639038...
in IE? Set the `innerHTML` property of the option objects, instead of their `text`. ``` var selector = document.getElementById('selectorId'); for (var i = 0; i < data.length; ++i) { var opt = document.createElement('option'); opt.value = data[i].id; opt.innerHTML = data[i].name; selector.appendCh...
[ 0.056168101727962494, -0.19691713154315948, 0.531510055065155, -0.37150830030441284, 0.06241954490542412, -0.10540840774774551, 0.29335758090019226, -0.33040836453437805, 0.14883852005004883, -0.8446561694145203, -0.4568108916282654, 0.9871616959571838, -0.29025429487228394, -0.50313025712...
well. As long as there are no special characters (&, <, >) in the "name" properties, "innerHTML" will be enough.)*
[ 0.11762575060129166, 0.013043325394392014, 0.43280020356178284, 0.03091353178024292, 0.0365200974047184, -0.01778414100408554, 0.27577441930770874, 0.3033301830291748, -0.11160626262426376, -0.36794260144233704, -0.4036712348461151, 0.6863841414451599, 0.006504077930003405, -0.148750573396...
How do you calculate the number of `<td>` elements in a particular `<tr>`? I didn't specify id or name to access directly, we have to use the `document.getElementsByTagName` concept. You can use something like the following: ``` var rowIndex = 0; // rowindex, in this case the first row of your table var table = docum...
[ -0.06603579968214035, -0.046648506075143814, 0.4804726243019104, -0.018087901175022125, 0.22157640755176544, 0.06646254658699036, -0.023912424221634865, -0.5418848395347595, -0.3018973767757416, -0.49666550755500793, -0.023394828662276268, 0.3164774775505066, -0.3885292410850525, 0.1004970...
I apologize in advance for the long post... I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and Library files. However, we wanted to transition to a build process tha...
[ 0.46489477157592773, 0.08757075667381287, 0.20090839266777039, -0.04852285608649254, -0.033593472093343735, -0.2282586395740509, 0.22671020030975342, -0.32026565074920654, -0.1485055536031723, -0.7440978288650513, -0.14075499773025513, 0.41969677805900574, -0.020200716331601143, 0.42822939...
Pages > Configuration Properties > C/C++ > General > Additional Include Directories, and Library directories to Linker > General > Additional Library Directories. Unfortunately, this approach doesn't work for STLPort. We get LNK2019 and LNK2001 errors during linking: ``` Error 1 error LNK2019: unresolved external...
[ -0.5875739455223083, 0.03488307446241379, 0.7063309550285339, 0.00126344442833215, -0.008163196966052055, 0.12032478302717209, 0.2800159454345703, -0.3243196904659271, -0.32965776324272156, -0.6744053959846497, -0.14092130959033966, 0.49442052841186523, -0.3009498119354248, 0.1062912642955...
stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > const &,class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > const &,long,enum MyClass::MessageType,int,class stlp_std::basic_string<char,class stlp_std::char_traits<char>,cla...
[ -0.0660015121102333, -0.0790591612458229, 0.4681572914123535, 0.025014612823724747, 0.021085374057292938, 0.030791914090514183, 0.376729816198349, -0.2175784856081009, -0.5330389738082886, -0.7013575434684753, -0.04599924385547638, 0.3299085199832916, -0.42630019783973694, -0.0684515237808...
will be a horrible mangled name. Use a hex editor (IIRC, Visual Studio will do this) to look at the .lib file you're linking to. Find the symbol that's almost the thing the linker is looking for, but not quite. Given the differences in the symbols, try to figure out what command line switches will help. Good luck -...
[ 0.38554713129997253, 0.0638706386089325, 0.28645357489585876, 0.465798944234848, 0.282764196395874, -0.056666262447834015, 0.4277305603027344, 0.22756648063659668, -0.20049327611923218, -0.8279367685317993, -0.23028229176998138, 0.2881428897380829, -0.15364773571491241, 0.15005595982074738...
There are two databases in SQL Server 2005: One called "A" and another one called "A\_2". "A" is a variable name to be entered by the user, the "\_2" prefix for the second database is always known. (So databases could be "MyDB" and "MyDB\_2", etc) How to access the other database from within a stored procedure witho...
[ -0.378743976354599, -0.05007831007242203, 0.3322003483772278, 0.041716068983078, -0.3232867419719696, -0.2533508241176605, 0.28091809153556824, -0.029179029166698456, -0.09063050895929337, -0.11247401684522629, 0.1564057618379593, 0.4987369179725647, -0.506296694278717, 0.10030383616685867...
possibility to change the synonym "on the fly" later on. Obviously, it would still be necessary to run the CREATE SYNONYM code as dynamic SQL. To run CREATE SYNONYM, the user must be granted the respective permission, or have ALTER SCHEMA permission. Be sure to read more about synonyms before you go that route, there ...
[ 0.4657982885837555, -0.1802734136581421, 0.1339244544506073, 0.4902445077896118, 0.18147769570350647, -0.5433330535888672, 0.42435744404792786, 0.0020485809072852135, -0.17635908722877502, -0.22291938960552216, 0.03738846629858017, 0.5111259818077087, -0.2349030077457428, 0.112601816654205...
I made a custom ValueObject class with properties (getters/setters) and I need this class for data binding of elements on form. So I want to drag it to "other components" on matisse editor so I can bind it - and nothing happens.... Any similar experiences? The same issue is happening both on NetBeans 6.5 and MyEclipse ...
[ 0.29482951760292053, -0.27247875928878784, 0.28961408138275146, 0.11574351042509079, -0.07974469661712646, 0.0007711867801845074, 0.050543561577796936, -0.32239606976509094, -0.03315120190382004, -0.7504456043243408, 0.004856172017753124, 0.625868558883667, -0.2276141345500946, 0.116093583...
needs to compile cleanly to do this.
[ 0.2117556929588318, 0.40505197644233704, -0.1428869366645813, 0.24599303305149078, 0.24123971164226532, -0.06835967302322388, 0.18774986267089844, -0.2381535768508911, 0.20560143887996674, -0.8330628275871277, 0.2443390041589737, 0.2298370748758316, 0.11099046468734741, 0.1002427414059639,...
We have a couple of web servers using load balancer. Machines are running IIS6 on port 81. Externally, site is accessable using port 80. External name and name of the machine are different. We're getting ``` System.ServiceModel.EndpointNotFoundException: The message with To '<url>' cannot be processed at the receive...
[ 0.10067276656627655, 0.19510895013809204, 0.5982828140258789, -0.10786174237728119, -0.056415606290102005, -0.21459676325321198, 0.5579861998558044, -0.10963335633277893, -0.10627330839633942, -0.9934929013252258, -0.2470329999923706, 0.5195564031600952, -0.21439878642559052, 0.35500746965...
Here's the situation: I have one VS2005 solution with two projects: MyDll (DLL), MyDllUnitTest (console EXE). In MyDll I have a class called MyClass which is internal to the DLL and should not be exported. I want to test it in MyDllUnitTest, so I added a test suite class called MyClassTest, where I create instances o...
[ -0.13022655248641968, -0.28391233086586, 0.3176841735839844, 0.1156160831451416, -0.1499590426683426, -0.0011934307403862476, 0.043907713145017624, 0.03856511786580086, 0.04055076465010643, -0.7950988411903381, 0.4027526080608368, 0.3416718542575836, -0.30402427911758423, 0.380834102630615...
projects (so object files are in the same directory) and using the References feature of VS2005 (right click project --> References --> Add New Reference...), but it didn't work - I still get a linking error (LNK2001). **Edit:** I don't want to have the same source file in two projects - consider the face that I have ...
[ 0.4210781753063202, -0.1681874841451645, -0.14170654118061066, 0.06203434616327286, -0.21352414786815643, 0.02949969470500946, 0.39051398634910583, 0.07134097814559937, -0.3792838156223297, -1.0522644519805908, 0.40262240171432495, 0.4311060607433319, -0.2823758125305176, 0.383076369762420...
so they are compiled twice. It turns out the "Reference" feature works automatically - but only for static lib projects. I don't understand why you don't want to build it in your dll project. As long as both projects are using the same source file, they will both generate the same object file (assuming compiler options...
[ 0.42110878229141235, -0.02188963070511818, -0.11378708481788635, -0.0627526044845581, -0.1844976395368576, -0.12302815169095993, 0.21724624931812286, -0.10218790918588638, -0.16216535866260529, -0.7259049415588379, -0.03890639916062355, 0.6759287714958191, -0.6406894326210022, 0.1263333857...
"C" MyClass *CreateMyClass(); ``` This function would create an object of MyClass and return a pointer to it. Your unit test can then do whatever it needs with the returned class object.
[ 0.3473042845726013, 0.014118772000074387, -0.04850625619292259, -0.00856915581971407, 0.10436882078647614, -0.16017410159111023, 0.26054874062538147, 0.05798300355672836, 0.27155381441116333, -0.36390382051467896, -0.12227772921323776, 0.4517509341239929, -0.20924408733844757, 0.3331566154...
What is the command to match brackets in Emacs (the equivalent of the `%` command in Vim)? See `show-paren-mode` as described in [5.27 How do I show which parenthesis matches the one I'm looking at?](http://www.gnu.org/software/emacs/manual/html_mono/efaq.html#Matching-parentheses)
[ 0.3049294650554657, 0.1388491541147232, 0.36612945795059204, -0.20463162660598755, -0.2644319236278534, 0.018329864367842674, -0.04989909008145332, -0.37901708483695984, -0.15146532654762268, -0.048229530453681946, 0.12862522900104523, 0.889824628829956, -0.4151272475719452, -0.22037075459...
I'm by no means a sysadmin so please correct me if I'm wrong. I want to run aspnet\_regiis.exe -s. This requires the metabase path of my website. How do I find this metabase path? Just run aspnet\_regiis.exe -lk to see a list of the registered applications, their metabase paths and the version of the .NET framework i...
[ 0.7044886350631714, 0.41897526383399963, 0.28045403957366943, -0.044410914182662964, -0.25010910630226135, -0.18731270730495453, 0.41336125135421753, -0.0715571790933609, -0.26117897033691406, -0.42622724175453186, -0.01862890087068081, 0.41897451877593994, -0.2376195341348648, 0.113538354...
My goal is to integrate testing into my development environment (as post-build step). I don't want to interfere with the DLLs that are generated in debug and release, so i plan to create new configurations for the project. But i don't want to compile every source file i have twice - once for the DLL, once for the test ...
[ 0.3521308898925781, 0.1993231475353241, -0.01565096341073513, -0.22353705763816833, -0.19229936599731445, -0.0548841767013073, 0.3807466924190521, 0.03141625225543976, -0.04231008142232895, -0.7037277817726135, 0.02494482509791851, 0.616674542427063, -0.4090016484260559, -0.132337972521781...
I am developing a piece of software in Python that will be distributed to my employer's customers. My employer wants to limit the usage of the software with a time-restricted license file. If we distribute the `.py` files or even `.pyc` files it will be easy to (decompile and) remove the code that checks the license f...
[ 0.6195476055145264, 0.3867906332015991, -0.08358420431613922, -0.07873973250389099, 0.20841839909553528, -0.2757635712623596, -0.02018679864704609, 0.18915559351444244, -0.19344361126422882, -0.31487640738487244, 0.01748877391219139, 0.5452455878257751, -0.28072619438171387, 0.097071357071...
difficult to lock down. Even if you use a exe-packager like [py2exe](http://py2exe.org), the layout of the executable is well-known, and the Python byte-codes are well understood. Usually in cases like this, you have to make a tradeoff. How important is it really to protect the code? Are there real secrets in there (s...
[ 0.4451711177825928, 0.1256980150938034, -0.19939930737018585, 0.2936144173145294, 0.2723061144351959, -0.45193883776664734, 0.1833096593618393, 0.14314714074134827, -0.2605947256088257, -0.2804928421974182, -0.3694794476032257, 0.7250404953956604, -0.31016138195991516, -0.04487613216042518...
it as a small C extension so that the license check code can be extra-hard (but not impossible!) to reverse engineer, and leave the bulk of your code in Python.
[ 0.3621949255466461, 0.004754501860588789, 0.10686050355434418, -0.10227830708026886, 0.10860510170459747, -0.2527856230735779, 0.24561601877212524, 0.31397563219070435, -0.0580170713365078, 0.15444545447826385, -0.20127183198928833, 0.5252888798713684, -0.16998392343521118, -0.168512329459...
I have a `TreeView` windows forms control with an `ImageList`, and I want some of the nodes to display images, but the others to not have images. I *don't* want a blank space where the image should be. I *don't* want an image that looks like the lines that the TreeView would draw if it didn't have an ImageList. How do...
[ 0.4461453855037689, -0.041134312748909, 0.3657538592815399, 0.059294041246175766, -0.16576285660266876, -0.002927978988736868, 0.33542993664741516, 0.09881328791379929, -0.21165618300437927, -0.8191901445388794, 0.04239527881145477, 0.5232329964637756, -0.2775149643421173, 0.16901604831218...
values the control just defaults `ImageIndex` to 0. The following code: ``` treeView.ImageKey = "Value"; Debug.WriteLine(treeView.ImageIndex); treeView.ImageKey = null; Debug.WriteLine(treeView.ImageIndex); treeView.ImageIndex = -1; Debug.WriteLine(treeView.ImageIndex); ``` Produces output: ``` -1 0 0 ``` This ki...
[ 0.015059310011565685, 0.0796826183795929, 0.576105535030365, 0.014071527868509293, 0.00008652413816889748, 0.01715988852083683, 0.24580597877502441, -0.3817528188228607, 0.121436208486557, -0.4127996861934662, 0.08445701003074646, 0.690639078617096, -0.4674840569496155, 0.00645324075594544...
I need to store large amounts of metering data in a database. **A record consists of an id that identifies the data's source, a timestamp and a value. The records are later retrieved via the id and their timestamp.** According to my previous experience (I am developing the successor of an application that's been in pr...
[ 0.16625015437602997, 0.17546698451042175, 0.28824949264526367, 0.4164450466632843, 0.2278563678264618, -0.03162050619721413, -0.19173450767993927, -0.19098928570747375, -0.17897775769233704, -0.6153894066810608, -0.06031623110175133, 0.5063680410385132, 0.12062656879425049, -0.002805774565...
timestamps, a pretty obvious optimization seems to be to **store larger, compressed chunks of data** that are accessed by a much smaller index (e. g. by a day number) and is **decompressed and filtered on the fly** by the application. What I'm looking for is the **best strategy for deciding what portion of the data to...
[ 0.25218504667282104, -0.09574950486421585, 0.21582113206386566, 0.23034560680389404, 0.25499841570854187, 0.07016830891370773, 0.036677829921245575, 0.07362612336874008, -0.4804995656013489, -0.8941543698310852, -0.03806868568062782, 0.1452336311340332, -0.1452496349811554, 0.1016075313091...
want to minimize excess data per chunk. I'll post an answer below containing my ideas so far, and make it community property so you can expand on it. Of course, if you have a different approach, post your own. *ETA: [S. Lott](https://stackoverflow.com/users/10661/slott) has posted [this answer](https://stackoverflow....
[ 0.45376792550086975, 0.10678241401910782, 0.13311682641506195, 0.11881104856729507, 0.25543272495269775, 0.1271394044160843, 0.010359181091189384, -0.07722721248865128, -0.4719349443912506, -0.3653492033481598, -0.0399426706135273, 0.46771278977394104, 0.09043477475643158, -0.1857145130634...
this question in the first place.* "groups of rows that match a range of ids and timestamps" You have two dimensions: the source and time. I'm sure the data source has lots of attributes. Time, I know, has a lot of attributes (year, month, day, hour, day of week, week of year, quarter, fiscal period, etc., etc.) Whil...
[ 0.16380363702774048, 0.1376386284828186, 0.3840857744216919, 0.674019455909729, -0.0505073256790638, 0.20529581606388092, -0.10671423375606537, -0.03558382764458656, -0.20173682272434235, -0.6501743793487549, 0.3116907775402069, 0.17158633470535278, 0.06427415460348129, 0.5029131770133972,...
be a group of rows with a common data source attribute. It isn't so much a random cluster of ID's, it's a cluster of ID's defined by some common attribute of your dimensions. Once you define these attributes of the data source dimension, your "chunking" strategy should be considerably more obvious. Further, you may f...
[ 0.23656219244003296, -0.046063054352998734, 0.06474493443965912, 0.5207616686820984, -0.14781948924064636, -0.026907287538051605, -0.2400108426809311, -0.11489950865507126, -0.10014490783214569, -0.7296575903892517, -0.03622543811798096, 0.4605940282344818, -0.18657724559307098, 0.10215938...
and fact, and then partition the fact table on this dimensional attribute.
[ 0.03306247666478157, -0.0182499997317791, 0.23309926688671112, 0.48426002264022827, 0.19983559846878052, 0.2474922090768814, -0.38147011399269104, 0.001028768252581358, 0.2348494976758957, -0.698413610458374, -0.07280847430229187, 0.4531780481338501, 0.03915582597255707, 0.2382183670997619...
If an interface inherits IEquatable the implementing class can define the behavior of the Equals method. Is it possible to define the behavior of == operations? ``` public interface IFoo : IEquatable {} public class Foo : IFoo { // IEquatable.Equals public bool Equals(IFoo other) { /...
[ -0.19098789989948273, -0.06597209721803665, 0.3414027988910675, -0.03158767148852348, -0.004829098004847765, -0.17440257966518402, 0.15645486116409302, -0.256745845079422, 0.17268390953540802, -0.72243732213974, 0.18307135999202728, 0.7138924598693848, -0.6329065561294556, 0.20782051980495...
Y = new Foo(); if (X.Equals(Y)) { // Do something } ``` Is it possible to make `if (X == Y)` use the Equals method on Foo? No - you can't specify operators in interfaces (mostly because operators are static). The compiler determines which overload of == to call based purely on their static type (i.e. poly...
[ -0.09365180879831314, -0.006412694696336985, 0.38684576749801636, -0.17271941900253296, -0.14241185784339905, -0.09545192122459412, 0.19681304693222046, -0.20597663521766663, 0.0861663892865181, -0.26376011967658997, -0.03236944600939751, 0.6226733922958374, -0.6278549432754517, -0.1133236...
Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or the ASP.NET AjaxControlToolkit? Currently I am using plain ICallbackEventHandler calls but it gets quite complicated a while as a lot of serialization needs to be done. Any suggestions? After some trial and error I have found out that t...
[ 0.1887666881084442, 0.02364482544362545, 0.12133287638425827, -0.024636436253786087, -0.47607260942459106, -0.21819207072257996, 0.3069930076599121, 0.15782152116298676, -0.1847841888666153, -0.7479227185249329, 0.018618695437908173, 0.6946670413017273, 0.09712978452444077, -0.212278738617...
I'll simplify the problem as much as possible: I have an oracle table: ``` row_priority, col1, col2, col3 0, .1, 100, {null} 12, {null}, {null}, 3 24, .2, {null}, {null} ``` Desired result: ``` col1, col2, col3 .2, 100, 3 ``` So according to the priority of the row, it overrides previous row values, if given. I...
[ -0.6427830457687378, 0.4316425025463104, 0.6301159858703613, -0.1237182766199112, 0.14384227991104126, 0.40234941244125366, -0.2105066329240799, -0.31659194827079773, -0.2560168504714966, -0.5985734462738037, -0.13753673434257507, 0.4087170362472534, -0.17404182255268097, 0.130232378840446...
1 ``` or the inverse: ``` select first_value(col1 ignore nulls) over () col1, first_value(col2 ignore nulls) over () col2, first_value(col3 ignore nulls) over () col3 from (select * from THE_TABLE order by row_priority desc) where rownum = 1 ``` And neither seem to ignore nulls. Any hints? You need t...
[ -0.49717259407043457, -0.006089275702834129, 0.2784784436225891, 0.009622031822800636, -0.14350301027297974, 0.021985936909914017, -0.22931833565235138, -0.18370321393013, -0.24413667619228363, -0.5397600531578064, -0.2833731472492218, 0.4236530065536499, -0.4871217906475067, -0.2277711331...
last_value(col2 ignore nulls) over () col2, last_value(col3 ignore nulls) over () col3 from (select * from THE_TABLE ORDER BY ROW_PRIORITY) ) WHERE ROWNUM = 1 ``` which results in (using your values above): ``` COL1 COL2 COL3 ------ ------- ---- 0.2
[ -0.7986961603164673, 0.012806281447410583, 0.8937425017356873, -0.45948928594589233, 0.0732467919588089, 0.17138268053531647, -0.10328943282365799, -0.1844964325428009, -0.31961819529533386, -0.4197244346141815, -0.3507273495197296, 0.30602020025253296, -0.4809366762638092, 0.0842226594686...
100 3 ```
[ 0.21622098982334137, 0.6287828087806702, 0.3627766966819763, 0.06776619702577591, -0.06892511248588562, 0.1863589584827423, 0.1079547330737114, -0.21388085186481476, 0.03455539420247078, -0.4394310414791107, -0.0327938087284565, 0.5319052338600159, -0.13927757740020752, -0.0382428690791130...
I'm interested in putting together my first online game using Flash as the client and writing a back-end application in C++ where the actual game state is kept. I've done lots of games in C++ before using SDL, SFML, Allegro, etc etc but never gotten around to using the network libraries. I was just interested in some ...
[ 0.2090061604976654, 0.07721910625696182, -0.06933049112558365, 0.11494947969913483, -0.13783146440982819, 0.039487555623054504, -0.2606717348098755, 0.3599656820297241, -0.1410198211669922, -0.727520227432251, 0.1394406259059906, 0.7365545630455017, -0.11216706037521362, 0.0053795282728970...
sockets it'll become a breeze sending data back and forth... but it can't help to ask first. I have very little experience in flash or as3 but like the idea of being able to access the game through a browser - learning flash is obvisouly going to be an obstical that I'll have to overcome but my main interest again is ...
[ 0.4740554988384247, 0.22319981455802917, -0.049392811954021454, 0.27131596207618713, -0.5190082788467407, -0.08271845430135727, -0.13114863634109497, 0.25947049260139465, -0.2957000732421875, -0.6445848345756531, 0.08205828070640564, 0.7209952473640442, 0.03295508399605751, 0.1779778599739...
helpful advice please - I'm only looking for something simple to get me up and running :-p As a side note, the reason I'm choosing C++ is because the players are actually robots with minature virtual-machines and everything will run on the server so as the player count rises so will the need to emulate each and every ...
[ 0.2409781962633133, -0.3133156895637512, 0.22623758018016815, 0.33742064237594604, 0.12750856578350067, 0.12775999307632446, 0.24502374231815338, 0.28967657685279846, -0.1671546995639801, -0.6376440525054932, 0.02709551900625229, 0.6129753589630127, -0.4336685240268707, -0.0368118509650230...
on a daily/weekly basis to earn points. I was thinking that buffering the display data would be possible as the player doesn't need real-time visual as they have no direct control of their robots. The server would buffer up 10 seconds or so of data for each connection and then ship it out in one go - this way while th...
[ 0.2571317255496979, -0.22665920853614807, 0.6162309646606445, 0.26664960384368896, -0.1367880254983902, 0.14897014200687408, 0.0978429988026619, -0.12526103854179382, -0.3381573259830475, -0.4140627980232239, 0.16956035792827606, 0.5584450364112854, -0.006838612724095583, -0.13078084588050...
to move your robot around or reset it to a starting position. Any remote control is done through a communications channel and thus is delayed by the buffer. This could easily be explained by the fact that the persistent world is somewhere like Mars (the planet) and the signal takes a while to go back and forth. I was ...
[ 0.2850552499294281, -0.08940158784389496, 0.5181066989898682, 0.14089731872081757, 0.2652960419654846, -0.011019639670848846, 0.05210382118821144, 0.23526893556118011, -0.49174484610557556, -0.3001018762588501, 0.13499757647514343, 0.26997560262680054, -0.07257512956857681, 0.1301640570163...
a VM in both languages :( I'm completely comfortable in C++ and have some working prototypes of the persistent world in place already - I'm just a complete newbie when it comes to networking so figured it'd be best to get advice first. Although it's primarily written for C, it's still great for C++: [Beej's guide t...
[ 0.2802314758300781, -0.1338886320590973, 0.6761047840118408, -0.16765858232975006, -0.41362839937210083, -0.2845929265022278, 0.4160877466201782, -0.06409889459609985, -0.25398123264312744, -0.28877249360084534, -0.11568288505077362, 0.6279951930046082, -0.4523375928401947, 0.2013807296752...
I have the following JavaScript code to pop up a window in Internet Explorer. The code is executed from a page within a Microsoft CRM modal dialog box. (RequestID is a string that is always the same in the test system - at the moment it contains "abcdefg" - without the quotes). ``` var cancelUrl = "CancelRequest.aspx?...
[ 0.24885058403015137, -0.0029914178885519505, 0.49183210730552673, -0.21849635243415833, 0.024922382086515427, -0.08894208073616028, 0.35986801981925964, -0.0799122080206871, 0.050430212169885635, -0.7924043536186218, -0.19489414989948273, 0.5046186447143555, -0.5311937928199768, 0.06896734...
care about the order of the last two events; the alerts are there so I know the code has been executed. I have two PCs and a virtual PC. All running IE7. On the Windows 2003 VPC, the messages and pop-up appear every time without fail. On the Vista PC and WinXP PC, the messages appear but the pop-up only appears inter...
[ 0.05944453552365303, 0.29388484358787537, 0.704511821269989, -0.022502172738313675, -0.08550757169723511, -0.0715041309595108, 0.45868656039237976, 0.25252169370651245, -0.45733022689819336, -0.7226216197013855, -0.10410290956497192, 1.0150610208511353, -0.1716906875371933, -0.034832976758...
I got it... missed it in the description... You are **trying to open a non-modal** window **from a modal dialog** in **IE**. This AFAIK, should not work. Try opening another modal window instead. Effectively you are saying... on window A, open up modal window B, now open up non-modal window C, which isn't really v...
[ 0.3279612958431244, 0.3460894823074341, 0.34983497858047485, 0.03511853143572807, -0.2579014301300049, -0.3105137050151825, 0.6286948323249817, 0.22608160972595215, -0.15504851937294006, -0.4369032680988312, -0.2161131650209427, 0.4331127405166626, -0.1543559581041336, 0.421390563249588, ...
I have a list of elements (the *X* in the following examples) displayed either in a row or in a column of an HTML table. In HTML code point of view, I have either (horizontal display): ``` <table id="myTable"> <tr> <td>A</td> <td>B</td> <td>C</td> ... </tr> </table> ``` or (vertical display): `...
[ -0.014757143333554268, 0.22297735512256622, 0.6225861310958862, -0.12072131037712097, -0.08604462444782257, 0.41659295558929443, 0.06585916131734848, -0.22689364850521088, -0.17386756837368011, -0.8421843647956848, -0.2509177327156067, 0.05758480355143547, -0.2261168509721756, 0.1044295802...