unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
SQL sub-query problem with grouping, average === In MS Transact SQL, let's say I have a table (Orders) like this: Order Date Order Total Customer # 09/30/2008 8.00 1 09/15/2008 6.00 1 09/01/2008 9.50 1 09/01/2008 1.45 2 09/16/2008 4.50 2 09/17/2008 8.75 3 09/18/2008 2.50 3 What I need out of this is: for each customer the average order amount for the most recent two orders. So for Customer #1, I should get 7.00 (and not 7.83). I've been staring at this for an hour now (inside a larger problem, which I've solved) and I think my brain has frozen. Help for a simple problem?
0
[ 2, 4444, 255, 972, 8, 8190, 93, 1448, 29, 19288, 15, 862, 800, 3726, 3726, 19, 4235, 2982, 5183, 4444, 255, 15, 408, 22, 18, 395, 31, 57, 21, 859, 13, 5, 7861, 18, 6, 101, 48, 45, 389, 1231, 389, 600, 7705, 6926, 13, 2545, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I determine the intersection point of two lines in GDI+? === I'm using .NET to make an application with a drawing surface, similar to Visio. The UI connects two objects on the screen with Graphics.DrawLine. This simple implementation works fine, but as the surface gets more complex, I need a more robust way to represent the objects. One of these robust requirements is determining the intersection point for two lines so I can indicate separation via some kind of graphic. So my question is, can anyone suggest a way to do this? Perhaps with a different technique (maybe GraphViz) or an algorithm?
0
[ 2, 184, 107, 31, 3746, 14, 5351, 454, 16, 81, 1560, 19, 489, 1115, 2430, 60, 800, 3726, 3726, 31, 22, 79, 568, 13, 9, 2328, 20, 233, 40, 3010, 29, 21, 3533, 1490, 15, 835, 20, 9060, 1963, 9, 14, 13, 5661, 8534, 81, 3916, 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...
Programmatically access a Microsoft Project (MPP) file from C# === What are my options for programmatically accessing a Microsoft Project file? What are the pros and cons of each approach? I will basically need to import all data from the file into another data structure. Using the Office Interop assembies is low on the preference scale.
0
[ 2, 625, 6732, 1326, 1381, 21, 7099, 669, 13, 5, 79, 3421, 6, 3893, 37, 272, 5910, 800, 3726, 3726, 98, 50, 51, 6368, 26, 625, 6732, 1326, 1381, 68, 21, 7099, 669, 3893, 60, 98, 50, 14, 895, 18, 17, 11608, 16, 206, 2141, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best method of logging to txt file? === What would be the best method of recording to a log(.txt) from a console program? My program loops multiple times always outputting different data based on what the user wants, so im searching for the best, most efficient way to achieve this. i know i can always reopen a stream and then close it, but everytime i do that it would be writing just one line, then next time around (seconds later) the program reloops and needs tor write again, imo that doesnt seem very resourse friendly. using c#; using .net2.2; :)
0
[ 2, 246, 2109, 16, 13, 13919, 20, 20225, 38, 3893, 60, 800, 3726, 3726, 98, 83, 44, 14, 246, 2109, 16, 1576, 20, 21, 6738, 5, 9, 38, 396, 38, 6, 37, 21, 8650, 625, 60, 51, 625, 19661, 1886, 436, 550, 5196, 1203, 421, 1054, 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...
Create MSBuild custom task to modify C# code *before* compile === I want to create a custom MSBuild task that changes my .cs files before they are compiled by csc.exe (but, of course, that doesn't modify them in place - I don't want actual source files touched). I am aware of PostSharp and other AOP frameworks for .NET and they are not an option for this particular project, plus I'd like to learn how to do this. What precisely do I have to do to get this to work? Thanks Richard
0
[ 2, 1600, 4235, 29361, 5816, 3005, 20, 17579, 272, 5910, 1797, 1637, 12750, 2483, 26561, 800, 3726, 3726, 31, 259, 20, 1600, 21, 5816, 4235, 29361, 3005, 30, 1693, 51, 13, 9, 6824, 6488, 115, 59, 50, 9316, 34, 272, 3862, 9, 1706, 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...
MPI or Sockets === I'm working on a loosely coupled cluster for some data processing. The network code and processing code is in place, but we are evaluating different methodologies in our approach. Right now, as we should be, we are I/O bound on performance issues, and we're trying to decrease that bottleneck. Obviously, faster switches like Infiniband would be awesome, but we can't afford the luxury of just throwing out what we have and getting new equipment. My question posed is this. All traditional and serious HPC applications done on clusters is typically implemented with message passing versus sending over sockets directly. What are the performance benefits to this? Should we see a speedup if we switched from sockets?
0
[ 2, 4628, 49, 54, 18482, 18, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 13166, 13420, 7460, 26, 109, 1054, 5511, 9, 14, 982, 1797, 17, 5511, 1797, 25, 19, 209, 15, 47, 95, 50, 26764, 421, 2109, 13331, 18, 19, 318, 2141, 9, 193, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you get the "real" HttpContext within an ASP.NET MVC application? === Unfortunately, I need to do this. I'm using ELMAH for my error log. Before I route to my error.aspx view, I have to grab the default ELMAH error log so I can log the exception. You used to be able to use Elmah.ErrorLog.Default However, this is now marked as obsolete. The compiler directs me to use the method Elmah.ErrorLog.GetDefault(HttpContext context) MVC's context is of type HttpContextBase, which enables us to mock it (YAY!). How can we deal with MVC-unaware libraries that require the old style HttpContext?
0
[ 2, 184, 92, 42, 164, 14, 13, 7, 7467, 7, 7775, 1126, 11969, 363, 40, 28, 306, 9, 2328, 307, 8990, 3010, 60, 800, 3726, 3726, 6200, 15, 31, 376, 20, 107, 48, 9, 31, 22, 79, 568, 931, 12016, 26, 51, 7019, 6738, 9, 115, 31, 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...
Updating UI After Asynchronous WebMethod Calls === Greetings! I have a WebService that contains a WebMethod that does some work and returns a boolean value. The work that it does may or may not take some time, so I'd like to call it asynchronously. [WebService(Namespace = "http://tempuri.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class MyWebSvc : System.Web.Services.WebService { [WebMethod] public bool DoWork() { bool succ = false; try { // do some work, which might take a while } catch (Exception ex) { // handle succ = false; } return succ; } } This WebService exists on each server in a web farm. So to call the DoWork() method on each server, I have a class library to do so, based on a list of server URLs: static public class WebSvcsMgr { static public void DoAllWork(ICollection<string> servers) { MyWebSvc myWebSvc = new MyWebSvc(); foreach (string svr_url in servers) { myWebSvc.Url = svr_url; myWebSvc.DoWork(); } } } Finally, this is called from the Web interface in an asp:Button click event like so: WebSvcsMgr.DoAllWork(server_list); For the static DoAllWork() method called by the Web Form, I plan to make this an asynchronous call via IAsyncResult. However, I'd like to report a success/fail of the DoWork() WebMethod for each server in the farm as the results are returned. What would be the best approach to this in conjuction with an UpdatePanel? A DataGrid? Labels? And how could this be returned by the static helper class to the Web Form?
0
[ 2, 71, 43, 1880, 13, 5661, 75, 21, 16023, 1291, 2741, 5909, 1807, 43, 3029, 800, 3726, 3726, 13769, 18, 187, 31, 57, 21, 2741, 11449, 30, 1588, 21, 2741, 5909, 1807, 43, 30, 630, 109, 170, 17, 4815, 21, 9827, 413, 210, 1923, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do you need $ when accessing array and hash elements in Perl? === Since arrays and hashes can only contain scalars in Perl, why do you have to use the $ to tell the interpreter that the value is a scalar when accessing array or hash elements? In other words, assuming you have an array `@myarray` and a hash `%myhash`, why do you need to do: $x = $myarray[1]; $y = $myhash['foo']; instead of just doing : $x = myarray[1]; $y = myhash['foo']; Why are the above ambiguous? Wouldn't it be illegal Perl code if it was anything but a $ in that place? For example, aren't all of the following illegal in Perl? @var[0]; @var['key']; %var[0]; %var['key'];
0
[ 2, 483, 107, 42, 376, 5579, 76, 1381, 68, 7718, 17, 19170, 2065, 19, 416, 255, 60, 800, 3726, 3726, 179, 7718, 18, 17, 63, 438, 18, 92, 104, 3717, 28960, 18, 19, 416, 255, 15, 483, 107, 42, 57, 20, 275, 14, 5579, 20, 494, 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...
Automating Word Mailmerge not working as expected === I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up. Now the way this is supposed to work, and the way it works when we do it manually, is we have a file (the fileOut variable + ".template") which is a template for the letter. We open that template, merge it, and then save it as the filename in the fileOut variable. However, what it is doing is saving a copy of the template file to the fileout filename, instead of the output of the merge. I've searched, and I seem to be banging my head against a brick wall. templateName is the datafile that contains the merge data. Using the same files, it all works if you do it manually. Public Function processFile(ByVal templateName As String, ByVal fileOut As String) As String Dim ans As String = String.Empty errorLog = "C:\Temp\Template_error.log" If (File.Exists(templateName)) Then Try ' Create an instance of Word and make it invisible.' wrdApp = CreateObject("Word.Application") wrdApp.Visible = False ' Add a new document.' wrdDoc = wrdApp.Documents.Add(fileOut & ".template") wrdDoc.Select() Dim wrdSelection As Word.Selection Dim wrdMailMerge As Word.MailMerge wrdDoc.MailMerge.OpenDataSource(templateName) wrdSelection = wrdApp.Selection() wrdMailMerge = wrdDoc.MailMerge() With wrdMailMerge .Execute() End With wrdDoc.SaveAs(fileOut) wrdApp.Quit(False) ' Release References.' wrdSelection = Nothing wrdMailMerge = Nothing wrdDoc = Nothing wrdApp = Nothing ans = "Merged OK" Call writeToLogFile(errorLog, "This worked, written to " & fileOut) Catch ex As Exception ans = "error : exception thrown " & ex.ToString Call writeToLogFile(errorLog, ans) End Try Else ans = "error ; unable to open Template File : " & templateName If (logErrors) Then Call writeToLogFile(errorLog, "The specified source csv file does not exist. Unable " & _ "to process it. Filename provided: " & templateName) End If End If Return ans End Function
0
[ 2, 3108, 79, 1880, 833, 4216, 1263, 834, 52, 638, 28, 1727, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 29, 109, 4216, 12666, 1797, 30, 25, 2293, 20, 2213, 2516, 363, 318, 3010, 9, 31, 22, 79, 3854, 30, 48, 1797, 25, 21, 1142,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GUIDs in a C++ Linux GCC app === I've got a bunch of servers running this Linux app. I'd like for them to be able to generate a GUID with a low probability of collision. I'm sure I could just pull 128 bytes out of /dev/urandom and that would probably be fine, but is there a simple & easy way to generate a GUID that is more equivalent to the Win32 one? Specifically, one that takes into account space (well, MAC address), time, and randomness? I don't want to call off the box for it, I just want something like [CreateGuid()][1] [1]: http://msdn.microsoft.com/en-us/library/aa713311.aspx
0
[ 2, 9457, 43, 18, 19, 21, 272, 20512, 13024, 489, 3384, 4865, 800, 3726, 3726, 31, 22, 195, 330, 21, 7653, 16, 17595, 946, 48, 13024, 4865, 9, 31, 22, 43, 101, 26, 105, 20, 44, 777, 20, 7920, 21, 9457, 43, 29, 21, 708, 10177, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7-Zip (7za.dll) dotnet wrapper === I'm looking for code or a library that let's me control the 7-Zip unpacking functionality from c# code.
0
[ 2, 453, 8, 2553, 306, 13, 5, 465, 1153, 9, 43, 211, 6, 14123, 2328, 28051, 800, 3726, 3726, 31, 22, 79, 699, 26, 1797, 54, 21, 1248, 30, 408, 22, 18, 55, 569, 14, 453, 8, 2553, 306, 367, 8573, 68, 18548, 37, 272, 5910, 1797,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Managing Window Z-Order Like Photoshop CS === So I've got an application whose window behavior I would like to behave more like Photoshop CS. In Photoshop CS, the document windows always stay behind the tool windows, but are still top level windows. For MDI child windows, since the document window is actually a child, you can't move it outside of the main window. In CS, though, you can move your image to a different monitor fine, which is a big advantage over docked applications like Visual Studio, and over regular MDI applications. Anyway, here's my research so far. I've tried to intercept the WM_MOUSEACTIVATE message, and use the DeferWindowPos commands to do my own ordering of the window, and then return MA_NOACTIVATEANDEAT, but that causes the window to not be activated properly, and I believe there are other commands that "activate" a window without calling WM_MOUSEACTIVATE (like SetFocus() I think), so that method probably won't work anyway. I believe Windows' procedure for "activating" a window is 1. notify the unactivated window with the WM_NCACTIVATE and WM_ACTIVATE messages 2. move the window to the top of the z-order (sending WM_POSCHANGING, WM_POSCHANGED and repaint messages) 3. notify the newly activated window with WM_NCACTIVATE and WM_ACTIVATE messages. It seems the cleanest way to do it would be to intercept the first WM_ACTIVATE message, and somehow notify Windows that you're going to override their way of doing the z-ordering, and then use the DeferWindowPos commands, but I can't figure out how to do it that way. It seems once Windows sends the WM_ACTIVATE message, it's already going to do the reordering its own way, so any DeferWindowPos commands I use are overridden. Right now I've got a basic implementation quasy-working that makes the tool windows topmost when the app is activated, but then makes them non-topmost when it's not, but it's very quirky (it sometimes gets on top of other windows like the task manager, whereas Photoshop CS doesn't do that, so I think Photoshop somehow does it differently) and it just seems like there would be a more intuitive way of doing it. Anyway, does anyone know how Photoshop CS does it, or a better way than using topmost?
0
[ 2, 5616, 1463, 2052, 8, 7861, 101, 7064, 5347, 272, 18, 800, 3726, 3726, 86, 31, 22, 195, 330, 40, 3010, 1196, 1463, 3257, 31, 83, 101, 20, 14149, 91, 101, 7064, 5347, 272, 18, 9, 19, 7064, 5347, 272, 18, 15, 14, 4492, 1936, 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...
Modelling Related Objects === I'm designing an application which deals with two sets of data - Users and Areas. The data is read from files produced by a third party. I have a User class and an Area class, and the data is read into a Users array and an Areas array (or other appropriate memory structure, depending on the technology we go with). Both classes have a unique ID member which is read from the file, and the User class contains an array of Area IDs, giving a relationship where one user is associated with many Areas. The requirements are quite straightforward: - List of Users - List of Areas - List of Users for Specified Area - List of Areas for Specified Users My first thought was to leave the data in the two arrays, then for each of the requirements, have a seperate method which would interrogate one or both arrays as required. This would be easy to implement, but I'm not convinced it's necessarily the best way. Then I thought about having a 'Get Areas' method on the User class and a 'Get Users' member on the Area class which would be more useful if for example I'm at a stage where I have an Area object, I could find it's users by a property, but then how would a 'Get Users' method on the Area class be aware of/have access to the Users array. I've had this problem a number of times before, but never really came up with a definitive solution. Maybe I'm just making it more complicated than it actually is. Can anyone provide any tips, URLs or books that would help me with this sort of design?
0
[ 2, 23089, 1597, 3916, 800, 3726, 3726, 31, 22, 79, 15026, 40, 3010, 56, 10342, 29, 81, 3415, 16, 1054, 13, 8, 3878, 17, 924, 9, 14, 1054, 25, 1302, 37, 6488, 671, 34, 21, 422, 346, 9, 31, 57, 21, 4155, 718, 17, 40, 217, 718,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
change default collation in phpmyadmin === It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this?
0
[ 2, 753, 12838, 9470, 857, 19, 13, 26120, 915, 1283, 2160, 800, 3726, 3726, 32, 2206, 20, 55, 30, 13, 26120, 915, 1283, 2160, 20617, 7484, 34, 12838, 29, 9470, 857, 2068, 165, 1, 21777, 1, 1892, 15, 184, 31, 753, 48, 60, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Inheriting from protected classes in C+++ === Suppose I have the following declaration: class Over1 { protected: class Under1 { }; }; I know that I could do the following: class Over2 : public Over1 { protected: class Under2 : public Under1 { }; }; But is there a way to declare Under2 without Over2? Since you would have to extend Over1 to use any derivative of Under1 this may seem silly, but in this situation there might be 30 different flavors of Under. I can either: - Put them all inside Over1 : Not attractive since Over2 may only use 1 or 2 of them - Put them each in their own version of Over : Not attractive since then you will have to multiply inherit from almost the same class. - Find a way to create children of Under1 without creating children of Over1 So is this possible? Thanks.
0
[ 2, 17569, 68, 37, 3803, 2684, 19, 272, 2430, 20512, 800, 3726, 3726, 5787, 31, 57, 14, 249, 7098, 45, 718, 84, 165, 13, 1, 3803, 45, 718, 131, 165, 13, 1, 13, 1, 73, 13, 1, 73, 31, 143, 30, 31, 110, 107, 14, 249, 45, 718, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 music visualizer === So how does someone create a music visualizer? I've looked on Google but I haven't really found anything that talks about the actual programming; mostly just links to plug-ins or visualizing applications. I use iTunes but I realize that I need Xcode to program for that (I'm currently deployed in Iraq and can't download that large of a file). So right now I'm just interested in learning "the theory" behind it, like processing the frequencies and whatever else is required.
0
[ 2, 2936, 232, 3458, 11907, 800, 3726, 3726, 86, 184, 630, 737, 1600, 21, 232, 3458, 11907, 60, 31, 22, 195, 292, 27, 8144, 47, 31, 2933, 22, 38, 510, 216, 602, 30, 7837, 88, 14, 3463, 3143, 73, 1555, 114, 6271, 20, 10922, 8, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
verify email in Java === Is there any way to verify in Java code that an e-mail address is valid. By valid, I don't just mean that it's in the correct format (someone@domain.subdomain), but that's it's a real active e-mail address. I'm almost certain that there's no 100% reliable way to dot this, because such a technique would be the stuff of spammer's dreams. But perhaps there's some technique that gives some useful indication about whether an address is 'real' or not. Cheers, Don
0
[ 2, 21012, 8517, 19, 8247, 800, 3726, 3726, 25, 80, 186, 161, 20, 21012, 19, 8247, 1797, 30, 40, 13, 62, 8, 8079, 3218, 25, 7394, 9, 34, 7394, 15, 31, 221, 22, 38, 114, 884, 30, 32, 22, 18, 19, 14, 4456, 2595, 13, 5, 16251, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 alternatives are there to Google App Engine? === What alternatives are there to GAE, given that I already have a good bit of code working that I would like to keep. In other words, I'm digging python. However, my use case is more of a low number of requests, higher CPU usage type use case, and I'm worried that I may not be able to stay with App Engine forever. I have heard a lot of people talking about Amazon Web Services and other sorts of cloud providers, but I am having a hard time seeing where most of these other offerings provide the range of services (data querying, user authentication, automatic scaling) that App Engine provides. What are my options here?
0
[ 2, 98, 2676, 18, 50, 80, 20, 8144, 4865, 1406, 60, 800, 3726, 3726, 98, 2676, 18, 50, 80, 20, 13, 17721, 15, 504, 30, 31, 614, 57, 21, 254, 1142, 16, 1797, 638, 30, 31, 83, 101, 20, 643, 9, 19, 89, 715, 15, 31, 22, 79, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to round a number to n decimal prices in Java === What I'd like is a method to convert a double to a string which rounds using the half-up method. I.e. if the decimal to be rounded is a 5, it always rounds up the previous number. This is the standard method of rounding most people expect in most situations. I also would like only significant digits to be displayed. That is there should not be any trailing zeroes. I know one method of doing this is to use the String.format method: String.format("%.5g%n", 0.912385); returns: 0.91239 which is great, however it always displays numbers with 5 decimal places even if they are not significant: String.format("%.5g%n", 0.912300); returns: 0.91230 Another method is to use the DecimalFormatter: DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385); returns: 0.91238 However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this: 0.912385 -> 0.91239 0.912300 -> 0.9123 What is the best way to achieve this in Java?
0
[ 2, 184, 20, 560, 21, 234, 20, 13, 103, 26380, 7334, 19, 8247, 800, 3726, 3726, 98, 31, 22, 43, 101, 25, 21, 2109, 20, 8406, 21, 1494, 20, 21, 3724, 56, 5839, 568, 14, 519, 8, 576, 2109, 9, 31, 9, 62, 9, 100, 14, 26380, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Validation Block vs Nhibernate.Validator === I am looking for validation framework and while I am already using NHibernate I am thinking of using NHibernate.validator from contrib project however I also look at MS Validation Block which seem to be robust but i am not yet get into detail of each one yet so I wonder has anyone had step into these two frameworks and how is the experience like?
0
[ 2, 27999, 1921, 4611, 12109, 15191, 8820, 9, 18506, 43, 3457, 800, 3726, 3726, 31, 589, 699, 26, 27999, 6596, 17, 133, 31, 589, 614, 568, 12109, 15191, 8820, 31, 589, 1440, 16, 568, 12109, 15191, 8820, 9, 18506, 43, 3457, 37, 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...
How do I break up high-cpu requests on Google App Engine? === To give an example of the kind of request that I can't figure out what else to do for: The application is a [bowling score/stat tracker](http://www.bowlsk.com). When someone enters their scores in advanced mode, a number of stats are calculated, as well as their score. The data is modeled as: Game - members like name, user, reference to the bowling alley, score Frame - pinfalls for each ball, boolean lists for which pins were knocked down on each ball, information about the path of the ball (stance, target, where it actually went), the score as of that frame, etc GameStats - stores calculated statistics for the entire game, to be merged with other game stats as needed for statistics display across groups of games. An example of this information in practice can be found [here](http://www.bowlsk.com/games/view-series.html?series=13717). When a game is complete, and a frame is updated, I have to update the game, the frame, every frame after it and possibly some before it (to make sure their scores are correct), and the stats. This operation always flags the CPU monitor. Even if the game isn't complete, and statistics don't need to be calculated, the scores and such need to be updated to show the real-time progress to the user, and so these also get flagged. The average CPU time for this handler is over 7000 mcycles, and it doesn't even display a view. Most people bowl 3 to 4 games per series - if they are entering their scores realtime, at the lanes, that's about 1 request every 2 to 4 minutes, but if they write it all down and enter it later, there are 30-40 of these requests being made in a row.
0
[ 2, 184, 107, 31, 1442, 71, 183, 8, 150, 4201, 12279, 27, 8144, 4865, 1406, 60, 800, 3726, 3726, 20, 590, 40, 823, 16, 14, 825, 16, 3772, 30, 31, 92, 22, 38, 1465, 70, 98, 962, 20, 107, 26, 45, 14, 3010, 25, 21, 636, 27194, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 RFC === I think there are a lot of people out there unaware of RFC.<br> I know what they are at a logical level but can anybody give a good description for a new Developer? Also some resources on how to use and read them would be nice.
0
[ 2, 98, 25, 17492, 800, 3726, 3726, 31, 277, 80, 50, 21, 865, 16, 148, 70, 80, 12100, 16, 17492, 9, 1, 5145, 1, 31, 143, 98, 59, 50, 35, 21, 11545, 662, 47, 92, 11181, 590, 21, 254, 5318, 26, 21, 78, 10058, 60, 67, 109, 256...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Vector and Layer Data Structure === I'm working with some code that is confusing me and I'm wondering if I'm just not grokking the data structures. The data I'm working with utilizes vectors and layers. I believe a vector is just a row of data but I'm not sure. Any information you could provide or point me to about the use of these would be very helpful.
0
[ 2, 7497, 17, 5385, 1054, 1411, 800, 3726, 3726, 31, 22, 79, 638, 29, 109, 1797, 30, 25, 18084, 55, 17, 31, 22, 79, 5712, 100, 31, 22, 79, 114, 52, 3452, 197, 1581, 14, 1054, 3815, 9, 14, 1054, 31, 22, 79, 638, 29, 13151, 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...
WebBrowser Control from .Net -- How to Inject Javascript? === I've tried this: string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = browserCtrl.Document.CreateElement("script"); lblStatus.Text = scriptEl.GetType().ToString(); scriptEl.SetAttribute("type", "text/javascript"); head.AppendChild(scriptEl); scriptEl.InnerHtml = "function sayHello() { alert('hello') }"; scriptEl.InnerHtml and scriptEl.InnerText both give errors: System.NotSupportedException: Property is not supported on this type of HtmlElement. at System.Windows.Forms.HtmlElement.set_InnerHtml(String value) at SForceApp.Form1.button1_Click(Object sender, EventArgs e) in d:\jsight\installs\SForceApp\SForceApp\Form1.cs:line 31 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Is there an easy way to inject a script into the dom?
0
[ 2, 10192, 5417, 4104, 569, 37, 13, 9, 2328, 13, 8, 8, 184, 20, 20316, 8247, 8741, 60, 800, 3726, 3726, 31, 22, 195, 794, 48, 45, 3724, 78, 8741, 800, 1854, 5309, 165, 9, 11969, 73, 13, 15895, 27567, 157, 800, 16495, 4812, 6362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery Datepicker with text input that doesn't allow user input. === How do I use the JQuery Datepicker with a textbox input: $("#my_txtbox").datepicker({ // options }); that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the textbox to ignore any user input using the keyboard (copy & paste, or any other). I want to filll the textbox exclusively from the Datepicker calendar. Is this possible?
0
[ 2, 487, 8190, 93, 1231, 16855, 106, 29, 1854, 6367, 30, 1437, 22, 38, 1655, 4155, 6367, 9, 800, 3726, 3726, 184, 107, 31, 275, 14, 487, 8190, 93, 1231, 16855, 106, 29, 21, 1854, 5309, 6367, 45, 5579, 5, 7, 5910, 915, 1, 38, 39...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 convert an Illustrator file to a path for WPF === Our graphics person uses Adobe Illustrator and we'd like to use her images inside our WPF application as paths. Is there a way to do this?
0
[ 2, 184, 107, 31, 8406, 40, 13805, 3893, 20, 21, 2013, 26, 619, 7721, 800, 3726, 3726, 318, 8351, 840, 2027, 20299, 13805, 17, 95, 22, 43, 101, 20, 275, 36, 3502, 572, 318, 619, 7721, 3010, 28, 12074, 9, 25, 80, 21, 161, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
how to see the schema of a db2 table (file) === As in subject... is there a way of looking at an empty table schema without inserting any rows and issuing a SELECT?
0
[ 2, 184, 20, 196, 14, 23874, 16, 21, 13, 9007, 135, 859, 13, 5, 16877, 6, 800, 3726, 3726, 28, 19, 1550, 9, 9, 9, 25, 80, 21, 161, 16, 699, 35, 40, 2424, 859, 23874, 366, 14692, 68, 186, 11295, 17, 17502, 21, 5407, 60, 3, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the preferred way to redirect a request in Pylons without losing form data? === I'm trying to redirect/forward a Pylons request. The problem with using redirect_to is that form data gets dropped. I need to keep the POST form data intact as well as all request headers. Is there a simple way to do this?
0
[ 2, 98, 25, 14, 5981, 161, 20, 302, 14706, 21, 3772, 19, 29262, 18, 366, 2281, 505, 1054, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 302, 14706, 118, 21216, 21, 29262, 18, 3772, 9, 14, 1448, 29, 568, 302, 14706, 1, 262, 25, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wcf and Interfaces as Parameters === i have a library with some entities that share the same interface. clients and service share this assembly. now i wonder if there is a way to have this Interface-type as Parameter in my service contracts so that i can use the same method for all classes implementing the interface. the entities themselve are all decorated with datacontract-attribute and its members with datamember attributes. is it possible at all? probably with the *NetDataContractSerializer*? i know that i can do it with a base class (some abstract class e.g.) and the *knowntype*-attribute but i´d definitely prefer the Interface as identificator of the objects cause it is used widely in the client app and would ease development. thanks
0
[ 2, 11801, 410, 17, 6573, 18, 28, 12905, 800, 3726, 3726, 31, 57, 21, 1248, 29, 109, 12549, 30, 1891, 14, 205, 6573, 9, 7421, 17, 365, 1891, 48, 1475, 9, 130, 31, 2666, 100, 80, 25, 21, 161, 20, 57, 48, 6573, 8, 4474, 28, 189...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Call one method from inside another method .net C#? === I am inside of... public class bgchange : IMapServerDropDownBoxAction { void IServerAction.ServerAction(ToolbarItemInfo info) { Some code... and after "some code" I want to trigger [WebMethod] public static void DoSome() { } Which triggers some javascript. Is this possible?
0
[ 2, 645, 53, 2109, 37, 572, 226, 2109, 13, 9, 2328, 272, 5910, 60, 800, 3726, 3726, 31, 589, 572, 16, 9, 9, 9, 317, 718, 13, 19924, 16229, 13, 45, 31, 15022, 10321, 106, 12361, 2968, 5309, 8645, 13, 1, 11364, 25, 106, 2304, 864...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dropdown controls in ASP.NET 2.0 === I am using a codebehind page in ASP.NET to perform a SQL query. The query is loaded into a string, the connection is established (To Oracle), and we get it started by having the connection perform .ExecuteReader into a OleDBDataReader (We'll call it DataRead). I'll try to hammer out an example below. (Consider Drop as an ASP DropDownList control) Dim LookFor as String = "Fuzzy Bunnies" While DataRead.Read If LookFor = DataRead.Item("Kinds of Bunnies") Then 'Meets special critera, do secondary function' Drop.Items.Add(DataRead.Item("Subgroup of Bunnies")) ... End if ... End While This is the only way I know of doing a dynamic add to a DropDownList. However, each item in a DropDownList has a .text property and a .value property. How can we define the .value as being different from the .text in code?
0
[ 2, 2804, 2968, 8671, 19, 28, 306, 9, 2328, 172, 9, 387, 800, 3726, 3726, 31, 589, 568, 21, 1797, 24878, 2478, 19, 28, 306, 9, 2328, 20, 2985, 21, 4444, 255, 25597, 9, 14, 25597, 25, 8572, 77, 21, 3724, 15, 14, 2760, 25, 613, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
From objects to tables using activerecord === I'm getting some objects from an external library and I need to store those objects in a database. Is there a way to create the tables and relationships starting from the objects, or I have to dig into them and create migrations and models by hand? Thanks! Roberto
0
[ 2, 37, 3916, 20, 7484, 568, 1348, 14953, 800, 3726, 3726, 31, 22, 79, 1017, 109, 3916, 37, 40, 4886, 1248, 17, 31, 376, 20, 1718, 273, 3916, 19, 21, 6018, 9, 25, 80, 21, 161, 20, 1600, 14, 7484, 17, 5833, 1422, 37, 14, 3916, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Concatenate RTF files in PHP (REGEX) === I've got a script that takes a user uploaded RTF document and merges in some person data into the letter (name, address, etc), and does this for multiple people. I merge the letter contents, then combine that with the next merge letter contents, for all people records. Affectively I'm combining a single RTF document into itself for as many people records to which I need to merge the letter. However, I need to first remove the closing RTF markup and opening of the RTF markup of each merge or else the RTF won't render correctly. This sounds like a job for regular expressions. Essentially I need a regex that will remove the entire string: }\n\page ANYTHING \par Example, this regex would match this: crap } \page{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\f0\fs20 September 30, 2008\par more crap So I could make it just: crap \page more crap Is RegEx the best approach here?
0
[ 2, 1065, 9530, 8820, 761, 11720, 6488, 19, 13, 26120, 13, 5, 12463, 1706, 6, 800, 3726, 3726, 31, 22, 195, 330, 21, 3884, 30, 1384, 21, 4155, 23782, 761, 11720, 4492, 17, 12666, 18, 19, 109, 840, 1054, 77, 14, 1748, 13, 5, 7259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Last Modified of Folders === How does Windows determine the last modified date of a folder?
0
[ 2, 236, 5372, 16, 19294, 18, 800, 3726, 3726, 184, 630, 1936, 3746, 14, 236, 5372, 1231, 16, 21, 19294, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Subversion - is trunk really the best place for the main development? === In SVN, `trunk` is the recommended place for the main development and I use this convention for all of my projects. However, this means that **trunk is sometimes unstable, or even broken**. This happens for instance when - I commit something by mistake - When the trunk simply has to be broken because of the way SVN works. Canonical example is file renames - you must commit any file renames first and do any further modifications later; however, file rename may require code refactoring to reflect namespace or class name change so you basically need to commit a single logic operation in two steps. And the build is broken between steps 1 and 2. I can imagine there would be tools to prevent commiting something by mistake (TeamCity and delayed commits, for instance) but can you really overcome the second problem? If not, wouldn't it be better to do the "wild development" on some branch like `/branch/dev` and only merge to trunk when the build is reasonably solid?
0
[ 2, 972, 10898, 13, 8, 25, 6436, 510, 14, 246, 209, 26, 14, 407, 522, 60, 800, 3726, 3726, 19, 13, 18, 16578, 15, 13, 1, 8989, 5719, 1, 25, 14, 5773, 209, 26, 14, 407, 522, 17, 31, 275, 48, 3087, 26, 65, 16, 51, 2314, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How should I store a Guid in Oracle === I am coming from the SQL server world where we had uniqueidentifier. Is there an equivalent in oracle? This column will be frequently queried so performance is the key.
0
[ 2, 184, 378, 31, 1718, 21, 9457, 43, 19, 15759, 800, 3726, 3726, 31, 589, 880, 37, 14, 4444, 255, 8128, 126, 113, 95, 41, 2619, 13384, 16292, 9, 25, 80, 40, 4602, 19, 15759, 60, 48, 4698, 129, 44, 3086, 9386, 11942, 86, 956, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What do you use for validation against XML schema? === When I want to validate my XML docuemnts against a schema in my server-side Java, I use the built-in JRE Xerces implementation and javax.xml.validation.Schema. It works fine, but when validation fails, Xerces gives error messages that are very close to useless, for example: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'PopulatedStringType' These can take an age to diagnose and track down to the particular part of the XML document that fails validation, and all because of a poor error message. So my question is, do you use an alternative means of validating XML against Schema, that gives a more useful output on validation failure? Please not that this is server-side Java, so please don't say "use XML Spy" or similar.
0
[ 2, 98, 107, 42, 275, 26, 27999, 149, 23504, 23874, 60, 800, 3726, 3726, 76, 31, 259, 20, 7394, 1373, 51, 23504, 107, 3987, 1503, 14128, 149, 21, 23874, 19, 51, 8128, 8, 1416, 8247, 15, 31, 275, 14, 392, 8, 108, 487, 99, 993, 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...
Saving MFC Model as SQLite database === I am playing with a CAD application using MFC. I was thinking it would be nice to save the document (model) as an SQLite database. Advantages: - I avoid file format changes (SQLite takes care of that) - Free query engine - Undo stack is simplified (table name, column name, new value and so on...) Opinions?
0
[ 2, 7599, 307, 7061, 1061, 28, 4444, 10601, 6018, 800, 3726, 3726, 31, 589, 791, 29, 21, 8762, 3010, 568, 307, 7061, 9, 31, 23, 1440, 32, 83, 44, 2210, 20, 2079, 14, 4492, 13, 5, 13998, 6, 28, 40, 4444, 10601, 6018, 9, 14683, 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...
WCF is not binding to the correct IP address === We have a WCF service deployed on a Windows 2003 server that is exhibiting some problems. The configuration is using wsHttpBinding and we are specifying the IP address. The services is being hosted by a Windows Service. When we start the service up, most of the time it grabs the wrong IP address. A few times it bound to the correct address only to drop that binding and go to the other address (there are 2) bound to the NIC after processing for a short while. It is currently using port 80 (we've configured IIS to bind to only 1 address via httpcfg) although we have tried it using different ports with the same results. When the Windows Service starts hosting the WCF service, the properties show that it is being bound to the correct address; however, tcpview shows that it is indeed listening on the incorrect address. Here is the portion of the config that sets up tehe baseAddress. The one that gets bound to ends up being .4 instead of .9 <services> <service name="Service.MyService" behaviorConfiguration="serviceBehavior"> <host> <baseAddresses> <add baseAddress="http://xx.xx.xx.9:80/" /> </baseAddresses> </host> <endpoint address="MyService" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IMyService" contract="Service.IMyService" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> Is there some other configuration that needs to be set? Is there a tool that can help track down where this is getting bound to the wrong address? Thanks in advance
0
[ 2, 11801, 410, 25, 52, 8728, 20, 14, 4456, 15735, 3218, 800, 3726, 3726, 95, 57, 21, 11801, 410, 365, 6698, 27, 21, 1936, 973, 8128, 30, 25, 25581, 109, 1716, 9, 14, 8091, 25, 568, 619, 18, 21127, 22260, 17, 95, 50, 19077, 68, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[] brackets in sql statments === What do the brackets do in a sql statem3nt like... If i have the statement: <pre>insert into table1 ([columnname1], columnname2) values (val1, val2)</pre> also what does it do if table name in brackets?
0
[ 2, 20767, 21971, 19, 4444, 255, 12819, 6601, 800, 3726, 3726, 98, 107, 14, 21971, 107, 19, 21, 4444, 255, 146, 79, 240, 2877, 101, 9, 9, 9, 100, 31, 57, 14, 3331, 45, 13, 1, 3515, 1, 108, 18, 6767, 77, 859, 165, 13, 5, 2558,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How should I split large and bloated classes into smaller ones? === I have a large 'Manager' class which I think is doing too much but I am unsure on how to divide it into more logical units. Generally speaking the class basically consists of the following methods: <pre> class FooBarManager { GetFooEntities(); AddFooEntity(..); UpdateFooEntity(..); SubmitFooEntity(..); GetFooTypes(); GetBarEntities(); } </pre> The Manager class is part of my business logic and constains an instance of another "Manager" class on the data access level which contains all CRUD operations for all entities. I have different entities coming from the data access layer and therefore have a converter in place outside of the Manager class to convert data entities to business entities. The reason for the manager classes was that I wanted to be able to mock out each of the "Manager" classes when I do unittesting. Each of the manager classes is now over 1000 loc and contain 40-50 methods each. I consider them to be quite bloated and find it awkward to put all of the data access logic into a single class. What should I be doing differently? How would I go about splitting them and is there any specific design-pattern should I be using?
0
[ 2, 184, 378, 31, 2132, 370, 17, 13, 7091, 1669, 2684, 77, 2012, 53, 18, 60, 800, 3726, 3726, 31, 57, 21, 370, 13, 22, 22256, 22, 718, 56, 31, 277, 25, 845, 266, 212, 47, 31, 589, 13815, 27, 184, 20, 8918, 32, 77, 91, 11545, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ManualResetEvent and AutoResetEvent in .net? === I have read the docs on this and I think I understand. Auto resets when the code passes through event.WaitOne() but manual does not. Is this correct?
0
[ 2, 98, 25, 14, 2841, 128, 5132, 99, 18, 11258, 6645, 17, 3108, 99, 18, 11258, 6645, 19, 13, 9, 2328, 60, 800, 3726, 3726, 31, 57, 1302, 14, 9765, 18, 27, 48, 17, 31, 277, 31, 1369, 9, 3108, 23422, 18, 76, 14, 1797, 3789, 120...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
How do I add a multline REG_SZ string to the registry from the command line? === As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file. The entry is for a third party app so the format is fixed. The entry takes the form of a REG_SZ string but needs to contain newlines ie. 0xOA characters as separators. I've hit a few problems. First attempt used regedit to load a generated .reg file. This failed as it did not seem to like either either long strings or strings with newlines. I discovered that export works fine import fails. I was able to test export as the third party app adds similar entries directly through the win32 api. Second attempt used the command REG ADD but I can't find anyway to add the newline charcters everything I try just ends up with a literal string being added. Any ideas?
0
[ 2, 184, 107, 31, 3547, 21, 6633, 38, 1143, 7953, 1, 6649, 3724, 20, 14, 18269, 37, 14, 1202, 293, 60, 800, 3726, 3726, 28, 141, 16, 21, 1895, 18161, 27, 21, 1936, 1940, 31, 376, 20, 3547, 21, 18269, 2792, 17, 31, 22, 43, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 would you NOT want to use memcached in a Ruby on Rails app? === Assuming a MySQL datastore, when would you NOT want to use memcached in a Ruby on Rails app?
0
[ 2, 76, 83, 42, 52, 259, 20, 275, 55, 79, 793, 6261, 19, 21, 10811, 27, 2240, 18, 4865, 60, 800, 3726, 3726, 11704, 21, 51, 18, 22402, 1054, 16828, 15, 76, 83, 42, 52, 259, 20, 275, 55, 79, 793, 6261, 19, 21, 10811, 27, 2240,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Printing leading 0's in C? === I'm trying to find a good way to print leading 0's, such as 01001 for a zipcode. While the number would be stored as 1001, what is a good way to do it? I thought of using either case statements/if then to figure out how many digits the number is and then convert it to an char array with extra 0's for printing but I can't help but think there may be a way to do this with the printf format syntax that is eluding me.
0
[ 2, 7312, 1005, 713, 22, 18, 19, 272, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 477, 21, 254, 161, 20, 4793, 1005, 713, 22, 18, 15, 145, 28, 13, 3026, 18951, 26, 21, 12133, 9375, 9, 133, 14, 234, 83, 44, 8214, 28, 808, 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...
Why is my javascript function sometimes "not defined"? === Problem: I call my javascript function, and _sometimes_ I get the error 'myFunction is not defined'. But it _is_ defined. For example. I'll occasionally get 'copyArray is not defined' even in this example: function copyArray( pa ) { var la = []; for (var i=0; i < pa.length; i++) la.push( pa[i] ); return la; } Function.prototype.bind = function( po ) { var __method = this; var __args = []; // sometimes errors -- in practice I inline the function as a workaround __args = copyArray( arguments ); return function() { /* bind logic omitted for brevity */ } } As you can see, copyArray is defined _right there_, so this can't be about the order in which script files load. I've been getting this in situations that are harder to work around, where the calling function is located in another file that *should* be loaded after the called function. But this was the simplest case I could present, and appears to be the same problem. It doesn't happen 100% of the time, so I do suspect some kind of load-timing-related problem. But I have no idea what.
0
[ 2, 483, 25, 51, 8247, 8741, 1990, 1030, 13, 7, 1270, 2811, 7, 60, 800, 3726, 3726, 1448, 45, 31, 645, 51, 8247, 8741, 1990, 15, 17, 13, 1, 9310, 1, 31, 164, 14, 7019, 13, 22, 915, 22359, 25, 52, 2811, 22, 9, 47, 32, 13, 1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to visualize/enumerate items stored in ASP.NET session backed by SQL Server? === I'm looking for a good way to visualize ASP.NET session state data stored in SQL server, preferably without creating a throwaway .aspx page. Is there a good way to get a list of the keys (and serialized data, if possible) directly from SQL server?
0
[ 2, 246, 161, 20, 3458, 2952, 118, 219, 9472, 5487, 3755, 8214, 19, 28, 306, 9, 2328, 3723, 6334, 34, 4444, 255, 8128, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 161, 20, 3458, 2952, 28, 306, 9, 2328, 3723, 146, 1054, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php + unixODBC + DB2 + DESCRIBE = token not valid? === Code I'm trying to run: $query = "DESCRIBE TABLE TABLENAME"; $result = odbc_exec($h, $query); The result: PHP Warning: odbc_exec(): SQL error: [unixODBC][IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0104 - Token TABLENAME was not valid. Valid tokens: INTO., SQL state 37000 in SQLExecDirect in ... There were no other problems with SELECT, INSERT, UPDATE or DELETE queries on the same connection. Syntax error?
0
[ 2, 13, 26120, 2754, 22540, 5648, 7229, 2754, 13, 9007, 135, 2754, 4996, 800, 20, 2853, 52, 7394, 60, 800, 3726, 3726, 1797, 31, 22, 79, 749, 20, 485, 45, 5579, 8190, 93, 800, 13, 7, 546, 12543, 859, 859, 7259, 7, 73, 5579, 29955...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 see TFS file history with labels? === We currently are using both Visual Source Safe and Team Foundation Server at work (VSS for old projects, TFS for current or new projects). We have always used Labels in source control for each build. In VSS if you chose to see a file history you could include labels. In TFS I cannot find an option to include the lables in the history window. Since one of the most common questions that I get asked by support or management is 'What version did we fix/add/remove/change xxxx?', I have always relied on our build labels showing up in the history. Can I get Labels to show up in a file history?
0
[ 2, 92, 31, 196, 13, 11720, 18, 3893, 447, 29, 13173, 60, 800, 3726, 3726, 95, 871, 50, 568, 156, 3458, 1267, 1834, 17, 173, 1304, 8128, 35, 170, 13, 5, 710, 18, 18, 26, 315, 2314, 15, 13, 11720, 18, 26, 866, 54, 78, 2314, 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 do I reference the calling dom element in a jquery ajax success function? === I'm trying to modify the class of an element if an ajax call based on that element is successful <script type='text/javascript'> $("#a.toggle").click(function(e){ $.ajax({ url: '/changeItem.php', dataType: 'json', type: 'POST', success: function(data,text){ if(data.error=='') { if($(this).hasClass('class1')) { $(this).removeClass('class1'); $(this).addClass('class2'); } else if($(this).hasClass('class2')) { $(this).removeClass('class2'); $(this).addClass('class1'); } } else(alert(data.error)); } }); return false; }); </script> <a class="toggle class1" title='toggle-this'>Item</a> My understanding of the problem is that in the success function _this_ references the ajax object parameters, NOT the calling dom element like it does within other places of the click function. So, how do I reference the calling dom element and check / add / remove classes?
0
[ 2, 184, 107, 31, 2801, 14, 2555, 11859, 4520, 19, 21, 487, 8190, 93, 20624, 1280, 1990, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 17579, 14, 718, 16, 40, 4520, 100, 40, 20624, 645, 432, 27, 30, 4520, 25, 1300, 13, 1, 8741, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What causes Visual Studio 2008 SP1 to crash when switch to Design View of a WPF application === After developing a WPF application without Source Control, I decided to add the solution to TFS. After doing so whenever I opened the main window.xaml file in Design View Visual Studio would disappear and the following event would be logged in the Application Event log: >.NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A035E00) (80131506) > > For more information, see Help and > Support Center at > http://go.microsoft.com/fwlink/events.asp.
0
[ 2, 98, 4047, 3458, 1120, 570, 3782, 165, 20, 4597, 76, 5521, 20, 704, 1418, 16, 21, 619, 7721, 3010, 800, 3726, 3726, 75, 3561, 21, 619, 7721, 3010, 366, 1267, 569, 15, 31, 868, 20, 3547, 14, 4295, 20, 13, 11720, 18, 9, 75, 84...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 SQL syntax case sensitive? === Is SQL case sensitive. I've used MySQL and SQL Server which both seem to be case in-sensitive. Is this always the case? Does the standard define case-sensitivity?
0
[ 2, 25, 4444, 255, 22649, 610, 7830, 60, 800, 3726, 3726, 25, 4444, 255, 610, 7830, 9, 31, 22, 195, 147, 51, 18, 22402, 17, 4444, 255, 8128, 56, 156, 2260, 20, 44, 610, 19, 8, 19435, 9, 25, 48, 550, 14, 610, 60, 630, 14, 1236...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
GLIBC: debugging memory leaks: how to interpret output of mtrace() === I’m trying to debug a memory leak problem. I’m using [mtrace()](http://www.gnu.org/software/libc/manual/html_node/Tracing-malloc.html#Tracing-malloc) to get a malloc/free/realloc trace. I’ve ran my prog and have now a huge log file. So far so good. But I have problems interpreting the file. Look at these lines: @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x1502570 0x68 @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x1502620 0x30 @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x2aaab43a1700 0xa80 @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x1501460 0xa64 The strange about this is that one call (same return address) is responsible for 4 allocations. Even stranger: @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x2aaab43a1700 0xa2c … @ /usr/java/ibm-java2-x86_64-50/jre/bin/libj9prt23.so:[0x2b270a384a34] + 0x2aaab43a1700 0xa80 Between those two lines the block 0x2aaab43a1700 is never being freed. Does anyone know how to explain this? How could one call result in 4 allocations? And how could malloc return an address which was already allocated previously?
0
[ 2, 13, 6441, 7229, 45, 121, 16254, 2762, 1912, 11724, 18, 45, 184, 20, 11584, 5196, 16, 8651, 7367, 5, 6, 800, 3726, 3726, 31, 1, 79, 749, 20, 121, 16254, 21, 1912, 11724, 1448, 9, 31, 1, 79, 568, 636, 79, 38, 7367, 5, 6, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python GUI Application redistribution === I need to develop a small-medium sized desktop GUI application, preferably with Python as a language of choice because of time constraints. What GUI library choices do I have which allow me to redistribute my application standalone, assuming that the users don't have a working Python installation and obviously don't have the GUI libraries I'm using either? Also, how would I go about packaging everything up in binaries of *reasonable* size for each target OS? (my main targets are Windows and Mac OS X) *Addition:* I've been looking at WxPython, but I've found plenty of horror stories of packaging it with cx_freeze and getting 30mb+ binaries, and no real advice on how to *actually* do the packaging and how trust-worthy it is.
0
[ 2, 20059, 9457, 3010, 26768, 800, 3726, 3726, 31, 376, 20, 2803, 21, 284, 8, 28451, 13, 6560, 17404, 9457, 3010, 15, 6369, 4801, 29, 20059, 28, 21, 816, 16, 1837, 185, 16, 85, 16747, 9, 98, 9457, 1248, 10978, 107, 31, 57, 56, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Viewing a MOSS 2007 page as another user would see it - without logging in as that user === In Moss 2007 you have the ability to set the target audience for each individual web part within a page. Is there a way to preview how the page will look to another user without logging in as that user? What I am looking for is a way for someone with full control/design permissions on a site to be able to preview how the site will be displayed to another user. Any suggestions? I have a few test accounts that our IS department uses to preview pages, however we do not allow non-IS departamental staff to use those accounts. Those staff members only have access to their one account. So, if a user makes changes the target audience on a web part on one of their pages, right now they have no way to preview how the page will look to someone else other than asking someone else to login & watching over their shoulder. I can't give out the account information for the test accounts, nor can I create new test accounts. Thanks!
0
[ 2, 11244, 21, 8188, 624, 2478, 28, 226, 4155, 83, 196, 32, 13, 8, 366, 13, 13919, 19, 28, 30, 4155, 800, 3726, 3726, 19, 8188, 624, 42, 57, 14, 2165, 20, 309, 14, 2935, 2663, 26, 206, 1359, 2741, 141, 363, 21, 2478, 9, 25, 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...
Encapsulating an algorithm into a class === I'm wondering how (un)common it is to encapsulate an algorithm into a class? More concretely, instead of having a number of separate functions that forward common parameters between each other: void f(int common1, int param1, int *out1); void g(int common1, int common2, int param1, int *out2) { f(common1, param1, ..); } to encapsulate common parameters into a class and do all of the work in the constructor: struct Algo { int common1; int common2; Algo(int common1, int common2, int param) { // do most of the work } void f(int param1, int *out1); void g(int param1, int *out2); }; It seems very practical not having to forward common parameters and intermediate results through function arguments.. But I haven't seen this "pattern" being widely used.. What are the possible downsides?
0
[ 2, 1957, 4666, 18, 10038, 40, 9083, 77, 21, 718, 800, 3726, 3726, 31, 22, 79, 5712, 184, 13, 5, 1020, 6, 17130, 32, 25, 20, 1957, 4666, 18, 12383, 40, 9083, 77, 21, 718, 60, 91, 4105, 102, 15, 700, 16, 452, 21, 234, 16, 1725...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 an instance of a nested Java class in Coldfusion. === I’m trying to create an instance of: java.awt.geom.Point2D.Double in coldfusion. http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/Point2D.html Point2D.Double is a nested class inside of the abstract class Point2D. I have tried to instantiate the class using: <cfset PointClass = createObject("java", "java.awt.geom.Point2D.Double")> This fails because Coldfusion cannot find the class. And <cfset PointClass = createObject("java", "java.awt.geom.Point2D")> which does not work because Point2D is an abstract class and there is not a public constructor on which you can call PointClass.init(x,y). Right now, I’ve resorted to making my own Point class that wraps the Point2D.Double class so that I can instantiate it in Coldfusion. I don’t think this is ideal and am looking for ideas about how to directly create a Point2D.Double class in Coldfusion. I'm also using Coldfusion 8.
0
[ 2, 2936, 40, 4851, 16, 21, 5618, 69, 8247, 718, 19, 1191, 9818, 9, 800, 3726, 3726, 31, 1, 79, 749, 20, 1600, 40, 4851, 16, 45, 8247, 9, 3885, 38, 9, 834, 2636, 9, 3132, 135, 43, 9, 14368, 19, 1191, 9818, 9, 7775, 6903, 1004...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Teaching a mainframe COBOL programmer Java? === I’m trying to help someone learn Java who’s only programming experience is COBOL on the mainframe. I was wondering if anyone knew any good resources for object oriented concepts. I learned how to program with C++ so just understand the theory behind basic OOP. I’m more concerned about a way to get the basic concepts across, such as encapsulation and inheritance rather then Java syntax. I think it’d be better to teach the concepts of OOP then a language rather then trying to cram both a new language and paradigm in at the same time. Does anyone have any resources or ideas that could help this person learn OOP followed by Java?
0
[ 2, 2540, 21, 407, 8361, 326, 6966, 17968, 8247, 60, 800, 3726, 3726, 31, 1, 79, 749, 20, 448, 737, 2484, 8247, 72, 1, 18, 104, 3143, 1496, 25, 326, 6966, 27, 14, 407, 8361, 9, 31, 23, 5712, 100, 1276, 404, 186, 254, 2566, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 resizeable command prompts for Windows? === For some reason the Windows command prompt is "special" in that you have to go to a properties dialog to resize it horizontally rather than just dragging the corner of the window like every other app. Unsurprisingly this feature made it into P-P-P-Powershell as well -- is there any way around this via command prompt replacement or Windows hackery?
0
[ 2, 50, 80, 186, 302, 10454, 579, 1202, 11443, 13531, 26, 1936, 60, 800, 3726, 3726, 26, 109, 1215, 14, 1936, 1202, 11443, 4417, 25, 13, 7, 11118, 7, 19, 30, 42, 57, 20, 162, 20, 21, 3704, 28223, 20, 302, 10454, 32, 25658, 864, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 copy data records between two instances of an SQLServer database === I need to copy some records from our SQLServer 2005 test server to our live server. It's a flat lookup table, so no foreign keys or other referential integrity to worry about. I could key-in the records again on the live server, but this is tiresome. I could export the test server records and table data in its entirety into an SQL script and run that, but I don't want to overwrite the records present on the live system, only add to them. How can I select just the records I want and get them transferred or otherwise into the live server? We don't have Sharepoint, which I understand would allow me to copy them directly between the two instances.
0
[ 2, 184, 92, 31, 4344, 1054, 742, 128, 81, 13946, 16, 40, 4444, 255, 10321, 106, 6018, 800, 3726, 3726, 31, 376, 20, 4344, 109, 742, 37, 318, 4444, 255, 10321, 106, 812, 1289, 8128, 20, 318, 515, 8128, 9, 32, 22, 18, 21, 1844, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get the scroll position / range from a wx.TextCtrl control in wxPython === I have a little logging app (written in wxPython) that receives data from a bit of kit we're developing, and I want to display the text in a scrolling window. As it stands I'm using a wx.TextCtrl for the text display, but I'm having some issues with the scrolling behaviour. Basically, I'd like it so that if the scrollbar is at the bottom of the window (i.e. the end of the incoming data), adding more data should scroll the view onwards. If, however the view has been scrolled up a little (i.e. the user is looking at something interesting like an error message), the app should just add the text on the end without scrolling any more. I've got two problems at the moment: 1. I can't work out how to retrieve the current scroll position (calls to GetScrollPos() don't seem to work - they just return 0). 2. I can't work out how to retrieve the current range of the scroll bar (calls to GetScrollRange() just return 1). I've googled a bit and there seem to be a few hints that suggest GetScrollPos and GetScrollRange won't work for a wx.TextCtrl? Has anyone else had any experience in this area? Is there a nice easy way to solve the problem or am I going to have to roll my own wx.TextCtrl?
0
[ 2, 184, 107, 31, 164, 14, 12159, 649, 13, 118, 978, 37, 21, 619, 396, 9, 11969, 4812, 6362, 569, 19, 619, 396, 6448, 11570, 800, 3726, 3726, 31, 57, 21, 265, 13, 13919, 4865, 13, 5, 6390, 19, 619, 396, 6448, 11570, 6, 30, 8359...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generic type args which specificy the extending class? === I want to have a class which implements an interface, which specifies the specific subclass as a parameter. public abstract Task implements TaskStatus<Task> { TaskStatus<T> listener; protected complete() { // ugly, unsafe cast callback.complete((T) this); } } public interface TaskStatus<T> { public void complete(T task); } But instead of just task, or <? extends Task>, I want to guarantee the type-arg used is that of the specific class extending this one. So the best I've come up with is: public abstract Task<T extends Task> implements TaskStatus<T> { } You'd extend that by writing: public class MyTask extends Task<MyTask> { } But this would also be valid: public class MyTask extends Task<SomeOtherTask> { } And the invocation of callback will blow up with ClassCastException. So, is this approach just wrong and broken, or is there a right way to do this I've somehow missed?
0
[ 2, 12733, 1001, 13, 10663, 18, 56, 1903, 93, 14, 8176, 718, 60, 800, 3726, 3726, 31, 259, 20, 57, 21, 718, 56, 8713, 18, 40, 6573, 15, 56, 27669, 14, 1903, 972, 1898, 28, 21, 18906, 9, 317, 8502, 3005, 8713, 18, 8674, 38, 8796...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Respecting XP themes when designing WinForms UI === How do you deal with the different XP themes when designing a WinForms UI? Do you avoid hard coded color values or just accept that your UI will not look good on non standard themes? For instance, I have a light blue gradient panel that looks good against the standard control background color but would clash with other custom themes. What's a good approach to take?
0
[ 2, 2873, 68, 23045, 6876, 76, 15026, 628, 4190, 18, 13, 5661, 800, 3726, 3726, 184, 107, 42, 1183, 29, 14, 421, 23045, 6876, 76, 15026, 21, 628, 4190, 18, 13, 5661, 60, 107, 42, 2658, 552, 13, 22254, 1665, 4070, 54, 114, 3440, 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...
Passing in a text to a javascript function that may have a single quote. === I have a link that I dynamically create which looks something like the following: <a onclick="Edit('value from a text column here')" href="javascript:void(null);">Edit</a> with the Edit function then taking the passed in value and putting it into a Yahoo Rich Text Editor. This works well except for when there is a single quote in the text being passed. The obvious problem being that the link then looks something like: <a onclick="Edit('I'm a jelly donut')" href="javascript:void(null);">Edit</a> Any suggestions on what I can do? I'd rather not stray too far from the structure I am currently using because it is something of a standard (and maybe the standard sucks, but that's another question altogether).
0
[ 2, 2848, 19, 21, 1854, 20, 21, 8247, 8741, 1990, 30, 123, 57, 21, 345, 16371, 9, 800, 3726, 3726, 31, 57, 21, 3508, 30, 31, 7782, 1326, 1600, 56, 1879, 301, 101, 14, 249, 45, 13, 1, 58, 27, 150, 10129, 3726, 7, 69, 242, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to show article link and sub-feed link in an RSS feed? === I'm working on some RSS feeds for a custom task system we have. The main feed will show a list of tasks assigned to the current user. The link attribute for each task returned points to the web page for that task. However, tasks themselves have an RSS feed for updates, and I want to be able to provide a link for that RSS feed with the main feed as well. How can I do both?
0
[ 2, 184, 20, 298, 2002, 3508, 17, 972, 8, 20954, 3508, 19, 40, 13, 1224, 18, 4063, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 109, 13, 1224, 18, 17058, 26, 21, 5816, 3005, 329, 95, 57, 9, 14, 407, 4063, 129, 298, 21, 968, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why won't Django auto-escape my <script> tags? === My Django app has a Person table, which contains the following text in a field named "details": > &lt;script&gt;alert('Hello');&lt;/script&gt; When I call PersonForm.details in my template, the page renders the &lt;script&gt; accordingly (a.k.a., an alert with the word "Hello" is displayed). I'm confused by this behavior because I always thought [Django 1.0 autoescaped][1] template content by default. Any idea what may be going on here? [1]: http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs
0
[ 2, 483, 230, 22, 38, 3857, 14541, 3108, 8, 62, 13109, 51, 13, 1, 8741, 1, 3383, 18, 60, 800, 3726, 3726, 51, 3857, 14541, 4865, 63, 21, 840, 859, 15, 56, 1588, 14, 249, 1854, 19, 21, 575, 377, 13, 7, 546, 8682, 18, 7, 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...
.NET equivalent to Java thread groups? === I'm trying to monitor the states of a group of threads in a Microsoft.NET application written in C#. I'd like to be able to also monitor any child threads spawned by the original threads. In Java, you can assign threads to a thread group, and their children will also belong to the group. Is there an equivalent in .NET? I briefly looked at ExecutionContext and LogicalCallContext, but I can't see how to find all the threads that are in a context. Raymond Chen has an article about a [Win32 API method][1] for enumerating threads, but I hope I don't have to go that low. [1]: http://blogs.msdn.com/oldnewthing/archive/2006/02/23/537856.aspx
0
[ 2, 13, 9, 2328, 4602, 20, 8247, 9322, 1170, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 7626, 14, 202, 16, 21, 214, 16, 20396, 19, 21, 7099, 9, 2328, 3010, 642, 19, 272, 5910, 9, 31, 22, 43, 101, 20, 44, 777, 20, 67, 7626, 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...
In a java regex, how can I get a character class e.g. [a-z] to match a - minus sign? === Pattern pattern = Pattern.compile("^[a-z]+$"); String string = "abc-def"; assertTrue( pattern.matcher(string).matches() ); // obviously fails Is it possible to have the character class match a "-" ?
0
[ 2, 19, 21, 8247, 7953, 1706, 15, 184, 92, 31, 164, 21, 925, 718, 13, 62, 9, 263, 9, 636, 58, 8, 380, 500, 20, 730, 21, 13, 8, 13, 15495, 1676, 60, 800, 3726, 3726, 3732, 3732, 800, 3732, 9, 11103, 3599, 5, 7, 1, 2558, 58, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to turn on FastParse in SSIS (SQL Server Integration Services) === The book that I purchased to help with my SSIS understanding seems to have glossed over this, and I wanted to know exactly what is the method to turn on FastParse in SSIS?
0
[ 2, 184, 20, 805, 27, 1512, 3574, 870, 19, 13, 18, 4557, 13, 5, 18, 22402, 8128, 8078, 687, 6, 800, 3726, 3726, 14, 360, 30, 31, 2432, 20, 448, 29, 51, 13, 18, 4557, 3260, 2206, 20, 57, 13, 12456, 69, 84, 48, 15, 17, 31, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring-MVC Problem using @Controller on controller implementing an interface === I'm using spring 2.5 and annotations to configure my spring-mvc web context. Unfortunately, I am unable to get the following to work. I'm not sure if this is a bug (seems like it) or if there is a basic misunderstanding on how the annotations and interface implementation subclassing works. For example, @Controller @RequestMapping("url-mapping-here") public class Foo { @RequestMapping(method=RequestMethod.GET) public void showForm() { ... } @RequestMapping(method=RequestMethod.POST) public String processForm() { ... } } works fine. When the context starts up, the urls this handler deals with are discovered, and everything works great. This however does not: @Controller @RequestMapping("url-mapping-here") public class Foo implements Bar { @RequestMapping(method=RequestMethod.GET) public void showForm() { ... } @RequestMapping(method=RequestMethod.POST) public String processForm() { ... } } When I try to pull up the url, I get the following nasty stack trace: javax.servlet.ServletException: No adapter for handler [com.shaneleopard.web.controller.RegistrationController@e973e3]: Does your handler implement a supported interface like Controller? org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1091) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) However, if I change Bar to be an abstract superclass and have Foo extend it, then it works again. @Controller @RequestMapping("url-mapping-here") public class Foo extends Bar { @RequestMapping(method=RequestMethod.GET) public void showForm() { ... } @RequestMapping(method=RequestMethod.POST) public String processForm() { ... } } This seems like a bug. The @Controller annotation should be sufficient to mark this as a controller, and I should be able to implement one or more interfaces in my controller without having to do anything else. Any ideas?
0
[ 2, 1573, 8, 79, 8990, 1448, 568, 13, 1, 12898, 1252, 27, 9919, 17333, 40, 6573, 800, 3726, 3726, 31, 22, 79, 568, 1573, 172, 9, 264, 17, 40, 1270, 7504, 20, 1065, 15951, 51, 1573, 8, 79, 8990, 2741, 4141, 9, 6200, 15, 31, 589,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 check for an empty string in Javascript? === I saw this [thread][1], but I didn't see a Javascript specific example. Is there a simple string.Empty in Javascript, or is it just checking for "" ? [1]: http://stackoverflow.com/questions/10230/checking-for-string-contents-string-length-vs-empty-string
0
[ 2, 98, 25, 14, 246, 161, 20, 2631, 26, 40, 2424, 3724, 19, 8247, 8741, 60, 800, 3726, 3726, 31, 441, 48, 636, 96, 10647, 500, 2558, 165, 500, 15, 47, 31, 223, 22, 38, 196, 21, 8247, 8741, 1903, 823, 9, 25, 80, 21, 1935, 3724...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
gSoap override namespaces === I generated the stubs and proxy classes through soapcpp2 from multiple wsdls all at once. So all the namespace bindings are in a single nsmap file. Now the problem is all the namespace bindings are being send with all the method calls I make. The http post packet is unusually large and ugly. Is there anyway i can programatically override the namespace binding ?
0
[ 2, 489, 656, 2552, 84, 11891, 204, 5582, 18, 800, 3726, 3726, 31, 6756, 14, 21354, 18, 17, 27188, 2684, 120, 6447, 150, 3421, 135, 37, 1886, 619, 18, 8643, 18, 65, 35, 382, 9, 86, 65, 14, 204, 5582, 8728, 18, 50, 19, 21, 345, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 filter a report object when saving through FileDialog in MS Access === I am attempting to save an rtf file using FileDialog and would like to filter using a where clause. This is what I have: Set dlgSave = FileDialog(msoFileDialogSaveAs) With dlgSave .Title = "Provide the place to save this file" .ButtonName = "Save As..." .InitialFileName = Me.cmbPickAReportToPrint.Value & "-" & Format(Date, "mmddyy") & ".rtf" .InitialView = msoFileDialogViewDetails If .Show Then DoCmd.OutputTo acOutputReport, Me.cmbPickAReportToPrint.Value, acFormatRTF, .SelectedItems(1) End If End With Any ideas as to how I could add the where clause without otherwise changing the report?
0
[ 2, 184, 20, 11945, 21, 1330, 3095, 76, 7599, 120, 5263, 549, 5567, 19, 4235, 1381, 800, 3726, 3726, 31, 589, 6314, 20, 2079, 40, 761, 11720, 3893, 568, 5263, 549, 5567, 17, 83, 101, 20, 11945, 568, 21, 113, 9040, 9, 48, 25, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using the DOS "start" command with parameters passed to the started program === I have a Virtual Machine in Virtual PC 2007. To start it from the desktop, I have the following command in a batch file: "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC console. That's annoying. So I changed my command to use the START command, instead: start "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc JSTYONS-DELPHI -launch But it chokes on the parameters passed into Virtual PC. "START /?" indicates that parameters do indeed go in that location. Has anyone used START to launch a program with multiple command-line arguments?
0
[ 2, 568, 14, 107, 18, 13, 7, 13680, 7, 1202, 29, 12905, 1100, 20, 14, 373, 625, 800, 3726, 3726, 31, 57, 21, 6599, 1940, 19, 6599, 5168, 624, 9, 20, 799, 32, 37, 14, 17404, 15, 31, 57, 14, 249, 1202, 19, 21, 13064, 3893, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do my files need dos2unix? only in eclipse though === When I open a file in eclipse it shows with the improper line spacing showing an extra line break between every line. When I open the file with notepad or wordpad it doesn't show these extra line breaks that only eclipse shows. How do I get eclipse to read these files like notepad and wordpad without those line breaks? -edit: I don't have this problem with all files but only a select few where I have made local changes > uploaded them to our sun station > then pulled those files back to my local workstation for future modifications.
0
[ 2, 483, 107, 51, 6488, 376, 107, 18, 135, 1020, 4028, 60, 104, 19, 11652, 362, 800, 3726, 3726, 76, 31, 368, 21, 3893, 19, 11652, 32, 1285, 29, 14, 22243, 293, 29177, 3187, 40, 2230, 293, 1442, 128, 352, 293, 9, 76, 31, 368, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the formula for alpha blending for a number of pixels? === I have a number of RGBA pixels, each of them has an alpha component. So I have a list of pixels: (_p0 p1 p2 p3 p4 ... pn_) where p_0_ is the front pixel and p_n_ is the farthest (at the back). The last (or any) pixel is not necessary opaque, so the resulting blended pixel can be somehow transparent also. I'm blending from the beginning of the list to the end, not vice-versa (yes, it is raytracing). So if the result at any moment becomes opaque enough I can stop with correct enough result. I'll apply the blending algorithm in this way: ((((_p0_ @ _p1_) @ _p2_) @ _p3_) ... ) Can anyone suggest me a correct blending formula not only for R, G and B, but for A component also?
0
[ 2, 98, 25, 14, 3729, 26, 5705, 25359, 26, 21, 234, 16, 18146, 18, 60, 800, 3726, 3726, 31, 57, 21, 234, 16, 13, 8911, 969, 18146, 18, 15, 206, 16, 105, 63, 40, 5705, 5912, 9, 86, 31, 57, 21, 968, 16, 18146, 18, 45, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mute Windows Volume using C# === Anyone know how to programmatically mute the Windows Volume using C#?
0
[ 2, 20562, 1936, 2310, 568, 272, 5910, 800, 3726, 3726, 1276, 143, 184, 20, 625, 6732, 1326, 20562, 14, 1936, 2310, 568, 272, 5910, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What's in your .emacs? === I've switched computers a few times recently, and somewhere along the way I lost my .emacs. I'm trying to build it up again, but while I'm at it, I thought I'd pick up other good configurations that other people use. So, if you use Emacs, what's in <i>your</i> .emacs? Mine is pretty barren right now, containing only: 1. Global font-lock-mode! `(global-font-lock-mode 1)` 2. My personal preferences with respect to indentation, tabs, and spaces. 3. Use cperl-mode instead of perl-mode. 4. A shortcut for compilation. What do you think is useful?
0
[ 2, 98, 22, 18, 19, 154, 13, 9, 62, 6893, 18, 60, 800, 3726, 3726, 31, 22, 195, 6667, 7774, 21, 310, 436, 1989, 15, 17, 3493, 303, 14, 161, 31, 529, 51, 13, 9, 62, 6893, 18, 9, 31, 22, 79, 749, 20, 1895, 32, 71, 188, 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...
I'm looking for a good data center to colocate servers to, any recommendations? === I need to propose a solution to a potential client who wants a good picture of the costs that would be incurred to implement the project, the only problem, I've never done any colocation before. Any Ideas?
2
[ 2, 31, 22, 79, 699, 26, 21, 254, 1054, 459, 20, 13, 12805, 9530, 17595, 20, 15, 186, 12121, 60, 800, 3726, 3726, 31, 376, 20, 17873, 21, 4295, 20, 21, 2222, 6819, 72, 2846, 21, 254, 2151, 16, 14, 4227, 30, 83, 44, 25238, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Custom Compiler Warnings === When using the ObsoleteAtribute in .Net it gives you compiler warnings telling you that the object/method/property is obsolete and somthing else should be used. I'm currently working on a project that requires a lot of refactoring an ex-employees code. I want to write a custom attribute that I can use to mark methods or properties that will generate compiler warnings that give messages that I write. Something like this [MyAttribute("This code sux and should be looked at")] public sub DoEverything(){} I want this to generate a compiler warning that says, "This code sux and should be looked at"
0
[ 2, 5816, 21486, 3590, 18, 800, 3726, 3726, 76, 568, 14, 18562, 58, 14755, 19, 13, 9, 2328, 32, 2352, 42, 21486, 3590, 18, 2497, 42, 30, 14, 3095, 118, 5909, 1807, 43, 118, 10890, 106, 1084, 25, 18562, 17, 86, 79, 96, 68, 962, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# Code puzzle === Without running this code, what Foo method will be ran: class A { public void Foo( int n ) { Console.WriteLine( "A::Foo" ); } } class B : A { /* note that A::Foo and B::Foo are not related at all */ public void Foo( double n ) { Console.WriteLine( "B::Foo" ); } } static void Main( string[] args ) { B b = new B(); /* which Foo is chosen? */ b.Foo( 5 ); } What method? and why? No cheating by running the code. I found this puzzle on the web, and I like it and I think I'm going to use it as an interview question...Opinions? EDIT: Url I found it at: http://netpl.blogspot.com/2008/06/c-puzzle-no8-beginner.html
0
[ 2, 272, 5910, 1797, 9164, 800, 3726, 3726, 366, 946, 48, 1797, 15, 98, 4310, 111, 2109, 129, 44, 717, 45, 718, 21, 13, 1, 317, 11364, 4310, 111, 5, 19, 38, 13, 103, 13, 6, 13, 1, 8650, 9, 23716, 1143, 5, 13, 7, 58, 45, 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...
Got .PNG file. Want embeddded icon resource displayed as icon on form title bar. === This was an interview question. Given Visual Studio 2008 and an icon saved as a .PNG file, they required the image as an embedded resource and to be used as the icon within the title bar of a form. I'm looking for what would have been the model answer to this question, Both (working!) code and any Visual Studio tricks. (Model answer is one that should get me the job if I meet it next time around.) Specifically I don't know how to load the image once it is an embedded resource nor how to get it as the icon for the title bar. As a part solution, ignoring the embedded bit, I copied the resource to the ouput directory and tried the following:- public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Icon = new Icon("Resources\\IconImage.png"); } } This failed with the error "Argument 'picture' must be a picture that can be used as a Icon." I presuming that the .PNG file actually needed to be a .ICO, but I couldn't see how to make the conversion. Is this presumption correct or is there a different issue?
0
[ 2, 330, 13, 9, 306, 2723, 3893, 9, 259, 11911, 69, 43, 7424, 9801, 6577, 6115, 28, 9801, 27, 505, 581, 748, 9, 800, 3726, 3726, 48, 23, 40, 2421, 1301, 9, 504, 3458, 1120, 570, 17, 40, 9801, 4377, 28, 21, 13, 9, 306, 2723, 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...
Typical pitfalls of cross-browser compatibility === What are the most common browser compatibility issues across the major desktop browsers? No dups please. Up-vote problems you've run into. I'm hoping for the list to self-sort. "IE sux" is not a pitfall, but a call for down-vote.
0
[ 2, 3874, 4175, 5660, 18, 16, 919, 8, 25699, 4104, 13, 21618, 800, 3726, 3726, 98, 50, 14, 127, 757, 16495, 13, 21618, 1549, 464, 14, 394, 17404, 16495, 18, 60, 90, 17938, 18, 2247, 9, 71, 8, 28195, 1716, 42, 22, 195, 485, 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...
Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? === In many C/C++ macros I'm seeing the code of the macro wrapped in what seems like a meaningless `do while` loop. Here are examples. #define FOO(X) do { f(X); g(X); } while (0) #define FOO(X) if (1) { f(X); g(X); } else I can't see what the `do while` is doing. Why not just write this without it? #define FOO(X) f(X); g(X)
0
[ 2, 483, 50, 80, 1030, 27095, 107, 118, 10144, 17, 100, 118, 6798, 62, 9015, 19, 272, 118, 150, 20512, 9069, 18, 60, 800, 3726, 3726, 19, 151, 272, 118, 150, 20512, 9069, 18, 31, 22, 79, 2078, 14, 1797, 16, 14, 9069, 3684, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Changing embedded google videos src === Im trying to recreate the functionality on google video where you can access certain parts of a video by putting #1h1m1m in the url So i have an embedded google video and links to the right that i want to link to certain times in that video. I can do this with a page refresh but im trying ot do it via javascript so i don't have to. I can't seem to get the src of an embed element via javascript for whatever reason (Im not too good with javascript) Thanks
0
[ 2, 4226, 12138, 8144, 6610, 13, 18, 5453, 800, 3726, 3726, 797, 749, 20, 21119, 14, 18548, 27, 8144, 763, 113, 42, 92, 1381, 1200, 1341, 16, 21, 763, 34, 3873, 4253, 252, 165, 79, 165, 79, 19, 14, 287, 6362, 86, 31, 57, 40, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
home proxy server === My end goal is to have a report showing all the top level domains that were visited the previous day from all the computers at my home. The report would also be able to show which pages were visited, which local IP address went there. I'd also like to track incoming and outgoing bandwidth used. I don't want to install an application on each computer: ideally I would have a proxy server or something that all the connections would go through. I can't have this slow down the network - it can't affect my XBox Live ping time! ;-) I would prefer free as well, but I'm willing to put money into this if necessary. The existing computers are Windows (XP & Vista), but I have no problem installing a *nix box as a router/proxy whatever. I have spare hardware to commit to this. Recommendations? Squid? ISA Server? Something else?
2
[ 2, 213, 27188, 8128, 800, 3726, 3726, 51, 241, 1195, 25, 20, 57, 21, 1330, 3187, 65, 14, 371, 662, 15544, 30, 46, 3120, 14, 1158, 208, 37, 65, 14, 7774, 35, 51, 213, 9, 14, 1330, 83, 67, 44, 777, 20, 298, 56, 4434, 46, 3120,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Detect virtualized OS from an application? === I need to detect whether my application is running within a virtualized OS instance or not. I've found <A HREF="http://www.codeproject.com/KB/system/VmDetect.aspx">an article</A> with some useful information on the topic. The same article appears in multiple places, I'm unsure of the original source. <A HREF="http://www.vmware.com/">VMware</A> implements a particular invalid x86 instruction to return information about itself, while <A HREF="http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx">VirtualPC</A> uses a magic number and I/O port with an IN instruction. This is workable, but appears to be undocumented behavior in both cases. I suppose a future release of VMWare or VirtualPC might change the mechanism. Is there a better way? Is there a supported mechanism for either product? Similarly, is there a way to detect <A HREF="http://www.xen.org/">Xen</A> or <A HREF="http://www.virtualbox.org/">VirtualBox</A>? I'm not concerned about cases where the platform is deliberately trying to hide itself. For example, honeypots use virtualization but sometimes obscure the mechanisms that malware would use to detect it. I don't care that my app would think it is not virtualized in these honeypots, I'm just looking for a "best effort" solution. The application is mostly Java, though I'm expecting to use native code plus JNI for this particular function. Windows XP/Vista support is most important, though the mechanisms described in the referenced article are generic features of x86 and don't rely on any particular OS facility.
0
[ 2, 9092, 6599, 1333, 13, 759, 37, 40, 3010, 60, 800, 3726, 3726, 31, 376, 20, 9092, 1472, 51, 3010, 25, 946, 363, 21, 6599, 1333, 13, 759, 4851, 54, 52, 9, 31, 22, 195, 216, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 6483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to use Soundex (or other SQL functions) in LinqToSql? === Guess the title says it all. I'm refactoring some code currently implemented in stored procedures to use LinqToSql (for use in training). Is it possible to use SQL functions in a linqToSql Query?
0
[ 2, 25, 32, 938, 20, 275, 646, 1706, 13, 5, 248, 89, 4444, 255, 3719, 6, 19, 6294, 1251, 262, 18, 22402, 60, 800, 3726, 3726, 2321, 14, 581, 898, 32, 65, 9, 31, 22, 79, 302, 17455, 68, 109, 1797, 871, 6807, 19, 8214, 8876, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does NUnit (and MSTest) handle tests that change static/shared variables? === I have some code that uses the shared gateway pattern to implement an inversion of control container. I have several hundred NUnit unit tests that exercises the code that uses this IOC. They all work (on my machine!) but I am concerned that these tests might fail under load. I seem to remember that NUnit (and MSTest) attempts to run tests in parallel on multiple threads (which would definitely trigger race conditions on the static/shared gateway) but I cannot find any documentation that says what actually happens. My experience is that NUnit seems to be running the tests sequencially. My question is, does NUnit (or MSTest) ever run unit tests in parallel? If so, under what conditions? And, can I turn this off via some sort of configuration option?
0
[ 2, 184, 630, 10210, 242, 13, 5, 290, 4235, 10543, 6, 3053, 4894, 30, 753, 12038, 118, 16608, 43, 12157, 60, 800, 3726, 3726, 31, 57, 109, 1797, 30, 2027, 14, 2592, 12171, 3732, 20, 8713, 40, 19, 10898, 16, 569, 12147, 9, 31, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting WPF dependency property without triggering events === I need to set a dependency property on a control (Slider.Value) in my code without it triggering a ValueChanged event (since I set the value, not the user). What is the best way to handle this situation in WPF?
0
[ 2, 2697, 619, 7721, 26835, 1354, 366, 7286, 68, 963, 800, 3726, 3726, 31, 376, 20, 309, 21, 26835, 1354, 27, 21, 569, 13, 5, 18, 1210, 1157, 9, 15165, 6, 19, 51, 1797, 366, 32, 7286, 68, 21, 1923, 16229, 43, 807, 13, 5, 7412, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 marshalling? === I checked google but it does not have a clear description
0
[ 2, 98, 25, 4526, 68, 60, 800, 3726, 3726, 31, 6505, 8144, 47, 32, 630, 52, 57, 21, 1207, 5318, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Modifying default tab size in RichTextBox === Is there any way to change the default tab size in a .NET RichTextBox? It currently seems to be set to the equivalent of 8 spaces which is kinda large for my taste.
0
[ 2, 17579, 68, 12838, 6523, 1072, 19, 2042, 11969, 5309, 800, 3726, 3726, 25, 80, 186, 161, 20, 753, 14, 12838, 6523, 1072, 19, 21, 13, 9, 2328, 2042, 11969, 5309, 60, 32, 871, 2206, 20, 44, 309, 20, 14, 4602, 16, 469, 7644, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Can You Use A DynamicResource in a Storyboard Contained Within Style Or ControlTemplate === I am trying to use a DynamicResource in Storyboard contained within a ControlTemplate. But, when I try to do this, I get a 'Cannot freeze this Storyboard timeline tree for use across threads' error. What is going on here?
0
[ 2, 92, 42, 275, 21, 7782, 99, 12097, 19, 21, 609, 2806, 3437, 363, 1034, 54, 569, 9577, 6554, 800, 3726, 3726, 31, 589, 749, 20, 275, 21, 7782, 99, 12097, 19, 609, 2806, 3437, 363, 21, 569, 9577, 6554, 9, 47, 15, 76, 31, 1131,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hitting Webservice on Different Subnet === I know this is somewhat of a server question, but I wanted to ask anyways in case someone has done this before. I have a web service that is on our internal 172.x.x.x subnet and a web server that is on our internal 10.x.x.x subnet. The webserver needs to hit the 172 web service, but is unable to route there. The real solution would be to convince our network admins to put the server on the 172 network behind the DMZ, but this solution seems far off. My quick and dirty solution is to create a proxy server on a box that connects to both networks, so I can then program my web service calls to hit the proxy server. However, I am a developer and have little knowledge on how to set this up. I have friends that have had good luck with Squid Proxy Server in Nix, but the only box that is available for me is a Windows Server 2003 box. Ideally, I would like some sort of proxy that I could set up on top of IIS. Do you guys know of anything? I've seen some reviews for ISA Server 2006, but I'd hate to charge up the corporate budget since we only need it for this one web service. Thanks in advance for your help. Thanks, CJAM
0
[ 2, 6687, 2741, 11449, 27, 421, 972, 2328, 800, 3726, 3726, 31, 143, 48, 25, 4131, 16, 21, 8128, 1301, 15, 47, 31, 417, 20, 1349, 2774, 18, 19, 610, 737, 63, 677, 48, 115, 9, 31, 57, 21, 2741, 365, 30, 25, 27, 318, 3117, 369,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 create a (Type, ID) (aka 'polymorphic')- foreign key column in MS Access? === In Ruby-on-Rails, this is called a "polymorphic association." I have several `Commentable` things in my application, the tables for each are below: Post id | title | text | author (FK:Person.id) | ... Person id | name | ... Photo id | title | owner (FK:Person.id) | path | ... I'd like to add a `Comments` table as follows: Comments id | commentable_type | commentable_id | text | author (FK:Person.id) I understand that I lose the database's referential integrity this way, but the only other option is to have multiple `Comments` tables: `PostComments`, `PersonComments`, `PhotoComments`, ... How can I build a form that will understand how to do the lookup, first by getting the table name from `Comments.commentable_type` and then the id from `Comments.commentable_id`?
0
[ 2, 184, 107, 31, 1600, 21, 13, 5, 4474, 15, 4924, 6, 13, 5, 4176, 13, 22, 17108, 12498, 596, 22, 6, 8, 1228, 1246, 4698, 19, 4235, 1381, 60, 800, 3726, 3726, 19, 10811, 8, 218, 8, 7301, 18, 15, 48, 25, 227, 21, 13, 7, 1710...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Evaluating OPF3 (ORM framework for .NET) === Is anyone using or has anyone evaluated [OPF3][1] as an ORM (.NET)? How does it stack up against EntitySpaces or Subsonic? One thing about OPF3 I like in my evaluation so far is that it is very easy to customize. Since it binds database fields to object members using attributes, you do not *need* to use any code generation tool. This also means you can basically create your own classes, and then add OPF3 data binding on top of that. <Persistent("users")> _ Public Class User <Field("userid", AutoNumber:=True, Identifier:=True, allowDbnull:=False)> _ Public Property ID() As Long <Field("name", allowDbnull:=False)> _ Public Property Name() As String End Class They do have a generation tool, and one thing I don't like is that the demo will not output classes, so I can't actually see what it is *really* going to do. On the plus side again, it appears that when you buy the tool, you get the source for it as well. [1]: http://opf3.com
2
[ 2, 26764, 3088, 410, 240, 13, 5, 248, 79, 6596, 26, 13, 9, 2328, 6, 800, 3726, 3726, 25, 1276, 568, 54, 63, 1276, 19018, 636, 111, 7721, 240, 500, 2558, 165, 500, 28, 40, 54, 79, 13, 5, 9, 2328, 6, 60, 184, 630, 32, 7566, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managing third party libraries and their dependencies === Specifically, how do you handle 2 different libraries sharing a common dependency? For example, I've structured a project with a Lib\ directory with each 3rd party library (and its dependencies) contained in separate sub-directories: Lib\ IBatis\ Log4Net\ etc. This is fine if there's no overlap. Required libraries are added implicitly to the bin\ directory. However, I'd like to start using Castle Windsor as a DI framework. Both iBATIS.NET and Castle Windsor use Castle.DynamicProxy.dll. When I do a build the Castle Windsor dll is copied over. I'm not sure if this is just coincidence, or if it's being chosen because of the file version - the assembly versions are both 1.1.5.0, but the file version is greater (1.1.5.4333 vs. 1.1.5.0). In general, what's the best strategy for including 3rd party libraries that have common dependencies? Is it possible to somehow include both?
0
[ 2, 5616, 422, 346, 8649, 17, 66, 29411, 800, 3726, 3726, 3524, 15, 184, 107, 42, 3053, 172, 421, 8649, 6126, 21, 757, 26835, 60, 26, 823, 15, 31, 22, 195, 17784, 21, 669, 29, 21, 13, 8326, 1, 16755, 29, 206, 203, 897, 346, 124...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Digital Right Management (DRM) forward lock in Windows Mobile === Is it possible to apply DRM forward lock to windows mobile applications?
0
[ 2, 1888, 193, 1097, 13, 5, 43, 6538, 6, 917, 3991, 19, 1936, 3241, 800, 3726, 3726, 25, 32, 938, 20, 5645, 744, 79, 917, 3991, 20, 1936, 3241, 3767, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Editing a text buffer... === Ok, this is a bit of a cheeky question. I want to build a simple text editor (using my own text mode screen handling). I just want a good example of data structures that can be used to represent the text buffer, and some simple examples of char/text insertion/deletion. I can handle all the rest of the code myself (file i/o, console i/o etc). A link to a nice simple editor source would be great (C or C++).
0
[ 2, 9510, 21, 1854, 17497, 9, 9, 9, 800, 3726, 3726, 5854, 15, 48, 25, 21, 1142, 16, 21, 3199, 93, 1301, 9, 31, 259, 20, 1895, 21, 1935, 1854, 1835, 13, 5, 12655, 51, 258, 1854, 3740, 2324, 7988, 6, 9, 31, 114, 259, 21, 254, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...