unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Deploy asp.net mvc beta to iis 6 causing 404's === I'm struggling to get around the 404 errors from asp.net mvc beta when deploying on IIS 6. I had this working in one of the previews by mapping .mvc in IIS but this no longer works. I've read [Omar's post][1] and several others on the web and tried their solutions but no luck so far. The home page opens without a problem on IIS 6 but others 404 and the site runs well on IIS 7. Has anybody deployed asp.net mvc beta to IIS 6 with success? If so, what adjustments did you need to make to the code and/or IIS settings to get it to work? [1]: http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx
0
[ 2, 17617, 28, 306, 9, 2328, 307, 8990, 8434, 20, 595, 18, 400, 3242, 13, 23397, 22, 18, 800, 3726, 3726, 31, 22, 79, 7587, 20, 164, 140, 14, 13, 23397, 11908, 37, 28, 306, 9, 2328, 307, 8990, 8434, 76, 17617, 68, 27, 595, 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...
FileSystemWatcher vs Polling to watch for changes === I need to setup an application that watches for files being created in a folder (locally or on a network drive) and I was wondering if anyone has any thoughts on whether the FileSystemWatcher or polling on a timer would be the best option. I have used both methods in the past, but not extensively. Have you run into any issues (performance, reliability... etc) with either method? I know there isn't a "right way" to do this, I'm just looking opinions.
0
[ 2, 3893, 10724, 9054, 106, 4611, 20734, 20, 1455, 26, 1693, 800, 3726, 3726, 31, 376, 20, 18161, 40, 3010, 30, 12773, 26, 6488, 142, 679, 19, 21, 19294, 13, 5, 15580, 102, 54, 27, 21, 982, 1493, 6, 17, 31, 23, 5712, 100, 1276, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 make a interface property optionally read-only in VB.NET? === This is a follow-up to a previous question I had about interfaces. I received an answer that I like, but I'm not sure how to implement it in VB.NET. Previous question: [http://stackoverflow.com/questions/239909/should-this-property-be-part-of-my-objects-interface][1] public interface Foo{ bool MyMinimallyReadOnlyPropertyThatCanAlsoBeReadWrite {get;} } How can I achieve this with the VB.NET syntax? As far as I know, my only option is to mark the property as ReadOnly (I cannot implement the setter) or not (I must implement the setter). [1]: http://stackoverflow.com/questions/239909/should-this-property-be-part-of-my-objects-interface
0
[ 2, 184, 92, 31, 233, 21, 6573, 1354, 12832, 102, 1302, 8, 4965, 19, 13, 20468, 9, 2328, 60, 800, 3726, 3726, 48, 25, 21, 1740, 8, 576, 20, 21, 1158, 1301, 31, 41, 88, 6573, 18, 9, 31, 420, 40, 1623, 30, 31, 101, 15, 47, 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...
Cross-referencing across multiple databases === I have two databases, one is an MS Access file, the other is a SQL Server database. I need to create a SELECT command that filters data from the SQL Server database based the data in the Access database. What is the best way to accomplish this with ADO.NET? Can I pull the required data from each database into two new tables. Put these in a single Dataset. Then perform another SELECT command on the Dataset to combine the data?
0
[ 2, 919, 8, 29254, 464, 1886, 6018, 18, 800, 3726, 3726, 31, 57, 81, 6018, 18, 15, 53, 25, 40, 4235, 1381, 3893, 15, 14, 89, 25, 21, 4444, 255, 8128, 6018, 9, 31, 376, 20, 1600, 21, 5407, 1202, 30, 21062, 1054, 37, 14, 4444, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a Collection of Collections possible and/or the best way? C# .Net 3.5 === I have created a class for a dashboard item which will hold information such as placement on the dashboard, description, etc. I am currently using a pair of Collections to hold those dashboard items contained in the "library" and those items showing on the dashboard itself. I have been asked to make this dashboard multi-tab, and my first inclination was to make a new Collection for each tab. For this I would want some type of array or collection which could have many of these dashboard item collections added to it as more tabs are added to the dashboard. Is this possible, and if so, could I get a little code snip for the declaration of such a collection? I have considered using a single collection with a variable to show which tab the item will be shown in... However, the display and routines to manage dashboard item movement between screen and library currently need those individual collections. Thank you in advance.
0
[ 2, 25, 21, 1206, 16, 5721, 938, 17, 118, 248, 14, 246, 161, 60, 272, 5910, 13, 9, 2328, 203, 9, 264, 800, 3726, 3726, 31, 57, 679, 21, 718, 26, 21, 26478, 9101, 56, 129, 1027, 676, 145, 28, 10774, 27, 14, 26478, 15, 5318, 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...
random number with ratio 1:2 === I have to generate two random sets of matrices Each containing 3 digit numbers ranging from 2 - 10 like that matrix 1: 994,878,129,121 matrix 2: 272,794,378,212 the numbers in both matrices have to be greater then 100 and less then 999 BUT the mean for both matrices has to be in the ratio of 1:2 or 2:3 what ever constraint the user inputs my math skills are kind of limited so any ideas how do i make this happen?
0
[ 2, 5477, 234, 29, 4825, 6352, 135, 800, 3726, 3726, 31, 57, 20, 7920, 81, 5477, 3415, 16, 24849, 206, 3503, 203, 15611, 2116, 7657, 37, 172, 13, 8, 332, 101, 30, 8187, 6352, 561, 4588, 15, 3730, 457, 15, 13320, 15, 12586, 8187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Question about MSDN and commercial use === I work for a small digital marketing company as a programmer, and we are not a Microsoft partner or any sort (Gold/Silver/Bronze). However, we use .NET. What I am confused about is that the developer before me has left, and he gets subscription DVDs of latest Microsoft tools, delivered to the company (Sql Server etc). I am assumign this is not a personal subscription, because if it was he'd have changed addresses. Anyway, the subscription is Professional and we use the tools for commercial purposes. Is this allowed? Also, am I allowed to use the tools that we get, at home? I want to use Windows Server at home for dev purposes (learning it for my exams). Thanks
0
[ 2, 1301, 88, 4235, 43, 103, 17, 1439, 275, 800, 3726, 3726, 31, 170, 26, 21, 284, 1888, 4743, 237, 28, 21, 17968, 15, 17, 95, 50, 52, 21, 7099, 2417, 54, 186, 2058, 13, 5, 10279, 118, 16782, 118, 13480, 1734, 6, 9, 207, 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...
WindowsError: priveledged instruction when saving a FreeImagePy Image in script, works in IDLE === I'm working on a program to do some image wrangling in Python for work. I'm using FreeImagePy because PIL doesn't support multi-page TIFFs. Whenever I try to save a file with it from my program I get this error message (or something similar depending on which way I try to save): Error returned. TIFF FreeImage_Save: failed to open file C:/OCRtmp/ocr page0 Traceback (most recent call last): File "C:\Python25\Projects\OCRPageUnzipper\PageUnzipper.py", line 102, in <mod ule> OCRBox.convertToPages("C:/OCRtmp/ocr page",FIPY.FIF_TIFF) File "C:\Python25\lib\site-packages\FreeImagePy\FreeImagePy\FreeImagePy.py", l ine 2080, in convertToPages self.Save(FIF, dib, fileNameOut, flags) File "C:\Python25\lib\site-packages\FreeImagePy\FreeImagePy\FreeImagePy.py", l ine 187, in Save return self.__lib.Save(typ, bitmap, fileName, flags) WindowsError: exception: priviledged instruction When I try and do the same things from IDLE, it works fine.
0
[ 2, 1936, 29992, 45, 4566, 195, 1294, 6430, 7304, 76, 7599, 21, 551, 22039, 6448, 1961, 19, 3884, 15, 693, 19, 18652, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 625, 20, 107, 109, 1961, 619, 13119, 802, 19, 20059, 26, 170, 9, 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...
How do you come up with names for your namespaces? === I'll preface this by saying that I normally work in C#/.Net. Normally, I use a naming scheme that puts common, reusable components into a namespace that reflects our organization and project-specific components into a namespace tied to the project. One of the reasons I do this is that I sometimes share my components with others outside my department, but within the organization. Project-specific namespaces are typically prefaced with the name or abbreviation of the department. When I reuse code between projects, I typically migrate it into one of the organization-based namespaces. For example: `UIOWA.DirectoryServices` contains classes that deal with the specific implementation of our Active Directory. `UIOWA.Calendar` contains classes that deal with the University's master calendar. `LST.Inventory.Datalayer` holds the classes implementing the data layer of the Learning Spaces Technology group inventory application. I'm embarking on a project now for an entity that has a fuzzier connection to the Unviersity (a student group that runs a charity event) that has the potential to be sold outside of our University and, thus, it doesn't really fit into my normal naming conventions, i.e., the department is only the first customer of potentially many that might use the project. My inclination is to go the organization naming route and create an "organizational project" name space for this application. I'd like to hear how others handle this and any advice you might have. Thanks.
0
[ 2, 184, 107, 42, 340, 71, 29, 1817, 26, 154, 204, 5582, 18, 60, 800, 3726, 3726, 31, 22, 211, 20910, 48, 34, 1148, 30, 31, 4147, 170, 19, 272, 5910, 118, 9, 2328, 9, 4147, 15, 31, 275, 21, 10929, 4276, 30, 11179, 757, 15, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle utl_match special characters === I'd like to use Oracle's utl\_match.edit\_distance function. It supposed to compare two strings and return the [Levenshtein distance][1]. select utl_match.edit_distance('a','b') from dual returns 1 as expected, but select utl_match.edit_distance('á','b') from dual returns 2. Obviously I'd like to get 1. It seems to be, it does not work correctly for special characters. I'm using Oracle 10.2.0.4 and AL32UTF8 character set. [1]: http://en.wikipedia.org/wiki/Levenshtein_Distance
0
[ 2, 15759, 287, 7786, 1, 12280, 621, 1766, 800, 3726, 3726, 31, 22, 43, 101, 20, 275, 15759, 22, 18, 287, 7786, 1, 12280, 9, 69, 242, 1, 13357, 1990, 9, 32, 2293, 20, 11590, 81, 7887, 17, 788, 14, 636, 413, 3124, 1635, 591, 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...
Referencing tables === In SQL Server, why is this: [dbo].[table_name] preferable to this: dbo.table_name And along those lines, why even list the dbo at all if there's only one schema?
0
[ 2, 13, 29254, 7484, 800, 3726, 3726, 19, 4444, 255, 8128, 15, 483, 25, 48, 45, 636, 43, 1192, 500, 9, 2558, 5924, 1, 7259, 500, 6369, 579, 20, 48, 45, 13, 43, 1192, 9, 5924, 1, 7259, 17, 303, 273, 1560, 15, 483, 166, 968, 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, 0, 0, 0...
Subversion externals problem === I am new to SVN and make heavy use of the externals property. I have a repository located on my PC and the externals properties have a hardcoded 'localhost' in the name, which is now giving me problems. For example: /project1/trunk /shared/trunk `project1/trunk` depends on the shared folder so has an `svn:externals` property of **svn://localhost/shared/trunk**. This works fine with TortoiseSVN and I can checkout `project1/trunk` and am given a copy of `shared/trunk`. Now I have moved the repository to another server and the externals links no longer work for obvious reasons (TortoiseSVN is trying to checkout out `svn://localhost/shared/trunk` which no longer exists). So I need to update all my externals - but I don't want to hardcode any machine names - so how do I make this work? Bear in mind that the repository may move again at some point. Digging around the SVN manuals I came across the **^/** syntax, so I tried the following: svn:externals shared ^/shared/trunk This was accepted but when I try and checkout a copy of `project1` on my PC I get the following error: Unrecognized format for the relative external URL 'shared'. Check the path and/or URL you've entered. Unless I hardcode the repository machine name in the externals I can't make this work - it seems like a black art so any advice would be welcome.
0
[ 2, 972, 10898, 4886, 18, 1448, 800, 3726, 3726, 31, 589, 78, 20, 13, 18, 16578, 17, 233, 1278, 275, 16, 14, 4886, 18, 1354, 9, 31, 57, 21, 24869, 335, 27, 51, 5168, 17, 14, 4886, 18, 3704, 57, 21, 552, 22254, 13, 22, 15580, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1ms resolution timer under linux recommended way === I need a timer tick with 1ms resolution under linux. It is used to increment a timer value that in turn is used to see if various Events should be triggered. The POSIX timerfd\_create is not an option because of the glibc requirement. I tried timer\_create and timer\_settimer, but the best I get from them is a 10ms resolution, smaller values seem to default to 10ms resolution. Getittimer and setitimer have a 10 ms resolution according to the manpage. The only way to do this timer I can currently think of is to use clock\_gettime with CLOCK\_MONOTONIC in my main loop an test if a ms has passed, and if so to increase the counter (and then check if the various Events should fire). Is there a better way to do this than to constantly query in the main loop? What is the recommended solution to this? The language I am using is plain old c
0
[ 2, 137, 79, 18, 4302, 85, 139, 131, 13024, 5773, 161, 800, 3726, 3726, 31, 376, 21, 85, 139, 8809, 29, 137, 79, 18, 4302, 131, 13024, 9, 32, 25, 147, 20, 13, 28461, 21, 85, 139, 1923, 30, 19, 805, 25, 147, 20, 196, 100, 617,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dependency checking - how to clean up a project with bad makefiles === I have a very large C project with many separate C files and headers and many dozens of contributors. Many contributors do not have a strong knowledge of makefiles and dependencies, resulting in the not uncommon problem where you almost always have to "make clean" before you can trust "make" to have produced correct output. If make took minutes, this wouldn't be an issue, but it's nearly 2 hours on a fast machine now, and people are starting to check in code that works when they make, but they don't clean first and their code ultimately breaks the build. Don't ask why these aren't caught by the build manager before a new baseline is cut... Yes, we shouldn't have let it go this far. Yes, we're educating our developers. As usual, we don't have time to stop everything and fix it by hand (There's always a deadline! Don't let your boss fall for, "there's never time to do it right, but always time to do it over" because there's never time to do it over either...) I'm thinking there are tools along these lines: - Are there automated tools to help build correct dependency information for an existing project from the C and H files? - Are there automated tools to describe dependency information according to the makefiles? - Is there a holy grail of a tool to describe the differences between the above two dependency trees? But what else can/should be done to resolve this issue? Thanks in advance... -Adam
0
[ 2, 26835, 9886, 13, 8, 184, 20, 2745, 71, 21, 669, 29, 896, 233, 16877, 18, 800, 3726, 3726, 31, 57, 21, 253, 370, 272, 669, 29, 151, 1725, 272, 6488, 17, 157, 445, 17, 151, 10273, 16, 20023, 9, 151, 20023, 107, 52, 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...
Books about the CLR === I'm interested in learning more about the .NET CLR internals and how the language is abstracted away. Can anyone recommend a book or two? Thanks.
0
[ 2, 964, 88, 14, 10842, 139, 800, 3726, 3726, 31, 22, 79, 3158, 19, 2477, 91, 88, 14, 13, 9, 2328, 10842, 139, 3117, 18, 17, 184, 14, 816, 25, 8502, 69, 229, 9, 92, 1276, 12360, 21, 360, 54, 81, 60, 3669, 9, 3, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Securing .NET application with keys === I am at the point where I need to add keys to my app. What are some of the possible solutions you guys used? I've looked at an earlier [post][1] so far, anything else before I decide. My 2 influencial factors are: 1. Price 2. Ease of use Thanks [1]: http://stackoverflow.com/questions/118031/best-activation-key-software-for-net-application
0
[ 2, 13498, 13, 9, 2328, 3010, 29, 5534, 800, 3726, 3726, 31, 589, 35, 14, 454, 113, 31, 376, 20, 3547, 5534, 20, 51, 4865, 9, 98, 50, 109, 16, 14, 938, 6776, 42, 2776, 147, 60, 31, 22, 195, 292, 35, 40, 1201, 636, 6962, 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...
Web Application Time Zone Issue === We have a ASP.Net 2.0 web application up and running with the server in the Midwest (Eastern Standard Time). At this moment all of our customers are in the same time zone as the server. We are bringing another server online in Arizona (Mountain Standard Time). We are storing all our times in a SQL 2005 database via C# codebehind DateTime.UtcNow. During testing we encountered some time zone conversion issues. Our problem is that in the web browser our times are displaying the Mountain Standard Time instead of the time zone we are testing from which is Eastern Standard Time. When we enter new information it gets stored as UTC in the database, but when we go to view that info in the browser it is displaying the Mountain Standard Time. Below is the code which takes the UTC value from the database and displays it in the browser. lblUpdatedDate.Text = Convert.ToDateTime(dr["UpdatedDate"]).ToLocalTime().ToString(); The above code returns Mountain Standard Time where the server is, not Eastern Standard Time where the browser is running from. How do we get the time to display where the user is?
0
[ 2, 2741, 3010, 85, 2464, 1513, 800, 3726, 3726, 95, 57, 21, 28, 306, 9, 2328, 172, 9, 387, 2741, 3010, 71, 17, 946, 29, 14, 8128, 19, 14, 15727, 13, 5, 7842, 1236, 85, 6, 9, 35, 48, 688, 65, 16, 318, 5279, 50, 19, 14, 205,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is a left parenthesis being escaped in this Regex? === I'm using an HTML sanitizing whitelist method found here: http://refactormycode.com/codes/333-sanitize-html I needed to add the "font" tag as an additional tag to match, so I tried adding this condition after the `<img` tag check if (tagname.StartsWith("<font")) { // detailed <font> tag checking // Non-escaped expression (for testing in a Regex editor app) // ^<font(\s*size="\d{1}")?(\s*color="((#[0-9a-f]{6})|(#[0-9a-f]{3})|red|green|blue|black|white)")?(\s*face="(Arial|Courier New|Garamond|Georgia|Tahoma|Verdana)")?\s*?>$ if (!IsMatch(tagname, @"<font (\s*size=""\d{1}"")? (\s*color=""((#[0-9a-f]{6})|(#[0-9a-f]{3})|red|green|blue|black|white)"")? (\s*face=""(Arial|Courier New|Garamond|Georgia|Tahoma|Verdana)"")? \s*?>")) { html = html.Remove(tag.Index, tag.Length); } } When I try to test this in C#, it throws an exception saying I don't have enough `)'s`. I've counted the parenthesis several times and I've run the expression through a few online Javascript-based regext testers and none of them seem to tell me of any problems. Am I missing something in my Regex that is causing a parenthesis to escape? What do I need to do to fix this? I've looked through this regex several times and I can't figure out why it is rejecting the regex.
0
[ 2, 483, 25, 21, 225, 4766, 438, 4557, 142, 5409, 19, 48, 7953, 1706, 60, 800, 3726, 3726, 31, 22, 79, 568, 40, 13, 15895, 523, 242, 3335, 359, 5739, 2109, 216, 235, 45, 7775, 6903, 99, 17455, 915, 9375, 9, 960, 118, 9375, 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...
ActiveX communication === I'm developing an ActiveX EXE that exposes an specific class to a third-party software. This third-party software instanciates an object of this class and uses its methods. Strangely, this third-party software destroys its object of my exposed class as soon as it calls an specific method, but I have no idea why this happens. The only clue I have is that this method is the only one that returns a value. All the other ones are simple 'subs' that do not return any value, and when they are called nothing wrong happens. I'm using VB6. Do you guys have any idea of why it's happening?
0
[ 2, 1348, 396, 3291, 800, 3726, 3726, 31, 22, 79, 3561, 40, 1348, 396, 1396, 62, 30, 13833, 18, 40, 1903, 718, 20, 21, 422, 8, 9635, 2306, 9, 48, 422, 8, 9635, 2306, 19, 6114, 4321, 3231, 40, 3095, 16, 48, 718, 17, 2027, 82, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MS Reportviewer - Save Expanded/Collapsed Nodes in ViewState? === I have a report that's being populated from an ObjectDataSource. The report includes expandable/collapsable nodes per user. I'm allowing the viewer to filter the report by setting the FilterExpression on the datasource, then calling ReportViewer1.LocalReport.Refresh(). This is done during PostBack. This filters the results, but the state of the expanded/collapsed nodes is lost. Is there some way to store the expanded/collapsed nodes in the ViewState? Or is there a better way to accomplish this alltogether?
0
[ 2, 4235, 1330, 4725, 106, 13, 8, 2079, 2766, 118, 7771, 17057, 43, 16272, 19, 1418, 3859, 60, 800, 3726, 3726, 31, 57, 21, 1330, 30, 22, 18, 142, 11111, 37, 40, 3095, 18768, 12097, 9, 14, 1330, 1103, 6073, 579, 118, 20410, 2552, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
in which program i can design software in Vista style? === like this windows ![alt text][1] [1]: http://www.istartedsomething.com/wp-content/uploads/2008/08/windows7update.jpg
0
[ 2, 19, 56, 625, 31, 92, 704, 2306, 19, 13520, 1034, 60, 800, 3726, 3726, 101, 48, 1936, 13, 187, 2558, 192, 38, 1854, 500, 2558, 165, 500, 636, 165, 500, 45, 7775, 6903, 6483, 9, 49, 13680, 69, 9099, 9, 960, 118, 13790, 8, 254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to convert string result of enum with overridden toString() back to enum? === Given the following java enum: public enum AgeRange { A18TO23 { public String toString() { return "18 - 23"; } }, A24TO29 { public String toString() { return "24 - 29"; } }, A30TO35 { public String toString() { return "30 - 35"; } }, } Is there any way to convert a string value of "18 - 23" to the corresponding enum value i.e. AgeRange.A18TO23 ? Thanks!
0
[ 2, 184, 20, 8406, 3724, 829, 16, 1957, 723, 29, 84, 15267, 20, 11130, 5, 6, 97, 20, 1957, 723, 60, 800, 3726, 3726, 504, 14, 249, 8247, 1957, 723, 45, 317, 1957, 723, 348, 8366, 13, 1, 21, 1087, 262, 2001, 13, 1, 317, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 posting info from a form, is it better to use $_REQUEST or $_POST? === I have a form a user can enter their name, then it will add it to $message to be sent in an email. Is it better to use `$_POST` or `$_REQUEST`? Here is a snippet of using `$_REQUEST` $message.= "Name: ".$_REQUEST["fname"]." ".$_REQUEST["mname"]." ".$_REQUEST["lname"]."\n";
0
[ 2, 76, 15669, 15404, 37, 21, 505, 15, 25, 32, 574, 20, 275, 5579, 1, 99, 10351, 54, 5579, 1, 6962, 60, 800, 3726, 3726, 31, 57, 21, 505, 21, 4155, 92, 2830, 66, 204, 15, 94, 32, 129, 3547, 32, 20, 5579, 3845, 18, 1303, 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...
What classes from Jeffrey Richter's PowerThreading library are people using? === Jeffrey Richter is looking for some input on how people are using his PowerThreading library. If anyone out there is using this, what parts of it are you using? He is looking to clean up the library and wants to know what classes people are using. <http://www.wintellect.com/PowerThreading.aspx>
0
[ 2, 98, 2684, 37, 11432, 22736, 22, 18, 414, 96, 22883, 1248, 50, 148, 568, 60, 800, 3726, 3726, 11432, 22736, 25, 699, 26, 109, 6367, 27, 184, 148, 50, 568, 33, 414, 96, 22883, 1248, 9, 100, 1276, 70, 80, 25, 568, 48, 15, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 programming question about interfaces === I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this.
4
[ 2, 78, 20, 3143, 1301, 88, 6573, 18, 800, 3726, 3726, 31, 1369, 30, 59, 558, 42, 20, 8713, 3195, 17, 145, 47, 98, 31, 2973, 1369, 25, 483, 42, 83, 259, 20, 275, 105, 9, 92, 11181, 590, 55, 21, 254, 823, 54, 5764, 27, 483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there a notification mechanism for when a dependency property has changed? === In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged. Is there any other way of determining if the value has changed?
0
[ 2, 25, 80, 21, 52, 4634, 6534, 26, 76, 21, 26835, 1354, 63, 1015, 60, 800, 3726, 3726, 19, 21, 1172, 3130, 3010, 31, 22, 79, 749, 20, 477, 70, 76, 21, 1354, 27, 21, 4155, 12898, 63, 1015, 9, 31, 22, 79, 3158, 19, 53, 1498, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Corrupt form data: premature ending === I am trying to upload files using the FileReference class. Files >2MB all work correctly but files <2MB cause this error: "java.io.IOException: Corrupt form data: premature ending" On the server I am using the com.oreilly.servlet package to handle the request. I have used this package many times to successfully handle file uploads from flex, but for some reason, now I am having this problem. Any ideas? Here is the stack trace for some more info: java.io.IOException: Corrupt form data: premature ending at com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:205) at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:222) at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:173) at com.mydomain.FileUploadServlet.doPost(FileUploadServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
0
[ 2, 11305, 505, 1054, 45, 17769, 3119, 800, 3726, 3726, 31, 589, 749, 20, 71, 8294, 6488, 568, 14, 3893, 28018, 718, 9, 6488, 13, 1, 135, 5024, 65, 170, 12044, 47, 6488, 13, 1, 135, 5024, 1679, 48, 7019, 45, 13, 7, 1004, 1385, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting Invalid Address with javax.mail when the addresses are fine === I'm using the javax.mail system, and having problems with "Invalid Address" exceptions. Here's the basics of the code: // Get system properties Properties props = System.getProperties(); // Setup mail server props.put("mail.smtp.host", m_sending_host); // Get session Session session = Session.getDefaultInstance(props, new Authenticator(){ @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(m_sending_user, m_sending_pass); } }); // Define message MimeMessage message = new MimeMessage(session); message.setFrom(new InternetAddress(m_sending_from)); message.addRecipient(Message.RecipientType.TO, new InternetAddress(vcea.get(i).emailaddr)); message.setSubject( replaceEnvVars(subject) ); message.setText(replaceEnvVars(body)); // Send message try { Transport.send(message); } catch (Exception e){ Log.Error("Error sending e-mail to addr (%s): %s", vcea.get(i).emailaddr, e.getLocalizedMessage() ); } The issue is that the above code does work, sometimes. But for some e-mail addresses that I know to be valid (because I can send to them via a standard e-mail client), the above code will throw an "Invalid Address" exception when trying to send. Any clues or hints would be greatly appreciated.
0
[ 2, 1017, 16671, 3218, 29, 8247, 396, 9, 8079, 76, 14, 12636, 50, 1123, 800, 3726, 3726, 31, 22, 79, 568, 14, 8247, 396, 9, 8079, 329, 15, 17, 452, 1716, 29, 13, 7, 108, 18506, 43, 3218, 7, 13392, 9, 235, 22, 18, 14, 2125, 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...
Luanching a Application (.EXE) from C#? === How can I launch a application using C#? Requirements: MUST work on XP and VISTA? I have seen a sample from DinnerNow.net sampler that only works in vista?
0
[ 2, 1612, 210, 7192, 21, 3010, 13, 5, 9, 1706, 62, 6, 37, 272, 5910, 60, 800, 3726, 3726, 184, 92, 31, 3394, 21, 3010, 568, 272, 5910, 60, 4786, 45, 491, 170, 27, 23045, 17, 13520, 60, 31, 57, 541, 21, 5717, 37, 2860, 1387, 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, 0, 0, 0, 0, 0, 0, 0...
Unexpected feature in a Python list of lists === I needed to create a list of lists in Python, so I typed the following: list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get round it?
0
[ 2, 9380, 1580, 19, 21, 20059, 968, 16, 7227, 800, 3726, 3726, 31, 851, 20, 1600, 21, 968, 16, 7227, 19, 20059, 15, 86, 31, 1001, 43, 14, 249, 45, 968, 800, 636, 2558, 165, 500, 1637, 268, 500, 1637, 203, 14, 968, 292, 101, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is Oracle's to_char() function adding spaces? === Why is Oracle's to_char() function adding spaces? select length('012'), length(to_char('012')), length(to_char('12', '000')) from dual 3 , 3, 4
0
[ 2, 483, 25, 15759, 22, 18, 20, 1, 5433, 5, 6, 1990, 4721, 7644, 60, 800, 3726, 3726, 483, 25, 15759, 22, 18, 20, 1, 5433, 5, 6, 1990, 4721, 7644, 60, 5407, 1476, 5, 22, 387, 918, 22, 6, 15, 1476, 5, 262, 1, 5433, 5, 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...
Freeing memory on the heap. Should I and how? === I'm writing a CESetup.dll for a Windows Mobile app. It must be unmanaged, which I have little experience with. So I'm unsure of whether I should free the memory I allocate and how I do it. Here's the function I've written: Uninstall_Init( HWND hwndParent, LPCTSTR pszInstallDir ) { LPTSTR folderPath = new TCHAR[256]; _stprintf(folderPath, _T("%s\\cache"), pszInstallDir); EmptyDirectory(folderPath); RemoveDirectory(folderPath); _stprintf(folderPath, _T("%s\\mobileadmin.dat"), pszInstallDir); DeleteFile(folderPath); // To continue uninstallation, return codeUNINSTALL_INIT_CONTINUE // If you want to cancel installation, // return codeUNINSTALL_INIT_CANCEL return codeUNINSTALL_INIT_CONTINUE; } As I understand it, folderPath is allocated on the heap. EmptyDirectory() is my own function that removes all content in the directory. RemoveDirectory() and DeleteFile() are system calls. My question is should I deallocate `folderPath` before the function exits? If I should, how do I do it?
0
[ 2, 551, 68, 1912, 27, 14, 15414, 9, 378, 31, 17, 184, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 4000, 3554, 576, 9, 43, 211, 26, 21, 1936, 3241, 4865, 9, 32, 491, 44, 367, 177, 8030, 15, 56, 31, 57, 265, 1496, 29, 9, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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: Removing an attribute from a DOMNode object === I've got a DOMNode object that has some attributes. $Node->attributes is a DOMNamedNodeMap, which has no methods for removing one of the entries in the map. The DOMNode class also has no methods for removing attributes from an element. I've looked through a number of the other related classes and none of them seem to provide a mechanism for removing an attribute node from its parent. (DOMNode::removeChild doesn't work; it throws a "Not found error" if I pass a DOMAttr object to it.) Aside from constructing a new DOMNamedNodeMap and adding all the attributes to it *except* the one I don't want... any ideas? Thanks.
0
[ 2, 13, 26120, 45, 9096, 40, 35, 14755, 37, 21, 11859, 251, 546, 3095, 800, 3726, 3726, 31, 22, 195, 330, 21, 11859, 251, 546, 3095, 30, 63, 109, 13422, 9, 5579, 251, 546, 8, 1, 721, 14755, 18, 25, 21, 11859, 11482, 251, 546, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between new/delete and malloc/free? === What is the difference between new/delete and malloc/free?
0
[ 2, 98, 25, 14, 2841, 128, 78, 118, 24249, 591, 17, 3668, 2499, 118, 4639, 60, 800, 3726, 3726, 98, 25, 14, 2841, 128, 78, 118, 24249, 591, 17, 3668, 2499, 118, 4639, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Web 2.0 Application Hardware Requirements === I'm writing a specification document for a whizz-bang Web 2.0 application, and I want to make sure that the client is not mislead into thinking that the jQuery animation / AJAX bits will be smooth for any visitor on their dodgy old DX-66. I considered taking the Firefox 3 requirements (Pentium 500MHz, 128MB RAM) but that isn't going to provide a sexy Web 2.0 experience. What minimum hardware specification would you recommend for today's modern web apps?
0
[ 2, 2741, 172, 9, 387, 3010, 7610, 4786, 800, 3726, 3726, 31, 22, 79, 1174, 21, 14177, 4492, 26, 21, 11153, 17470, 8, 10828, 2741, 172, 9, 387, 3010, 15, 17, 31, 259, 20, 233, 562, 30, 14, 6819, 25, 52, 2462, 11846, 77, 1440, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Double/incomplete Parameter Url Encoding === In my web app, my parameters can contain all sorts of crazy characters (russian chars, slashes, spaces etc) and can therefor not always be represented as-is in a URL. Sending them on their merry way will work in about 50% of the cases. Some things like spaces are already encoded somewhere (I'm guessing in the Html.BuildUrlFromExpression does). Other things though (like "/" and "*") are not. Now I don't know what to do anymore because if I encode them myself, my encoding will get partially encoded again and end up wrong. If I don't encode them, some characters will not get through. What I did is manually .replace() the characters I had problems with. This is off course not a good idea. Ideas?
0
[ 2, 1494, 118, 108, 15990, 18906, 287, 6362, 19608, 800, 3726, 3726, 19, 51, 2741, 4865, 15, 51, 12905, 92, 3717, 65, 14357, 16, 3328, 1766, 13, 5, 4732, 4892, 18, 15, 14098, 160, 15, 7644, 2722, 6, 17, 92, 80, 1106, 52, 550, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Handling of child and grandchild windows in Javascript. === I have a main window (#1) on my webpage from which I open a new browser window (#2) from which I open a new window (#3). Now if my user closes window#2 before window#3, I have the problem that window#3 no longer can call function in its window.opener since it has gone away. What I would like to do is to set window#3.opener to window#1 when window#2 closes. I've tried to do this i window#2 (by the way I use jquery): var children = []; $(window).unload( function( ) { $.each( children, function( p, win ) { if ( win ) { win.opener = window.opener; } } ); } ); When window#3 is loaded I add the window to the array children in window#2. But still when window#2 is closed before window#3, windows#3's window.opener doesn't point to window#1. How do I make sure that my grand child window (window#3), can still call the main window (window#1) after window#2 is closed?
0
[ 2, 7988, 16, 850, 17, 920, 11287, 1936, 19, 8247, 8741, 9, 800, 3726, 3726, 31, 57, 21, 407, 1463, 13, 5, 5910, 165, 6, 27, 51, 2741, 6486, 37, 56, 31, 368, 21, 78, 16495, 1463, 13, 5, 5910, 135, 6, 37, 56, 31, 368, 21, 78...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
vim -- How to read range of lines from a file into current buffer === I want to read line n1->n2 from file foo.c into current buffer. I tried :147,227r /path/to/foo/foo.c But I get "E16: Invalid range", though I am certain that foo.c contains more than 1000 lines. Thanks Aman Jain
0
[ 2, 1790, 79, 13, 8, 8, 184, 20, 1302, 978, 16, 1560, 37, 21, 3893, 77, 866, 17497, 800, 3726, 3726, 31, 259, 20, 1302, 293, 13, 103, 165, 8, 1, 103, 135, 37, 3893, 4310, 111, 9, 150, 77, 866, 17497, 9, 31, 794, 13, 45, 135...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Removing trailing nulls from byte array in C# === Ok, I am reading in dat files into a byte array. For some reason, the people who generate these files put about a half meg's worth of useless null bytes at the end of the file. Anybody know a quick way to trim these off the end? First thought was to start at the end of the array and iterate backwards until I found something other than a null, then copy everything up to that point, but I wonder if there isn't a better way.
0
[ 2, 9096, 14323, 16203, 18, 37, 34, 591, 7718, 19, 272, 5910, 800, 3726, 3726, 5854, 15, 31, 589, 1876, 19, 1331, 38, 6488, 77, 21, 34, 591, 7718, 9, 26, 109, 1215, 15, 14, 148, 72, 7920, 158, 6488, 442, 88, 21, 519, 10905, 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...
NAnt, MbUnit, CruiseControl, Selenium - passing settings to the test assembly === I am putting together some ideas for our automated testing platform and have been looking at Selenium for the test runner. I am wrapping the recorded Selenium C# scripts in an MbUnit test, which is being triggered via the MbUnit NAnt task. The Selenium test client is created as follows: selenium = new DefaultSelenium("host", 4444, "*iexplore", "http://[url]/"); How can I pass the host, port and url settings into the test so their values can be controlled via the NAnt task? For example, I may have multiple Selenium RC servers listening and I want to use the same test code passing in each server address instead of embedding the settings within the tests themselves. I have an approach mocked up using a custom NAnt task I have written but it is not the most elegant solution at present and I wondered if there was an easier way to accomplish what I want to do. Many thanks if anyone can help.
0
[ 2, 13, 11028, 15, 14023, 15464, 15, 6581, 12898, 15, 23027, 14311, 13, 8, 2848, 12410, 20, 14, 1289, 1475, 800, 3726, 3726, 31, 589, 3873, 429, 109, 3478, 26, 318, 14904, 4431, 2452, 17, 57, 74, 699, 35, 23027, 14311, 26, 14, 1289...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where has windows working sets gone in Eclipse 3.4 === Where can I find the option to switch between the Windows Working Set in Eclipse 3.4 (Ganymede)? In the previous version it was under then Window menu, but it appears to have moved.
0
[ 2, 113, 63, 1936, 638, 3415, 1042, 19, 11652, 203, 9, 300, 800, 3726, 3726, 113, 92, 31, 477, 14, 4255, 20, 5521, 128, 14, 1936, 638, 309, 19, 11652, 203, 9, 300, 13, 5, 2342, 93, 4688, 62, 6, 60, 19, 14, 1158, 615, 32, 23, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
What does the error "htmlfile: invalid argument" mean? I'm getting this in excanvas.js. === I'm hitting this error and I'm not really sure why. I have a minified version of excanvas.js and something is breaking in IE, specifically on: <code> var b=a.createStyleSheet(); </code> I'm not sure why. Does anyone have any insight? I can provide more information, I'm just not sure what information will help.
0
[ 2, 98, 630, 14, 7019, 13, 7, 15895, 16877, 45, 16671, 5476, 7, 884, 60, 31, 22, 79, 1017, 48, 19, 1396, 1245, 8471, 9, 728, 18, 9, 800, 3726, 3726, 31, 22, 79, 6687, 48, 7019, 17, 31, 22, 79, 52, 510, 562, 483, 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...
IIS 6, tool to copy all site host headers? === I have a Server 2003 box with about 6 sites that each have about 15-20 host headers. Is there a tool out there that will copy all the host header records and automatically move them to the new server so I don't have to manually enter each host header again in the new server? Thanks.
0
[ 2, 595, 18, 400, 15, 5607, 20, 4344, 65, 689, 2015, 157, 445, 60, 800, 3726, 3726, 31, 57, 21, 8128, 973, 1649, 29, 88, 400, 3259, 30, 206, 57, 88, 357, 8, 1323, 2015, 157, 445, 9, 25, 80, 21, 5607, 70, 80, 30, 129, 4344, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does the VisualStudio Dataset visualizer exclaimation mark mean? === Some rows in the dataset visualizer have an exclamation mark for each column, other rows have the data as expected. I have been unable to track down a description for the exclamation mark or indeed any symbol within the dataset visualizer.
0
[ 2, 98, 630, 14, 3458, 21026, 1054, 3554, 3458, 11907, 28316, 857, 943, 884, 60, 800, 3726, 3726, 109, 11295, 19, 14, 1054, 3554, 3458, 11907, 57, 40, 1396, 7232, 79, 857, 943, 26, 206, 4698, 15, 89, 11295, 57, 14, 1054, 28, 1727, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Authenticating REST Requests === I'm working on a REST service that has a few requirements: 1. It has to be secure. 2. Users should not be able to forge requests. My current proposed solution is to have a custom Authorization header that look like this (this is the same way that the amazon web services work): Authorization: MYAPI username:signature My question is how to form the signature. When the user logs into the service they are given a secret key which they should be able to use to sign requests. This will stop other users submitting requests on their behalf, but will not stop them forging requests. The application that will be using this service is an iPhone application, so I was thinking we could have a public key embedded in the application which we can do an additional signature with, but does this mean we'll have to have two signatures, one for the user key and one for the app key? Any advice would be greatly appreciated, I'd quite like to get this right the first time.
0
[ 2, 14351, 1880, 760, 12279, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 760, 365, 30, 63, 21, 310, 4786, 45, 137, 9, 32, 63, 20, 44, 4315, 9, 172, 9, 3878, 378, 52, 44, 777, 20, 14934, 12279, 9, 51, 866, 2097, 4295, 25, 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...
Date Parsing and Validation in JavaScript === How would I achieve the pseudo-code below in JavaScript? I want to include the date check in the second code excerpt, where txtDate is for the BilledDate. If ABS(billeddate – getdate) > 31 then yesno “The date you have entered is more than a month from today, Are you sure the date is correct,”. if (txtDate && txtDate.value == "") { txtDate.focus(); alert("Please enter a date in the 'Date' field.") return false; }
0
[ 2, 1231, 2017, 18, 68, 17, 27999, 19, 8247, 8741, 800, 3726, 3726, 184, 83, 31, 4689, 14, 8452, 8, 9375, 1021, 19, 8247, 8741, 60, 31, 259, 20, 468, 14, 1231, 2631, 19, 14, 153, 1797, 13, 25523, 15, 113, 20225, 38, 8209, 25, 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...
Given a Java InputStream, how can I determine the current offset in the stream? === I'd like something like a generic, re-usable `getPosition()` method that will tell me the number of bytes read from the starting point of the stream. Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap each and every one of them as I get them from disparate sources. Does such a beast exist?
0
[ 2, 504, 21, 8247, 6367, 11260, 15, 184, 92, 31, 3746, 14, 866, 17493, 19, 14, 3766, 60, 800, 3726, 3726, 31, 22, 43, 101, 301, 101, 21, 12733, 15, 302, 8, 267, 579, 13, 1, 3060, 9339, 5, 6, 1, 2109, 30, 129, 494, 55, 14, 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...
SCE - Custom Data Feeds === I am using the syndicated client experience (SCE) SDK. Has anyone had success with creating custom datafeeds for this. I have found where in app settings you can set the standard design feed to false, but I have had a headache trying to get it to understand a custom datafeed. Any help would be appreciated.
0
[ 2, 13, 18, 1105, 13, 8, 5816, 1054, 17058, 800, 3726, 3726, 31, 589, 568, 14, 15924, 6819, 1496, 13, 5, 18, 1105, 6, 13, 18, 43, 197, 9, 63, 1276, 41, 1280, 29, 2936, 5816, 1054, 20954, 18, 26, 48, 9, 31, 57, 216, 113, 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, 1, 1, 1, 1, 1, 1, 1...
How to write policy redirect files for native SxS dlls? === Where can I find a good reference that explains how to write and install a SxS policy redirecting from one native assembly version to another? I've already succeeded in building and installing two versions of my native assembly using a wix installer. But I'm not sure how to proceed from here. Most of the information I've found is about managed assemblies and the GAC. Is the procedure I'm looking for identical to that of managed dlls? Thanks for the help, Dan
0
[ 2, 184, 20, 2757, 1486, 302, 14706, 6488, 26, 1275, 13, 18, 396, 18, 13, 43, 211, 18, 60, 800, 3726, 3726, 113, 92, 31, 477, 21, 254, 2801, 30, 7346, 184, 20, 2757, 17, 16146, 21, 13, 18, 396, 18, 1486, 302, 14706, 68, 37, 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...
How to trim input field value in struts? === I use Struts v1.3 and have following input form: In struts-config.xml: <form-bean name="testForm" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="displayName" type="java.lang.String" /> </form-bean> In validation.xml: <form name="testForm"> <field property="displayName" depends="required"> <arg key="input.displayName" /> </field> </form> How do I trim value of "displayName"? How do I trim values of all "java.lang.String" input fields of the form?
0
[ 2, 184, 20, 8971, 6367, 575, 1923, 19, 18316, 18, 60, 800, 3726, 3726, 31, 275, 18316, 18, 566, 165, 9, 240, 17, 57, 249, 6367, 505, 45, 19, 18316, 18, 8, 14093, 2816, 9, 396, 8184, 45, 13, 1, 4190, 8, 863, 210, 204, 3726, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I wrap a method so that I can kill its execution if it exceeds a specified timeout? === I have a method that I would like to call. However, I'm looking for a clean, simple way to kill it or force it to return if it is taking too long to execute. I'm using Java. to illusrate: logger.info("sequentially executing all batches..."); for (TestExecutor executor : builder.getExecutors()) { logger.info("executing batch..."); executor.execute(); } I figure the `TestExecutor` class should `implement Callable` and continue in that direction. But all i want to be able to do is stop `executor.execute()` if it's taking too long. Suggestions...?
0
[ 2, 184, 92, 31, 8118, 21, 2109, 86, 30, 31, 92, 1177, 82, 5769, 100, 32, 11976, 18, 21, 9931, 85, 1320, 60, 800, 3726, 3726, 31, 57, 21, 2109, 30, 31, 83, 101, 20, 645, 9, 207, 15, 31, 22, 79, 699, 26, 21, 2745, 15, 1935, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Report Bugs the Smart Way === I want to write (or find) a guide to effective bug reporting in a style similar to ESR's [How To Ask Questions The Smart Way][1] What are your top tips for effective bug reports? [1]: http://www.catb.org/~esr/faqs/smart-questions.html
0
[ 2, 184, 20, 1330, 13925, 14, 3978, 161, 800, 3726, 3726, 31, 259, 20, 2757, 13, 5, 248, 477, 6, 21, 3378, 20, 3140, 6256, 6670, 19, 21, 1034, 835, 20, 13, 160, 139, 22, 18, 636, 1544, 20, 1349, 2346, 14, 3978, 161, 500, 2558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to hook a global PASTE EVENT? === I am developing a software that needs to know when the PASTE EVENT (through the context menu or ctrl+V) happens (only for files / directories). More or less, something like it happens with TeraCopy or Copy Handler. When you copy and then paste, it is TeraCopy thats handles the pastings.<br/> I know more or less how to capture the COPY EVENT, you only have to set a ClipboardViewer and you catch all global COPY EVENTS (in fact is called: WM_DRAWCLIPBOARD). You can learn this here: [http://www.radsoftware.com.au/articles/clipboardmonitor.aspx][1] [1]: http://www.radsoftware.com.au/articles/clipboardmonitor.aspx But the ClipBoardViewer does not provide you with the ability to catch the PASTE EVENT.
0
[ 2, 184, 20, 5559, 21, 2062, 640, 62, 807, 60, 800, 3726, 3726, 31, 589, 3561, 21, 2306, 30, 2274, 20, 143, 76, 14, 640, 62, 807, 13, 5, 11639, 14, 4141, 11379, 54, 13, 4812, 6362, 2430, 710, 6, 5531, 13, 5, 4965, 26, 6488, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you measure page load speed? === I am trying to quantify "site slowness". In the olden days you just made sure that your HTML was lightweight, images optimized and servers not overloaded. In high end sites built on top of modern content management systems there are a lot more variables: third party advertising, trackers and various other callouts, the performance of CDN (interestingly enough sometimes content delivery networks make things worse), javascript execution, css overload, as well as all kinds of server side issues like long queries. The obvious answer is for every developer to clear the cache and continuously look at the "net" section of the Firebug plugin. What other ways to measure "site dragging ass" have you used?
0
[ 2, 184, 107, 42, 4058, 2478, 6305, 1362, 60, 800, 3726, 3726, 31, 589, 749, 20, 9836, 38, 8612, 13, 7, 9097, 2276, 720, 7, 9, 19, 14, 315, 219, 509, 42, 114, 117, 562, 30, 154, 13, 15895, 23, 13613, 15, 3502, 22864, 43, 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...
Launching a Click-Once Deploy Windows Application using VBScript === I have a click-once deploy application I want to launch from a VBScript. For example the following code that luanches Microsoft Word. > Dim word Set word = createobject("Word.Application") > word.Visible = True The problem is I don't know what parameter to pass into the createobject function to launch my appliction. Where would I find the master list of applications installed on my PC/the shortcut to call to launch them?
0
[ 2, 13762, 21, 10840, 8, 13120, 17617, 1936, 3010, 568, 13, 20468, 8741, 800, 3726, 3726, 31, 57, 21, 10840, 8, 13120, 17617, 3010, 31, 259, 20, 3394, 37, 21, 13, 20468, 8741, 9, 26, 823, 14, 249, 1797, 30, 1612, 210, 5370, 7099, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wordpress: How can i move my index (blogpage) to another page (innerpage)? === i'm new in wordpress and having a trouble to move the blog page o another page. Simply i want my home page to be static and put the post in inner page. Any idea? by the way i tried to changed the reading settings but it didn't help. also tried to edit the page.php please help...
0
[ 2, 833, 5890, 45, 184, 92, 31, 780, 51, 4348, 13, 5, 220, 5567, 6486, 6, 20, 226, 2478, 13, 5, 18005, 6486, 6, 60, 800, 3726, 3726, 31, 22, 79, 78, 19, 833, 5890, 17, 452, 21, 2572, 20, 780, 14, 8146, 2478, 635, 226, 2478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitoring newly or updated events in HPSM 9.20 Web Services === I am new to HPSM 9.20 WebServices.Can anyone let me know how to get new or updated events in HPSM. Also let me know how to monitor the events in HPSM 9.20
0
[ 2, 8984, 2771, 54, 6372, 963, 19, 5301, 18, 79, 561, 9, 1323, 2741, 687, 800, 3726, 3726, 31, 589, 78, 20, 5301, 18, 79, 561, 9, 1323, 2741, 11449, 18, 9, 1245, 1276, 408, 55, 143, 184, 20, 164, 78, 54, 6372, 963, 19, 5301, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Validate data annotation with ajax.beginform in MVC3 === i have an Ajax.BeginForm in my aspnet mvc3 webpage and i have a problems with the validation. I have only one field to validate, the thing is that when i click the submit button, i cant see a custom data annotation that i have in the object that passess to the controller. The data annotations required, integer and min works perfectly and when i click submit, the form doesnt submits and shows the error messages, but when my custom data annotation gets invalid, the forms submits. I see that my data annotation works because ModelState.IsValid is false and in the errors i can see the custom error. The wors of this is that the ajax.BeginForm contains the replace in the AjaxOptions and when i finish the controller action, the whole page shows on the id to be replace. Why i cannot validate with my custom data annotation? Thanks!
0
[ 2, 7394, 1373, 1054, 40, 1270, 857, 29, 20624, 9, 17143, 108, 4190, 19, 307, 8990, 240, 800, 3726, 3726, 31, 57, 40, 20624, 9, 17143, 108, 4190, 19, 51, 28, 306, 2328, 307, 8990, 240, 2741, 6486, 17, 31, 57, 21, 1716, 29, 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 to name RESTFUL resources in this case === I am developing a petitions site that is using RESTFul techniques. For example: /petition/1 indentifies a certain petiton (resource). How should I name a) Signing a petition? /petition/sign/1 or /petition/1/sign or ??? b) Searching for a petition based on terms (rich, for example) /petition/search/rich /petition?search=rich And lastly c) Seeing only a certain category /petition/category/1 /petition?category=1 Thank you.
0
[ 2, 184, 20, 204, 760, 1566, 2566, 19, 48, 610, 800, 3726, 3726, 31, 589, 3561, 21, 7453, 18, 689, 30, 25, 568, 760, 1566, 4212, 9, 26, 823, 45, 13, 118, 6240, 9861, 11698, 19, 817, 38, 12970, 21, 1200, 3170, 49, 444, 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...
jQuery Replace part of string === I have the following code: ​<div id="container"> <input type="text" name="a1" id="a1"> <input type="text" name="a2" id="a2"> ​</div>​​​​​​​​​​​​​​​​ And I want to replace all instance of the text "a" to "b" for all the element inside the div id="container" so the new code should be like this: ​<div id="container"> <input type="text" name="b1" id="b1"> <input type="text" name="b2" id="b2"> ​</div>​​​​​​​​​​​​​​​​ I just can't seem to be able to make it work using the javascript replace().
0
[ 2, 487, 8190, 93, 3934, 141, 16, 3724, 800, 3726, 3726, 31, 57, 14, 249, 1797, 45, 13, 1, 12916, 4924, 3726, 7, 1126, 5851, 106, 7, 1, 13, 1, 108, 4881, 1001, 3726, 7, 11969, 7, 204, 3726, 7, 58, 165, 7, 4924, 3726, 7, 58, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Twitter Bootstrap PopOver only works on the first trigger === I have been using the Twitter Bootstrap to build the base layout for a site. I have a need to show a table of data where each line item has a data attribute that I want to show as a pop over such as: <tr> <td><a href="#" class="popover-test" id ="test" rel="popover" data-content="Content 1: this shows fine!" data-original-title="Title 1">Hover for popover</a> </td> <td>two</td> <td>three</td> </tr> <tr> <td><a href="#" class="popover-test" id ="test" rel="popover" data-content="Doesn't show :(" data-original-title="Title 2">Hover for popover</a> </td> <td>two</td> <td>three</td> </tr> it appears though that the pop over will only work with the very first element on the list. See this jsfiddle: http://jsfiddle.net/stycu/ Does anyone know if this is by design or if this is a bug? I have checked the issues on github but can't see anything referring to it. thanks in advance
0
[ 2, 10623, 5894, 16514, 1675, 2549, 104, 693, 27, 14, 64, 7286, 800, 3726, 3726, 31, 57, 74, 568, 14, 10623, 5894, 16514, 20, 1895, 14, 1000, 9106, 26, 21, 689, 9, 31, 57, 21, 376, 20, 298, 21, 859, 16, 1054, 113, 206, 293, 910...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Graph in excel using coldfusion === I want to generate graph based on the query data using coldfusion.When user click the button dynamically graph has to be created.The user the can save the displayed spreadsheet in his local machine. Please suggest me the best way to do it in coldfusion. Thanks
0
[ 2, 7210, 19, 20700, 568, 1191, 9818, 800, 3726, 3726, 31, 259, 20, 7920, 7210, 432, 27, 14, 25597, 1054, 568, 1191, 9818, 9, 3185, 4155, 10840, 14, 5167, 7782, 1326, 7210, 63, 20, 44, 679, 9, 124, 4155, 14, 92, 2079, 14, 6115, 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...
Change /data/local Permissions === I installed an ICS rom onto my Incredible and discovered that I could no longer run applications through Eclipse to test them. I searched StackOverflow and found an answer to why my problem was happening in [this question][1], but how do I change the permissions of `/data/local`? I don't want to mess anything up. This is probably an extremely easy fix, but thank you for the help! [1]: http://stackoverflow.com/questions/8639873/cannot-install-apk-on-android-device-through-eclipse
0
[ 2, 753, 13, 118, 18768, 118, 15580, 5572, 18, 800, 3726, 3726, 31, 4066, 40, 13, 8354, 8421, 1204, 51, 10287, 17, 1848, 30, 31, 110, 90, 1045, 485, 3767, 120, 11652, 20, 1289, 105, 9, 31, 9036, 7566, 2549, 9990, 17, 216, 40, 162...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jqtouch tabbed page container === I am trying to implement a tabbed container (jquery organic tabs http://css-tricks.com/organic-tabs/) in jqtouch. I would like the tabs to only tab the content that is in the specified container. The problem is I cannot for the life of me override the default link behavior of jqtouch. When the user clicks a tab link it automatically switches to a blank page rather than displaying the tabbed content. In short jqtouch sees the anchor and by default swaps to a new page, I would like in this case to display the content in the current page. Thanks !
0
[ 2, 487, 1251, 15725, 6523, 4283, 2478, 12147, 800, 3726, 3726, 31, 589, 749, 20, 8713, 21, 6523, 4283, 12147, 13, 5, 728, 8190, 93, 6976, 6523, 18, 7775, 6903, 6824, 18, 8, 15294, 18, 9, 960, 118, 6826, 596, 8, 15783, 18, 118, 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...
Efficiently finding nearest point along a specific axis in 3D space === I have been playing with this one for a few days now, and keep running into performance walls. The data: - 10s to hundreds of thousands of 3D points - Points are positive/negative ints and fall on a 3D grid with no overlap - Will rarely add new points - Will usually be gapless but gaps are possible The structure: - Must be able to efficiently find the nearest neighbours along each axis ("closest point to the left") and *only* that axis. - Rarely handles inserts or deletes after construction (but must handle them) - Does not need to handle overlapping points I have found a possible solution in http://docs.scipy.org/doc/scipy/reference/spatial.html, however the K-d tree seems to be extremely wasteful for this type of data (suitable more for clusters of arbitrary points) and tuned for finding points within a radius. The primary use case for this data is often finding (and following) the nearest neighbour point along each. Example Data (x, y, z): [(4, 3, 0), (4, 4, 0), (5, 3, 0), (3, 3, 0), (4, 3, 1), ...] Possibly my google-fu is failing me and an optimal structure exists already (preferably in Python), but I have not been able to find one.
0
[ 2, 20519, 3007, 6557, 454, 303, 21, 1903, 8577, 19, 203, 43, 726, 800, 3726, 3726, 31, 57, 74, 791, 29, 48, 53, 26, 21, 310, 509, 130, 15, 17, 643, 946, 77, 956, 2021, 9, 14, 1054, 45, 13, 8, 332, 18, 20, 4541, 16, 3805, 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...
SQL Query in Java - Unable to select two columns === I currently have a search function for my database where I have a Java front-end GUI. At the moment in Java I have a SELECT statement that checks what one enters is LIKE something. The problem that I am having is that within my SELECT statement, I want to also get the forename column.(I am fairly new to this). Below is a snippet of the code: /* * Search method */ public void search() { // search function - person query String sqlPerson = " SELECT * FROM `person` where ((`person`.`Surname`LIKE ?) " + "OR (`person`.`Forename` LIKE ?) OR (`person`.`Person_Id` LIKE ?) " + "OR (`person`.`aka` LIKE ?) " + ")ORDER BY `person`.`Surname` ASC "; Does anyone know how I can select both forename and surname so it gets both columns because at the moment when I search, I can only do it by one column (As I am currently using an OR). Thanks
0
[ 2, 4444, 255, 25597, 19, 8247, 13, 8, 2343, 20, 5407, 81, 7498, 800, 3726, 3726, 31, 871, 57, 21, 2122, 1990, 26, 51, 6018, 113, 31, 57, 21, 8247, 431, 8, 2451, 9457, 9, 35, 14, 688, 19, 8247, 31, 57, 21, 5407, 3331, 30, 166...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Convert a preprocessor token to a string === I'm looking for a way to convert a preprocessor token to a string. Specifically, I've somewhere got: #define MAX_LEN 16 and I want to use it to prevent buffer overrun: char val[MAX_LEN+1]; // room for \0 sscanf(buf, "%"MAX_LEN"s", val); I'm open to other ways to accomplish the same thing, but standard library only.
0
[ 2, 8406, 21, 782, 16835, 248, 20, 2853, 20, 21, 3724, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 8406, 21, 782, 16835, 248, 20, 2853, 20, 21, 3724, 9, 3524, 15, 31, 22, 195, 3493, 330, 45, 6926, 546, 7509, 2049, 1, 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...
Getting Post - Redirect - Refresh to call redirect page rather than original request === We have a POST to a PL/SQL database procedure that (a) does some database operations based on the POST parameters and (b) redirects the user to a page showing the results. The problem is, when the user does a browser "refresh" of the results page, that still has the original request, so it calls the database procedure and resends the parameters. There are things we can do with saving state so bad things don't happen if the request gets sent in again. But that got me wondering. Is there a way to tell the browser to set the url to the redirect call, not the original user request? This would probably be in either the redirect itself, or in Javascript on the target page.
0
[ 2, 1017, 678, 13, 8, 302, 14706, 13, 8, 24905, 20, 645, 302, 14706, 2478, 864, 119, 501, 3772, 800, 3726, 3726, 95, 57, 21, 678, 20, 21, 12443, 118, 18, 22402, 6018, 7004, 30, 13, 5, 58, 6, 630, 109, 6018, 1311, 432, 27, 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...
What does XPCSafeJSObjectWrapper do? === What does Mozilla's XPCSafeJSObject wrapper actually do? <a href="https://developer.mozilla.org/en/XPConnect_wrappers#XPCSafeJSObjectWrapper">MDC</a>'s documentation is as follows: > This wrapper was created to address some problems with XPCNativeWrapper. In particular, some extensions want to be able to safely access non-natively-implemented content defined objects (and to access the underlying JavaScript object under an XPCNativeWrapper without its strong behavior guarantees). XPCSJOW act as a buffer between the chrome code. This doesn't tell me a lot. In particular, I can't tell how accessing objects via XPCSafeObject is any different to accessing them directly.
0
[ 2, 98, 630, 993, 5779, 18166, 728, 18, 23793, 499, 525, 8763, 107, 60, 800, 3726, 3726, 98, 630, 13, 18057, 3247, 22, 18, 993, 5779, 18166, 728, 18, 23793, 28051, 1121, 107, 60, 13, 1, 58, 746, 14057, 3726, 7, 21127, 18, 6903, 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...
RDP connectivity/responsiveness test === I want to write an app to test whether a Windows machine is responding correctly to RDP (Remote Desktop) - i.e. to check if the machine not only allows the connection, but is also responding normally, and is not hung or otherwise responding abnormally. Is there a library or utility that I can use to do this? My searches turned up full RDC clients, but I'm hoping there's something out there at least offers an API for testing. I would most like to use Java or a scripting language to do this, but I'm open to suggestions.
0
[ 2, 13, 897, 306, 24026, 118, 22153, 720, 1289, 800, 3726, 3726, 31, 259, 20, 2757, 40, 4865, 20, 1289, 1472, 21, 1936, 1940, 25, 15887, 12044, 20, 13, 897, 306, 13, 5, 99, 20209, 17404, 6, 13, 8, 31, 9, 62, 9, 20, 2631, 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...
How do you change the extension that .Net pages will run under? === I need my .net application to use the .html extension instead of .aspx I'm converting a php app and there are external applications which depend on that extension to function. What is the best way to do this? Thanks
0
[ 2, 184, 107, 42, 753, 14, 3896, 30, 13, 9, 2328, 4434, 129, 485, 131, 60, 800, 3726, 3726, 31, 376, 51, 13, 9, 2328, 3010, 20, 275, 14, 13, 9, 15895, 3896, 700, 16, 13, 9, 472, 306, 396, 31, 22, 79, 19583, 21, 13, 26120, 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 do I reload kerberos configuration under tomcat ? === My application runs under tomcat. It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos. It allows the user to define AD servers and try to connect to them. However, once the first Kerberos using connect attempt is done, the application does not read Kerberos configuration again (/etc/krb5.conf). Hence, any change to it requires a restart of tomcat. How can I avoid such a restart ? How can I force the application to reload Kerberos configuration before each connect attempt ?
0
[ 2, 184, 107, 31, 27339, 7002, 2102, 759, 8091, 131, 2067, 5782, 13, 60, 800, 3726, 3726, 51, 3010, 1461, 131, 2067, 5782, 9, 32, 25, 568, 489, 18, 18, 21, 2159, 13, 5, 728, 9805, 6, 20, 6379, 20, 1348, 16755, 644, 20472, 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...
Why down't work this sql-statement on oracle? === I have the following SQL-statement: SELECT DISTINCT name FROM log WHERE NOT name = '' AND name LIKE '%.EDIT%'; It works fine on Postgres (returns all different names from log, which aren't empty and contain the string '.EDIT'. But on Oracle this statement doesn't work. Any idea why?
0
[ 2, 483, 125, 22, 38, 170, 48, 4444, 255, 8, 3859, 1130, 27, 15759, 60, 800, 3726, 3726, 31, 57, 14, 249, 4444, 255, 8, 3859, 1130, 45, 5407, 4421, 204, 37, 6738, 113, 52, 204, 800, 13, 7, 17, 204, 101, 13, 22, 11881, 9, 69, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC URL auto-resolution in CSS files === In normal WebForms scenario, any root-relative URLs (e.g. ~/folder/file.txt) in CSS files will automatically get resolved during runtime if I specify <head runat="server"> However, that is no longer happening on an ASP.NET MVC Beta1 website. Is there a way I could enable this functionality without resorting to hacks or CSS-loader file? Like maybe HttpModules or something? Or am I not desigining my website correctly? What is supposed to be a good design? This web application will be deployed in several environments where the ~ root folder might not be obvious.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 287, 6362, 3108, 8, 29346, 19, 272, 18, 18, 6488, 800, 3726, 3726, 19, 1826, 2741, 4190, 18, 12705, 15, 186, 5900, 8, 7256, 3366, 13, 911, 7532, 13, 5, 62, 9, 263, 9, 13, 1, 118, 8814, 106, 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...
What are the .NET Services? === Announced today at PDC. Initially made up of a Service Bus, the Workflow Service, and the Access Control Service. What are they? Why would I use them?
0
[ 2, 98, 50, 14, 13, 9, 2328, 687, 60, 800, 3726, 3726, 703, 786, 35, 351, 7201, 9, 1537, 117, 71, 16, 21, 365, 1683, 15, 14, 170, 9990, 365, 15, 17, 14, 1381, 569, 365, 9, 98, 50, 59, 60, 483, 83, 31, 275, 105, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
MYSQL: Create Table If Not Exists === If I go Create Table If Not Exists, and the table exists with less rows than the new Create statement what would happen? Thank you.
0
[ 2, 51, 18, 22402, 45, 1600, 859, 100, 52, 5636, 800, 3726, 3726, 100, 31, 162, 1600, 859, 100, 52, 5636, 15, 17, 14, 859, 5636, 29, 787, 11295, 119, 14, 78, 1600, 3331, 98, 83, 2384, 60, 3531, 42, 9, 3, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
DBI's column_info vs. pgAdminIII on quoted identifiers === I have a table in my pgsql database with columns named "type", "desc", and "start". When I call $dbh->column_info, only "desc" comes back quoted, whereas in pgAdmin3 all three of them are quoted. Is one of them wrong?
0
[ 2, 13, 43, 2161, 22, 18, 4698, 1, 108, 4120, 4611, 9, 16086, 43, 6840, 2865, 27, 9591, 25570, 18, 800, 3726, 3726, 31, 57, 21, 859, 19, 51, 13, 9623, 18, 22402, 6018, 29, 7498, 377, 13, 7, 4474, 7, 15, 13, 7, 3196, 150, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
UML : Internal class in a class diagram === In a class diagram, is there a way of specifying that a class is an internal class of another class ? Or is it considered as a pure implementation choice ?
0
[ 2, 13, 723, 255, 13, 45, 3117, 718, 19, 21, 718, 14161, 800, 3726, 3726, 19, 21, 718, 14161, 15, 25, 80, 21, 161, 16, 19077, 68, 30, 21, 718, 25, 40, 3117, 718, 16, 226, 718, 13, 60, 54, 25, 32, 724, 28, 21, 4267, 6123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Modify HTML in a Internet Explorer window using external.menuArguments === I've a vb.net class that is invoked with a context menu extension in Internet Explorer. The code has access to the object model of the page, and reading data is not a problem. This is the code of a test funcion... it changes the status bar text (OK), prints the page html (OK), changes the html by adding a text and prints again the page html (ok, in the second popup my added text is in the html) But the Internet Explorer window doesnt't show it. Where am I doing wrong? Public Sub CallingTest(ByRef Source As Object) Dim D As mshtml.HTMLDocument = Source.document Source.status = "Working..." Dim H As String = D.documentElement.innerHTML() MsgBox(H) D.documentElement.insertAdjacentText("beforeEnd", "ThisIsATest") H = D.documentElement.outerHTML() MsgBox(H) Source.status = "" End Sub Function is called by this javascript: <SCRIPT> var EB = new ActiveXObject("MyObject.MyClass"); EB.CallingTest(external.menuArguments); </SCRIPT>
0
[ 2, 17579, 13, 15895, 19, 21, 2620, 8520, 1463, 568, 4886, 9, 755, 291, 512, 3073, 6601, 800, 3726, 3726, 31, 22, 195, 21, 13, 20468, 9, 2328, 718, 30, 25, 26252, 29, 21, 4141, 11379, 3896, 19, 2620, 8520, 9, 14, 1797, 63, 1381, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
subversion merge a delete command === When I merge the trunk into a feature-branch, a delete that occurred on the trunk will not be replicated to my working copy. Why will a delete on trunk not delete the same file on a branch when merging? I'm using subversion 1.5 client and server. I'm assuming that changes to the file in the branch will be skipped when reintegrating the branch? What's the best way to redeem the file on trunk, as a colleague deleted the file from trunk only because it was not "ready".
0
[ 2, 972, 10898, 12666, 21, 27448, 1202, 800, 3726, 3726, 76, 31, 12666, 14, 6436, 77, 21, 1580, 8, 23014, 15, 21, 27448, 30, 2437, 27, 14, 6436, 129, 52, 44, 22156, 43, 20, 51, 638, 4344, 9, 483, 129, 21, 27448, 27, 6436, 52, 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...
MOSS 2007 Breadcrumb problem === I've got a page layout for a publishing site with an odd behaviour. Imagine a publishing site (site) with a subsite (subsite1) which has the following pages (page1 [default], page2, and page3) for page 2 and page three the breadcrumb renders correctly: site > subsite1 > page2 site > subsite1 > page3 however for the default page the breadcrumb only renders as site > subsite1 Any idea how to force it to display the title of the default page too?
0
[ 2, 8188, 624, 5988, 25241, 220, 1448, 800, 3726, 3726, 31, 22, 195, 330, 21, 2478, 9106, 26, 21, 3107, 689, 29, 40, 4210, 7727, 9, 4382, 21, 3107, 689, 13, 5, 9097, 6, 29, 21, 972, 9097, 13, 5, 7563, 9097, 165, 6, 56, 63, 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 do you structure config data in a database? === What is people's prefered method of storing application configuration data in a database. From having done this in the past myself, I've utilised two ways of doing it. 1. You can create a table where you store key/value pairs, where key is the name of the config option and value is its value. Pro's of this is adding new values is easy and you can use the same routines to set/get data. Downsides are you have untyped data as the value. 2. Alternatively, you can hardcode a configuration table, with each column being the name of the value and its datatype. The downside to this is more maintenance setting up new values, but it allows you to have typed data. Having used both, my preferences lie with the first option as its quicker to set things up, however its also riskier and can reduce performance (slightly) when looking up data. Does anyone have any alternative methods?
0
[ 2, 184, 107, 42, 1411, 13, 14093, 2816, 1054, 19, 21, 6018, 60, 800, 3726, 3726, 98, 25, 148, 22, 18, 6369, 69, 2109, 16, 25615, 3010, 8091, 1054, 19, 21, 6018, 9, 37, 452, 677, 48, 19, 14, 640, 992, 15, 31, 22, 195, 13, 142...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 number of maximum concurrent connections for Sql CE 3.5? === as google does not deliver what i want to know, i try to ask stackoverflow :) what is the number of max concurrent connections to a sql ce 3.5 database? thanks j.
0
[ 2, 98, 25, 14, 234, 16, 2979, 19513, 6760, 26, 4444, 255, 4000, 203, 9, 264, 60, 800, 3726, 3726, 28, 8144, 630, 52, 5879, 98, 31, 259, 20, 143, 15, 31, 1131, 20, 1349, 7566, 2549, 9990, 13, 45, 6, 98, 25, 14, 234, 16, 2049,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What are the best uses for each programming language? === I come from a web developer background, so I'm fairly familiar with PHP and JavaScript, but I'd eventually like to branch out into other languages. At this point, I don't have a particular direction or platform that I'm leaning toward as far as learning a new language or what I would use it for, but I would like to learn a little bit more about programming languages in general and what each one is used for. I've often heard (and I agree) that you should use the right tool for the job, so what jobs are each programming language best suited for?
4
[ 2, 98, 50, 14, 246, 2027, 26, 206, 3143, 816, 60, 800, 3726, 3726, 31, 340, 37, 21, 2741, 10058, 2395, 15, 86, 31, 22, 79, 6647, 3694, 29, 13, 26120, 17, 8247, 8741, 15, 47, 31, 22, 43, 878, 101, 20, 1686, 70, 77, 89, 2556, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 change an element (e.g. h1 -> h2) using jQuery / plain old javascript? === Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (`p`) into an `address` element. My current method is (more-or-less): var p = $('p#test'); p.replaceWith('<address>' + p.html() + '</address>'); but that fails for this specific case; it works perfectly for p -> blockquote or h2 -> h3. Firebug suggests that a self-closing element (`<address/>`) has been added to the document, for some reason. Can anyone spot the bug or suggest an alternative method?
0
[ 2, 184, 107, 31, 753, 40, 4520, 13, 5, 62, 9, 263, 9, 746, 165, 13, 8, 1, 746, 135, 6, 568, 487, 8190, 93, 13, 118, 3748, 315, 8247, 8741, 60, 800, 3726, 3726, 16, 674, 15, 80, 50, 21, 979, 978, 16, 938, 11908, 8456, 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...
Will JavaFX work on Android? === It would be a shame if it doesn't, because it will make for more attractive looking Android applications.
0
[ 2, 129, 8247, 16488, 170, 27, 13005, 60, 800, 3726, 3726, 32, 83, 44, 21, 7912, 100, 32, 1437, 22, 38, 15, 185, 32, 129, 233, 26, 91, 7982, 699, 13005, 3767, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Transfer variables between PHP pages === I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using 'sessions' but it doesn't seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.
0
[ 2, 2617, 12157, 128, 13, 26120, 4434, 800, 3726, 3726, 31, 259, 20, 164, 4155, 6367, 19, 53, 2478, 15, 1718, 30, 19, 21, 13, 26120, 7612, 17, 275, 32, 19, 226, 13, 26120, 2478, 9, 31, 57, 794, 568, 13, 22, 7202, 18, 5757, 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...
Should I use MSMQ or SQL Service Broker for transactions? === I've been asked by my team leader to investigate MSMQ as an option for the new version of our product. We use SQL Service Broker in our current version. I've done my fair share of experimentation and Googling to find which product is better for my needs, but I thought I'd ask the best site I know for programming answers. Some details: - Our client is .NET 1.1 and 2.0 code; this is where the message will be sent from. - The target in a SQL Server 2005 instance. All messages end up being database updates or inserts. - We will send several updates that must be treated as a transaction. - We have to have perfect message recoverability; no messages can be lost. - We have to be asynchronous and able to accept messages even when the target SQL server is down. - Developing our own queuing solution isn't an option; we're a small team. Things I've discovered so far: - Both MSMQ and SQL Service Broker can do the job. - It appears that service broker is faster for transactional messages. - Service Broker requires a SQL server running somewhere, whereas MSMQ needs any configured Windows machine running somewhere. - MSMQ appears to be better/faster/easier to set up/run in clusters. Am I missing something? Is there a clear winner here? Any thoughts, experiences, or links would be valued. Thank you!
0
[ 2, 378, 31, 275, 4235, 79, 1251, 54, 4444, 255, 365, 14930, 26, 13147, 60, 800, 3726, 3726, 31, 22, 195, 74, 411, 34, 51, 173, 1156, 20, 7375, 4235, 79, 1251, 28, 40, 4255, 26, 14, 78, 615, 16, 318, 2374, 9, 95, 275, 4444, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to determine path from noisy X, Y data === I have an unsorted list of noisy X, Y points. They do, however, form a path through the world. I would like an algorithm to draw an approximation of this data using line segments. This is similar to how you would use a line -fitting algorithm to pick an approximation of linear data. My problem is only harder because the path bends and winds around the world. Does anyone know of any standard / robust / easy to comprehend algorithms to accomplish this?
0
[ 2, 184, 20, 3746, 2013, 37, 22729, 993, 15, 13, 93, 1054, 800, 3726, 3726, 31, 57, 40, 367, 22843, 69, 968, 16, 22729, 993, 15, 13, 93, 819, 9, 59, 107, 15, 207, 15, 505, 21, 2013, 120, 14, 126, 9, 31, 83, 101, 40, 9083, 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...
Convert a string to GregorianCalendar. === I have a string from an email header, like `Date: Mon, 27 Oct 2008 08:33:29 -0700`. What I need is an instance of GregorianCalendar, that will represent the same moment. As easy as that -- how do I do it? And for the fastest ones -- this is **not** going to work properly: SimpleDateFormat format = ... // whatever you want Date date = format.parse(myString) GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(date) because it will normalize the timezone to UTC (or your local machine time, depending on Java version). What I need is calendar.getTimeZone().getRawOffset() to return `-7 * milisInAnHour`.
0
[ 2, 8406, 21, 3724, 20, 27149, 3430, 219, 2542, 9, 800, 3726, 3726, 31, 57, 21, 3724, 37, 40, 8517, 157, 106, 15, 101, 13, 1, 8209, 45, 3521, 15, 1298, 9543, 570, 13, 3099, 22169, 23238, 13, 8, 387, 7915, 1, 9, 98, 31, 376, 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...
Patterns : Java class conversion from axis objects. === I use a axis to auto-generate webservice artifacts which I then convert into objects used within our application. Is there a sensible pattern for doing this ? We have written transform methods to output our objects from the axis created objects, at other times we have written an intermediate set of transformer classes that transform the axis objects to our application objects? Is there a common way of approaching this?
0
[ 2, 6282, 13, 45, 8247, 718, 6263, 37, 8577, 3916, 9, 800, 3726, 3726, 31, 275, 21, 8577, 20, 3108, 8, 17083, 1373, 2741, 11449, 10996, 56, 31, 94, 8406, 77, 3916, 147, 363, 318, 3010, 9, 25, 80, 21, 24599, 3732, 26, 845, 48, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How did you learn to program? === I would like to know how you learned to program in order to teach future programmers. Could recommend some books to teach programming,or some helpful tips?
0
[ 2, 184, 144, 42, 2484, 20, 625, 60, 800, 3726, 3726, 31, 83, 101, 20, 143, 184, 42, 2691, 20, 625, 19, 389, 20, 5348, 1022, 17968, 18, 9, 110, 12360, 109, 964, 20, 5348, 3143, 15, 248, 109, 15600, 11034, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do you do end-of-week rounding on a date field in C# (without using LINQ)? === I have a weird date rounding problem that hopefully someone can solve. My client uses a work week that runs from Monday through Sunday. Sunday's date is considered the end of the week, and is used to identify all records entered in a particular week (so anything entered last week would have a WEEKDATE value of '10/26/2008', which is Sunday's date). One little twist is that users enter records for the previous week up until 11 AM on the Monday of the current week. So I need a function that starts with DateTime.Now and returns the week-ending date (no time part) according to the rules above. Thanks for your help. I have a solution that works, but I'm too embarassed to post it. Oh, and I can't use LINQ.
0
[ 2, 184, 107, 42, 107, 241, 8, 1041, 8, 7219, 560, 68, 27, 21, 1231, 575, 19, 272, 5910, 13, 5, 14506, 568, 6294, 1251, 6, 60, 800, 3726, 3726, 31, 57, 21, 5455, 1231, 560, 68, 1448, 30, 13416, 737, 92, 8402, 9, 51, 6819, 202...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Run ant task from web app === Does anyone know of a simple web app that supports running ant tasks? Alternatively it could run command line programs.
0
[ 2, 485, 40, 38, 3005, 37, 2741, 4865, 800, 3726, 3726, 630, 1276, 143, 16, 21, 1935, 2741, 4865, 30, 6747, 946, 40, 38, 8674, 60, 16785, 32, 110, 485, 1202, 293, 1726, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
When should I be using "NOT NULL" in a MySQL table and are there any benefits? === I have the following rails migration: create_table :articles do |t| t.integer :user_id, :allow_null => false t.integer :genre_id, :allow_null => false t.string :url, :limit => 255, :allow_null => false t.string :title, :limit => 60, :allow_null => false t.text :summary, :limit => 350, :allow_null => false t.integer :votes_count, :default => 0 t.datetime :published_at, :default => nil t.timestamps end All the fields that are "NOT NULL" are validated in the model first, so I'm wondering if I need to bother having allow_null in the migration? I'm not sure what benefits "NOT NULL" gives to the database, if any.
0
[ 2, 76, 378, 31, 44, 568, 13, 7, 1270, 16203, 7, 19, 21, 51, 18, 22402, 859, 17, 50, 80, 186, 5800, 60, 800, 3726, 3726, 31, 57, 14, 249, 2240, 18, 8443, 45, 1600, 1, 5924, 13, 45, 20360, 18, 107, 13, 1, 38, 1, 13, 38, 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...
Removing HTML from a Java String === Is there a good way to remove HTML from a Java string? A simple regex like replaceAll("\\<.*?>","") will work, but things like &amp; wont be converted correctly and non-HTML between the two angle brackets will be removed (ie the .*? in the regex will disappear).
0
[ 2, 9096, 13, 15895, 37, 21, 8247, 3724, 800, 3726, 3726, 25, 80, 21, 254, 161, 20, 4681, 13, 15895, 37, 21, 8247, 3724, 60, 21, 1935, 7953, 1706, 101, 3934, 1233, 5, 7, 1, 9, 2483, 60, 1, 7, 15, 7, 7, 6, 129, 170, 15, 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, 1...
Does Visual Studio 2008 support classic ASP development? === Does visual studio 2008 support classic asp development? It's been years since i created a classic ASP website and i was wondering if i can use my current toolset or if i have to resign myself to notepad. Thanks Matt
0
[ 2, 630, 3458, 1120, 570, 555, 2732, 28, 306, 522, 60, 800, 3726, 3726, 630, 3458, 1120, 570, 555, 2732, 28, 306, 522, 60, 32, 22, 18, 74, 122, 179, 31, 679, 21, 2732, 28, 306, 2271, 17, 31, 23, 5712, 100, 31, 92, 275, 51, 86...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best way for R&D company to get out of pure "D" mode? === I work for an R&D company in the energy business. We've developed some successful products, but now seem to be spending all our time fixing issues relating to those products. We don't seem to have any time to work on developing new products. Does anyone have any good ideas on how to both handle problems arising with the existing products but still have the time and resources to develop new products as well? TY, Fred
0
[ 2, 246, 161, 26, 761, 1569, 43, 237, 20, 164, 70, 16, 4267, 13, 7, 43, 7, 3740, 60, 800, 3726, 3726, 31, 170, 26, 40, 761, 1569, 43, 237, 19, 14, 1122, 508, 9, 95, 22, 195, 885, 109, 1300, 1985, 15, 47, 130, 2260, 20, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 OR two LIKE statements? === I have tried the following two statements: - `SELECT col FROM db.tbl WHERE col (LIKE 'str1' OR LIKE 'str2') AND col2 = num` results in a syntax error - `SELECT col FROM db.tbl WHERE page LIKE ('str1' OR 'str2') AND col2 = num` results in "Truncated incorrect DOUBLE value: str1" and "Truncated incorrect DOUBLE value: str2" for what looks like every result. However, no results are actually returned. I figured one of the two statements would work, but they aren't.
0
[ 2, 184, 107, 42, 54, 81, 101, 9015, 60, 800, 3726, 3726, 31, 57, 794, 14, 249, 81, 9015, 45, 13, 8, 13, 1, 18, 16964, 3313, 37, 13, 9007, 9, 38, 6287, 113, 3313, 13, 5, 1403, 13, 22, 9729, 165, 22, 54, 101, 13, 22, 9729, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 "Agile Development"? === I've been hearing a lot of buzz recently about "Agile Development", to the extent that a lot of job postings even list experience with it as a requirement. Now, I've read <a href="http://en.wikipedia.org/wiki/Agile_software_development">the Wikipedia article</a>, and some of the other questions asked here, but I'm still not exactly clear on what employers are expecting when they say "2 years of experience with Agile Development". If I've coded a project without having a 10-page design document when I started, does that constitute "Agile Development" experience? If I launch an app with a few core feature and then add more later, 37 Signals-style, is that "Agile Development"? What are employers really expecting of developers when they say that?
0
[ 2, 98, 25, 13, 7, 14482, 413, 522, 7, 60, 800, 3726, 3726, 31, 22, 195, 74, 3229, 21, 865, 16, 9122, 1989, 88, 13, 7, 14482, 413, 522, 7, 15, 20, 14, 5674, 30, 21, 865, 16, 1205, 15669, 18, 166, 968, 1496, 29, 32, 28, 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...