unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How gmail handles file attachment? === When I select a file to attach in gmail compose screen, It automatically uploads the file to server without page refresh. I looked at the html source code via FireBug and have not seen a n iframe. How do they upload attachments? Thanks.
0
[ 2, 184, 489, 8079, 3053, 18, 3893, 14575, 60, 800, 3726, 3726, 76, 31, 5407, 21, 3893, 20, 19514, 19, 489, 8079, 18217, 2324, 15, 32, 7499, 71, 8294, 18, 14, 3893, 20, 8128, 366, 2478, 24905, 9, 31, 292, 35, 14, 13, 15895, 1267,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ReportViewer control won't allow Exporting === 1) I have a ReportViewer control on a page that's linked to a ServerReport (I'm using ASP.NET 2.0). The report displays fine, but the 'Export' link is present but disabled and the 'Select a format' drop down list (that's normally visible when you view the report in Reporting Services) isn't there. Any ideas? The ShowExportControls property is set to true. 2) Also, when I click the print icon in the ReportViewer control, IE asks me if I want to install 'Microsoft SQL Server'. I click Install and then it displays a messagebox saying 'Unable to load client print control'. I'm using IE7 and Vista. Many thanks, Anthony
0
[ 2, 1330, 4725, 106, 569, 230, 22, 38, 1655, 7487, 68, 800, 3726, 3726, 137, 6, 31, 57, 21, 1330, 4725, 106, 569, 27, 21, 2478, 30, 22, 18, 4727, 20, 21, 8128, 17437, 13, 5, 49, 22, 79, 568, 28, 306, 9, 2328, 172, 9, 387, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding functonality to Linq-to-SQL objects to perform common selections === In a [previous question][1] I asked how to make "Computed properties" in a linq to sql object. The answer supplied there was sufficient for that specific case but now I've hit a similar snag in another case. I have a database with **Items** that have to pass through a number of **Steps**. I want to have a function in my database that retrieves the Current step of the item that I can then build on. For example: var x = db.Items.Where(item => item.Steps.CurrentStep().Completed == null); The code to get the current step is: Steps.OrderByDescending(step => step.Created).First(); So I tried to add an extension method to the **EntitySet&lt;Step&gt;** that returned a single **Step** like so: public static OrderFlowItemStep CurrentStep(this EntitySet<OrderFlowItemStep> steps) { return steps.OrderByDescending(o => o.Created).First(); } But when I try to execute the query at the top I get an error saying that the _CurrentStep()_ function has no translation to SQL. Is there a way to add this functionality to Linq-to-SQL in any way or do I have to manually write the query every time? I tried to write the entire query out first but it's very long and if I ever change the way to get the active step of an item I have to go over all the code again. I'm guessing that the CurrentStep() method has to return a Linq expression of some kind but I'm stuck as to how to implement it. [1]: http://stackoverflow.com/questions/190524/mapping-computed-properties-in-linq-to-sql-to-actuall-sql-statements
0
[ 2, 4721, 2414, 150, 444, 11923, 20, 6294, 1251, 8, 262, 8, 18, 22402, 3916, 20, 2985, 757, 3155, 18, 800, 3726, 3726, 19, 21, 636, 3515, 1755, 1291, 1301, 500, 2558, 165, 500, 31, 411, 184, 20, 233, 13, 7, 960, 4881, 69, 3704, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What benefits/impact will IPv6 have on application development & design? === There has been a lot of press about IPv6 and the impending switch over to IPv6 from IPv4. I have some understanding of IPv6, but I've often wondered how much impact IPv6 has on application development & design (specifically)? Are there some tangible/well known benefits IPv6 provides which we don't already have today? I know Windows Vista and Server 2008 support IPv6 out-of-the-box, is anyone using (or designing with IPv6 in mind) today, and if so, what are the benefits? Should we be considering IPv6 in current and future projects?
0
[ 2, 98, 5800, 118, 8983, 5183, 129, 31, 10166, 379, 57, 27, 3010, 522, 279, 704, 60, 800, 3726, 3726, 80, 63, 74, 21, 865, 16, 901, 88, 31, 10166, 379, 17, 14, 20554, 5521, 84, 20, 31, 10166, 379, 37, 31, 10166, 300, 9, 31, 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 do I prevent Eclipse from hanging on startup? === I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is: <pre> !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801 !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. </pre> Googling reveals [someone's suggestion][1] that I remove the folder: workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes This does not appear to have helped. Short of starting with a new workspace (something which I am not keen to do, as it takes me hours to set up all my projects again properly), is there a way to make Eclipse start up properly? [1]: http://dev.zhourenjian.com/blog/2007/11/07/eclipse-freezing-on-start.html
0
[ 2, 184, 107, 31, 2501, 11652, 37, 4505, 27, 20205, 60, 800, 3726, 3726, 31, 589, 568, 11652, 203, 9, 240, 13, 5, 7, 5630, 11490, 7, 6, 9, 19886, 15, 11652, 1384, 40, 19, 23239, 102, 175, 85, 13, 5, 11756, 3818, 6, 20, 799, 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...
Getting The Full Result from "ps" === How do I get the full width result for the *nix command "**ps**"?<br /> I know we can specify something like "--cols 1000" but is there anyway I can the columns and just print out everything?
0
[ 2, 1017, 14, 503, 829, 37, 13, 7, 1919, 7, 800, 3726, 3726, 184, 107, 31, 164, 14, 503, 9456, 829, 26, 14, 1637, 14064, 1202, 13, 7, 1409, 1919, 1409, 7, 60, 1, 5145, 13, 118, 1, 31, 143, 95, 92, 19077, 301, 101, 13, 7, 8,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a Silverlight control that has two content areas === I want to create a Silverlight 2 control that has two content areas. A Title and a MainContent. So the control would be: <StackPanel> <TextBlock Text=" CONTENT1 "/> <Content with CONTENT2 "/> </StackPanel> When I use the control I should just be able to use: <MyControl Text="somecontent">main content </MyControl> How can I create such a control?
0
[ 2, 184, 20, 1600, 21, 1172, 3130, 569, 30, 63, 81, 2331, 924, 800, 3726, 3726, 31, 259, 20, 1600, 21, 1172, 3130, 172, 569, 30, 63, 81, 2331, 924, 9, 21, 581, 17, 21, 407, 25424, 9, 86, 14, 569, 83, 44, 45, 13, 1, 25325, 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...
Java library to read a Microsoft Media Server (MMS) stream === I would like to know if there is available any Java library to read a Microsoft Media Server ([MMS][1]) stream. Thanks, Douglas [1]: http://en.wikipedia.org/wiki/Microsoft_Media_Server
0
[ 2, 8247, 1248, 20, 1302, 21, 7099, 941, 8128, 13, 5, 3363, 18, 6, 3766, 800, 3726, 3726, 31, 83, 101, 20, 143, 100, 80, 25, 904, 186, 8247, 1248, 20, 1302, 21, 7099, 941, 8128, 13, 5, 2558, 3363, 18, 500, 2558, 165, 500, 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...
Service and/or Commodity === Do we create services when we write programs, or are they commodities? Are we like window-washers in that our programs(actions) provide some services to the users? OR: are we like carpenters in that our programs(products) are sold and used by their new owners? Or should this be seen in different aspects: The act of programming being a service, and the resulting program is a product? The above has a direct impact on the following question: Is it theft or fraud when you copy software that you have no rights to? Theft is the physical removal of an object of value from the possession of another; fraud is representation of a falsehood in such a way that leads to the economic loss of the victim (the representation here being your assumption of right-to-copy). It also impacts on questions of causal liability: If the program you wrote to crack passwords are used by others to rob a bank: are you an accomplice? If your program is a service then it could be argued that you are; if a commodity then you 'should' be in the clear. Or: should each program be treated as a unique instance, based purely on the intentions of that program's originator, as to wether it should be treated as a service or commodity? Or should the user's intentions be used? How does this reflect on the open-source world where many programs are available that seemingly infringe on commercial rights, e.g.: copy-protection and DRM circumventions? (This impacts us all every time that we write code.)
0
[ 2, 365, 17, 118, 248, 22845, 800, 3726, 3726, 107, 95, 1600, 687, 76, 95, 2757, 1726, 15, 54, 50, 59, 24181, 60, 50, 95, 101, 1463, 8, 10903, 445, 19, 30, 318, 1726, 5, 8645, 18, 6, 1181, 109, 687, 20, 14, 3878, 60, 54, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Databases: Are "TEXT" fields less efficient than "varchar"? === Is it less efficient to use TEXT than varchar in an SQL database? If so why? If not why would you not just always use TEXT? I'm not targetting a specific database here but oracle is probably the most relevant, although I'm testing on MySQL for the time being as part of a proof of concept.
0
[ 2, 6018, 18, 45, 50, 13, 7, 11969, 7, 2861, 787, 8243, 119, 13, 7, 3311, 5433, 7, 60, 800, 3726, 3726, 25, 32, 787, 8243, 20, 275, 1854, 119, 4033, 5433, 19, 40, 4444, 255, 6018, 60, 100, 86, 483, 60, 100, 52, 483, 83, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
locale perldoc === i need to use utf-8 characters in my perl-documentation. if i use perldoc MyMod.pm i see strange characters. i see the same characters with pod2text MyMod.pm everything is fine. I use Ubuntu/Debian. $ locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL=de_DE.UTF-8
0
[ 2, 375, 62, 416, 255, 13799, 800, 3726, 3726, 31, 376, 20, 275, 287, 11720, 8, 457, 1766, 19, 51, 416, 255, 8, 28132, 857, 9, 100, 31, 275, 416, 255, 13799, 51, 13670, 9, 5576, 31, 196, 2578, 1766, 9, 31, 196, 14, 205, 1766, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2008 Setup Project is not generating Setup.exe anymore. === I have a Visual Studio 2008 Setup Project that when compiled in the past would generate a Setup.exe in the output directory along with the .msi output file. Now it no longer generates the Setup.exe which I actually do need. Did I change a project setting without realizing? How do I get it to generate it again?
0
[ 2, 3458, 1120, 570, 18161, 669, 25, 52, 13500, 18161, 9, 1706, 62, 3375, 9, 800, 3726, 3726, 31, 57, 21, 3458, 1120, 570, 18161, 669, 30, 76, 9316, 19, 14, 640, 83, 7920, 21, 18161, 9, 1706, 62, 19, 14, 5196, 16755, 303, 29, 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...
Cookie loses value in ASP.net === I have the following code that sets a cookie: string locale = ((DropDownList)this.LoginUser.FindControl("locale")).SelectedValue; HttpCookie cookie = new HttpCookie("Localization",locale); cookie.Expires= DateTime.Now.AddYears(1); Response.Cookies.Set(cookie); However, when I try to read the cookie, the Value is Null. The cookie exists. I never get past the following if check: if (Response.Cookies["localization"] != null && !string.IsNullOrEmpty(Response.Cookies["localization"].Value)) Help?
0
[ 2, 19980, 14745, 1923, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 14, 249, 1797, 30, 3415, 21, 19980, 45, 3724, 375, 62, 800, 13, 5, 5, 12361, 2968, 5739, 6, 1565, 9, 5567, 9585, 106, 9, 19811, 12898, 5, 7, 15580, 62, 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...
Hide a tab previously added to QT TabWidget === I've a dialog which contains a QT TabWidget with a number of tabs added. I'd like to hide one of the tabs. _mytab->hide() doesn't work. I don't want to just delete the tab and all its widgets from the .ui file because other code relies on the widgets within the tab. However, it would be fine to generate the tab code but somehow not ::insertTab in the generated uic_mydialog.cpp. Setting the hidden property in the ui file does not work either. I'm using QT 3.3
0
[ 2, 3077, 21, 6523, 1343, 905, 20, 2593, 38, 6523, 3976, 43, 3060, 800, 3726, 3726, 31, 22, 195, 21, 28223, 56, 1588, 21, 2593, 38, 6523, 3976, 43, 3060, 29, 21, 234, 16, 6523, 18, 905, 9, 31, 22, 43, 101, 20, 3077, 53, 16, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best Practice for Loading Object from Serialized XML in C# === Greetings, I have a particular object which can be constructed from a file, as such: public class ConfigObj { public ConfigObj(string loadPath) { //load object using .Net's supplied Serialization library //resulting in a ConfigObj object ConfigObj deserializedObj; // is now the object, having been deserialized. this = thisIsMyObj; //this doesn't work } } I want to, in essense, say "ok, and now this object we've just deserialized, this is the object that we in fact are." There are a few ways of doing this, and I'm wondering which is considered a best-practice. My ideas are: - Build a copy-into-me function which copies the object field by field. This is the current implementation and I'm pretty sure its a horrible idea since whenever a new member is added to the object I need to also remember to add it to the 'copy-into-me' function, and there's no way that's maintainable. - Build a static method for the ConfigObj class which acts as a de-facto constructor for loading the object. This sounds much better but not very best-practice-y. What do you recommend?
0
[ 2, 246, 1345, 26, 12797, 3095, 37, 27877, 23504, 19, 272, 5910, 800, 3726, 3726, 13769, 18, 15, 31, 57, 21, 1498, 3095, 56, 92, 44, 2096, 37, 21, 3893, 15, 28, 145, 45, 317, 718, 13, 14093, 10215, 11741, 13, 1, 317, 13, 14093, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C#/.NET: Detect whether program is being run as a service or a console application. === I have a C#/.NET program that can run both as a console application and as a service. Currently I give it a command-line option to start as a console application, but I would like to avoid that. Is it possible to programmatically detect whether my program is being started as a service? If it was pure Win32, I could try starting as a service with StartServiceCtrlDispatcher and fall back to console if it returned ERROR\_FAILED\_SERVICE\_CONTROLLER\_CONNECT, but System.ServiceProcess.ServiceBase.Run() pops up an errordialog if it fails and then just returns without signaling an error to the program. Any ideas?
0
[ 2, 272, 5910, 118, 9, 2328, 45, 9092, 1472, 625, 25, 142, 485, 28, 21, 365, 54, 21, 8650, 3010, 9, 800, 3726, 3726, 31, 57, 21, 272, 5910, 118, 9, 2328, 625, 30, 92, 485, 156, 28, 21, 8650, 3010, 17, 28, 21, 365, 9, 871, 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...
nHibernate, can I map to a table that doesn't have an row-per-object mapping? === I have a database that contains a table that looks a bit like this: PropertyId, EntityId, Value PropertyId and EntityId are a combined primary key. Every Entity is spread over a couple of rows where every row contains a single property of the entity. I have no control over this database so I'll have to work with it. Is it possible to use NHibernate to map entities from this table to single objects? I only have to read from this table, this might make things a bit easier. Or would I be better off just using DataReaders and do the mapping myself?
0
[ 2, 12109, 15191, 8820, 15, 92, 31, 2942, 20, 21, 859, 30, 1437, 22, 38, 57, 40, 3131, 8, 1432, 8, 23793, 13305, 60, 800, 3726, 3726, 31, 57, 21, 6018, 30, 1588, 21, 859, 30, 1879, 21, 1142, 101, 48, 45, 1354, 1340, 15, 9252, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 best to deal with gigantic source code files in Visual Studio === I'm working on a project which makes substantial use of code generation. Some of the files it generates contain >0.25 million lines of code. VS (2K5) doesn't cope too badly, but R# (4.01) throws an out of memory exception every two minutes or so. Splitting them out into partial classes isn't an option in the immediate term, though it may be later. Are there any clever IDE tricks to dealing with this?
0
[ 2, 184, 246, 20, 1183, 29, 23051, 1267, 1797, 6488, 19, 3458, 1120, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 669, 56, 1364, 6185, 275, 16, 1797, 2782, 9, 109, 16, 14, 6488, 32, 7920, 18, 3717, 13, 1, 387, 9, 1811, 507, 1560, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a free python debugger that has watchpoints? === pdb and winpdb both seem to be missing this essential (to me) feature. I saw something suggesting WingIDE has it but I'd prefer a solution that is free, and if I do have to pay, I'd prefer to pay for something that is better than Wing.
0
[ 2, 25, 80, 21, 551, 20059, 121, 2345, 11356, 30, 63, 1455, 3132, 18, 60, 800, 3726, 3726, 351, 9007, 17, 628, 9251, 220, 156, 2260, 20, 44, 2863, 48, 5832, 13, 5, 262, 55, 6, 1580, 9, 31, 441, 301, 8946, 1756, 3448, 63, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
distributed transaction between two MS SQL Server 2005 === I need to make DISTRIBUTED TRANSACTION between two MS SQL Server 2005, it drops an error that NO ACTIVE TRANSACTION IS PRESENT or smth like this. DTCTESTER programs drops an error that transaction could not be done. btw 135 port is open on the firewall. Maybe anyone knows what a problem, or have a suggestion?
0
[ 2, 4387, 12799, 128, 81, 4235, 4444, 255, 8128, 812, 800, 3726, 3726, 31, 376, 20, 233, 4387, 12799, 128, 81, 4235, 4444, 255, 8128, 812, 15, 32, 9458, 40, 7019, 30, 90, 1348, 12799, 25, 734, 54, 7613, 96, 101, 48, 9, 13, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 keep business support team motivated? === In the course of my career I've noticed that developers working on new functionality are, as a rule, more cheerful than these assigned to troubleshooting and fixing bugs. Good tips on keeping business support a happy? Organising business support in the way that teams morale isn’t hurt?
2
[ 2, 184, 20, 643, 508, 555, 173, 14413, 60, 800, 3726, 3726, 19, 14, 674, 16, 51, 545, 31, 22, 195, 2711, 30, 10168, 638, 27, 78, 18548, 50, 15, 28, 21, 1828, 15, 91, 20373, 119, 158, 2467, 20, 2572, 12511, 68, 17, 20047, 13925...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best API for simple 2d graphics with Java === I'm not sure what the best api for simple 2d graphics with Java is. I know java.awt.Graphics2D was the standard but has it been replaced? Swing is the new api for java GUI apps but it seems a bit heavy for what I want. What I really want is something like the C SDL(http://libsdl.org/) library.
4
[ 2, 246, 21, 2159, 26, 1935, 172, 43, 8351, 29, 8247, 800, 3726, 3726, 31, 22, 79, 52, 562, 98, 14, 246, 21, 2159, 26, 1935, 172, 43, 8351, 29, 8247, 25, 9, 31, 143, 8247, 9, 3885, 38, 9, 12084, 18, 135, 43, 23, 14, 1236, 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...
Python module that implements ftps === I was wondering if anybody could point me towards a free ftps module for python. I am a complete newbie to python, but this is something I need for a work project. I need an ftps client to connect to a 3rd party ftps server. thanks, David.
0
[ 2, 20059, 12613, 30, 8713, 18, 1187, 1919, 800, 3726, 3726, 31, 23, 5712, 100, 11181, 110, 454, 55, 1016, 21, 551, 1187, 1919, 12613, 26, 20059, 9, 31, 589, 21, 1279, 78, 5893, 20, 20059, 15, 47, 48, 25, 301, 31, 376, 26, 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...
Why does AbstractQueuedSynchronizer interrupt on acquring lock === I was looking at the source code of java.uti.concurrent.locks.AbstractQueuedSynchronizer and the acquire() method looks something like this - public final void acquire(int arg) { if (!tryAcquire(arg) && acquireQueued(addWaiter(Node.EXCLUSIVE), arg)) Thread.currentThread().interrupt(); } Why does it interrupt the thread calling acquire()? If there was check somewhere in the threads run() method, then it might pass after calling acquire() which is probably undesirable and unthought of? Anybody care to shed light on why the above piece of code does this?
0
[ 2, 483, 630, 8502, 2005, 291, 69, 16023, 11907, 15811, 27, 21, 21980, 10450, 3991, 800, 3726, 3726, 31, 23, 699, 35, 14, 1267, 1797, 16, 8247, 9, 11267, 9, 1126, 17657, 9, 3966, 18, 9, 2297, 18, 19915, 2005, 291, 69, 16023, 11907,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java: How do I get a platform independent new line character? === How do I get a platform independent newline in java? I can't use "\n" everywhere.
0
[ 2, 8247, 45, 184, 107, 31, 164, 21, 2452, 1124, 78, 293, 925, 60, 800, 3726, 3726, 184, 107, 31, 164, 21, 2452, 1124, 78, 1143, 19, 8247, 60, 31, 92, 22, 38, 275, 13, 7, 1, 103, 7, 6417, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Equivalent of %~dp0 in sh === I'm converting some Windows batch files to Unix scripts using sh. I have problems because some behavior is dependent on the %~dp0 macro available in batch files. Is there any sh equivalent to this? Any way to obtain the directory where the executing script lives?
0
[ 2, 4602, 16, 13, 11881, 1, 7431, 387, 19, 5527, 800, 3726, 3726, 31, 22, 79, 19583, 109, 1936, 13064, 6488, 20, 22540, 17505, 568, 5527, 9, 31, 57, 1716, 185, 109, 3257, 25, 9063, 27, 14, 13, 11881, 1, 7431, 387, 9069, 904, 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...
View error in PostgreSQL === I have a large query in a PostgreSQL database. The Query is something like this: SELECT * FROM table1, table2, ... WHERE table1.id = table2.id... When I run this query as a sql query, the it returns the wanted row. But when I tries to use the same query to create a view, it returns an error: "error: column "id" specified more than once." (I use pgAdminIII when executing the queries.) I'll guess this happens because the resultset will have more than one column named "id". Is there someway to solve this, without writing all the column names in the query?
0
[ 2, 1418, 7019, 19, 678, 6879, 18, 22402, 800, 3726, 3726, 31, 57, 21, 370, 25597, 19, 21, 678, 6879, 18, 22402, 6018, 9, 14, 25597, 25, 301, 101, 48, 45, 5407, 1637, 37, 859, 165, 15, 859, 135, 15, 13, 9, 9, 9, 113, 859, 165...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
General way to reset a member variable to its original value using the stack? === I came across a class instance function that needed to temporarily change a class instance variable, and then restore it when the function completed. The function had return statements all over the place, and before each return there was a restoring statement. That seemed messy to me, not to mention scary when a exception is thrown. As an improvement I came up with this generalization using a inner class definition. Here is a sample driver program (class restorer). class Unwind { private: bool b_active_; ///< the thing I want to be restored template<typename T> class restorer { T* ref_; T save_; public: restorer(T* perm) : ref_(perm), save_(*ref_) {}; ~restorer() { *ref_ = save_; } }; public: Unwind() : b_active_(false) {}; void a() { out("a in"); b(); out("a end"); } void b() { out("b in"); { restorer<bool> trust_in_the_stack(&b_active_); // "restorer" created on the stack b_active_ = true; // change b_active_ only while "within" b() c(); out("b inner end"); } out("b end"); } void c() { out("c in"); d(); out("c end"); } void d() { out("d in"); cout << "deepest" << endl; out("d end"); } void out(const std::string& msg) { std::cout << msg << ": " << b_active_ << std::endl; } }; int main() { Unwind u; u.a(); return 0; } The output using g++ 4.2.3 (-Wall) was: <pre> a in: 0 b in: 0 c in: 1 d in: 1 deepest d end: 1 c end: 1 b inner end: 1 b end: 0 a end: 0 </pre> Which is what I expect at "b end". I felt that defining the class restorer inside the class Unwind helps to discourage misuse. My question is, is there a general and safer way to do this? I am worried about lifetime issues.
0
[ 2, 297, 161, 20, 23422, 21, 322, 7612, 20, 82, 501, 1923, 568, 14, 7566, 60, 800, 3726, 3726, 31, 281, 464, 21, 718, 4851, 1990, 30, 851, 20, 7866, 753, 21, 718, 4851, 7612, 15, 17, 94, 8454, 32, 76, 14, 1990, 1066, 9, 14, 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 to use Vista's SuperFetch with Eclipse ? === Vista's SuperFetch works well with applications installed, but it does not seem to do so with Eclipse, which is just copied in a directory. Does anyone know how to correct this ? Or is it simply not possible ? [I hope this one will not be closed as "not programming related", because I need Eclipse on my machine for programming ;-) ]
0
[ 2, 184, 20, 275, 13520, 22, 18, 1026, 410, 19913, 29, 11652, 13, 60, 800, 3726, 3726, 13520, 22, 18, 1026, 410, 19913, 693, 134, 29, 3767, 4066, 15, 47, 32, 630, 52, 2260, 20, 107, 86, 29, 11652, 15, 56, 25, 114, 18225, 19, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I extract a 2D slice from 3D geometry from plane intersection? === Recently our team was facing the task to build the 2D slice between a plane and some set of 3D geometry (set of triangles). Google hasn't been as helpful as we have wanted it to be, so we turn our attention here to see if anyone has encountered this problem with a possible solution. Links are also wanted. Finding the intersection points in itself isn't a hard task, but ensuring triangles being generated correctly with correct corner composition is playing a hard game with us. We simply lack the math/understanding of how triangle construction from an arbirtrary model is done. If you have problems understanding what we're trying to do, imagine this scenario: A bunny model is loaded into the program. Next a "laser" travels across space, cutting the bunny in half. That thin slice that the laser cut is the slice we want to generate. It should be a 2D triangle set. If laser doesn't cut it for you (no pun intended), think knife, plane, anything that slices something across a plane. Thanks in advance.
0
[ 2, 184, 107, 31, 10962, 21, 172, 43, 12982, 37, 203, 43, 11689, 37, 3627, 5351, 60, 800, 3726, 3726, 1989, 318, 173, 23, 4325, 14, 3005, 20, 1895, 14, 172, 43, 12982, 128, 21, 3627, 17, 109, 309, 16, 203, 43, 11689, 13, 5, 355...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 easily map c++ enums to strings === I have a bunch of enum types in some library header files that I'm using, and I want to have a way of converting enum values to user strings - and vice-versa. RTTI won't do it for me, because the 'user strings' need to be a bit more readable than the enumerations. A brute force solution would be a bunch of functions like this, but I feel that's a bit too C-like. enum MyEnum {VAL1, VAL2,VAL3}; String getStringFromEnum(MyEnum e) { switch e { case VAL1: return "Value 1"; case VAL2: return "Value 2"; case VAL1: return "Value 3"; default: throw Exception("Bad MyEnum"); } } I have a gut feeling that there's an elegant solution using templates, but I can't quite get my head round it yet.
0
[ 2, 184, 20, 2351, 2942, 272, 20512, 1957, 723, 18, 20, 7887, 800, 3726, 3726, 31, 57, 21, 7653, 16, 1957, 723, 2551, 19, 109, 1248, 157, 106, 6488, 30, 31, 22, 79, 568, 15, 17, 31, 259, 20, 57, 21, 161, 16, 19583, 1957, 723, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Key ingredients for good tools policy? === A mere sub-standard screwdriver can turn a quick Do-It-Yourself job round the house into an exercise in frustration that makes you feel really exhausted, annoyed and helpless at the same time. This is a feeling that is too familiar to most software professionals who are trying to cope with their everyday tasks using inadequate tools. That is why best professionals always know, love and cherish their tools. They are always in pursuit of better equipment. **As a software development manager one has great influence over development tools policy. What key ingredients a good policy must include? Beyond and above the policy itself what measures need to be taken continuously to keep the tools as "sharp" as possible? **
0
[ 2, 1246, 14129, 26, 254, 4672, 1486, 60, 800, 3726, 3726, 21, 8386, 972, 8, 15566, 8513, 21752, 92, 805, 21, 2231, 107, 8, 242, 8, 4314, 8411, 1205, 560, 14, 191, 77, 40, 5935, 19, 8740, 30, 1364, 42, 583, 510, 8734, 15, 13008, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 enable MySQL client auto re-connect with MySQLdb? === I came across PHP way of doing the trick: my_bool reconnect = 1; mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect); but no luck with MySQLdb (python-mysql). Can anybody please give a clue? Thanks.
0
[ 2, 184, 20, 9240, 51, 18, 22402, 6819, 3108, 302, 8, 25996, 29, 51, 18, 22402, 9007, 60, 800, 3726, 3726, 31, 281, 464, 13, 26120, 161, 16, 845, 14, 5514, 45, 51, 1, 1192, 1823, 29693, 800, 137, 73, 51, 18, 22402, 1, 25458, 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...
Windows (ideally .NET callable) API to join MP4 and/or 3GP files? === I'm working on our back-end encoder service which does an awful lot of video transcoding, and a very small amount of joining of video files. The transcoding is done using the On2 Flix engine for Windows which works very well, but unfortunately it isn't able to join files (at least as far as I can ascertain - neither the help nor the support are very informative). I'm happy with this for now. The joining, at the moment, is done using the LEADTOOLS Multimedia software which is, franky, dreadful. It's single threaded and requires STA as it uses a message pump which isn't exactly desirable for a server application. In addition the installation overwrites all our working codecs with a load of its own eval ones, and there is no way to avoid this. Ideally I'm looking for an API to replace the LEADTOOLs Multimedia one, which can join 3GP and/or MP4 files. Cost isn't too much of a problem. Does anybody have any recommendations? I know the ideal solution is to write our own tool here, but we're intending to do this in WMF and haven't quite transitioned to Win2008 yet so we need a temporary solution for a couple of months.
0
[ 2, 1936, 13, 5, 3448, 1326, 13, 9, 2328, 645, 579, 6, 21, 2159, 20, 1865, 4628, 300, 17, 118, 248, 203, 13321, 6488, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 318, 97, 8, 2451, 20523, 139, 365, 56, 630, 40, 9021, 865, 16, 76...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Keeping system font settings but making it bold === I'm having problems with cross theme compatibility in windows forms. If you don't set the font for a control on a windows form, it will use the system font with correct typeface and size. If you want to make the font **bold**, it hard codes in the rest of the system font values for the current theme you're programming with. For instance: System::Windows::Forms::Label^ label1 = gcnew System::Windows::Forms::Label(); this->label1->AutoSize = true; this->label1->Location = System::Drawing::Point(9, 12); this->label1->Name = L"lblExample"; this->label1->Size = System::Drawing::Size(44, 13); this->label1->TabIndex = 3; this->label1->Text = L"Example Text"; If I then change the properties of this via the properties editor so that bold = true, it adds in this line: this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); Is there a way of using the default font, but making it bold? Further yet, is there a way of using the system font, but making the size 3 or 4 points larger?
0
[ 2, 2882, 329, 9978, 12410, 47, 544, 32, 5657, 800, 3726, 3726, 31, 22, 79, 452, 1716, 29, 919, 3184, 13, 21618, 19, 1936, 1997, 9, 100, 42, 221, 22, 38, 309, 14, 9978, 26, 21, 569, 27, 21, 1936, 505, 15, 32, 129, 275, 14, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how do you manage servers' root passwords === In our administration team, everyone knows root passwords for all client server but what we do , if one of the team is not still working with us he has still our passwords and we have to change them all, every time someone leave us , now we are using ssh keys, unstead of passwords, but this is not helpful if we have to do something other than ssh.
0
[ 2, 184, 107, 42, 4705, 17595, 22, 5900, 20884, 18, 800, 3726, 3726, 19, 318, 1603, 173, 15, 1266, 3620, 5900, 20884, 18, 26, 65, 6819, 8128, 47, 98, 95, 107, 13, 15, 100, 53, 16, 14, 173, 25, 52, 174, 638, 29, 182, 24, 63, 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...
F# declared namespace is not available in the c# project or visible through the object browser === F# declared namespace is not available in the c# project or visible through the object browser. I have built a normal F# library project, but even after i build the project and reference it to my C# project, I am unable to access the desired namespace. I am also unable to see it in the object browser, i get an error telling me that it has not been built. I am running on the september release can someone point out my error ?
0
[ 2, 398, 5910, 2482, 204, 5582, 25, 52, 904, 19, 14, 272, 5910, 669, 54, 4560, 120, 14, 3095, 16495, 800, 3726, 3726, 398, 5910, 2482, 204, 5582, 25, 52, 904, 19, 14, 272, 5910, 669, 54, 4560, 120, 14, 3095, 16495, 9, 31, 57, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to list the properties of a javascript object === Say I create an object thus: var myJSONObject = {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}; What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that: keys == ["ircEvent", "method", "regex"] Thanks.
0
[ 2, 184, 20, 968, 14, 3704, 16, 21, 8247, 8741, 3095, 800, 3726, 3726, 395, 31, 1600, 40, 3095, 1086, 45, 4033, 51, 728, 528, 23793, 800, 13, 1, 7, 1523, 1105, 6645, 7, 45, 13, 7, 6944, 20147, 18, 263, 7, 15, 13, 7, 5909, 180...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to create a custom distribution of OpenOffice, or a way to package it into my java application? === I've got simple java-based ppt->swf sub-project that basically works. The open source software out there, [OpenOffice.org][1] and [JODConverter][2] do the job great. The thing is, to do this I need to install OO.o and run it in server mode. And to do that I have to install OO.o, which is *allot* of software (~160MB) just to convert the source PPT files to an intermediate format. Also, the public OO.o distributions are platform specific and I'd really like a single, cross platform set of files. And, I'd like to not interfer with a system's current settings, like file extension associations. As things are now, my project is not particularly 'software distribution friendly'. So, the questions are: * Is it possible to create a custom distribution of OpenOffice? How would one about this? * How lightweight and unobtrusive can I make the installation? * Would it be possible to have a truly cross platform distribution since there would be no OO.o UI? * Are there any licensing issues I need to be aware of? (On my list of things to check out, but if you them already then TIA!) [1]: http://www.openoffice.org/ [2]: http://www.artofsolving.com/opensource/jodconverter
0
[ 2, 25, 32, 938, 20, 1600, 21, 5816, 2523, 16, 368, 17047, 15, 54, 21, 161, 20, 6030, 32, 77, 51, 8247, 3010, 60, 800, 3726, 3726, 31, 22, 195, 330, 1935, 8247, 8, 1281, 3273, 38, 8, 1, 18, 15263, 972, 8, 21011, 30, 11374, 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...
Export Multiple Sheets to Excel Through Browser === I need to export multiple data tables to Excel on the clients machine, each to their own sheet. If it was just one sheet, I'd use the Excel/csv content type, but I've heard something about an XML format that can represent an entire workbook. I don't want to go down the Packaging and .xlsx route, so I need standard .xls. Our bug tracker, Gemini, used to have an export function that produced an XML file that Excel automatically opened as a multi-sheet workbook, but I can't find it. Is there still such a mechanism, and where can I find that schema?
0
[ 2, 7487, 1886, 8801, 20, 20700, 120, 16495, 800, 3726, 3726, 31, 376, 20, 7487, 1886, 1054, 7484, 20, 20700, 27, 14, 7421, 1940, 15, 206, 20, 66, 258, 6125, 9, 100, 32, 23, 114, 53, 6125, 15, 31, 22, 43, 275, 14, 20700, 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...
Why does SQL Management Studio output null separated characters when saving as csv? === and can it be configured not to happen? I'm usually finding myself saving a result of a query as a .csv and processing it later on my Unix machine. The characters being null separated makes me have to filter those chars and is a bit of a pain. So, these are the questions: 1. Why is this so? 2. Can it be disabled somehow? How? Here's a piece of a hexdump of a file thus generated. Each char is followed by a null char (00): 00000cf0 36 00 36 00 32 00 0d 00 0a 00 36 00 38 00 34 00 |6.6.2.....6.8.4.| 00000d00 30 00 36 00 32 00 31 00 36 00 0d 00 0a 00 36 00 |0.6.2.1.6.....6.| 00000d10 38 00 34 00 30 00 36 00 33 00 36 00 34 00 0d 00 |8.4.0.6.3.6.4...| 00000d20 0a 00 36 00 38 00 34 00 30 00 36 00 38 00 34 00 |..6.8.4.0.6.8.4.| 00000d30 32 00 0d 00 0a 00 36 00 38 00 34 00 30 00 37 00 |2.....6.8.4.0.7.| 00000d40 30 00 32 00 31 00 0d 00 0a 00 36 00 38 00 34 00 |0.2.1.....6.8.4.| 00000d50 30 00 37 00 37 00 39 00 37 00 0d 00 0a 00 36 00 |0.7.7.9.7.....6.| 00000d60 38 00 34 00 30 00 37 00 39 00 32 00 31 00 0d 00 |8.4.0.7.9.2.1...| 00000d70 0a 00 36 00 38 00 34 00 30 00 38 00 32 00 34 00 |..6.8.4.0.8.2.4.| 00000d80 31 00 0d 00 0a 00 36 00 38 00 34 00 30 00 38 00 |1.....6.8.4.0.8.| 00000d90 36 00 36 00 31 00 0d 00 0a 00 36 00 38 00 34 00 |6.6.1.....6.8.4.| 00000da0 30 00 38 00 37 00 35 00 31 00 0d 00 0a 00 36 00 |0.8.7.5.1.....6.| 00000db0 38 00 34 00 31 00 30 00 32 00 35 00 34 00 0d 00 |8.4.1.0.2.5.4...| 00000dc0 0a 00 36 00 38 00 34 00 31 00 30 00 34 00 34 00 |..6.8.4.1.0.4.4.|
0
[ 2, 483, 630, 4444, 255, 1097, 1120, 5196, 16203, 4196, 1766, 76, 7599, 28, 272, 18, 710, 60, 800, 3726, 3726, 17, 92, 32, 44, 28895, 52, 20, 2384, 60, 31, 22, 79, 951, 3007, 992, 7599, 21, 829, 16, 21, 25597, 28, 21, 13, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why are width & height of loaded SWFLoader zero? === I have a class which extends SWFLoader, I use it like a normal SWFLoader: var loader:MySWFLoader = new MySWFLoader(); loader.load("myFile.SWF"); myScene.addChild(loader); The loading works OK, except that it remains 0 because the width & height never change from 0. I had to override the width/height get properties to make it work: class MySWFLoader extends SWFLoader { public override function get width():Number{ return contentWidth; } public override function get height():Number{ return contentHeight; } } As well as being a big hack this isn't quite correct; especially since the SWF has multiple frames and the frames are of different width/height. Why aren't width/height working in the first place? Shouldn't they be automatically set during loading? Is it possible the issue lies with the SWF itself somehow?
0
[ 2, 483, 50, 9456, 279, 2947, 16, 8572, 13, 18, 15263, 8294, 106, 4606, 60, 800, 3726, 3726, 31, 57, 21, 718, 56, 9073, 13, 18, 15263, 8294, 106, 15, 31, 275, 32, 101, 21, 1826, 13, 18, 15263, 8294, 106, 45, 4033, 6305, 106, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Selectively apply css to a row in a givdview === I'm looking for a way to selectively apply a css class to individual rows in a GridView based upon a property of the data bound item. e.g.: GridView's data source is of type IList<SummaryItem> and SummaryItem has a property 'ShouldHighlight'... when ShouldHighlight == true the css for the associated row should be set to 'highlighted' any ideas?
0
[ 2, 14092, 102, 5645, 272, 18, 18, 20, 21, 3131, 19, 21, 489, 3757, 43, 4725, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 14092, 102, 5645, 21, 272, 18, 18, 718, 20, 1359, 11295, 19, 21, 7354, 4725, 432, 685, 21, 1354, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 replace using regex in php? === Im pretty new to regexp. I have to replace all spaces from a multiline-text they are at the begining of a line with a non breaking space (`&nbsp;`) and all "more then one spaces" with the equivalent count of non breaking spaces too. I used the [Regex Coach][1] to build the matching pattern: /( ){2,}|^( )/ Let's assume I have this input text: asdasd asdasd asdas1 asda234 4545 54 34545 345 34534 34 345 using a php regex replace function (like [`preg_replace()`][2]) I want to get this output: asdasd asdasd&nbsp&nbspasdas1 &nbspasda234 4545&nbsp&nbsp&nbsp&nbsp54 &nbsp&nbsp34545 345&nbsp&nbsp34534 34 345 I know how to replace a simple text using regex. But how can I replace a string with the count of a substring inside a match to get this output? *Yes, I know that the real non breaking space has a semicolon, but this editor here converts it to a regular space, even inside a codeblock...* [1]: http://www.weitz.de/regex-coach/ [2]: http://ch.php.net/manual/en/function.preg-replace.php
0
[ 2, 184, 20, 3934, 568, 7953, 1706, 19, 13, 26120, 60, 800, 3726, 3726, 797, 1772, 78, 20, 7953, 6899, 9, 31, 57, 20, 3934, 65, 7644, 37, 21, 1889, 1143, 8, 11969, 59, 50, 35, 14, 2348, 68, 16, 21, 293, 29, 21, 538, 3892, 726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Consuming a Web service using Javascript === Is there a way to consume a web service using Javascript? Looking for a built in way to do it, Javascript framework is not an option. Thanks, [RWendi][1] [1]: http://www.rwendi.com "RWendi"
0
[ 2, 13, 17601, 21, 2741, 365, 568, 8247, 8741, 800, 3726, 3726, 25, 80, 21, 161, 20, 16447, 21, 2741, 365, 568, 8247, 8741, 60, 699, 26, 21, 392, 19, 161, 20, 107, 32, 15, 8247, 8741, 6596, 25, 52, 40, 4255, 9, 3669, 15, 636, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 CA Exit Module Code or Tutorial === Hi I'm struggling to find examples/explanations of coding a MS Certificate Authority exit module. If anybody has any help or resources they can point me at I'd be grateful. Thanks Mark
0
[ 2, 4235, 1658, 4350, 12613, 1797, 54, 29724, 800, 3726, 3726, 4148, 31, 22, 79, 7587, 20, 477, 3770, 118, 6899, 1804, 7504, 16, 13, 15458, 21, 4235, 6259, 1959, 4350, 12613, 9, 100, 11181, 63, 186, 448, 54, 2566, 59, 92, 454, 55, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
User Names and White-Spaces === In past many years I have registered on various applications and platforms hosted online or offline. Why white-spaces are not allowed in User Names as spaces are very natural to names and most of the computing systems can handle them efficiently. (Many people can raise similar questions about other special characters which are illegal. But their case is far more understandable as they are not even natural to real world naming schemes.)
0
[ 2, 4155, 1817, 17, 359, 8, 5582, 18, 800, 3726, 3726, 19, 640, 151, 122, 31, 57, 3801, 27, 617, 3767, 17, 6843, 2812, 2087, 54, 168, 1143, 9, 483, 359, 8, 5582, 18, 50, 52, 1159, 19, 4155, 1817, 28, 7644, 50, 253, 1112, 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 are the MIME types for .NET project source code files? === Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project? If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the `mod_dav_svn` module when viewing a Subversion repository from a web browser, so anything that'll help Firefox _et al_ render the file correctly would do the trick.
0
[ 2, 98, 50, 14, 26193, 2551, 26, 13, 9, 2328, 669, 1267, 1797, 6488, 60, 800, 3726, 3726, 50, 80, 989, 26193, 2551, 26, 14, 13, 9, 6824, 13, 5, 150, 5910, 1267, 6, 15, 13, 9, 99, 18, 396, 15, 13, 9, 472, 306, 396, 15, 2722,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTTP Authentication (Basic or Digest) in ASP Classic via IIS === I want to develop a website in ASP classic that uses HTTP Authentication against a database or password list that is under the control of the script. Ideally, the solution should involve no components or IIS settings as the script should be runnable in a hosted environment. Any clues/code deeply appreciated.
0
[ 2, 7775, 27963, 13, 5, 26467, 54, 14779, 6, 19, 28, 306, 2732, 1197, 595, 18, 800, 3726, 3726, 31, 259, 20, 2803, 21, 2271, 19, 28, 306, 2732, 30, 2027, 7775, 27963, 149, 21, 6018, 54, 20884, 968, 30, 25, 131, 14, 569, 16, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use RLIKE MySQL function inside of SQL Server 2005? === I need to run a RLIKE query on a database mmoved from MySQL to SQL Server 2005 however having problems replicating the "RLIKE" functionality that MySQL provides. Does anyone have any ideas? Cheers, Chris
0
[ 2, 184, 92, 31, 275, 761, 1403, 51, 18, 22402, 1990, 572, 16, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 31, 376, 20, 485, 21, 761, 1403, 25597, 27, 21, 6018, 1620, 2026, 69, 37, 51, 18, 22402, 20, 4444, 255, 8128, 812, 207, 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...
Fast recursive grepping of svn working copy === I need to search all cpp/h files in svn working copy for "foo", excluding svn's special folders completely. What is the exact command for GNU grep?
0
[ 2, 1512, 302, 24244, 5604, 5574, 16, 13, 18, 16578, 638, 4344, 800, 3726, 3726, 31, 376, 20, 2122, 65, 272, 3421, 118, 252, 6488, 19, 13, 18, 16578, 638, 4344, 26, 13, 7, 4120, 111, 7, 15, 13, 14938, 13, 18, 16578, 22, 18, 621...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
How to use a different assembly name for different configurations? === In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as: MyAppDebug - in debug mode and just MyApp - in release mode Does anyone know if this is possible?
0
[ 2, 184, 20, 275, 21, 421, 1475, 204, 26, 421, 8091, 18, 60, 800, 3726, 3726, 19, 3458, 1120, 570, 13, 5, 290, 654, 6, 76, 2936, 21, 13, 9, 2328, 54, 1172, 3130, 3010, 100, 42, 361, 35, 154, 669, 3704, 15, 32, 2206, 101, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make Apache/mod_python process to collect its zombies? === Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ... One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child process table entry. After that long-run-in-subprocess python script finishes - defunct python process has been left. # ps -ef | grep httpd root 23911 1 0 Oct15 ? 00:00:01 /usr/sbin/httpd ... qa 23920 23911 0 Oct15 ? 00:00:00 /usr/sbin/httpd # ps -ef | grep python ... qa 28449 23920 0 12:38 ? 00:00:00 [python] <defunct> What is the way to make the Apache process to collect its children? Is it possible to do the job via a mod_python request handler ( like PythonCleanupHandler for example)? Thanks.
0
[ 2, 184, 20, 233, 17140, 118, 13670, 1, 6448, 11570, 953, 20, 5543, 82, 15712, 60, 800, 3726, 3726, 17140, 15718, 9, 135, 9, 379, 13, 5, 1020, 4028, 6, 14440, 15718, 7226, 1, 6448, 11570, 16842, 9, 135, 9, 457, 20059, 15718, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery selector logic fails if id has '.' in the value. Any solution ? === I am using Spring Forms for my web application. For nested properties, the form tag generates the input elements having id / name in form of <property_name>.<nested_property_name> For example, Person is the command class and Address is contained into its address field then the city element would be, <input type="text" id="address**.**city" name="address**.**city" /> now, the problem is whenever I try to get its value using jQuery, $("#address.city").val(); jQuery fails to select any appropriate element ! Please let me know any solution. Thanks in advance.
0
[ 2, 487, 8190, 93, 23946, 7085, 13614, 100, 4924, 63, 13, 22, 9, 22, 19, 14, 1923, 9, 186, 4295, 13, 60, 800, 3726, 3726, 31, 589, 568, 1573, 1997, 26, 51, 2741, 3010, 9, 26, 5618, 69, 3704, 15, 14, 505, 3383, 7920, 18, 14, 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...
Can syslog Performance Be Improved? === We have an application on Linux that used the [syslog](http://linux.die.net/man/3/syslog) mechanism. After a week spent trying to figure out why this application was running slower than expected, we discovered that if we eliminated syslog, and just wrote directly to a log file, performance improved dramatically. I understand why syslog is slower than direct file writes. But I was wondering: Are there ways to configure syslog to optimize its performance?
0
[ 2, 92, 10315, 18, 5567, 956, 44, 3999, 60, 800, 3726, 3726, 95, 57, 40, 3010, 27, 13024, 30, 147, 14, 636, 4980, 18, 5567, 500, 5, 21127, 6903, 1226, 7147, 9, 3840, 9, 2328, 118, 177, 118, 9280, 4980, 18, 5567, 6, 6534, 9, 75,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get Srcsrv with SVNindex.cmd to index extern files ? === I have recently made use of the SrcSrv feature in the [Debugging Tools For Windows](http://www.microsoft.com/whdc/devtools/debugging/default.mspx), but have noticed that when I index the pdb with **SVNIndex.cmd** it does not pick up any of the files that are from an [external link](http://svnbook.red-bean.com/en/1.0/ch07s03.html). Any suggestions ?
0
[ 2, 184, 107, 31, 164, 13, 18, 5453, 18, 10359, 29, 13, 18, 16578, 25671, 9, 9095, 43, 20, 4348, 1396, 8766, 6488, 13, 60, 800, 3726, 3726, 31, 57, 1989, 117, 275, 16, 14, 13, 18, 5453, 18, 10359, 1580, 19, 14, 636, 546, 16254,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ubiquitous computing and magnetic interference === Imagine the radio of a car, does the electro magnetic fields through which the car goes through, have interference in the processing? It's easy to understand that a strong field can corrupt data. But what about the data under processment? Can it also be changed? If so how could you protect your code against this? (without electrial protections just code ones)
0
[ 2, 28784, 10626, 17, 7877, 11787, 800, 3726, 3726, 4382, 14, 603, 16, 21, 349, 15, 630, 14, 6435, 7877, 2861, 120, 56, 14, 349, 1852, 120, 15, 57, 11787, 19, 14, 5511, 60, 32, 22, 18, 2010, 20, 1369, 30, 21, 966, 575, 92, 1130...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 remove a property from a javascript object === Say I create an object thus: var myJSONObject = {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}; What is the best way to remove the property 'regex'? i.e. I would like to end up with myJSONObject such that: myJSONObject == {"ircEvent": "PRIVMSG", "method": "newURI"}; Thanks.
0
[ 2, 184, 20, 4681, 21, 1354, 37, 21, 8247, 8741, 3095, 800, 3726, 3726, 395, 31, 1600, 40, 3095, 1086, 45, 4033, 51, 728, 528, 23793, 800, 13, 1, 7, 1523, 1105, 6645, 7, 45, 13, 7, 6944, 20147, 18, 263, 7, 15, 13, 7, 5909, 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...
Launch an event that has accessors === How can I launch an event that has accessors like this : public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandManager.RequerySuggested -= value; } } If it were a normal event I would launch it by: CanExecuteChanged(sender, EventArgs..). But here it doesn't work - I can only do CanExecuteChanged +=.. to attach a method do the event - but I can't Launch it. Also some documentation on the subject would be appreciated. Thanks.
0
[ 2, 3394, 40, 807, 30, 63, 1381, 248, 18, 800, 3726, 3726, 184, 92, 31, 3394, 40, 807, 30, 63, 1381, 248, 18, 101, 48, 13, 45, 317, 807, 807, 3203, 1252, 92, 1706, 17194, 591, 16229, 43, 13, 1, 3547, 13, 1, 1202, 22256, 9, 99...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 read and write multiple files === I want two write a program that in a folder i have n number of files, first read one file and perform some operation then store result in a separate file and the read 2nd file again perform operation and save result in new 2nd file, even same procedure n number of files.the program read all files one by one and stores results of each file separately in python. please give examples how i will do it. thanks
0
[ 2, 184, 20, 1302, 17, 2757, 1886, 6488, 800, 3726, 3726, 31, 259, 81, 2757, 21, 625, 30, 19, 21, 19294, 31, 57, 13, 103, 234, 16, 6488, 15, 64, 1302, 53, 3893, 17, 2985, 109, 1453, 94, 1718, 829, 19, 21, 1725, 3893, 17, 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 is the best practise for compiling Silverlight and WPF in one project? === I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all in one project. My ideal solution would be a single project that allows multiple configurations. So, Configuration: Silverlight would generate: Company.Controls.Silverlight.dll Configuration: WPF would generate: Company.Controls.Wpf.dll Is it possible to have the same source in the same file just seperated via defines? Has anyone done this before?
0
[ 2, 98, 25, 14, 246, 27954, 26, 24378, 1172, 3130, 17, 619, 7721, 19, 53, 669, 60, 800, 3726, 3726, 31, 22, 195, 114, 1066, 21, 1172, 3130, 669, 17, 32, 22, 18, 85, 20, 57, 21, 265, 2745, 71, 9, 31, 22, 43, 101, 20, 247, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How long to retain an archive of web server traffic logs? === We've currently got four web servers in a farm generating IIS web logs about 100Mb per day. These can be compressed pretty effieciently down to somwhere around 5% of their size. We are planning to use waRmZip to move them off the servers and onto a SAN. After a week or so we can be confident we don't have any technical issues to investigate so the only other thing would be using them for trend analysis as a compliment to Google Analytics. What retention periods do people recommend? Are there any legal requirements to keep this data?
0
[ 2, 184, 175, 20, 8201, 40, 9250, 16, 2741, 8128, 2227, 18893, 60, 800, 3726, 3726, 95, 22, 195, 871, 330, 222, 2741, 17595, 19, 21, 1937, 13500, 595, 18, 2741, 18893, 88, 808, 5024, 416, 208, 9, 158, 92, 44, 18472, 1772, 13, 903...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set Locale of a SQL Server 2005 === By default the SQL Server comes with the Langauge set to "English (United States)", setting the date format to mm/dd/yy instead of the date format I want it in, which is Australian and has a date format such as dd/mm/yy. Is there an option in the Server Management Studio / Configuration tools where I can set the locale of the SQL Server, which will prevent the DateTime fields from being formatted in US date format? If not, how can I convert it when I am using a SQL query such as (forgive me if there is incorrect syntax, I made it up on the spot): Dim dc As New SqlCommand("INSERT INTO hello VALUES (@Date)", cn) dc.Parameters.Add(New SqlParameter("Date", System.DateTime.Now)) Many thanks in advance. :)
0
[ 2, 309, 375, 62, 16, 21, 4444, 255, 8128, 812, 800, 3726, 3726, 34, 12838, 14, 4444, 255, 8128, 1624, 29, 14, 6178, 27229, 309, 20, 13, 7, 6024, 13, 5, 12378, 202, 6, 7, 15, 2697, 14, 1231, 2595, 20, 1620, 118, 8096, 118, 93, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Configure multiple keystores in JBoss depending on requested hostname === I have my J2EE application deployed into a JBossAS. My Application has to respond to two different hostnames (https://foo.com/myApp and https://bar.com/myApp). It is the same instance of the app serving those two hostnames. But I don't know how to configure the keystores. I need different keystores for each hostname. Is there a way to tie a virtual host in JBoss' server.xml to a specific connector? Or do I have to use two different IP-addresses and create a connector for each?
0
[ 2, 1065, 15951, 1886, 1246, 16828, 18, 19, 487, 10349, 18, 4758, 27, 6602, 2015, 7259, 800, 3726, 3726, 31, 57, 51, 487, 135, 2851, 3010, 6698, 77, 21, 487, 10349, 18, 472, 9, 51, 3010, 63, 20, 4590, 20, 81, 421, 2015, 7259, 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...
Webform checkbox value in javascript === I have a checkbox list control on my asp.net web form that I am dynamically populating from an arraylist. In javascript I want to be able to iterate through the values in the list and if a particular value has been selected to display other controls on the page. My issue is that all the values in the checkbox list are showing up as 'on' instead of the actual value set. How do I get the actual values for each checkbox? Thanks. Javascript: checkBoxs=document.getElementById(CheckboxList); var options=checkBoxs.getElementsByTagName('input'); for(var i=0;i<options.length;i++) { if(options[i].value=="Other") { if(options[i].checked) { var otherPub=document.getElementById('<%=alsOtherPublicity.ClientID%>'); otherPub.style.display='block'; } } }
0
[ 2, 2741, 4190, 2631, 5309, 1923, 19, 8247, 8741, 800, 3726, 3726, 31, 57, 21, 2631, 5309, 968, 569, 27, 51, 28, 306, 9, 2328, 2741, 505, 30, 31, 589, 7782, 1326, 1675, 10038, 37, 40, 7718, 5739, 9, 19, 8247, 8741, 31, 259, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Applet and Browser Freeze === Is there a best practice for avoiding a browser freeze when loading an applet? For my precise needs, the applet needs to be loaded when the web application is initialized, and is not a visual component (will be in a hidden div or hidden iframe). As a reference, here is an [old bug on SUN's side][1]. [1]: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6267809
0
[ 2, 8247, 4037, 38, 17, 16495, 11551, 800, 3726, 3726, 25, 80, 21, 246, 1345, 26, 10298, 21, 16495, 11551, 76, 12797, 40, 4037, 38, 60, 26, 51, 11114, 2274, 15, 14, 4037, 38, 2274, 20, 44, 8572, 76, 14, 2741, 3010, 25, 2104, 1333...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you pass data from a child view to a parent view using the iPhone SDK? === Which method would you recommend to pass data from a child view back to it's parent view?
0
[ 2, 184, 83, 42, 1477, 1054, 37, 21, 850, 1418, 20, 21, 4766, 1418, 568, 14, 21024, 13, 18, 43, 197, 60, 800, 3726, 3726, 56, 2109, 83, 42, 12360, 20, 1477, 1054, 37, 21, 850, 1418, 97, 20, 32, 22, 18, 4766, 1418, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to interact with embedded PDF documents in iframes through JavaScript? === How to interact with embedded PDF documents in iframes through JavaScript? - Is it possible? - Is it possible in every main browsers? if "yes", how can I... - ...know that the document finished loading? - ...trigger the print dialog? - ...configure the zooming? - ...configure the toolbars?
0
[ 2, 184, 20, 10001, 29, 12138, 13, 11124, 4374, 19, 31, 8361, 18, 120, 8247, 8741, 60, 800, 3726, 3726, 184, 20, 10001, 29, 12138, 13, 11124, 4374, 19, 31, 8361, 18, 120, 8247, 8741, 60, 13, 8, 25, 32, 938, 60, 13, 8, 25, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Object Oriented Model on top of LINQ to SQL === I'm playing a bit with LINQ to SQL and overall it's a much better option than what Microsoft had before (DataSet), but it seems that object-oriented capabilities are still limited. Since we currently use a custom persistence framework that created a OO model on top of DataSet, I'm looking to port the framework to a new version building a OO Model on top of LINQ to SQL. 1. First is there any other similar initiative? 2. Second do you think it's a good idea to go this way?
0
[ 2, 3095, 13, 6800, 1061, 27, 371, 16, 6294, 1251, 20, 4444, 255, 800, 3726, 3726, 31, 22, 79, 791, 21, 1142, 29, 6294, 1251, 20, 4444, 255, 17, 1677, 32, 22, 18, 21, 212, 574, 4255, 119, 98, 7099, 41, 115, 13, 5, 18768, 3554, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 rename with prefix/suffix ? === How do I do `mv original.filename new.original.filename` without retyping the original filename? I would imagine being able to do something like `mv -p=new. original.filename` or perhaps `mv original.filename new.~` or whatever - but I can't see anything like this after looking at `man mv` / `info mv` pages. Of course, I could write a shell script to do this, but isn't there an existing command/flag for it?
0
[ 2, 184, 20, 302, 7259, 29, 14315, 118, 18, 5386, 4028, 13, 60, 800, 3726, 3726, 184, 107, 31, 107, 13, 1, 79, 710, 501, 9, 16877, 7259, 78, 9, 13989, 9, 16877, 7259, 1, 366, 302, 1084, 3181, 14, 501, 3893, 7259, 60, 31, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you manage time for reading books? === I always wondered how people make time to read technical books. Because after working for 8-10 hrs a day (sometimes even 12 hrs) first thing I want to do is to keep myself away from the technical details. Even if I try to read the technical books, I can't put my 100% in to it (with out that reading is of no use, I believe). I read a bit during weekends but most of the time I will be on some other personal work. So, Let me know how do you people manage time for reading technical books?
0
[ 2, 184, 107, 42, 4705, 85, 26, 1876, 964, 60, 800, 3726, 3726, 31, 550, 3519, 184, 148, 233, 85, 20, 1302, 2447, 964, 9, 185, 75, 638, 26, 469, 8, 1036, 13, 3112, 18, 21, 208, 13, 5, 9310, 166, 390, 13, 3112, 18, 6, 64, 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...
Class design: Wrapping up a datafile into a class with respect to thread-safety and testability. === I'm writing an app in C# (.net 3.5) and I have a question about class design: I'd like to create a class which accesses a file (read, write) and provides its content to the users (instanciators) of the class. The most common operation on an instance will be to retrieve a certain value from the file. The actual read and write (io) operations are faily expensive so I'd like to keep the file data in memory and let all instances access this data. The class is located in an assembly that is used from various applications simultaniously, so I guess I should be worrying about thread safety. How do I design this with respect to thread-safety and unit-testability (for unit-tests, different inputfiles must be used than in operational code)? Any help is greatly appreciated.
0
[ 2, 718, 704, 45, 13437, 71, 21, 1054, 16877, 77, 21, 718, 29, 2873, 20, 9322, 8, 18166, 1084, 17, 1289, 4091, 9, 800, 3726, 3726, 31, 22, 79, 1174, 40, 4865, 19, 272, 5910, 13, 5, 9, 2328, 203, 9, 264, 6, 17, 31, 57, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how do i dispaly only certain coloumns from a data table? === im using a web service that returns a dataset. in this dataset there are 5 table, let's say table A, B, C, D, E. i use table A so DataTable dt = new DataTable() dt = dataset.Table["A"] now in this datatable there are coloums a1,a2,a3,a4,a5,a6,a7 lets say i only want to get coloumns a3 and a4 then bind it to my datagrid. how do i do this
0
[ 2, 184, 107, 31, 1460, 1060, 102, 104, 1200, 13, 12805, 723, 2172, 37, 21, 1054, 859, 60, 800, 3726, 3726, 797, 568, 21, 2741, 365, 30, 4815, 21, 1054, 3554, 9, 19, 48, 1054, 3554, 80, 50, 331, 859, 15, 408, 22, 18, 395, 859, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 should I use an IDE? === In another question, [Mark][1] speaks highly of IDEs, saying ["some people still just dont know "why" they should use one..."][2]. As someone who uses vim for programming, and works in an environment where most/all of my colleagues use either vim or emacs for all of their work, what are the advantages of IDEs? Why should I use one? I'm sure this is a charged issue for some people, and I'm not interested in starting a flame war, so **please only reply with the reasons you believe an IDE-based approach is superior**. I'm not interested in hearing about why I shouldn't use an IDE; I already don't use one. I'm interested in hearing from "the other side of the fence", so to speak. If you think that IDEs may be suitable for some types of work but not others, I'm also interested to hear why. [1]: http://stackoverflow.com/users/26310/mark [2]: http://stackoverflow.com/questions/203286/what-things-didnt-you-know-you-needed-but-are-now-very-glad-you-have#203293
0
[ 2, 483, 378, 31, 275, 40, 13, 3448, 60, 800, 3726, 3726, 19, 226, 1301, 15, 636, 4527, 500, 2558, 165, 500, 9381, 2157, 16, 13, 8153, 15, 1148, 636, 7, 3220, 148, 174, 114, 1049, 143, 13, 7, 2256, 7, 59, 378, 275, 53, 9, 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...
Automatically page between silverlight controls === I have a set of Silverlight controls and I want to create a webpage that will automatically alternate between these controls. Any idea how I go about doing this? The order that they are displayed and the period of time each one is displayed for needs to be configurable, but any tips on just getting the basic paging to work would be great. The controls are currently hosted in a asp.net winforms, so I could auto page the winfroms, or I could have a master Silverlight control that hosts the other controls and dictates the paging. In either approach I'm unsure of how to do it.
0
[ 2, 7499, 2478, 128, 1172, 3130, 8671, 800, 3726, 3726, 31, 57, 21, 309, 16, 1172, 3130, 8671, 17, 31, 259, 20, 1600, 21, 2741, 6486, 30, 129, 7499, 4912, 128, 158, 8671, 9, 186, 882, 184, 31, 162, 88, 845, 48, 60, 14, 389, 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...
Is there a way to use java.util.Preferences under Windows without it using the Registry as the backend? === I want to use the java.util.Preferences API but I don't want my program to attempt to read or write to the Windows registry. How would I go about this?
0
[ 2, 25, 80, 21, 161, 20, 275, 8247, 9, 14255, 9, 306, 28018, 18, 131, 1936, 366, 32, 568, 14, 18269, 28, 14, 97, 2451, 60, 800, 3726, 3726, 31, 259, 20, 275, 14, 8247, 9, 14255, 9, 306, 28018, 18, 21, 2159, 47, 31, 221, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Show/Hide Panels before executing Response.Redirect === I have a form that kicks off a Response.Redirect to download a file once complete. I also want to hide the form and show a 'thank you' panel before the redirect takes place, however it seems the asp.net engine just does the redirect without doing the 2 tasks before in the following code: if (success) { lblSuccessMessage.Text = _successMessage; showMessage(true); } else { lblSuccessMessage.Text = _failureMessage; showMessage(false); } if(success) Response.Redirect(_downloadURL); Any idea how i can force the page to update before the Redirect kicks in?? Thanks heaps Greg
0
[ 2, 184, 20, 298, 118, 19522, 9449, 115, 25836, 1627, 9, 99, 14706, 800, 3726, 3726, 31, 57, 21, 505, 30, 18320, 168, 21, 1627, 9, 99, 14706, 20, 7121, 21, 3893, 382, 1279, 9, 31, 67, 259, 20, 3077, 14, 505, 17, 298, 21, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does oracle allow the uncommited read option? === In db2 a query with a 'with ur' clause allows the query to be an uncommited read and so does the 'with nolock' clause in mysql. Is there such an option in oracle too...If not why??
0
[ 2, 630, 15759, 1655, 14, 367, 960, 5130, 69, 1302, 4255, 60, 800, 3726, 3726, 19, 13, 9007, 135, 21, 25597, 29, 21, 13, 22, 1410, 13, 911, 22, 9040, 2965, 14, 25597, 20, 44, 40, 367, 960, 5130, 69, 1302, 17, 86, 630, 14, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to automatically remap .html pages to .aspx pages? === We have a website; which, till now had only HTML pages. Now we are redeveloping it in ASP .Net. This means that all the .html pages will be changed to .aspx extension. The problem is, there are a lot of external references to these pages, and we dont want to go and chage each and every link to aspx right away. Is there any way to redirect a link to .html pages to .aspx pages? For example, is there any way that the server checks the file specified, finds out that it links to .html page and automatically opens the .aspx page?
0
[ 2, 184, 20, 7499, 302, 15022, 13, 9, 15895, 4434, 20, 13, 9, 472, 306, 396, 4434, 60, 800, 3726, 3726, 95, 57, 21, 2271, 73, 56, 15, 3924, 130, 41, 104, 13, 15895, 4434, 9, 130, 95, 50, 302, 26051, 68, 32, 19, 28, 306, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GWT FileUpload initial path === Is there a way to set the initial path for the FileUpload widget in GWT. So the next time the user presses the browse button he is put to the location he has been the last time (if existent).
0
[ 2, 14094, 38, 3893, 576, 8294, 2104, 2013, 800, 3726, 3726, 25, 80, 21, 161, 20, 309, 14, 2104, 2013, 26, 14, 3893, 576, 8294, 4807, 43, 3060, 19, 14094, 38, 9, 86, 14, 328, 85, 14, 4155, 16527, 14, 10175, 62, 5167, 24, 25, 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, 0...
opengl problem under vista === I've just started with opengl but I ran into some strange behaviour. Below I posted code that runs well in xp but on vista it renders just black screen. Sorry for posting unusally (as for this board) long code. Is there something very specific to open gl in vista? Thanks. #include<windows.h> #include<gl\gl.h> #include<gl\glu.h> #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") void InitGL(void) { glClearColor(1,0.3f,0.3f,0.3f); } void DrawGLScene(void) { /* code removed */ } HGLRC hRC = NULL; HDC hDC = NULL; HWND hWnd = NULL; HINSTANCE hInstance = NULL; LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); bool CreateGLWindow(char* title, int width, int height) { GLuint PixelFormat; WNDCLASS wc; RECT WindowRect; WindowRect.left = (long)0; WindowRect.right = (long)width; WindowRect.top = (long)0; WindowRect.bottom = (long)height; LPCSTR nazwa = TEXT("Start"); hInstance = GetModuleHandle(NULL); wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; wc.lpfnWndProc = (WNDPROC)WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = LoadIcon(NULL, IDI_WINLOGO); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = nazwa; RegisterClass(&wc); hWnd = CreateWindowEx(WS_EX_APPWINDOW | WS_EX_WINDOWEDGE, nazwa, nazwa, WS_SYSMENU | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0,0, width, height, NULL, NULL, hInstance, NULL); static PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), 1, PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER, PFD_TYPE_RGBA, 32, 0,0,0,0,0,0, 0, 0, 0, 0,0,0,0, 16, 0, 0, PFD_MAIN_PLANE, 0, 0,0,0 }; hDC = GetDC(hWnd); PixelFormat = ChoosePixelFormat(hDC, &pfd); HRESULT rez = SetPixelFormat(hDC, PixelFormat, &pfd); hRC = wglCreateContext(hDC); wglMakeCurrent(hDC, hRC); ShowWindow(hWnd, SW_SHOW); InitGL(); return true; } LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { case WM_ACTIVATE: { return 0; } case WM_CLOSE: { PostQuitMessage(0); return 0; } } return DefWindowProc(hWnd, uMsg, wParam, lParam); } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; bool done = false; if (!CreateGLWindow(NULL, 800,600)) { return 0; } while(!done) { if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { if (!GetMessage(&msg, 0, 0, 0)) done = true; else { TranslateMessage(&msg); DispatchMessage(&msg); } } else { DrawGLScene(); SwapBuffers(hDC); } } return (msg.wParam); }
0
[ 2, 368, 8430, 1448, 131, 13520, 800, 3726, 3726, 31, 22, 195, 114, 373, 29, 368, 8430, 47, 31, 717, 77, 109, 2578, 7727, 9, 1021, 31, 6054, 1797, 30, 1461, 134, 19, 23045, 47, 27, 13520, 32, 16535, 18, 114, 319, 2324, 9, 1875, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get tomcat 5.5 to run behind apache 2 with mod_rewrite passing through requests to mod_jk and stripping app context? === Ok, so I want to get a webapp running in tomcat (5.5) to run behind apache 2 serving from the root of the site (i.e. without the context), with static content being served via apache. So if the app is running under "`/myapp`" on tomcat I want to use apache (plus `mod_rewrite`) to make it behave as if it's running under "`/`" instead. `Mod_jk` is setup and working ok. I can access the app from "`/myapp`", but I can't quite get the last bit working. Below is the config I've got for `mod_rewrite` to try and get this working. It correctly gets rewrites `/static/` urls to get apache to serve them from the unpacked webapp and if I enable the rewrite log I see that it does attempt to pass through all other requests to `/myapp` via `mod_jk`. However it seems that mod_jk is not processing the request afterwards. <pre> <code> JkMount /myapp/* worker1 RewriteEngine On # ensure static stuff gets served by apache RewriteRule ^/static/(.*)$ /var/lib/tomcat5.5/webapps/myapp/static/$1 [L] # everything else should go through tomcat RewriteRule ^/(.*)$ /myapp/$1 [L,PT] </code> </pre> When I've done this with apache 1 in the past I've had to make sure `mod_jk` get's loaded before `mod_rewrite`, but I can't seem to achieve this under apache 2. Any thoughts? How do other people usually do this?
0
[ 2, 184, 107, 31, 164, 2067, 5782, 331, 9, 264, 20, 485, 439, 17140, 172, 29, 7226, 1, 99, 23716, 2848, 120, 12279, 20, 7226, 1, 16455, 17, 25105, 4865, 4141, 60, 800, 3726, 3726, 5854, 15, 86, 31, 259, 20, 164, 21, 2741, 7753, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find all instances of a plugin using jQuery? === I've created a jQuery wee plugin for myself which takes care of showing, hiding and submitting a form to give in-place editing. Currently I have several of these on a page which function independently and I am happy. However, I'm thinking that an 'Edit All' might be useful. I'd therefore want to be able to access all instances of the plugin within the page and access their show/hide/validate/submit functions in unison. Is there a way to do this?
0
[ 2, 184, 107, 31, 477, 65, 13946, 16, 21, 10922, 108, 568, 487, 8190, 93, 60, 800, 3726, 3726, 31, 22, 195, 679, 21, 487, 8190, 93, 95, 62, 10922, 108, 26, 992, 56, 1384, 781, 16, 3187, 15, 5314, 17, 28848, 21, 505, 20, 590, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Server 2005 performance issue === I have a dev and a UAT environments. Dev is in our place, UAT is in client's place. Our DEV machine is a XEON 4 core @2,33GHz, 4Go RAM with Windows server 2003 The UAT physical machine is quite the same but a virtual machine is used (under VMWare). I don't know the exact parameters used for this VM. The problem is that the SQL Server on the dev machine runs very well and the one on the UAT is very very slow. Opening SQL Server Management Studio takes 2 minutes on the UAT machine. Runing even a simple select request is also very slow. The database is quite small (6 GB). Opening any other application on that server works well. So we think there is a problem with the sql server instance and I must investigate to find the reason. Here is what I checked : - server configuration is similar to the one we have on DEV. - there is enough space on disk - processors are not overloaded (10% used is the max reached) - memory seems also to be OK. - data and log files are set to grow automatically It seems in the database log that this error occured at least once (I only have access to a small part) : > 2008-10-14 19:16:54.84 spid55 > Autogrow of file 'xxxxx_log' in > database 'xxxxxx' was cancelled by > user or timed out after 6766 > milliseconds. Use ALTER DATABASE to > set a smaller FILEGROWTH value for > this file or to explicitly set a new > file size. As there is enough space on the hard drive, what could be the cause ? Could it be related to my perfs problem ? What should I check to find the cause of the problem ? I'm not a SqlServer expert so if someone has any suggestion, I'd love to hear it. Thanks !
0
[ 2, 4444, 255, 8128, 812, 956, 1513, 800, 3726, 3726, 31, 57, 21, 9664, 17, 21, 287, 721, 11246, 9, 9664, 25, 19, 318, 209, 15, 287, 721, 25, 19, 6819, 22, 18, 209, 9, 318, 9664, 1940, 25, 21, 993, 11572, 268, 2884, 13, 1, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you control what monitor your application opens on? === As a two-monitor user at work, I've noticed that applications behave differently with regards to what monitor they open on (primary or secondary monitor, the last monitor the application opened on, and so on). To be honest, some applications annoy me because I want them to open on my primary monitor and I'll move them to my secondary if I want them there. However, these applications are done and out of my control, so I want to ask about my own applications that might be run by people using two monitors. What kinds of controls are available to either allow people to specify which monitor your application opens on, allow an application to "remember" the monitor it was on when it was closed and reopen there, and to force the application to start on a specific monitor? I'm looking for solutions across all operating systems and programming languages, although I'm guessing that different OSes and languages will have different controls. #Related Questions - [What determins the monitor my app runs on?][1] This question discusses existing applications and how they decide what monitor to run on. The currently accepted answer provides Windows functions that can be used to control the positioning of an app on start-up. - [Start program on second monitor?][2] provides some Delphi solutions for forcing an application to start on a particular monitor. [1]: http://stackoverflow.com/questions/52755/what-determines-the-monitor-my-app-runs-on [2]: http://stackoverflow.com/questions/206400/start-program-on-a-second-monitor
0
[ 2, 184, 107, 42, 569, 98, 7626, 154, 3010, 8965, 27, 60, 800, 3726, 3726, 28, 21, 81, 8, 2111, 242, 248, 4155, 35, 170, 15, 31, 22, 195, 2711, 30, 3767, 14149, 12670, 29, 14179, 20, 98, 7626, 59, 368, 27, 13, 5, 29584, 54, 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...
Enumerating network shared directories in C++ / MFC === I need to get a list of directories shared by the current computer, and their shared names. How do I do this in C++ / MFC?
0
[ 2, 26940, 68, 982, 2592, 559, 1596, 19, 272, 20512, 13, 118, 307, 7061, 800, 3726, 3726, 31, 376, 20, 164, 21, 968, 16, 559, 1596, 2592, 34, 14, 866, 1428, 15, 17, 66, 2592, 1817, 9, 184, 107, 31, 107, 48, 19, 272, 20512, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Purpose of _never_executed()? === I have seen this macro defined before but never really knew its purpose. Can anyone shed light on this?
0
[ 2, 2131, 16, 13, 1, 9018, 1, 1706, 17194, 1427, 5, 6, 60, 800, 3726, 3726, 31, 57, 541, 48, 9069, 2811, 115, 47, 243, 510, 404, 82, 2131, 9, 92, 1276, 5062, 471, 27, 48, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is it possible to programatically find out what process is locking a file across a network === I have a file on a Windows 2003 server which is locked by a process running on another Windows 2003 server. Is it possible to find out which process on which machine is locking this resource. I don't mind which language I use to do this.
0
[ 2, 25, 32, 938, 20, 625, 721, 8438, 477, 70, 98, 953, 25, 17538, 21, 3893, 464, 21, 982, 800, 3726, 3726, 31, 57, 21, 3893, 27, 21, 1936, 973, 8128, 56, 25, 4011, 34, 21, 953, 946, 27, 226, 1936, 973, 8128, 9, 25, 32, 938, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Looking for pragmatic CMDB solution === I need a solution to catalog a number of applications in our company (more than 100 less than 1000). Right now we are using a spreadsheet and for each app we fill in name, short description, contact person and maintainer (internal or vendor). The puspose is to use this list for IT planning and incident management (impact estimation, etc.) In order to do this, as a minimum we need to start adding relations like 'depends on', 'part of' or 'supersedes'. It would be also useful if a future solution would allow tagging, adding indexed key-value pairs, comments and attachments to each entry. We will NOT want to discover all deployed instances of the applications, manage configuration settings, integrate monitoring have complex security settings and get burried in meta-meta-schemata. Anything that requires a dedicated administrator is already too heavy. So far we have considered the following: * Put the spreadsheet on a Confluence wiki, where we can edit it via WebDav (and get locking and versioning) * Use the Confluence wiki since it provides tagging, hierarchy, metadata and links. The only concern is that a wiki is too freeform and it may be difficult to extract the information should we decide to migrate to another system. * DabbleDB.com - has everything we need, but unfortunately the data should not leave the firewall. * OneCMDB.org - I am not sure how easy it is to capture ad-hock information and evolve the schema. Would appreciate experiences. * Zenoss.com - haven't checked it yet. Looks too focused on network management. * Lightweight registry (Mule Galaxy, WSO2 Registry) - not sure if this is the right tool for the job, though they offer a lot of the facilities we need (attributes, labels, versions, lifecycles). * BMC Atrium - complex, corporate politics would require a number of unnecesarry procedures. Unless it offers some huge benefit, we'd rather stick with opensource. I'm interested on feedback/ideas from people that have successfully gone through a similar endeavor or have experience with some of the approaches above. Also, I would appreciate advice about common pitfalls and recommendations.
2
[ 2, 699, 26, 28443, 2390, 9007, 4295, 800, 3726, 3726, 31, 376, 21, 4295, 20, 10594, 21, 234, 16, 3767, 19, 318, 237, 13, 5, 1995, 119, 808, 787, 119, 6150, 6, 9, 193, 130, 95, 50, 568, 21, 1789, 17627, 17, 26, 206, 4865, 95, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When to Throw Out Old Programming Books? === In asking this question, I actually did first review <a href="http://stackoverflow.com/questions/13939/are-old-editions-of-computer-books-worthwhile">this post</a> from some months ago. But I want to take my question one step further and ask when should old programming books be thrown out? Specifically, our office has several copies of books that were written specifically to older versions of languages such as PHP4, ActionScript 1 etc. My initial impression is to simply toss these books and purchase more generic entry level books for teaching those who need to learn a specific language and to then purchase the classics that will help our entire staff develop better code such as Patterns of Enterprise Application Architecture, Code Complete, etc. But is there any benefit to hanging onto copies of books that were for a version of a language that is now either dead or outdated?
4
[ 2, 76, 20, 3814, 70, 315, 3143, 964, 60, 800, 3726, 3726, 19, 3379, 48, 1301, 15, 31, 1121, 144, 64, 1487, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 11698, 26346, 12766, 1509, 8, 121...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can we configure Oracle ADF Faces to produce valid XHTML? === We are using Oracle ADF Faces in a new web project. I am always looking for an unobtrusive user experience with progressive enhancement and valid XHTML output. It seems however that ADF Faces produce ugly, non-validating (table based) html output that reminds me of 1994 when using their standard components. Is there a way to configure ADF Faces or create templates for the components so we can have complete control over the generated (X)HTML?
0
[ 2, 92, 95, 1065, 15951, 15759, 21, 8736, 4904, 20, 2213, 7394, 993, 15895, 60, 800, 3726, 3726, 95, 50, 568, 15759, 21, 8736, 4904, 19, 21, 78, 2741, 669, 9, 31, 589, 550, 699, 26, 40, 367, 4995, 8989, 18, 1284, 4155, 1496, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managing the maintenance burden of unit tests === Coding test-first, I find that perhaps 3/4 of my code is unit tests; if I were truly extreme, and didn't write a line of code except to fix a failing unit test, this ratio would be even higher. Maintaining all these unit tests adds a huge amount of inertia to code changes. Early on, I suck it up and fix them. As soon as there's pressure, I end up with a `broken_unit_tests` directory to revisit 'when there's time'. It feels like TDD is putting in high coverage too soon, before the design has had time to crystallize. How do I find my way out of this dilemma, and start welcoming changing requirements like I'm supposed to?
0
[ 2, 5616, 14, 5010, 9505, 16, 1237, 4894, 800, 3726, 3726, 13, 15458, 1289, 8, 3552, 15, 31, 477, 30, 1774, 203, 13722, 16, 51, 1797, 25, 1237, 4894, 73, 100, 31, 46, 4574, 4750, 15, 17, 223, 22, 38, 2757, 21, 293, 16, 1797, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Way to tell if an app is ASP.NET 1.1 or ASP.NET 2.0 === How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C# I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas?
0
[ 2, 161, 20, 494, 100, 40, 4865, 25, 28, 306, 9, 2328, 137, 9, 165, 54, 28, 306, 9, 2328, 172, 9, 387, 800, 3726, 3726, 184, 92, 31, 494, 100, 40, 4865, 25, 28, 306, 9, 2328, 172, 9, 387, 54, 28, 306, 9, 2328, 137, 9, 165...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Automate Test Orders === I need a way to automate test orders on our test and production web sites. I was thinking about using something like iMacro, but I thought there must be a better way. Any ideas?
0
[ 2, 3108, 5281, 1289, 3204, 800, 3726, 3726, 31, 376, 21, 161, 20, 3108, 5281, 1289, 3204, 27, 318, 1289, 17, 637, 2741, 3259, 9, 31, 23, 1440, 88, 568, 301, 101, 13, 5244, 7638, 15, 47, 31, 289, 80, 491, 44, 21, 574, 161, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Deployed Web Part not showing up in 'Web Part Gallery: New Web Parts' === I took a wsp file, and did my **stsadm -o addsolution** like usual. Then I went into *central administration->solution management* and it showed up just fine. Then I deployed the web part, no problems so far. The problem is when I go to add it to the webpart gallery (*Web Part Gallery: New Web Parts*) usually the web part is in the list, I check the box next to it and click **populate gallery** but it is not showing up in the list? Could I be missing something in my manifest.xml to cause this? I just wrote and deployed another web part this *exact* same way and it went fine. Also, I wrote a dummy webpart that does nothing but print "working" and tried it with that getting the same results. Any ideas?
0
[ 2, 6698, 2741, 141, 52, 3187, 71, 19, 13, 22, 14113, 141, 2246, 45, 78, 2741, 1341, 22, 800, 3726, 3726, 31, 199, 21, 619, 3401, 3893, 15, 17, 144, 51, 13, 1409, 10044, 1283, 79, 13, 8, 111, 10621, 18687, 3309, 1409, 101, 3820, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NoClassDefFoundError when trying to use JMockit Coverage === I am trying to use JMockit's code coverage abilities. Using the JVM parameter -javaagent:jmockit.jar=coverage=.*MyClass.java:html:: I am able to run my tests (jmockit.jar and coverage.jar are on the classpath), unfortunately my log file says: Loaded external tool: mockit.coverage.CodeCoverage=.*MyClass.java:html:: Loaded external tool: mockit.integration.junit3.JUnitTestCaseDecorator Loaded external tool: mockit.integration.junit4.JUnit4ClassRunnerDecorator Exception in thread "Thread-0" java.lang.NoClassDefFoundError at mockit.coverage.CodeCoverage$OutputFileGenerator.run(CodeCoverage.java:56) ...and no coverage file is generated. Has anyone gotten JMockit Coverage to work? If so, any thoughts as to what is causing this error? Thanks...
0
[ 2, 90, 1898, 13862, 12235, 29992, 76, 749, 20, 275, 487, 79, 5668, 242, 5245, 800, 3726, 3726, 31, 589, 749, 20, 275, 487, 79, 5668, 242, 22, 18, 1797, 5245, 7009, 9, 568, 14, 487, 20147, 18906, 13, 8, 1004, 1385, 58, 7685, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is enumerating installed MSI packages so slow ? === This is a follow up from this <a href="http://stackoverflow.com/questions/198087/how-do-i-list-installed-msi-from-the-command-line">question</a>. I'm using this slightly modified script to enumerate all installed MSI packages: strComputer = "." Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=impersonate}!\\" & _ strComputer & _ "\root\cimv2") Set colSoftware = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Product") If colSoftware.Count > 0 Then For Each objSoftware in colSoftware WScript.Echo objSoftware.Caption & vbtab & _ objSoftware.Version Next Else WScript.Echo "Cannot retrieve software from this computer." End If What is surprising however, is its abysmal performance. Enumerating the 34 installed MSI packages on my XP box takes between 3 and 5 minutes ! By comparison, the Linux box that sits besides is taking 7s to enumerate 1400+ RPMs... *sigh* Any clues on this ?
0
[ 2, 483, 25, 26940, 68, 4066, 4235, 49, 16875, 86, 2276, 13, 60, 800, 3726, 3726, 48, 25, 21, 1740, 71, 37, 48, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 5209, 3730, 118, 1544, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JSP custom tag library === HI.. I m creating a Jsp custom tag, that should take an array object in the custom tag and it should display the elements of the tag in the HTML table form. Do anyone have the suggestion kindly helpful. Thanks and regards. Vinayak
0
[ 2, 487, 3401, 5816, 3383, 1248, 800, 3726, 3726, 4148, 9, 9, 31, 307, 2936, 21, 487, 3401, 5816, 3383, 15, 30, 378, 247, 40, 7718, 3095, 19, 14, 5816, 3383, 17, 32, 378, 3042, 14, 2065, 16, 14, 3383, 19, 14, 13, 15895, 859, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I change the font used by the FLVPlaybackCaptioning component for subtitles? === How can I set the font used by the FLVPlaybackCaptioning component for subtitles? Using the style property of the textarea does nothing, and using a TextFormat makes the text go blank, even though the font had been embedded.
0
[ 2, 184, 107, 31, 753, 14, 9978, 147, 34, 14, 398, 8916, 5438, 1958, 4666, 3309, 68, 5912, 26, 19442, 18, 60, 800, 3726, 3726, 184, 92, 31, 309, 14, 9978, 147, 34, 14, 398, 8916, 5438, 1958, 4666, 3309, 68, 5912, 26, 19442, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to init wxApp without using macros and without entering the main application loop? === We need to write unit tests for a *wxWidgets* application using *Google Test Framework*. The problem is that *wxWidgets* uses the macro **IMPLEMENT_APP(MyApp)** to initialize and enter the application main loop. This macro creates several functions including **int main()**. The google test framework also uses macro definitions for each test. One of the problems is that it is not possible to call the wxWidgets macro from within the test macro, because the first one creates functions.. So, we found that we could replace the macro with the following code: wxApp* pApp = new MyApp(); wxApp::SetInstance(pApp); wxEntry(argc, argv); That's a good replacement, but wxEntry() call enters the original application loop. If we don't call wxEntry() there are still some parts of the application not initialized. The question is how to initialize everethyng required for a wxApp to run, without actually running it, so we are able to unit test portions of it?
0
[ 2, 184, 20, 19, 242, 619, 396, 7753, 366, 568, 9069, 18, 17, 366, 4604, 14, 407, 3010, 5293, 60, 800, 3726, 3726, 95, 376, 20, 2757, 1237, 4894, 26, 21, 1637, 499, 396, 3976, 43, 3060, 18, 2483, 3010, 568, 1637, 16111, 4875, 128...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...