unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Using .reset() to free a boost::shared_ptr with sole ownership === I'm storing an object (TTF_Font) in a shared_ptr that is provided to me from a third-party API. I cannot use new or delete on the object, so the shared_ptr is also provided a "freeing" functor. // Functor struct CloseFont { void operator()(TTF_Font* font) const { if(font != NULL) { TTF_CloseFont(font); } } }; boost::shared_ptr<TTF_Font> screenFont; screenFont = boost::shared_ptr<TTF_Font>( TTF_OpenFont("slkscr.ttf", 8), CloseFont() ); If, later, I need to explicitly free this object is it correct to do this: screenFont.reset(); And then let the screenFont object (the actual shared_ptr object) be destroyed natually?
0
[ 2, 568, 13, 9, 99, 3554, 5, 6, 20, 551, 21, 10419, 45, 45, 16608, 43, 1, 4417, 139, 29, 5005, 5074, 800, 3726, 3726, 31, 22, 79, 25615, 40, 3095, 13, 5, 38, 11720, 1, 21931, 6, 19, 21, 2592, 1, 4417, 139, 30, 25, 1173, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it worth to require strong data-mining skills from employees? === After I have a small discussion in comments to my recent answer, I decided to ask community: > Is it worth to require strong > data-mining skills from employees? I think that ability to quick find information is one of the most important skills now days. Would you require employee to demonstrate such skill? On 99% of programmers interview people ask and answer on questions related to code. Would you ever ask developer to find solution to a problem using < *Name of your favorite search engine* >?
0
[ 2, 25, 32, 2715, 20, 4077, 966, 1054, 8, 2160, 68, 3207, 37, 3716, 60, 800, 3726, 3726, 75, 31, 57, 21, 284, 5460, 19, 7534, 20, 51, 1764, 1623, 15, 31, 868, 20, 1349, 514, 45, 13, 1, 25, 32, 2715, 20, 4077, 966, 13, 1, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending a message to nil? === As a Java developer whom is pouring over Apple's Objective-C 2.0 documentation: I am in a state of wonderment as to what *sending a message to nil* means - let alone how it is actually useful. Taking an excerpt from the documentation: > There are several patterns in Cocoa > that take advantage of this fact. The > value returned from a message to nil > may also be valid: > > - If the method returns an object, any pointer type, any integer scalar > of size less than or equal to > sizeof(void*), a float, a double, a > long double, or a long long, then a > message sent to nil returns 0. > - If the method returns a struct, as defined by the Mac OS X ABI Function > Call Guide to be returned in > registers, then a message sent to nil > returns 0.0 for every field in the > data structure. Other struct data > types will not be filled with zeros. > - If the method returns anything other than the aforementioned value > types the return value of a message > sent to nil is undefined. Has Java rendered my brain incapable of grokking the explanation above? Or is there something that I am missing that would make this as clear as glass? Note: Yes, I do get the idea of messages/receivers in Objective-C, I am simply confused about a receiver that happens to be nil.
0
[ 2, 4907, 21, 2802, 20, 1781, 255, 60, 800, 3726, 3726, 28, 21, 8247, 10058, 1368, 25, 14306, 84, 4037, 22, 18, 7038, 8, 150, 172, 9, 387, 13945, 45, 31, 589, 19, 21, 146, 16, 2666, 1130, 28, 20, 98, 1637, 18, 7601, 21, 2802, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does GWT ignore browser locale? === GWT gets locale from either the <meta> locale property or the locale query string. If neither is specified, it uses the "default" (ie en_US) locale. Why doesn't it get it from the browser settings? It seems the only solution to this is to replace your static html launch page with soemthing like a JSP that reads the browser locales and sets the <meta> locale or redirects using the query string. There has to be a better solution than this or simply hard-coding a locale, surely?
0
[ 2, 483, 630, 14094, 38, 7174, 16495, 375, 62, 60, 800, 3726, 3726, 14094, 38, 3049, 375, 62, 37, 694, 14, 13, 1, 5909, 58, 1, 375, 62, 1354, 54, 14, 375, 62, 25597, 3724, 9, 100, 3028, 25, 9931, 15, 32, 2027, 14, 13, 7, 1386...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Programming Job Applications - Years of Experience? === I'm currently applying for jobs, and they all require "X Years Experience in Y technology". My question is, is there some standard way of measuring X? For example, I have used C# professionally for 4 years, however it represented maybe 1/3rd of the work I was involved in during those years. Do I therefore put "4 years C# experience", or "1.2 years C# experience"? Following the first route sounds more impressive, but if you add all the numbers up for all the other technologies, you end up with a number far greater than the actual number of years I've been working for... Following the second route however sounds bad (1.2 years is a smaller number of years than 4), and I also believe paints me in a bad light. I believe that I've learnt much more about C# over the course of 4 years part-time than I would have learnt had I done 1.2 years in a single solid block. I'd appreciate hearing people's thoughts on this. Thanks!
2
[ 2, 3143, 1205, 3767, 13, 8, 122, 16, 1496, 60, 800, 3726, 3726, 31, 22, 79, 871, 11989, 26, 4844, 15, 17, 59, 65, 4077, 13, 7, 396, 122, 1496, 19, 13, 93, 1099, 7, 9, 51, 1301, 25, 15, 25, 80, 109, 1236, 161, 16, 9937, 993...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regexp recognition of email address hard? === I recently read somewhere that writing a regexp to match an email address, taking into account all the variations and possibilities of the standard is extremely hard and is significantly more complicated than what one would initially assume. Can anyone provide some insight as to why that is? Are there any known and proven regexps that actually do this fully? What are some good alternatives to using regexps for matching email addresses?
0
[ 2, 7953, 6899, 3514, 16, 8517, 3218, 552, 60, 800, 3726, 3726, 31, 1989, 1302, 3493, 30, 1174, 21, 7953, 6899, 20, 730, 40, 8517, 3218, 15, 741, 77, 2176, 65, 14, 8194, 17, 13086, 16, 14, 1236, 25, 3898, 552, 17, 25, 5085, 91, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What Does It Mean For a C++ Function To Be Inline? === See title: what does it mean for a C++ function to be inline?
0
[ 2, 98, 630, 32, 884, 26, 21, 272, 20512, 1990, 20, 44, 19, 1143, 60, 800, 3726, 3726, 196, 581, 45, 98, 630, 32, 884, 26, 21, 272, 20512, 1990, 20, 44, 19, 1143, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What opensource projects do you support, or what keeps you from supporting projects? === I often feel like I should be contributing more to certain projects as I depend on them daily, but often feel I would mostly be getting in the way. Do you have any projects that you are not a main developer but do submit patches to? Any stumbling blocks keeping you from lending a hand?
0
[ 2, 98, 368, 12097, 2314, 107, 42, 555, 15, 54, 98, 8968, 42, 37, 3134, 2314, 60, 800, 3726, 3726, 31, 478, 583, 101, 31, 378, 44, 7548, 91, 20, 1200, 2314, 28, 31, 12547, 27, 105, 1954, 15, 47, 478, 583, 31, 83, 1555, 44, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is buffer overflow/overrun possible in completely managed asp.net c# web application === Can there be buffer overflow/overrun vulnerabilities in completely managed asp.net web portal.If yes how can this be tested.
0
[ 2, 25, 17497, 20285, 118, 2549, 3169, 938, 19, 1524, 1471, 28, 306, 9, 2328, 272, 5910, 2741, 3010, 800, 3726, 3726, 92, 80, 44, 17497, 20285, 118, 2549, 3169, 13, 12708, 1031, 58, 9168, 3808, 19, 1524, 1471, 28, 306, 9, 2328, 274...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Enumerate errors in an error provider === Is it possible to enumerate all the current errors being displayed through an "Error Provider" without having to access the controls?
0
[ 2, 26940, 62, 11908, 19, 40, 7019, 11747, 800, 3726, 3726, 25, 32, 938, 20, 26940, 62, 65, 14, 866, 11908, 142, 6115, 120, 40, 13, 7, 29992, 11747, 7, 366, 452, 20, 1381, 14, 8671, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
switch / pattern matching idea === I've been looking at F# recently, and while I'm not likely to leap the fence any time soon, it definitely highlights some areas where C# (or library support) could make life easier. In particular, I'm thinking about the pattern matching capability of F#, which allows a very rich syntax - much more expressive than the current switch/conditional C# equivalents. I won't try to give a direct example (my F# isn't up to it), but in short it allows: * match by type (with full-coverage checking for discriminated unions) [note this also infers the type for the bound variable, giving member access etc] * match by predicate * combinations of the above (and possibly some other scenarios I'm not aware of) While it would be lovely for C# to eventually borrow [ahem] some of this richness, in the interim I've been looking at what can be done at runtime - for example, it is fairly easy to knock together some objects to allow: var getRentPrice = new Switch<Vehicle, int>() .Case<Motorcycle>(bike => 100 + bike.Cylinders * 10) // "bike" here is typed as Motorcycle .Case<Bicycle>(30) // returns a constant .Case<Car>(car => car.EngineType == EngineType.Diesel, car => 220 + car.Doors * 20) .Case<Car>(car => car.EngineType == EngineType.Gasoline, car => 200 + car.Doors * 20) .ElseThrow(); // or could use a Default(...) terminator where getRentPrice is a Func<Vehicle,int>. [note - maybe Switch/Case here is the wrong terms... but it shows the idea] To me, this is a lot clearer than the equivalent using repeated if/else, or a composite ternary conditional (which gets very messy for non-trivial expressions - brackets galore). It also avoids a *lot* of casting, and allows for simple extension (either directly or via extension methods) to more-specific matches, for example an InRange(...) match comparable to the VB Select...Case "x To y" usage. **I'm just trying to gauge if people think there is much benefit from constructs like the above (in the absence of language support)?** Note additionally that I've been playing with 3 variants of the above: * a Func&lt;TSource,TValue&gt; version for evaluation - comparable to composite ternary conditional statements * an Action&lt;TSource&gt; version - comparable to if/else if/else if/else if/else * an Expression&lt;Func&lt;TSource,TValue&gt;&gt; version - as the first, but usable by arbitrary LINQ providers Additionally, using the Expression-based version enables Expression-tree re-writing, essentially inlining all the branches into a single composite conditional Expression, rather than using repeated invocation. I haven't checked recently, but in some early Entity Framework builds I seem to recall this being necessary, as it didn't like InvocationExpression very much. It also allows more efficient usage with LINQ-to-Objects, since it avoids repeated delegate invocations - tests show a match like the above (using the Expression form) performing at the same speed [marginally quicker, in fact] compared to the equivalent C# composite conditional statement. For completeness, the Func&lt;...&gt; based-version took 4 times as long as the C# conditional statement, but is still very quick and is unlikely to be a major bottleneck in most use-cases. I welcome any thoughts / input / critique / etc on the above (or on the possibilities of richer C# language support... here's hoping ;-p).
0
[ 2, 5521, 13, 118, 3732, 10120, 882, 800, 3726, 3726, 31, 22, 195, 74, 699, 35, 398, 5910, 1989, 15, 17, 133, 31, 22, 79, 52, 1720, 20, 10336, 14, 6545, 186, 85, 651, 15, 32, 4939, 13046, 109, 924, 113, 272, 5910, 13, 5, 248, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a good drop-in replacement for Java's JEditorPane? === I'm not happy with the rendering of HTML by Swing's JEditorPane. In particular bullets for unordered lists are hideous. Customising the rendering seems extremely difficult. Therefore I'm looking for a replacement with better HTML rendering. Does this exist? (I asked Google, and found nothing except a promising dead link).
0
[ 2, 25, 80, 21, 254, 2804, 8, 108, 4610, 26, 8247, 22, 18, 487, 13401, 16660, 60, 800, 3726, 3726, 31, 22, 79, 52, 1700, 29, 14, 15307, 16, 13, 15895, 34, 5587, 22, 18, 487, 13401, 16660, 9, 19, 1498, 11366, 26, 367, 7861, 69, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Implementing cache correctly in a class library for use in an asp.net application === I'm implementing a cache in a class library that i'm using in an asp.net application. I created my cache object as a singleton pattern with a static method to update the cache which is really just loading a member variable/property with a collection of data i need cached (got some locking logic ofcourse). I figured it was a nice way to go since i can just access my data by calling MyCacheObject.Instance.MyDataCollection I'm creating a new cache object to store a pretty big amount of data partitioned by some key. What i'm saying is i'm creating a new cache but this one will not load all of the data at once, but rather store a collection for each key accessed. MyOtherCacheObject.Instance.MyOtherDataCollection(indexkey) This time the question about garbage collection was brought up. Since i'm storing a huge amount of data, wouldn't it be a waste if it got gc'ed all of a sudden? Since it's just a singleton pattern there is nothing ensuring data will stay in cache. So my question is - what is best practice for implemeting a cache to handle this situation? I really don't like a huge complex solution to this, and i know there is caching in System.Web but that seems a bit 'off' since this is just a class library, or what do you think?
0
[ 2, 17333, 16522, 12044, 19, 21, 718, 1248, 26, 275, 19, 40, 28, 306, 9, 2328, 3010, 800, 3726, 3726, 31, 22, 79, 17333, 21, 16522, 19, 21, 718, 1248, 30, 31, 22, 79, 568, 19, 40, 28, 306, 9, 2328, 3010, 9, 31, 679, 51, 16522...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to properly implement a shared cache in ColdFusion? === I have built a CFC designed to serve as a dynamic, aging cache for almost everything worth caching. LDAP queries, function results, arrays, ojects, you name it. Whatever takes time or resources to calculate and is needed more than once. I'd like to be able to do a few things: - share the CFC between applications - use multiple cache instances at the same time, in the same request - define the scope of the cache (server / application / session / current request only) - be independent from CFCs using the cache component - generally adhere to common sense (decoupling, encapsulation, orthogonality, locking) The cache itself is (what else) a Struct, private to the cache instance. How would I properly implement caching and locking when the scope itself is subject to change? For locking, I use named locks (`'CacheRead'`, `'CacheWrite'`) currently, this is safe but strikes me as odd. Why would I want to lock the whole server for a session-only cache? (Yes, maybe this *is* academic, but anyway.) Passing in the APPLICATION scope as a reference when I want application level caching also seems the wrong thing to do. Is there a better way?
0
[ 2, 184, 20, 7428, 8713, 21, 2592, 16522, 19, 1191, 9818, 60, 800, 3726, 3726, 31, 57, 392, 21, 10084, 150, 1006, 20, 1884, 28, 21, 7782, 15, 13, 7426, 16522, 26, 557, 796, 2715, 1658, 7192, 9, 644, 20472, 9386, 2829, 15, 1990, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Restore Office Environment to Default after development === After I develop my add-in for Microsoft Office ( and in the process messed up all my menu bars and tool bars) using Visual Studio For Office, is there anyway to restore the MS Office to default? For the record, Clean Solution alone is ***not*** enough!
0
[ 2, 8454, 488, 2307, 20, 12838, 75, 522, 800, 3726, 3726, 75, 31, 2803, 51, 3547, 8, 108, 26, 7099, 488, 13, 5, 17, 19, 14, 953, 21537, 71, 65, 51, 11379, 6062, 17, 5607, 6062, 6, 568, 3458, 1120, 26, 488, 15, 25, 80, 2774, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Write an excel workbook to a memory stream .NET === How do I write an excel workbook to a memory stream without first saving it to the file system? All options within the Microsoft.Office.Interop.Excel.WorkBook save options take a filename.
0
[ 2, 2757, 40, 20700, 170, 5199, 20, 21, 1912, 3766, 13, 9, 2328, 800, 3726, 3726, 184, 107, 31, 2757, 40, 20700, 170, 5199, 20, 21, 1912, 3766, 366, 64, 7599, 32, 20, 14, 3893, 329, 60, 65, 6368, 363, 14, 7099, 9, 17047, 9, 628...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
How to assert that a certain exception is thrown in jUnit4.5 tests === How can use jUnit4.5 idiomatically to test that come code throws an exception? While I can certainly do something like this: @Test public void testFooThrowsIndexOutOfBoundsException() { boolean thrown = false; try { foo.doStuff(); } catch (IndexOutOfBoundsException e) { thrown = true; } assertTrue(thrown); } I recall that there is an annotation or an Assert.xyz or *something* that is far less cludgy and far more in-the-spirit of jUnit for these sorts of situations.
0
[ 2, 184, 20, 10908, 30, 21, 1200, 5391, 25, 6027, 19, 7446, 242, 300, 9, 264, 4894, 800, 3726, 3726, 184, 92, 275, 7446, 242, 300, 9, 264, 28380, 721, 8438, 20, 1289, 30, 340, 1797, 13566, 40, 5391, 60, 133, 31, 92, 3850, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to skip the docstring using regex === I'm trying to insert some import lines into a python source file, but i would ideally like to place them right after the initial docstring. Let's say I load the file into the lines variable like this: lines = open('filename.py').readlines() How to find the line number, where the docstring ends?
0
[ 2, 184, 20, 12532, 14, 9765, 11130, 568, 7953, 1706, 800, 3726, 3726, 31, 22, 79, 749, 20, 14692, 109, 9010, 1560, 77, 21, 20059, 1267, 3893, 15, 47, 31, 83, 5628, 102, 101, 20, 209, 105, 193, 75, 14, 2104, 9765, 11130, 9, 408, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does a Silverlight memory profiler exist? === CLR profiler does not seem to work with the Silverlight CLR. Does another memory profiler exist?
0
[ 2, 630, 21, 1172, 3130, 1912, 5296, 139, 3182, 60, 800, 3726, 3726, 10842, 139, 5296, 139, 630, 52, 2260, 20, 170, 29, 14, 1172, 3130, 10842, 139, 9, 630, 226, 1912, 5296, 139, 3182, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Closing a Java FileInputStream. === Alright, I have been doing the following (variable names have been changed): <pre><code> FileInputStream fis = null; try { fis = new FileInputStream(file); ... process ... if (fis != null) fis.close(); } catch (IOException e) { ... blah blah blah ... } </code> </pre> Recently, I started using FindBugs, which suggests that I am not properly closing streams. I decide to see if there's anything that can be done with a finally{} block, and then I see, oh yeah, close() can throw IOException. What the hell are people supposed to do here? The Java libraries throw too many checked exceptions.
0
[ 2, 4239, 21, 8247, 3893, 108, 4881, 11260, 9, 800, 3726, 3726, 11885, 15, 31, 57, 74, 845, 14, 249, 13, 5, 8220, 579, 1817, 57, 74, 1015, 6, 45, 13, 1, 3515, 1, 9375, 1, 3893, 108, 4881, 11260, 6028, 18, 800, 16203, 73, 1131, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Increase Stack Size on Windows (GCC) === Is there a way to increase the stack size of a Windows application at compile/link time with GCC?
0
[ 2, 1839, 7566, 1072, 27, 1936, 13, 5, 263, 3384, 6, 800, 3726, 3726, 25, 80, 21, 161, 20, 1839, 14, 7566, 1072, 16, 21, 1936, 3010, 35, 26561, 118, 6258, 85, 29, 489, 3384, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Java HttpURLConnection: Can it cope with duplicate header names? === I am debugging some code in the Selenium-rc proxy server. It seems the culprit is the HttpURLConnection object, whose interface for getting at the HTTP headers does not cope with duplicate header names, such as: <pre> Set-Cookie: foo=foo; Path=/ Set-Cookie: bar=bar; Path=/ </pre> The way of getting at the headers through the HttpURLConnection(using getHeaderField(int n) and getHeaderFieldKey(int n)) seems to be causing my second cookie to be lost. My question is 1. Is it true that HttpURLConnection itself can't cope with it, and 2. If so, is there a workaround to it?
0
[ 2, 8247, 7775, 911, 255, 25996, 872, 45, 92, 32, 11624, 29, 19429, 157, 106, 1817, 60, 800, 3726, 3726, 31, 589, 121, 16254, 2762, 109, 1797, 19, 14, 23027, 14311, 8, 5453, 27188, 8128, 9, 32, 2206, 14, 27686, 25, 14, 7775, 911, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to determine if a class is a subclass of other class ? === I'd like to check if a Class object represents a subclass of other class for example Class class1 = Class.forName("Class1"); Class class2 = Class.forName("Class2"); if(class1.isSubClassOf(class2)) // fake methos isSubClassOf { // do sth } How can I implement this isSubClassOf method ?
0
[ 2, 184, 20, 3746, 100, 21, 718, 25, 21, 972, 1898, 16, 89, 718, 13, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 2631, 100, 21, 718, 3095, 4719, 21, 972, 1898, 16, 89, 718, 26, 823, 718, 718, 165, 800, 718, 9, 1106, 7259, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to do java development in emacs? === What modes are the best? And any tips or tricks that make developing java in emacs a bit better.
0
[ 2, 98, 25, 14, 246, 161, 20, 107, 8247, 522, 19, 13, 62, 6893, 18, 60, 800, 3726, 3726, 98, 12770, 50, 14, 246, 60, 17, 186, 11034, 54, 13747, 30, 233, 3561, 8247, 19, 13, 62, 6893, 18, 21, 1142, 574, 9, 3, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I import a whitespace-delimited text file into MySQL? === I need to import largish (24MB) text files into a MySQL table. Each line looks like this: 1 1 0.008 0 0 0 0 0 There are one or more spaces after each field, and the last field is tailed by about 36 spaces before the newline. How do I import such a file into MySQL? From the documentation it seems that LOAD DATA expects all fields to be terminated by exactly the same string. I have tried LOAD DATA INFILE 'filename' INTO TABLE mytable FIELDS TERMINATED BY ' '; but MySQL will interpret a sequence of more than one space as delimiting an empty field. Any ideas?
0
[ 2, 184, 107, 31, 9010, 21, 359, 5582, 8, 546, 23012, 1854, 3893, 77, 51, 18, 22402, 60, 800, 3726, 3726, 31, 376, 20, 9010, 7841, 263, 1595, 13, 5, 1996, 5024, 6, 1854, 6488, 77, 21, 51, 18, 22402, 859, 9, 206, 293, 1879, 101,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dependence on DependencyObject and DependencyProperty === I'm building a Silverlight application and one of my caveats from last time was that if you need anything done right in Silverlight/WPF way you'd need to model your objects as a DependecyObject and use DependencyProperty(ies) I find this model to be rather cumbersome, requiring static fields and initializers in half the classes I use, so is it a good idea to use the good-old event-driven (observer pattern?) in place of DependencyObject? I'm aiming to minimize code bloat and boiler plates (I hate them) and really would like to know if anyone with experience in Silverlight/WPF has any tips/techniques for keeping usage of DependencyObject and DependencyProperty to a minimum? Is this a good idea?
0
[ 2, 22506, 27, 26835, 23793, 17, 26835, 10890, 106, 1084, 800, 3726, 3726, 31, 22, 79, 353, 21, 1172, 3130, 3010, 17, 53, 16, 51, 3542, 721, 18, 37, 236, 85, 23, 30, 100, 42, 376, 602, 677, 193, 19, 1172, 3130, 118, 499, 7721, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio: Automatically re-order page events according to the ASP.NET Page LifeCycle? === What would be the easiest way to re-order existing page events according to the ASP.NET Page LifeCycle? I'm trying to make my events more readable and maybe make it easy to scroll into a sequentially near event. If there's no easy way, is there a non-mouse way to quickly switch to a page event without having to type the actual event in incremental search?
0
[ 2, 3458, 1120, 45, 7499, 302, 8, 7861, 2478, 963, 496, 20, 14, 28, 306, 9, 2328, 2478, 201, 12467, 60, 800, 3726, 3726, 98, 83, 44, 14, 27237, 161, 20, 302, 8, 7861, 3149, 2478, 963, 496, 20, 14, 28, 306, 9, 2328, 2478, 201, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are pro's and con's of real code versus specially-crafted code examples in programming documentation? === What reasons could ease the choice between clear and concise artificial code example versus real-world working code which might be accompanied by all gory details for an author of programming book or a participant in online discussion?
0
[ 2, 98, 50, 895, 22, 18, 17, 1065, 22, 18, 16, 683, 1797, 5706, 13444, 8, 7856, 69, 1797, 3770, 19, 3143, 13945, 60, 800, 3726, 3726, 98, 2932, 110, 6378, 14, 1837, 128, 1207, 17, 29455, 6809, 1797, 823, 5706, 683, 8, 4423, 638, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using Microsoft SMS Sender to send out smses in batch? === I understand that we can use SMS Sender in command line mode. But i been getting this error same as this article http://www.oreillynet.com/pub/a/wireless/2003/10/10/sms.html The smssender.exe will use the last device that was successfully used to send messages in the Windows version of SMS Sender. But I tried it many times, and smssender.exe always complains that no last device was used. Anyone have any idea about this?
0
[ 2, 568, 7099, 7613, 18, 2660, 106, 20, 2660, 70, 7613, 7202, 19, 13064, 60, 800, 3726, 3726, 31, 1369, 30, 95, 92, 275, 7613, 18, 2660, 106, 19, 1202, 293, 3740, 9, 47, 31, 74, 1017, 48, 7019, 205, 28, 48, 2002, 7775, 6903, 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php page chacheing === Right now each time the page is loaded the php script is run regenerating the page, for pages like search this is fine, cause most searches are diffrent anyways, but for say the index this is virtualy the same for each hit, yet generates a large number of quires and is quite a long script... The problem is some parts of the page do change on a per-user basis, like you "You are logged in as..." bit, so simply saving the generated pages would still result in 10,000`s of near identical pages... So what I want to do is implement a 2 pass system: The first pass generates a php file, with all the common stuff (eg news items), hardcoded. the database then has a cache table to link these with the pages (eg "index.php page=1 style=default"), the database also stores an uptodate field, which is false causes the first pass to rerun the next time the page is viewed The 2nd pass basicly just fills in the minor details, like how long ago something was, aand stuff like "You are logged in as..." However I'm not sure on a qucik and fast implementation, that supports both cached and non-cached (eg search) pages, without alot of code and several quires... The 2nd pass on this generated file
0
[ 2, 13, 26120, 2478, 2438, 2569, 68, 800, 3726, 3726, 193, 130, 206, 85, 14, 2478, 25, 8572, 14, 13, 26120, 3884, 25, 485, 302, 17083, 1880, 14, 2478, 15, 26, 4434, 101, 2122, 48, 25, 1123, 15, 1679, 127, 19994, 50, 20811, 8993, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to fully utilize attachment students? === From time to time, there will be student attached to our projects, i would certainly like to assign him/her many things to do so can learn more. But alot of times we are resigned to assigning stuff like documentaiton, updating of ui mockup screens etc. As problem is that is it bit hard to trust the quality of work provided by students and another thing is that they are still young and their enthusiam may not be there. How do we better utilize them such that they really cut down our workload and also in turns mean learning more stuff which will aid them in their future job opportunies?
0
[ 2, 184, 20, 2337, 13151, 14575, 573, 60, 800, 3726, 3726, 37, 85, 20, 85, 15, 80, 129, 44, 1209, 3638, 20, 318, 2314, 15, 31, 83, 3850, 101, 20, 13952, 61, 118, 1694, 151, 564, 20, 107, 86, 92, 2484, 91, 9, 47, 21, 5639, 16,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you manage asp.net SQL membership roles/users in production? === How do you setup an asp.net sql membership role/membership provider on a production machine? I'm trying to setup BlogEngine.NET and all the documentation says to use the ASP.NET Website Administration tool from Visual Studio but that isn't available on a production machine. Am I the first BlogEngine user to use it on a non-development box? The SQL server is completely blocked off from everything but the production box, I do have SQL Management Studio on there though.
0
[ 2, 184, 107, 42, 4705, 28, 306, 9, 2328, 4444, 255, 4363, 2954, 118, 16704, 18, 19, 637, 60, 800, 3726, 3726, 184, 107, 42, 18161, 40, 28, 306, 9, 2328, 4444, 255, 4363, 597, 118, 6990, 2418, 11747, 27, 21, 637, 1940, 60, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What the best rollover log file tracelistener for .NET === I'm looking for a good TraceListener for .Net that supports rolling over the log file based on size limits. **Constraints** - Uses .Net built in Trace logging - Independent class or binary that's not part of some gigantic library - Allows rolling over a log file based on size
0
[ 2, 98, 14, 246, 3001, 2549, 6738, 3893, 5565, 13891, 106, 26, 13, 9, 2328, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 5565, 13891, 106, 26, 13, 9, 2328, 30, 6747, 3929, 84, 14, 6738, 3893, 432, 27, 1072, 5887, 9, 13, 1409,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Namespace documentation on a .Net project (Sandcastle)? === I started using [Sandcastle][1] some time ago to generate a Documentation Website for one of our projects. It's working quite well but we've always only written documentation for classes, methods, properties (...) in our project and had completely separate documentation for the overall project and project parts/modules/namespaces. It would be nice if I could merge that documentation together and add respective documentation to the generated helper files but I can't figure out how to do it. Just adding comments to the namespace declaration doesn't seem to work (C#): /// <summary> /// My short namespace description /// </summary> namespace MyNamespace { ... } Does anyone know how to do this? I know it's possible somehow and it would be really nice to have... :) [1]: http://www.codeplex.com/SHFB
0
[ 2, 204, 5582, 13945, 27, 21, 13, 9, 2328, 669, 13, 5, 18, 290, 16736, 6, 60, 800, 3726, 3726, 31, 373, 568, 636, 18, 290, 16736, 500, 2558, 165, 500, 109, 85, 1464, 20, 7920, 21, 13945, 2271, 26, 53, 16, 318, 2314, 9, 32, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Build deployment using CruiseControl.net === I've seen a few examples on how to do build deployment, however I have something unique that I'd like to do: 1. Deploy the build to a folder that has the build number (eg. Project\Builds\8423) 2. Alter the version number in the .NET AssmblyInfo.cs to match the build number Has anyone done this before with .NET projects using NAnt + CruiseControl.net?
0
[ 2, 1895, 10475, 568, 6581, 12898, 9, 2328, 800, 3726, 3726, 31, 22, 195, 541, 21, 310, 3770, 27, 184, 20, 107, 1895, 10475, 15, 207, 31, 57, 301, 2619, 30, 31, 22, 43, 101, 20, 107, 45, 137, 9, 17617, 14, 1895, 20, 21, 19294, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can Dns.GetHostEntry ever return an IPHostEntry with an empty AddressList? === I'm just wondering if there can be a case where the hostname can be successfully resolved but the returned hostEntry.AddressList is empty. Currently I'm doing something like this: IPHostEntry hostEntry = Dns.GetHostEntry("some.hostname.tld"); if (hostEntry.AddressList.Count() < 1) { // can that ever happen? throw new ArgumentException("hostName has no assigned IP-Address"); } TcpClient client = new TcpClient(hostEntry.AddressList[0], 1234); My assumption is that Dns.GetHostEntry either throws an exception if the hostname is not found or otherwise the AddressList is nonempty, but I'm not sure about that.
0
[ 2, 92, 13, 43, 2172, 9, 3060, 11694, 18195, 462, 788, 40, 31, 21570, 38, 18195, 29, 40, 2424, 3218, 5739, 60, 800, 3726, 3726, 31, 22, 79, 114, 5712, 100, 80, 92, 44, 21, 610, 113, 14, 2015, 7259, 92, 44, 3673, 11052, 47, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In Java, how to reload dynamically resources bundles in a web application ? === We are using fmt:setBundle to load a resource bundle from a database (we extended the ResourceBundle class to do that). When we modify a value in database, we have to reload the web server to display the new value on the web app. Is there any simple way to use the new value without restarting the web server ? (We do **not** want to always look up the value from database but we would like to invalidate the cache, for example by calling a special 'admin' URL)
0
[ 2, 19, 8247, 15, 184, 20, 27339, 7782, 1326, 2566, 10194, 18, 19, 21, 2741, 3010, 13, 60, 800, 3726, 3726, 95, 50, 568, 4585, 38, 45, 3554, 9930, 413, 20, 6305, 21, 6577, 10194, 37, 21, 6018, 13, 5, 458, 1984, 14, 6577, 9930, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Working with uncoorperative vendors === We have a project that are using some commerical products from other venders to integrate with our system. Problem is that the particular vendor is very uncoorperative. Wanting to charge us mandays hours for email replies or even to the extent of phonecalls. How do we deal with this kind of vendor. Problem is that it is a requirement that we have to use that product for our system. So we have to get their support. Else i would have likely turn to open source products
0
[ 2, 638, 29, 16061, 21173, 1432, 3366, 19787, 800, 3726, 3726, 95, 57, 21, 669, 30, 50, 568, 109, 11951, 106, 4272, 1985, 37, 89, 7287, 1157, 18, 20, 18399, 29, 318, 329, 9, 1448, 25, 30, 14, 1498, 23510, 25, 253, 16061, 21173, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to handle English and Chinese in a Flex application? === I have a requirement to be able to provide a flex component in English and several asian languages. I have looked at the flex documentation and it seems that I have to build several swf's, which feels wrong. Does anyone know of a straightforward and practical way of bundling string resources in different languages and handling the fonts?
0
[ 2, 98, 25, 14, 246, 161, 20, 3053, 486, 17, 1116, 19, 21, 14409, 3010, 60, 800, 3726, 3726, 31, 57, 21, 8981, 20, 44, 777, 20, 1181, 21, 14409, 5912, 19, 486, 17, 238, 2282, 2556, 9, 31, 57, 292, 35, 14, 14409, 13945, 17, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What book/resource would you recommend for learning non-OOP design? === I realized that OOP is the only area where I can produce results I'm satisfied with. To be more specific - mainstream static-typed OOP like C++,C# or Java. May be it is so because I've read enough books and articles on it and because most of my programming experience is in OOP. And may be because OOP is just really good :) Each time I have to do something complex in not-so-OOP language, I feel like I've lost a hand. May be it is so because my tasks naturally require OOP. But I can assume that I'm such a numb guy who knows only one way to do things. Usually it is easy for me to find OOP solution for a problem, and I tend to think these solutions are good enough, but lately I've been reading some articles and discussion on this topic [1][1] [2][2] [3][3] and now I'm thinking how natural those solutions are. Last time I had to build rather complex system in javascript I was feeling rather frustrated before I found [joose][4] which gave me my old OOP confidence again. Simulating OOP in other languages may work for a while, but I'd like to know more different ways to do things. So what would you recommend for learning non-OOP design skills? What kinds of tasks have natural non-OOP solutions? [1]: http://www.paulgraham.com/noop.html [2]: http://www.codinghorror.com/blog/archives/000801.html [3]: http://stackoverflow.com/questions/24270/whats-the-point-of-oop [4]: http://code.google.com/p/joose-js/
0
[ 2, 98, 360, 118, 99, 12097, 83, 42, 12360, 26, 2477, 538, 8, 21709, 704, 60, 800, 3726, 3726, 31, 1896, 30, 13, 21709, 25, 14, 104, 217, 113, 31, 92, 2213, 1736, 31, 22, 79, 8315, 29, 9, 20, 44, 91, 1903, 13, 8, 7469, 12038,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to setup JNDI for Sun App Server 8.2 === http://localhost:8080/rtsclient/loginform.faces Url jnp://localhost:1099 Application Server Type jboss40 Datasource jdbc/ilogDataSource User rtsAdmin Password rtsAdmin The above is for jboss. Now i have deployed RTS onto Sun Application Server. And i want to configure the jndi such that. My RTS client can actually access it. How do i go about this? I asked this question here http://forums.ilog.com/brms/index.php?topic=803.0 i know it is quite specific. But how to do it generally in sun application server?
0
[ 2, 184, 20, 18161, 487, 9805, 26, 939, 4865, 8128, 469, 9, 135, 800, 3726, 3726, 7775, 6903, 15580, 11694, 45, 2887, 2887, 118, 5256, 3862, 18513, 38, 118, 5567, 108, 4190, 9, 6413, 18, 287, 6362, 487, 8157, 6903, 15580, 11694, 6608...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL query to append character to each entry === I have a table of users which has a username column consisting of a six digit number e.g 675381, I need to append a zero to each of these usernames e.g. 0675381 would be the final output of the previous example, is there a query that could handle this?
0
[ 2, 51, 18, 22402, 25597, 20, 4865, 2451, 925, 20, 206, 2792, 800, 3726, 3726, 31, 57, 21, 859, 16, 3878, 56, 63, 21, 4155, 7259, 4698, 4160, 16, 21, 490, 15611, 234, 13, 62, 9, 263, 400, 3283, 25507, 15, 31, 376, 20, 4865, 245...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does the last element in a loop deserve a separate treatment? === When reviewing, I sometimes encounter this kind of loop: i = begin while ( i != end ) { // ... do stuff if ( i == end-1 (the one-but-last element) ) { ... do other stuff } increment i } Then I ask the question: would you write this? i = begin mid = ( end - begin ) / 2 // (the middle element) while ( i != end ) { // ... do stuff if ( i > mid ) { ... do other stuff } increment i } In my opinion, this beats the intention of writing a loop: you loop because there is something common to be done for each of the elements. Using this construct, for some of the elements you do something different. So, I conclude, you need a separate loop for those elements: i = begin mid = ( end - begin ) / 2 //(the middle element) while ( i != mid ) { // ... do stuff increment i } while ( i != end ) { // ... do stuff // ... do other stuff increment i } Now I even saw a [question][1] on SO on how to write the `if`-clause in a nice way... And I got sad: something isn't right here. Am I wrong? If so, what's so good about cluttering the loop body with special cases, which you are aware of upfront, at coding time? [1]:http://stackoverflow.com/questions/151046/c-last-loop-iteration-stl-map-iterator
0
[ 2, 630, 14, 236, 4520, 19, 21, 5293, 10009, 21, 1725, 2202, 60, 800, 3726, 3726, 76, 18046, 15, 31, 1030, 7007, 48, 825, 16, 5293, 45, 31, 800, 2348, 133, 13, 5, 31, 13, 187, 3726, 241, 13, 6, 13, 1, 12894, 13, 9, 9, 9, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What do you like/dislike about development user groups? === I run a non profit based .net user group called DevEvening (http://www.devevening.co.uk) and am always looking to improve it. I wondered what people liked and disliked about user groups and what could persuade people to attend who did not already? Since your using this site I guess you have some outside of work interest in development - do you attend user groups? I have been to a number of events and different user groups and although the quality of presentations etc have been mixed I find it is always interesting and useful talking to other developers.
2
[ 2, 98, 107, 42, 101, 118, 2906, 1403, 88, 522, 4155, 1170, 60, 800, 3726, 3726, 31, 485, 21, 538, 8583, 432, 13, 9, 2328, 4155, 214, 227, 9664, 4943, 68, 13, 5, 21127, 6903, 6483, 9, 14438, 4943, 68, 9, 716, 9, 2185, 6, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best XSLT engine for Perl? === I would like to know what of the many XSLT engines out there works well with Perl. I will use Apache (2.0) and Perl, and I want to obtain PDFs and XHTMLs. I'm new to this kind of projects so any comment or suggestion will be welcome. Thanks. --- Doing a simple search on Google I found a lot and I suppose that there are to many more. - http://www.mod-xslt2.com/ - http://xml.apache.org/xalan-j/ - http://saxon.sourceforge.net/ - http://www.dopscripts.com/xslt_parser.html Any comment on your experiences will be welcome.
0
[ 2, 98, 25, 14, 246, 993, 18, 255, 38, 1406, 26, 416, 255, 60, 800, 3726, 3726, 31, 83, 101, 20, 143, 98, 16, 14, 151, 993, 18, 255, 38, 4016, 70, 80, 693, 134, 29, 416, 255, 9, 31, 129, 275, 17140, 13, 5, 135, 9, 387, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a REST webserver with security === I am very new to creating webservers - and I have had several goes at trying to understand them and write a quick webserver, but it's never quite 'clicked'. At the moment I am under the impression that REST would be most suitable for my purposes (I will explain later). Can anyone either show me a basic code example in Java (using Tomcat Apache) or a tutorial resource to show how a webserver: - Can be used for security - i.e. pass in some kind of value to identify the client - from their the webserver will either deny or grant access to the client dependant on some criteria - maybe a lookup list. - Once the client is successfully accepted they will be allowed to pass in some more values to the webserver that will be used to write a row in a database table. Many thanks.
0
[ 2, 2936, 21, 760, 2741, 10321, 106, 29, 1221, 800, 3726, 3726, 31, 589, 253, 78, 20, 2936, 2741, 10321, 445, 13, 8, 17, 31, 57, 41, 238, 1852, 35, 749, 20, 1369, 105, 17, 2757, 21, 2231, 2741, 10321, 106, 15, 47, 32, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to start automatic download of a file in IE? === How do I initialize an automatic download of a file in IE? For example in the download page, I want the download link to appear and a message: "If you download doesn't start automatically .... etc". The download should begin shortly after the page loads. In FireFox this is easy just need to include a meta tag in the header *< meta http-equiv="Refresh" content="n;url" >* where n is number of seconds and url is the download url. This does not work in IE. Can anyone provide me with a idea of how to make this work in IE browsers?
0
[ 2, 184, 20, 799, 6715, 7121, 16, 21, 3893, 19, 13, 660, 60, 800, 3726, 3726, 184, 107, 31, 2104, 2952, 40, 6715, 7121, 16, 21, 3893, 19, 13, 660, 60, 26, 823, 19, 14, 7121, 2478, 15, 31, 259, 14, 7121, 3508, 20, 1893, 17, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Community server Username issue - User Username not found in membership store does not exist. === I have an error occuring frequently from our community server installation whenever the googlesitemap.ashx is traversed on a specific sectionID. I suspect that a username has been amended but the posts havn't recached to reflect this. Is there a way a can check the data integruity by performing a select statement on the database, alternatively is there a way to force the database to recache?
0
[ 2, 514, 8128, 4155, 7259, 1513, 13, 8, 4155, 4155, 7259, 52, 216, 19, 4363, 1718, 630, 52, 3182, 9, 800, 3726, 3726, 31, 57, 40, 7019, 3744, 68, 3086, 37, 318, 514, 8128, 7758, 6634, 14, 8144, 9097, 15022, 9, 6031, 396, 25, 1581...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you have a common base class for Hibernate entities? === Do you have a common base class for Hibernate entities, i.e. a MappedSuperclass with id, version and other common properties? Are there any drawbacks? Example: @MappedSuperclass() public class BaseEntity { private Long id; private Long version; ... @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() {return id;} public void setId(Long id) {this.id = id;} @Version public Long getVersion() {return version;} ... // Common properties @Temporal(TemporalType.TIMESTAMP) public Date creationDate() {return creationDate;} ... } @Entity public class Customer extends BaseEntity { private String customerName; ... }
0
[ 2, 107, 42, 57, 21, 757, 1000, 718, 26, 4148, 2102, 8820, 12549, 60, 800, 3726, 3726, 107, 42, 57, 21, 757, 1000, 718, 26, 4148, 2102, 8820, 12549, 15, 31, 9, 62, 9, 21, 20877, 8542, 1898, 29, 4924, 15, 615, 17, 89, 757, 3704,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which web browsers natively support Array.forEach() === Which browsers other than Firefox support Array.forEach()? [Mozilla say it's an extension to the standard][1] and I realise it's trivial to add to the array prototype, I'm just wondering what other browsers support it? [1]: http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:forEach#Compatibility
0
[ 2, 56, 2741, 16495, 18, 1275, 102, 555, 7718, 9, 1106, 14322, 5, 6, 800, 3726, 3726, 56, 16495, 18, 89, 119, 535, 18219, 555, 7718, 9, 1106, 14322, 5, 6, 60, 636, 18057, 3247, 395, 32, 22, 18, 40, 3896, 20, 14, 1236, 500, 2558...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to encode characters from Oracle to Xml? === In my environment here I use Java to serialize the result set to xml. It happens basically like this: //foreach column of each row xmlHandler.startElement(uri, lname, "column", attributes); String chars = rs.getString(i); xmlHandler.characters(chars.toCharArray(), 0, chars.length()); xmlHandler.endElement(uri, lname, "column"); The Xml looks like this in Firefox: <row num="69004"> <column num="1">10069</column> <column num="2">sd&#26;</column> <column num="3">FCVolume </column> </row> But when I parse the Xml I get the a > org.xml.sax.SAXParseException: Character reference "**&#26**" is an > invalid XML character. My question now is: Which charactes do I have to replace or how do I have to encode my characters, that they will be valid Xml?
0
[ 2, 184, 20, 20523, 1766, 37, 15759, 20, 23504, 60, 800, 3726, 3726, 19, 51, 2307, 235, 31, 275, 8247, 20, 5956, 2952, 14, 829, 309, 20, 23504, 9, 32, 5531, 11374, 101, 48, 45, 12894, 1106, 14322, 4698, 16, 206, 3131, 23504, 3203, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dealing with "global" data structures in an object-oriented world === This is a question with many answers - I am interested in knowing what others consider to be "best practice". Consider the following situation: you have an object-oriented program that contains one or more data structures that are needed by many different classes. How do you make these data structures accessible? 1. You can explicitly pass references around, for example, in the constructors. This is, perhaps, the "proper" solution, but it means duplicating parameters and instance variables all over the program. This makes changes or additions to the global data difficult. 2. You can put all of the data structures inside of a single object, and pass around references to this object. This can either be an object created just for this purpose, or it could be the "main" object of your program. This simplifies the problems of (1), but the data structures may or may not have anything to do with one another, and collecting them together in a single object is pretty arbitrary. 3. You can make the data structures "static". This lets you reference them directly from other classes, without having to pass around references. This entirely avoids the disadvantages of (1), but is clearly not OO. This also means that there can only ever be a single instance of the program. I tend to use (2), as a compromise between OO and practicality. What do other folks do? For what it's worth, I mostly come from the Java world, but this discussion is applicable to any OO language.
0
[ 2, 5746, 29, 13, 7, 26763, 7, 1054, 3815, 19, 40, 3095, 8, 6800, 126, 800, 3726, 3726, 48, 25, 21, 1301, 29, 151, 6709, 13, 8, 31, 589, 3158, 19, 2506, 98, 654, 3563, 20, 44, 13, 7, 4936, 1345, 7, 9, 3563, 14, 249, 1858, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In Eclipse, how do I replace a character by a new line ? === In Eclipse, I would like to replace a character (say ',') by a new line in a file. What should I write in the "Replace with" box in order to do so ?
0
[ 2, 19, 11652, 15, 184, 107, 31, 3934, 21, 925, 34, 21, 78, 293, 13, 60, 800, 3726, 3726, 19, 11652, 15, 31, 83, 101, 20, 3934, 21, 925, 13, 5, 6366, 13, 22, 15, 22, 6, 34, 21, 78, 293, 19, 21, 3893, 9, 98, 378, 31, 2757,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP : What is the dafault lifetime of a session === If i hit a page which calls session_start(). How long would I have to wait, so that if i was to refresh the page, I was issued a new session ID?
0
[ 2, 13, 26120, 13, 45, 98, 25, 14, 1331, 410, 9708, 5277, 16, 21, 3723, 800, 3726, 3726, 100, 31, 770, 21, 2478, 56, 3029, 3723, 1, 13680, 5, 6, 9, 184, 175, 83, 31, 57, 20, 1760, 15, 86, 30, 100, 31, 23, 20, 24905, 14, 247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
Saving a web development project from disaster === I have seen the idea at [HashRocket][1] for their Rescue Mission that is designed to step in and recover from a failing Rails development project (whether timeline, or budget, or something else will not be met). I was wondering if other people offer this service for PHP projects, or web development projects in general. Ideally, they would be involved in formalizing specifications, roadmaps to get the project out the door, as well as coding if need be. Does anyone know of places like these? [1]: http://hashrocket.com
0
[ 2, 7599, 21, 2741, 522, 669, 37, 5302, 800, 3726, 3726, 31, 57, 541, 14, 882, 35, 636, 25436, 22950, 500, 2558, 165, 500, 26, 66, 3655, 1408, 30, 25, 1006, 20, 1424, 19, 17, 7635, 37, 21, 7250, 2240, 18, 522, 669, 13, 5, 26340...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Seam Problem: Could not set field value by reflection === I'm having a problem with my Seam code and I can't seem to figure out what I'm doing wrong. It's doing my head in :) Here's an excerpt of the stack trace: Caused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field com.oobjects.sso.manager.home.PresenceHome.customerId to java.lang.String I'm trying to get a parameter set on my URL passed into one of my beans. To do this, I've got the following set up in my pages.xml: <page view-id="/customer/presences.xhtml"> <begin-conversation flush-mode="MANUAL" join="true" /> <param name="customerId" value="#{presenceHome.customerId}" /> <raise-event type="PresenceHome.init" /> <navigation> <rule if-outcome="persisted"> <end-conversation /> <redirect view-id="/customer/presences.xhtml" /> </rule> </navigation> </page> My bean starts like this: @Name("presenceHome") @Scope(ScopeType.CONVERSATION) public class PresenceHome extends EntityHome<Presence> implements Serializable { @In private CustomerDao customerDao; @In(required = false) private Long presenceId; @In(required = false) private Long customerId; private Customer customer; // Getters, setters and other methods follow. They return the correct types defined above } Finally the link I use to link one one page to the next looks like this: <s:link styleClass="#{selected == 'presences' ? 'selected' : ''}" view="/customer/presences.xhtml" title="Presences" propagation="none"> <f:param name="customerId" value="#{customerId}" /> Presences </s:link> All this seems to work fine. When I hover over the link above in my page, I get a URL ending in something like "?customerId=123". So the parameter is being passed over and it's something that can be easily converted into a Long type. But for some reason, it's not. I've done similar things to this before in other projects and it's worked then. I just can't see what it isn't working now. If I remove the <param> element from my page declaration, I get through to the page fine. So, does anyone have any
0
[ 2, 13927, 1448, 45, 110, 52, 309, 575, 1923, 34, 9138, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 29, 51, 13927, 1797, 17, 31, 92, 22, 38, 2260, 20, 1465, 70, 98, 31, 22, 79, 845, 1389, 9, 32, 22, 18, 845, 51, 157, 19, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hooking up Reporting Services 2005SP2 to SQL Server 2008 === I am trying to configure Reporting Services 2005SP2 on a machine with SQL 2008 on another hosting the ReportServer DB. When I create the ReportServerDB the DB is created as version C.0.9.45: When, afterwards, I try to initialise Reporting Services, I get an error about an incorrect version number. Reporting Services created a ReportServer DB version C.0.9.45 but now expects a version C.0.8.54. Changing compatibility settings of the DB doesn’t have an effect. And changing the version number sproc in the DB to return what Reporting Services wants to hear only delays the crash until initialisation has started. Any ideas?
0
[ 2, 5559, 68, 71, 6670, 687, 812, 3401, 135, 20, 4444, 255, 8128, 570, 800, 3726, 3726, 31, 589, 749, 20, 1065, 15951, 6670, 687, 812, 3401, 135, 27, 21, 1940, 29, 4444, 255, 570, 27, 226, 10637, 14, 2813, 106, 2304, 13, 9007, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best Practices for Eclipse's Problems View === I am using Eclipse for quite some time and I still haven't found how to configure the Problems View to display only the Errors and Warnings of interest. Is there an easy way to filter out warnings from a specific resource or from a specific path? For example, when I generate javadoc I get tons of irrelevant html warnings. Also, is there a way to change the maximum number of appearing warnings/errors? Thanks
0
[ 2, 246, 5242, 26, 11652, 22, 18, 1716, 1418, 800, 3726, 3726, 31, 589, 568, 11652, 26, 1450, 109, 85, 17, 31, 174, 2933, 22, 38, 216, 184, 20, 1065, 15951, 14, 1716, 1418, 20, 3042, 104, 14, 11908, 17, 3590, 18, 16, 1163, 9, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SSL pages under ASP.NET MVC === How do I go about using HTTPS for some of the pages in my ASP.NET MVC based site? Steve Sanderson has a pretty good tutorial on how to do this in a DRY way on Preview 4 at: http://blog.codeville.net/2008/08/05/adding-httpsssl-support-to-aspnet-mvc-routing/ Is there a better / updated way with Preview 5?,
0
[ 2, 13, 18, 18, 255, 4434, 131, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 184, 107, 31, 162, 88, 568, 7775, 18, 26, 109, 16, 14, 4434, 19, 51, 28, 306, 9, 2328, 307, 8990, 432, 689, 60, 2228, 11574, 218, 63, 21, 1772, 254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
New open source project ideas? === I am thinking of either joining in an open source project or come up with a own open source project. Currently i did some brainstorming on my own. And i thinking of doing some projects like - Online recruitment website similar to jorbb.com - An offline mode discussion forum akin like the golden days of the ‘IRC’ era, which builds upon the unique idea of offline messaging system designated for a group of forum-goers or personnel. This will facilitates faster response time to certain topics or threads. A robust, powerful and more functionality packed ‘IRC’. - MMORPG game - an online name card information website where companies/individuals can actually store their name card information online so that they do not always have to bring along all their name cards everywhere - setup an entrepreneur collaboration website. - Anyone have other ideas? Or any nice open source project i can join to gain more experience before doing my own?
0
[ 2, 78, 368, 1267, 669, 3478, 60, 800, 3726, 3726, 31, 589, 1440, 16, 694, 3765, 19, 40, 368, 1267, 669, 54, 340, 71, 29, 21, 258, 368, 1267, 669, 9, 871, 31, 144, 109, 1964, 11032, 68, 27, 51, 258, 9, 17, 31, 1440, 16, 845, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tools for creating UI prototype. === I need to create a prototype of ui. I'm googling, and find "Axure RP", but it very expensive for us company. Other way for creating UI prototype is tools like Qt Designer, but it doesn't provide some cool functions and sometimes demand bit programming skills. Do you know freeware tool for my task for man without any programming skills? Thanks. Ps. excuse my english ;)
0
[ 2, 4672, 26, 2936, 13, 5661, 7063, 9, 800, 3726, 3726, 31, 376, 20, 1600, 21, 7063, 16, 13, 5661, 9, 31, 22, 79, 162, 5598, 802, 15, 17, 477, 13, 7, 7522, 4221, 13, 6952, 7, 15, 47, 32, 253, 5381, 26, 182, 237, 9, 89, 161,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between an argument and a parameter? === When verbally talking about methods in C# during a code review or in pairing I'm never sure whether to use the word argument or parameter or something else. Either way the other people know what I mean but what's correct and what's the history of the terms? Would people use different terms in different languages? For the record I'm self-taught without a background in Computer Science. Please don't tell me to read [Code Complete][1] because I'm asking this for the benefit of other people who don't already have a copy of [Steve McConnell][2]'s marvellous book. [1]: http://www.amazon.co.uk/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=sr_1_1?ie=UTF8&s=books&qid=1222851286&sr=1-1 [2]: http://www.stevemcconnell.com/
0
[ 2, 98, 22, 18, 14, 2841, 128, 40, 5476, 17, 21, 18906, 60, 800, 3726, 3726, 76, 11670, 102, 1582, 88, 3195, 19, 272, 5910, 112, 21, 1797, 1487, 54, 19, 23028, 31, 22, 79, 243, 562, 1472, 20, 275, 14, 833, 5476, 54, 18906, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I find similar address records? === The workflow is like this: 1. I receive a scan of a coupon with data (firstname, lastname, zip, city + misc information) on it. 2. Before I create a new customer, I have to search the database if the customer might exist already. Now my question: What's the best way to find an existing customer, when there is no unique ID available?
0
[ 2, 184, 92, 31, 477, 835, 3218, 742, 60, 800, 3726, 3726, 14, 170, 9990, 25, 101, 48, 45, 137, 9, 31, 2588, 21, 8313, 16, 21, 7336, 218, 29, 1054, 13, 5, 3552, 7259, 15, 236, 7259, 15, 12133, 15, 136, 2754, 2462, 150, 676, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any website which showcase nice / comprehensive build.xml? === What i mean exactly is that build.xml that actually included those plugins like findbugs etc. Or nicely done build.xml
0
[ 2, 25, 80, 186, 2271, 56, 11958, 2210, 13, 118, 7041, 1895, 9, 396, 8184, 60, 800, 3726, 3726, 98, 31, 884, 1890, 25, 30, 1895, 9, 396, 8184, 30, 1121, 506, 273, 10922, 108, 18, 101, 477, 16254, 18, 2722, 9, 54, 24050, 677, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Distributed corporate collaboration tools === I'm looking for a corporate collaboration tool to help bring together my team, who are geographically and organisationally distributed. Some team members operate on client sites, behind corporate firewalls and similar. The restrictions I have are: * Must allow creation of persistent 'channels' (i.e. not just one-to-one or one-to-many chats). * Must be free (or very close to it). * Must be commonly available through corporate firewalls (i.e. operate on port 80 or similar). I'm aware no solution will be guaranteed to work through every firewall, but one that allows us to avoid the common restrictions is important. * Must have a desktop/alert agent, to allow users to be alerted if/when new messages arrive in channels they are listening to. * If at all possible, should have a feature to allow the app to start at login/boot time, so developers don't have to remember to activate it, or manually sign in. Does anyone have any recommendations which meet these criteria? I have so far considered: * Google Talk: Fails the 'channels' test - group chats are also only available via the web interface. * CampFire: Fails the desktop alert and auto-start function. Requires users to open web browser, navigate, log in, etc. Also fails the 'free' test, but only just. Price wouldn't be an object if these other failures could be overcome. * www.24im.com: Fails the 'common corporate firewalls' test - this communicates on ports 10880-10889, which are blocked on all corporate firewalls we tested.
0
[ 2, 4387, 4871, 4004, 4672, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 4871, 4004, 5607, 20, 448, 1499, 429, 51, 173, 15, 72, 50, 23744, 17, 4080, 1326, 4387, 9, 109, 173, 443, 4055, 27, 6819, 3259, 15, 439, 4871, 535, 6051, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to output a CDATA section from a Sax XmlHandler === This is a followup question of [How to encode characters from Oracle to Xml?][1] In my environment here I use Java to serialize the result set to xml. I have no access to the output stream itself, only to a org.xml.sax.ContentHandler. When I try to output characters in a CDATA Section: It happens basically like this: xmlHandler.startElement(uri, lname, "column", attributes); String chars = "<![CDATA["+rs.getString(i)+"]]>"; xmlHandler.characters(chars.toCharArray(), 0, chars.length()); xmlHandler.endElement(uri, lname, "column"); I get this: <column>&lt;![CDATA[33665]]&gt;</column> But I want this: <column><![CDATA[33665]]></column> So how can I output a CDATA section with a Sax ContentHandler? [1]: http://stackoverflow.com/questions/156697/how-to-encode-characters-from-oracle-to-xml
0
[ 2, 184, 20, 5196, 21, 1745, 4375, 1050, 37, 21, 16070, 23504, 3203, 1252, 800, 3726, 3726, 48, 25, 21, 1740, 576, 1301, 16, 636, 1544, 20, 20523, 1766, 37, 15759, 20, 23504, 60, 500, 2558, 165, 500, 19, 51, 2307, 235, 31, 275, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# - How do I define an inline method Func<T> as a parameter? === I've written a simple SessionItem management class to handle all those pesky null checks and insert a default value if none exists. Here is my GetItem method: public static T GetItem<T>(string key, Func<T> defaultValue) { if (HttpContext.Current.Session[key] == null) { HttpContext.Current.Session[key] = defaultValue.Invoke(); } return (T)HttpContext.Current.Session[key]; } Now, how do I actually use this, passing in the Func&lt;T&gt; as an inline method parameter?
0
[ 2, 272, 5910, 13, 8, 184, 107, 31, 9267, 40, 19, 1143, 2109, 2414, 150, 1, 38, 1, 28, 21, 18906, 60, 800, 3726, 3726, 31, 22, 195, 642, 21, 1935, 3723, 2119, 79, 1097, 718, 20, 3053, 65, 273, 3560, 2397, 16203, 16602, 17, 1469...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does .NET Reporting Services support vectorial graphics? === After diving into the www, I don't have a clue about the support of vectorial grahics/image by reporting services. It seems to be impossible. We are using Reporting Services with a PDF rendering and we are forced to use raw bitmap into reports. That leads to huge sized reports. We know that dealing with vectorial graphics will help but such feature seems to be not supported by reporting services.
0
[ 2, 630, 13, 9, 2328, 6670, 687, 555, 7497, 2815, 8351, 60, 800, 3726, 3726, 75, 9837, 77, 14, 13, 6483, 15, 31, 221, 22, 38, 57, 21, 8906, 88, 14, 555, 16, 7497, 2815, 5120, 252, 8354, 118, 22039, 34, 6670, 687, 9, 32, 2206, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create nice flashy documentation e.g. user guide? === Every project we do we need to create user guide. The problem with most user guide is that alot are full of text and not screenshots etc. Anyone seens any nicely done user guides? Or even some kind of flash UI to orientate user to the website? etc.?
0
[ 2, 184, 20, 1600, 2210, 4433, 93, 13945, 13, 62, 9, 263, 9, 4155, 3378, 60, 800, 3726, 3726, 352, 669, 95, 107, 95, 376, 20, 1600, 4155, 3378, 9, 14, 1448, 29, 127, 4155, 3378, 25, 30, 21, 5639, 50, 503, 16, 1854, 17, 52, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IE6 crashes while displaying simple site === I have a really strange problem with an quite simple ASP.NET (.NET 3.5) Site and the IE6. It seems sometimes and on certain machines, the IE6 crashes while displaying the site. CSS was already eliminated as a reason for the crashes. After a while of research, I was not able to find a reason for the crashes and could not reproduce it properly. The site works on all browsers, except IE6 and it crashes only on certain machines, not everywhere. Any idea what this could be?
0
[ 2, 13, 660, 379, 21563, 133, 17418, 1935, 689, 800, 3726, 3726, 31, 57, 21, 510, 2578, 1448, 29, 40, 1450, 1935, 28, 306, 9, 2328, 13, 5, 9, 2328, 203, 9, 264, 6, 689, 17, 14, 13, 660, 379, 9, 32, 2206, 1030, 17, 27, 1200, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is data area? === In C++ the storage class specifier static allocates memory from the data area. What does "data area" mean?
0
[ 2, 98, 25, 1054, 217, 60, 800, 3726, 3726, 19, 272, 20512, 14, 4326, 718, 12737, 16292, 12038, 65, 2499, 7759, 1912, 37, 14, 1054, 217, 9, 98, 630, 13, 7, 18768, 217, 7, 884, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Silverlight display problem === I have created a nice silverlight control doing exactly what I want it to do, and it looks great :) When I host it in the test projects ASPX sample file or the HTML sample file it shows up nicely. I now have to use the control in my existing ASP.NET 2.0 project, which has a fancy design. The problem I'm having is that the control don't show up exactly how it should: - The loading progress don't show - The control usually don't become visible before I move my mouse over the aria where it's contained Obviously it's something with my HTML/CSS design causing this, but it will be extremely time consuming to find the issue - so does anyone have knowledge in this area? What are the rules around how to make sure the control is displayed properly? What CSS properties should be used? PS: Since I have a 2.0 app, I'm using the object tag approach to Silverlight, and it's contained in a DIV with height and width set in style.
0
[ 2, 1172, 3130, 3042, 1448, 800, 3726, 3726, 31, 57, 679, 21, 2210, 1172, 3130, 569, 845, 1890, 98, 31, 259, 32, 20, 107, 15, 17, 32, 1879, 374, 13, 45, 6, 76, 31, 2015, 32, 19, 14, 1289, 2314, 28, 306, 396, 5717, 3893, 54, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Download files to local drive when sshed === What is the best way to download files to local hard drive when logged in to another computer using ssh in bash. I'm aware of sftp, but it is not convienent, e.g. it lacks tab completion of directory names. I'm using Ubuntu 8.04.1
0
[ 2, 7121, 6488, 20, 375, 1493, 76, 13, 18, 7399, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 7121, 6488, 20, 375, 552, 1493, 76, 13, 19287, 19, 20, 226, 1428, 568, 13, 18, 1635, 19, 13158, 9, 31, 22, 79, 3854, 16, 15025, 13726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Explain x => x.ToString() //simplify so many calls === In a <a href="http://stackoverflow.com/questions/9033#9099">question answer</a> I find the following coding tip:- <p>2) simple lambdas with one parameter:</p> <pre><code>x =&gt; x.ToString() //simplify so many calls </code></pre> As someone who has not yet used 3.0 I don't really understand this tip but it looks interesting so I would appreciate an expantion on how this simplifies calls with a few examples. I've researched lambdas so I **think** I know what they do, however I **may** not fully understand so a **little** unpacking might also be in order.
0
[ 2, 3271, 993, 800, 1, 993, 9, 262, 11130, 5, 6, 12894, 8672, 5727, 8612, 86, 151, 3029, 800, 3726, 3726, 19, 21, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 3165, 4048, 5910, 3165...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
online viewing of server logs? Is this encouraged? === I understand that this could be a big security issue if people manage to hack it and able to view the server logs. Is there any application that can actually grab logs and display via web interface with the necessary security imposed? I am talking about java enterprise application
0
[ 2, 2087, 11244, 16, 8128, 18893, 60, 25, 48, 5623, 60, 800, 3726, 3726, 31, 1369, 30, 48, 110, 44, 21, 580, 1221, 1513, 100, 148, 4705, 20, 11835, 32, 17, 777, 20, 1418, 14, 8128, 18893, 9, 25, 80, 186, 3010, 30, 92, 1121, 493...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
database synchronization - SFTP / RMAN / By codes? === Which method you all will recommend and why?
0
[ 2, 6018, 13, 16023, 1829, 13, 8, 15025, 13726, 13, 118, 761, 177, 13, 118, 34, 11358, 60, 800, 3726, 3726, 56, 2109, 42, 65, 129, 12360, 17, 483, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to consume a wcf service when i only know its URL === I need to consume a wcf service dynamically when all i know is its URL. I do not have the option of creating a service reference or web reference as my client side code picks up the URL from a config file. What classes and methods can i use from the System.ServiceModel namespace for doing so.
0
[ 2, 184, 20, 16447, 21, 11801, 410, 365, 76, 31, 104, 143, 82, 287, 6362, 800, 3726, 3726, 31, 376, 20, 16447, 21, 11801, 410, 365, 7782, 1326, 76, 65, 31, 143, 25, 82, 287, 6362, 9, 31, 107, 52, 57, 14, 4255, 16, 2936, 21, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamicaly populating a combobox with values from a Map based on what's selected in another combobox === Ok, here's one for the Java/JavaScript gurus: In my app, one of the controllers passes a TreeMap to it's JSP. This map has car manufacturer's names as keys and Lists of Car objects as values. These Car objects are simple beans containing the car's name, id, year of production etc. So, the map looks something like this (this is just an example, to clarify things a bit): Key: Porsche<br/> Value: List containing three Car objects(for example 911,Carrera,Boxter with their respectable years of production and ids)<br/> Key: Fiat<br/> Value: List containing two Car objects(for example, Punto and Uno)<br/> etc... Now, in my JSP i have two comboboxes. One should receive a list of car manufacturers(keys from the map - this part I know how to do), and the other one should **dynamicaly change** to display the names of the cars when the user selects a certain manufacturer from the first combobox. So, for example, user selects a "Porsche" in the first combobox, and the second immediately displays "911, Carrera, Boxter"... After spending a couple of days trying to find out how to do this, I'm ready to admit defeat. I tried out a lot of different things but every time I hit a wall somewehere along the way. Can anybody suggest how I should approach this one? Yes, I'm a JavaScript newbie, if anybody was wondering...
0
[ 2, 7782, 58, 102, 1675, 10038, 21, 22621, 5309, 29, 4070, 37, 21, 2942, 432, 27, 98, 22, 18, 1704, 19, 226, 22621, 5309, 800, 3726, 3726, 5854, 15, 235, 22, 18, 53, 26, 14, 8247, 118, 1004, 1385, 8741, 10334, 18, 45, 19, 51, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best SNMP implementation for Python? === I'm doing some GUI prototyping with Python for an SNMP application. Looking around there seem to be a number of python libraries I could use. As I'm prototyping I value a nice clean easy API over speed and preferably a commonly packaged library. Obviously the package should be open source. So far I've been looking PySNMP, Twisted-Snmp, pynetsnmp and seafelt's libsnmp.
4
[ 2, 98, 25, 14, 246, 8912, 2554, 6123, 26, 20059, 60, 800, 3726, 3726, 31, 22, 79, 845, 109, 9457, 9347, 1084, 3181, 29, 20059, 26, 40, 8912, 2554, 3010, 9, 699, 140, 80, 2260, 20, 44, 21, 234, 16, 20059, 8649, 31, 110, 275, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to communicate between CE 6.0 device (as server) and PC (as client) === We're in the process of developing a measurement device that will be running CE 6.0 with CF 3.5 on x86 embedded hardware, a PC is used to control the device and is connected with it using ethernet. We would like to communicate using interfaces (using DCOM (we know it is not supported by default on CE6), .NET Remoting or Web services) instead of using some sort of (custom) protocol. Calling methods defined in an interface is so much easier and elegant then parsing raw data. What would be the best solution in this case?
0
[ 2, 184, 20, 8709, 128, 4000, 400, 9, 387, 3646, 13, 5, 472, 8128, 6, 17, 5168, 13, 5, 472, 6819, 6, 800, 3726, 3726, 95, 22, 99, 19, 14, 953, 16, 3561, 21, 11688, 3646, 30, 129, 44, 946, 4000, 400, 9, 387, 29, 10084, 203, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to optimize PostgreSQL Configuration? === In postgresql you have a wealth of optimizations at hand to configure it for your performance needs. The settings for memory usage are still easy enough, but with other options like the cost factors for CPU and IO which are used for the query optimizer are quite a mystery for me. I wonder if there is a program available which would do lets say a benchmark of your hardware (CPU speed, memory performance, harddisk speed), analyze your database and come up with the optimal configuration for this specific environment?
0
[ 2, 184, 20, 22864, 678, 6879, 18, 22402, 8091, 60, 800, 3726, 3726, 19, 678, 6879, 18, 22402, 42, 57, 21, 6141, 16, 21597, 18, 35, 224, 20, 1065, 15951, 32, 26, 154, 956, 2274, 9, 14, 12410, 26, 1912, 7514, 50, 174, 2010, 511, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Good simulation software for mobile devices === Can anyone recommend good simulation software for mobile devices? I am most interested in Nokia smart phones.
0
[ 2, 254, 10926, 2306, 26, 3241, 4690, 800, 3726, 3726, 92, 1276, 12360, 254, 10926, 2306, 26, 3241, 4690, 60, 31, 589, 127, 3158, 19, 24294, 3978, 14830, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Customized command line parsing in Python === I'm writing a shell for a project of mine, which by design parses commands that looks like this: COMMAND_NAME ARG1="Long Value" ARG2=123 ARG3=me@me.com My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of the arguments. This behavior doesn't match my requirements. Any ideas how can this be solved? Any existing library for this?
0
[ 2, 28779, 1202, 293, 2017, 18, 68, 19, 20059, 800, 3726, 3726, 31, 22, 79, 1174, 21, 3593, 26, 21, 669, 16, 1114, 15, 56, 34, 704, 2017, 7202, 14294, 30, 1879, 101, 48, 45, 1202, 1, 7259, 13, 10663, 165, 3726, 7, 2701, 1923, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Controlling the WCF XmlSerializer === I have some REST web services implemented in WCF. I wish to make these services return "Bad Request" when the xml contains invalid elements. The xml serialization is being handled by XmlSerializer. By default XmlSerializer ignores unknown elements. I know it is possible to hook XmlSerializer.UnknownElement and throw an exception from this handler, but because this is in WCF I have no control over serialization. Any ideas how I might implement this behavior.
0
[ 2, 10106, 14, 11801, 410, 23504, 4104, 2815, 11907, 800, 3726, 3726, 31, 57, 109, 760, 2741, 687, 6807, 19, 11801, 410, 9, 31, 2536, 20, 233, 158, 687, 788, 13, 7, 5989, 3772, 7, 76, 14, 23504, 1588, 16671, 2065, 9, 14, 23504, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
can I configure hibernate properties to connect without using an instance name to sql server 2005? === Can I configure hibernate properties to connect without using an instance name to sql server 2005? I need to force it to use localhost as the hostname and not specify the instance (same as you can do with the sql server enterprise manager). Ta! T
0
[ 2, 92, 31, 1065, 15951, 4148, 2102, 8820, 3704, 20, 6379, 366, 568, 40, 4851, 204, 20, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 92, 31, 1065, 15951, 4148, 2102, 8820, 3704, 20, 6379, 366, 568, 40, 4851, 204, 20, 4444, 255, 8128,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you transform a pre-existing web app in a multilingual one ? === I am going to work on a project where a fairly large web app needs to tweaked to handle several languages. The thing runs with a hand crafted PHP code but it's pretty clean. I was wondering what would be the best way to do that ? 1- Making something on my own, trying to fit the actual architecture. 2 - Rewriting a good part of it using a framework (e.g : symfony) that will manage i18n that for me ? If 1, where to store the i18n data ? *.po, xliff, pure DB ? I thought about an alternative : using only symfony for the translation but the controller would only load the website as it's already is. Quick, but dirty. On the other hand, it allows us to make the next modif, moving slowly to full symfony : this web site is really a good candidate. But maybe there are some standalone translation engines that would do the job better that an entire web framwork. It's a bit like sing a bazooka to kill a fly...
0
[ 2, 184, 83, 42, 8007, 21, 782, 8, 21341, 2741, 4865, 19, 21, 1889, 23427, 53, 13, 60, 800, 3726, 3726, 31, 589, 228, 20, 170, 27, 21, 669, 113, 21, 6647, 370, 2741, 4865, 2274, 20, 28769, 69, 20, 3053, 238, 2556, 9, 14, 584, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending a keyboard event from java to any application (on-screen-keyboard) === I am working on developing an on-screen keyboard with java. This keyboard has a JComponent for every possible key. When a mouse down is detected on the button, I want to send a specific keyboard code to the application currently on focus. The keyboard itself is within a JFrame with no decorations and set to always-on-top. I found that the Robot class can be used to simulate these keyboard events on the native queue. However, in this case, selecting the JComponent would mean that the key-press is received on the JFrame, and I wouldn't be able to receive it in the other application How can I keep my on-screen keyboard "Always-without-focus"? Is it maybe possible to use another approach to send the key-press?
0
[ 2, 4907, 21, 8896, 807, 37, 8247, 20, 186, 3010, 13, 5, 218, 8, 7187, 8, 4237, 2806, 6, 800, 3726, 3726, 31, 589, 638, 27, 3561, 40, 27, 8, 7187, 8896, 29, 8247, 9, 48, 8896, 63, 21, 487, 11103, 218, 2291, 26, 352, 938, 1246...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Good way to create PDF from Office documents in Java === I'm looking for a good way to convert Office (mostly Microsoft) documents to PDF in Java. I've been looking at using the OpenOffice SDK but from the samples I've looked at it looks like this requires having OpenOffice running in server mode to do the work. Does anyone know of a good way to do this? Good meaning the less external requirements, the better. A 100% Java API would be best, but I don't expect that actually exists.
0
[ 2, 254, 161, 20, 1600, 13, 11124, 37, 488, 4374, 19, 8247, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 161, 20, 8406, 488, 13, 5, 18397, 7099, 6, 4374, 20, 13, 11124, 19, 8247, 9, 31, 22, 195, 74, 699, 35, 568, 14, 368, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Case-insensitive Glob on zsh/bash === I need to list all files whose names start with 'SomeLongString'. But the case of 'SomeLongString' can vary. How? I am using zsh, but a bash solution is also welcome.
0
[ 2, 610, 8, 108, 19435, 19060, 27, 2052, 1635, 118, 969, 1635, 800, 3726, 3726, 31, 376, 20, 968, 65, 6488, 1196, 1817, 799, 29, 13, 22, 3220, 2701, 11130, 22, 9, 47, 14, 610, 16, 13, 22, 3220, 2701, 11130, 22, 92, 7392, 9, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Recomendation for redundant DNS service === Since my DNS service provider (namecheap) had lots of problems the last days, I'm looking to move my domains to another provider that also offers redundant service. Do you have any recommendation? Thank you
0
[ 2, 302, 960, 2451, 857, 26, 24295, 13, 43, 2172, 365, 800, 3726, 3726, 179, 51, 13, 43, 2172, 365, 11747, 13, 5, 7259, 2569, 2552, 6, 41, 7503, 16, 1716, 14, 236, 509, 15, 31, 22, 79, 699, 20, 780, 51, 15544, 20, 226, 11747, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
Recommended Multithreading Book === I want to read a good book about multithreading and parallelism. I have a primarily .NET background but I think I would prefer a book focused on first principles and working into general patterns and algorithms and being overall less technology specific. Obviously a discussion of the kind of low-level system architecture issues that the C# "volatile" keyword attempts to address (for example) would be important, just without being tied directly to a particular language. Is there a particular book in this field that stands out among the others? Thanks,
4
[ 2, 5773, 1889, 96, 22883, 360, 800, 3726, 3726, 31, 259, 20, 1302, 21, 254, 360, 88, 1889, 96, 22883, 17, 3821, 756, 9, 31, 57, 21, 2257, 13, 9, 2328, 2395, 47, 31, 277, 31, 83, 6369, 21, 360, 2604, 27, 64, 5624, 17, 638, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Classic ASP Intranet and New ASP.NET Applications === We have an existing classic ASP intranet consisting of hundreds of pages. Its directory structure looks like this... /root app_1 app_2 ... img js style Obviously app_1 and so on have better names in the actual directory structure. Even though the many applications have different behaviour, they are all part of the same intranet and therefore share a common look and feel by including stylesheets via /style, images via /img and client script via /js. The trouble (for me at least) comes when I want to add an intranet application in ASP.NET. Ultimately, I'd like this structure: /root app_1 app_2 dotnetapp_1 dotnetapp_2 ... img js style It seems to me that ASP.NET "applications" like to think of themselves as separate from everything around them (this may just be my comprehension of how they are). You create a new "project" in Visual Studio and it's like you have a new "root" a level below the actual root I want to use. It's like this new application is a thing, standing alone, with its own images and style and whatnot. However, I want it to be a sub-part of the existing intranet. Ultimately I want to be able to make my whole classic ASP intranet the "root" and have ASP.NET "sub-applications" that can still access /style and /img and, I guess for ASP.NET I'll have /masterpages. I've tried this before, but I think VS choked on the couple of hundred classic ASP pages that it added to the "project" when I made my existing intranet root directory the ASP.NET project root (via File->Open->Web Site). I'd be nice to edit my existing classic ASP intranet using VS 2008 SP1 (I currently use the excellent [Notepad++][1]) because I'd like to get more hands on with VS but I guess this isn't absolutely necessary. I also tried treating each new ASP.NET application as an application in its own right, effectively making the /dotnetapp_1 directory the "root" of the application (again, via File->Open->Web Site in VS2008). However, VS then complained when I tried to reference /masterpages because it "belonged to another application." I think I kludged it by adding a virtual directory inside each ASP.NET directory that "pointed" to the root /masterpages but I'm not sure VS was able to happily provide WYSIWYG editing when I did this, as opposed to making a copy of the masterpage in every ASP.NET application I add to the intranet. I'm also quite likely to visit the .NET MVC framework so please offer any answers with that framework in mind. I'm hoping "projects" aren't quite to important with MVC and that rather it's just a bunch of files that creates an application that contributes to the whole (that being the intranet). So, the question is: **How I can best add-on ASP.NET applications to an existing classic ASP intranet (I'm not concerned about the technicalities of session sharing between classic ASP and ASP.NET, only the structural layout of directories and projects) and be able to edit these separate applications in Visual Studio 2008 SP1 and yet have these application "related" to each other by a common, intranet look and feel*?** * Please don't just post the answer "use MasterPages." I appreciate MasterPages are .NET's method of sharing styles (and more probably) between related pages in the _same_ application. I get that. What I'm looking for is the best method of adding ASP.NET applications into the existing intranet as smoothly as I can that makes editing each application simple and where each application can share (if possible) an intranet-common style. [1]: http://notepad-plus.sourceforge.net/uk/site.htm
0
[ 2, 2732, 28, 306, 14369, 2328, 17, 78, 28, 306, 9, 2328, 3767, 800, 3726, 3726, 95, 57, 40, 3149, 2732, 28, 306, 14369, 2328, 4160, 16, 4541, 16, 4434, 9, 82, 16755, 1411, 1879, 101, 48, 9, 9, 9, 13, 118, 14032, 4865, 1, 165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you know an alternative to balsamiq mockups? === I am searching for something like http://www.balsamiq.com/products/mockups . I like the program and would buy it if it were 20 bucks a licence. Do you guys know something in the range from 0 to 20 bucks which can do what this thing can?
4
[ 2, 107, 42, 143, 40, 2676, 20, 3350, 6101, 9908, 10506, 15699, 60, 800, 3726, 3726, 31, 589, 5792, 26, 301, 101, 7775, 6903, 6483, 9, 3817, 6101, 9908, 9, 960, 118, 14086, 18, 118, 79, 5668, 15699, 13, 9, 31, 101, 14, 625, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is the web hosting location important these days? === I was recently looking at some web hosting solutions and some of the providers offered various hosting locations e.g. US or UK based servers. My question is: does it really make a difference from the performance point of view? Lets say that I am expecting most of the traffic coming from continental Europe? Would the fact that the servers are based in UK make bigger difference if the traffic was coming from the UK. Any pros and cons of having a website hosted in the same county as the most of the expected traffic?
0
[ 2, 25, 14, 2741, 10637, 1474, 681, 158, 509, 60, 800, 3726, 3726, 31, 23, 1989, 699, 35, 109, 2741, 10637, 6776, 17, 109, 16, 14, 13488, 1434, 617, 10637, 4095, 13, 62, 9, 263, 9, 182, 54, 1063, 432, 17595, 9, 51, 1301, 25, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Capistrano + thin + nginx with user not allowed to sudo howto? === I have a scenario like this which I want to use capistrano to deploy my ruby on rails application: 1. The web application is on a thin cluster with the config file stored under /etc/thin. also an init script is in /etc/init.d/thin, so it would start automatically whenever my server needs a reboot 2. Also nginx is executed the same way (as an init script daemon) 3. To make sure in case if somebody hacked my webserver I don't want them to do something too horrible, so the web user is not allowed to sudo. 4. Thin and nginx both runs as the webuser to enforce such security Now when I need to do the deployment, I would need the files to be installed under /home/webuser/railsapps/helloworld, and I need the cap script restart my thin afterwards. I want to keep all files owned by the webuser, so the cap script primary user is running as webuser. Now the problem arise when I want to restart the thin daemon because webuser can't sudo. I am thinking if its possible to invoke two separate sessions- webuser for file deployment, and then a special sudoer to restart the daemon. Can anyone give me a sample script on this?
0
[ 2, 2605, 702, 17555, 2754, 2951, 2754, 13, 2723, 108, 396, 29, 4155, 52, 1159, 20, 13, 18, 18601, 184, 262, 60, 800, 3726, 3726, 31, 57, 21, 12705, 101, 48, 56, 31, 259, 20, 275, 2605, 702, 17555, 20, 17617, 51, 10811, 27, 2240,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.order_by() Isnt working how it should/how i expect it to === In my django project i am using `Product.objects.all().order_by('order')` in a view, but it dosnt seem to be working properly. This is its output: <table id="product_table"> <thead> <tr class="tableheader"> <td>Product Name</td> <td>Sort</td> </tr> </thead> <tbody> <tr id="Evolution"> <td>Evolution</td> <td>2</td> </tr> <tr id="Polarity"> <td>Polarity</td> <td>1</td> </tr> <tr id="Jumbulaya"> <td>Jumbulaya</td> <td>3</td> </tr> <tr id="Kalidascope"> <td>Kalidascope</td> <td>4</td> </tr> </tbody> </table> It should look like this: <table id="product_table"> <thead> <tr class="tableheader"> <td>Product Name</td> <td>Sort</td> </tr> </thead> <tbody> <tr id="Polarity"> <td>Polarity</td> <td>1</td> </tr> <tr id="Evolution"> <td>Evolution</td> <td>2</td> </tr> <tr id="Jumbulaya"> <td>Jumbulaya</td> <td>3</td> </tr> <tr id="Kalidascope"> <td>Kalidascope</td> <td>4</td> </tr> </tbody> </table> <br/> But it dosnt. Any ideas? My view (for that output): def debug(request): order = Product.objects.all().order_by('order') name = Product.objects.all().order_by('name').reverse() return render_to_response('cms/debug.html', {'order' : order, 'name' : name}) And the view responsible for saving the order field: def manage_all(request): if request.method == 'POST': PostEntries = len(request.POST) x = 1 while x < PostEntries: p = Product.objects.get(pk=x) p.order = int(request.POST.get(str(x),'')) print "Itr: " + str(x) x = x + 1 p.save() print "Product Order saved" return HttpResponse("Saved") allproducts = Product.objects.all().order_by('order') return render_to_response('cms/admin/manageall.html', {'allproducts' : allproducts}, context_instance=RequestContext(request)) And the model: class Product(models.Model): name = models.CharField(max_length=100) price = models.CharField(max_length=50) short_desc = models.TextField(max_length=500) long_desc = models.TextField(max_length=5000) big_img = models.ImageField(upload_to="products/bigimg", blank=True) small_img = models.ImageField(upload_to="products/smallimg", blank=True) xtrahtml = models.CharField(max_length=5000) order = models.IntegerField(blank = True, null = True Here is a 'live' example of the page <http://massiveatom.com:8080/debug/> Please note that that is only running on the dev server, so it may not always be up. I have asked in #django and they didnt seem to know what was going on. One thought was that the database/django was being confused by the sql command it is generating (`select * from table where 1 order by 'order'`), but i would prefer not to change the order field in the model. And i know there should be backticks surrounding order in the above sql command, but the syntax parsing thingy kinda hated on it...
0
[ 2, 13, 9, 7861, 1, 779, 5, 6, 8441, 638, 184, 32, 378, 118, 1544, 31, 4186, 32, 20, 800, 3726, 3726, 19, 51, 3857, 14541, 669, 31, 589, 568, 13, 1, 14086, 9, 23793, 18, 9, 1233, 5, 6, 9, 7861, 1, 779, 5, 22, 7861, 22, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Search words in SQL index === I need something in between a full text search and an index search: I want to search for text in one column of my table (probably there will be an index on the column, too, if that matters). Problem is, I want to search for words in the column, but I don't want to match parts. For example, my column might contain business names: *Mighty Muck Miller and Partners Inc. Boy & Butter Breakfast company* Now if I search for "*Miller*" I want to find the first line. But if I search for "*iller*" I don't want to find it, because there is no word starting with "iller". Searching for "*Break*" should find "*Boy & Butter Breakfast company*", though, since one word is starting with "*Break*". So if I try and use WHERE BusinessName LIKE %Break% it will find too many hits. Is there any way to Search for Words separated by whitespace or other delimiters? (LINQ would be best, plain SQL would do, too)
0
[ 2, 2122, 715, 19, 4444, 255, 4348, 800, 3726, 3726, 31, 376, 301, 19, 128, 21, 503, 1854, 2122, 17, 40, 4348, 2122, 45, 31, 259, 20, 2122, 26, 1854, 19, 53, 4698, 16, 51, 859, 13, 5, 14097, 80, 129, 44, 40, 4348, 27, 14, 469...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to add a horizontal gap with a JLabel === I have a JLabel (actually, it is a JXLabel). I have put an icon and text on it. <icon><text> Now I wand to add some spacing on the left side of the component, like this: <space><icon><text> I DON'T accept suggestion to move the JLabel or add spacing by modifying the image. I just want to know how to do it with plain java code.
0
[ 2, 184, 20, 3547, 21, 10095, 4127, 29, 21, 487, 21018, 800, 3726, 3726, 31, 57, 21, 487, 21018, 13, 5, 15661, 15, 32, 25, 21, 487, 396, 21018, 6, 9, 31, 57, 442, 40, 9801, 17, 1854, 27, 32, 9, 13, 1, 49, 1126, 1, 11969, 1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# StringTemplate - how to set eol character === I'm using the C# version of the StringTemplate library (http://www.stringtemplate.org/) to generate C++ code. My templates work fine, until I started using the <attribute:template(argument-list)> syntax to apply templates to multiple values in a 'list' ('multi-valued-argument' if I'm correct in the StringTemplate lingo). From that moment on, the EOL character switched from \n to \r\n, which cause Visual Studio and other editors to pop a 'convert end of line characters to \n' warning every time I open generated files. So, my question is: how do I force StringTemplate to always output \n as EOL marker?
0
[ 2, 272, 5910, 3724, 9577, 6554, 13, 8, 184, 20, 309, 13, 62, 1823, 925, 800, 3726, 3726, 31, 22, 79, 568, 14, 272, 5910, 615, 16, 14, 3724, 9577, 6554, 1248, 13, 5, 21127, 6903, 6483, 9, 11130, 9577, 6554, 9, 5583, 118, 6, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
easiest way to import a new table into MySQL v5 from csv? === I'm running MySQL 5 on a linux server on my local network. Running windows XP for my desktop. Had a look at the <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">MySQL GUI Tools</a> but i dont think they help. I cannot install apache on the remote server & use something like PHPmyAdmin
0
[ 2, 27237, 161, 20, 9010, 21, 78, 859, 77, 51, 18, 22402, 566, 264, 37, 272, 18, 710, 60, 800, 3726, 3726, 31, 22, 79, 946, 51, 18, 22402, 331, 27, 21, 13024, 8128, 27, 51, 375, 982, 9, 946, 1936, 23045, 26, 51, 17404, 9, 41,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...