unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Dynamically sizing tab made of images. === I'm trying add a tab to my web page that looks like this: ![alt text][4] Using [this example][2] as a basis, I've gotten it partially working. My case differs because I want the text section to be a fixed with, but the tail section to dynamically resize to take up the rest of the tab's container. It looks good in IE 6, but doesn't really take up the full width of the container. In Firefox 3 it doesn't render well at all:![alt text][3] (the red is a blank area between the spans). How do I get this to render properly in both IE6 and Firefox to take up the full width specified for #Tab? #Tab4 is the area I'd like to size to take up as much room as possible. <style type="text/css"> #Tab { width: 300px; } #Tab1 { background: #000 url(BlueTabSprite.png) no-repeat 0 -136px; display: inline-block; height: 23px; padding-left: 4px; } #Tab2 { background: #000 url(BlueTabSprite.png) repeat-x 0 -242px; display: inline-block; overflow: hidden; padding-top: 4px; height: 19px; width: 100px; } #Tab3 { background: #000 url(BlueTabSprite.png) no-repeat right -30px; display: inline-block; height: 23px; padding-right: 6px; } #Tab4 { background: #000 url(BlueTabSprite.png) repeat-x 0 -83px; display: inline-block; height: 23px; width:60% } #Tab5 { background: #000 url(BlueTabSprite.png) no-repeat right -189px; display: inline-block; height: 23px; padding-right:6px; } </style> <div id="Tab"> <span id="Tab1"> <span id="Tab3"> <span id="Tab2">Test Tab</span> </span> </span> <span id="Tab5"> <span id="Tab4"></span> </span> </div> [2]: http://mattberseth.com/blog/2007/09/using_css_image_sprites_with_t.html [3]: http://i33.tinypic.com/2i95g0o.png [4]: http://i36.tinypic.com/15miatf.png
0
[ 2, 7782, 1326, 13, 18, 3335, 6523, 117, 16, 3502, 9, 800, 3726, 3726, 31, 22, 79, 749, 3547, 21, 6523, 20, 51, 2741, 2478, 30, 1879, 101, 48, 45, 13, 187, 2558, 192, 38, 1854, 500, 2558, 300, 500, 568, 636, 1565, 823, 500, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
System.Windows.Forms.WebBrowser open links in same window or new window with same session === When using the .NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the same WebBrowser control?
0
[ 2, 329, 9, 27508, 18, 9, 4190, 18, 9, 14113, 25699, 4104, 368, 6271, 19, 205, 1463, 54, 78, 1463, 29, 205, 3723, 800, 3726, 3726, 76, 568, 14, 13, 9, 2328, 10192, 5417, 4104, 569, 184, 107, 42, 368, 21, 3508, 19, 21, 78, 1463,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DropDownList in Repeater control, can't fire SelectedIndexChanged === I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // Item binding code } else if (e.Item.ItemType == ListItemType.Footer) { DropDownList ddl = e.Item.FindDropDownList("ddMyDropDownList"); // Fill the list control ddl.SelectedIndexChanged += new EventHandler(ddMyDropDownList_SelectedIndexChanged); ddl.AutoPostBack = true; } } The page appear to PostBack however my EventHandler does not get called. Any ideas?
0
[ 2, 2804, 2968, 5739, 19, 6830, 106, 569, 15, 92, 22, 38, 535, 1704, 25671, 16229, 43, 800, 3726, 3726, 31, 57, 21, 6830, 106, 569, 113, 19, 14, 1749, 106, 31, 57, 21, 2804, 2968, 5739, 9, 19, 51, 1797, 8, 24878, 31, 57, 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...
Valid jQuery on Development fails on Production === I am writing a fairly basic script using jQuery. However, the script behaves differently depending on whether I am running it on my local Web server (localhost) or on a production server. On development, the following code returns the HTML I'm expecting: ` $('#objID').siblings('.mAddress').html();` On production, the same statement returns `undefined`. The document structures are the same on both machines. The only difference I can find is when I use Firebug to step through the script. On the development machine, putting a watch on $('#objID').siblings('.mAddress') results in `[ span#object ]` while on production the same watch results in `[ [ span#object ] ]` (Notice the double sets of square brackets). Any ideas?
0
[ 2, 7394, 487, 8190, 93, 27, 522, 13614, 27, 637, 800, 3726, 3726, 31, 589, 1174, 21, 6647, 2125, 3884, 568, 487, 8190, 93, 9, 207, 15, 14, 3884, 14149, 18, 12670, 4758, 27, 1472, 31, 589, 946, 32, 27, 51, 375, 2741, 8128, 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 protect your commercial application from being installed on multiple computers with one license? === How do you protect your commercial application from being installed on multiple computers from people who only own one license? Do you think it's a good idea to have more than just a serial based scheme?
0
[ 2, 184, 107, 42, 2196, 154, 1439, 3010, 37, 142, 4066, 27, 1886, 7774, 29, 53, 3962, 60, 800, 3726, 3726, 184, 107, 42, 2196, 154, 1439, 3010, 37, 142, 4066, 27, 1886, 7774, 37, 148, 72, 104, 258, 53, 3962, 60, 107, 42, 277, 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, 0, 0...
Can I save a FlowDocument to BAML in a programmatic way? === Has anyone found a way to save a FlowDocument as BAML or other compressed format? I can import XML with images to create a new FlowDocument: <TextRange class instance>.Load(fs, DataFormats.Rtf) However, I haven't found a good way to save it in a 'native' compressed format. Uncompressed XAML is easy to generate using: <TextRange class instance>.Save(fs, DataFormats.XamlPackage); But is there any programmatic method to save it to a compressed format? If there isn't an existing method, does anyone know where to find a programmatic XAML compiler? Or even just the BAML specifications? I could programmatically generate an entire XAML window with the FlowDocument embedded, but I'd still want to convert the XAML to BAML for faster load times. I'm using relatively large rtf documents and conversion time using DataFormats.Rtf is significant.
0
[ 2, 92, 31, 2079, 21, 3312, 28132, 20, 11890, 255, 19, 21, 625, 6732, 161, 60, 800, 3726, 3726, 63, 1276, 216, 21, 161, 20, 2079, 21, 3312, 28132, 28, 11890, 255, 54, 89, 18472, 2595, 60, 31, 92, 9010, 23504, 29, 3502, 20, 1600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically add sender email to Message Header rule in Outlook 2007 via right-click === I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules use Message Header as a criteria, so only those applicable rules should show when I right-click a message.
0
[ 2, 7782, 1326, 3547, 2660, 106, 8517, 20, 2802, 157, 106, 1828, 19, 19837, 624, 1197, 193, 8, 150, 10129, 800, 3726, 3726, 31, 83, 101, 566, 969, 1797, 26, 19837, 624, 20, 193, 8, 150, 10129, 21, 2802, 19, 186, 4216, 1418, 15, 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...
Watch for addition of a referenced library to a project (Visual Studio 2008 plug-in) === I am hoping someone can help me with this. What I have been looking around for but can't seem to find is if there is someway to add an event, or anything else that will allow a visual studio plug-in to watch for an external reference to be added to a currently open solution / project? Or even better yet would anyone happen to know of an add-in that automatically adds all controls from a referenced dll into the visual studio toolbox? Thanks.
0
[ 2, 1455, 26, 848, 16, 21, 17571, 1248, 20, 21, 669, 13, 5, 20893, 1120, 570, 10922, 8, 108, 6, 800, 3726, 3726, 31, 589, 3935, 737, 92, 448, 55, 29, 48, 9, 98, 31, 57, 74, 699, 140, 26, 47, 92, 22, 38, 2260, 20, 477, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I hook up a referencing outlet in Interface Bulider for a UIImage? === I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can do this fine for UILabel but when I repeat the process for UIImage it doesn't work. Specifically when I drag the blue line in Interface Builder over the icon I don't get a popup menu like I do when using UILabel. Thanks!
0
[ 2, 184, 107, 31, 5559, 71, 21, 13, 29254, 15399, 19, 6573, 11183, 49, 1157, 26, 21, 13, 5661, 22039, 60, 800, 3726, 3726, 31, 259, 20, 1381, 21, 13, 5661, 22039, 625, 6732, 1326, 9, 9, 9, 31, 9, 62, 9, 51, 22039, 9, 1822, 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 do i fix my virtual machine network connection if it seems to be running ok from the host === I have a virtual machine (made with vmware) with a linux ubuntu os installed on it (i have a series of them), with NAT network connection - i am running vmware on Windows XP (my host system); the virtual machine can't connect to the internet. All the vmware services seem to be working fine from windows point of view, but inside the machine i can't connect to the internet. What is strange is that the virtual machine was able to use the internet some time ago, but all of a sudden, i just can't use my internet on the virtual machine - i have made no changes to the settings, nor in windows, nor in the virtual machine - so i don't understand.
2
[ 2, 184, 107, 31, 6098, 51, 6599, 1940, 982, 2760, 100, 32, 2206, 20, 44, 946, 5854, 37, 14, 2015, 800, 3726, 3726, 31, 57, 21, 6599, 1940, 13, 5, 5781, 29, 13, 20147, 5011, 6, 29, 21, 13024, 287, 12968, 2473, 13, 759, 4066, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 percentage of marketshare does a browser need for your support? === I'm building a website for a small non-profit org. and I was wondering at what kind of browser marketshare a browser should have before I support it. Chrome looks like a major contender, but it's still less than 5%, as is Opera. What browsers do you think I should completely support for this kind of project?
0
[ 2, 98, 5780, 16, 1135, 16608, 630, 21, 16495, 376, 26, 154, 555, 60, 800, 3726, 3726, 31, 22, 79, 353, 21, 2271, 26, 21, 284, 538, 8, 5888, 13, 5583, 9, 17, 31, 23, 5712, 35, 98, 825, 16, 16495, 1135, 16608, 21, 16495, 378, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unmanaged Threads Spring Quartz Websphere Hibernate === It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will cause that. They make the suggestion of using CommnonJ to address this issue. I have done some further research and the only examples I have seen so far all deal with the plan old JobStore that is not in a database. So, I was wondering if anyone has an example of the solution for this issue. Thanks
0
[ 2, 367, 177, 8030, 20396, 1573, 20913, 2741, 14079, 4148, 2102, 8820, 800, 3726, 3726, 32, 1780, 30, 318, 6123, 16, 568, 20913, 13, 8, 487, 43, 7229, 1636, 220, 16828, 303, 29, 1573, 15, 4148, 2102, 8820, 17, 2741, 14079, 25, 6033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Express 2008 Install Side-by-side w/ SQL 2005 Express Fails === When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to remove them. **What exactly does that mean?** After reading this article: [http://www.asql.biz/Articoli/SQLX08/Art1_5.aspx][1] I uninstalled the 2005 version of the SQL Management Studio but received the same error from the 2008 installer during my follow-up attempt. [1]: http://www.asql.biz/Articoli/SQLX08/Art1_5.aspx
0
[ 2, 4444, 255, 8128, 2999, 570, 16146, 270, 8, 779, 8, 1416, 619, 118, 4444, 255, 812, 2999, 13614, 800, 3726, 3726, 76, 31, 1131, 20, 16146, 21, 78, 4851, 16, 4444, 255, 8128, 570, 2999, 27, 21, 522, 1940, 29, 4444, 255, 812, 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...
What's the algorithm behind sleep() ? === Now there's something I always wondered: how is sleep() implemented ? If it is all about using an API from the OS, then how is the API made ? Does it all boil down to using special machine-code on the CPU ? Does that CPU need a special co-processor or other gizmo without which you can't have sleep() ? The best known incarnation of sleep() is in C (to be more accurate, in the libraries that come with C compilers, such as GNU's libc), although almost every language today has its equivalent, but the implementation of sleep in some languages (think Bash) is not what we're looking at in this question...
0
[ 2, 98, 22, 18, 14, 9083, 439, 1742, 5, 6, 13, 60, 800, 3726, 3726, 130, 80, 22, 18, 301, 31, 550, 3519, 45, 184, 25, 1742, 5, 6, 6807, 13, 60, 100, 32, 25, 65, 88, 568, 40, 21, 2159, 37, 14, 13, 759, 15, 94, 184, 25, 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...
Is there a way to retrieve elements using only local names in a Linq-to-XML query? === Lets assume we have this xml: <?xml version="1.0" encoding="UTF-8"?> <tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"> <tns:RegistryErrorList highestSeverity=""> <tns:RegistryError codeContext="XDSInvalidRequest - DcoumentId is not unique." errorCode="XDSInvalidRequest" severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error"/> </tns:RegistryErrorList> </tns:RegistryResponse> To retrieve RegistryErrorList element, we can do XDocument doc = XDocument.Load(<path to xml file>); XNamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"; XElement errorList = doc.Root.Elements( ns + "RegistryErrorList").SingleOrDefault(); but not like this XElement errorList = doc.Root.Elements("RegistryErrorList").SingleOrDefault(); Is there a way to do the query without the namespace of the element. Basicly is there something conceptially similiar to using local-name() in XPath (i.e. //*[local-name()='RegistryErrorList'])
0
[ 2, 25, 80, 21, 161, 20, 11917, 2065, 568, 104, 375, 1817, 19, 21, 6294, 1251, 8, 262, 8, 396, 8184, 25597, 60, 800, 3726, 3726, 6884, 7158, 95, 57, 48, 23504, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Prevent an element from "capturing" the mouse using jQuery? === I'm trying to resize an embedded object. The issue is that when the mouse hovers over the object, it takes "control" of the mouse, swallowing up movement events. The result being that you can expand the div containing the object, but when you try to shrink it, if the mouse enters the area of the object the resize halts. Currently, I hide the object while moving. I'm wondering if there's a way to just prevent the object from capturing the mouse. Perhaps overlaying another element on top of it that prevents mouse events from reaching the embedded object?
0
[ 2, 2501, 40, 4520, 37, 13, 7, 4666, 2517, 68, 7, 14, 7567, 568, 487, 8190, 93, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 302, 10454, 40, 12138, 3095, 9, 14, 1513, 25, 30, 76, 14, 7567, 21350, 18, 84, 14, 3095, 15, 32, 1384, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
fitnesse arrayfixture === I'm having a hard time getting an array fixture to work. Origanlly the test was written as a rowfixture, Requirements later changed and now the order of the results matters. It seems you have to pass the data into the base arrayfixture constructor but I don't see how that is possible or how you pass arguments into the arrayfixture. If someone has a working example of the fitnesse and fixture code I would really appreciate your posting it.
0
[ 2, 11331, 62, 7718, 18594, 6418, 800, 3726, 3726, 31, 22, 79, 452, 21, 552, 85, 1017, 40, 7718, 16564, 20, 170, 9, 54, 8889, 211, 93, 14, 1289, 23, 642, 28, 21, 3131, 18594, 6418, 15, 4786, 138, 1015, 17, 130, 14, 389, 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...
"Favorites" or "macros" in SQL Server Management studio? === I have a few databases that I always use SQL Server Management Studio with. I'd like to be able to create a toolbar button or keyboard shortcut that automatically opens a new query window and connects to a given (registered, perhaps) database. That's it. That's all I need. And this ashtray, and the paddle game, and the remote control. That's all I need. As it is now, I have to expand the Object Explorer, collapse/expand two to eight trees, right-click on my database, and choose "New Query". I see no way to do it, this would probably save me 30-60 seconds a day, which is worth at least one dollar and NINE CENTS.
0
[ 2, 13, 7, 1473, 5771, 6359, 7, 54, 13, 7, 6893, 3171, 7, 19, 4444, 255, 8128, 1097, 1120, 60, 800, 3726, 3726, 31, 57, 21, 310, 6018, 18, 30, 31, 550, 275, 4444, 255, 8128, 1097, 1120, 29, 9, 31, 22, 43, 101, 20, 44, 777, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you use routed events with a MultiTrigger? === Does WPF support using a triggers that respond to routed events but only given a condition is met? For example, WPF supports triggering on routed events through Event Triggers. ie: <Button> <Button.Triggers> <EventTrigger RoutedEvent="Click"> ... </.. </.. </.. However I am looking to only trigger this given a certain condition. Normally you use MultiTriggers for this. ie: <Button> <Button.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="..." Value="..."/> <Condition Binding="..." Value="..."/> </.. </.. </.. </.. However neither the MultiTrigger or MultiDataTrigger seem to support routed events. Is it even possible to mix these two concepts in XAML?
0
[ 2, 92, 42, 275, 858, 43, 963, 29, 21, 1889, 3367, 11356, 60, 800, 3726, 3726, 630, 619, 7721, 555, 568, 21, 7286, 18, 30, 4590, 20, 858, 43, 963, 47, 104, 504, 21, 2874, 25, 798, 60, 26, 823, 15, 619, 7721, 6747, 7286, 68, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I stop Chrome from yellowing my site's input boxes? === Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention. On Chrome the auto-fill feature re-colors my input forms yellow. Here's the complex issue: I want auto-complete allowed on my forms, as it speeds users logging in. I am going to check into the ability to turn the autocomplete attribute to off if/when there's an error triggered, but it is a complex bit of coding to programmatically turn off the auto-complete for the single effected input on a page. This, to put it simply, would be a major headache. So to try to avoid that issue, is there any simpler method of stopping Chrome from re-coloring the input boxes?
0
[ 2, 184, 107, 31, 747, 13, 12985, 37, 2019, 68, 51, 689, 22, 18, 6367, 8120, 60, 800, 3726, 3726, 497, 89, 1854, 17, 3458, 11189, 27, 21, 505, 10923, 15, 678, 8, 18506, 43, 857, 15, 31, 22, 79, 1665, 68, 51, 6367, 8120, 402, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Import Text File into generic Database using SQL === I am currently trying to import a semi-colon delimited text file into a database using OleDb where I don't know the type (SQL Server, Access, Oracle, MySQL, postgreSQL, etc.) Currently I'm reading in the file as a database using the Jet text reader then creating a prepared insert statement, populating the fields, then commiting at the end. While that works, it's slow and for millions of rows, it takes way too long. What I'd like to do is load the text file into a dataset, load the empty db into a dataset, merge then update the db. Problem is that because the nature of the data, there isn't any one column that I can use as a key as they all allow duplicates. I also read that this is a line by line insertion anyways. So my question: Does anybody have any other thoughts on how to best import a text file to a generic database, or comments on my approaches that will lead to a faster import?
0
[ 2, 9010, 1854, 3893, 77, 12733, 6018, 568, 4444, 255, 800, 3726, 3726, 31, 589, 871, 749, 20, 9010, 21, 1922, 8, 12805, 103, 121, 23012, 1854, 3893, 77, 21, 6018, 568, 12116, 9007, 113, 31, 221, 22, 38, 143, 14, 1001, 13, 5, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I properly handle the viewstate of a child control within a composite control? === I have a composite control that contains a ListBox child control. On postback, the items for the ListBox disappear. I have a property for the ListBox that initializes it, and I add it to the controls collection in CreateChildControls. Am I doing something wrong? Do I need to be doing something else to properly handle the viewstate of this ListBox?
0
[ 2, 184, 107, 31, 7428, 3053, 14, 1418, 3859, 16, 21, 850, 569, 363, 21, 12639, 569, 60, 800, 3726, 3726, 31, 57, 21, 12639, 569, 30, 1588, 21, 968, 5309, 850, 569, 9, 27, 678, 1958, 15, 14, 3755, 26, 14, 968, 5309, 10866, 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...
Does List<>.IndexOf compare by reference or value? === > List<tinyClass> ids = new List<tinyClass(); > ids.Add(new tinyClass(1, 2)); > > bool b = ids.IndexOf(new tinyClass(1, 2)) >= 0; //true or false? If it compares by value, it should return true; if by reference, it will return false. If it compares by reference, and I make tinyClass a struct - will that make a difference?
0
[ 2, 630, 968, 1, 9, 25671, 1041, 11590, 34, 2801, 54, 1923, 60, 800, 3726, 3726, 13, 1, 968, 1, 2864, 93, 1898, 1, 13, 9178, 800, 78, 968, 1, 2864, 93, 1898, 5, 6, 73, 13, 1, 13, 9178, 9, 14854, 5, 2681, 3228, 1898, 5, 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...
Dynamic SELECT TOP @var In SQL Server === How can I have a dynamic variable setting the amount of rows to return in SQL Server? Below is not valid syntax in SQL Server: DECLARE @count int SET @count = 20 SELECT TOP @count * FROM SomeTable
0
[ 2, 7782, 5407, 371, 13, 1, 3311, 19, 4444, 255, 8128, 800, 3726, 3726, 184, 92, 31, 57, 21, 7782, 7612, 2697, 14, 2006, 16, 11295, 20, 788, 19, 4444, 255, 8128, 60, 1021, 25, 52, 7394, 22649, 19, 4444, 255, 8128, 45, 10123, 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...
Which PHP-based CMS or framework has the best documentation? === I'm part of a group that's conisdering a PHP-based system to serve a community for communications purposes, including collaboration, event calendars, and a photo gallery. We're also loking into social networking integration (particularly Facebook) and maybe payment processing for community events. The two main CMSs we're considering are Wordpress and Joomla. We're also thinking of building on top of Symfony or Zend. **Which PHP-based system has the best documentation so that those of us with limited knowledge of the frameworks can ramp up easily?**.
4
[ 2, 56, 13, 26120, 8, 1281, 2390, 18, 54, 6596, 63, 14, 246, 13945, 60, 800, 3726, 3726, 31, 22, 79, 141, 16, 21, 214, 30, 22, 18, 1065, 403, 1157, 68, 21, 13, 26120, 8, 1281, 329, 20, 1884, 21, 514, 26, 3380, 4612, 15, 215, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create aliases in emacs? === I have a copy of emacs that I use on a couple of different (windows) computers from a thumb drive, and I am wondering if it is possible to create something that is sort of the equivalent of a bash alias or symlink within emacs? Something that I could use within find-file is the main thing that i'm looking for, so for example: `C-f <some link>` would take me somewhere. Currently I have to add a new defun every time i get to a new computer, which is just kind of a pain and I would *swear* i've seen this somewhere, but months of googling have turned up nothing.
0
[ 2, 1600, 15794, 160, 19, 13, 62, 6893, 18, 60, 800, 3726, 3726, 31, 57, 21, 4344, 16, 13, 62, 6893, 18, 30, 31, 275, 27, 21, 1335, 16, 421, 13, 5, 27508, 18, 6, 7774, 37, 21, 5078, 1493, 15, 17, 31, 589, 5712, 100, 32, 25,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using app.config with Interop Controls === I have a .net project (MySolution.Common) that uses the app.config. I am using the project MySolution.Common in an InteropUserControl project called MySolution.InteropCtrl. MySolution.InteropCtrl is embedded into a VB6 project. When the MySolution.InteropCtrl is in the VB6 project, It cannot find the app.config file. Everything in the InteropControl works in VB6 except for what depends on the information in the app.config file. What do I need to change so the MySolution.InteropCtrl can see the app.config file while in VB6?
0
[ 2, 568, 4865, 9, 14093, 2816, 29, 1480, 2594, 8671, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 669, 13, 5, 915, 18, 18687, 3309, 9, 17130, 6, 30, 2027, 14, 4865, 9, 14093, 2816, 9, 31, 589, 568, 14, 669, 51, 18, 18687, 3309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to migrate data in django === After making some changes in my models (eg. new field in a model and a new model) what is the best way of reflecting these changes to my populated database? ---------- PS: Of course I don't want to lose any data. I want to fill those new fields later on somehow for example using admin interface.
0
[ 2, 98, 25, 14, 246, 161, 20, 22985, 1054, 19, 3857, 14541, 800, 3726, 3726, 75, 544, 109, 1693, 19, 51, 2761, 13, 5, 5431, 9, 78, 575, 19, 21, 1061, 17, 21, 78, 1061, 6, 98, 25, 14, 246, 161, 16, 11560, 158, 1693, 20, 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...
Can I embed an icon to a .hta file? === I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself. I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons? HTA files have an HTA:APPLICATION tag that allows you to specify an icon, but I want to have only a single file for download. I don't want to have an external icon file. Is this possible? More info on hta files here: <a href="http://msdn.microsoft.com/en-us/library/ms536496(VS.85).aspx">HTA files</a>.
0
[ 2, 92, 31, 11911, 69, 40, 9801, 20, 21, 13, 9, 17134, 3893, 60, 800, 3726, 3726, 31, 57, 642, 40, 13, 15895, 3010, 13, 5, 17134, 3893, 6, 17, 589, 5712, 100, 80, 25, 21, 161, 20, 11911, 69, 40, 9801, 3893, 77, 14, 13, 17134,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Making the case for code quality === Imagine you're working with developers who habitually write 300 line nested methods full of errors, possible errors, etc. etc. Applications regularly throw exceptions as a matter of course, and much time is spend hunting odd intermittent bugs. How do you go about making the case for better code and better standards? How do you make the case to developers who are used to coding in a particular style (badly) and don't see the need or benefits of change? I suppose as a side question, what's been your experience with working with people in this kind of a situation, and what have you done that's worked positively?
2
[ 2, 544, 14, 610, 26, 1797, 2190, 800, 3726, 3726, 4382, 42, 22, 99, 638, 29, 10168, 72, 9474, 291, 1326, 2757, 3565, 293, 5618, 69, 3195, 503, 16, 11908, 15, 938, 11908, 15, 2722, 9, 2722, 9, 3767, 4217, 3814, 13392, 28, 21, 116...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 List vs. Array - when to use? === If you are creating a 1d array, you can implement it as a List, or else use the 'array' module in the STDLIB. I have always used Lists for 1d arrays. What is the reason or circumstance where I would want to use the array module instead? Is it for performance and memory optimization, or am I missing something obvious?
0
[ 2, 20059, 968, 4611, 9, 7718, 13, 8, 76, 20, 275, 60, 800, 3726, 3726, 100, 42, 50, 2936, 21, 137, 43, 7718, 15, 42, 92, 8713, 32, 28, 21, 968, 15, 54, 962, 275, 14, 13, 22, 8576, 93, 22, 12613, 19, 14, 354, 43, 8326, 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...
What do you recommend for setting up a shared server with php === What do you recommend for setting up a shared server with php from a security/performance point of view? - Apache mod_php (how do you secure that? other than safe_mode as it won't be in PHP6) - Apache CGI + suexec - Lighttpd and spawn a FastCGI per user
4
[ 2, 98, 107, 42, 12360, 26, 2697, 71, 21, 2592, 8128, 29, 13, 26120, 800, 3726, 3726, 98, 107, 42, 12360, 26, 2697, 71, 21, 2592, 8128, 29, 13, 26120, 37, 21, 1221, 118, 22528, 454, 16, 1418, 60, 13, 8, 17140, 7226, 1, 26120, 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...
When do you set "Index this resource" on IIS6? === When setting up a Home Directory on IIS6 properties for a web site there's an option to "Index this resource" which is checked on by default. Microsoft's site says: > Grant this > permission to allow Microsoft Indexing > Service to include this folder in a > full-text index of the Web site. When > you grant this permission, users can > perform queries on this resource. Can someone give me more information on when you would check this option on? What sort of queries would a user perform on this resource? What are the pro's and con's of having this set to on/off for a web site?
0
[ 2, 76, 107, 42, 309, 13, 7, 25671, 48, 6577, 7, 27, 595, 18, 379, 60, 800, 3726, 3726, 76, 2697, 71, 21, 213, 16755, 27, 595, 18, 379, 3704, 26, 21, 2741, 689, 80, 22, 18, 40, 4255, 20, 13, 7, 25671, 48, 6577, 7, 56, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I register a Web Reference for a SQL Server 2008 Reporting Service Report? === I'm trying to access the Reporting Services via Web Services in my Visual Studio 2008 Application. How/where can I find my WSDL?
0
[ 2, 184, 107, 31, 2243, 21, 2741, 2801, 26, 21, 4444, 255, 8128, 570, 6670, 365, 1330, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1381, 14, 6670, 687, 1197, 2741, 687, 19, 51, 3458, 1120, 570, 3010, 9, 184, 118, 2798, 92, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Java: Serializing beginner problem :-( === i want to safe and store simple mail objects via serializing, but I get always an error and I dont find it. <pre><code> package sotring; import java.io.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.*; import com.sun.org.apache.bcel.internal.generic.INEG; public class storeing { public static void storeMail(Message[] mail){ try { ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("mail.ser")); out.writeObject(mail); out.flush(); out.close(); } catch (IOException e) { } } public static Message[] getStoredMails(){ try { ObjectInputStream in = new ObjectInputStream(new FileInputStream("mail.ser")); Message[] array = (Message[]) in.readObject() ; System.out.println("Size: "+array.length); //return array; in.close(); return array; } catch(IOException ex) { ex.printStackTrace(); } catch(ClassNotFoundException ex) { ex.printStackTrace(); } } public static void main(String[] args) { User user1 = new User("User1", "geheim"); User user2 = new User("User2", "geheim"); Message email1 = new Message(user1.getName(), user2.getName(), "Test", "Fooobaaaar"); Message email2 = new Message(user1.getName(), user2.getName(), "Test2", "Woohoo"); Message email3 = new Message(user1.getName(), user2.getName(), "Test3", "Okay =) "); Message [] mails = {email1, email2, email3}; storeMail(mails); Message[] restored = getStoredMails();; } } </pre></code> and here the user and message class <pre><code> public class Message implements Serializable{ static final long serialVersionUID = -1L; private String receiver; //Empfänger private String sender; //Absender private String Betreff; private String content; private String timestamp; private String getDateTime() { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(); return dateFormat.format(date); } Message (String receiver, String sender, String Betreff, String content) { this.Betreff= Betreff; this.receiver = receiver; this.sender = sender; this.content = content; this.timestamp = getDateTime(); } Message() { // Just for loaded msg } public String getReceiver() { return receiver; } public void setReceiver(String receiver) { this.receiver = receiver; } public String getSender() { return sender; } public void setSender(String sender) { this.sender = sender; } public String getBetreff() { return Betreff; } public void setBetreff(String betreff) { Betreff = betreff; } public String getContent() { return content; } public String getTime() { return timestamp; } public void setContent(String content) { this.content = content; } } </pre></code> <pre><code> public class User implements Serializable{ static final long serialVersionUID = -1L; private String username; //unique Username private String ipadress; //changes everytime private String password; //Password private int unreadMsg; //Unread Messages private static int usercount; private boolean online; public String getName(){ return username; } public boolean Status() { return online; } public void setOnline() { this.online = true; } public void setOffline() { this.online = false; } User(String username,String password){ if (true){ this.username = username; this.password = password; usercount++; } else System.out.print("Username not availiable"); } public void changePassword(String newpassword){ password = newpassword; } public void setIP(String newip){ ipadress = newip; } public String getIP(){ if (ipadress.length() >= 7){ return ipadress; } else return "ip address not set."; } public int getUnreadMsg() { return unreadMsg; } } </pre></code> Here is the exception: **exception in thread "main" java.lang.Error: Unresolved compilation problem: This method must return a result of type Message[] at sotring.storeing.getStoredMails(storeing.java:22) at sotring.storeing.main(storeing.java:57)** THANK YOU FOR YA HELP!!!!!!!!!!!
0
[ 2, 8247, 45, 5956, 3335, 26931, 1448, 13, 45, 8, 5, 800, 3726, 3726, 31, 259, 20, 1834, 17, 1718, 1935, 4216, 3916, 1197, 5956, 3335, 15, 47, 31, 164, 550, 40, 7019, 17, 31, 1049, 477, 32, 9, 13, 1, 3515, 1, 9375, 1, 6030, 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...
Prevent dialogs appearing in unattended builds === I was wondering is there is a fool-proof way to run a program on windows such that I'm <b>guaranteed</b> that <b>no interactive dialogs of any kind</b> are displayed. I've tried the registry ErrorMode hack, calling _CrtSetReportMode(), etc., but they all have holes in them or require you to modify the program. I need a way to run an <b>arbitrary</b> program and practically force Windows to execute them such that there is no possibility for them to open a window. It is perfectly ok for the program to crash if it attempts to open a window. Would running the program as a service solve the problem?
0
[ 2, 2501, 28223, 18, 4870, 19, 367, 10303, 10726, 1895, 18, 800, 3726, 3726, 31, 23, 5712, 25, 80, 25, 21, 5345, 8, 13266, 161, 20, 485, 21, 625, 27, 1936, 145, 30, 31, 22, 79, 13, 1, 220, 1, 3073, 512, 4760, 69, 1, 118, 220,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Manage multiple app config files during development === I'm building an application that is used by several different customers. Each customer has a fair amount of custom business logic, which I have cleverly refactored out into an assembly that gets loaded at runtime. The name of that assembly, along with a number of other customer-specific settings, are stored in the application's configuration file. Right now, here's what I have to do in order to debug the application for customer foo: 1. Go to the filesystem in my project directory and delete `app.config` 2. Copy `app.config.foo` to `app.config.foo - Copy`. 3. Rename `app.config.foo - Copy` as `app.config`. 4. Tell Windows that yes, I want to change the file's extension. 5. Switch back to Visual Studio. 6. Open the `Settings.settings` item in my project. 7. Click "Yes" 13 or 14 times as VS asks me if I want to use the new settings that have been changed in `app.config`. 8. Close `Settings.settings`. Okay! Now I'm ready to debug! It seems to me that the rigamarole of opening `Settings.settings` is, or ought to be, unnecessary: I don't need the default values in `Settings.cs` to be regenerated, because I don't use them. But it's the only way I know of to make VS aware of the fact that the `app.config` file has changed, so that the build will copy it to the output directory. There's got to be an easier way of doing this. What is it?
0
[ 2, 4705, 1886, 4865, 13, 14093, 2816, 6488, 112, 522, 800, 3726, 3726, 31, 22, 79, 353, 40, 3010, 30, 25, 147, 34, 238, 421, 5279, 9, 206, 7705, 63, 21, 1768, 2006, 16, 5816, 508, 7085, 15, 56, 31, 57, 11994, 102, 302, 17455, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 disable and then enable the Retry button in a MessageBox (C++)? === I have the following unmanaged C++ code: MessageBox( NULL, strMessage, "Cool Product", MB_RETRYCANCEL | MB_ICONEXCLAMATION); I want to disable the RETRY button for 10 seconds (for example), then enable it. How can I do this?
0
[ 2, 184, 107, 31, 1460, 579, 17, 94, 9240, 14, 302, 5840, 5167, 19, 21, 2802, 5309, 13, 5, 150, 20512, 6, 60, 800, 3726, 3726, 31, 57, 14, 249, 367, 177, 8030, 272, 20512, 1797, 45, 2802, 5309, 5, 16203, 15, 13, 9729, 3845, 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 is your Development Environment Set up? === Curious to know how people set up their personal and/or work development environment, in terms of: Do you just have all of your developer tools (for example Visual Studio, SSMS, etc.) installed on your main operating system;<br> Do you use Virtual Machines to have a separate "clean" dev environment that consists only of the OS and one compiler you're working with;<br> Do you have multiple OS's in a multi-boot system;<br> Do you remote connect to a separate machine with your developer tools installed on there
0
[ 2, 184, 25, 154, 522, 2307, 309, 71, 60, 800, 3726, 3726, 7686, 20, 143, 184, 148, 309, 71, 66, 1319, 17, 118, 248, 170, 522, 2307, 15, 19, 1663, 16, 45, 107, 42, 114, 57, 65, 16, 154, 10058, 4672, 13, 5, 1106, 823, 3458, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does the string "¿" get translated to "¿" when calling .getBytes() === When writing the string "¿" out using System.out.println(new String("¿".getBytes("UTF-8"))); ¿ is written instead of just ¿. WHY? And how do we fix it?
0
[ 2, 483, 630, 14, 3724, 13, 7, 1, 7, 164, 4331, 20, 13, 7, 58, 1, 7, 76, 2555, 13, 9, 3060, 23246, 18, 5, 6, 800, 3726, 3726, 76, 1174, 14, 3724, 13, 7, 1, 7, 70, 568, 329, 9, 1320, 9, 10299, 16600, 5, 2681, 3724, 5, 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...
Opening a page using actionscript in a custom frame === Is it possible to open an html page using navigateToURL and specifying a named frame in your html document. For instance, if you have an iframe on the page called "Steven", can you call navigateToURL("someURL","Steven"); instead of something like navigateToURL("someURL","_self"); I have tried this and it opens the URL in a new window.
0
[ 2, 1214, 21, 2478, 568, 1028, 8741, 19, 21, 5816, 3523, 800, 3726, 3726, 25, 32, 938, 20, 368, 40, 13, 15895, 2478, 568, 20782, 11648, 255, 17, 19077, 68, 21, 377, 3523, 19, 154, 13, 15895, 4492, 9, 26, 4851, 15, 100, 42, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java2D: Clipping a Graphics object with a Line === Is there a way to use a Graphics object's 'setClip()' method to clip using a Line-ish shape? Right now I'm trying to use a Polygon shape but I'm having problems simulating the "width" of the line. I basically draw the line, and when I reach the end, I redraw it but this time subtract the line width from y-coordinate: Polygon poly = new Polygon(); for(int i = 0; i < points.length; i++) poly.addPoint(points.[i].x, points.[i].y); // Retrace line to add 'width' for(int i = points.length - 1; i >=0; i--) poly.addPoint(points[i].x, points[i].y - lineHeight); It almost works but the width of the line varies based upon its slope. I can't use the BrushStroke and drawLine() methods because the line can change color once it passes some arbitrary reference line. Is there some implementation of Shape that I overlooked, or an easy one I can create, that will let me do this more easily?
0
[ 2, 8247, 135, 43, 45, 29568, 21, 8351, 3095, 29, 21, 293, 800, 3726, 3726, 25, 80, 21, 161, 20, 275, 21, 8351, 3095, 22, 18, 13, 22, 3554, 150, 6013, 5, 6, 22, 2109, 20, 12229, 568, 21, 293, 8, 1595, 2539, 60, 193, 130, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Validate String against USPS State Abbreviations === I need to be able to validate a string against a list of the possible United States Postal Service state abbreviations, and Google is not offering me any direction. I know of the obvious solution: and that is to code a horridly huge if (or switch) statement to check and compare against all 50 states, but I am asking StackOverflow, since there has to be an easier way of doing this. Is there any RegEx or an enumerator object out there that I could use to quickly do this the most efficient way possible? [C# and .net 3.5 by the way] [List of USPS State Abbreviations][1] [1]: http://www.usps.com/ncsc/lookups/usps_abbreviations.html
0
[ 2, 7394, 1373, 3724, 149, 182, 1919, 146, 5941, 3692, 1755, 7504, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 7394, 1373, 21, 3724, 149, 21, 968, 16, 14, 938, 181, 202, 11680, 365, 146, 5941, 3692, 1755, 7504, 15, 17, 8144, 25, 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...
Every now and then, ABCpdf runs out of memory === The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.) Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a custom exception in the document object of the type WebSupergoo.ABCpdf6.Internal.PDFException. The contents contains only the not -terribly-helpful title "Unable to get image data. Out Of Memory" Usually this happens when trying to add an image to the PDF. Since these images are PNGs of less than 100k, I'm guessing their size isn't the issue. Also, the really strange thing is that once this issue starts happening, the only way to get it to stop seems to be to reboot the web server, which is clearly a little sub-par. Has anyone ever had this problem (or even used this tool?)
0
[ 2, 352, 130, 17, 94, 15, 5079, 11124, 1461, 70, 16, 1912, 800, 3726, 3726, 14, 669, 31, 22, 79, 27, 25, 568, 21, 203, 897, 346, 5912, 20, 1895, 7782, 13, 11124, 18, 19, 21, 13, 20468, 9, 2328, 2741, 329, 227, 5079, 11124, 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...
When is it ok to use a global variable in C? === Apparently there's a lot of variety in opinions out there, ranging from, "**Never! Always encapsulate (even if it's with a mere macro!)**" to "**It's no big deal - use them when it's more convenient than not.**" So. Specific, concrete reasons (preferably with an example) - Why global variables are dangerous - When global variables *should* be used in place of alternatives - What alternatives exist for those that are tempted to use global variables inappropriately While this is subjective, I will pick one answer (that to me best represents the love/hate relationship every developer should have with globals) and the community will vote theirs to just below. I believe it's important for newbies to have this sort of reference, but please don't clutter it up if another answer exists that's substantially similar to yours - add a comment or edit someone else's answer. -Adam
0
[ 2, 76, 25, 32, 5854, 20, 275, 21, 2062, 7612, 19, 272, 60, 800, 3726, 3726, 3083, 80, 22, 18, 21, 865, 16, 1747, 19, 11900, 70, 80, 15, 7657, 37, 15, 13, 7, 1409, 9018, 187, 550, 1957, 4666, 18, 12383, 13, 5, 4943, 100, 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...
Merits of databases like BigTable, SimpleDB === New school datastore paradigms like Google BigTable and Amazon SimpleDB are specifically designed for scalability, among other things. Basically, disallowing joins and denormalization are the ways this is being accomplished. In [this][1] topic, however, the consensus seems to be that joins on large tables don't necessarilly have to be too expensive and denormalization is "overrated" to some extent Why, then, do these aforementioned systems disallow joins and force everything together in a single table to achieve scalability? Is it the sheer volumes of data that needs to be stored in these systems (many terabytes)? Do the general rules for databases simply not apply to these scales? Or am I missing some bigger picture? [1]: http://stackoverflow.com/questions/173726/why-are-database-joins-expensive
0
[ 2, 5848, 18, 16, 6018, 18, 101, 580, 5924, 15, 1935, 9007, 800, 3726, 3726, 78, 116, 1054, 16828, 20234, 18, 101, 8144, 580, 5924, 17, 8059, 1935, 9007, 50, 3524, 1006, 26, 18957, 4091, 15, 497, 89, 564, 9, 11374, 15, 1460, 17976,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which wysiwyg editor works best on Adobe AIR? === There are tons of free wysiwyg editors you can embed in web pages. I'm looking for something that is easiest to embed into an adobe air app. Means something that works in webkit and is easy to get the content from with javascript.
4
[ 2, 56, 5809, 18, 49, 7913, 263, 1835, 693, 246, 27, 20299, 282, 60, 800, 3726, 3726, 80, 50, 5278, 16, 551, 5809, 18, 49, 7913, 263, 12149, 42, 92, 11911, 69, 19, 2741, 4434, 9, 31, 22, 79, 699, 26, 301, 30, 25, 27237, 20, 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...
Java, convert lat/lon to UTM === Does anyone know of a way, in Java, to convert an earth surface position from lat, lon to UTM (say in WGS84)? I'm currently looking at Geotools but unfortunately the solution is not obvious.
0
[ 2, 8247, 15, 8406, 14303, 118, 3226, 20, 13, 1982, 79, 800, 3726, 3726, 630, 1276, 143, 16, 21, 161, 15, 19, 8247, 15, 20, 8406, 40, 1073, 1490, 649, 37, 14303, 15, 13, 3226, 20, 13, 1982, 79, 13, 5, 6366, 19, 13, 14932, 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...
Swing: Is there a way to differentiate between a user-caused ItemEvent and an application-caused one? === I'm working with a combobox in a Swing-based application, and I'm having a hard time figuring out what to do to differentiate between an ItemEvent that is generated from a user event vs one caused by the application. For instance, Lets say I have a combobox, '`combo`' and I'm listening for itemStateChanged events with my ItemListener, '`listener`'. When either a user changes the selection to item 2 or I execute the line (pseudocode): `combo.setSelection(2)` .. it seems like I'm not able to tell these events apart. That said, I'm no Swing expert by any means, so I thought I would ask. Thanks!
0
[ 2, 5587, 45, 25, 80, 21, 161, 20, 22144, 128, 21, 4155, 8, 17560, 43, 9101, 4943, 38, 17, 40, 3010, 8, 17560, 43, 53, 60, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 22621, 5309, 19, 21, 5587, 8, 1281, 3010, 15, 17, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
STL non-copying wrapper around an existing array? === Is it possible to create an STL-like container, or even just an STL-style iterator, for an existing arrow of POD-type elements? For example, suppose I have an array of ints. It would be convenient to be able to call some of the STL functions, such as find&#95;if, count&#95;if, or sort directly on this array. Non-solution: copying the entire array, or even just references to the elements. The goal is to be very memory- and time-saving while hopefully allowing use of other STL algorithms.
0
[ 2, 354, 255, 538, 8, 19625, 68, 28051, 140, 40, 3149, 7718, 60, 800, 3726, 3726, 25, 32, 938, 20, 1600, 40, 354, 255, 8, 1403, 12147, 15, 54, 166, 114, 40, 354, 255, 8, 4381, 32, 106, 3457, 15, 26, 40, 3149, 7409, 16, 8848, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In Delphi 7, can I set up 'Debug' and 'Release' modes? === In most modern IDEs, you can have Debug and Release build configurations, and you can quickly switch between them. In Delphi 7, this does not seem to be possible. I have to go to Project Settings and toggle optimization and all the debug information stuff manually. It would be great if there was a plugin or some such that handled this for me. Does anyone know of one? Any other suggestions?
0
[ 2, 19, 23030, 453, 15, 92, 31, 309, 71, 13, 22, 546, 16254, 22, 17, 13, 22, 15202, 22, 12770, 60, 800, 3726, 3726, 19, 127, 773, 13, 8153, 15, 42, 92, 57, 121, 16254, 17, 830, 1895, 8091, 18, 15, 17, 42, 92, 976, 5521, 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...
Element-Enhancing Javascript in ASP.NET Master Pages === I have run in to a bit of a problem and I have done a bit of digging, but struggling to come up with a conclusive answer/fix. Basically, I have some javascript (created by a 3rd party) that does some whizzbang stuff to page elements to make them look pretty. The code works great on single pages (i.e. no master), however, when I try and apply the effects to a content page within a master, it does not work. In short I have a master page which contains the main script reference. All pages will use the script, but the parameters passed to it will differ for the content pages. **Master Page Script Reference** <script src="scripts.js" language="javascript" type="text/javascript" /> **Single Page** <script> MakePretty("elementID"); </script> As you can see, I need the reference in each page (hence it being in the master) but the actual elements I want to "MakePretty" will change dependant on content. **Content Pages** Now, due to the content page not having a `<head>` element, I have been using the following code to add it to the master pages `<head>` element: HtmlGenericControl ctl = new HtmlGenericControl("script"); ctl.Attributes.Add("language", "javascript"); ctl.InnerHtml = @"MakePretty(""elementID"")"; Master.Page.Header.Controls.Add(ctl); Now, this **fails to work**. However, if I replace with something simple like `alert("HI!")`, all works fine. So the code is being added OK, it just doesn't seem to always execute depending on what it is doing.. Now, having done some digging, I have learned that th content page's `Load` event is raised before the master pages, which may be having an effect, however, I thought the javascript on the page was all loaded/run at once? Forgive me if this is a stupid question, but I am still relatively new to using javascript, especially in the master pages scenario. **How can I get content pages to call javascript code which is referenced in the Master page?** Thanks for any/all help on this guys, you will really be helping me out with this work problem. ##NOTE: `RegisterStartupScript` and the like does not seem to work at any level.. _ _ _ Apologies if any of this is unclear, I am real tired so if need be please comment if a re-word/clarification is required.
0
[ 2, 4520, 8, 23267, 8247, 8741, 19, 28, 306, 9, 2328, 1129, 4434, 800, 3726, 3726, 31, 57, 485, 19, 20, 21, 1142, 16, 21, 1448, 17, 31, 57, 677, 21, 1142, 16, 11004, 15, 47, 7587, 20, 340, 71, 29, 21, 28384, 1623, 118, 18594, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Geolocation web site for pictures === Not being a web developer myself, but having idea for a cool web site, how does one create such a web site? [The web site idea] I need to build a simple social web site where people can upload pictures, comment on the picture, and most importantly, log the actual location of what is in the picture with a google map view of it. Upon entry, the interface will show a google map and ask for a zip/postal code, country, and search radius (5km, 25km, 50km, etc.) The result will show you a google map with all picutres tacked on within that radius. Clear as mud? ;) This is a "fun" project and am looking around for resources to make it happen. Heck, if a site like the above already exists and there are free templates, then even better.
0
[ 2, 6389, 19032, 2741, 689, 26, 3104, 800, 3726, 3726, 52, 142, 21, 2741, 10058, 992, 15, 47, 452, 882, 26, 21, 2700, 2741, 689, 15, 184, 630, 53, 1600, 145, 21, 2741, 689, 60, 636, 124, 2741, 689, 882, 500, 31, 376, 20, 1895, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Scrum Restrospectives, who do you share the results with? === I was wondering what are the best practices regarding Scrum retrospectives results distribution. Do you share the results with every other teams and even outside R&D or do you make the results available to the team only? The results of our retrospectives contain suggestions on what we need to continue doing in the next iterations along with what we need to start doing and stop doing.
0
[ 2, 26562, 760, 661, 7350, 1284, 18, 15, 72, 107, 42, 1891, 14, 1736, 29, 60, 800, 3726, 3726, 31, 23, 5712, 98, 50, 14, 246, 5242, 3467, 26562, 15448, 18, 1736, 2523, 9, 107, 42, 1891, 14, 1736, 29, 352, 89, 952, 17, 166, 719,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Writing a reliable, totally-ordered multicast system in Python === I have to write a reliable, totally-ordered multicast system from scratch in Python. I can't use any external libraries. I'm allowed to use a central sequencer. There seems to be two immediate approaches: 1. write an efficient system, attaching a unique id to each multicasted message, having the sequencer multicast sequence numbers for the message id's it receives, and sending back and forth ACK's and NACK's. 2. write an inefficient flooding system, where each multicaster simply re-sends each message it receives once (unless it was sent by that particular multicaster.) I'm allowed to use the second option, and am inclined to do so. I'm currently multicasting UDP messages (which seems to be the only option,) but that means that some messages might get lost. That means I have to be able to uniquely identify each sent UDP message, so that it can be re-sent according to #2. Should I really generate unique numbers (e.g. using the sender address and a counter) and pack them into each and every UDP message sent? How would I go about doing that? And how do I receive a single UDP message in Python, and not a stream of data (i.e. `socket.recv`)?
0
[ 2, 1174, 21, 11398, 15, 5139, 8, 7861, 69, 1889, 6146, 329, 19, 20059, 800, 3726, 3726, 31, 57, 20, 2757, 21, 11398, 15, 5139, 8, 7861, 69, 1889, 6146, 329, 37, 12395, 19, 20059, 9, 31, 92, 22, 38, 275, 186, 4886, 8649, 9, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to deal with Javascript tabs. === So basically, I have two tabs which contain regular and special e-mails. In order to get e-mails, you have to click on a calendar date and AJAX will then query the database for the regular e-mails and special e-mails. There is a next and previous button to navigate through the results gotten for the selected date. The problem I have is that since each tab keeps track of a separate set of e-mails, e-mail count, viewing e-mail *n* of *n*, and current e-mail. My thought was that I could use setters and getters for each common variable. Basically, if I called *getEmailCount()* while in the first tab, I'll get the e-mail count for the regular e-mails by checking which tab is currently active. Only reason I ask is because I don't think have checking which tab is active in each function is the best way. I Googled it a bit, but really didn't know what I should have been searching for. Any thoughts? Thank you.
0
[ 2, 184, 20, 1183, 29, 8247, 8741, 6523, 18, 9, 800, 3726, 3726, 86, 11374, 15, 31, 57, 81, 6523, 18, 56, 3717, 1290, 17, 621, 13, 62, 8, 8079, 18, 9, 19, 389, 20, 164, 13, 62, 8, 8079, 18, 15, 42, 57, 20, 10840, 27, 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...
For hosted applications, should i be sanitizing === I am looking at starting a hosted CMS-like service for customers. As it would, it would require the customer to input text which would be served up to anyone that comes to visit their site. I am planning on using Markdown, possibly in combination with WMD (the live markdown preview that SO uses) for the big blocks of text. Now, should i be sanitizing their input for html? Given that there would only be a handful of people editing their 'CMS', all paying customers, should i be stripping out the bad HTML, or should i just let them run wild? After all, it is their 'site'
0
[ 2, 26, 2812, 3767, 15, 378, 31, 44, 523, 242, 3335, 800, 3726, 3726, 31, 589, 699, 35, 1422, 21, 2812, 2390, 18, 8, 1403, 365, 26, 5279, 9, 28, 32, 83, 15, 32, 83, 4077, 14, 7705, 20, 6367, 1854, 56, 83, 44, 423, 71, 20, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is ¿ displayed different in Windows vs Linux even when using UTF-8? === Why is the following displayed different in Linux vs Windows? System.out.println(new String("¿".getBytes("UTF-8"), "UTF-8")); in Windows: ¿ in Linux: ¿
0
[ 2, 483, 25, 13, 1, 6115, 421, 19, 1936, 4611, 13024, 166, 76, 568, 287, 11720, 8, 457, 60, 800, 3726, 3726, 483, 25, 14, 249, 6115, 421, 19, 13024, 4611, 1936, 60, 329, 9, 1320, 9, 10299, 16600, 5, 2681, 3724, 5, 7, 1, 7, 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...
Building a full text search engine: where to start. === I want to write a web application using [Google App Engine][1] (so the reference language would be **Python**). My application needs a simple search engine, so the users would be able to find data specifying keywords. For example, if I have one table with those rows: > 1 Office space<br> 2 2001: A space > odyssey<br> 3 Brazil and the user queries for "space", rows 1 and 2 would be returned. If the user queries for "office space", the result should be rows 1 and 2 too (row 1 first). What are the technical guidelines/algorithms to do this in a simple way?<br> Can you give me good pointers to the theory behind this?<br> Thanks. [1]: http://code.google.com/appengine/
0
[ 2, 353, 21, 503, 1854, 2122, 1406, 45, 113, 20, 799, 9, 800, 3726, 3726, 31, 259, 20, 2757, 21, 2741, 3010, 568, 636, 16111, 4875, 4865, 1406, 500, 2558, 165, 500, 13, 5, 656, 14, 2801, 816, 83, 44, 13, 1409, 6448, 11570, 1409, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there any recent lua to javascript converters somewhere? === I need to find a good lua to javascript converter; lua2js on luaforge.org is out of date (3 or so years old and looks like it doesn't work on lua 5.1) and i haven't yet found anything on google. Does anyone have any experience with any other converters out there? It should work on lua 5.1 and preferrably be .NET based, but .NET is not a requirement.
0
[ 2, 50, 80, 186, 1764, 1612, 58, 20, 8247, 8741, 25893, 18, 3493, 60, 800, 3726, 3726, 31, 376, 20, 477, 21, 254, 1612, 58, 20, 8247, 8741, 25893, 73, 1612, 58, 135, 728, 18, 27, 1612, 58, 1106, 834, 9, 5583, 25, 70, 16, 1231, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suppressing warnings for JDK1.4 project === Is it possible to suppress warnings in Eclipse for JDK1.4 project?
0
[ 2, 12451, 68, 3590, 18, 26, 487, 43, 197, 165, 9, 300, 669, 800, 3726, 3726, 25, 32, 938, 20, 12451, 3590, 18, 19, 11652, 26, 487, 43, 197, 165, 9, 300, 669, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Profile debug or release build? === I need to do some memory profiling of a .NET Framework application. Should I use a debug or a release build?
0
[ 2, 5296, 121, 16254, 54, 830, 1895, 60, 800, 3726, 3726, 31, 376, 20, 107, 109, 1912, 8721, 49, 802, 16, 21, 13, 9, 2328, 6596, 3010, 9, 378, 31, 275, 21, 121, 16254, 54, 21, 830, 1895, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Favorite Web Form Validation Technique === What is everyone's favorite way to sanitize user data? I've been using Javascript, but have recently required something more secure (people can turn it off, after all), so I was looking at Flex, but thought I'd ask the community what they thought.
0
[ 2, 3839, 2741, 505, 27999, 4873, 800, 3726, 3726, 98, 25, 1266, 22, 18, 3839, 161, 20, 523, 242, 2952, 4155, 1054, 60, 31, 22, 195, 74, 568, 8247, 8741, 15, 47, 57, 1989, 1390, 301, 91, 4315, 13, 5, 10171, 92, 805, 32, 168, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between a URI and a URL? === People talk about URLs and URIs as if they're different things, but they look the same to the naked eye. What's the difference between the two?
0
[ 2, 98, 22, 18, 14, 2841, 128, 21, 13, 3594, 17, 21, 287, 6362, 60, 800, 3726, 3726, 148, 930, 88, 13, 911, 7532, 17, 13, 3594, 18, 28, 100, 59, 22, 99, 421, 564, 15, 47, 59, 361, 14, 205, 20, 14, 5426, 1356, 9, 98, 22, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Why should I both Unit test AND Web test (instead of just web test)? === My current position is this: if I thoroughly test my ASP.NET applications using web tests (in my case via the VS.NET'08 test tools and WatiN, maybe) with code coverage and a broad spectrum of data, I should have no need to write individual unit tests, because my code will be tested in conjunction with the UI through all layers. Code coverage will ensure I'm hitting every functional piece of code (or reveal unused code) and I can provide data that will cover all reasonably expected conditions. However, if you have a different opinion, I'd like to know: 1) What *additional* benefit does unit testing give that justifies the effort to include it in a project (keep in mind, I'm doing the web tests anyway, so in many cases, the unit tests would be covering code that web tests already cover). 2) Can you explain your reasons in detail with concete examples? Too often I see responses like "that's not what it's meant for" or "it promotes higher quality" - which really doesn't address the practical question I have to face, which is, how can I justify - with tangible results - spending more time testing? Thanks, Richard
0
[ 2, 483, 378, 31, 156, 1237, 1289, 17, 2741, 1289, 13, 5, 108, 6849, 16, 114, 2741, 1289, 6, 60, 800, 3726, 3726, 51, 866, 649, 25, 48, 45, 100, 31, 13632, 1289, 51, 28, 306, 9, 2328, 3767, 568, 2741, 4894, 13, 5, 108, 51, 61...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a virtual machine image as a continuous integration artifact? === I'm currently working on a server-side product which is a bit complex to deploy on a new server, which makes it an ideal candidate for testing out in a VM. We are already using Hudson as our CI system, and I would really like to be able to deploy a virtual machine image with the latest and greatest software as a build artifact. So, how does one go about doing this exactly? What VM software is recommended for this purpose? How much scripting needs to be done to accomplish this? Are there any issues in particular when using Windows 2003 Server as the OS here?
0
[ 2, 2936, 21, 6599, 1940, 1961, 28, 21, 6357, 8078, 22929, 60, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 8128, 8, 1416, 2374, 56, 25, 21, 1142, 1502, 20, 17617, 27, 21, 78, 8128, 15, 56, 1364, 32, 40, 5628, 2316, 26, 4431,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 strip out the domain name from a URL in php? === Im looking for a method (or function) to strip out the domain.ext part of any URL thats fed into the function. The domain extension can be anything (.com, .co.uk, .nl, .whatever), and the URL thats fed into it can be anything from http://www.domain.com to www.domain.com/path/script.php?=whatever Whats the best way to go about doing this?
0
[ 2, 184, 107, 42, 4998, 70, 14, 4603, 204, 37, 21, 287, 6362, 19, 13, 26120, 60, 800, 3726, 3726, 797, 699, 26, 21, 2109, 13, 5, 248, 1990, 6, 20, 4998, 70, 14, 4603, 9, 1706, 38, 141, 16, 186, 287, 6362, 30, 18, 6068, 77, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.Net tutorials of the same caliber as JavaEE "first cup" tutorials...Do they exist? === My company has a large web application with over 1 million users, all written in classic ASP, and it is getting rather long in the tooth. We are trying to decide between moving to Java, or to ASP.Net, and moving to an object-oriented style. There are lots of good entry-level tutorials for JavaEE, like their First Cup tutorial that takes the user through building a web-services oriented application, but I can't find anything of similar depth for .Net. About all I can seem to find are tutorials demonstrating basic dynamic wep page functionality, and don't go anywhere near using ASP.Net with an object-oriented MVC paradigm to develop a more complex web application. Does something like this exist for ASP.Net, or is it really so much easier to develop a complex application with JavaEE that their entry tutorial builds a web-service driven application than it is to do a similar thing with ASP.Net?
0
[ 2, 13, 9, 2328, 29724, 18, 16, 14, 205, 13, 17145, 28, 8247, 2851, 13, 7, 3552, 480, 7, 29724, 18, 9, 9, 9, 537, 59, 3182, 60, 800, 3726, 3726, 51, 237, 63, 21, 370, 2741, 3010, 29, 84, 137, 507, 3878, 15, 65, 642, 19, 273...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 open an Access database (and wait for it to close before proceeding) in a batch file? === I've tried these, and they did not work (Access opens, but it does not wait: start "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb start /WAIT "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb start /W "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb start filename.mdb start msaccess.exe filename.mdb
0
[ 2, 184, 107, 31, 368, 40, 1381, 6018, 13, 5, 290, 1760, 26, 32, 20, 543, 115, 20459, 6, 19, 21, 13064, 3893, 60, 800, 3726, 3726, 31, 22, 195, 794, 158, 15, 17, 59, 144, 52, 170, 13, 5, 20604, 8965, 15, 47, 32, 630, 52, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Forcing file deletion on Windows from Java === Is there a programatic way from java to force a file deletion on windows even if the file is locked by some process? I cannot kill the process that locks the file.
0
[ 2, 6135, 3893, 28916, 27, 1936, 37, 8247, 800, 3726, 3726, 25, 80, 21, 625, 12479, 161, 37, 8247, 20, 558, 21, 3893, 28916, 27, 1936, 166, 100, 14, 3893, 25, 4011, 34, 109, 953, 60, 31, 1967, 1177, 14, 953, 30, 12941, 14, 3893, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Compare tools to generate update script for SQL server === I would like to make the update of the web application as automated as possible. I'm looking for a tool that can compare two instances of a database and generate an update script for me. As part of the build process create a instance of the last version of the database (ie currently in production) and compare that to what has been changed on the development version. Any input is appreciated.
0
[ 2, 11590, 4672, 20, 7920, 11100, 3884, 26, 4444, 255, 8128, 800, 3726, 3726, 31, 83, 101, 20, 233, 14, 11100, 16, 14, 2741, 3010, 28, 14904, 28, 938, 9, 31, 22, 79, 699, 26, 21, 5607, 30, 92, 11590, 81, 13946, 16, 21, 6018, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Way to get the SearchPath API to not look in c:\windows? === Is there a way to get the SearchPath API to not search in c:\windows when using the default search path (passing NULL as the first param)? I can't modify the caller to send in a specific path. I have a system with an application ini file in c:\windows (which I don't want it to use, but for legacy reasons has to remain there). I put my copy of the same ini file in c:\users\public, and put c:\users\public at the front of my system path environment variable, but a call to SearchPath still finds the c:\windows version. If I delete that version, it then finds the c:\users\public version, so I know the path was set correctly.
0
[ 2, 161, 20, 164, 14, 2122, 8353, 21, 2159, 20, 52, 361, 19, 272, 45, 1, 27508, 18, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 164, 14, 2122, 8353, 21, 2159, 20, 52, 2122, 19, 272, 45, 1, 27508, 18, 76, 568, 14, 12838, 2122, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I find a "good" tutorial for py2exe? === Can somebody point me at a **good** tutorial for py2exe? I've read over the [official tutorial][1] but it is rather light on details, compared to all the options one can use when building an executable out of a python script. For the record, my python script uses Python 2.5.2, wxPython/wxWidgets 2.8 and MySQLdb 1.2.2; so if you have specific tips for py2exe with those packages that would be much appreciated (and yes, I've seen the [Py2EXE and wxPython][2] page). [1]: http://www.py2exe.org/index.cgi/Tutorial [2]: http://www.py2exe.org/index.cgi/Py2exeAndwxPython
0
[ 2, 113, 92, 31, 477, 21, 13, 7, 3264, 7, 29724, 26, 7103, 135, 1706, 62, 60, 800, 3726, 3726, 92, 8861, 454, 55, 35, 21, 13, 1409, 3264, 1409, 29724, 26, 7103, 135, 1706, 62, 60, 31, 22, 195, 1302, 84, 14, 636, 16168, 29724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 everyone like jquery more than prototype/script.aclo.us or mootools or whatever? === It seems that jQuery has taken the throne for javascript frameworks and I was wondering exactly why. Is there a technical reason for this or is it just that they have evangelists? I have been really happy with using prototype myself. Should I use jQuery for my next project?
0
[ 2, 483, 630, 1266, 101, 487, 8190, 93, 91, 119, 7063, 118, 8741, 9, 58, 13023, 9, 267, 54, 13, 8765, 20799, 18, 54, 2099, 60, 800, 3726, 3726, 32, 2206, 30, 487, 8190, 93, 63, 658, 14, 4717, 26, 8247, 8741, 6596, 18, 17, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shared memory access permissions on Windows === I've developed a windows application that uses shared memory---that is---memory mapped files for interprocess communication. I have a windows service that does some processing and periodically writes data to the memory mapped file. I have a separate windows application that reads from the memory mapped file and displays the information. The application works as expected on Windows XP, XP Pro and Server 2003, but NOT on Vista. I can see that the data being written to the memory mapped file is happening correctly by the windows service because I can open the file with a text editor and see the stored messages, but the "consumer" application can't read from the file. One interesting thing to note here, is that if I close the consumer application and restart it, it consumes the messages that were previously written to the memory mapped file. Also, another strange thing is that I get the same behavior when I connect to the windows host using Remote Desktop and invoke/use the consumer application through remote desktop. However, if I invoke the Remote Desktop and connect to the target host's console session with the following command: "mstsc -v:servername /F -console", everything works perfectly. So that's why I think the problem is related to permissions. Can anyone comment on this?
0
[ 2, 2592, 1912, 1381, 5572, 18, 27, 1936, 800, 3726, 3726, 31, 22, 195, 885, 21, 1936, 3010, 30, 2027, 2592, 1912, 8, 8, 8, 887, 25, 8, 8, 8, 790, 5171, 93, 20877, 6488, 26, 1480, 16835, 3291, 9, 31, 57, 21, 1936, 365, 30, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitoring a printer === I've written a DLL that monitors our netowork printer. The printer is connected to the server via USB cable. When I print something directly from the server, it displays information about pages sent/printed properly, but when I print something from one of the client computers it only displays its IP, sent/printed is always 0. I suppose this is a shortcoming of the winspooler API, my question is, is there any way around it? Here's the code, for what its worth: typedef struct PRINTERMONITOR_API tagPRINTJOBINFO { // name of the machine that printed char *machineName; // name of the document char *document; // total pages actually *printed* DWORD totalPages; // number of pages sent to the printer DWORD printed; // private: state of the printJob BOOL done; } printJobInfo_t; //------------------------------------------------------- // Function called when the print job event finishes //------------------------------------------------------- typedef void (*Callback)(printJobInfo_t *); //------------------------------------------------------- // Printer Monitor class //------------------------------------------------------- class PrinterMonitor { private: //------------------------------------------------------- // Handle to the printer. //------------------------------------------------------- HANDLE m_hPrinter; //------------------------------------------------------- // Handle to the notify object being set when print event // occurs. //------------------------------------------------------- HANDLE m_hNotify; //------------------------------------------------------- // Handle of our worker thread. //------------------------------------------------------- HANDLE m_hThread; //------------------------------------------------------- // Holds PRINTER_CHANGE_XXX_XXX information about current // event. //------------------------------------------------------- DWORD m_dwChanged; //------------------------------------------------------- // ID of the worker thread. //------------------------------------------------------- DWORD m_dwThreadId; //------------------------------------------------------- // Name of the printer. //------------------------------------------------------- char *m_pszPrinterName; //------------------------------------------------------- // Printer event snooping options. //------------------------------------------------------- PRINTER_NOTIFY_OPTIONS *m_pOptions; //------------------------------------------------------- // Output of the event function. //------------------------------------------------------- PRINTER_NOTIFY_INFO *m_pOutPut; //------------------------------------------------------- // Shall we go away? //------------------------------------------------------- BOOL m_fExit; public: //------------------------------------------------------- // Callback function called when the event fires. //------------------------------------------------------- Callback m_fpCallback; //------------------------------------------------------- // Constructor // - name of the printer // - callback function //------------------------------------------------------- PrinterMonitor(char *printerName, Callback callback) { memset(this, 0, sizeof(PrinterMonitor)); // zero me m_fpCallback = callback; m_pszPrinterName = new char[strlen(printerName)]; strcpy(m_pszPrinterName, printerName); m_pOptions = new PRINTER_NOTIFY_OPTIONS; m_hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PrinterMonitor::StartMonitoring, this, CREATE_SUSPENDED, &m_dwThreadId); } //------------------------------------------------------- // Stop the worker thread and delete some shit //------------------------------------------------------- ~PrinterMonitor() { StopMonitor(); delete(m_pOptions); delete[](m_pszPrinterName); } //------------------------------------------------------- // Run the monitor in a seperate thread //------------------------------------------------------- void RunMonitor() { ResumeThread(m_hThread); } //------------------------------------------------------- // Stop the monitor, noes. //------------------------------------------------------- void StopMonitor() { m_fExit = true; } //------------------------------------------------------- // Checks if this object is a valid monitor //------------------------------------------------------- BOOL CheckMonitor() { if(OpenPrinter(this->m_pszPrinterName, &this->m_hPrinter, NULL)) { if(this->m_hPrinter != INVALID_HANDLE_VALUE) { ClosePrinter(this->m_hPrinter); return true; } } return false; } private: //------------------------------------------------------- // The worker thread proc //------------------------------------------------------- static void WINAPI StartMonitoring(void *thisPtr) { PrinterMonitor* pThis = reinterpret_cast<PrinterMonitor*>(thisPtr); if(OpenPrinter(pThis->m_pszPrinterName, &pThis->m_hPrinter, NULL)) { WORD wJobFields[5]; wJobFields[0] = JOB_NOTIFY_FIELD_STATUS; wJobFields[1] = JOB_NOTIFY_FIELD_MACHINE_NAME; wJobFields[2] = JOB_NOTIFY_FIELD_TOTAL_PAGES; wJobFields[3] = JOB_NOTIFY_FIELD_PAGES_PRINTED; wJobFields[4] = JOB_NOTIFY_FIELD_DOCUMENT; PRINTER_NOTIFY_OPTIONS_TYPE rOptions[1]; rOptions[0].Type = JOB_NOTIFY_TYPE; rOptions[0].pFields = &wJobFields[0]; rOptions[0].Count = 5; pThis->m_pOptions->Count = 1; pThis->m_pOptions->Version = 2; pThis->m_pOptions->pTypes = rOptions; pThis->m_pOptions->Flags = PRINTER_NOTIFY_OPTIONS_REFRESH; if((pThis->m_hNotify = FindFirstPrinterChangeNotification(pThis->m_hPrinter, 0, 0, pThis->m_pOptions)) != INVALID_HANDLE_VALUE) { while(pThis->m_hNotify != INVALID_HANDLE_VALUE && !pThis->m_fExit) { if(WaitForSingleObject(pThis->m_hNotify, 10) == WAIT_OBJECT_0) { FindNextPrinterChangeNotification(pThis->m_hNotify, &pThis->m_dwChanged, (LPVOID)pThis->m_pOptions, (LPVOID*)&pThis->m_pOutPut); printJobInfo_t info = {0}; for (unsigned int i=0; i < pThis->m_pOutPut->Count; i++) { PRINTER_NOTIFY_INFO_DATA data = pThis->m_pOutPut->aData[i]; if(data.Type == JOB_NOTIFY_TYPE) { switch(data.Field { case JOB_NOTIFY_FIELD_PAGES_PRINTED: { info.printed = data.NotifyData.adwData[0]; } break; case JOB_NOTIFY_FIELD_MACHINE_NAME: { LPSTR name = (LPSTR) data.NotifyData.Data.pBuf; unsigned int length = strlen(name); info.machineName = new char[length]; strcpy(info.machineName, name); } break; case JOB_NOTIFY_FIELD_TOTAL_PAGES: { info.totalPages = data.NotifyData.adwData[0]; } break; case JOB_NOTIFY_FIELD_DOCUMENT: { LPSTR document = (LPSTR) data.NotifyData.Data.pBuf; unsigned int length = strlen(document); info.document = new char[length]; strcpy(info.document, document); } break; case JOB_NOTIFY_FIELD_STATUS: { if(data.NotifyData.adwData[0] & JOB_STATUS_PRINTED) { info.done = true; } } break; } } } if(info.done) { pThis->m_fpCallback(&info); delete[](info.document); delete[](info.machineName); } } } if(pThis->m_hPrinter != INVALID_HANDLE_VALUE) ClosePrinter(pThis->m_hPrinter); if(pThis->m_hNotify != INVALID_HANDLE_VALUE) FindClosePrinterChangeNotification(pThis->m_hNotify); } } } };
2
[ 2, 8984, 21, 12925, 800, 3726, 3726, 31, 22, 195, 642, 21, 13, 43, 211, 30, 18521, 318, 4275, 111, 3783, 12925, 9, 14, 12925, 25, 2587, 20, 14, 8128, 1197, 182, 220, 4454, 9, 76, 31, 4793, 301, 1703, 37, 14, 8128, 15, 32, 9412...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
configurable web site security === i have an asp.net 2.0 [no ajax...yet] web site that will be deployed in compiled form on multiple customer sites. Typically the site will be intranet only. Some customers trust all of their people and don't care about limiting access to the site and/or page functions, others trust no one and want only certain people and/or groups to be able to view certain pages, click certain buttons, et al. i could do some home-grown solution, possibly drive the access permissions from a database table, but before i go down that road i thought i'd ask in SO: what is a good solution for this situation? preferably one that can be controlled completedly in the web.config file and/or database, since rebuilding the web site is not possible (for the client, and i don't want to have to do it for them over and over). Active Directory integration would be a bonus, but not a requirement (unless that's just easier). as a starting point, i'm thinking that each page/function point in the site be given an identity and associated with a permission group...
0
[ 2, 1065, 13549, 579, 2741, 689, 1221, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 172, 9, 387, 636, 251, 20624, 9, 9, 9, 16480, 500, 2741, 689, 30, 129, 44, 6698, 19, 9316, 505, 27, 1886, 7705, 3259, 9, 2442, 14, 689, 129, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the deal with all the different Perl6 equality operators? (==, ===, eq, eqv, ~~, =:=, ...) === Perl 6 seems to have an explosion of equality operators. What is =:=? What's the difference between "leg" and "cmp"? Or "eqv" and ===? Does anyone have a good summary?
0
[ 2, 98, 22, 18, 14, 1183, 29, 65, 14, 421, 416, 255, 379, 10337, 9475, 60, 13, 5, 3726, 3726, 15, 800, 3726, 3726, 15, 13, 18550, 15, 13, 18550, 710, 15, 13, 1, 15, 800, 45, 3726, 15, 13, 9, 9, 9, 6, 800, 3726, 3726, 416, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP/NET MVC: Test Controllers w/Sessions? Mocking? === I read some of the answers on here re: testing views and controllers, and mocking, but I still can't figure out how to test an ASP.NET MVC controller that reads and sets Session values (or any other context based variables.) How do I provide a (Session) context for my test methods? Is mocking the answer? Anybody have examples? Basically, I'd like to fake a session before I call the controller method and have the controller use that session. Any ideas?
0
[ 2, 28, 306, 118, 2328, 307, 8990, 45, 1289, 9919, 18, 619, 118, 7202, 18, 5757, 60, 18446, 60, 800, 3726, 3726, 31, 1302, 109, 16, 14, 6709, 27, 235, 302, 45, 4431, 4146, 17, 9919, 18, 15, 17, 18446, 15, 47, 31, 174, 92, 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...
Specific help with Xcode Project Template that is not doing substitution in file contents === We are trying to make a project template, but the documentation on this is spotty or non-existent. Doing some reverse-engineering on some template files, we have come up with the following. However, it doen't actually work! First of all, we have figured out that project templates should be installed inside: ~/Library/Application Support/Developer/Shared/Xcode/Project Templates We have made project and installed it here, and this part works - we see this show up in the "User Templates" section of the Xcode "New Project" chooser. The project folder contains the following files. As you can see, I want the file names to be subsituted (that part works) but as you will see, I also want the contents of the files to be substituted; this doesn't happen. * \_\_\_PROJECTNAME\_\_\_.xcodeproj * \_\_\_PROJECTNAMEASIDENTIFIER\_\_\_\_Prefix.pch * \_\_\_PROJECTNAMEASIDENTIFIER\_\_\_.icns * \_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Delegate.h * \_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Delegate.m * \_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Template.html * Debug.xcconfig * en.lproj * Info.plist * Release.xcconfig I have put in two special files into the \_\_\_PROJECTNAME\_\_\_.xcodeproj package: * TemplateInfo.plist * TemplateIcon.icns - the icon to show up in the New Project window If I create a new project (called "Foo & Bar" as a stress test) using this template, these are the files it creates: * Debug.xcconfig * en.lproj * Foo & Bar.xcodeproj * Foo\_\_\_Bar\_Prefix.pch * Foo\_\_\_Bar.icns * Foo\_\_\_BarDelegate.h * Foo\_\_\_BarDelegate.m * Foo\_\_\_BarTemplate.html * Info.plist * Release.xcconfig So far so good! But looking in the file contents, I get things like this. Here is the contents of Foo\_\_\_BarDelegate.m: // // «PROJECTNAMEASIDENTIFIER»Delegate.m // «PROJECTNAME» // // Created by «FULLUSERNAME» on «DATE». // Copyright «ORGANIZATIONNAME» «YEAR» . All rights reserved. // #import "«PROJECTNAMEASIDENTIFIER»Delegate.h" @implementation «PROJECTNAMEASIDENTIFIER»Delegate @end The apparent issue is that somehow I'm doing the TemplateInfo.plist wrong. But then again, notice how not only are my special items not being substitued, but the standard items don't even get replaced! So maybe it's a deeper issue. But with a problematic TemplateInfo.plist being my best hypothesis, I present a couple of variations I have tried. Neither work. Either: { FilesToMacroExpand = ( "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_\_Prefix.pch", "en.lproj/InfoPlist.strings", "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_\_Prefix.pch", "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_.icns", "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Delegate.h", "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Delegate.m", "\_\_\_PROJECTNAMEASIDENTIFIER\_\_\_Template.html", "Info.plist" ); Description = "This project builds a cocoa-based \"element\" plugin for Sandvox."; } or: { FilesToMacroExpand = ( "«PROJECTNAMEASIDENTIFIER»\_Prefix.pch", "en.lproj/InfoPlist.strings", "«PROJECTNAMEASIDENTIFIER»\_Prefix.pch", "«PROJECTNAMEASIDENTIFIER».icns", "«PROJECTNAMEASIDENTIFIER»Delegate.h", "«PROJECTNAMEASIDENTIFIER»Delegate.m", "«PROJECTNAMEASIDENTIFIER»Template.html", "Info.plist" ); Description = "This project builds a cocoa-based \"element\" plugin for Sandvox."; } So, does anybody see what I'm doing wrong here?
0
[ 2, 1903, 448, 29, 993, 9375, 669, 22894, 30, 25, 52, 845, 19910, 19, 3893, 8478, 800, 3726, 3726, 95, 50, 749, 20, 233, 21, 669, 22894, 15, 47, 14, 13945, 27, 48, 25, 1999, 1084, 54, 538, 8, 20788, 9, 845, 109, 7006, 8, 19153,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
With a STL map/set/multiset/multimap, How to find the first value greater than or equal to the search key? === Suppose I have a set of values, stored in a std::set: {1, 2, 6, 8} and I have a search key, say, 3. I want to put 3 into a function and get the first value greater than or equal to 3, in this case I would want to get 6. The find() function provided in map/set/multimap/and set will, of course, return the end iterator for this case. Is there a similar function to find that would return 6 in this case?
0
[ 2, 29, 21, 354, 255, 2942, 118, 3554, 118, 21531, 3554, 118, 21531, 15022, 15, 184, 20, 477, 14, 64, 1923, 1894, 119, 54, 2747, 20, 14, 2122, 1246, 60, 800, 3726, 3726, 5787, 31, 57, 21, 309, 16, 4070, 15, 8214, 19, 21, 354, 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...
Determine SQL Server Database Size === SQL Server 2005/2008 Express edition has the limitation of 4 GB per database. As far as I known the database engine considers data only, thus excluding log files, unused space, and index size. Getting the length of the MDF file should not give the correct database size in terms of SQL Server limitation. My question is how to get the database size?
0
[ 2, 3746, 4444, 255, 8128, 6018, 1072, 800, 3726, 3726, 4444, 255, 8128, 812, 118, 2753, 2999, 1322, 63, 14, 24943, 16, 268, 14857, 416, 6018, 9, 28, 463, 28, 31, 167, 14, 6018, 1406, 11944, 1054, 104, 15, 1086, 13, 14938, 6738, 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
auto_ptr or shared_ptr equivalent in managed C++/CLI classes === In C++/CLI , you can use native types in a managed class by it is not allowed to hold a member of a native class in a managed class : you need to use pointers in that case. Here is an example : class NativeClass { .... }; public ref class ManagedClass { private: NativeClass mNativeClass; // Not allowed ! NativeClass * mNativeClass; // OK auto_ptr<NativeClass> mNativeClass; //Not allowed ! boost::shared_ptr<NativeClass> mNativeClass; //Not allowed ! }; Does anyone know of an equivalent of shared_ptr in the C++/CLI world?
0
[ 2, 3108, 1, 4417, 139, 54, 2592, 1, 4417, 139, 4602, 19, 1471, 272, 20512, 118, 150, 1210, 2684, 800, 3726, 3726, 19, 272, 20512, 118, 150, 1210, 13, 15, 42, 92, 275, 1275, 2551, 19, 21, 1471, 718, 34, 32, 25, 52, 1159, 20, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Build a simple HTTP server in C === I need to build a simple HTTP server in C. Any guidance? Links? Samples? Thanks!
0
[ 2, 184, 20, 1895, 21, 1935, 7775, 8128, 19, 272, 800, 3726, 3726, 31, 376, 20, 1895, 21, 1935, 7775, 8128, 19, 272, 9, 186, 8193, 60, 6271, 60, 7855, 60, 3669, 187, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
PHP HTML generation - using string concatention === A question about different methods of outputting html from PHP; what are the performance differences between these: Method 1 - variable concatenation $html = ''; $html .= '<ul>'; for ($k = 1; $k < = 1000; $k++){ $html .= '<li> This is list item #'.$k.'</li>'; } $html .= '</ul>'; echo $html; Method 2 - output buffering ob_start(); echo '<ul>'; for ($k = 1; $k < = 1000; $k++){ echo '<li> This is list item #',$k,'</li>'; } echo '</ul>'; I suspect you get some performance hit from continually modifying and enlarging a variable; is that correct? Cheers!
0
[ 2, 13, 26120, 13, 15895, 2782, 13, 8, 568, 3724, 1065, 793, 1316, 3309, 800, 3726, 3726, 21, 1301, 88, 421, 3195, 16, 5196, 1203, 13, 15895, 37, 13, 26120, 73, 98, 50, 14, 956, 4921, 128, 158, 45, 2109, 137, 13, 8, 7612, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Flex : Filter a datagrid using a combobox value that is contained in a datafield === I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield. For example: the user selects a value of "New" and the datagrid displays records where the contents of the record could be "New User", "New Person", "This one is New" etc. I think that I need to use RegExp, but I cant work out how to get it to work. Thanks in advance, S...
0
[ 2, 14409, 13, 45, 11945, 21, 1054, 16375, 568, 21, 22621, 5309, 1923, 30, 25, 3437, 19, 21, 1054, 1109, 800, 3726, 3726, 31, 57, 21, 11945, 19, 21, 22621, 5309, 29, 21, 234, 16, 11399, 9, 700, 16, 25272, 14, 1054, 16375, 29, 40,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Question involving Java generics === Why do I get compiler errors with this Java code? <pre><code>1 public List&lt;? extends Foo&gt; getFoos() 2 { 3 List&lt;? extends Foo&gt; foos = new ArrayList&lt;? extends Foo&gt;(); 4 foos.add(new SubFoo()); 5 return foos; 6 }</code></pre> Where 'SubFoo' is a concrete class that implements Foo, and Foo is an interface. Errors I get with this code: * On Line 3: "Cannot instantiate ArrayList&lt;? extends Foo&gt;" * On Line 4: "The method add(capture#1-of ? extends Foo) in the type List&lt;capture#1-of ? extends Foo&gt; is not applicable for the arguments (SubFoo)"
0
[ 2, 1301, 4838, 8247, 12733, 18, 800, 3726, 3726, 483, 107, 31, 164, 21486, 11908, 29, 48, 8247, 1797, 60, 13, 1, 3515, 1, 9375, 1, 165, 317, 968, 1569, 255, 38, 73, 60, 9073, 4310, 111, 1569, 263, 38, 73, 164, 4120, 759, 5, 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...
How to install PHP/CURL? === I tried to follow PHP.net curl site and even this link: http://curl.phptrack.com/forum/viewtopic.php?t=52 and try to install the CURL in my window laptop. It doesn't work.. CURL is not installed. I wonder do I need to run it on windows server... Anyone has good sites guiding me how to install CURL? thanks.
0
[ 2, 184, 20, 16146, 13, 26120, 118, 4734, 255, 60, 800, 3726, 3726, 31, 794, 20, 1740, 13, 26120, 9, 2328, 14320, 689, 17, 166, 48, 3508, 45, 7775, 6903, 4734, 255, 9, 26120, 4792, 9, 960, 118, 1106, 723, 118, 4725, 3880, 596, 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...
Rafactoring an application. === If you had to fix and stabilize a MVC application. Which functionality would you start with, the Model, Controller or View? There's problems equally through out and bad programming practices that make it hard to add functionality. The application I'm dealing with is written in PHP if it makes a difference.
0
[ 2, 13, 525, 17455, 68, 40, 3010, 9, 800, 3726, 3726, 100, 42, 41, 20, 6098, 17, 16890, 21, 307, 8990, 3010, 9, 56, 18548, 83, 42, 799, 29, 15, 14, 1061, 15, 9919, 54, 1418, 60, 80, 22, 18, 1716, 7634, 120, 70, 17, 896, 3143,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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++ SQLBindParameter === ***Here are the declarations of the variables:*** string strFirstName; string strLastName; string strAddress; string strCity; string strState; double dblSalary; string strGender; int intAge; ***...Do some "cin" statements to get data...*** retcode = SQLPrepare(StatementHandle, (SQLCHAR *)"INSERT INTO EMPLOYEE ([FirstName], [LastName], [Address], [City], [State], [Salary], [Gender],[Age]) VALUES (?,?,?,?,?,?,?,?)", SQL_NTS); retcode = SQLBindParameter(StatementHandle, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 50, 0 &strFirstName,0, NULL); retcode = SQLBindParameter(StatementHandle, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 50, 0, &strLastName,0, NULL); retcode = SQLBindParameter(StatementHandle, 3, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 30, 0, &strAddress,0, NULL); retcode = SQLBindParameter(StatementHandle, 4, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 30, 0, &strCity,0, NULL); retcode = SQLBindParameter(StatementHandle, 5, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 3, 0, &strState,0, NULL); retcode = SQLBindParameter(StatementHandle, 6, SQL_PARAM_INPUT, SQL_C_DOUBLE, SQL_DOUBLE, 0, 0, &dblSalary,0, NULL); retcode = SQLBindParameter(StatementHandle, 7, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, 2, 0, &strGender,0, NULL); retcode = SQLBindParameter(StatementHandle, 8, SQL_PARAM_INPUT, SQL_C_LONG, SQL_INTEGER, 0, 0, &intAge,0, NULL); retcode = SQLExecute(StatementHandle); ***The int and double work fine and get stored in the table...but I can't figure out how to get the strings to store...***
0
[ 2, 272, 20512, 4444, 255, 4772, 43, 6351, 7307, 800, 3726, 3726, 8980, 6836, 50, 14, 7098, 18, 16, 14, 12157, 45, 2483, 1409, 3724, 13, 9729, 3552, 7259, 73, 3724, 13, 9729, 8558, 7259, 73, 3724, 13, 9729, 27950, 73, 3724, 13, 972...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 IE 7 have any memory limitations when recieving a dynamically generated PDF? If so, does anyone have a workaround? === Our system dynamically generates a large report by converting many HTML pages into a single PDF. The resulting PDF is sent back (via the HTTP request) to the calling browser. When the report is sufficiently large (200+ pages) IE 7 intermittently chokes. The result issue is the calling PC locks up and must be rebooted. When using an alternative browser such as Mozilla Firefox (run on the same PC) executes the report, all works properly w/out any issues. Any ideas or workarounds (other than to tell the user to use Firefox)?
0
[ 2, 630, 13, 660, 453, 57, 186, 1912, 14070, 76, 13, 15110, 2443, 68, 21, 7782, 1326, 6756, 13, 11124, 60, 100, 86, 15, 630, 1276, 57, 21, 170, 10037, 60, 800, 3726, 3726, 318, 329, 7782, 1326, 7920, 18, 21, 370, 1330, 34, 19583,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a shared workspace with ASP.NET and Ajax === Here's a hypothetical situation I've been wondering about lately. Suppose I have an interactive page created in ASP.NET and Ajax that I want multiple users to be able to manipulate at the same time. What would be the best way to maintain this page's state? Especially if the page was relatively ephemeral, and did not particularly need to be stored in a database? As a concrete example, suppose I'm implementing a basic game of checkers. The server needs to maintain the state of the board at all times. The clients need to check the board's status periodically, and need to be able to transmit their changes to the board. When all the players leave, or when the game ends, the board is no longer needed and the server can dispose of it. I could store everything in a database, retrieving it when the clients ask for a board update, and saving it when the server receives an update. But that seems like a lot of extra overhead. What about static variables? Are they reliable enough/efficient enough for this job? Is there another storage mechanism I could use? Or is this so far outside the limits of what ASP.NET can do efficiently that I should be looking at an entirely different technology if I ever want to implement this?
0
[ 2, 2936, 21, 2592, 170, 5582, 29, 28, 306, 9, 2328, 17, 20624, 800, 3726, 3726, 235, 22, 18, 21, 26161, 1858, 31, 22, 195, 74, 5712, 88, 10434, 9, 5787, 31, 57, 40, 9194, 2478, 679, 19, 28, 306, 9, 2328, 17, 20624, 30, 31, 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...
What is the best html-to-pdf library/utility/application I can use to automate html-to-pdf conversions? === I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any perl interfaces would be a bonus.
0
[ 2, 98, 25, 14, 246, 13, 15895, 8, 262, 8, 11124, 1248, 118, 14255, 856, 118, 2552, 20669, 31, 92, 275, 20, 3108, 5281, 13, 15895, 8, 262, 8, 11124, 6263, 18, 60, 800, 3726, 3726, 31, 22, 195, 74, 568, 13, 15895, 13799, 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...
synchronized development environments === new to visual studio and programing in general. I am starting to work on a asp.net project. At home I have a computer running Windows 2008 Server with SQL 2008 and Visual 2008 running. I want to install the same thing on my laptop win2008/sql2008/vs2008 so I can take it with me on the go. What I want to know is how would I synchronized the two, where projects would syncrhonized to my laptop and I can take it on the go, then when i return and connect it to my network, it synchronizes back to my main workstation so the two are always the same?
0
[ 2, 27202, 522, 11246, 800, 3726, 3726, 78, 20, 3458, 1120, 17, 625, 68, 19, 297, 9, 31, 589, 1422, 20, 170, 27, 21, 28, 306, 9, 2328, 669, 9, 35, 213, 31, 57, 21, 1428, 946, 1936, 570, 8128, 29, 4444, 255, 570, 17, 3458, 570...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you are abstracting your database records and datasets into objects, what does your object model look like? === I'm asking all of you who aren't using a library for this, but are constructing your own objects for managing data flowing to and from your database tables. Do I have a recordset object? one object per row of data? Both? Neither? Any suggestions or experiences welcome. Please don't tell me to use an ORM or other such toolkit. It's overkill for my project and besides, that's not the question now, is it?
0
[ 2, 76, 42, 50, 8502, 68, 154, 6018, 742, 17, 1054, 3554, 18, 77, 3916, 15, 98, 630, 154, 3095, 1061, 361, 101, 60, 800, 3726, 3726, 31, 22, 79, 3379, 65, 16, 42, 72, 4847, 22, 38, 568, 21, 1248, 26, 48, 15, 47, 50, 18660, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unit testing error conditions - EINTR === In short, how do you unit test an error condition such as EINTR on a system call. One particular example I'm working on, which could be a case all by itself, is whether it's necessary to call fclose again when it returns EOF with (errno==EINTR). The behavior depends on the implementation of fclose: // Given an open FILE *fp while (fclose(fp)==EOF && errno==EINTR) { errno = 0; } This call can be unsafe if fp freed when EINTR occurs. How can I test the error handling for when (errno==EINTR)?
0
[ 2, 1237, 4431, 7019, 2039, 13, 8, 10235, 6384, 800, 3726, 3726, 19, 502, 15, 184, 107, 42, 1237, 1289, 40, 7019, 2874, 145, 28, 10235, 6384, 27, 21, 329, 645, 9, 53, 1498, 823, 31, 22, 79, 638, 27, 15, 56, 110, 44, 21, 610, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between nchar(10) and varchar(10) in MSSQL? === What is the difference between nchar and varchar in MSSQL? What does nvarchar mean? Cheers!
0
[ 2, 98, 25, 14, 2841, 128, 13, 103, 5433, 5, 1036, 6, 17, 4033, 5433, 5, 1036, 6, 19, 4235, 18, 22402, 60, 800, 3726, 3726, 98, 25, 14, 2841, 128, 13, 103, 5433, 17, 4033, 5433, 19, 4235, 18, 22402, 60, 98, 630, 13, 103, 3311...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What are some good ways to stay mentally alert during the work day? === I've been a programmer for about 5 years now, and one of the things I've noticed is that some days I might code all day and feel fine, and some days I might have that "I've been staring at the screen too long" feeling by 11:30. What are some ways you've come up with to make sure that you stay fresh and mentally alert during the 8-hour workday? How do you know when you need to take a break? What do you do to take a break in a way that won't attract unwanted managerial attention?
2
[ 2, 98, 50, 109, 254, 2847, 20, 1179, 11367, 7863, 112, 14, 170, 208, 60, 800, 3726, 3726, 31, 22, 195, 74, 21, 17968, 26, 88, 331, 122, 130, 15, 17, 53, 16, 14, 564, 31, 22, 195, 2711, 25, 30, 109, 509, 31, 530, 1797, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I enumerate all classes in a Java package? === I need to enumerate all classes in a package and add them to a List. The non-dynamic version for a single class goes like this: List allClasses = new ArrayList(); allClasses.add(String.class); How can I do this dynamically to add all classes in a package and all its subpackages?
0
[ 2, 184, 92, 31, 26940, 62, 65, 2684, 19, 21, 8247, 6030, 60, 800, 3726, 3726, 31, 376, 20, 26940, 62, 65, 2684, 19, 21, 6030, 17, 3547, 105, 20, 21, 968, 9, 14, 538, 8, 20985, 615, 26, 21, 345, 718, 1852, 101, 48, 45, 968, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
well designed .Net sample application === Does anyone know a good open source sample ASP.Net 3.5 enterprise app which encompasses as many good 'patterns and practices' as possible while relying on latest tools and technologies? Ah, it should not be too complex either. And well documented if possible.
0
[ 2, 134, 1006, 13, 9, 2328, 5717, 3010, 800, 3726, 3726, 630, 1276, 143, 21, 254, 368, 1267, 5717, 28, 306, 9, 2328, 203, 9, 264, 6002, 4865, 56, 15551, 28, 151, 254, 13, 22, 5972, 8766, 18, 17, 5242, 22, 28, 938, 133, 21760, 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...