unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Good dynamic programing language for .net recommendation === Well, after a long time writing .net programs in C# I started to feel angry and frustrated about all that syntactic trash that comes with statically typed languages. Now I want to change to dynamically typed languages, that takes advantage of CLI. So I searched a bit around and I didn't like of what I saw. I first looked for IronPython. But the project feels disorganized, it just didn't look well at all. Then I heard about Boo. I liked boo's, the ideal and all, but it kinda feels like the project is halted. Then I heard of IronRuby, but the project is still at beta, and so I decided to wait until it gets more mature. So as I couldn't find a good CLR compatible dynamic language, I'm asking you guys what do you(would you) use?
4
[ 2, 254, 7782, 625, 68, 816, 26, 13, 9, 2328, 14066, 800, 3726, 3726, 134, 15, 75, 21, 175, 85, 1174, 13, 9, 2328, 1726, 19, 272, 5910, 31, 373, 20, 583, 3365, 17, 10645, 88, 65, 30, 6063, 6981, 1786, 10744, 30, 1624, 29, 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...
Lisp in the real world === I have experimented with Lisp (actually Scheme) and found it to be a very beautiful language that I am interested in learning more about. However, it appears that Lisp is never used serious projects, and I haven't seen it listed as a desired skill on any job posting. I am interested in hearing from anyone who has used Lisp or seen it used in the "real world", or who knows whether it is considered a purely academic language.
0
[ 2, 2093, 3401, 19, 14, 683, 126, 800, 3726, 3726, 31, 57, 23418, 29, 2093, 3401, 13, 5, 15661, 4276, 6, 17, 216, 32, 20, 44, 21, 253, 1632, 816, 30, 31, 589, 3158, 19, 2477, 91, 88, 9, 207, 15, 32, 1780, 30, 2093, 3401, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 way I can tell whether an SMTP server is expecting a client to connect using "implicit" SSL versus "explicit" SSL? === SSL can either be "explicit" or "implicit" as explained by this link: http://help.globalscape.com/help/secureserver2/Explicit_versus_implicit_SS.htm System.Net.Mail only support "explicit" SSL, as explained here: http://blogs.msdn.com/webdav_101/archive/2008/06/02/system-net-mail-with-ssl-to-authenticate-against-port-465.aspx So, I'm trying to use System.Net.Mail to connect to an SMTP server that I don't have any control over, and it's failing. How can I know for sure that it's failing because the server wants an "implicit" SSL connection? What test can I do from the client side?
0
[ 2, 25, 80, 21, 161, 31, 92, 494, 1472, 40, 7613, 13726, 8128, 25, 7752, 21, 6819, 20, 6379, 568, 13, 7, 8983, 16927, 38, 7, 13, 18, 18, 255, 5706, 13, 7, 6899, 16927, 38, 7, 13, 18, 18, 255, 60, 800, 3726, 3726, 13, 18, 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 can I override a table width property in CSS === I have the following style in an external CSS file called first.css table { width: 100%; } This makes the tables fill their container. If there are only two small columns they appear too far from each other. To force the columns to appear nearer I have added this style table { width: 50%; } to a new file called second.css and linked it into the html file. Is there any way to override the width property in first.css without the need to specify a width in second.css? I would like the html behave as if there was never been a width property, but I do not want to modify first.css
0
[ 2, 184, 92, 31, 84, 11891, 21, 859, 9456, 1354, 19, 272, 18, 18, 800, 3726, 3726, 31, 57, 14, 249, 1034, 19, 40, 4886, 272, 18, 18, 3893, 227, 64, 9, 6824, 18, 859, 13, 1, 9456, 45, 12849, 73, 13, 1, 48, 1364, 14, 7484, 35...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
.NET Firebug like UI assistance === I am tasked with a project whereby I need to create a scaled down version of a Firebug like UI where the user can load an HTML page, and as they hoover the mouse over the elements they'll be highlighted. The app will allow the users to select a table to be screen-scraped....haven't got to that part as yet. Any advice? Thanks
0
[ 2, 13, 9, 2328, 535, 16254, 101, 13, 5661, 4067, 800, 3726, 3726, 31, 589, 14605, 29, 21, 669, 15630, 31, 376, 20, 1600, 21, 22960, 125, 615, 16, 21, 535, 16254, 101, 13, 5661, 113, 14, 4155, 92, 6305, 40, 13, 15895, 2478, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Detecting when a div's height changes using jQuery === I've got a div that contains some content that's being added and removed dynamically, so its height is changing often. I also have a div that is absolutely positioned directly underneath with javascript, so unless I can detect when the height of the div changes, I can't reposition the div below it. So, how can I detect when the height of that div changes? I assume there's some jQuery event I need to use, but I'm not sure which one to hook into. Thanks.
0
[ 2, 9092, 68, 76, 21, 13, 12916, 22, 18, 2947, 1693, 568, 487, 8190, 93, 800, 3726, 3726, 31, 22, 195, 330, 21, 13, 12916, 30, 1588, 109, 2331, 30, 22, 18, 142, 905, 17, 1974, 7782, 1326, 15, 86, 82, 2947, 25, 4226, 478, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 often do you worry about how many if cases will need to be processed? === If you have the following: $var = 3; // we'll say it's set to 3 for this example if ($var == 4) { // do something } else if ($var == 5) { // do something } else if ($var == 2) { // do something } else if ($var == 3) { // do something } else { // do something } If say 80% of the time `$var` is 3, do you worry about the fact that it's going through 4 if cases before finding the true case? I'm thinking on a small site it's not a big deal, but what about when that if statement is going to run 1000s of times a second? I'm working in PHP, but I'm thinking the language doesn't matter.
0
[ 2, 184, 478, 107, 42, 3189, 88, 184, 151, 100, 1871, 129, 376, 20, 44, 16697, 60, 800, 3726, 3726, 100, 42, 57, 14, 249, 45, 5579, 3311, 800, 203, 73, 12894, 95, 22, 211, 395, 32, 22, 18, 309, 20, 203, 26, 48, 823, 100, 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...
How do you specify that an exception should be expected in Boost.Test? === I have a Boost unit test case which causes the object under test to throw an exception (that's the test, to cause an exception). How do I specify in the test to expect that particular exception. I can specify that the test should have a certain number of failures by using BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES but that seems rather unspecific. I want to be able to say at a specific point in the test that an exception should be thrown and that it should not be counted as a failure.
0
[ 2, 184, 107, 42, 19077, 30, 40, 5391, 378, 44, 1727, 19, 10419, 9, 10543, 60, 800, 3726, 3726, 31, 57, 21, 10419, 1237, 1289, 610, 56, 4047, 14, 3095, 131, 1289, 20, 3814, 40, 5391, 13, 5, 887, 22, 18, 14, 1289, 15, 20, 1679, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Anyone have experience with LLVM? === Does anyone have experience with [**LLVM**][1], [**llvm-gcc**][2], or [**Clang**][3]? The whole idea behind llvm seems very intriguing to me and I'm interested in seeing how it performs. I just don't want to dump a whole lot of time into trying the tools out if the tools are not ready for production. If you have experience with the tools, what do you think of them? What major limitations have you encountered? What are the greatest benefits? Many thanks! [1]: http://llvm.org/ [2]: http://llvm.org/docs/CommandGuide/html/llvmgcc.html [3]: http://clang.llvm.org/
0
[ 2, 1276, 57, 1496, 29, 13, 211, 20147, 60, 800, 3726, 3726, 630, 1276, 57, 1496, 29, 636, 1409, 211, 20147, 1409, 500, 2558, 165, 500, 15, 636, 1409, 211, 20147, 8, 263, 3384, 1409, 500, 2558, 135, 500, 15, 54, 636, 1409, 150, 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...
Is their a easiler way to track scope change in ExtremePlanner? === I am about to join a new software team midway through a project. They are using ExtremePlanner to track their progress. While they tracking tasks completed, they are not tracking how the estimated size of the project is changing over time. In the short time I have been monitoring the project this estimate has changed faster than the completion rate of the tasks. My gut feeling says that this is not just a blip but a problem that has been consistent throughout the project lifetime. But how do I prove or disprove this? I have not found the ExtremePlanner metrics useful for this. I have been exporting the data to MS Excel but the exported task and story info is missing important data like the creation date. Working around this is a bit of work. Is there a better way of doing this? Alternately am I making too much of this? It has been argued by some of my prospective team mates that since no new features have been added that the scope has not changed and it is not a problem. However I argue that since new work within the features is continually being found the scope is changing and that this needs to be taken in to account when estimating the release date.
0
[ 2, 25, 66, 21, 13, 62, 8198, 1252, 161, 20, 792, 9914, 753, 19, 4750, 9863, 1031, 60, 800, 3726, 3726, 31, 589, 88, 20, 1865, 21, 78, 2306, 173, 13486, 120, 21, 669, 9, 59, 50, 568, 4750, 9863, 1031, 20, 792, 66, 3455, 9, 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...
How to determine if a JNI (jogl) is available at runtime? === I'm working on [a source-code visualization project][1] that uses the Processing core library. The processing library has the option to use the jogl OpenGL library to render graphics which really improves performance. However, the JNI files that jogl uses aren't necessarily available at runtime, depending on who is using the project and on what platform. Currently we just have the user specify if they want to use OpenGL, but it would obviously be much nicer if we could use OpenGL by default and only fall back to software rendering when it's not available. The Processing libraries don't seem to make this easy, you're only supposed to specify a renderer once, and changing renderers gives… novel behavior. Any idea how to figure out if the necessary JNIs for jogl are available and working at runtime? [1]: http://github.com/rictic/code_swarm/tree/master/
0
[ 2, 184, 20, 3746, 100, 21, 487, 889, 13, 5, 1636, 8430, 6, 25, 904, 35, 485, 891, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 636, 58, 1267, 8, 9375, 28873, 669, 500, 2558, 165, 500, 30, 2027, 14, 5511, 2884, 1248, 9, 14, 5511...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 manage documents for many tasks/projects === I'm probably asking for the world, but is there any Windows-based software for easily managing lots of tasks/projects and all the associated documents (spreadsheets, Word documents, other files) that can be quickly navigated/searched. I deal with probably 10-20 active projects and tasks, some lasting only a day or so, some lasting weeks, and some that go for months. I like to keep everything about any project in a single folder, but it seems like I spend forever navigating folder trees when saving a spreadsheet, SQL script, or if I want to drag a website shortcut to a folder so I can find it when I need it. I've tried various folder organizations (i.e. a top level project directory, then broken down by department or person or application), but no matter what I try, it's still too time consuming to find what I'm looking for. The closest to what I'm looking for is like Lotus had in their Agenda program back in the DOS days, where you could organize and view data multiple ways, I'd like to be able to do the same thing with a nice fast Windows app that would fully integrate with Explorer so it would know what projects I'm actively working on when asking me where to save something, and maybe even do some minimal project management so as I mark things complete, their directories would no longer appear, or if something is marked as high priority, it would show at the top or be color coded.
0
[ 2, 184, 20, 4705, 4374, 26, 151, 8674, 118, 21011, 18, 800, 3726, 3726, 31, 22, 79, 910, 3379, 26, 14, 126, 15, 47, 25, 80, 186, 1936, 8, 1281, 2306, 26, 2351, 5616, 7503, 16, 8674, 118, 21011, 18, 17, 65, 14, 1598, 4374, 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...
F# defining and using a namespace in the same project === This will hopefully be an easy one. I have an F# project (latest F# CTP) with two files (Program.fs, Stack.fs). In Stack.fs I have a simple namespace and type definition Stack.fs <pre><code> namespace Col type Stack= ... </code></pre> Now I try to include the namespace in Program.fs by declaring <pre><code> open Col </code></pre> This doesn't work and gives me the error "The namespace or module Col is not defined." Yet it's defined within the same project. I've got to be missing something obvious
0
[ 2, 398, 5910, 14684, 17, 568, 21, 204, 5582, 19, 14, 205, 669, 800, 3726, 3726, 48, 129, 13416, 44, 40, 2010, 53, 9, 31, 57, 40, 398, 5910, 669, 13, 5, 6554, 384, 398, 5910, 272, 13726, 6, 29, 81, 6488, 13, 5, 19746, 9, 1175...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Table Creation DDL from Microsoft Access === Is there any easy way to retrieve table creation DDL from Microsoft Access (2007) or do I have to code it myself using VBA to read the table structure? I have about 30 tables that we are porting to Oracle and it would make life easier if we could create the tables from the Access definitions.
0
[ 2, 859, 2502, 13, 43, 8643, 37, 7099, 1381, 800, 3726, 3726, 25, 80, 186, 2010, 161, 20, 11917, 859, 2502, 13, 43, 8643, 37, 7099, 1381, 13, 5, 2727, 6, 54, 107, 31, 57, 20, 1797, 32, 992, 568, 566, 969, 20, 1302, 14, 859, 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...
Using Linux, how to specify which ethernet interface data is transmitted on === I'm working on a Linux based server system in which there are two network interfaces, both on the same subnet (for now, lets just say they are 172.17.32.10 & 172.17.32.11). When I send data to a host on the network, I would like to specify which interface on my server the data is transmitted on. I need to be able to switch from one interface to the other (or maybe even transmit on both) in software (static routing rules won't work for this application). I found a related question in StackOverflow that suggested using the netlink library to modify routes on the fly. This intuitively seems like it should work, but I was wondering if there were any other options to accomplish this same result.
0
[ 2, 568, 13024, 15, 184, 20, 19077, 56, 27820, 6573, 1054, 25, 13377, 27, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 13024, 432, 8128, 329, 19, 56, 80, 50, 81, 982, 6573, 18, 15, 156, 27, 14, 205, 972, 2328, 13, 5, 1106, 130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Calling .NET COM web service wrapper from Excel === I'm trying to call a web service from Excel 2003 module. The way i've implemented it is creating a .NET COM library with all the classes/methods i need to be exposed. When i try to call a method that queries a web service from Excel the execution just stops on that line without any error. May be it has to do with references? I'm using Microsoft.Web.Services2.dll and also .config file. Which directory will be the current one (from the wrapper's perspective) when calling the COM? Thanks!
0
[ 2, 2555, 13, 9, 2328, 13, 960, 2741, 365, 28051, 37, 20700, 800, 3726, 3726, 31, 22, 79, 749, 20, 645, 21, 2741, 365, 37, 20700, 973, 12613, 9, 14, 161, 31, 22, 195, 6807, 32, 25, 2936, 21, 13, 9, 2328, 13, 960, 1248, 29, 65...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Error when running XNA code from another computer === I have develop an XNA game on computer 1. When I send it to computer two (and I have everything to be able to run XNA Code). When the program execute game.run, I get an InvalidOperationException. I didn't tried to run code from computer two on computer one. But I know that both machine can run the code I've wrote on them. Do you have any idea ?
0
[ 2, 7019, 76, 946, 993, 325, 1797, 37, 226, 1428, 800, 3726, 3726, 31, 57, 2803, 40, 993, 325, 250, 27, 1428, 137, 9, 76, 31, 2660, 32, 20, 1428, 81, 13, 5, 290, 31, 57, 796, 20, 44, 777, 20, 485, 993, 325, 1797, 6, 9, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Div 100% height works on Firefox but not in IE. What to do? === I have a container div that holds two internal divs; both should take 100% width and 100% height within the container. I set both internal divs to 100% height. That works fine in Firefox, however in IE the divs do not stretch to 100% height but only the height of the text inside them. The following is a simplified version of my style sheet. #container { height: auto; width: 100%; } #container #mainContentsWrapper { float: left; height: 100%; width: 70%; margin: 0; padding: 0; } #container #sidebarWrapper { float: right; height: 100%; width: 29.7%; margin: 0; padding: 0; } Is there something I am doing wrong? Or any Firefox/IE quirks I am missing out?
0
[ 2, 13, 12916, 12849, 2947, 693, 27, 535, 18219, 47, 52, 19, 13, 660, 9, 98, 20, 107, 60, 800, 3726, 3726, 31, 57, 21, 12147, 13, 12916, 30, 2763, 81, 3117, 13, 12916, 18, 73, 156, 378, 247, 12849, 9456, 17, 12849, 2947, 363, 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...
Haskell FFI / C MPFR library wrapper woes === In order to create an arbitrary precision floating point / drop in replacement for Double, I'm trying to wrap <a href="http://www.mpfr.org/">MPFR</a> using the FFI but despite all my efforts the simplest bit of code doesn't work. It compiles, it runs, but it crashes mockingly after pretending to work for a while. A simple C version of the code happily prints the number "1" to (640 decimal places) a total of 10,000 times. The Haskell version, when asked to do the same, silently corrupts (?) the data after only 289 print outs of "1.0000...0000" and after 385 print outs, it causes an assertion failure and bombs. I'm at a loss for how to proceed in debugging this since it "should work". The code can be perused at <http://hpaste.org/10923> and downloaded at <http://www.updike.org/mpfr-broken.tar.gz> I'm using GHC 6.83 on FreeBSD 6 and GHC 6.8.2 on Mac OS X. Note you will need MPFR (tested with 2.3.2) installed with the correct paths (change the Makefile) for libs and header files (along with those from GMP) to successfully compile this. <h2>Questions</h2> * Why does the C version work, but the Haskell version flake out? What else am I missing when approaching the FFI? I tried StablePtrs and had the exact same results. * Can someone else verify if this is a Mac/BSD only problem by compiling and running my code? (Does the C code "works" work? Does the Haskell code "noworks" work?) Can anyone on Linux and Windows attempt to compile/run and see if you get the same results? C code: (works.c) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gmp.h> #include <mpfr.h> #include "mpfr_ffi.c" int main() { int i; mpfr_ptr one; mpf_set_default_prec_decimal(640); one = mpf_set_signed_int(1); for (i = 0; i < 10000; i++) { printf("%d\n", i); mpf_show(one); } } Haskell code: (Main.hs --- doesn't work) module Main where import Foreign.Ptr ( Ptr, FunPtr ) import Foreign.C.Types ( CInt, CLong, CULong, CDouble ) import Foreign.StablePtr ( StablePtr ) data MPFR = MPFR foreign import ccall "mpf_set_default_prec_decimal" c_set_default_prec_decimal :: CInt -> IO () setPrecisionDecimal :: Integer -> IO () setPrecisionDecimal decimal_digits = do c_set_default_prec_decimal (fromInteger decimal_digits) foreign import ccall "mpf_show" c_show :: Ptr MPFR -> IO () foreign import ccall "mpf_set_signed_int" c_set_signed_int :: CLong -> IO (Ptr MPFR) showNums k n = do print n c_show k main = do setPrecisionDecimal 640 one <- c_set_signed_int (fromInteger 1) mapM_ (showNums one) [1..10000]
0
[ 2, 63, 16507, 398, 1707, 13, 118, 272, 4628, 6177, 1248, 28051, 4808, 160, 800, 3726, 3726, 19, 389, 20, 1600, 40, 17237, 13133, 8319, 454, 13, 118, 2804, 19, 4610, 26, 1494, 15, 31, 22, 79, 749, 20, 8118, 13, 1, 58, 746, 14057,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 databases work internally? === I've been working with databases for the last few years and I'd like to think that I've gotten fairly competent with using them. However I was reading recently about Joel's <a href="http://www.joelonsoftware.com/articles/LeakyAbstractions.html"> Law of Leaky Abstractions</a> and I realised that even though I can write a query to get pretty much anything I want out of a database, I have no idea how the database actually interprets the query. Does anyone know of any good articles or books that explain how databases work internally? Some specific things I'm interested in are: <ul> <li>What does a database actually do to find out what matches a select statement?</li> <li>How does a database interpret a join differently to a query with several "where key1 = key2" statements?</li> <li>How does the database store all its memory?</li> <li>How are indexes stored?</li> </ul>
0
[ 2, 184, 107, 6018, 18, 170, 17739, 60, 800, 3726, 3726, 31, 22, 195, 74, 638, 29, 6018, 18, 26, 14, 236, 310, 122, 17, 31, 22, 43, 101, 20, 277, 30, 31, 22, 195, 4094, 6647, 19895, 29, 568, 105, 9, 207, 31, 23, 1876, 1989, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2D animation library/tech for "iPhone" style animation on WIN32? === All, I have built a nifty demo application that displays data about our internal systems as a full-screen "billboard" style display. You could think of this as something like an application displaying the national deficit - rapidly increasing numbers, animating very quickly, all day. The problem is that the demo works really well and the client would like me to build an industrial strength version! I'd like to do this in C++ but it could be Java or *maybe* C# (though I'd prefer not to use C#, as I'm not so strong in that env). I'm toying with SDL or Allegro, but I have no experience in either, so I'm open to the best (and ideally easiest) toolkit out there. When I say "iPhone"-style, I mean simple but elegant transitions between panels. The iPhone makes exellent use of slides, fades and blends. My app doesn't need to do any 3D style animations. In terms of graphics, I really only need simple things: 90% text, some images, and simple primitives like lines, rectangles and gradient fills. Of course, I could implement this in "plain old" DirectDraw or OpenGL, but I really don't want to think about writing timer classes and choosing timing methods for animation - some toolkit out there should be just right for this. Thanks for any help! RF
0
[ 2, 246, 172, 43, 6236, 1248, 118, 6524, 26, 13, 7, 49, 7709, 7, 1034, 6236, 27, 628, 3125, 60, 800, 3726, 3726, 65, 15, 31, 57, 392, 21, 1781, 3072, 93, 8376, 3010, 30, 9412, 1054, 88, 318, 3117, 1242, 28, 21, 503, 8, 7187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Accessing grouped sets of objects for a ListView === I need to retrieve a set of Widgets from my data access layer, grouped by widget.Manufacturer, to display in a set of nested ASP.NET ListViews. The problem is that (as far as I can tell) the nested ListView approach requires me to shape the data before using it, and I can't figure out the best approach to take. The best I've been able to come up with so far is to put a LINQ query in my data access layer like so: var result = from widget in GetAllWidgets(int widgetTypeID) group widget by widget.Manufacturer into groupedWidgets let widgets = from widgetGroup in groupedWidgets select widgetGroup select new { Manufacturer = groupedWidgets.Key, Widgets = widgets }; Of course, anonymous types can't be passed around, so that doesn't work. Defining a custom class to enclose data seems like the wrong way to go. Is there some way I can perform the grouping on the ASP.NET side of things? I'm using ObjectDataSources to access the DAL.
0
[ 2, 1381, 68, 19511, 3415, 16, 3916, 26, 21, 968, 4725, 800, 3726, 3726, 31, 376, 20, 11917, 21, 309, 16, 4807, 43, 3060, 18, 37, 51, 1054, 1381, 5385, 15, 19511, 34, 4807, 43, 3060, 9, 177, 291, 16839, 911, 106, 15, 20, 3042, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Executing code stored as a list === After understanding (quote), I'm curious as to how one might cause the statement to execute. My first thought was (defvar x '(+ 2 21)) `(,@x) but that just evaluates to `(+ 2 21)`, or the contents of `x`. How would one run code that was placed in a list?
0
[ 2, 25836, 1797, 8214, 28, 21, 968, 800, 3726, 3726, 75, 3260, 13, 5, 8970, 591, 6, 15, 31, 22, 79, 7686, 28, 20, 184, 53, 530, 1679, 14, 3331, 20, 15644, 9, 51, 64, 289, 23, 13, 5, 13862, 3311, 993, 13, 22, 5, 2430, 172, 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...
Implementation of ISupportErrorInfo - what does it mean? === What does the `ISupportErrorInfo` interface mean? I'm at a bit of a loss to understand it. From MSDN: > This interface ensures that error > information can be propagated up the > call chain correctly. Automation > objects that use the error handling > interfaces must implement > ISupportErrorInfo. > > This method indicates whether or not > an interface supports the IErrorInfo > interface. HRESULT InterfaceSupportsErrorInfo( REFIID riid ); What does it mean to return S\_OK in `InterfaceSupportsErrorInfo`? Should you return S\_OK for all interfaces? Just some?
0
[ 2, 6123, 16, 31, 24168, 29992, 108, 4120, 13, 8, 98, 630, 32, 884, 60, 800, 3726, 3726, 98, 630, 14, 13, 1, 49, 24168, 29992, 108, 4120, 1, 6573, 884, 60, 31, 22, 79, 35, 21, 1142, 16, 21, 1526, 20, 1369, 32, 9, 37, 4235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Librarys for SVN Access === Are there any decent PHP libraries available for accessing SVN repositories? Right now I just have some scripts executing commands to the command line and parsing the feedback, I'd love to find something less dependent on the command line and more tightly integrated. Any ideas?
0
[ 2, 13, 26120, 1248, 18, 26, 13, 18, 16578, 1381, 800, 3726, 3726, 50, 80, 186, 12238, 13, 26120, 8649, 904, 26, 1381, 68, 13, 18, 16578, 302, 14882, 262, 2829, 60, 193, 130, 31, 114, 57, 109, 17505, 25836, 14294, 20, 14, 1202, 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...
Creating a winforms app that allows drag and dropping of custom 'widgets' === I want to create a winforms application, this application will be similiar to the vs.net winforms designer (in certain aspects). Basically it is going to be a blank page, where the user can drag and drop a bunch of 'widget's onto the screen. The widgets are basically custom images that I will create, that the user can resize, and it has some text on it by default which the user can double click on it to change the text. Is this doable in winforms? If yes, what are the key aspects that I have to learn?
0
[ 2, 2936, 21, 628, 4190, 18, 4865, 30, 2965, 5501, 17, 6780, 16, 5816, 13, 22, 3976, 43, 3060, 18, 22, 800, 3726, 3726, 31, 259, 20, 1600, 21, 628, 4190, 18, 3010, 15, 48, 3010, 129, 44, 4861, 12765, 139, 20, 14, 4611, 9, 2328,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Oracle Cursor Issue === Anyone have any idea how to do the following? declare cursor open cursor fetch cursor << Start reading the cursor in a LOOP >> Lets say the cursor have 10 records. Read until 5th record then go to the 6th record and do some checking. Now, is it possible to go back to 5th record from 6th record ?
0
[ 2, 15759, 29588, 1513, 800, 3726, 3726, 1276, 57, 186, 882, 184, 20, 107, 14, 249, 60, 10123, 29588, 368, 29588, 18312, 29588, 13, 1, 799, 1876, 14, 29588, 19, 21, 5293, 13, 1, 6884, 395, 14, 29588, 57, 332, 742, 9, 1302, 163, 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...
Add (external) relationship (tagging) to existing Hibernate entities === I need to add a new many-to-many relationship to an existing Hibernate entity. I do not want to touch the original Hibernate entity bean or its configuration. What I am adding is a "tagging" feature that can be viewed as an external contribution and not part of the entity's data itself. I want to have a simple join table with only two columns, the entity primary key, and the tag id. Can I use Hibernate to manage this table without introducting a new (artificial) entity type that contains a single tag mapping? Or am I misguided and should actually want to have this "relationship-entity", so that I can add attributes (such as timestamps) later?
0
[ 2, 3547, 13, 5, 1706, 8766, 192, 6, 1429, 13, 5, 8628, 2762, 6, 20, 3149, 4148, 2102, 8820, 12549, 800, 3726, 3726, 31, 376, 20, 3547, 21, 78, 151, 8, 262, 8, 14842, 1429, 20, 40, 3149, 4148, 2102, 8820, 9252, 9, 31, 107, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
hashing sensitive data === I need to hash the names and logins of all the users in a UAT database we have. (because of the data protection act) However, there is a catch. The testers still need to be able to login using the hashed login names so if a user login is "Jesse.J.James" then the hash should be something like Ypois.X.Qasdf i.e. approximately the same length, with the dots in the same place so MD5, sha1 etc would not be suitable as they would create very l;ong strings and also add there own special characters such as + and = which are not allowed . So I'm looking for some suggestions as to how to achieve this I guess I need to rollmy own hashing algorith anyone done anything similar? I am using c# but I guess that is not so important to the algorithm thanks alot i.e. it has left the
0
[ 2, 19170, 68, 7830, 1054, 800, 3726, 3726, 31, 376, 20, 19170, 14, 1817, 17, 2205, 17040, 16, 65, 14, 3878, 19, 21, 287, 721, 6018, 95, 57, 9, 13, 5, 4451, 16, 14, 1054, 2057, 601, 6, 207, 15, 80, 25, 21, 2949, 9, 14, 1289, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Detecting Back Button/Hash Change in URL === I just set up my new homepage at [http://ritter.vg](http://ritter.vg). I'm using jQuery, but very minimally. It loads all the pages using AJAX - I have it set up to allow bookmarking by detecting the hash in the URL. > //general functions > function getUrl(u) { > return u + '.html'; > } > function loadURL(u) { > $.get(getUrl(u), function(r){ > $('#main').html(r); > } > ); > } > //allows bookmarking > var hash = new String(document.location).indexOf("#"); > if(hash > 0) > { > page = new String(document.location).substring(hash + 1); > if(page.length > 1) > loadURL(page); > else > loadURL('news'); > } > else > loadURL('news'); But I can't get the back and forward buttons to work. Is there a way to detect when the back button has been pressed (or detect when the hash changes) without using a setInterval loop? When I tried those with .2 and 1 second timeouts, it pegged my CPU.
0
[ 2, 9092, 68, 97, 5167, 118, 25436, 753, 19, 287, 6362, 800, 3726, 3726, 31, 114, 309, 71, 51, 78, 213, 6486, 35, 636, 21127, 6903, 21039, 106, 9, 22955, 500, 5, 21127, 6903, 21039, 106, 9, 22955, 6, 9, 31, 22, 79, 568, 487, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Lighting for your desk === What type of light do you prefer to be working in? How do you have your light source(s) situated? Wattage? Any particular lamp recommendations? Is there any sort of lighting environment that you hate?
2
[ 2, 7134, 26, 154, 2911, 800, 3726, 3726, 98, 1001, 16, 471, 107, 42, 6369, 20, 44, 638, 19, 60, 184, 107, 42, 57, 154, 471, 1267, 5, 18, 6, 2692, 60, 13795, 1303, 60, 186, 1498, 6792, 12121, 60, 25, 80, 186, 2058, 16, 7134, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Converting mysql TIME from 24 HR to AM/PM format === I want to display the TIME field from my mysql table on my website, but rather than showing 21:00:00 etc I want to show 8:00 PM. I need a function/code to do this or even any pointers in the right direction. Will mark the first reply with some code as the correct reply.
0
[ 2, 19583, 51, 18, 22402, 85, 37, 937, 13, 3112, 20, 589, 118, 5576, 2595, 800, 3726, 3726, 31, 259, 20, 3042, 14, 85, 575, 37, 51, 51, 18, 22402, 859, 27, 51, 2271, 15, 47, 864, 119, 3187, 852, 45, 2032, 45, 2032, 2722, 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...
Apache: Multiple log files? === What are the access.log.* files?
0
[ 2, 17140, 45, 1886, 6738, 6488, 60, 800, 3726, 3726, 98, 50, 14, 1381, 9, 5567, 9, 2483, 6488, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do you make a WPF slider snap only to discrete integer positions? === The title says it all. All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of old. That is, I want a slider that goes from X to Y but only allows the user to move it in discrete integer positions. How does one do this in WPF since the Value property on the Slider is double?
0
[ 2, 184, 107, 42, 233, 21, 619, 7721, 3295, 106, 6877, 104, 20, 18563, 13820, 3062, 60, 800, 3726, 3726, 14, 581, 898, 32, 65, 9, 65, 266, 478, 31, 259, 21, 619, 7721, 3295, 106, 30, 14149, 18, 101, 14, 329, 9, 27508, 18, 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...
Why log4j cannot generate backup files? === I'm running some java processes on Windows 2003 server R2 I'm using Apache log4j-1.2.8. All my processes called via one jar file with different parameter example java -jar process.jar one java -jar process.jar two java -jar process.jar three And I config log4j.properties follow #=============================== # Declare Variables #=============================== logpath=${user.dir}/log/ simple_pattern=%d{yyyy-MM-dd HH:mm:ss.SSS}%-5x - %m%n backup_pattern='.'yyyy-MM-dd #=============================== # PROCESS & STANDARD OUTPUT #=============================== log4j.logger.aeon.los.process.Process=NULL,proclog,procstdout log4j.appender.proclog=org.apache.log4j.DailyRollingFileAppender log4j.appender.proclog.File=${logpath}process.log log4j.appender.proclog.DatePattern=${backup_pattern} log4j.appender.proclog.layout=org.apache.log4j.PatternLayout log4j.appender.proclog.layout.conversionPattern=${simple_pattern} log4j.appender.procstdout=org.apache.log4j.ConsoleAppender log4j.appender.procstdout.layout=org.apache.log4j.PatternLayout log4j.appender.procstdout.layout.ConversionPattern=${simple_pattern} #=============================== # ONE #=============================== log4j.logger.aeon.los.process.log.One=NULL,one log4j.appender.one=org.apache.log4j.DailyRollingFileAppender log4j.appender.one.File=${logpath}one.log log4j.appender.one.DatePattern=${backup_pattern} log4j.appender.one.layout=org.apache.log4j.PatternLayout log4j.appender.one.layout.conversionPattern=${simple_pattern} #=============================== # TWO #=============================== log4j.logger.aeon.los.process.log.Two=NULL,two log4j.appender.two=org.apache.log4j.DailyRollingFileAppender log4j.appender.two.File=${logpath}two.log log4j.appender.two.DatePattern=${backup_pattern} log4j.appender.two.layout=org.apache.log4j.PatternLayout log4j.appender.two.layout.conversionPattern=${simple_pattern} #=============================== # THREE #=============================== log4j.logger.aeon.los.process.log.Three=NULL,three log4j.appender.three=org.apache.log4j.DailyRollingFileAppender log4j.appender.three.File=${logpath}three.log log4j.appender.three.DatePattern=${backup_pattern} log4j.appender.three.layout=org.apache.log4j.PatternLayout log4j.appender.three.layout.conversionPattern=${simple_pattern} first time I use process appender is single logger and now i separate it to ONE, TWO and THREE logger. my processes executed by windows schedule every 1 minute. **So. I got Big problem I don't know why log4j cannot generate backup files. but when I execute manual by command line It's Ok.**
0
[ 2, 483, 6738, 300, 728, 1967, 7920, 10119, 6488, 60, 800, 3726, 3726, 31, 22, 79, 946, 109, 8247, 5102, 27, 1936, 973, 8128, 761, 135, 31, 22, 79, 568, 17140, 6738, 300, 728, 8, 165, 9, 135, 9, 457, 9, 65, 51, 5102, 227, 1197,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Ghostdoc-like plugin for IntelliJ IDEA === I've become lazy in my old age. For my C# work I've become quite reliant on Roland Weigelt's excellent [GhostDoc][1] plugin for Visual Studio. Is anyone aware of a similar plugin for Java work in IntelliJ IDEA? [1]: http://www.roland-weigelt.de/ghostdoc/
0
[ 2, 3995, 13799, 8, 1403, 10922, 108, 26, 19, 4213, 9999, 882, 800, 3726, 3726, 31, 22, 195, 533, 16792, 19, 51, 315, 348, 9, 26, 51, 272, 5910, 170, 31, 22, 195, 533, 1450, 13, 29501, 27, 7744, 7875, 5436, 38, 22, 18, 5977, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 anyone think of some good reasons *not* to use an Object-Oriented DBMS to back a website? === Say you're coding some kind of web application. Something where people can contribute content, e.g. a simple photo-sharing site. How many good reasons can you think of to *not* go with an object-oriented database (e.g. db4o)?
0
[ 2, 92, 1276, 277, 16, 109, 254, 2932, 1637, 1270, 2483, 20, 275, 40, 3095, 8, 6800, 13, 43, 13178, 18, 20, 97, 21, 2271, 60, 800, 3726, 3726, 395, 42, 22, 99, 13, 15458, 109, 825, 16, 2741, 3010, 9, 301, 113, 148, 92, 8606, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
NOT IN vs NOT EXISTS === Which of these queries is the fastest? NOT EXISTS: SELECT ProductID, ProductName FROM Northwind..Products p WHERE NOT EXISTS (SELECT 1 FROM Northwind..[Order Details] od WHERE p.ProductId = od.ProductId) Or NOT IN: SELECT ProductID, ProductName FROM Northwind..Products p WHERE p.ProductID NOT IN (SELECT ProductID FROM Northwind..[Order Details]) The query execution plan says they both do the same thing. If that is the case, which is the recommended form? This is based on the NorthWind database.
0
[ 2, 52, 19, 4611, 52, 5636, 800, 3726, 3726, 56, 16, 158, 9386, 2829, 25, 14, 7518, 60, 52, 5636, 45, 5407, 2374, 1340, 15, 2374, 7259, 37, 200, 7809, 9, 9, 14086, 18, 351, 113, 52, 5636, 13, 5, 18, 16964, 137, 37, 200, 7809, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 simple JavaScript slider? === I need to create a custom volume slider for a WMP object. The current slider is complicated to modify, and use, is there a simple way to generate a slider on an HTML page that can have it's value passed to a javascript function?
0
[ 2, 25, 80, 21, 1935, 8247, 8741, 3295, 106, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 5816, 2310, 3295, 106, 26, 21, 619, 2554, 3095, 9, 14, 866, 3295, 106, 25, 8343, 20, 17579, 15, 17, 275, 15, 25, 80, 21, 1935, 161, 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...
parameterised jsp:includes of stripes actions? === I've been trying to solve this, and have been getting stuck, so I thought I'd ask. Imagine two ActionBeans, A and B. `A.jsp` has this section in it: ... <jsp:include page="/B.action"> <jsp:param name="ponies" value="on"/> </jsp:include> <jsp:include page="/B.action"> <jsp:param name="ponies" value="off"/> </jsp:include> ... Take it as read that `B.jsp` does some terribly interesting processing depending on whether the "ponies" parameter is set to either on or off. The parameter string "ponies=on" _is_ visible when you debug into the request, but it's not what's getting bound to the B ActionBean. Instead what's getting bound are the parameters to the original A.action. Is there some way of getting the behaviour I want, or have I missed something fundamental?
0
[ 2, 18906, 2541, 487, 3401, 45, 22640, 18, 16, 15878, 3078, 60, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 8402, 48, 15, 17, 57, 74, 1017, 4549, 15, 86, 31, 289, 31, 22, 43, 1349, 9, 4382, 81, 1028, 863, 5950, 15, 21, 17, 334...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 anyone write really long, complex php apps, and if so, what is your problem domain? === It's hard for me to imagine a php script that is more than a few hundred lines of code. It seems that, for a non-persistent environment, web-based scripting is usually done is small chunks and used for the purpose of delivering a portion of a website to the end user. I'd like to know if people are developing any type of large, or persistent, or complex apps with php, and what is it exactly you are working on. I've only done small projects for small websites, so I don't know what can be accomplished on a larger scale. It would also be nice to know what libraries you are using, and what other technologies you are integrating with. Please enlighten me so I can start to dream of bigger things!
0
[ 2, 630, 1276, 2757, 510, 175, 15, 1502, 13, 26120, 4865, 18, 15, 17, 100, 86, 15, 98, 25, 154, 1448, 4603, 60, 800, 3726, 3726, 32, 22, 18, 552, 26, 55, 20, 4382, 21, 13, 26120, 3884, 30, 25, 91, 119, 21, 310, 1874, 1560, 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...
2.9999999999999999 >> .5? === <p>I heard that you could right-shift a number by .5 instead of using Math.floor(). I decided to check its limits to make sure that it was a suitable replacement, so I checked the following values and got the following results in Google Chrome:</p> <pre><code> 2.5 >> .5 == 2; 2.9999 >> .5 == 2; 2.999999999999999 >> .5 == 2; // 15 9s 2.9999999999999999 >> .5 == 3; // 16 9s </code></pre> <p>After some fiddling, I found out that the highest possible value of two which, when right-shifted by .5, would yield 2 is 2.9999999999999997779553950749686919152736663818359374999999¯ (with the 9 repeating) in Chrome and Firefox. The number is 2.9999999999999997779¯ in IE.</p> <p>My question is: what is the significance of the number .0000000000000007779553950749686919152736663818359374? It's a very strange number and it really piqued my curiosity.</p> <p>I've been trying to find an answer or at least some kind of pattern, but I think my problem lies in the fact that I really don't understand the bitwise operation. I understand the idea in principle, but shifting a bit sequence by .5 doesn't make any sense at all to me. Any help is appreciated.</p> <p>For the record, the weird digit sequence changes with 2^x. The highest possible values of the following numbers that still truncate properly:</p> <pre> for 0: 0.9999999999999999444888487687421729788184165954589843749¯ for 1: 1.9999999999999999888977697537484345957636833190917968749¯ for 2-3: x+.99999999999999977795539507496869191527366638183593749¯ for 4-7: x+.9999999999999995559107901499373838305473327636718749¯ for 8-15: x+.999999999999999111821580299874767661094665527343749¯ ...and so forth </pre>
0
[ 2, 172, 9, 3483, 3483, 23170, 23170, 23170, 23170, 13, 1, 13, 9, 264, 60, 800, 3726, 3726, 13, 1, 306, 1, 49, 752, 30, 42, 110, 193, 8, 14157, 21, 234, 34, 13, 9, 264, 700, 16, 568, 5057, 9, 15767, 5, 6, 9, 31, 868, 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...
Flash/Actionscript2 - Can't get comboBox "change" event to fire === I'm trying to use the combobox component for Flash. I can't get the change event to fire. My code is pretty much straight of of the adobe site (link below). The box gets populated but changing the value produces no trace output. What am I doing wrong? Thanks [http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00002149.html#3138459][1] myCombo.addItem("hi1", "hi5"); myCombo.addItem("h2", "hi6"); myCombo.addItem("hi3", "hi7"); myCombo.addItem("h4", "hi8"); var form = new Object(); form.change = function(eventObj){ trace("Value changed to " + eventObj.target.value); } myCombo.addEventListener("change", form); [1]: http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00002149.html#3138459
0
[ 2, 4433, 118, 8645, 8741, 135, 13, 8, 92, 22, 38, 164, 22621, 5309, 13, 7, 16229, 7, 807, 20, 535, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 14, 22621, 5309, 5912, 26, 4433, 9, 31, 92, 22, 38, 164, 14, 753, 807, 20, 535, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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# .NET 3.0/3.5 features in 2.0 using '08 === What are some of the new features that can be used in .NET 2.0 that are specific to C# 3.0/3.5 after upgrading to Visual Studio 2008? For instance, I know that I can use lambdas in .NET 2.0 after upgrading to '08.
0
[ 2, 272, 5910, 13, 9, 2328, 203, 9, 15928, 240, 9, 264, 967, 19, 172, 9, 387, 568, 13, 22, 3099, 800, 3726, 3726, 98, 50, 109, 16, 14, 78, 967, 30, 92, 44, 147, 19, 13, 9, 2328, 172, 9, 387, 30, 50, 1903, 20, 272, 5910, 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...
Election 2008 data files - how to know which candidate received the financial contribution? === I was trying to programmatically go through presidential campaign contributions to see which web 2.0 people contributed to which candidates. You can get the data file indiv08.zip on the site http://www.fec.gov/finance/disclosure/ftpdet.shtml#a2007_2008 I can parse out who contributed and how much they contributed, but I cannot figure out **who the contribution went to**. There seems to be some ID, but it does not match the candidate IDs in any other file I can find. If you can help with this, I think I could make a pretty nice page showing who contributed to which candidate.
0
[ 2, 776, 570, 1054, 6488, 13, 8, 184, 20, 143, 56, 2316, 420, 14, 1553, 5605, 60, 800, 3726, 3726, 31, 23, 749, 20, 625, 6732, 1326, 162, 120, 3389, 1150, 4816, 20, 196, 56, 2741, 172, 9, 387, 148, 3696, 20, 56, 4074, 9, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 lightweight IDE/Text Editor === So I just got my new Eee PC 1000H and it's obviously not a beast of a machine, but it gets the job done with most tasks. I'm looking for a lightweight IDE or text editor (read: lightweight doesn't mean lack of features, just that it's not a bloated piece of crap) The computer itself has a 1.6ghz Atom processor and 1GB of RAM. It's for school if that makes a difference. There aren't any requirements besides that, I'm just looking for some suggestions on software that could be useful for someone in my situation.
4
[ 2, 246, 13613, 13, 3448, 118, 11969, 1835, 800, 3726, 3726, 86, 31, 114, 330, 51, 78, 13, 62, 2851, 5168, 6150, 252, 17, 32, 22, 18, 4409, 52, 21, 5591, 16, 21, 1940, 15, 47, 32, 3049, 14, 1205, 677, 29, 127, 8674, 9, 31, 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...
mootools or javascript : what does $tmp stand for or what does it pertain too === im currently working on the Tips.js from mootools library and my code breaks on the line that has those el.$tmp and console says its undefined can anybody help me?
0
[ 2, 13, 8765, 20799, 18, 54, 8247, 8741, 13, 45, 98, 630, 5579, 38, 2554, 1261, 26, 54, 98, 630, 32, 416, 5851, 266, 800, 3726, 3726, 797, 871, 638, 27, 14, 11034, 9, 728, 18, 37, 13, 8765, 20799, 18, 1248, 17, 51, 1797, 7947, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 best way to only allow a PHP file to be included? === I want to make sure people can't type the name of a PHP script in the URL and run it. What's the best way of doing this? I could set a variable in the file that will be including this file, and then check that variable in the file being included, but is there an easier way?
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 104, 1655, 21, 13, 26120, 3893, 20, 44, 506, 60, 800, 3726, 3726, 31, 259, 20, 233, 562, 148, 92, 22, 38, 1001, 14, 204, 16, 21, 13, 26120, 3884, 19, 14, 287, 6362, 17, 485, 32, 9, 98, 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...
conditional logic based on type. === Given: interface I { } class B: I { } class C: I { } class A { public void Method(B arg) { } public void Method(C arg) { } public void Method(I arg) { // THIS is the method I want to simplify. if (I is B) { this.Method(arg as B); } else if (I is C) { this.Method(arg as C); } } } I know that there are better ways to design this type of interactions, but because of details which would take too long to explain this is not possible. Since this pattern will be duplicated MANY times, I would like to replace the conditional logic with a generic implementation which I could use just one line. I can't see a simple way to implement this generic method/class, but my instincts tell me it should be possible. Any help would be appreciated.
0
[ 2, 21206, 7085, 432, 27, 1001, 9, 800, 3726, 3726, 504, 45, 6573, 31, 13, 1, 13, 1, 718, 334, 45, 31, 13, 1, 13, 1, 718, 272, 45, 31, 13, 1, 13, 1, 718, 21, 13, 1, 317, 11364, 2109, 5, 220, 13, 10663, 6, 13, 1, 13, 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...
How do you stay focused and ship projects? === I find way too many projects to get involved in, way to many languages to play with (and way too many cool features within those languages), and way too many books to read... How do you guys stay focused and actually get anything done, rather than leaving a trail of partially complete "experiments?"
0
[ 2, 184, 107, 42, 1179, 2604, 17, 995, 2314, 60, 800, 3726, 3726, 31, 477, 161, 266, 151, 2314, 20, 164, 1013, 19, 15, 161, 20, 151, 2556, 20, 418, 29, 13, 5, 290, 161, 266, 151, 2700, 967, 363, 273, 2556, 6, 15, 17, 161, 266...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Difference Between ViewData and TestData? === I know what ViewData is and use it all the time, but in ASP.NET Preview 5 they introduced something new called TestData. I normally strongly type my ViewData, instead of using the dictionary of objects approach. So, when should I use TestData instead of ViewData? Are there any best practices for this?
0
[ 2, 2841, 128, 1418, 18768, 17, 1289, 18768, 60, 800, 3726, 3726, 31, 143, 98, 1418, 18768, 25, 17, 275, 32, 65, 14, 85, 15, 47, 19, 28, 306, 9, 2328, 16121, 331, 59, 1277, 301, 78, 227, 1289, 18768, 9, 31, 4147, 5020, 1001, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Allow Ampersand in mod_rewrite === I am trying to allow '&' in my mod_rewrite. at the moment i am using RewriteRule ^([-a-zA-Z0-9_'_-]+)$ I tried adding: RewriteRule ^([-a-zA-Z0-9_'_-_&]+)$ to allow ampersand, yet i know it is most likey wrong. can anyone direct me in the right direction for the correct regex layout.
0
[ 2, 1655, 589, 7490, 290, 19, 7226, 1, 99, 23716, 800, 3726, 3726, 31, 589, 749, 20, 1655, 13, 22, 1569, 22, 19, 51, 7226, 1, 99, 23716, 9, 35, 14, 688, 31, 589, 568, 27891, 16154, 13, 1, 5, 2558, 8, 58, 8, 1153, 8, 380, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Eliminating State on the Server Side - Best Practice? Pros / Cons === After seeing how easy client-side state can be accomplished on this [SO Post][1] and verifying that using local storage will work on all major modern browsers on this [W3schools site][2], I want to eliminate the Session Class in PHP...I want to eliminate sessions and keep this info on the client side. What are the pros and cons to doing this? Did I miss anything? This is a major refactoring so I wanted to cover my bases. Should I implement state on the client side? **Pros** - Less load to the server - Simpler Implementation ( note link above ) **Cons** - Must pass back state variables to server when needed [1]: http://stackoverflow.com/questions/10807822/can-javascript-maintain-any-state-after-a-reload [2]: http://www.w3schools.com/html5/html5_webstorage.asp
4
[ 2, 17653, 146, 27, 14, 8128, 270, 13, 8, 246, 1345, 60, 895, 18, 13, 118, 11608, 800, 3726, 3726, 75, 2078, 184, 2010, 6819, 8, 1416, 146, 92, 44, 8812, 27, 48, 636, 656, 678, 500, 2558, 165, 500, 17, 21012, 68, 30, 568, 375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Sinewave.js won't play several notes when the new frequency is set === I am having a problem trying to get sinewave.js-plugin to play several notes in succession. [Link to the sinewave.js Github page][1] Here is my code. scalePlayer = function(){ var command = arguments[0]; if (command == 'play'){ sinewave.setFrequency(261.63); // C4 sinewave.play(); }else if (command == 'pause'){ sinewave.pause(); }else if (command == 'cmajor'){ // C major scale var scale=[ "130.81", "146.83", "164.81", "174.61", "196.00", "220.00", "246.94", "261.63"]; s = scale.length; i=0; while (i<=s){ setTimeout("sinewave.setFrequency("+parseFloat(scale[i])+")", 1000); console.log(parseFloat(scale[i])); i++; } }else if (command == 'test'){ setTimeout("sinewave.setFrequency(300)", 1000); setTimeout("sinewave.setFrequency(500)", 1000); } } The "test" command only plays the first note of the two, and the one that actually goes through the scale frequencies plays nothing, but prints the correct tones from the array. What I am trying to achieve is that the "cmajor" command would play a scale, one note every 1 seconds. I feel like the setTimeout is causing problems, and I can't understand why the "test" command won't play two different notes. [1]: https://github.com/0xfe/experiments/tree/master/www/tone
0
[ 2, 13, 18, 1149, 10134, 9, 728, 18, 230, 22, 38, 418, 238, 2434, 76, 14, 78, 5328, 25, 309, 800, 3726, 3726, 31, 589, 452, 21, 1448, 749, 20, 164, 13, 18, 1149, 10134, 9, 728, 18, 8, 18527, 5831, 20, 418, 238, 2434, 19, 7676...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PagingScroller in ExtJs 4.1 MVC grid implementation not triggering ajax request === I am trying to figure out a basic implementation of infinite scrolling in a ExtJs 4.1.0 grid. I am working off this example http://ext4all.com/post/extjs-4-1-grid-infinite-scroll-in-mvc and at this point my code is practically identical to the example. When my page loads, the grid is filled with the first page of data as the first ajax request fires and works as expected. However, when I scroll down to the bottom of the grid, nothing happens... I am expecting to see an ajax request fire, grabbing additional data (as in the example). Any ideas? Here is my code: **HTML** <html> <head> <link rel="stylesheet" type="text/css" href="./extjs-4.1.0/resources/css/ext-all.css"> <link rel="stylesheet" type="text/css" href="./styles.css"> <script type="text/javascript" src="./extjs-4.1.0/ext-all-debug.js"></script> <script type="text/javascript" src="./test-scrolling.js"></script> </head> <body> <div id="page"> <header> <div class='wrap'> <h1>Test</h1> <div class='clear'></div> </div> </header> <div class="content"> <div class="wrap"> <div id="main"></div> </div> </div> </div> </body> </html> **Javascript** Ext.define('AP.model.Log', { extend: 'Ext.data.Model', fields: [ 'Id', 'ProcessId', 'IndexRequest', 'AssetIndexStart', 'AssetIndexEnd', 'StartDate', 'EndDate' ] }); Ext.define('AP.store.Log', { extend: 'Ext.data.Store' , model: 'AP.model.Log' , autoLoad: true , remoteSort: true , buffered: true , pageSize: 100 , proxy: { type: 'ajax' , url: 'http://localhost/...' , limitParam: 'limit' , reader: { type: 'json' , root: 'Log' , successProperty: 'Success' } } }); Ext.define('AP.view.Log', { extend: 'Ext.grid.Panel' , alias: 'widget.log' , title: 'Log' , store: 'Log' , initComponent: function () { this.columns = [ { header: 'Index Start', dataIndex: 'AssetIndexStart', flex: 1 }, { header: 'Index End', dataIndex: 'AssetIndexEnd' }, { header: 'Start Date', dataIndex: 'StartDate' }, { header: 'End Date', dataIndex: 'EndDate' } ]; this.callParent(arguments); } }); Ext.define('AP.controller.Log', { extend: 'Ext.app.Controller' , stores: ['Log'] , models: ['Log'] , views: ['Log'] , init: function () { } }); Ext.Loader.setConfig({ enabled: true }); Ext.application({ name: 'AP', appFolder: 'app', controllers: [ 'Log' ], launch: function () { Ext.widget('log', { title: 'Log', width: 600, height: 400, renderTo: 'main' }); } });
0
[ 2, 19006, 68, 3862, 8694, 106, 19, 1396, 38, 728, 18, 268, 9, 165, 307, 8990, 7354, 6123, 52, 7286, 68, 20624, 3772, 800, 3726, 3726, 31, 589, 749, 20, 1465, 70, 21, 2125, 6123, 16, 9698, 13, 28166, 19, 21, 1396, 38, 728, 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...
setInitialScale() don't work with phonegap 1.7 when device on Android2.3 and below === I delete this.appView.setInitialScale(0); in DroidGap.java and init WebView like below WebSettings ws = wv.getSettings(); ws.setJavaScriptEnabled(true); ws.setDomStorageEnabled(true); ws.setLightTouchEnabled(false); ws.setDatabaseEnabled(true); String databasePath = getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath(); ws.setDatabasePath(databasePath); ws.setSupportZoom(false); ws.setBuiltInZoomControls(false); wv.requestFocusFromTouch(); DisplayMetrics metric = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metric); int orient = getRequestedOrientation(); float width = 480.0f; float height = 320.0f; if(orient == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) { width = 320.0f; height = 480.0f; } width*=2;height*=2; final float scale = Math.min(metric.widthPixels / width, metric.heightPixels / height); int web_scale = 100; if(android.os.Build.PRODUCT.equals("blaze")) { web_scale = (int) (scale * 96); }else { web_scale = (int) (scale * 100); } wv.setInitialScale(web_scale); and in my web page the viewport is: <meta name="viewport" content="width = device-width,initial-scale=0.75,minimum-scale=0.1,maximum-scale=3.0,user-scalable=yes" /> it works on 4.0 device,but when run on 2.3 or below, the page seems larger than expected. thx in advance for any advise.
0
[ 2, 309, 27313, 5093, 5, 6, 221, 22, 38, 170, 29, 1132, 1136, 306, 137, 9, 465, 76, 3646, 27, 13005, 135, 9, 240, 17, 1021, 800, 3726, 3726, 31, 27448, 48, 9, 7753, 4725, 9, 3554, 27313, 5093, 5, 387, 6, 73, 19, 744, 6516, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 practice for setting up different environments with Amazon web service === We are restructuring our environments by removing some microsoft servers/instances/hardware and move into Amazon cloud web service (e.g. DynamoDB) I know the Amazon charges the service based on the usage of the service, it makes sense for production environment, but we have dev, systest, uat environments that need to move to cloud as well and we don't want the company paid money for the usage due to internal development or testing process. Is there any best practice that can avoid/reduce cost Thanks Ming
0
[ 2, 246, 1345, 26, 2697, 71, 421, 11246, 29, 8059, 2741, 365, 800, 3726, 3726, 95, 50, 20816, 318, 11246, 34, 9096, 109, 7099, 17595, 118, 108, 6114, 5052, 118, 6011, 5011, 17, 780, 77, 8059, 4005, 2741, 365, 13, 5, 62, 9, 263, 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...
Disable "zoom in" function for google maps === I list my users on the google maps based on their locations. But I dont want it zoom in to a degree where others can see on what street they live. Is there a way to disable "zoom in" feature in the following Google maps codes? Thanks! function initialize() { var data = <%=Data%>; var center = new google.maps.LatLng(48.404840395764175, 2.6845264434814453); var map = new google.maps.Map(document.getElementById('map'), { zoom: 2, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP }); var markers = []; for (var i = 0; i < data.users.length; i++) { var location = data.users[i]; var latLng = new google.maps.LatLng(location.latitude, location.longitude); var marker = new google.maps.Marker({ position: latLng }); markers.push(marker); } var markerCluster = new MarkerClusterer(map, markers); } google.maps.event.addDomListener(window, 'load', initialize);
0
[ 2, 1460, 579, 13, 7, 2500, 2636, 19, 7, 1990, 26, 8144, 6867, 800, 3726, 3726, 31, 968, 51, 3878, 27, 14, 8144, 6867, 432, 27, 66, 4095, 9, 47, 31, 1049, 259, 32, 19469, 19, 20, 21, 1168, 113, 654, 92, 196, 27, 98, 446, 59, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Strtotime without current time? === I'd like my user to be able to input values like: 4 hours 23 minutes etc. strtotime works great for converting these values into seconds, but it adds them to the current time. Is there a way of getting it to return the quantity of time entered in total, rather than from now? Or do I need to do something like this: $time = strtotime($value) - time(); And just for arguments sake, what would happen if the value of time changes between strtotime evaluating it and time evaluating it?
0
[ 2, 13, 26120, 13, 9729, 262, 891, 366, 866, 85, 60, 800, 3726, 3726, 31, 22, 43, 101, 51, 4155, 20, 44, 777, 20, 6367, 4070, 101, 45, 268, 974, 1137, 902, 2722, 9, 13, 9729, 262, 891, 693, 374, 26, 19583, 158, 4070, 77, 2582, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
onclick on a spinner? === Hy,i need to have an onclick on a spinner. This is my spinner: Spinner spinner = (Spinner) findViewById(R.id.spnTarghe); final String targhe[]=risposta.split("/"); ArrayAdapter<String> adapter = new ArrayAdapter<String>( this, android.R.layout.simple_spinner_item, targhe ); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(adapter); How can I do for use an onclicklistener that do this simple istruction: sTarga=targhe[position];
0
[ 2, 27, 150, 10129, 27, 21, 3310, 1031, 60, 800, 3726, 3726, 4085, 15, 49, 376, 20, 57, 40, 27, 150, 10129, 27, 21, 3310, 1031, 9, 48, 25, 51, 3310, 1031, 45, 3310, 1031, 3310, 1031, 800, 13, 5, 3401, 18005, 6, 477, 4725, 779, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 to ship software on time === Imagine you don't have the problem of feature creep, you have a motivated and stable team, clear defined problems to solve, AND you know the domain/language/tools related to your project. How do you *stick to a schedule* and accomplish that 1.0 milestone? What is your approach to an *iterative shipping*? I'd like recommendations specially for a small team, where there are few or almost none communication problems.
0
[ 2, 246, 5242, 20, 995, 2306, 27, 85, 800, 3726, 3726, 4382, 42, 221, 22, 38, 57, 14, 1448, 16, 1580, 14478, 15, 42, 57, 21, 14413, 17, 4521, 173, 15, 1207, 2811, 1716, 20, 8402, 15, 17, 42, 143, 14, 4603, 118, 7020, 118, 20799...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Getting color of a data series from a flot chart === After seeing the cool new "reputation" tab on the stackoverflow user page, I was inspired to play with the Flot charting library a little. I have a line chart that has several hundred series. Only a couple of these series will be visible at any given time. My data series are grouped into several "categories" and I assign the numeric color index based on that category. I'd like to be able to see what actual color was assigned by Flot to a particular color index value, for the ultimate purpose of creating a custom legend that relates the color to my "category" of data. How can I get these color values? I see that I can provide my own array for colors, but I am reluctant to do this, because I am not sure how many categories I will have until I load the data. I suppose I could just create an array that's just *way* too big, but that seems wasteful if it's possible to ask Flot what color each series is.
0
[ 2, 1017, 1665, 16, 21, 1054, 231, 37, 21, 9319, 38, 1795, 800, 3726, 3726, 75, 2078, 14, 2700, 78, 13, 7, 99, 4881, 857, 7, 6523, 27, 14, 7566, 2549, 9990, 4155, 2478, 15, 31, 23, 3054, 20, 418, 29, 14, 9319, 38, 22544, 1248, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Template Engine for ASP.NET MVC === I am exploring ASP.NET MVC and I wanted to add jQuery to make the site interactive. I used StringTemplate, ported to .Net, as my template engine to generate html and to send JSON. However, when I view the page, I could not see it. After debugging, I've realized that the $ is used by the StringTemplate to access property, etc and jQuery uses it too to manipulate the DOM. Gee, I've looked on other template engines and most of them uses the dollar sign :(. Any alternative template engine for ASP.Net MVC? I wanted to retain jQuery because MSFT announced that it will used in the Visual Studio (2008?) Thanks in Advance :)
0
[ 2, 246, 22894, 1406, 26, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 31, 589, 11748, 28, 306, 9, 2328, 307, 8990, 17, 31, 417, 20, 3547, 487, 8190, 93, 20, 233, 14, 689, 9194, 9, 31, 147, 3724, 9577, 6554, 15, 1295, 69, 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...
How do I connect to an .mdf (Microsoft SQL Server Database File) in a simple web project? === Specifically, in VS 2008, I want to connect to a data source that you can have by right-clicking on the automatically-generated App_Data folder (an .mdf "database"). Seems easy, and it is once you know how. I just figured out how to do this. I'll post my answer below, which will include the one thing no tutorial on MSDN included that happens to be essential.
0
[ 2, 184, 107, 31, 6379, 20, 40, 13, 9, 79, 8736, 13, 5, 22019, 12980, 4444, 255, 8128, 6018, 3893, 6, 19, 21, 1935, 2741, 669, 60, 800, 3726, 3726, 3524, 15, 19, 4611, 570, 15, 31, 259, 20, 6379, 20, 21, 1054, 1267, 30, 42, 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...
mysql_real_escape_string() leaving slashes in MySQL === I just moved to a new hosting company and now whenever a string gets escaped using: mysql_real_escape_string($str); the slashes remain in the database. This is the first time I've ever seen this happen so none of my scripts use stripslashes() anymore. This is on a CentOS 4.5 64bit running php 5.2.6 as fastcgi on a lighttpd 1.4 server. I've ensured that all magic_quotes options are off and the mysql client api is 5.0.51a. I have the same issue on all 6 of my webservers. Any help would be appreciated. Thanks.
0
[ 2, 51, 18, 22402, 1, 7467, 1, 62, 13109, 1, 11130, 5, 6, 1107, 14098, 160, 19, 51, 18, 22402, 800, 3726, 3726, 31, 114, 385, 20, 21, 78, 10637, 237, 17, 130, 6634, 21, 3724, 3049, 5409, 568, 45, 51, 18, 22402, 1, 7467, 1, 62...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Could Cause Intermittent Issues with Images Loading in Internet Explorer 6? === I am having issues with a website that I am working on in which images and background-images fail to load in Internet Explorer 6. Here is an example of a page on which you might experience this issue: [Example Page][1] So far I have looked at the following possible issues and pretty much ruled them out: * XML/Extraneous data in the image files (google photoshop 7 internet explorer) * Corrupt image files I have not ruled out invalid markup. I have noticed that there are validation errors in most of the pages where this problem has been reported and I am working on getting those fixed where appropriate. The behavior I see is that the page will load and all elements other than the background image render. There are no javascript errors thrown. When using Fiddler, no request for the image is made. If the browser is pointed directly to the background-image, the cache is cleared and then the browser is pointed back at the HTML page, the background-image will load inside the HTML page. Does anyone have any additional suggestions for ways to attack this issue? [1]: http://www.infinitieurope.com/aboutinfiniti/environment/infiniti-environment.html
0
[ 2, 98, 110, 1679, 19667, 1549, 29, 3502, 12797, 19, 2620, 8520, 400, 60, 800, 3726, 3726, 31, 589, 452, 1549, 29, 21, 2271, 30, 31, 589, 638, 27, 19, 56, 3502, 17, 2395, 8, 22039, 18, 7476, 20, 6305, 19, 2620, 8520, 400, 9, 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...
Parsing and generating Microsoft Office 2007 files (.docx, .xlsx, .pptx) === I have a web project where I must import text and images from a user-supplied document, and one of the possible formats is Microsoft Office 2007. There's also a need to generate documents in this format. The server runs CentOS 5.2 and has PHP/Perl/Python installed. I can execute local binaries and shell scripts if I must. We use Apache 2.2 but will be switching over to Nginx once it goes live. What are my options? Anyone had experience with this?
0
[ 2, 2017, 18, 68, 17, 13500, 7099, 488, 624, 6488, 13, 5, 9, 13799, 396, 15, 13, 9, 396, 7532, 396, 15, 13, 9, 3421, 38, 396, 6, 800, 3726, 3726, 31, 57, 21, 2741, 669, 113, 31, 491, 9010, 1854, 17, 3502, 37, 21, 4155, 8, 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...
How do I make my iPhone application's icon show up in iTunes? === I've got an iPhone app with icon file Icon.png. This icon shows up properly on the phone itself, but it doesn't show up in the applications pane in iTunes. What do I need to do to get it to show up properly? P.S. The only unusual circumstance I can think of is that I've set UIPrerenderedIcon to true in my plist, but I've tried changing that back to false and the icon still doesn't show up properly.
0
[ 2, 184, 107, 31, 233, 51, 21024, 3010, 22, 18, 9801, 298, 71, 19, 12952, 60, 800, 3726, 3726, 31, 22, 195, 330, 40, 21024, 4865, 29, 9801, 3893, 9801, 9, 306, 2723, 9, 48, 9801, 1285, 71, 7428, 27, 14, 1132, 1145, 15, 47, 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...
Writing ID3v2 Tag parsing code, need Good examples to test. === I am writing software to parse ID3v2 tags in Java. I need to find some files with good examples of the tag with lots of different frames. Ideally the tags will contain an embedded picture because that is what is kicking my butt right now. Does anyone know where I can find some good free (legal) ID3v2 tagged files (ID3v2.2 and ID3v2.3)?
0
[ 2, 1174, 4924, 240, 710, 135, 3383, 2017, 18, 68, 1797, 15, 376, 254, 3770, 20, 1289, 9, 800, 3726, 3726, 31, 589, 1174, 2306, 20, 2017, 870, 4924, 240, 710, 135, 3383, 18, 19, 8247, 9, 31, 376, 20, 477, 109, 6488, 29, 254, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Example code for Resizing an image using DirectX === I know it is possible, and a lot faster than using GDI+. However I haven't found any good example of using DirectX to resize or manipulate an image.
0
[ 2, 823, 1797, 26, 10719, 3335, 40, 1961, 568, 1744, 396, 800, 3726, 3726, 31, 143, 32, 25, 938, 15, 17, 21, 865, 4233, 119, 568, 489, 1115, 2430, 9, 207, 31, 2933, 22, 38, 216, 186, 254, 823, 16, 568, 1744, 396, 20, 302, 10454...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Hooking syscalls from userspace on Windows === I'm patching connect() to redirect network traffic as part of a library (<a href="http://www.assembla.com/wiki/show/nethooker">NetHooker</a>) and this works well, but it depends on ws2_32.dll remaining the same and doesn't work if the syscall is used directly. So what I'm wondering is if there's a way to catch the syscall itself without a driver. Anyone know if this is possible?
0
[ 2, 5559, 68, 10315, 18, 9200, 18, 37, 4155, 5582, 27, 1936, 800, 3726, 3726, 31, 22, 79, 7331, 68, 6379, 5, 6, 20, 302, 14706, 982, 2227, 28, 141, 16, 21, 1248, 13, 5, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 6483, 9, 9790, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Direct3D Camera Problem === I'm using SlimDX/C# to write a Direct3D application. I configured the camera as per textbox way: private float cameraZ = 5.0f; camera = new Camera(); camera.FieldOfView =(float)(Math.PI/2); camera.NearPlane = 0.5f; camera.FarPlane = 1000.0f; camera.Location = new Vector3(0.0f, 0.0f, cameraZ); camera.Target = Vector3.Zero; camera.AspectRatio = (float)InitialWidth / InitialHeight; The drawing and rotational method are all decent Matrix.RotationYawPitchRoll and mesh.DrawSubset(0). Everything else appear normal My Problem is that my 3d mesh (thin square box), when look from the side, and stand vertically, it appear thicker than when it's horizontal. I've tried to change the AspectRatio to 1, it's worse. So through trial and error, I found out that it's looks much normal when the AspectRatio is around 2.6. Why is that and what could be wrong?
0
[ 2, 1744, 240, 43, 3336, 1448, 800, 3726, 3726, 31, 22, 79, 568, 8824, 43, 396, 118, 150, 5910, 20, 2757, 21, 1744, 240, 43, 3010, 9, 31, 28895, 14, 3336, 28, 416, 1854, 5309, 161, 45, 932, 11510, 3336, 380, 800, 331, 9, 387, 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...
C#/.NET, what to look at? === I see lots of job ads for C#/.NET programmers, so I thought it could be a good idea to have had a look at it. After looking at a few tutorials I found nothing really new to me. Just a language with a syntax somewhere between Java and C++ (arguably nicer than both though). So, what features in particular should I look at? What are some special features? What's the reason that C#/.NET is so large? What are some killer features or perhaps some really evil language gotchas? Links and code examples are very welcome. I am using the Mono-implementation on Linux.
0
[ 2, 272, 5910, 118, 9, 2328, 15, 98, 20, 361, 35, 60, 800, 3726, 3726, 31, 196, 7503, 16, 1205, 16236, 26, 272, 5910, 118, 9, 2328, 17968, 18, 15, 86, 31, 289, 32, 110, 44, 21, 254, 882, 20, 57, 41, 21, 361, 35, 32, 9, 75, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 way to prevent a SystemExit exception raised from sys.exit() from being caught? === The docs say that calling sys.exit() raises a SystemExit exception which can be caught in outer levels. I have a situation in which I want to definitively and unquestionably exit from inside a test case, however the unittest module catches SystemExit and prevents the exit. This is normally great, but the specific situation I am trying to handle is one where our test framework has detected that it is configured to point to a non-test database. In this case I want to exit and prevent any further tests from being run. Of course since unittest traps the SystemExit and continues happily on it's way, it is thwarting me. The only option I have thought of so far is using ctypes or something similar to call exit(3) directly but this seems like a pretty fugly hack for something that should be really simple.
0
[ 2, 25, 80, 21, 161, 20, 2501, 21, 329, 1706, 242, 5391, 1127, 37, 10315, 18, 9, 1706, 242, 5, 6, 37, 142, 1383, 60, 800, 3726, 3726, 14, 9765, 18, 395, 30, 2555, 10315, 18, 9, 1706, 242, 5, 6, 15303, 21, 329, 1706, 242, 5391...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
python dictionary update method === I have a list string tag. i am trying to initialize a dictionary with the key as the tag string and values as the array index. for i, ithTag in enumerate(tag): tagDict.update(ithTag=i) The above returns me {'ithTag': 608} *608 is the 608th index* my problem is that, while the i is being interpreted as a variable, python is treating the "ithTag" as a String instead of a variable :( im confused, it is kind of hard to google these kind of specific questions :( I hope i worded the title of this question correctly, Thanks!
0
[ 2, 20059, 9186, 11100, 2109, 800, 3726, 3726, 31, 57, 21, 968, 3724, 3383, 9, 31, 589, 749, 20, 2104, 2952, 21, 9186, 29, 14, 1246, 28, 14, 3383, 3724, 17, 4070, 28, 14, 7718, 4348, 9, 26, 31, 15, 31, 96, 8628, 19, 26940, 62, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Right-click to select a datagridview row. === How do you select a datagridview row on a right-click?
0
[ 2, 193, 8, 150, 10129, 20, 5407, 21, 1054, 16375, 4725, 3131, 9, 800, 3726, 3726, 184, 107, 42, 5407, 21, 1054, 16375, 4725, 3131, 27, 21, 193, 8, 150, 10129, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
getting started with Mobile programming ? === Mobile programming platform to go with for a c++ developer? Is learning android is good?
0
[ 2, 1017, 373, 29, 3241, 3143, 13, 60, 800, 3726, 3726, 3241, 3143, 2452, 20, 162, 29, 26, 21, 272, 20512, 10058, 60, 25, 2477, 13005, 25, 254, 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, 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...
Qt context menu breaking selection in QTreeView === I have a QTreeView class with a context menu installed as follows: m_ui.tree->setContextMenuPolicy(Qt::CustomContextMenu); connect(m_ui.tree, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowTreeContextMenu(const QPoint&))); ... void ShowTreeContextMenu(const QPoint& point) { m_treeContextMenu->exec(m_ui.tree->viewport()->mapToGlobal(point)); } However when the context menu is being displayed the QTreeView will no longer respond to mouse clicks. Clicking on an item in the QTreeView while the context menu is displayed will remove the context menu but does not select the clicked item. This is especially disorientating when right clicking on a new item, as the context menu pops up over the new item, but as the item was not selected the contents of the context menu are referring to the previously selected item.
0
[ 2, 2593, 38, 4141, 11379, 3892, 3155, 19, 2593, 8101, 4725, 800, 3726, 3726, 31, 57, 21, 2593, 8101, 4725, 718, 29, 21, 4141, 11379, 4066, 28, 2415, 45, 307, 1, 5661, 9, 8101, 8, 1, 3554, 1126, 11969, 755, 576, 18156, 93, 5, 125...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a db table created by the Rails framework look like? === I don't have a Rails environment set up and this is actually quite hard to find a quick answer for, so I'll ask the experts. When Rails creates a table based on your "model" that you have set up, does Rails create a table that mirrors this model exactly, or does it add in more fields to the table to help it work its magic? If so, what other fields does it add and why? Perhaps you could cut and paste the table structure, or simply point me to a doc or tutorial section that addresses this.
0
[ 2, 98, 630, 21, 13, 9007, 859, 679, 34, 14, 2240, 18, 6596, 361, 101, 60, 800, 3726, 3726, 31, 221, 22, 38, 57, 21, 2240, 18, 2307, 309, 71, 17, 48, 25, 1121, 1450, 552, 20, 477, 21, 2231, 1623, 26, 15, 86, 31, 22, 211, 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...
What's in your Utility Toolkit? === Some of the most efficient engineers, developers and IT professionals I know usually carry around a common "toolkit" of useful programs, add-ins or utilities which help them for day-to-day debugging, developing or designing. The question is:<br> <i>What is in your utility toolkit.. What tools couldn't you live without?</i>
0
[ 2, 98, 22, 18, 19, 154, 10082, 5607, 13703, 60, 800, 3726, 3726, 109, 16, 14, 127, 8243, 5379, 15, 10168, 17, 32, 9991, 31, 143, 951, 2670, 140, 21, 757, 13, 7, 20799, 13703, 7, 16, 4811, 1726, 15, 3547, 8, 108, 18, 54, 19817,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 decrpyt a password from SQL server? === i have this query in sql server 2000 like below: select pwdencrypt('AAAA') which output is an encrypted string of 'AAAA' like below: 0x0100CF465B7B12625EF019E157120D58DD46569AC7BF4118455D12625EF019E157120D58DD46569AC7BF4118455D **question: how can i convert(decrypt) again the output from its origin (which is 'AAAA')?**
0
[ 2, 184, 20, 6661, 6952, 93, 38, 21, 20884, 37, 4444, 255, 8128, 60, 800, 3726, 3726, 31, 57, 48, 25597, 19, 4444, 255, 8128, 824, 101, 1021, 45, 5407, 13, 17230, 817, 11435, 5, 22, 58, 22160, 22, 6, 56, 5196, 25, 40, 29403, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 should I express fractions like 15/16ths in HTML? === I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions?
0
[ 2, 184, 378, 31, 2999, 10885, 18, 101, 357, 118, 1091, 96, 18, 19, 13, 15895, 60, 800, 3726, 3726, 31, 143, 80, 50, 13, 15895, 12549, 26, 13, 13301, 15, 137, 13722, 15, 17, 203, 13722, 15, 47, 50, 80, 654, 60, 101, 137, 16842,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SMS alerting to respond to error situations faster === What is the easiest way to set up an SMS alerting system so that I will receive notification if my server doesn't respond or a GET query doesn't return correct content?
0
[ 2, 7613, 18, 7863, 68, 20, 4590, 20, 7019, 8329, 4233, 800, 3726, 3726, 98, 25, 14, 27237, 161, 20, 309, 71, 40, 7613, 18, 7863, 68, 329, 86, 30, 31, 129, 2588, 52, 4634, 100, 51, 8128, 1437, 22, 38, 4590, 54, 21, 164, 25597, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Which database implementations allow sandboxing users in seperate databases ? === Can anyone tell me if there are RDBMS's that allow me to create seperete database for every user so that there is full seperetion of users' data ? Are there any ? I know I cann add UID to every table but this sobution has it's own problems (for example per user database chema changes are impossible).
0
[ 2, 56, 6018, 6123, 18, 1655, 1965, 5309, 68, 3878, 19, 10332, 106, 1373, 6018, 18, 13, 60, 800, 3726, 3726, 92, 1276, 494, 55, 100, 80, 50, 13, 897, 13178, 18, 22, 18, 30, 1655, 55, 20, 1600, 10332, 106, 11258, 6018, 26, 352, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 free a wrapped C++ object when associated Javascript object is garbage collected in V8? === V8's documentation explains [how to create a Javascript object that wraps a C++ object][1]. The Javascript object holds on to a pointer to C++ object instance. My question is, let's say you create the C++ object on the heap, how can you get a notification when the Javascript object is collected by the gc, so you can free the heap allocated C++ object? [1]: http://code.google.com/apis/v8/embed.html#dynamic
0
[ 2, 184, 107, 42, 551, 21, 3684, 272, 20512, 3095, 76, 1598, 8247, 8741, 3095, 25, 15024, 3674, 19, 566, 457, 60, 800, 3726, 3726, 566, 457, 22, 18, 13945, 7346, 636, 1544, 20, 1600, 21, 8247, 8741, 3095, 30, 8118, 18, 21, 272, 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...
How do you deal with large dependencies in Boost? === Boost is a very large library with many inter-dependencies -- which also takes a long time to compile (which for me slows down our [**CruiseControl**][1] response time). The only parts of boost I use are boost::regex and boost::format. Is there an easy way to extract only the parts of boost necessary for a particular boost sub-library to make compilations faster? [1]: http://cruisecontrol.sourceforge.net/
0
[ 2, 184, 107, 42, 1183, 29, 370, 29411, 19, 10419, 60, 800, 3726, 3726, 10419, 25, 21, 253, 370, 1248, 29, 151, 1480, 8, 19038, 22851, 13, 8, 8, 56, 67, 1384, 21, 175, 85, 20, 26561, 13, 5, 2140, 26, 55, 2276, 18, 125, 318, 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...
Has anyone built web-apps that can run totally off-line? === I'm building an app that authors would (hopefully) use to help them, uh.. *author* things. Think of it like a wiki but just for one person, but cooler. I wish to make it as accessible as possible to my (potential) adoring masses, and so I'm thinking about making it a web-app. It certainly doesn't have to be, there is no integration with other sites, no social features. It involve typing information into forms however, so for rapid construction the web would probably be the best. However, I don't really want to host it myself. I couldn't afford it for one, but it's mostly that people who use this may not want their data stored elsewhere. This is private information about what they are writing and I wouldn't expect them to trust me with it, and so I'm thinking about making it a thick-client app. And therein lies the problem, how to make a application that focuses mainly on form data entry available easily to potential users (yay web apps) but also offline so they know they are in full control of their data (yay thick-client apps). I see the following solutions: 1. Build it as a thick-client Java app and run a cutdown version on the net as an applet that people can play with before downloading the full thing. 1. Build it as a Flex app for online and an Air app for offline (same source different build scripts basically). 1. Build it as a standard web-app (HTML, JS etc) but have a downloadable version that somehow runs the site **totally** on their computer. It wouldn't touch the net at all. Ignoring 1 and 2 (I'm looking into them separately), I think 3 would involve: - Packaging up an install that contains a tiny webserver that has my code on it, ready to run. - Remapping the DB from something like mySQL to something like SQLite. - Creating some kind of convience app that ran the server and opened your browser to the right location, possibly using something like [Prism][1] to hide the whole broswer thing. So, **have you ever done something like this before?** If so, **what problems did you encounter?** Finally, **is there another solution I haven't thought of?**' *(also, [Joyent Slingshot][2] was a suggestion on another question, but it's RoR (which I have no experience in) and I'm 99% sure it doesn't run under linux, so It's not right for me.)* [1]: https://wiki.mozilla.org/Prism [2]: http://joyent.com/developers/slingshot/
0
[ 2, 63, 1276, 392, 2741, 8, 7753, 18, 30, 92, 485, 5139, 168, 8, 1143, 60, 800, 3726, 3726, 31, 22, 79, 353, 40, 4865, 30, 5152, 83, 13, 5, 18930, 5655, 6, 275, 20, 448, 105, 15, 10863, 9, 9, 1637, 10007, 2483, 564, 9, 277, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 best instalition tool/(installer) for java? === Depends on your experience could you recommend something? I've use [izpack][1], and it's very nice tool, is there any other, better tool? [1]: http://izpack.org/
0
[ 2, 98, 25, 246, 19, 13558, 9861, 5607, 118, 5, 108, 21300, 106, 6, 26, 8247, 60, 800, 3726, 3726, 9597, 27, 154, 1496, 110, 42, 12360, 301, 60, 31, 22, 195, 275, 636, 3186, 8573, 500, 2558, 165, 500, 15, 17, 32, 22, 18, 253, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Example of using Service Exists MSBuild task in Microsoft.Sdc.Tasks? === I'm trying to use the `Microsoft.Sdc.Tasks.ServiceProcess.Exists` to check whether or not a service exists. There is no example of using it in the documentation though. Anyone have one?
0
[ 2, 823, 16, 568, 365, 5636, 4235, 29361, 3005, 19, 7099, 9, 18, 7201, 9, 6922, 4020, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 14, 13, 1, 22019, 12980, 9, 18, 7201, 9, 6922, 4020, 9, 11449, 16835, 9, 1706, 3163, 1, 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...
PHP Arrays: A good way to check if an array is associative or sequential? === PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fairly efficient way to check if an array contains only numeric keys? Basically, I want to be able to differentiate between this: $sequentialArray = array('apple', 'orange', 'tomato', 'carrot'); and this: $assocArray = array('fruit1' => 'apple', 'fruit2' => 'orange', 'veg1' => 'tomato', 'veg2' => 'carrot');
0
[ 2, 13, 26120, 7718, 18, 45, 21, 254, 161, 20, 2631, 100, 40, 7718, 25, 28, 18, 16325, 3366, 54, 1353, 5495, 10107, 60, 800, 3726, 3726, 13, 26120, 5752, 18, 65, 7718, 18, 28, 28, 18, 16325, 3366, 15, 86, 80, 4847, 22, 38, 186,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the execution time of a section of my program in C? === I'm trying to find a way to get the execution time of a section of code in C. I've already tried both time() and clock() from time.h, but it seems that time() returns seconds and clock() seems to give me milliseconds (or centiseconds?) I would like something more precise though. Is there a way I can grab the time with at least microsecond precision? This only needs to be able to compile on Linux.
0
[ 2, 184, 92, 31, 477, 14, 5769, 85, 16, 21, 1050, 16, 51, 625, 19, 272, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 477, 21, 161, 20, 164, 14, 5769, 85, 16, 21, 1050, 16, 1797, 19, 272, 9, 31, 22, 195, 614, 794, 156, 85, 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...
Developing a scheduled task for Windows === I have to develop an application using C#.net that has to be run once a day. It only runs for at most one minute, so developing a Windows service is overkill and a scheduled task is the appropriate way. However, I have a few questions about how the application can communicate its results: * How do I indicate to the task scheduler that the task has failed? Is this via the program's exit code? * How do I log output information? Is console output automatically captured or do I have to write to the event viewer explicitly?
0
[ 2, 3561, 21, 3758, 3005, 26, 1936, 800, 3726, 3726, 31, 57, 20, 2803, 40, 3010, 568, 272, 5910, 9, 2328, 30, 63, 20, 44, 485, 382, 21, 208, 9, 32, 104, 1461, 26, 35, 127, 53, 2038, 15, 86, 3561, 21, 1936, 365, 25, 84, 7577, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 fix DWMAPI.DLL delay-load dependency under WinXP? === I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when it's loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the .NET Framework via Add/Remove programs. I did the repair, and nothing changed. I'm not about to uninstall IE7 since there must be a better solution that's not the equivalent of "reinstall windows".
0
[ 2, 184, 20, 6098, 15952, 15022, 49, 9, 43, 211, 7255, 8, 8294, 26835, 131, 628, 396, 306, 60, 800, 3726, 3726, 31, 57, 392, 21, 13, 9, 43, 211, 131, 628, 396, 306, 30, 2810, 32, 92, 22, 38, 477, 15952, 15022, 49, 9, 43, 211,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MinGW library converted to Windows library gives odd link in VC++6 === I used the MinGW `.a` to Windows `.lib` transformation process as detailed in a thread on the gmp-discuss list, as below (acting against a library created with --disable-shared --enable-static.) cp libgmp.a gmp.a ranlib gmp.a mv gmp.a gmp.lib I now have a `.lib` file against which VC++6 seems to have no difficulty linking. What concerns me now is warning messages I'm getting from the link phase: LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported LINK : warning LNK4049: locally defined symbol "__pctype" imported LINK : warning LNK4049: locally defined symbol "__iob" imported At this point in the proceedings these make no difference to the running of my DLL (which wraps certain GMP functionality). But is that good enough? Will having these three symbols from `libgmp.a` linked in to my Windows DLL end up biting me later on?
0
[ 2, 12069, 499, 1248, 3494, 20, 1936, 1248, 2352, 4210, 3508, 19, 13, 8990, 20512, 379, 800, 3726, 3726, 31, 147, 14, 12069, 499, 13, 1, 9, 58, 1, 20, 1936, 13, 1, 9, 8326, 1, 6978, 953, 28, 6036, 19, 21, 9322, 27, 14, 489, 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...
Track completed downloads from glassfish === I want to be able to track completed downloads served by my glassfish server. I couldn't find a 100 percent correct solution using servlet life cycle listeners. Does anyone have a better idea?
0
[ 2, 792, 1066, 7121, 18, 37, 1350, 4934, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 792, 1066, 7121, 18, 423, 34, 51, 1350, 4934, 8128, 9, 31, 711, 22, 38, 477, 21, 808, 2091, 4456, 4295, 568, 13, 10321, 1336, 201, 4150, 15672, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Using Microsoft.Sdc.Tasks.ServiceProcess.ControlService how do I check if a service exists on a remote machine? === I'm trying to check if a service exists on a remote machine using the `Microsoft.Sdc.Tasks.ServiceProcess.ControlService` task. <ControlService MachineName="$(TargetMachineName)" Action="Exists" ServiceName="w3svc"> <Output PropertyName="W3ServiceExists" TaskParameter="ServiceExists" /> </ControlService> When I use the above task declaration I get this output from MSBUILD. >`(42,54): error MSB4065: The "ServiceExists" parameter is not marked for output by the "ControlService" task.` Is there a way to use the ControlService class to get whether or not a service exists on a remote machine?
0
[ 2, 568, 7099, 9, 18, 7201, 9, 6922, 4020, 9, 11449, 16835, 9, 12898, 11449, 184, 107, 31, 2631, 100, 21, 365, 5636, 27, 21, 5388, 1940, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 2631, 100, 21, 365, 5636, 27, 21, 5388, 1940, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Learning Windows Forms vs. Windows Presentation Foundation === So I've been thinking of going for Microsoft certification and I have to make a choice (for now) between Windows Forms and WPF for developing Windows applications. I have had good exposure to Windows Forms but never tried WPF before. Furthermore, most of the job postings where I live seem to be WinForms-oriented. That might change in the next few years, so I was wondering if I should get started on learning WPF or stick to the tried and true Forms. Any insight?
0
[ 2, 2477, 1936, 1997, 4611, 9, 1936, 6364, 1304, 800, 3726, 3726, 86, 31, 22, 195, 74, 1440, 16, 228, 26, 7099, 10439, 17, 31, 57, 20, 233, 21, 1837, 13, 5, 1106, 130, 6, 128, 1936, 1997, 17, 619, 7721, 26, 3561, 1936, 3767, 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...
Positioning flash content using CSS === I have a generated HTML page with flash content in it. I am trying to reposition the flash content and make it "absolute". I have tried to wrap the object tags with a div tag, but to no avail. Can anyone tell me how to do this? Removing the generated positioning attributes does not work. See relevant code below (it is not very neat, but this is how it is generated. I have removed most irrelevant code): <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>* welcome *</title> <script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script> </head> <body bgcolor="#000000"> <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '430', 'height', '200', 'src', 'bar', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'right', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'transparent', 'devicefont', 'false', 'id', 'bar', 'bgcolor', '#000000', 'name', 'bar', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'bar', 'salign', '' ); //end AC code } </script> <noscript> <div style = "position: absolute"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="430" height="200" id="bar" align="right"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="bar.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" /> </object> </div> </noscript> Thanks in advance!
0
[ 2, 649, 68, 4433, 2331, 568, 272, 18, 18, 800, 3726, 3726, 31, 57, 21, 6756, 13, 15895, 2478, 29, 4433, 2331, 19, 32, 9, 31, 589, 749, 20, 302, 9339, 14, 4433, 2331, 17, 233, 32, 13, 7, 2297, 656, 14047, 7, 9, 31, 57, 794, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 anyone have experience with PyS60 mobile development === I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators. Please don't tell me that I should be developing on Windows Mobile, I have already decided not to do that so will mark those answers down.
0
[ 2, 630, 1276, 57, 1496, 29, 7103, 18, 3374, 3241, 522, 800, 3726, 3726, 31, 589, 19, 14, 649, 16, 452, 20, 233, 21, 1099, 1837, 274, 19, 21, 669, 56, 25, 2935, 1427, 35, 3241, 14830, 9, 31, 441, 30, 80, 25, 21, 20059, 15776, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Problems with shutting down JBoss in Eclipse if I change JNDI port === I have a problem shutting down my running JBoss instance under Eclipse since I changed the JNDI port of JBoss. Of course I can shut it down from the console view but not with the stop button (it still searches JNDI port at the default 1099 port). I'm looking forward to any solutions. Thank you! Used environment: - JBoss 4.0.2 (using *default*) - Eclipse 3.4.0. (using JBoss Tools 2.1.1.GA) Default ports: 1098, 1099 Changed ports: 11098, 11099 I changed the following part in jbosspath/server/default/conf/jboss-service.xml: <!-- ==================================================================== --> <!-- JNDI --> <!-- ==================================================================== --> <mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming" xmbean-dd="resource:xmdesc/NamingService-xmbean.xml"> <!-- The call by value mode. true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference. --> <attribute name="CallByValue">false</attribute> <!-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. --> <attribute name="Port">11099</attribute> <!-- The bootstrap JNP server bind address. This also sets the default RMI service bind address. Empty == all addresses --> <attribute name="BindAddress">${jboss.bind.address}</attribute> <!-- The port of the RMI naming service, 0 == anonymous --> <attribute name="RmiPort">11098</attribute> <!-- The RMI service bind address. Empty == all addresses --> <attribute name="RmiBindAddress">${jboss.bind.address}</attribute> <!-- The thread pool service used to control the bootstrap lookups --> <depends optional-attribute-name="LookupPool" proxy-type="attribute">jboss.system:service=ThreadPool</depends> </mbean> <mbean code="org.jboss.naming.JNDIView" name="jboss:service=JNDIView" xmbean-dd="resource:xmdesc/JNDIView-xmbean.xml"> </mbean> Eclipse setup: ![jndi port to 11099][1] Error dialog: ![can't reach server][2] The stacktrace: javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) at javax.naming.InitialContext.lookup(InitialContext.java:347) at org.jboss.Shutdown.main(Shutdown.java:202) Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370) ... 4 more Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.<init>(Socket.java:309) at java.net.Socket.<init>(Socket.java:211) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224) ... 5 more Exception in thread "main" [1]: http://img03.picoodle.com/img/img03/3/10/6/f_jbossm_3960e2f.png [2]: http://img02.picoodle.com/img/img02/3/10/6/f_errorm_aa37ad4.png
0
[ 2, 1716, 29, 19796, 125, 487, 10349, 18, 19, 11652, 100, 31, 753, 487, 9805, 1295, 800, 3726, 3726, 31, 57, 21, 1448, 19796, 125, 51, 946, 487, 10349, 18, 4851, 131, 11652, 179, 31, 1015, 14, 487, 9805, 1295, 16, 487, 10349, 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...