unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
algorithm for index numbers of triangular matrix coefficients === I think this must be simple but I can't get it right... I have an MxM triangular matrix, the coefficients of which are stored in a vector, row by row. For example: M = [ 1 2 3 4 ] [ 5 6 7 ] [ 8 9 ] [ 10] is stored as coef[ 1 2 3 4 5 6 7 8 9 10 ] Now I'm looking for a non-recursive algorithm that gives me for matrix size `M` and coefficient array index `i` unsigned int row_index(i,M) and unsigned int column_index(i,M) of the matrix element that it refers to. So, `row_index(9,4) == 3`, `column_index(7,4) == 2` etc. if the index counting is zero-based.
0
[ 2, 9083, 26, 4348, 2116, 16, 15898, 8187, 14612, 18, 800, 3726, 3726, 31, 277, 48, 491, 44, 1935, 47, 31, 92, 22, 38, 164, 32, 193, 9, 9, 9, 31, 57, 40, 307, 396, 79, 15898, 8187, 15, 14, 14612, 18, 16, 56, 50, 8214, 19, 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...
Implementing notification emails === My client wants to send email announcements and reports for customers. Now. The python-side code doesn't seem too hard but there's the rest of the story. What do I require in order to send such emails that won't end up getting blocked by email servers and clients?
0
[ 2, 17333, 52, 4634, 8517, 18, 800, 3726, 3726, 51, 6819, 2846, 20, 2660, 8517, 7435, 18, 17, 2813, 26, 5279, 9, 130, 9, 14, 20059, 8, 1416, 1797, 1437, 22, 38, 2260, 266, 552, 47, 80, 22, 18, 14, 760, 16, 14, 609, 9, 98, 107...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Most crucial elements in a light-weight C++ coding standard === I've been involved in developing coding standards which are quite elaborate. My own experience is that it was hard to enforce if you don't have proper processes to maintain it and strategies to uphold it. Now I'm working in and leading an environment even less probable to have processes and follow-up strategies in quite a while. Still I want to uphold some minimum level of respectable code. So I thought I would get good suggestions here, and we might together produce a reasonable light-weight subset of the most important coding standard practices for others to use as reference. So, to emphasize the essence here: **What elements of a C++ coding standard are the most crucial to uphold?** - - Answering/voting rules - - 1 candidate per answer, preferably with a **brief** motivation. - **Vote down** candidates which focuses on style and subjective formatting guidelines. This is not to indicate them as unimportant, only that they are less relevant in this context. - **Vote down** candidates focusing on how to comment/document code. This is a larger subject which might even deserve its on post. - **Vote up** candidates that clearly facilitates safer code, which minimizes the risk of enigmatic bugs, which increases maintainability, etc. - **Don't cast your vote** in any direction on candidates you are uncertain about, even if they sound reasonable and smart or vice versa. The rank of candidates in this post should ideally be based on clear understanding and experience.
0
[ 2, 127, 10421, 2065, 19, 21, 471, 8, 8696, 272, 20512, 13, 15458, 1236, 800, 3726, 3726, 31, 22, 195, 74, 1013, 19, 3561, 13, 15458, 3364, 56, 50, 1450, 7541, 9, 51, 258, 1496, 25, 30, 32, 23, 552, 20, 16525, 100, 42, 221, 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...
Using SVN to lock documents for editing and update notifications === Recently developers highlighted that it is bit hard for them to keep track of which document has been updated. And they thus suggested that using SVN to keep track of document changes will be better as they will be able to know if document if being updated when doing checking out of the project. But i also highlighted the several cons that may occur - Binary file using up alot of diskspace everytime word, excel document is commited - Checkout a project will take much more time although we can separate the documents into another project in the repository - It will take time to teach personnel on how to use SVN. Another feature is that for these kind of functional documents, it should be locked while editing. Anyone have any idea on how to go about it? Or what are the pros and cons to it. Please feel free to share with me. Thanks alot in advance
0
[ 2, 568, 13, 18, 16578, 20, 3991, 4374, 26, 9510, 17, 11100, 52, 4634, 18, 800, 3726, 3726, 1989, 10168, 12528, 30, 32, 25, 1142, 552, 26, 105, 20, 643, 792, 16, 56, 4492, 63, 74, 6372, 9, 17, 59, 1086, 2347, 30, 568, 13, 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...
Is there any way to view all event hadlers of TextBox TextChanged event in Visual Studio debugger? === When I add the textBox.TextChanged to watch list I get a message saying <pre>The event 'System.Windows.Forms.Control.TextChanged' can only appear on the left hand side of += or -=</pre> Is there any way to check what event's are called on text change?
0
[ 2, 25, 80, 186, 161, 20, 1418, 65, 807, 41, 1252, 18, 16, 1854, 5309, 1854, 16229, 43, 807, 19, 3458, 1120, 121, 2345, 11356, 60, 800, 3726, 3726, 76, 31, 3547, 14, 1854, 5309, 9, 11969, 16229, 43, 20, 1455, 968, 31, 164, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What SQL command grants a securityadmin access to a database? === I'm a securityadmin and wish to add myself to a role in a database. I don't yet have access to the database and can't use the UI. What SQL commands will achieve this in SQL Server 2005? Thanks.
0
[ 2, 98, 4444, 255, 1202, 8886, 21, 1221, 1283, 2160, 1381, 20, 21, 6018, 60, 800, 3726, 3726, 31, 22, 79, 21, 1221, 1283, 2160, 17, 2536, 20, 3547, 992, 20, 21, 597, 19, 21, 6018, 9, 31, 221, 22, 38, 768, 57, 1381, 20, 14, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Force application to shut down (.net) === I'm looking to force my application to shut down, and return an Exit code. Had a look on MSDN and I can see that in WPF the Application has a Shutdown method which takes an error code as a parameter, but there doesn't appear to be one for System.Windows.Forms.Application. I can see Application.Exit() but not a way to pass back an error code. Does anyone know off-hand if this is possible? Thanks
0
[ 2, 558, 3010, 20, 2218, 125, 13, 5, 9, 2328, 6, 800, 3726, 3726, 31, 22, 79, 699, 20, 558, 51, 3010, 20, 2218, 125, 15, 17, 788, 40, 4350, 1797, 9, 41, 21, 361, 27, 4235, 43, 103, 17, 31, 92, 196, 30, 19, 619, 7721, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Relative Positioning of DIV === There is div named "dvUsers". there is an anchor tag "lnkUsers". When one clicks on anchortag, the div must open like a popup div just below it. Also the divs relative position should be maintained at window resize and all. How to do that using javascript/jquery?
0
[ 2, 4543, 649, 68, 16, 13, 12916, 800, 3726, 3726, 80, 25, 13, 12916, 377, 13, 7, 17905, 16704, 18, 7, 9, 80, 25, 40, 6265, 3383, 13, 7, 16600, 12707, 445, 7, 9, 76, 53, 10840, 18, 27, 6265, 8628, 15, 14, 13, 12916, 491, 368,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically Reassing Filtered Text Box Extender === I have a page with 8 Text fields, all these text boxes requires the same rules in regard to accepted characters/invalid characters. My question is, should I have individual Filtered Text box Extenders for each Text Field or can I have a single Filtered Text Box Extender that I reassign the TargetControl. Can you do this client side i.e. TextBoxX.onBlur(<set the targetControl of the FiteredTextBoxExtender to TextBoxX>) ??
0
[ 2, 7782, 1326, 302, 9755, 68, 25090, 1854, 1649, 7206, 106, 800, 3726, 3726, 31, 57, 21, 2478, 29, 469, 1854, 2861, 15, 65, 158, 1854, 8120, 4781, 14, 205, 1761, 19, 6731, 20, 2217, 1766, 118, 108, 18506, 43, 1766, 9, 51, 1301, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
When did single quotes in HTML become so popular? === Recently I've been seeing a lot of this: <a href='http://widget-site-example.com/example.html'> <img src='http://widget-site-example.com/ross.jpg' alt='Ross\'s Widget' /> </a> Is it even valid to use single quotes in HTML? As I've highlighted above it's also problematic because you have to escape apostrophes.
0
[ 2, 76, 144, 345, 18901, 19, 13, 15895, 533, 86, 844, 60, 800, 3726, 3726, 1989, 31, 22, 195, 74, 2078, 21, 865, 16, 48, 45, 13, 1, 58, 746, 14057, 3726, 22, 21127, 6903, 3976, 43, 3060, 8, 9097, 8, 29041, 9, 960, 118, 29041, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reasons for having different UI Design for intranet and internet? === We are currently having two UI design for internet and intranet the underlying reason being is that they both serve different purpose so they have different UI design. But however users want to have a more synchronized look and feel between internet and intranet. What are the reasons you all can think of in have different user interface/outlook for internet and intranet?
0
[ 2, 2932, 26, 452, 421, 13, 5661, 704, 26, 14369, 2328, 17, 2620, 60, 800, 3726, 3726, 95, 50, 871, 452, 81, 13, 5661, 704, 26, 2620, 17, 14369, 2328, 14, 10974, 1215, 142, 25, 30, 59, 156, 1884, 421, 2131, 86, 59, 57, 421, 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...
Escape path separator in a regular expression === I need to write a regular expression that finds javascript files that match <anypath><slash>js<slash><anything>.js For example, it should work for both : - c:\mysite\js\common.js (Windows) - /var/www/mysite/js/common.js (UNIX) The problem is that the file separator in Windows is not being properly escaped : pattern = Pattern.compile( "^(.+?)" + File.separator + "js" + File.separator + "(.+?).js$" ); Throwing java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence Is there any way to use a common regular expression that works in both Windows and UNIX systems ?
0
[ 2, 2220, 2013, 1353, 3574, 3457, 19, 21, 1290, 1803, 800, 3726, 3726, 31, 376, 20, 2757, 21, 1290, 1803, 30, 3797, 8247, 8741, 6488, 30, 730, 13, 1, 6001, 8353, 1, 18, 9545, 1, 728, 18, 1, 18, 9545, 1, 20938, 1, 9, 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...
How do I retrieve the name property of a radio button in c# === I've created a series of radio button controls in C#. I've set their group name to be the same so they function as a list of radion buttons. How do I retrieve the name (like: ct100$m$dfgadjkfasdghasdkjfg$282_Type) in c# so I can use this in a Javascript method i'm creating?
0
[ 2, 184, 107, 31, 11917, 14, 204, 1354, 16, 21, 603, 5167, 19, 272, 5910, 800, 3726, 3726, 31, 22, 195, 679, 21, 231, 16, 603, 5167, 8671, 19, 272, 5910, 9, 31, 22, 195, 309, 66, 214, 204, 20, 44, 14, 205, 86, 59, 1990, 28, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
When to Use Double or Single Quotes in JavaScript === `console.log("Double");` **vs** `console.log('singe');` I saw more and more JavaScript libraries out there using single qoutes when handling string. What are the reason to use one over the other? I thought they're pretty much interchangeable.
0
[ 2, 76, 20, 275, 1494, 54, 345, 18901, 19, 8247, 8741, 800, 3726, 3726, 13, 1, 12124, 6069, 9, 5567, 5, 7, 14368, 7, 6, 73, 1, 13, 1409, 710, 18, 1409, 13, 1, 12124, 6069, 9, 5567, 5, 22, 18, 68, 62, 22, 6, 73, 1, 31, 441...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
XCode Preprocessor Macros === In XCode i can edit my preprocessor macros in the project settings. I want to create a macro that refers to an environment variable. Basically, i want to be able to refer to $SRC_ROOT in my code. What i currently have is in my macros is: SRC_ROOT=${SRC_ROOT} but it isn't working.
0
[ 2, 993, 9375, 782, 16835, 248, 9069, 18, 800, 3726, 3726, 19, 993, 9375, 31, 92, 9392, 51, 782, 16835, 248, 9069, 18, 19, 14, 669, 12410, 9, 31, 259, 20, 1600, 21, 9069, 30, 3806, 20, 40, 2307, 7612, 9, 11374, 15, 31, 259, 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...
Fountain of Knowledge: Why would someone use WHERE 1 = 1 AND ... === Why would someone use `WHERE 1=1 AND <conditions>` in a SQL clause (Either SQL obtained through concatenated strings, either view definition) I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird. If there is injection `WHERE 1 = 1 AND injected OR 1=1` would have the same result as `injected OR 1=1`.
0
[ 2, 8097, 16, 1918, 45, 483, 83, 737, 275, 113, 137, 800, 137, 17, 13, 9, 9, 9, 800, 3726, 3726, 483, 83, 737, 275, 13, 1, 2798, 137, 3726, 165, 17, 13, 1, 22141, 18, 1, 19, 21, 4444, 255, 9040, 13, 5, 18840, 4444, 255, 304...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JavaScript foreach Vs for === How do you think, is there a big difference in foreach and for loops? What kind of "for" do you prefer to use and why? Let's say we have an array of associative arrays: var myArray = [{'key': 'value'}, {'key': 'value1'}]; So we can iterate: for (var i = 0; i <= myArray.length - 1; i++) And for (var i in myArray) I don't see big difference. May there are any perfomance issues?
0
[ 2, 8247, 8741, 26, 14322, 4611, 26, 800, 3726, 3726, 184, 107, 42, 277, 15, 25, 80, 21, 580, 2841, 19, 26, 14322, 17, 26, 19661, 60, 98, 825, 16, 13, 7, 1106, 7, 107, 42, 6369, 20, 275, 17, 483, 60, 408, 22, 18, 395, 95, 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...
Error handling using Soap Headers === We are developing a new web service and are looking into the "best practice" for returning errors in the soap response. We were looking into creating a error response object which every response would contain as a property. This seems a little heavy however and are wondering if it is possible to use the SOAP header to carry this information? How do you normally deal with custom errors using SOAP?
0
[ 2, 7019, 7988, 568, 6447, 157, 445, 800, 3726, 3726, 95, 50, 3561, 21, 78, 2741, 365, 17, 50, 699, 77, 14, 13, 7, 4936, 1345, 7, 26, 2485, 11908, 19, 14, 6447, 1627, 9, 95, 46, 699, 77, 2936, 21, 7019, 1627, 3095, 56, 352, 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...
moq - good sample apps === I know that there has been a couple questions about tutorials on moq. But I am wondering if there are any sample apps out there that use moq in the context of an n-tier business application using ado.net. I find the tutes good, but they don't seem to bring everything all together into the big picture. Thus, I am looking for a sample app that brings the full picture together. Also, I think there is a little bit of a lack of examples which specifically deal with mocking and testing the logic in the data access layer. Cheers Anthony
0
[ 2, 1873, 1251, 13, 8, 254, 5717, 4865, 18, 800, 3726, 3726, 31, 143, 30, 80, 63, 74, 21, 1335, 2346, 88, 29724, 18, 27, 1873, 1251, 9, 47, 31, 589, 5712, 100, 80, 50, 186, 5717, 4865, 18, 70, 80, 30, 275, 1873, 1251, 19, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I unlock a file that is locked by a process in .NET === I want my application to clean all the temp files it used, the problem is that not all the temp files are under my control, so I just want to force unlock them in order to delete them, something similar to what the [unlocker][1] does but programatically. Thanks. Pablo. [1]: http://ccollomb.free.fr/unlocker/
0
[ 2, 184, 92, 31, 16497, 21, 3893, 30, 25, 4011, 34, 21, 953, 19, 13, 9, 2328, 800, 3726, 3726, 31, 259, 51, 3010, 20, 2745, 65, 14, 13, 9577, 6488, 32, 147, 15, 14, 1448, 25, 30, 52, 65, 14, 13, 9577, 6488, 50, 131, 51, 569...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
DLLs that require registration, used in different programs === How do you organize installing different programs if these programs use the same DLLs which **require registration**. The problem: if the user uninstalls the program that is installed later the other program will stop working as the registry entries now point to the missing DLLs. One possible solution is placing the common DLLs i a common folder - perhaps under Application Data or in Program Files\Company Name\ and then using the shared file counting mechanism of Windows. How do you handle this?
0
[ 2, 13, 43, 211, 18, 30, 4077, 8587, 15, 147, 19, 421, 1726, 800, 3726, 3726, 184, 107, 42, 9213, 25429, 421, 1726, 100, 158, 1726, 275, 14, 205, 13, 43, 211, 18, 56, 13, 1409, 99, 3003, 99, 8587, 1409, 9, 14, 1448, 45, 100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
CUDA Driver API vs. CUDA runtime === When writing CUDA applications, you can either work at the driver level or at the runtime level as illustrated on this image (The libraries are CUFFT and CUBLAS for advanced math): ![CUDA layer model][1] I assume the tradeoff between the two are increased performance for the low-evel API but at the cost of increased complexity of code. What are the concrete differences and are there any significant things which you cannot do with the high-level API? I am using CUDA.net for interop with C# and it is built as a copy of the driver API. This encourages writing a lot of rather complex code in C# while the C++ equivalent would be more simple using the runtime API. Is there anything to win by doing it this way? The one benefit I can see is that it is easier to integrate intelligent error handling with the rest of the C# code. [1]: http://www.tomshw.it/guides/hardware/graphic/20080618/images/nvidia-CUDA,Q-7-111103-13.jpg
0
[ 2, 272, 5729, 2425, 21, 2159, 4611, 9, 272, 5729, 485, 891, 800, 3726, 3726, 76, 1174, 272, 5729, 3767, 15, 42, 92, 694, 170, 35, 14, 2425, 662, 54, 35, 14, 485, 891, 662, 28, 6607, 27, 48, 1961, 13, 5, 124, 8649, 50, 13, 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...
How do you report your project status? === Currently I use the ["One Page Project Manger" Excel Template][1] for project status reports. It contains a summary of last week's work and a forecast for the next week. For all important tasks we track, if they are comleted or not. Everything on one page. I send this report every week to all participants/stakeholders. (hint: I do not work in an agile environment) How do you report your project status? [1]: http://www.onepageprojectmanager.com/oppm/resource.html
0
[ 2, 184, 107, 42, 1330, 154, 669, 1782, 60, 800, 3726, 3726, 871, 31, 275, 14, 636, 7, 849, 2478, 669, 169, 1674, 7, 20700, 22894, 500, 2558, 165, 500, 26, 669, 1782, 2813, 9, 32, 1588, 21, 14740, 16, 236, 877, 22, 18, 170, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The effect of static properties in a web context === I need to change a static property on an object in our web application. The property has a default value that is hard-coded into the object. If I change the static property in my Application_Start does that change stick: A) Forever (well, until the app is recycled) B) Until the object is GC'd then re-inialised by the next accessor C) Depends Note that the property I'd be setting is just a String
0
[ 2, 14, 1590, 16, 12038, 3704, 19, 21, 2741, 4141, 800, 3726, 3726, 31, 376, 20, 753, 21, 12038, 1354, 27, 40, 3095, 19, 318, 2741, 3010, 9, 14, 1354, 63, 21, 12838, 1923, 30, 25, 552, 8, 22254, 77, 14, 3095, 9, 100, 31, 753, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get log4net's SmtpPickupDirAppender to use the IIS pickup directory? === I'm using log4net in my web site and, due to the nature of the live server I deploy to, my mail settings are using deliveryMethod="PickupDirectoryFromIis". I need find an equivalent way of configuring log4net to do the same thing. I can see from the docs that there is an SmtpPickupDirAppender, which has a pickupDir setting. If I set this to whatever pickup directory IIS uses, I'm sure everything will work OK. However what I really want is to just tell log4net to use IIS's setting and leave it there. That way if it ever changes we won't have to change the log4net config too, something we're likely to forget. Is there a way to do this?
0
[ 2, 184, 107, 42, 164, 6738, 300, 2328, 22, 18, 7613, 13726, 16855, 576, 9035, 22358, 1157, 20, 275, 14, 595, 18, 15181, 16755, 60, 800, 3726, 3726, 31, 22, 79, 568, 6738, 300, 2328, 19, 51, 2741, 689, 17, 15, 397, 20, 14, 1444, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Windows 'dir' command, Order By Name AND <something> === Greetings, From the screenie below we can see a directory ordered by Name in Windows Explorer: ![IExplorer][1] *Edit: Didnt work -> * [Link][2] If I try the same thing in MS-DOS it orders by name differently - *correctly*: dir *.jpg /ON /B cubierta.jpg pag00.jpg pag06.jpg pag08.jpg pag09.jpg pag100.jpg pag101.jpg pag102.jpg pag103.jpg pag104.jpg pag105.jpg pag106.jpg pag107.jpg pag108.jpg pag109.jpg pag11.jpg, etc, etc, etc, ... Is there a way to get MSDOS to order by Name where it reads the numbers as a human would do? Thanks! [1]: http://img112.imageshack.us/img112/2888/snapvb3.jpg [2]: http://img112.imageshack.us/my.php?image=snapvb3.jpg
0
[ 2, 1936, 13, 22, 9035, 22, 1202, 15, 389, 34, 204, 17, 13, 1, 9099, 1, 800, 3726, 3726, 13769, 18, 15, 37, 14, 2324, 660, 1021, 95, 92, 196, 21, 16755, 1905, 34, 204, 19, 1936, 8520, 45, 13, 187, 2558, 49, 6899, 7386, 106, 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...
JPA Composite Key + Sequence === Is it possible in plain JPA or JPA+Hibernate extensions to declare a composite key, where an element of the composite key is a sequence? This is my composite class: @Embeddable public class IntegrationEJBPk implements Serializable { //... @ManyToOne(cascade = {}, fetch = FetchType.EAGER) @JoinColumn(name = "APPLICATION") public ApplicationEJB getApplication() { return application; } @Column(name = "ENTITY", unique = false, nullable = false, insertable = true, updatable = true) public String getEntity() { return entity; } @GeneratedValue(strategy = GenerationType.AUTO, generator = "INTEGRATION_ID_GEN") @SequenceGenerator(name = "INTEGRATION_ID_GEN", sequenceName = "OMP_INTEGRATION_CANONICAL_SEQ") @Column(name = "CANONICAL_ID", unique = false, nullable = false, insertable = true, updatable = true) public String getCanonicalId() { return canonicalId; } @Column(name = "NATIVE_ID", unique = false, nullable = false, insertable = true, updatable = true) public String getNativeId() { return nativeId; } @Column(name = "NATIVE_KEY", unique = false, nullable = false, insertable = true, updatable = true) public String getNativeKey() { return nativeKey; } //... } I already supply the values for `application`, `entity`, `nativeId` and `nativeKey`. I want to construct an entity like the one below: IntegrationEJB i1 = new IntegrationEJB(); i1.setIntegrationId(new IntegrationEJBPk()); i1.getIntegrationId().setApplication(app1); i1.getIntegrationId().setEntity("Entity"); i1.getIntegrationId().setNativeId("Nid"); i1.getIntegrationId().setNativeKey("NK"); And when I call `em.persist(i1`), I want that the `canonicalId` is generated and the integration is inserted. Is this possible? If so, what's the simple way? (I prefer not to use application-provided keys or native sql).
0
[ 2, 487, 1060, 12639, 1246, 2754, 4030, 800, 3726, 3726, 25, 32, 938, 19, 3748, 487, 1060, 54, 487, 1060, 2430, 8630, 106, 8820, 17529, 20, 10123, 21, 12639, 1246, 15, 113, 40, 4520, 16, 14, 12639, 1246, 25, 21, 4030, 60, 48, 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...
Terminalfour site manager - Content Management System === I am about to start a project, ongoing actually for the next 2 years where we as an organisation will be implementing [TerminalFour Site Manager][1] I am basically after any advice or support if anyone has used this piece of software, and what they think about it. So far, apart from it being clearly not the prettiest of interfaces, it does seem that it can handle the majority of basic website editing etc quite well. I do see limitations though when it comes to custom built templates and linking with external data, RSS, MySQL tables and the like. So as mentioned, if anyone else has used it or is going to use, what are your thoughts? Thanks [1]: http://www.terminalfour.com/content-management-system/
0
[ 2, 3855, 4882, 689, 1382, 13, 8, 2331, 1097, 329, 800, 3726, 3726, 31, 589, 88, 20, 799, 21, 669, 15, 6748, 1121, 26, 14, 328, 172, 122, 113, 95, 28, 40, 4080, 129, 44, 17333, 636, 20907, 4882, 689, 1382, 500, 2558, 165, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Comparison of c++ unit test frameworks === I know there are already a few questions regarding recomendations for c++ unit test frameworks, but all the answers did not help as they just recomend one of the frameworks but do not provide any information about a (feature) comparison. I think the most interesting frameworks are CppUnit, Boost and the new Google testing framework. Has anybody done any comparison yet?
0
[ 2, 6050, 16, 272, 20512, 1237, 1289, 6596, 18, 800, 3726, 3726, 31, 143, 80, 50, 614, 21, 310, 2346, 3467, 302, 960, 2451, 7504, 26, 272, 20512, 1237, 1289, 6596, 18, 15, 47, 65, 14, 6709, 144, 52, 448, 28, 59, 114, 302, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 rollback changes made to a bound DataGridView? === I have a DataGridView with its datasource set to a generic list of custom objects. As the user changes values (in this case checks/unchecks a check box) the underlying boolean field in the object changes. Should I be creating a "copy" of the List for binding, then updating manually if the user commits, (if so how do you create this copy), or is there a simple way to rollback changes made to the datasource. (I'm using C#)
0
[ 2, 184, 107, 42, 3001, 1958, 1693, 117, 20, 21, 4138, 1054, 16375, 4725, 60, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 4725, 29, 82, 1054, 12097, 309, 20, 21, 12733, 968, 16, 5816, 3916, 9, 28, 14, 4155, 1693, 4070, 13, 5, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Downsides to using Int64 universally instead of int (c#) === We use a base entity with properties such as version(datetime needed for nhibernate) and guid(as key). It also has an Id (int) field with two functions. Firstly to relate to legacy application key if there is one. Secondly as a shorthand code: for instance files are sometimes created based on these which would look ugly and long using our guid key. My question is not really about pros and cons of base entities but about up-typing this Id to Int64? It would not affect how it is stored within our MS SQL db. It would have more cost in our cache and memory and ?. Is this really that much of a worry? Interested to hear other downsides besides performance. Consider also these values will probably be exposed through web services to third parties in time too. The alternative is to deal with the exceptions of larger integers as they arise and implement them specifically in derived entities. Downside is this would need to be done in code and what would we do when we discover some cases when in production of larger integers? There would of course be input validation to stop actual errors but it may restrict expanding data.
0
[ 2, 125, 1416, 18, 20, 568, 19, 38, 3470, 24365, 700, 16, 19, 38, 13, 5, 150, 5910, 6, 800, 3726, 3726, 95, 275, 21, 1000, 9252, 29, 3704, 145, 28, 615, 5, 8209, 891, 851, 26, 12109, 15191, 8820, 6, 17, 9457, 43, 5, 472, 1246...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
FLEX3, Click and event catching, special case === Here is my problem: I have a main canvas 'blackboard' in a panel, this canvas has itself several childs, like a toolbar (tiles), a label and some skinning. The problem is that when i move to the rectangle tool and i start drawing rectangles if i want to change the tool when i click on an other tool such as 'circle' or 'select' the button won't catch the click event, intead the canvas will catch the mouse down and start drawing. Just like on the picture.So i am unable to change tool once i start drawing. ![alt text][1] [1]: http://www.freeimagehosting.net/uploads/397a7cd49e.png How could i not make the canvas react when it is on a tool, or how could i make the button catch the click first and tell the canvas no to do draw anything. Of course i could just put the toolbar somewhere else not on the canvas, but since space is important i would like the buttons to be on the canvas. I am open to any suggestions. === Here are some code to show how it works internaly. === <?xml version="1.0" encoding="utf-8"?> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:degrafa="http://www.degrafa.com/2007" xmlns:comp="org.foo.bar.view.components.*" layout="absolute" title="Tableau"> <mx:Script> <![CDATA[ import org.edorado.edoboard.ApplicationFacade; ]]> </mx:Script> <mx:Canvas id="blackBoard"> <degrafa:Surface id="boardSurfaceContainer"> skinning </degrafa:Surface> <!-- Tool bar --> <comp:ToolbarView id = "toolbar" name = "toolbar" verticalScrollPolicy="off" horizontalScrollPolicy="off" bottom="5" right="5" top="5" direction="vertical" width="30" /> <mx:Label x="10" y="10" text="Label" color="#FFFFFF" id="lbl"/> </mx:Canvas> </mx:Panel> The toolbar is a list of buttons contained in a tile. The canvas 'blackboard' is linked to several events handling, in particular mouse up down and move for drawing shapes. ... boardCanvas.addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown); boardCanvas.addEventListener(MouseEvent.MOUSE_UP, handleMouseUp); ... private function handleMouseDown(event:MouseEvent):void { // Get the current mouse location wich may be adjusted to the grid var selectPoint:Point = boardCanvas.globalToLocal(new Point(event.stageX, event.stageY)); startPoint = snapPoint(selectPoint.x, selectPoint.y); boardView.lbl.text = '(' + startPoint.x +',' + startPoint.y + ')'; .... The toolbar also listen to clicks <?xml version="1.0" encoding="utf-8"?> <mx:Tile xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.charts.BubbleChart; import org.edorado.edoboard.view.components.shapes.*; public static const TOOL_CHANGE:String = "toolChange"; public static const TEXT_TOOL:String = "textTool"; public static const SELECT_TOOL:String = "selectTool"; public static const RECTANGLE_TOOL:String = "rectangleTool"; private var b:Button = null; private function handleButtonClick(event:MouseEvent):void { trace("CLICKED TOOL"); // selectButton.dispatchEvent(new Event(TOOL_CHANGE, true, true)) b = event.target as Button; b.dispatchEvent(new Event(TOOL_CHANGE, true, true)); } ]]> </mx:Script> <!-- Use class facotry ? --> <mx:Button id="selectButton" name="{SELECT_TOOL}" selectedUpSkin="assets.skins.ToolButtonSkin" width="30" height="30" styleName="selectButton" toolTip="selection" click="handleButtonClick(event); " /> <mx:Button id="textButton" name = "{TEXT_TOOL}" selectedUpSkin="assets.skins.ToolButtonSkin" width="30" height="30" styleName="textButton" toolTip="text" click="handleButtonClick(event);" /> <mx:Button id="rectButton" name = "{RECTANGLE_TOOL}" selectedUpSkin="assets.skins.ToolButtonSkin" width="30" height="30" styleName="rectButton" toolTip="rectButton" click="handleButtonClick(event);" /> </mx:Tile>
0
[ 2, 14409, 240, 15, 10840, 17, 807, 9436, 15, 621, 610, 800, 3726, 3726, 235, 25, 51, 1448, 45, 31, 57, 21, 407, 9696, 13, 22, 5485, 2806, 22, 19, 21, 4113, 15, 48, 9696, 63, 1145, 238, 850, 18, 15, 101, 21, 5607, 1850, 13, 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...
Best tools to monitor Tomcat === I'm searching free tools for monitor tomcat (traffic, memory usage, threads, requests, CPU, logs,...). I'm currently using **lambdaprobe** on Tomcat 5.5.x, but it seems that is no more developed (or not? the site [lambdaprobe.org][1] is always down for me...). Has someone good experiences to share? In lambdaprobe there are some info available only if tomcat is instrumented with JMX. Well, JMX is something of strange and mysterious for me. Is a good solution in a production server? It's worth to spend my (little) time to learn it? [1]: http://www.lambdaprobe.org
4
[ 2, 246, 4672, 20, 7626, 2067, 5782, 800, 3726, 3726, 31, 22, 79, 5792, 551, 4672, 26, 7626, 2067, 5782, 13, 5, 1939, 2460, 596, 15, 1912, 7514, 15, 20396, 15, 12279, 15, 17578, 15, 18893, 15, 9, 9, 9, 6, 9, 31, 22, 79, 871, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
nHibernate session and multithreading === I had a method with a lot of persistence calls that used a nHibernate session, it worked, was alright. But I needed to refactor this method, extracting a method from a content inside a loop, for multithread reasons. Then I created an class with this method. It is like a normal refactoring, but the nHibernate session inside this method call is broken, without context, I didn't finalize it at any moment. **Has nHibernate problems with multithreading?** Even when I have only one more thread executing, I have the same problem. ---------- Making it a little bit more clear: **BEFORE:** Method() { ... persistence calls foreach(Thing..) { ...persistence calls for each thing (1) } ... } **AFTER:** Method() { ... persistence calls foreach(Thing..) { create a thingResolver object with some data open a new thread with thingResolver.Method (1) starts this thread } .. waits for finishing threads and continues }
0
[ 2, 12109, 15191, 8820, 3723, 17, 1889, 96, 22883, 800, 3726, 3726, 31, 41, 21, 2109, 29, 21, 865, 16, 28584, 3029, 30, 147, 21, 12109, 15191, 8820, 3723, 15, 32, 577, 15, 23, 11885, 9, 47, 31, 851, 20, 302, 17455, 48, 2109, 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...
Does XFire SOAP server can send HTTP REDIRECT 301 to client? === Is it possible to send HTTP REDIRECT code from inside XFire SOAP server instead of response? I need this in order to redirect client to another server based on some checking of method parameters. Also, is redirect handling something that major SOAP clients support? I know for HttpClient, but am not sure about .Net clients.
0
[ 2, 630, 993, 5929, 6447, 8128, 92, 2660, 7775, 302, 14706, 13, 18979, 20, 6819, 60, 800, 3726, 3726, 25, 32, 938, 20, 2660, 7775, 302, 14706, 1797, 37, 572, 993, 5929, 6447, 8128, 700, 16, 1627, 60, 31, 376, 48, 19, 389, 20, 302...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 OnVScroll() method enters only once? === I design a class which derives from CScrollBar in a dialog-based MFC application. In the dialog class (MyScrollbarDlg), I set the ON_WM_VSCROLL message and declare the OnVSCroll method in the .h file. I also Implement the OnVScroll() method in the corresponding .cpp file. But to my surprise, when I click the arrow at the buttom of of the scrollbar, it only did its work at the first time. I want to debug my code, so I set a break point in the OnVScroll method. Then strange thing happened. The break point was only arrived at the first click. When I continue, the scrollbar disappeared from the dialog! I've no idea how this could happen. Could anyone help me to fix this annoying bug? Thank you very much!
0
[ 2, 483, 27, 710, 3862, 8694, 5, 6, 2109, 8104, 104, 382, 60, 800, 3726, 3726, 31, 704, 21, 718, 56, 13049, 37, 272, 3862, 8694, 1850, 19, 21, 28223, 8, 1281, 307, 7061, 3010, 9, 19, 14, 28223, 718, 13, 5, 915, 3862, 8694, 1850...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending Emails as a "batch execution job" === I do not have any experience in web based development(neither client side nor server s ide code). since long time i had a question as to if anything like below is possible to do: 1.) I have say 10 attachments 1.zip to 10.zip on my desktop. 2.) I need to send all of these as an attachment using any web based email (I need to send out these mails using my gmail) 3.)At a time lets say i can attach only 1 file. 1.zip per email(attachment size limitations) 4.)At present i have to do the task of sending these files as attachments, repeatedly with lot of manual intervention, i.e. attach one file, type the sender email id, and click send. Wait till the email is sent(It takes around 4-5 minutes for the email to be sent) Then attach second file, and repeat the steps above. 5.) So i was wondering if is it possible to automate this process by somekind of Plugin/Code extension to:- a.) Internet Explorer b.) Mozilla firefox (greasemonkey based extensions) Any pointers, -AD
0
[ 2, 4907, 8517, 18, 28, 21, 13, 7, 4900, 673, 5769, 1205, 7, 800, 3726, 3726, 31, 107, 52, 57, 186, 1496, 19, 2741, 432, 522, 5, 25994, 6819, 270, 2127, 8128, 13, 18, 13, 3448, 1797, 6, 9, 179, 175, 85, 31, 41, 21, 1301, 28, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Excluding file types in Eclipse / Aptana find in files search === Is there a way to exclude say, image types in Aptana or Eclipse file search? I want to search all files that are not images rather than specifying all the file types that I want to search in.
0
[ 2, 13, 14938, 3893, 2551, 19, 11652, 13, 118, 8442, 9068, 477, 19, 6488, 2122, 800, 3726, 3726, 25, 80, 21, 161, 20, 21077, 395, 15, 1961, 2551, 19, 8442, 9068, 54, 11652, 3893, 2122, 60, 31, 259, 20, 2122, 65, 6488, 30, 50, 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, 0, 0...
Effort Spent on Designing, Implementing and Maintaining CRUD. === What percentage of your total development effort do you spend on implementing and naintaining simple Create, Read, Update and Delete (CRUD) methods in your data access layer? Does moving to an ORM like Hibernate or Entity Framework lead to significant savings? Are there any design smells which let you know when moving to an ORM for your data access layer is a good choice? Kind regards, Ashish
0
[ 2, 2150, 1111, 27, 15026, 15, 17333, 17, 8215, 11498, 43, 9, 800, 3726, 3726, 98, 5780, 16, 154, 600, 522, 2150, 107, 42, 3256, 27, 17333, 17, 1775, 108, 5851, 68, 1935, 1600, 15, 1302, 15, 11100, 17, 27448, 13, 5, 13057, 43, 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...
HTML <select> what is the name of on select event? === Does the HTML "select" element have an on select event? what exactly is the name of the event?
0
[ 2, 13, 15895, 13, 1, 18, 16964, 1, 98, 25, 14, 204, 16, 27, 5407, 807, 60, 800, 3726, 3726, 630, 14, 13, 15895, 13, 7, 18, 16964, 7, 4520, 57, 40, 27, 5407, 807, 60, 98, 1890, 25, 14, 204, 16, 14, 807, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Strongly Typed Resources Causing Problems? === In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting: > Could not find any resources > appropriate for the specified culture > or the neutral culture. Make sure > "MyProject.Common.ResourceManagement.resources" > was correctly embedded or linked into > assembly "MyProject.Common" at compile > time, or that all the satellite > assemblies required are loadable and > fully signed. Which is from a MissingManifestResourceException I beleive. http://msdn.microsoft.com/en-us/library/system.resources.missingmanifestresourceexception.aspx I've looked up a couple of the solutions: - http://weblogs.asp.net/ngur/archive/2003/12/28/46219.aspx - http://jameswho.blogspot.com/2004/06/missingmanifestresourceexception.html - http://support.microsoft.com/kb/318603 But none of them seem relevant to my situation. Any ideas? This has been bugging me for a few days now. Am I doing something stupid?
0
[ 2, 5020, 1001, 43, 2566, 3242, 1716, 60, 800, 3726, 3726, 19, 14, 772, 16, 109, 302, 17455, 68, 17, 31, 22, 195, 385, 21, 2566, 3893, 37, 53, 669, 20, 226, 9, 31, 277, 31, 15802, 21, 3590, 2497, 55, 20, 5020, 1001, 14, 6577, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 through XML elements in XmlReader === I'm building an application that needs to run through an XML feed but I'm having a little trouble with getting certain elements. I'm using the [Twitter feed][1] and want to run through all the `<item>` elements. I can connect fine and get the content from the feed but I can't figure out how to select only the `item` elements when I'm loopuing through `reader.Read();`. Thanks for your help! [1]: http://twitter.com/statuses/public_timeline.rss
0
[ 2, 2017, 18, 68, 120, 23504, 2065, 19, 23504, 10647, 106, 800, 3726, 3726, 31, 22, 79, 353, 40, 3010, 30, 2274, 20, 485, 120, 40, 23504, 4063, 47, 31, 22, 79, 452, 21, 265, 2572, 29, 1017, 1200, 2065, 9, 31, 22, 79, 568, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Non localized error messages in Asp.net === I've got a Polish version of Windows installed and therefore I get exception messages in Polish. Is there a way to make asp.net display error messages in English? Other than installing English version of Windows.
0
[ 2, 538, 24821, 7019, 7561, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 22, 195, 330, 21, 2283, 615, 16, 1936, 4066, 17, 1793, 31, 164, 5391, 7561, 19, 2283, 9, 25, 80, 21, 161, 20, 233, 28, 306, 9, 2328, 3042, 7019, 7561, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0...
Datamining open source software alternatives === I am evaluating datamining packages. <br/>I have find these two so far: <li><a href="http://rapid-i.com/content/blogcategory/38/69/">RapidMiner</a></li> <li><a href="http://www.cs.waikato.ac.nz/~ml/weka/">Weka</a></li> Do you have any experience to share with these two products, or any other product to recommend me? <br/>Thanks
0
[ 2, 1054, 2160, 68, 368, 1267, 2306, 2676, 18, 800, 3726, 3726, 31, 589, 26764, 1054, 2160, 68, 16875, 9, 13, 1, 5145, 118, 1, 49, 57, 477, 158, 81, 86, 463, 45, 13, 1, 1210, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 525, 11031,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Finding difference in row count of two tables in MySQL === I have two tables, one stores the products and quantity we have bought, the other stores the sells. The current stock is therefore the sum of all the quantity columns in the bought table minus the number of rows in the sells table. How can this be expressed in MySQL. Remember that there are many different products.
0
[ 2, 3007, 2841, 19, 3131, 2468, 16, 81, 7484, 19, 51, 18, 22402, 800, 3726, 3726, 31, 57, 81, 7484, 15, 53, 4134, 14, 1985, 17, 12881, 95, 57, 2448, 15, 14, 89, 4134, 14, 18339, 9, 14, 866, 2070, 25, 1793, 14, 3907, 16, 65, 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...
Web.Config Falling back to Global Config in Web Farm === This problem has several of us stumped in the office. We are all new to deploying ASP.NET apps to a web farm, and I am fresh out of ideas. We have a web farm, and the application is copied on to all of them. However, we are having a problem.. An exception is being thrown when trying to get settings from `appSettings`. Upon further investigation, it turns out the node is actually not using the local `Web.Config` but it falling back to the `Web.Config` in the .NET framework folder (we have proved this by adding keys there, which appear on a test page). I must be missing something, because my understanding is that so long as the file is there, IIS should use that! One of the servers seems to work fine! Here's a list of what we have confirmed: * The config file is in the app directory. * Said file's content is correct. * When viewing the file from IIS > Site > Properties > ASP.NET > Edit Config the correct content is shown. However, at run-time the file that is used is the global one (`windows\ms .net\framework\v2\config\web.config`). Anyone have any suggestions as to what may be going wrong? Appreciate all the help I can get! Thanks. Rob
0
[ 2, 2741, 9, 14093, 2816, 3106, 97, 20, 2062, 13, 14093, 2816, 19, 2741, 1937, 800, 3726, 3726, 48, 1448, 63, 238, 16, 182, 15781, 69, 19, 14, 488, 9, 95, 50, 65, 78, 20, 17617, 68, 28, 306, 9, 2328, 4865, 18, 20, 21, 2741, 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...
Why does addition of long variables cause concatenation? === What does Java do with long variables while performing addition? Wrong version 1: Vector speeds = ... //whatever, speeds.size() returns 2 long estimated = 1l; long time = speeds.size() + estimated; // time = 21; string concatenation?? Wrong version 2: Vector speeds = ... //whatever, speeds.size() returns 2 long estimated = 1l; long time = estimated + speeds.size(); // time = 12; string concatenation?? Correct version: Vector speeds = ... //whatever, speeds.size() returns 2 long estimated = 1l; long size = speeds.size(); long time = size + estimated; // time = 3; correct I don't get it, why Java concatenate them. Can anybody help me, why two primitive variables are concatenated? Greetings, guerda
0
[ 2, 483, 630, 848, 16, 175, 12157, 1679, 1065, 9530, 7914, 60, 800, 3726, 3726, 98, 630, 8247, 107, 29, 175, 12157, 133, 2955, 848, 60, 1389, 615, 6352, 7497, 13261, 800, 13, 9, 9, 9, 12894, 13515, 15, 13261, 9, 10454, 5, 6, 4815...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Load XML containing 300 elements for each record into db === So I have this large XML file containing 300+ elements for each record and I need to insert these records into a database table. The name of the nodes in the XML file are the same as the column names in the db. And they're all strings. Is there an automatic way to map them and insert the data or will I have to write out lines of code mapping each column to each element in XML file?
0
[ 2, 6305, 23504, 3503, 3565, 2065, 26, 206, 571, 77, 13, 9007, 800, 3726, 3726, 86, 31, 57, 48, 370, 23504, 3893, 3503, 3565, 2430, 2065, 26, 206, 571, 17, 31, 376, 20, 14692, 158, 742, 77, 21, 6018, 859, 9, 14, 204, 16, 14, 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...
Response.Redirect strips Header Referrer - Possible to Add it Back? === I'm using a Response.Redirect to redirect users to another server to download a file, and the other server is checking the header to ensure it came from the correct server... however it seems Response.Redirect strips the headers from the Response. Does anybody know how i can add the headers back? I've tried: Response.AddHeader("Referer", "www.domain.com"); But the receiving page tests false when i check if the Referrer header is set. Any suggestions how i can get this working, other than displaying a button for the user to click on (i'd like to keep the url hidden from the user as much as possible) thanks greg
0
[ 2, 1627, 9, 99, 14706, 15383, 157, 106, 5017, 99, 139, 13, 8, 938, 20, 3547, 32, 97, 60, 800, 3726, 3726, 31, 22, 79, 568, 21, 1627, 9, 99, 14706, 20, 302, 14706, 3878, 20, 226, 8128, 20, 7121, 21, 3893, 15, 17, 14, 89, 8128...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set the PYTHONPATH in emacs === Emacs does not recognize my correct python path. I think it is a general problem with emacs not recognizing my environment variables. I have GNU Emacs 22.1.1 (i386-apple-darwin8.9.1, Carbon Version 1.6.0) of 2007-06-17 installed. I have set the PYTHONPATH in my ~/.bashrc. Maybe I should set it somewhere else?
0
[ 2, 184, 20, 309, 14, 20059, 8353, 19, 13, 62, 6893, 18, 800, 3726, 3726, 13, 62, 6893, 18, 630, 52, 5844, 51, 4456, 20059, 2013, 9, 31, 277, 32, 25, 21, 297, 1448, 29, 13, 62, 6893, 18, 52, 17206, 51, 2307, 12157, 9, 31, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 create EPS files in C#? === How can I create EPS files in C#? Are there any opensource libraries available or do I have to resort to [the spec](http://www.adobe.com/devnet/postscript/pdfs/5002.EPSF_Spec.pdf) and do it by hand?
0
[ 2, 184, 92, 31, 1600, 2579, 18, 6488, 19, 272, 5910, 60, 800, 3726, 3726, 184, 92, 31, 1600, 2579, 18, 6488, 19, 272, 5910, 60, 50, 80, 186, 368, 12097, 8649, 904, 54, 107, 31, 57, 20, 4765, 20, 636, 124, 12737, 500, 5, 21127,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
WebSphere Portal v.5.1 and AJP? === is there a way to configure WebSphere Portal to accept AJP connections? E.g. Tomcat/JBoss and Oracle have a specific AJP port. I can't find it in WebSphere, and I'm getting tired of Googlin' around IBM pages. Thank you in forward... Balint
0
[ 2, 2741, 14079, 8281, 566, 9, 264, 9, 165, 17, 21, 12851, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 1065, 15951, 2741, 14079, 8281, 20, 3440, 21, 12851, 6760, 60, 13, 62, 9, 263, 9, 2067, 5782, 118, 728, 10349, 18, 17, 15759, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dynamic rendering of webpage for logged in users only === When a user logs in to my site I want a css styled button to appear (this could be anything really, i.e. some special news text item etc), how can you do this via masterpages in asp.net? Or is there some other way you do this?
0
[ 2, 7782, 15307, 16, 2741, 6486, 26, 13, 19287, 19, 3878, 104, 800, 3726, 3726, 76, 21, 4155, 18893, 19, 20, 51, 689, 31, 259, 21, 272, 18, 18, 1034, 43, 5167, 20, 1893, 13, 5, 1565, 110, 44, 602, 510, 15, 31, 9, 62, 9, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Self-owned objects in Objective-C Garbage Collection === I'm wondering what are the recommended ways to handle situations where, in memory managed code, object didn't belong to any particular owner, i.e. objects released themselves. One such example could be a subclass of NSWindowController, which configures, displays and manages input and output of a single window. The controller object displays a window and releases itself later at some point (usually when the window or sheet it manages is closed). AppKit provides couple examples as well: NSAnimation retains itself in startAnimation and releases itself when the animation is done. Another example is NSWindow, which can be configured to release itself when closed. When implementing these "self-owned" objects myself, I see at least three different GC-safe patterns, but all of them have some drawbacks. a). Using CFRetain/CFRelease. Self-owned object calls CFRetain on self before it starts its operation (e.g. in the window controller example before the window is displayed). It then calls CFRelease() on self when it's done (e.g. in the window controller example after the window is closed). Pros: User of the object doesn't have to worry about memory management. Cons: I bit ugly, since requires use of memory management functions, although we're using GC in pure ObjC code. If CFRetain() isn't called, leak may be hard to locate. b). Avoiding self-ownership idiom with static data structure. Object adds itself into a data structure (e.g. a static mutable array) before it starts its operation and removes itself from there when it's done. Pros: User of the object doesn't have to worry about memory management. No calls to memory management functions. Objects have explicit owner. Potential leaks are easy to locate. Cons: Locking is needed if objects may be created from different threads. Extra data structure. c). Avoiding self-ownership idiom by requiring the user of object to save a reference to the object (e.g. into an ivar). Pros: No calls to memory management functions. Objects have explicit owner. Cons: User of the object has to keep a reference even if it doesn't need the object anymore. Extra ivars. What pattern would you use to handle these cases?
0
[ 2, 1119, 8, 6863, 3916, 19, 7038, 8, 150, 15024, 1206, 800, 3726, 3726, 31, 22, 79, 5712, 98, 50, 14, 5773, 2847, 20, 3053, 8329, 113, 15, 19, 1912, 1471, 1797, 15, 3095, 223, 22, 38, 6219, 20, 186, 1498, 2410, 15, 31, 9, 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...
UIImage and UILabel outside UiTableView === look at this image: ![alt text][1] [1]: http://img139.imageshack.us/img139/4488/picture2ep3.png I know how to add UITableView with grouped style and how to add label in any table cell. But how can I add image and labels on top on the view, like screen.
0
[ 2, 13, 5661, 22039, 17, 13, 5661, 21018, 719, 13, 11193, 579, 4725, 800, 3726, 3726, 361, 35, 48, 1961, 45, 13, 187, 2558, 192, 38, 1854, 500, 2558, 165, 500, 636, 165, 500, 45, 7775, 6903, 1660, 263, 14890, 9, 22039, 18, 22983, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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++ casting programatically : can it be done ? === Let's say I have a <strong>Base</strong> class and several <strong>Derived</strong> classes. Is there any way to cast an object to one of the derived classes without the need to write something like this : <pre><code> string typename = typeid(*object).name(); if(typename == "Derived1") { Derived1 *d1 = static_cast&lt Derived1*&gt(object); } else if(typename == "Derived2") { Derived2 *d2 = static_cast &lt Derived2*&gt(object); } ... else { ... } </code></pre>
0
[ 2, 272, 20512, 9087, 625, 721, 8438, 13, 45, 92, 32, 44, 677, 13, 60, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 21, 13, 1, 15004, 1, 8436, 1, 118, 15004, 1, 718, 17, 238, 13, 1, 15004, 1, 25891, 1, 118, 15004, 1, 2684, 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...
javac error "code too large"?? === I have a unit test where I have statically defined a quite large byte array (over 8000 bytes) as the byte data of a file I don't want to read every time I run my unit test. private static final byte[] FILE_DATA = new byte[] { 12,-2,123,................ } This compiles fine within Eclipse, but when compiling via Ant script I get the following error: [javac] C:\workspace\CCUnitTest\src\UnitTest.java:72: code too large [javac] private static final byte[] FILE_DATA = new byte[] { [javac] ^ Any ideas why and how I can avoid this?
0
[ 2, 8247, 150, 7019, 13, 7, 9375, 266, 370, 7, 60, 60, 800, 3726, 3726, 31, 57, 21, 1237, 1289, 113, 31, 57, 12038, 1326, 2811, 21, 1450, 370, 34, 591, 7718, 13, 5, 2549, 13, 28064, 34, 3231, 6, 28, 14, 34, 591, 1054, 16, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to write an ISAPI plugin? === Any links/Turorials avalable? I want to write a simple ISAPI plugin for IIS6.0. Prefered language c++
0
[ 2, 184, 20, 2757, 40, 25, 2552, 49, 10922, 108, 60, 800, 3726, 3726, 186, 6271, 118, 2517, 248, 2815, 18, 21, 3377, 579, 60, 31, 259, 20, 2757, 21, 1935, 25, 2552, 49, 10922, 108, 26, 595, 18, 379, 9, 387, 9, 6369, 69, 816, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
ASP.NET Session State Server - Saving Unserialized Data === As you know, in ASP.NET, you can store session data in one of following three modes: - InProc - Session State - SQL Server For InProc mode, you can store any kind of data objects even it's not serializable. However, in Session State and SQL Server modes, you can only store serialized data. In my project, I have a ready made portal which use "InProc" mode to store its session. I need to use Session State instead. The problem that this portal is internally storing unserialized objects in the session (i.e the objects doesn't implement ISerializable). I have no access to their code. Is there any work around so that I can be able to store the session in State Server without changing their code.
0
[ 2, 28, 306, 9, 2328, 3723, 146, 8128, 13, 8, 7599, 367, 4104, 2815, 1333, 1054, 800, 3726, 3726, 28, 42, 143, 15, 19, 28, 306, 9, 2328, 15, 42, 92, 1718, 3723, 1054, 19, 53, 16, 249, 132, 12770, 45, 13, 8, 19, 15617, 13, 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...
Can I find out which control events will fire during a ASP page cycle? === Is it possible to get a list of events that will fire early in the page life cycel say the `Page_Load`? For example if a button was clicked can I figure this out before the `button_click` event handler is called?
0
[ 2, 92, 31, 477, 70, 56, 569, 963, 129, 535, 112, 21, 28, 306, 2478, 4150, 60, 800, 3726, 3726, 25, 32, 938, 20, 164, 21, 968, 16, 963, 30, 129, 535, 274, 19, 14, 2478, 201, 6728, 11040, 395, 14, 13, 1, 6486, 1, 8294, 1, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 configure mod_rewrite to serve minified files, if available? === Here is the problem: we have lots of Javascripts and lots of CSS files, which we'd rather be serving minified. Minification is easy: set up the YUI Compressor, run an Ant task, and it spits out minified files, which we save beside the originals. So we end up with the following directory structure somewhere inside our DocumentRoot: <pre> / /js /min foo-min.js bar-min.js foo.js bar.js quux.js /css ... </pre> Now what we need is that Apache serve files from the **min** subdirectory, *and fallback to serving uncompressed files*, if their minified versions are not available. The last issue is the one I cannot solve. For example: suppose we have a request to **example.com/js/foo.js** — in this case Apache should send contents of **/js/min/foo-min.js**. There is no minified **quux.js**, so request to **/js/quux.js** returns **/js/quux.js** itself, not 404. Finally, if there is no **/js/fred.js**, it should end up with 404. Actually, I'm setting build scripts in such a way that unminified files are not deployed on the production server, but this configuration still might be useful on an integration server and on development machines.
0
[ 2, 184, 20, 1065, 15951, 7226, 1, 99, 23716, 20, 1884, 4232, 4462, 6488, 15, 100, 904, 60, 800, 3726, 3726, 235, 25, 14, 1448, 45, 95, 57, 7503, 16, 8247, 8741, 18, 17, 7503, 16, 272, 18, 18, 6488, 15, 56, 95, 22, 43, 864, 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...
How would you identify a user's most active sections? === On a website, everything is tagged with keywords assigned by the staff (it's not a community driven site, due to its nature). I am able to determine which tags a user is most active in (or, what tags they view the most). However, I'm not entirely sure how to choose the list. A few options present themselves, but they don't seem right to me. My options, that I have determined, are: - Take the top n (or m < n if they have fewer than n viewed tags) tags - Take the top n tags where n is a percentage of the total tags viewed - Take the top n tags with m views where n and m are percentages of total tags viewed and total page views - Take all of the tags, regardless of views The goal is to identify what is most interesting to the user and show them other things that they might be interested in, with respect to the tags that are assigned to the content.
0
[ 2, 184, 83, 42, 5808, 21, 4155, 22, 18, 127, 1348, 4501, 60, 800, 3726, 3726, 27, 21, 2271, 15, 796, 25, 27945, 29, 1246, 12827, 2467, 34, 14, 1138, 13, 5, 242, 22, 18, 52, 21, 514, 5355, 689, 15, 397, 20, 82, 1444, 6, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you remove a value that has an empty key from an associative array in PHP? === I have a key that appears to be an empty string, however using `unset($array[""]);` does not remove the key/value pair. I don't see another function that does what I want, so I'm guessing it's more complicated that just calling a function.
0
[ 2, 184, 107, 42, 4681, 21, 1923, 30, 63, 40, 2424, 1246, 37, 40, 28, 18, 16325, 3366, 7718, 19, 13, 26120, 60, 800, 3726, 3726, 31, 57, 21, 1246, 30, 1780, 20, 44, 40, 2424, 3724, 15, 207, 568, 13, 1, 1020, 3554, 5, 4403, 85...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 write a conditional lock in C#? === The thing is I've been using the [lock statement][1] to protect a critical part of my code, but now, I realize I could allow concurrent execution of that critical code is some conditions are met. Is there a way to condition the lock? [1]: http://msdn.microsoft.com/en-us/library/c5kehkcz.aspx
0
[ 2, 184, 92, 31, 2757, 21, 21206, 3991, 19, 272, 5910, 60, 800, 3726, 3726, 14, 584, 25, 31, 22, 195, 74, 568, 14, 636, 3966, 3331, 500, 2558, 165, 500, 20, 2196, 21, 2507, 141, 16, 51, 1797, 15, 47, 130, 15, 31, 4007, 31, 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...
Straw Poll - K&R vs BSD === No holy wars please - (ultimately a standardised and consistently-observed house-style on a project always wins out whatever is chosen), but I am genuinely interested in the preferences of people for K&R style formatting: public bool CompareObjects(object first, object second) { if (first == second) { return true; } else { return false; } } over BSD style: public bool CompareObjects(object first, object second) { if (first == second) { return true; } else { return false; } } K&R seems to be making a bit of a comeback recently (I'm an old programmer, so I've seen these things fluctuate); do people think K&R looks more professional, more cool, more readable, is compactness when viewing more important than extending the structure down the screen?
4
[ 2, 12920, 4994, 13, 8, 680, 1569, 139, 4611, 334, 18, 43, 800, 3726, 3726, 90, 2496, 4822, 2247, 13, 8, 13, 5, 10368, 49, 5281, 102, 21, 1236, 2541, 17, 11852, 8, 4995, 20697, 191, 8, 4381, 27, 21, 669, 550, 4041, 70, 2099, 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...
SEO google keyword position tools? === My company wants us to check our google postions for several keywords every day and make a note in a spreadseet. At the moment, we have a student doing it but it's a rubbish job and it doesn't seem fair on them. Are there any tools available to automate this process? I have tried rankchecker by seobook.com, but althought that should be exactly what im looking for when i set scheduled tasks in that, it doesnt work. Any tips would be appreciated, thanks! peter
0
[ 2, 13, 18, 3894, 8144, 1246, 9587, 649, 4672, 60, 800, 3726, 3726, 51, 237, 2846, 182, 20, 2631, 318, 8144, 678, 5757, 26, 238, 1246, 12827, 352, 208, 17, 233, 21, 1945, 19, 21, 1789, 1798, 38, 9, 35, 14, 688, 15, 95, 57, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing input to a state machine (c#) === I'll try to explain my scenario as best i can; At each application *tick* I query the current state of the keyboard and mouse and wrap them in individual classes and data structures. For the keyboard it's an array of my *Keys* enum (one item for each of the keys that are currently pressed) and for the mouse it's a class containing coordinate delta's and bools for each buttons pressed. I also have a rudimentary state machine managed via a state manager class which maintains the stack and marshalls the states. All I want to know is, how best to pass the input (snapshots) to the individual states my app can be in at any one time? I would like to process as much of the input as possible away from the individual states, so as to reduce repeating logic within the states. Or would it be better to keep the input snapshots as pure as possible and pass them to the states so they can keep they're input-specific-logic hidden? **Note**<br/> This structure is similiar to how I imagine a game would work, and although this application is not a game it does need to be processed as quickly as possible.
0
[ 2, 2848, 6367, 20, 21, 146, 1940, 13, 5, 150, 5910, 6, 800, 3726, 3726, 31, 22, 211, 1131, 20, 3271, 51, 12705, 28, 246, 31, 92, 73, 35, 206, 3010, 1637, 38, 7030, 2483, 31, 25597, 14, 866, 146, 16, 14, 8896, 17, 7567, 17, 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...
How do I programmatically get a list of locked files under a folder structure? === Following up from this question: [How can I unlock a file that is locked by a process in .NET][1], how do I programmatically get a list of files that are locked in a particular folder and its subfolders? I'm using Windows 2003, .NET 3.5, C# 3.0. [1]: http://stackoverflow.com/questions/242882/how-can-i-unlock-a-file-that-is-locked-by-a-process-in-net
0
[ 2, 184, 107, 31, 625, 6732, 1326, 164, 21, 968, 16, 4011, 6488, 131, 21, 19294, 1411, 60, 800, 3726, 3726, 249, 71, 37, 48, 1301, 45, 636, 1544, 92, 31, 16497, 21, 3893, 30, 25, 4011, 34, 21, 953, 19, 13, 9, 2328, 500, 2558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mirroring Table Modifications === I have a set of tables that are used to track bills. These tables are loaded from an SSIS process that runs weekly. I am in the process of creating a second set of tables to track adjustments to the bills that are made via the web. Some of our clients hand key their bills and all of those entries need to be backed up on a more regular schedule (the SSIS fed data can always be imported again so it isn't backed up). Is there a best practice for this type of behavior? I'm looking at implementing a DDL trigger that will parse the ALTER TABLE call and change the table being called. This is somewhat painful, and I'm curious if there is a better way.
0
[ 2, 3402, 68, 859, 13922, 800, 3726, 3726, 31, 57, 21, 309, 16, 7484, 30, 50, 147, 20, 792, 8958, 9, 158, 7484, 50, 8572, 37, 40, 13, 18, 4557, 953, 30, 1461, 3481, 9, 31, 589, 19, 14, 953, 16, 2936, 21, 153, 309, 16, 7484, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between Creative Commons and GPL licensing? === I read the high level details on [CC-GNU GPL 2.0][1], and [Creative Commons used by SO][2]. I'm not a lawyer, so I'm not sure I get the specific pros and cons of each variation of open source license. What is the difference between the popular GPL's and Creative Commons' licenses in terms of what a software developer or company has to gain or lose by choosing particular terms when releasing an open source project? [1]: http://creativecommons.org/licenses/GPL/2.0/ [2]: http://creativecommons.org/licenses/by-sa/2.5/
0
[ 2, 98, 25, 14, 2841, 128, 4231, 8322, 17, 489, 5727, 15038, 60, 800, 3726, 3726, 31, 1302, 14, 183, 662, 3289, 27, 636, 3384, 8, 263, 4215, 489, 5727, 172, 9, 387, 500, 2558, 165, 500, 15, 17, 636, 6037, 3366, 8322, 147, 34, 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...
PHP Idioms? === I'm looking to improve my PHP coding and am wondering what PHP-specific techniques other programmers use to improve productivity or workaround PHP limitations. Some examples: 1. Class naming convention to handle namespaces: Part1_Part2_ClassName maps to file Part1/Part2/ClassName.php 2. if ( count($arrayName) ) // handles $arrayName being unset or empty 3. Variable function names, e.g. $func = 'foo'; $func($bar); // calls foo($bar);
0
[ 2, 13, 26120, 28380, 18, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 3545, 51, 13, 26120, 13, 15458, 17, 589, 5712, 98, 13, 26120, 8, 9219, 4212, 89, 17968, 18, 275, 20, 3545, 18211, 54, 170, 10037, 13, 26120, 14070, 9, 109, 3770,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 for Sharepoint 2003 using Visual Studio 2008? === Does anyone have experience with developing for Sharepoint 2003 using Visual Studio 2008? I need to upgrade to VS2008 because of Vista issues but need to support Sharepoint 2003 webparts. The webparts are all pretty simple. Will I be able to support those webparts using VS2008?
0
[ 2, 3561, 26, 1891, 3132, 973, 568, 3458, 1120, 570, 60, 800, 3726, 3726, 630, 1276, 57, 1496, 29, 3561, 26, 1891, 3132, 973, 568, 3458, 1120, 570, 60, 31, 376, 20, 9483, 20, 4611, 2753, 185, 16, 13520, 1549, 47, 376, 20, 555, 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 do I interpret a WSDL with references to a namespace java: on a non-java client? === I'm trying to integrate against a SOAP web service, running on Apache Axis. The WSDL specifies a namespace with a URI, that looks like: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:dk.tdc.serviceproviderweb.datatypes" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:dk.tdc.serviceproviderweb.datatypes"> On the client-side, I'm using PHP, so the namespace `xmlns:stns` is meaningless. I have some Java class files (and their sources), that seems to correspond to this namespace. How do I handle this in a meaningful way?
0
[ 2, 184, 107, 31, 11584, 21, 619, 18, 8643, 29, 7231, 20, 21, 204, 5582, 8247, 45, 27, 21, 538, 8, 1004, 1385, 6819, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 18399, 149, 21, 6447, 2741, 365, 15, 946, 27, 17140, 8577, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I fix the VS Debugger trying to connect to unconnected mapped drive. === When I have an unconnected mapped drive, the VSTS 2008 SP1 IDE debugger takes about 10 seconds to regain control. Needless to say single stepping is painful. Is there some setting to make this go away? I am debugging a mixed( C# / C++ / Web services ) program.
0
[ 2, 92, 31, 6098, 14, 4611, 121, 2345, 11356, 749, 20, 6379, 20, 367, 23520, 20877, 1493, 9, 800, 3726, 3726, 76, 31, 57, 40, 367, 23520, 20877, 1493, 15, 14, 566, 10044, 570, 3782, 165, 13, 3448, 121, 2345, 11356, 1384, 88, 332, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which coding style you use for ternary operator? === I keep it in single line, if it's short. Lately I've been using this style for longer or nested ternary operator expressions. A contrived example: $value = ( $a == $b ) ? 'true value # 1' : ( $a == $c ) ? 'true value # 2' : 'false value'; Personally which style you use, or find most readable?
0
[ 2, 56, 13, 15458, 1034, 42, 275, 26, 13, 8766, 1857, 6022, 60, 800, 3726, 3726, 31, 643, 32, 19, 345, 293, 15, 100, 32, 22, 18, 502, 9, 10434, 31, 22, 195, 74, 568, 48, 1034, 26, 1045, 54, 5618, 69, 13, 8766, 1857, 6022, 138...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Should we declare a public constructor when the class is declared as package private? === I think in this case there is no need to declare a public constructor since the class is not accessible outside the package anyway. But is there some hidden impact when the class has only package private constructor?
0
[ 2, 378, 95, 10123, 21, 317, 6960, 248, 76, 14, 718, 25, 2482, 28, 6030, 932, 60, 800, 3726, 3726, 31, 277, 19, 48, 610, 80, 25, 90, 376, 20, 10123, 21, 317, 6960, 248, 179, 14, 718, 25, 52, 7342, 719, 14, 6030, 2774, 9, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0...
ASP.NET UserControl Does Not Initialize Child Controls === Inside my page, I have the following: <aspe:UpdatePanel runat="server" ID="updatePanel"> <ContentTemplate> <local:KeywordSelector runat="server" ID="ksKeywords" /> </ContentTemplate> </aspe:UpdatePanel> The `KeywordSelector` control is a control I define in the same assembly and `local` is mapped to its namespace. The control is made up of several other controls and is defined as such: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KeywordSelector.ascx.cs" Inherits="Keywords.KeywordSelector" %> and has quite a few server controls of its own, all defined as members in the `.designer.cs` file. However, **during no part of the control's lifecycle does it have any child control objects nor does it produce HTML**: 1. All of the members defined in the `.designer.cs` file are `null`. 2. Calls to `HasControls` return `false`. 3. Calls to `EnsureChildControls` do nothing. 4. The `Controls` collection is empty. Removing the `UpdatePanel` did no good. I tried to reproduce it in a clean page with a new `UserControl` and the same thing happens. I am using ASP.NET over .NET Framework 3.5 SP1 with the integrated web server. What am I missing here?
0
[ 2, 28, 306, 9, 2328, 4155, 12898, 630, 52, 2104, 2952, 850, 8671, 800, 3726, 3726, 572, 51, 2478, 15, 31, 57, 14, 249, 45, 13, 1, 472, 1664, 45, 576, 8209, 3206, 532, 485, 721, 3726, 7, 10321, 106, 7, 4924, 3726, 7, 576, 8209,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Pointer-to-data-member-of-data-member === I had the following piece of code (simplified for this question): struct StyleInfo { int width; int height; }; typedef int (StyleInfo::*StyleInfoMember); void AddStyleInfoMembers(std::vector<StyleInfoMember>& members) { members.push_back(&StyleInfo::width); members.push_back(&StyleInfo::height); } Now, we had to restructure this a bit, and we did something like this: struct Rectangle { int width; int height; }; struct StyleInfo { Rectangle size; }; typedef int (StyleInfo::*StyleInfoMember); void AddStyleInfoMembers(std::vector<StyleInfoMember>& members) { members.push_back(&StyleInfo::size::width); members.push_back(&StyleInfo::size::height); } If this all looks like a stupid thing to do, or if you feel there's a good opportunity to apply BOOST here for some reason, I must warn you that I really simplified it all down to the problem at hand: > error C3083: 'size': the symbol to the left of a '::' must be a type The point I'm trying to make is that I don't know what the correct syntax is to use here. It might be that "StyleInfo" is not the correct type of take the address from to begin with, but in my project I can fix that sort of thing (there's a whole framework there). I simply don't know how to point to this member-within-a-member.
0
[ 2, 454, 106, 8, 262, 8, 18768, 8, 6990, 8, 1041, 8, 18768, 8, 6990, 800, 3726, 3726, 31, 41, 14, 249, 1855, 16, 1797, 13, 5, 11268, 26, 48, 1301, 6, 45, 13, 10346, 1034, 108, 4120, 13, 1, 19, 38, 9456, 73, 19, 38, 2947, 73...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Application Shutdown and Windows Error Reporting === we're attempting to update our application in order to submit it for Vista certification. Part of the requirements are to handle only known exceptions and have Windows Error Reporting deal with all unhandled exceptions. We have a global exception handler in our application (subscribed to the Application.ThreadException event) and in there we perform certain processing for known exceptions, but if an exception is unknown we wish to throw it out for the app to terminate and WER to handle. But we cannot see a way of doing this - rethrowing from within the eventhandler obviously results in the eventhandler being invoked recursively! We've looked at terminating via Environment.FailFast() but we don't believe that that gives the exception information we'd require. Are we missing something obvious? Thanks in advance, Graham
0
[ 2, 3010, 28450, 17, 1936, 7019, 6670, 800, 3726, 3726, 95, 22, 99, 6314, 20, 11100, 318, 3010, 19, 389, 20, 12298, 32, 26, 13520, 10439, 9, 141, 16, 14, 4786, 50, 20, 3053, 104, 167, 13392, 17, 57, 1936, 7019, 6670, 1183, 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...
How much more inefficient are text (blobs) than varchar/nvarchar's? === We're doing a lot of large, but straightforward forms for a fairly big project (about 600 users using it throughout the day - that's big for me at least ;-) ). The forms have a lot of question/answer type sections, so it's natural for some people to type a sentence, while others type a novel. **How beneficial would it be to put a character limit on some of these fields *really*?** (Please include references or citations, if necessary/possible - Thanks!)
0
[ 2, 184, 212, 91, 19, 23702, 50, 1854, 13, 5, 7091, 4562, 6, 119, 4033, 5433, 118, 103, 3311, 5433, 22, 18, 60, 800, 3726, 3726, 95, 22, 99, 845, 21, 865, 16, 370, 15, 47, 22262, 1997, 26, 21, 6647, 580, 669, 13, 5, 6901, 731...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 use custom animations for onOrderOut in Core Animation? === Core Animation allows for custom animations by implementing the actionForKey method in your CALayer based class: - (id<CAAction>)actionForKey:(NSString *)key { // Custom animations return [super actionForKey:key]; } I can then create an animation and return it for the `onOrderIn` action (i.e. when the layer is added to another layer). This works just fine. If I do the same for `onOrderOut` (i.e. the layer is removed from its superlayer), the returned animation is ignored, and the default animation is applied instead. My goal is to zoom the layer in (`onOrderIn`) and out (`onOrderOut`): - (id<CAAction>)actionForKey:(NSString *)key { if ([key isEqualToString:@"onOrderIn"] || [key isEqualToString:@"onOrderOut"]) { CABasicAnimation *a = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; a.duration = 0.25; a.removedOnCompletion = NO; a.fillMode = kCAFillModeBoth; if ([key isEqualToString:@"onOrderIn"]) { a.fromValue = [NSNumber numberWithFloat:0.0]; a.toValue = [NSNumber numberWithFloat:1.0]; } else { a.fromValue = [NSNumber numberWithFloat:1.0]; a.toValue = [NSNumber numberWithFloat:0.0]; } return a; } return [super actionForKey:key]; } Zooming in works, zooming out does not. Instead the default fade out animation is used. The code might contain some typos, as I'm typing this on another machine. Can anyone help?
0
[ 2, 184, 92, 31, 275, 5816, 6236, 18, 26, 27, 7861, 1320, 19, 2884, 6236, 60, 800, 3726, 3726, 2884, 6236, 2965, 26, 5816, 6236, 18, 34, 17333, 14, 1028, 1106, 4237, 2109, 19, 154, 1658, 15187, 432, 718, 45, 13, 8, 13, 5, 1340, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
compare data in a vb.net dataset with values in an array list === I'm looking for an efficient way of searching through a dataset to see if an item exists. I have an arraylist of ~6000 items and I need to determine which of those doesn't exist in the dataset by comparing each item within the arraylist with data in a particular column of the dataset. I attempted to loop through each item in the dataset for each in the arraylist but that took forever. I then attempted to use the RowFilter method below. None of which looks to be efficient. Any help is greatly appreciated, as you can tell I'm not much of a programmer... example: Dim alLDAPUsers As ArrayList alLDAPUsers = clsLDAP.selectAllStudents Dim curStu, maxStu As Integer maxStu = alLDAPUsers.Count For curStu = 0 To maxStu - 1 Dim DomainUsername As String = "" DomainUsername = alLDAPUsers.Item(curStu).ToString Dim filteredView As DataView filteredView = dsAllStudents.Tables(0).DefaultView filteredView.RowFilter = "" filteredView.RowFilter = "szvausr_un = '" & DomainUsername & "'" Dim returnedrows As Integer = filteredView.Count If returnedrows = 0 Then '' Delete the user... End If Next
0
[ 2, 11590, 1054, 19, 21, 13, 20468, 9, 2328, 1054, 3554, 29, 4070, 19, 40, 7718, 968, 800, 3726, 3726, 31, 22, 79, 699, 26, 40, 8243, 161, 16, 5792, 120, 21, 1054, 3554, 20, 196, 100, 40, 9101, 5636, 9, 31, 57, 40, 7718, 5739, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get a "busy wheel" on Windows Mobile 6? === Windows Mobile pops up a "busy wheel" - a rotating colour disk - when things are happening . I can't find in the documentation how this is done - can someone point me in the right direction? We have a situation where we need to prompt the user to say we're doing stuff for a while, but we don't know how long it will take. So we can't do a progress bar, hence the proposal to use this busy wheel.
0
[ 2, 184, 107, 31, 164, 21, 13, 7, 3822, 93, 3556, 7, 27, 1936, 3241, 400, 60, 800, 3726, 3726, 1936, 3241, 1675, 18, 71, 21, 13, 7, 3822, 93, 3556, 7, 13, 8, 21, 16164, 4609, 8582, 13, 8, 76, 564, 50, 4942, 13, 9, 31, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Unit testing abstract classes? === I was wondering what the best practice is for unit testing abstract classes and classes that extend abstract classes. Should I test the abstract class by extending it and stubbing out the abstract methods and then test all the concrete methods? Then only test the methods I override and the abstract methods in the unit tests for objects that extend my abstract class. Should I have an abstract test case that can be used to test the methods of the abstract class and extend this class in my test case for objects that extend the abstract class? I would be interested to see what people are using. Thanks Paul
0
[ 2, 246, 1345, 1237, 4431, 8502, 2684, 60, 800, 3726, 3726, 31, 23, 5712, 98, 14, 246, 1345, 25, 26, 1237, 4431, 8502, 2684, 17, 2684, 30, 7206, 8502, 2684, 9, 378, 31, 1289, 14, 8502, 718, 34, 8176, 32, 17, 21354, 8136, 70, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Aggregate GREATEST in T-SQL === My SQL is rusty -- I have a simple requirement to calculates the sum of the greater of two column values: CREATE TABLE [dbo].[Test] ( column1 int NOT NULL, column2 int NOT NULL ); insert into Test (column1, column2) values (2,3) insert into Test (column1, column2) values (6,3) insert into Test (column1, column2) values (4,6) insert into Test (column1, column2) values (9,1) insert into Test (column1, column2) values (5,8) In the absence of the GREATEST function in SQL Server, I can get the larger of the two columns with this: select column1, column2, (select max(c) from (select column1 as c union all select column2) as cs) Greatest from test And I was hoping that I could simply sum them thus: select sum((select max(c) from (select column1 as c union all select column2) as cs)) from test But no dice: Msg 130, Level 15, State 1, Line 7 Cannot perform an aggregate function on an expression containing an aggregate or a subquery. Is this possible in T-SQL without resorting to a procedure/temp table?
0
[ 2, 8544, 3023, 19, 13, 38, 8, 18, 22402, 800, 3726, 3726, 51, 4444, 255, 25, 15395, 13, 8, 8, 31, 57, 21, 1935, 8981, 20, 18469, 18, 14, 3907, 16, 14, 1894, 16, 81, 4698, 4070, 45, 1600, 859, 636, 43, 1192, 500, 9, 2558, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a class have no constructor? === A while back I asked about instantiating a HttpContext object. Now that I have learnt what I didn't know, what confuses me is that you cannot say HttpContext ctx = new HttpContext(); because the object does not have a constructor. But doesn't every class need a constructor? In C#, if you don't provide one, the compiler automatically provides a default cstr for you. Also, if I have a string (example: "Hello There!") and I say Convert.ToBoolean("Hello"), or any string, how does this work? What happens behind the scenes? I guess a book like CLR Via C# would be handy in this case. What am I missing?
0
[ 2, 184, 92, 21, 718, 57, 90, 6960, 248, 60, 800, 3726, 3726, 21, 133, 97, 31, 411, 88, 6322, 49, 1880, 21, 7775, 1126, 11969, 3095, 9, 130, 30, 31, 57, 2484, 38, 98, 31, 223, 22, 38, 143, 15, 98, 26465, 18, 55, 25, 30, 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...
How do you format the body of a JMS text message? === Does everyone just use XML in the message? Are there any good alternatives to XML?
0
[ 2, 184, 107, 42, 2595, 14, 358, 16, 21, 487, 79, 18, 1854, 2802, 60, 800, 3726, 3726, 630, 1266, 114, 275, 23504, 19, 14, 2802, 60, 50, 80, 186, 254, 2676, 18, 20, 23504, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Save State of a Direct3D Device === State should include at least the following: - All settings set via SetStreamResource() - Indices I have a class whose Draw() function will call SetStreamResource, set Indices and eventually call DrawIndexedPrimitive(). I would like to restore the device state before Draw() returns. I am looking for something along the lines of GDI's SaveDC()/RestoreDC().
0
[ 2, 2079, 146, 16, 21, 1744, 240, 43, 3646, 800, 3726, 3726, 146, 378, 468, 35, 639, 14, 249, 45, 13, 8, 65, 12410, 309, 1197, 309, 11260, 99, 12097, 5, 6, 13, 8, 19, 8779, 18, 31, 57, 21, 718, 1196, 2003, 5, 6, 1990, 129, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 set a Data Breakpoint in mixed( C#/C++ ) debugging? === I launch my program in C#, which then calls some unmanaged C++. When I break on a line in the unmanaged C++, the 'New Data Breakpoint' menu items is grayed out. Is there anyway around this?
0
[ 2, 184, 107, 31, 309, 21, 1054, 1442, 3132, 19, 2198, 5, 272, 5910, 118, 150, 20512, 13, 6, 121, 16254, 2762, 60, 800, 3726, 3726, 31, 3394, 51, 625, 19, 272, 5910, 15, 56, 94, 3029, 109, 367, 177, 8030, 272, 20512, 9, 76, 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...
Environment.TickCount vs DateTime.Now === Is it ever OK to use Environment.TickCount to calculate time spans? int start = Environment.TickCount; // Do stuff int duration = Environment.TickCount - start; Console.WriteLine("That took " + duration " ms"); Because TickCount is signed and will rollover after 25 days (it takes 50 days to hit all 32 bits, but you have to scrap the signed bit if you want to make any sense of the math), it seems like it's too risky to be useful. I'm using DateTime.Now instead. Is this the best way to do this? DateTime start = DateTime.Now; // Do stuff TimeSpan duration = DateTime.Now - start; Console.WriteLine("That took " + duration.TotalMilliseconds + " ms");
0
[ 2, 2307, 9, 38, 7030, 16549, 4611, 1231, 891, 9, 1387, 800, 3726, 3726, 25, 32, 462, 5854, 20, 275, 2307, 9, 38, 7030, 16549, 20, 18469, 85, 16967, 60, 19, 38, 799, 800, 2307, 9, 38, 7030, 16549, 73, 12894, 107, 3217, 19, 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...
See what site's are using what IP in IIS 7 === Is there a way to quickly list what sites are on what IP address in IIS 7? If I remember correctly you could sort a view of domains by IP in IIS 6 which was a big help to me in seeing what IP's I had available.
0
[ 2, 196, 98, 689, 22, 18, 50, 568, 98, 15735, 19, 595, 18, 453, 800, 3726, 3726, 25, 80, 21, 161, 20, 976, 968, 98, 3259, 50, 27, 98, 15735, 3218, 19, 595, 18, 453, 60, 100, 31, 1518, 12044, 42, 110, 2058, 21, 1418, 16, 15544...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Erlang : processes identifiers (Pid) explanation === Can someone explain the structure of a Pid in Erlang ? Pids looks like this : **`<A.B.C>`** , e.g. <0.30.0> , but i would like to know what is the meaning of these three "bits" : A, B and C. 'A' seems to be always 0 on a local node, but this value changes when the Pid's owner is located on another node. Is it possible to directly send a message on a remote node using only the Pid ? Something like that : <4568.30.0> ! Message , without having to explicitely specify the name of the registered process and the node name ( {proc_name, Node} ! Message ) ? Thanks.
0
[ 2, 13, 106, 9949, 13, 45, 5102, 25570, 18, 13, 5, 11031, 6, 5764, 800, 3726, 3726, 92, 737, 3271, 14, 1411, 16, 21, 13, 11031, 19, 13, 106, 9949, 13, 60, 13, 11031, 18, 1879, 101, 48, 13, 45, 13, 1409, 1, 58, 9, 220, 9, 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...
creating objects dynamically in C++ === I was just reading this [thread][1] and it occurred to me that there is one seemingly-valid use of that pattern the OP is asking about. I know I've used it before to implement dynamic creation of objects. As far as I know, there is no better solution in C++, but I was wondering if any gurus out there know of a better way. Generally, I run into this situation when I need to create one of several subclasses of an object based one something unknown at compile time (such as based on a config file). I use the object polymorphically once it is created. There's another related situation when you're using a message-passing scheme (usually over TCP/IP) where each message is an object. I like to implement that pattern as letting each message serialize itself into some serialization stream interface, which works well and is fairly clean on the sending end, but on the receiver, I always find myself examining a header on the message to determine the type, then constructing an appropriate message object using the pattern from the linked article, then having it deserialize itself from the stream. Sometimes I implement it so that the construction and deserialization happen at the same time as part of the constructor, which seems more RAII, but that's small consolation for the mess of if/else statements figuring out the type. Any better solutions out there? If you're going to suggest a 3rd party library, it should be free (and ideally open source) and I'd appreciate it if you could explain how the library accomplishes this feat. [1]: http://stackoverflow.com/questions/243082/c-casting-programmatically-can-it-be-done
0
[ 2, 2936, 3916, 7782, 1326, 19, 272, 20512, 800, 3726, 3726, 31, 23, 114, 1876, 48, 636, 96, 10647, 500, 2558, 165, 500, 17, 32, 2437, 20, 55, 30, 80, 25, 53, 9688, 8, 18506, 43, 275, 16, 30, 3732, 14, 3088, 25, 3379, 88, 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...
Looking for a good treeview widget for Scriptaculous === Is anyone using a good Treeview widget for Prototype or Scriptaculous? If so, why did you choose this one? It has to support dynamically generated data, and drag'n'drop. Note: I found [TafelTree][1], which looks nice. Anyone has worked with it? Thanks! [1]: http://tafel.developpez.com/site/lang/fr/samples.php
0
[ 2, 699, 26, 21, 254, 1541, 4725, 4807, 43, 3060, 26, 3884, 1738, 22717, 800, 3726, 3726, 25, 1276, 568, 21, 254, 1541, 4725, 4807, 43, 3060, 26, 7063, 54, 3884, 1738, 22717, 60, 100, 86, 15, 483, 144, 42, 3538, 48, 53, 60, 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...
Including a dynamic image in a web page using POST? === I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code: <img src="image.py?text=xxxxxxxxxxxxxx"> The problem is that I expect in the future the "text" field will get very long and the URL will become too large. From Googling around there doesn't seem to be a fixed limit on URL length (ie. depends on the browser, server, proxy, etc.) Is there a better way to do this? If it matters, I am working with Django and Python and I cannot use any client-side scripting (ie. JavaScript). Cheers, Ben
0
[ 2, 215, 21, 7782, 1961, 19, 21, 2741, 2478, 568, 678, 60, 800, 3726, 3726, 31, 57, 642, 21, 272, 2234, 3884, 30, 9695, 40, 1961, 7782, 1326, 568, 164, 1054, 9, 20, 468, 48, 1961, 19, 51, 2741, 6486, 15, 31, 589, 568, 14, 249, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 would you consider a minimum developer class PC? === Processor speed, memory, disk space, screen size. What corners can be cut, what corners shouldn't be cut?
0
[ 2, 98, 83, 42, 3563, 21, 5187, 10058, 718, 5168, 60, 800, 3726, 3726, 14762, 1362, 15, 1912, 15, 8582, 726, 15, 2324, 1072, 9, 98, 8894, 92, 44, 1077, 15, 98, 8894, 5714, 22, 38, 44, 1077, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Anything I should know before converting a large C++ program from VS2005 to VS2008? === Is there anything I should know before converting a large C++ program from VS2005 to VS2008?
0
[ 2, 602, 31, 378, 143, 115, 19583, 21, 370, 272, 20512, 625, 37, 4611, 2835, 20, 4611, 2753, 60, 800, 3726, 3726, 25, 80, 602, 31, 378, 143, 115, 19583, 21, 370, 272, 20512, 625, 37, 4611, 2835, 20, 4611, 2753, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Why C++ cannot be parsed with a LR parser? === I were reading about parsers and parser generators when I hit upon this statement in wikipedia's LR parsing -page: "Many programming languages can be parsed using some variation of an LR parser. One notable exception is C++." Why is it so? What particular property in C++ causes it to be impossible to parse with LR parsers? I first tried google and only found out that C can be perfectly parsed with LR(1) but C++ requires LR(∞). But then I think this is a good question. I understand that it must be very interesting reason why this is so. (PS. wikipedia's parser articles make much more sense if you have already written couple of parsers yourself with parser generators or perhaps by hand, before that you do not really understand much about them. It's interesting how you need to use the tool to learn about how to build good one, but then.. so obvious)
0
[ 2, 483, 272, 20512, 1967, 44, 2017, 18, 69, 29, 21, 13, 12988, 2017, 4104, 60, 800, 3726, 3726, 31, 46, 1876, 88, 2017, 18, 445, 17, 2017, 4104, 20495, 76, 31, 770, 685, 48, 3331, 19, 20169, 22, 18, 13, 12988, 2017, 18, 68, 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...
New to Spring - BeanFactory vs ApplicationContext? === I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So far I really like what I see in Spring MVC, seems very easy to use and encourages you to write classes that are very unit test-friendly. Just as an exercise, I'm writing a main method for one of my sample/test projects. One thing I'm unclear about is the exact differences between `BeanFactory` and `ApplicationContext` - which is appropriate to use in which conditions? I understand that `ApplicationContext` extends `BeanFactory`, but if I'm just writing a simple main method, do I need the extra functionality that `ApplicationContext` provides? And what exactly what kind of extra functionality does `ApplicationContext` provide? In addition to answering "which should I use in a main() method", are there any standards or guidelines as far as which implementation I should use in such a scenario? Should my main() method be written to depend on the bean/application configuration to be in XML format - is that a safe assumption, or am I locking the user into something specific? And does this answer change in a web environment - if any of my classes needed to be aware of Spring, are they more likely to need `ApplicationContext`? Thanks for any help. I know a lot of these questions are probably answered in the reference manual, but I'm having a hard time finding a clear breakdown of these two interfaces and the pros/cons of each without reading thru the manual with a fine-tooth comb.
0
[ 2, 78, 20, 1573, 13, 8, 15322, 17455, 93, 4611, 3010, 1126, 11969, 60, 800, 3726, 3726, 31, 22, 79, 1772, 78, 20, 14, 1573, 6596, 15, 31, 22, 195, 74, 791, 140, 29, 32, 17, 3873, 21, 310, 7855, 4865, 18, 429, 26, 14, 4612, 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...
Best language for safety-critical software === If you were going to write some safety-critical software, what language would you prefer and why?
0
[ 2, 246, 816, 26, 2108, 8, 21522, 2306, 800, 3726, 3726, 100, 42, 46, 228, 20, 2757, 109, 2108, 8, 21522, 2306, 15, 98, 816, 83, 42, 6369, 17, 483, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 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...