unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Libraries of audio samples === For a project we're currently working on, we need a library of spoken words in many different languages. Two options seem possible: text-to-speech or "real" recordings by native speakers. As the quality is important to us, we're thinking about going the latter path. In order to create a prototype for our application, we're looking for libraries that contain as many words in different languages as possible. To get a feeling for the quality of our approach, this library should not be made up of synthesized speech. Do you know of any available/accessible libraries?
0
[ 2, 8649, 16, 4023, 7855, 800, 3726, 3726, 26, 21, 669, 95, 22, 99, 871, 638, 27, 15, 95, 376, 21, 1248, 16, 4050, 715, 19, 151, 421, 2556, 9, 81, 6368, 2260, 938, 45, 1854, 8, 262, 8, 18, 1664, 7455, 54, 13, 7, 7467, 7, 46...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Greasemonkey cause the displayed title to change === I want to change the title showing in a page based on information I pick up from within the page (eg to show the number of inbox messages) `document.getElementsByTagName('title')[0].innerHTML="foo";` does change the title tag, but firefox does not update the displayed title (in window and tags) when this happens. Is this possible?
0
[ 2, 92, 21167, 2111, 4237, 1679, 14, 6115, 581, 20, 753, 800, 3726, 3726, 31, 259, 20, 753, 14, 581, 3187, 19, 21, 2478, 432, 27, 676, 31, 2036, 71, 37, 363, 14, 2478, 13, 5, 5431, 20, 298, 14, 234, 16, 19, 5309, 7561, 6, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
implicit operator using interfaces === I have a generic class that I'm trying to implement implicit type casting for. While it mostly works, it won't work for interface casting. Upon further investigation, I found that there is a compiler error: "User-defined conversion from interface" that applies. While I understand that this should be enforced in some cases, what I'm trying to do does seem like a legitimate case. Here's an example: public class Foo<T> where T : IBar { private readonly T instance; public Foo(T instance) { this.instance = instance; } public T Instance { get { return instance; } } public static implicit operator Foo<T>(T instance) { return new Foo<T>(instance); } } Code to use it: var concreteReferenceToBar = new ConcreteBar(); IBar intefaceReferenceToBar = concreteReferenceToBar; Foo<ConcreteBar> concreteFooFromConcreteBar = concreteReferenceToBar; Foo<IBar> fooFromConcreteBar = concreteReferenceToBar; Foo<IBar> fooFromInterfaceBar = intefaceReferenceToBar; // doesn't work Does anyone know a workaround, or can anyone explain in a satisfactory way why I shuouldn't be able to cast `interfaceReferenceToBar` implicitly to `Foo<IBar>`, since in my case it is not being converted, but only contained within Foo?
0
[ 2, 20290, 6022, 568, 6573, 18, 800, 3726, 3726, 31, 57, 21, 12733, 718, 30, 31, 22, 79, 749, 20, 8713, 20290, 1001, 9087, 26, 9, 133, 32, 1555, 693, 15, 32, 230, 22, 38, 170, 26, 6573, 9087, 9, 685, 653, 3193, 15, 31, 216, 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...
Unobtrusive javascript : <scrip > at the top or the bottom of the html code ? === I've recently read the Yahoo manifesto [Best Practices for Speeding Up Your Web Site][1]. They recommend to put the javascript inclusion at the bottom of the HTML code when we can. But where exactly and when ? Should we put it before closing `</html>` or after ? And above all, when should we still put it in the `<head>` section ? [1]: http://developer.yahoo.com/performance/rules.html#postload
0
[ 2, 367, 4995, 8989, 18, 1284, 8247, 8741, 13, 45, 13, 1, 18, 28215, 13, 1, 35, 14, 371, 54, 14, 2129, 16, 14, 13, 15895, 1797, 13, 60, 800, 3726, 3726, 31, 22, 195, 1989, 1302, 14, 23553, 18570, 636, 4936, 5242, 26, 1362, 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...
how can I add fonts to netbeans ? === I'm using netbeans on ubuntu , and I would like to add some fonts to it . Could anyone tell me how is this done ?
2
[ 2, 184, 92, 31, 3547, 9978, 18, 20, 4275, 863, 5950, 13, 60, 800, 3726, 3726, 31, 22, 79, 568, 4275, 863, 5950, 27, 287, 12968, 2473, 13, 15, 17, 31, 83, 101, 20, 3547, 109, 9978, 18, 20, 32, 13, 9, 110, 1276, 494, 55, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
SO Technology@work survey === This is my one solitary (forgivable?) poll. To prove that I'm not being a rep !@&#&!!@(#*, I'm making this comm owned. What I want SO users to do is to upvote or create an answer that represents the technology they use at work that pays for their bills. Also if you're particularly co-operative, tag on a comment stating your work organization and location. like 'UserX, NameOfOrganization, Location (State-Country)' **Benefits:** - I'm thinking if this helps people relocate to a good place.. in case they spot someone who works with a tech that they'd like to 'move to' IN their locality.. Great! - We get a distributive spread of whats being used in the "industry" if we may call it that apart from hobby languages that we indulge in.
0
[ 2, 86, 1099, 1, 3783, 3431, 800, 3726, 3726, 48, 25, 51, 53, 16053, 13, 5, 1106, 263, 3757, 579, 60, 6, 4994, 9, 20, 4220, 30, 31, 22, 79, 52, 142, 21, 9411, 13, 187, 1, 1569, 5910, 1569, 19015, 1, 5, 5910, 2483, 15, 31, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OCSP libraries for python / java / c? === Going back to my previous question on OCSP, does anybody know of "reliable" OCSP libraries for Python, Java and C? I need "client" OCSP functionality, as I'll be checking the status of Certs against an OCSP responder, so responder functionality is not that important. Thanks
0
[ 2, 13, 2499, 3401, 8649, 26, 20059, 13, 118, 8247, 13, 118, 272, 60, 800, 3726, 3726, 228, 97, 20, 51, 1158, 1301, 27, 13, 2499, 3401, 15, 630, 11181, 143, 16, 13, 7, 19003, 579, 7, 13, 2499, 3401, 8649, 26, 20059, 15, 8247, 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...
x509 certificate parsing libraries for Python / Java === Any recommended crypto libraries for Python and Java. What I need is the ability to parse X.509 Certificates to extract the information contained in them. Thanks
0
[ 2, 993, 264, 2545, 6259, 2017, 18, 68, 8649, 26, 20059, 13, 118, 8247, 800, 3726, 3726, 186, 5773, 16277, 8649, 26, 20059, 17, 8247, 9, 98, 31, 376, 25, 14, 2165, 20, 2017, 870, 993, 9, 264, 2545, 6259, 18, 20, 10962, 14, 676, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
linker woes - undefined reference === I'm having a problem with my compiler telling me there is an 'undefined reference to' a function I want to use in a library. Let me share some info on the problem: - I'm cross compiling with gcc for C. - I am calling a library function which is accessed through an included header which includes another header, which contains the prototype. - I have included the headers directory using -I and i'm sure it's being found. - I'm first creating the .o files then linking them in a separate command. So my thought is it might be the order in which I include the library files, but i'm not sure what is the correct way to order them. I tried with including the headers folder both before and after the .o file. Some suggests would be great, and maybe and explanation of how the linker does its thing. Thanks!
0
[ 2, 3508, 106, 4808, 160, 13, 8, 367, 13439, 2801, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 29, 51, 21486, 2497, 55, 80, 25, 40, 13, 22, 1020, 13439, 2801, 20, 22, 21, 1990, 31, 259, 20, 275, 19, 21, 1248, 9, 408, 55, 1891...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Good Visual Studio 2005 tutorials? === I guess this is quite a self-explanatory title. I need some tutorials showing the cool things of VS, but almost everything I find looks like being "How to conect a Web-app to a DB" kind of video-tutorial or a list of features and advertisement text. I am going to use it for C++ game programming. I'm new to this IDE but I heard it has some interesting features and I was wondering what good online resources, walkthroughs or tutorials are there. Anything worthwhile?
0
[ 2, 254, 3458, 1120, 812, 29724, 18, 60, 800, 3726, 3726, 31, 2321, 48, 25, 1450, 21, 1119, 8, 6899, 1804, 7496, 581, 9, 31, 376, 109, 29724, 18, 3187, 14, 2700, 564, 16, 4611, 15, 47, 557, 796, 31, 477, 1879, 101, 142, 13, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Comparing date ranges === In mysql, If I have a list of date ranges (range-start and range-end). e.g. 10/06/1983 to 14/06/1983 15/07/1983 to 16/07/1983 18/07/1983 to 18/07/1983 And I want to check if another date range contains ANY of the ranges already in the list, how would I do that? e.g. 06/06/1983 to 18/06/1983 = IN LIST 10/06/1983 to 11/06/1983 = IN LIST 14/07/1983 to 14/07/1983 = NOT IN LIST
0
[ 2, 15047, 1231, 9230, 800, 3726, 3726, 19, 51, 18, 22402, 15, 100, 31, 57, 21, 968, 16, 1231, 9230, 13, 5, 8366, 8, 13680, 17, 978, 8, 2451, 6, 9, 13, 62, 9, 263, 9, 332, 118, 3370, 118, 6666, 20, 513, 118, 3370, 118, 6666, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
firefox not opening - cron, ruby, firewatir === I have written a ruby script which opens up dlink admin page in firefox and does a ADSL connection or disconnection. I could run this script in the terminal without any problem. But if I put it as cron job, it doesn't fire up firefox. This is the entry I have in *crontab* # connect to dataone 55 17 * * * ruby /home/raguanu/Dropbox/nettie.rb >> /tmp/cron_test I see the following entries in /tmp/cron_test. So it looks like the script indeed ran. PROFILE: i486-linux /usr/bin/firefox -jssh But I couldn't figure out why I didn't see firefox opening up, for this automation to work. Here is */home/raguanu/Dropbox/nettie.rb* #!/usr/bin/ruby -w require 'rubygems' require 'firewatir' require 'optiflag' module Options extend OptiFlagSet character_flag :d do long_form 'disconnect' description 'Mention this flag if you want to disconnect dataone' end flag :l do optional long_form 'admin_link' default 'http://192.168.1.1' description 'Dlink web administration link. Defaults to http://192.168.1.1' end flag :u do optional long_form 'user' default 'admin' description 'Dlink administrator user name. Defaults to "admin"' end flag :p do optional long_form 'password' default 'admin' description 'Dlink administrator password. Defaults to "admin"' end flag :c do optional long_form 'connection_name' default 'bsnl' description 'Dataone connection name. Defaults to "bsnl"' end extended_help_flag :h do long_form 'help' end and_process! end class DlinkAdmin include FireWatir def initialize(admin_link = "http://192.168.1.1", user = 'admin', pwd = 'admin') @admin_link, @user, @pwd = admin_link, user, pwd end def connect( connection_name = 'bsnl' ) goto_connection_page connection_name # disconnect prior to connection @browser.button(:value, 'Disconnect').click # connect @browser.button(:value, 'Connect').click # done! @browser.close end def disconnect( connection_name = 'bsnl' ) goto_connection_page connection_name # disconnect @browser.button(:value, 'Disconnect').click # done! @browser.close end private def goto_connection_page( connection_name = 'bsnl') @browser ||= Firefox.new @browser.goto(@admin_link) # login @browser.text_field(:name, 'uiViewUserName').set(@user) @browser.text_field(:name, 'uiViewPassword').set(@pwd) @browser.button(:value,'Log In').click # setup > dataone @browser.image(:alt, 'Setup').click @browser.link(:text, connection_name).click end end admin = DlinkAdmin.new(Options.flags.l, Options.flags.u, Options.flags.p) unless Options.flags.d? admin.connect( Options.flags.c ) else admin.disconnect( Options.flags.c ) end Any help is appreciated.
0
[ 2, 535, 18219, 52, 1214, 13, 8, 13, 19587, 15, 10811, 15, 535, 12801, 1523, 800, 3726, 3726, 31, 57, 642, 21, 10811, 3884, 56, 8965, 71, 13, 43, 6258, 21, 43, 2160, 2478, 19, 535, 18219, 17, 630, 21, 16236, 255, 2760, 54, 29363,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a need to use assembly these days? === Many claim that, when performance is at a premium, it's sufficient to write and compile C code to get near-optimal code that is additionally quite portable. I don't see much of a [assembly][1]/[assembler][2] discussion on stackoverflow (about 0,3% of the questions right now are tagged any of those tags, many of which refer to .NET Assembly). However, perphaps there are still realms where this bottom-level approach still wins worthwhile profits. What do you think? [1]: http://stackoverflow.com/questions/tagged/assembly [2]: http://stackoverflow.com/questions/tagged/assembler
0
[ 2, 25, 80, 21, 376, 20, 275, 1475, 158, 509, 60, 800, 3726, 3726, 151, 2632, 30, 15, 76, 956, 25, 35, 21, 12934, 15, 32, 22, 18, 6722, 20, 2757, 17, 26561, 272, 1797, 20, 164, 424, 8, 25458, 3482, 1797, 30, 25, 4351, 1450, 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...
Software Synth Library for Java === I've been thinking a lot lately about a music-oriented project I'd like to work on. Kind of like a game... kind of like a studio workstation (FL Studio, Reason). I guess the best way to describe it would be: like "Guitar Hero", but with no canned tracks. All original music--composed by you, on the fly--but the software would use its knowledge of music theory (as well as some supervised learning algorithms) to make sure that your input gets turned into something that sounds great. It sounds a little silly, explaining it like that, but there ya go. It's something I think would make an interesting side project. Anyhow, I'm looking for a Java library for generating the actual audio. Browsing around on sourceforge, there are countless software synths, and I have no idea which to choose. My top priority is that it should sound incredible... Really rich, layered, textured synths, with gobs of configurable parameters. Emulation of acoustic instruments is not important to me. My second priority is that it ought to be straightforward to use strictly as a library, with no GUI involved at all. (If there's a synth with really breathtaking output, but it's tightly-coupled with a GUI, then I might consider ripping the audio portion out of the application, but I'd rather start with a nicely contained library). I know I could send MIDI to a standalone synth, but I think it'd be cool to read the actual synth code and learn a little DSP while I'm at it. Any suggestions? Oh yeah, I'm on Windows, so posix-only stuff is a no go. Thanks!
0
[ 2, 2306, 13973, 1248, 26, 8247, 800, 3726, 3726, 31, 22, 195, 74, 1440, 21, 865, 10434, 88, 21, 232, 8, 6800, 669, 31, 22, 43, 101, 20, 170, 27, 9, 825, 16, 101, 21, 250, 9, 9, 9, 825, 16, 101, 21, 1120, 170, 10839, 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...
Where can I find open source 2d bin packing algorithms? === I'm looking for open source (preferably c++) algorithms for 2d bin packing of rectangular and or irregular shapes. I've found several papers on the subject but no code.
0
[ 2, 113, 92, 31, 477, 368, 1267, 172, 43, 4511, 16683, 15935, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 368, 1267, 13, 5, 3515, 2407, 4801, 272, 20512, 6, 15935, 26, 172, 43, 4511, 16683, 16, 11354, 17, 54, 10687, 12129, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
What scripting language to learn after Perl === I have used Perl for many years now, mostly for doing all kinds of file parsing and system scripting jobs. Several newer scripting languages (python, ruby) are now available, that all in part tend to address scripting etc. in a better way than Perl apparently did. If I would have to choose learning a new scripting language, which one should that be and why?
0
[ 2, 98, 3884, 68, 816, 20, 2484, 75, 416, 255, 800, 3726, 3726, 31, 57, 147, 416, 255, 26, 151, 122, 130, 15, 1555, 26, 845, 65, 8623, 16, 3893, 2017, 18, 68, 17, 329, 3884, 68, 4844, 9, 238, 12372, 3884, 68, 2556, 13, 5, 644...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Exception thrown inside catch block - will it be caught again? === This may seem like a programming 101 question and I had thought I knew the answer but now find myself needing to double check. In this piece of code below, will the exception thrown in the first catch block then be caught by the general Exception catch block below? try { // Do something } catch(IOException e) { throw new ApplicationException("Problem connecting to server"); } catch(Exception e) { // Will the ApplicationException be caught here? } I always thought the answer would be no, but now I have some odd behaviour that could be caused by this. The answer is probably the same for most languages but I'm working in Java.
0
[ 2, 5391, 6027, 572, 2949, 1921, 13, 8, 129, 32, 44, 1383, 188, 60, 800, 3726, 3726, 48, 123, 2260, 101, 21, 3143, 7698, 1301, 17, 31, 41, 289, 31, 404, 14, 1623, 47, 130, 477, 992, 12210, 20, 1494, 2631, 9, 19, 48, 1855, 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...
Binsor and log4net === I'm using Castle Windsor and Binsor to use dependency injection in my application. I'm no expert at either one. Usually I can figure out how to bend Windsor to my will, but I find Binsor much harder, especially since I haven't found any decent documentation for it. I'm trying to create a binsor configuration file where I use logging. I configure logging using the following binsor code: facility LoggingFacility: loggingApi = LoggerImplementation.Log4net configFile = "ParasiteLogConf.log4net" This works great, all components that are registered with the container and that takes an ILogger object as an argument to the constructor will receive the correct ILogger instance. However, what I want to do now is to use *another* logger for one specific component. I want that component to log to a file, whereas the other components should only log to screen. How would I go about expressing that using Binsor code?
0
[ 2, 4511, 18, 248, 17, 6738, 300, 2328, 800, 3726, 3726, 31, 22, 79, 568, 1339, 10784, 17, 4511, 18, 248, 20, 275, 26835, 13646, 19, 51, 3010, 9, 31, 22, 79, 90, 5390, 35, 694, 53, 9, 951, 31, 92, 1465, 70, 184, 20, 6196, 107...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Crypto/x509 certificate parsing libraries for Python (pyOpenSSL vs Python OpenSSL Wrappers vs...) === Any recommended crypto libraries for Python. I know I've asked something similar in <a>http://stackoverflow.com/questions/143523/</a>, but I should've split the question in two. What I need is the ability to parse X.509 Certificates to extract the information contained in them. Looking around, I've found two options: - Python OpenSSL Wrappers ([http://sourceforge.net/projects/pow][1]) - pyOpenSSL ([[http://sourceforge.net/projects/pyopenssl][2]) Of the two, pyOpenSSL seems to be the most "maintained", but I'd like some feedback on anybody who might have experience with them? Thanks a lot [1]: http://sourceforge.net/projects/pow "Python OpenSSL Wrappers" [2]: http://sourceforge.net/projects/pyopenssl/
0
[ 2, 16277, 118, 396, 264, 2545, 6259, 2017, 18, 68, 8649, 26, 20059, 13, 5, 6448, 10157, 18, 18, 255, 4611, 20059, 8965, 18, 255, 28051, 18, 4611, 9, 9, 9, 6, 800, 3726, 3726, 186, 5773, 16277, 8649, 26, 20059, 9, 31, 143, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Window styles / Minimal titlebar/borders === I'm looking for some kind of a resource (website) that would list all possible window/dialog frame styles and their respective combinations *with images*. I'm only really interested in Vista, as my software won't support older platforms anyway. I have a more specific case here too: I'm wondering if there are other ways to achieve a smaller-than-normal titlebar for my window than `WS_EX_TOOLWINDOW`? The tool window style would otherwise suit my needs, but in addition to the normal window border, it seems to add this one-pixel wide white border inside the black outline, and that just looks really ugly for my purposes. I remember older versions of Adobe Photoshop (CS2?) having these ridiculously tiny titlebars on the tool windows, like 8-10px wide. I'm wondering if those can be done with normal winapi, since IIRC they came in vista flavour too, and conformed to whatever windows skin was in use..?
0
[ 2, 1463, 6443, 13, 118, 8663, 581, 1850, 118, 24389, 18, 800, 3726, 3726, 31, 22, 79, 699, 26, 109, 825, 16, 21, 6577, 13, 5, 14113, 9097, 6, 30, 83, 968, 65, 938, 1463, 118, 4286, 5567, 3523, 6443, 17, 66, 7390, 17908, 1637, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best system for installing a Perl web app? === It seems that most of the installers for Perl are centered around installing Perl modules, not applications. Things like ExtUtils::MakeMaker and Module::Build are very well suited for modules, but require some additional work for Web Apps. Ideally it would be nice to be able to do the following after checking out the source from the repository: * Have missing dependencies detected * Download and install dependencies from CPAN * Run a command to "Build" the source into a final state (perform any source parsing or configuration necessary for the local environment). * Run a command to install the built files into the appropriate locations. Not only the perl modules, but also things like template (.tt) files, and CGI scripts, JS and image files that should be web-accessible. * Make sure proper permissions are set on installed files (and SELinux context if necessary). Right now we have a system based on **Module::Build** that does most of this. The work was done by done by my co-worker who was learning to use **Module::Build** at the time, and we'd like some advice on generalizing our solution, since it's fairly app-specific right now. In particular, our system requires us to install dependencies by hand (although it does detect them). Is there any particular system you've used that's been particularly successful? Do you have to write an installer based on **Module::Build** or **ExtUtils::MakeMaker** that's particular to your application, or is something more general available?
0
[ 2, 98, 22, 18, 14, 246, 329, 26, 25429, 21, 416, 255, 2741, 4865, 60, 800, 3726, 3726, 32, 2206, 30, 127, 16, 14, 16146, 445, 26, 416, 255, 50, 10583, 140, 25429, 416, 255, 17113, 15, 52, 3767, 9, 564, 101, 1396, 38, 14255, 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...
What is the best method to gather data about the use of your application? === My company releases a small software product for which I've recently been taking over the development side. It is a C# Windows Forms application. One of the things I've noticed is that much of the information about how the software is used is filtered through my superiors and I get the feeling that I'm missing important detail in some of the messages. I realise I'll have to work on the management issues with this situation, however in order to give another view on the problem I've been considering a technological solution. Perhaps something similar to the "Microsoft Customer Experience Improvement Program". I was wondering if anyone out there had any experience or advice monitoring and reporting on user behaviour in their applications?
0
[ 2, 98, 25, 14, 246, 2109, 20, 7442, 1054, 88, 14, 275, 16, 154, 3010, 60, 800, 3726, 3726, 51, 237, 7073, 21, 284, 2306, 2374, 26, 56, 31, 22, 195, 1989, 74, 741, 84, 14, 522, 270, 9, 32, 25, 21, 272, 5910, 1936, 1997, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 performance hit of using TSL with apache? === How much of a performance hit will running everything over tsl do to my server? I would assume this is completely ignorable in this day and age? I heard once that servers today could encrypt gigabytes of data per second, is that true? And if so, is it linearly scalable so that if top speed is 10GB/second, encrypting 1GB would take 0.1 second? I'm not in some kind of pickle with any admin over this (yet). I'm just curious and if I can mostly ignore the hit, why not just encrypt everything?
0
[ 2, 98, 25, 14, 956, 770, 16, 568, 13, 38, 18, 255, 29, 17140, 60, 800, 3726, 3726, 184, 212, 16, 21, 956, 770, 129, 946, 796, 84, 13, 38, 18, 255, 107, 20, 51, 8128, 60, 31, 83, 7158, 48, 25, 1524, 11491, 248, 579, 19, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible that F# will be optimized more than other .Net languages in the future? === Is it possible that Microsoft will be able to make F# programs, either at VM execution time, or more likely at compile time, detect that a program was built with a functional language and automatically parallelize it better? Right now I believe there is no such effort to try and execute a program that was built as single threaded program as a multi threaded program automatically. That is to say, the developer would code a single threaded program. And the compiler would spit out a compiled program that is multi-threaded complete with mutexes and synchronization where needed.
0
[ 2, 25, 32, 938, 30, 398, 5910, 129, 44, 22864, 43, 91, 119, 89, 13, 9, 2328, 2556, 19, 14, 1022, 60, 800, 3726, 3726, 25, 32, 938, 30, 7099, 129, 44, 777, 20, 233, 398, 5910, 1726, 15, 694, 35, 13, 20147, 5769, 85, 15, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Comparing two bitmasks in SQL to see if any of the bits match === Is there a way of comparing two bitmasks in Transact-SQL to see if any of the bits match? I've got a User table with a bitmask for all the roles the user belongs to, and I'd like to select all the users that have <em>any</em> of the roles in the supplied bitmask. So using the data below, a roles bitmask of 6 (designer+programmer) should select Dave, Charlie and Susan, but not Nick. <pre>User Table ---------- ID Username Roles 1 Dave 6 2 Charlie 2 3 Susan 4 4 Nick 1 Roles Table ----------- ID Role 1 Admin 2 Programmer 4 Designer</pre> Any ideas? Thanks.
0
[ 2, 15047, 81, 1142, 23265, 18, 19, 4444, 255, 20, 196, 100, 186, 16, 14, 10181, 730, 800, 3726, 3726, 25, 80, 21, 161, 16, 15047, 81, 1142, 23265, 18, 19, 2982, 5183, 8, 18, 22402, 20, 196, 100, 186, 16, 14, 10181, 730, 60, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any difference between "string" and 'string' in Python? === In PHP, a string enclosed in "double quotes" will be parsed for variables to replace whereas a string enclosed in 'single quotes' will not. In Python, does this also apply?
0
[ 2, 25, 80, 186, 2841, 128, 13, 7, 11130, 7, 17, 13, 22, 11130, 22, 19, 20059, 60, 800, 3726, 3726, 19, 13, 26120, 15, 21, 3724, 12188, 19, 13, 7, 14368, 18901, 7, 129, 44, 2017, 18, 69, 26, 12157, 20, 3934, 5142, 21, 3724, 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 access a MessageBox with white? === I have a simple message box in a WPF application that is launched as below: private void Button_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Howdy", "Howdy"); } I can get [white][1] to click my button and launch the message box. UISpy shows it as a child of my window I couldn't work out the method to access it. How do I get access to my MessageBox to verify its contents? [1]: http://www.codeplex.com/white "white"
0
[ 2, 184, 107, 31, 1381, 21, 2802, 5309, 29, 359, 60, 800, 3726, 3726, 31, 57, 21, 1935, 2802, 1649, 19, 21, 619, 7721, 3010, 30, 25, 1601, 28, 1021, 45, 932, 11364, 5167, 1, 150, 10129, 5, 23793, 2660, 106, 15, 858, 546, 6645, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Font graphics routines === How do you do your own fonts? I don't want a heavyweight algorithm (freetype, truetype, adobe, etc) and would be fine with pre-rendered bitmap fonts. I do want anti-aliasing, and would like proportional fonts if possible. I've heard I can use Gimp to do the rendering (with some post processing?) I'm developing for an embedded device with an LCD. It's got a 32 bit processor, but I don't want to run Linux (overkill - too much code/data space for too little functionality that I would use) C. C++ if necessary, but C is preferred. Algorithms and ideas/concepts are fine in any language... -Adam
0
[ 2, 9978, 8351, 8275, 18, 800, 3726, 3726, 184, 107, 42, 107, 154, 258, 9978, 18, 60, 31, 221, 22, 38, 259, 21, 8139, 9083, 13, 5, 4639, 4474, 15, 1151, 4474, 15, 20299, 15, 2722, 6, 17, 83, 44, 1123, 29, 782, 8, 99, 16706, 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...
Refactoring "include file hell" === One thing that's really been making life difficult in getting up to speed on the codebase on an ASP classic project is that the include file situation is kind of a mess. I sometimes find the function I was looking for being included in an include file that is totally unrelated. Does anyone have any advice on how to refactor this such that one can more easily tell where a function is if they need to find it? **EDIT:** One thing I forgot to ask: does vbscript have any kind of mechanism for preventing a file from being included twice? Sorta like #ifndef's from C?
0
[ 2, 302, 17455, 68, 13, 7, 22640, 3893, 1094, 7, 800, 3726, 3726, 53, 584, 30, 22, 18, 510, 74, 544, 201, 1956, 19, 1017, 71, 20, 1362, 27, 14, 1797, 8436, 27, 40, 28, 306, 2732, 669, 25, 30, 14, 468, 3893, 1858, 25, 825, 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...
What you think about returning an exception for not found in C++? === I know most people think that as a *bad practice* but when you are trying to make your class public interface only work with references, keeping pointers inside and only when necessary, I think there is no way to return something telling that the value you are looking doesn't exist in the container. <pre> class list { public: value &get(type key); }; </pre> Let's think that you don't want to have dangerous pointers being saw in the public interface of the class, how do you return a not found in this case, throwing an exception? What is your approach to that? Do you return an empty *value* and check for the empty state of it? I actually use the throw approach but I introduce a checking method: <pre> class list { public: bool exists(type key); value &get(type key); }; </pre> So when I forget to check that the value exists first I get an exception, that is really an *exception*. How would you do it?
0
[ 2, 98, 42, 277, 88, 2485, 40, 5391, 26, 52, 216, 19, 272, 20512, 60, 800, 3726, 3726, 31, 143, 127, 148, 277, 30, 28, 21, 1637, 5989, 1345, 2483, 47, 76, 42, 50, 749, 20, 233, 154, 718, 317, 6573, 104, 170, 29, 7231, 15, 288...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 trigger a link's (or any element's) click event through JavaScript? === I'm writing some JavaScript code that needs to fire the `click` event for a link. In Internet Explorer I can do this var button = document.getElementById('myButton'); button.click(); But this doesn't work in Firefox, and I assume any other browser. In Firefox, I've done this var button = document.getElementById('myButton'); window.location = button.href; I feel like this is not the best way to do this. Is there a better way to trigger a `click` event? Preferably something that works regardless of the type of element or the browser.
0
[ 2, 25, 32, 938, 20, 7286, 21, 3508, 22, 18, 13, 5, 248, 186, 4520, 22, 18, 6, 10840, 807, 120, 8247, 8741, 60, 800, 3726, 3726, 31, 22, 79, 1174, 109, 8247, 8741, 1797, 30, 2274, 20, 535, 14, 13, 1, 150, 10129, 1, 807, 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...
MySQL and data file encryption === Is there a way to encrypt the data file that mysql uses? I have a mysql server on an open machine, and I would like to encrypt the data file so even if someone copies the data files, they cannot read the data. Thanks
0
[ 2, 51, 18, 22402, 17, 1054, 3893, 24420, 800, 3726, 3726, 25, 80, 21, 161, 20, 1957, 11435, 14, 1054, 3893, 30, 51, 18, 22402, 2027, 60, 31, 57, 21, 51, 18, 22402, 8128, 27, 40, 368, 1940, 15, 17, 31, 83, 101, 20, 1957, 11435,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PostGreSQL - Rename database === I need to rename the database but when I do in PGAdmin : ALTER DATABASE "databaseName" RENAME TO "databaseNameOld" it told me that it cannot. How can I do it? (Version 8.3 on WindowsXP)
0
[ 2, 678, 6879, 18, 22402, 13, 8, 302, 7259, 6018, 800, 3726, 3726, 31, 376, 20, 302, 7259, 14, 6018, 47, 76, 31, 107, 19, 16086, 43, 2160, 13, 45, 7835, 6018, 13, 7, 18768, 8436, 7259, 7, 302, 7259, 20, 13, 7, 18768, 8436, 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...
What books should I read to have an undergraduate education in Computer Science? === I've always been a largely independent learning gleaning what I can from Wikipedia and various books. However, I fear that I may have biased my self-education by inadvertent omission of topics and concepts. My goal is to teach myself the equivalent of an undergraduate degree in Computer Science from a top university (doesn't matter which one). To that end, I've purchased and started reading a few academic textbooks: * [Structure and Interpretation of Computer Programs][1] * [Introduction to Algorithms][2] * [Artificial Intelligence: A Modern Approach][3] As well as a few textbooks I have left over from classes I've taken at a mediocre-at-best state university: * [An Introduction to Computer Simulation Methods][4] * [Calculus: Concepts and Connections][5] * [Computer Organization and Architecture][6] * [Operating System Concepts][7] * [A First Course in Database Systems][8] * [Formal Languages and Automata][9] My questions are: * What topics aren't covered by this collection? * Are there any books that are more rigorous or thorough (or even easier to read) than a book listed here? * Are there any books that are a waste of my time? * In what order should I read the books? * What does an MIT or Stanford (or UCB or CMU ...) undergrad learn that I might miss? *Software engineering books are welcome, but in the context of academic study only please. I'm aware of Code Complete and the Pragmatic Programmer, but I'm looking for a more theoretical approach. Thanks!* [1]: http://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering/dp/0262011530/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1222526848&sr=8-2 [2]: http://www.amazon.com/Introduction-Algorithms-Thomas-H-Cormen/dp/0262032937/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1222527063&sr=1-2 [3]: http://www.amazon.com/Artificial-Intelligence-Modern-Approach-Prentice/dp/0137903952/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527113&sr=1-1 [4]: http://www.amazon.com/Introduction-Computer-Simulation-Methods-Applications/dp/0805377581/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527187&sr=1-1 [5]: http://www.amazon.com/Calculus-Concepts-Connections-Robert-Smith/dp/007330929X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527306&sr=1-1 [6]: http://www.amazon.com/Computer-Organization-Architecture-Designing-Performance/dp/0131856448/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527373&sr=1-1 [7]: http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/0471694665/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1222527402&sr=1-2 [8]: http://www.amazon.com/First-Course-Database-Systems-GOAL/dp/013600637X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527434&sr=1-1 [9]: http://www.amazon.com/Introduction-Formal-Language-Automata/dp/0763737984/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222527490&sr=1-1
4
[ 2, 98, 964, 378, 31, 1302, 20, 57, 40, 7116, 565, 19, 1428, 762, 60, 800, 3726, 3726, 31, 22, 195, 550, 74, 21, 2679, 1124, 2477, 29544, 68, 98, 31, 92, 37, 20169, 17, 617, 964, 9, 207, 15, 31, 1719, 30, 31, 123, 57, 10782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
when to pass fuction arguments by reference and when by address? === Could anyone explain with some examples when it is better to call functions by reference and when it is better to call by address?
0
[ 2, 76, 20, 1477, 398, 21263, 10553, 34, 2801, 17, 76, 34, 3218, 60, 800, 3726, 3726, 110, 1276, 3271, 29, 109, 3770, 76, 32, 25, 574, 20, 645, 3719, 34, 2801, 17, 76, 32, 25, 574, 20, 645, 34, 3218, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Does any one know of a packet generator? === We have a networked device, and we would like to perform some tests on how it handles malformed packets. Is there a product out there that can generate arbitrary packets and packet sequences? I would like to be able to specify a set of TCP/IP payloads and it would open a connection and send the data. Obviouly, the TCP/IP checksum should be calculated correctly, etc... Kind of like a [wireshark][1] in reverse. Note that I am **not** interested in network loading and blasting millions of packet. [1]: http://www.wireshark.org/
0
[ 2, 630, 186, 53, 143, 16, 21, 12795, 15286, 60, 800, 3726, 3726, 95, 57, 21, 982, 69, 3646, 15, 17, 95, 83, 101, 20, 2985, 109, 4894, 27, 184, 32, 3053, 18, 2814, 12609, 12795, 18, 9, 25, 80, 21, 2374, 70, 80, 30, 92, 7920, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where to find beautiful PHP code to read? === As a way to find inspiration and improve my PHP skills, I am looking for some beautiful PHP source code to read, preferably an open source "standard" web site rather than a more tool-like project such as phpMyAdmin. So, where can I find some beautiful PHP code?
4
[ 2, 113, 20, 477, 1632, 13, 26120, 1797, 20, 1302, 60, 800, 3726, 3726, 28, 21, 161, 20, 477, 6180, 17, 3545, 51, 13, 26120, 3207, 15, 31, 589, 699, 26, 109, 1632, 13, 26120, 1267, 1797, 20, 1302, 15, 6369, 4801, 40, 368, 1267, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you Serialize ScriptObjects to JSON to save in Silverlight Isolated Storage? === According to this article ([http://msdn.microsoft.com/en-us/library/cc197951(VS.95).aspx][1]) Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when I try to use it VS says "Type 'DataContractJsonSerializer' is not defined". I have a method marked as ScriptableMember that gets called from JavaScript and is passed an Object. Inside this method I need to serialize the object to a string (preferably JSON) and then save it in isolated storage. Does Silverlight 2 Beta 2 really support DataContractJsonSerializer? Or would anyone recommend a different method of saving the JavaScript created ScriptObject in the Isolated Storage? [1]: http://msdn.microsoft.com/en-us/library/cc197951(VS.95).aspx
0
[ 2, 184, 107, 42, 5956, 2952, 3884, 23793, 18, 20, 487, 528, 20, 2079, 19, 1172, 3130, 6331, 4326, 60, 800, 3726, 3726, 496, 20, 48, 2002, 13, 5, 2558, 21127, 6903, 79, 18, 43, 103, 9, 22019, 12980, 9, 960, 118, 219, 8, 267, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to improve link performance for a large C++ application in VS2005 === We have fairly large C++ application which is composed of about 60 projects in Visual Studio 2005. It currently takes 7 minutes to link in Release mode and I would like to try to reduce the time. Are there any tips for improving the link time? Most of the projects compile to static libraries, this makes testing easier since each one also has a set of associated unit tests. It seems the use of static libraries prevents VS2005 from using incremental linking, so even with incremental linking turned on it does a full link every time. Would using DLLs for the sub projects make any difference? I don't really want to go through all the headers and add macros to export the symbols (even using a script) but if it would do something to reduce the 7 minute link time I will certainly consider it. For some reason using nmake from the command line is slightly faster and linking the same application on Linux (with GCC) is much faster. - Visual Studio IDE 7 minutes - Visual C++ using nmake from the command line - 5 minutes - GCC on Linux 34 seconds
0
[ 2, 184, 20, 3545, 3508, 956, 26, 21, 370, 272, 20512, 3010, 19, 4611, 2835, 800, 3726, 3726, 95, 57, 6647, 370, 272, 20512, 3010, 56, 25, 1869, 16, 88, 2083, 2314, 19, 3458, 1120, 812, 9, 32, 871, 1384, 453, 902, 20, 3508, 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...
What are some good strategies to allow deployed applications to be hotfixable? === In an ideal world, our development processes would be perfect, resulting in regular releases that were so thoroughly tested that it would never be necessary to "hotfix" a running application. But, unfortunately, we live in the real world, and sometimes bugs slip past us and don't rear their ugly heads until we're already busy coding away at the next release. And the bug needs to be fixed ***Now***. Not as a part of the next scheduled release. Not tonight when the traffic dies down. ***Now***. How do you deal with this need? It really can run counter to good design practices, like refactoring your code into nice, discrete class libraries. Hand-editing markup and stored procedures on a production server can be a recipe for disaster, but it can also avert disaster. What are some good strategies for application design and deployment techniques to find a balance between maintenance needs and good coding practices?
0
[ 2, 98, 50, 109, 254, 10272, 20, 1655, 6698, 3767, 20, 44, 1047, 18594, 579, 60, 800, 3726, 3726, 19, 40, 5628, 126, 15, 318, 522, 5102, 83, 44, 2107, 15, 2927, 19, 1290, 7073, 30, 46, 86, 13632, 7631, 30, 32, 83, 243, 44, 2378...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby: character to ascii from a string === this wiki page gave a general idea of how to convert a single char to ascii [http://en.wikibooks.org/wiki/Ruby_Programming/ASCII][1] But say if I have a string and I wanted to get each character's ascii from it, what do i need to do? "string".each_byte do |c| $char = c.chr $ascii = ?char puts $ascii end It doesn't work because it's not happy with the line $ascii = ?char syntax error, unexpected '?' $ascii = ?char ^ [1]: http://en.wikibooks.org/wiki/Ruby_Programming/ASCII
0
[ 2, 10811, 45, 925, 20, 28, 1892, 49, 37, 21, 3724, 800, 3726, 3726, 48, 13, 17375, 2478, 492, 21, 297, 882, 16, 184, 20, 8406, 21, 345, 4892, 20, 28, 1892, 49, 636, 21127, 6903, 219, 9, 17375, 13828, 9, 5583, 118, 17375, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Multiple C++ Threads execute on a class method === let's say we have a c++ class like: class MyClass { void processArray( <an array of 255 integers> ) { int i ; for (i=0;i<255;i++) { // do something with values in the array } } } and one instance of the class like: MyClass myInstance ; and 2 threads which call the processArray method of that instance (depending on how system executes threads, probably in a completely irregular order). There is no mutex lock used in that scope so both threads can enter. **My question is what happens to the i ? Does each thread scope has it's own "i" or would each entering thread modify i in the for loop, causing i to be changing weirdly all the time.**
0
[ 2, 184, 630, 1886, 272, 20512, 20396, 15644, 27, 21, 718, 2109, 800, 3726, 3726, 408, 22, 18, 395, 95, 57, 21, 272, 20512, 718, 101, 45, 718, 51, 1898, 13, 1, 11364, 953, 8576, 93, 5, 13, 1, 210, 7718, 16, 13, 20038, 13820, 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...
Do you use code generation tools? === Do you use code-generation tools (aside from those used to generate proxies and from designers built-in to visual studio)? What part(s) of your application do you generate? Do you typically roll your own generator? If so, what type of generator do you write (asp templates, coddom etc.). If not, what 3rd party tools do you use? I am currently working on a few different projects wich all use a custom code-generator that handles everything from generating the database structure, business entities, DAL, and BLL. I am curious about other peoples experiences are with these kinds of tools.
0
[ 2, 107, 42, 275, 1797, 2782, 4672, 60, 800, 3726, 3726, 107, 42, 275, 1797, 8, 12546, 4672, 13, 5, 58, 1416, 37, 273, 147, 20, 7920, 895, 396, 1596, 17, 37, 12760, 392, 8, 108, 20, 3458, 1120, 6, 60, 98, 141, 5, 18, 6, 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...
Is there a .NET library for universal audio file decoding? === Do you know of any .NET library which can decode several types of audio files? Ideally, it should be platform agnostic, so it can be used with .NET and Mono - on Windows and *NIX. I already tortured Google searching for a library which meets my needs, but unfortunately I could not find anything. So before writing a lot of wrapper classes for GStreamer, etc., I thought I could ask here. :) Supported audio files should be (at least) - MP3, - OGG Vorbis, and - FLAC (optional). As the application I would need this for is just for fun, the library should be open source - or at least free. Also, a nag screen displayed to a user would be bad, because I am planning on putting this into a service process. I would need use this library/these libraries in order to decoding audio files and passing a byte[] to my libOFA wrapper, so that I can produce a MusicDNS fingerprint for it.
0
[ 2, 25, 80, 21, 13, 9, 2328, 1248, 26, 4172, 4023, 3893, 121, 15458, 60, 800, 3726, 3726, 107, 42, 143, 16, 186, 13, 9, 2328, 1248, 56, 92, 121, 9375, 238, 2551, 16, 4023, 6488, 60, 5628, 102, 15, 32, 378, 44, 2452, 21, 21944, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 fastest way to insert data into an Oracle table? === I am writing a data conversion in PL/SQL that processes data and loads it into a table. According to the PL/SQL Profiler, one of the slowest parts of the conversion is the actual insert into the target table. The table has a single index. To prepare the data for load, I populate a variable using the rowtype of the table, then insert it into the table like this: > `insert into mytable values r_myRow;` It seems that I could gain performance by doing the following: - Turn logging off during the insert - Insert multiple records at once Are these methods advisable? If so, what is the syntax?
0
[ 2, 98, 25, 14, 7518, 161, 20, 14692, 1054, 77, 40, 15759, 859, 60, 800, 3726, 3726, 31, 589, 1174, 21, 1054, 6263, 19, 12443, 118, 18, 22402, 30, 5102, 1054, 17, 19069, 32, 77, 21, 859, 9, 496, 20, 14, 12443, 118, 18, 22402, 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...
J2EE and Grails: Communication with WebServices? Which framework? === Hy, I'm developing a Grails app which has to communicate with an existing J2EE application (built with EJB2). Both the "legacy" app and the new Grails app will offer services and consume them. For intercompatibility reasons, I'm thinking of communicating using WebServices. Now I'm wondering which frameworks I should use on both sides. Since the J2EE application now runs under JDK5, I could use JAX-WS on I guess it would make sense to use Metro (https://jax-ws-commons.dev.java.net/grails/) on the Grails side. Does anybody have experiences with that? Or other suggestions?
0
[ 2, 487, 135, 2851, 17, 489, 7301, 18, 45, 3291, 29, 2741, 11449, 18, 60, 56, 6596, 60, 800, 3726, 3726, 4085, 15, 31, 22, 79, 3561, 21, 489, 7301, 18, 4865, 56, 63, 20, 8709, 29, 40, 3149, 487, 135, 2851, 3010, 13, 5, 8607, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you run a single test/spec file in RSpec? === I want to be able to run a single spec file's tests &mdash; for the one file I'm editing, for example. <code>rake spec</code> executes all the specs. My project is not a Rails project, so <code>rake spec:doc</code> doesn't work. Don't know if this matters, but here is my directory structure. ./Rakefile ./lib ./lib/cushion.rb ./lib/cushion ./lib/cushion/doc.rb ./lib/cushion/db.rb ./spec ./spec/spec.opts ./spec/spec_helper.rb ./spec/db_spec.rb
0
[ 2, 184, 107, 42, 485, 21, 345, 1289, 118, 18, 12610, 3893, 19, 13, 1224, 12610, 60, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 485, 21, 345, 12737, 3893, 22, 18, 4894, 279, 79, 43, 6031, 73, 26, 14, 53, 3893, 31, 22, 79, 951...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wrap a SQL Reporting Matrix === I have a matrix in SQL reporting and I would like it to print on an A4 page. If the matrix has less than 4 columns then it fits but for more than 4 columns I would like the matrix to wrap and show only 4 columns per page. Is this possible? I am using SQL Reporting 2005 in localmode.
0
[ 2, 8118, 21, 4444, 255, 6670, 8187, 800, 3726, 3726, 31, 57, 21, 8187, 19, 4444, 255, 6670, 17, 31, 83, 101, 32, 20, 4793, 27, 40, 21, 300, 2478, 9, 100, 14, 8187, 63, 787, 119, 268, 7498, 94, 32, 2742, 18, 47, 26, 91, 119, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
varchar(255) v tinyblob v tinytext === My side question is there really any difference between tinyblob & tinytext? Buy my real question is what reason, if any, would I choose varchar(255) over tinyblob or tinytext?
0
[ 2, 4033, 5433, 5, 20038, 6, 566, 3228, 7091, 220, 566, 3228, 11969, 800, 3726, 3726, 51, 270, 1301, 25, 80, 510, 186, 2841, 128, 3228, 7091, 220, 279, 3228, 11969, 60, 3034, 51, 683, 1301, 25, 98, 1215, 15, 100, 186, 15, 83, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
What is the best web based application to access a database === Sometimes we deploy applications behind customer firewall and we need read only access to their DB for debugging issues as sometimes their IT people are not SQL savvy. We want to bundle our application with some web based application that will expose the database and allow us to fire adhoc SQL queries and show their output in HTML table. We dont want to write home grown code and we can bundle Java/JSP based applications.
0
[ 2, 98, 25, 14, 246, 2741, 432, 3010, 20, 1381, 21, 6018, 800, 3726, 3726, 1030, 95, 17617, 3767, 439, 7705, 535, 6051, 17, 95, 376, 1302, 104, 1381, 20, 66, 13, 9007, 26, 121, 16254, 2762, 1549, 28, 1030, 66, 32, 148, 50, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Delphi OTA and RTTI bug === I'm writing a Delphi expert. I need to be able to write a value to a property on a property which is an object. E.g. I have a GroupBox on the form and I want to edit the Margins.Left property. I'm using the following procedure to do it but if gives an AV on the marked line. The procedure takes a component from the (property editor) the property name (eg 'Margins.Left') and the new value, parses out the property name, fetches the object, reads the current value and attempts to change it if different. It then calls a method to log any changes. procedure EditIntegerSubProperty(Component: IOTAComponent;const PropName: String;NewValue: Integer); var AnObject: TObject; TK: TTypeKind; At: Integer; AClassName, APropName: String; PropInfo: PPropInfo; OldValue: Integer; begin At := Pos('.', PropName); if At < 1 then raise Exception.Create('Invalid SubProperty Name: '+PropName); AClassName := Copy(PropName, 1, At-1); APropName := Copy(PropName, At+1, length(PropName)); TK := Component.GetPropTypeByName(AClassName); if TK <> tkClass then EXIT; AnObject := GetObjectProp((Component as INTAComponent).GetComponent, AClassName); if PropIsType(AnObject, APropName, tkInteger) then begin OldValue := GetInt64Prop(AnObject, APropName); if OldValue <> NewValue then begin SetInt64Prop(AnObject, APropName, NewValue); <----AV HERE ChangeLogInteger(Name, PropName, OldValue, NewValue); end; end; end;
0
[ 2, 23030, 13, 7060, 17, 761, 5249, 6256, 800, 3726, 3726, 31, 22, 79, 1174, 21, 23030, 5390, 9, 31, 376, 20, 44, 777, 20, 2757, 21, 1923, 20, 21, 1354, 27, 21, 1354, 56, 25, 40, 3095, 9, 13, 62, 9, 263, 9, 31, 57, 21, 214,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's a good IDE to use for Lua? === I've got things minimally working in Scite... and a quick browse tells me that there is an Eclipse plugin and several other standalone editors, in addition to other general purpose editors with Lua capability. Out of that, what do people recommend? Particularly, what do people who program primarily in Lua like to use?
4
[ 2, 98, 22, 18, 21, 254, 13, 3448, 20, 275, 26, 1612, 58, 60, 800, 3726, 3726, 31, 22, 195, 330, 564, 8663, 102, 638, 19, 13, 18, 10424, 9, 9, 9, 17, 21, 2231, 10175, 62, 2609, 55, 30, 80, 25, 40, 11652, 10922, 108, 17, 238...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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-memory LINQ performance === More than about LINQ to [insert your favorite provider here], this question is about searching or filtering in-memory collections. I know LINQ (or searching/filtering extension methods) works in objects implementing `IEnumerable` or `IEnumerable<T>`. The question is: *because of the nature of enumeration, is every query complexity at least **O(n)**?* For example: var result = list.FirstOrDefault(o => o.something > n); In this case, every algorithm will take at least **O(n)** unless `list` is ordered with respect to `'something'`, in which case the search should take **O(log(n))**: it should be a binary search. However, If I understand correctly, this query will be resolved through enumeration, so it should take **O(n)**, even in `list` was previously ordered. - Is there something I can do to solve a query in **O(log(n))**? - If I want performance, should I use Array.Sort and Array.BinarySearch?
0
[ 2, 19, 8, 790, 5171, 93, 6294, 1251, 956, 800, 3726, 3726, 91, 119, 88, 6294, 1251, 20, 636, 108, 18, 6767, 154, 3839, 11747, 235, 500, 15, 48, 1301, 25, 88, 5792, 54, 25272, 19, 8, 790, 5171, 93, 5721, 9, 31, 143, 6294, 1251,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 should TAGs be preferred over BRANCHING and vice versa (in CVS)? === I think title should be good enough.
0
[ 2, 76, 378, 3383, 18, 44, 5981, 84, 1686, 68, 17, 1821, 18596, 13, 5, 108, 13, 12732, 18, 6, 60, 800, 3726, 3726, 31, 277, 581, 378, 44, 254, 511, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Where would you use C# Runtime Compilation? === I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I'm trying to determine how/when one might use this and what problem it solves. I'd be very interested in hearing how you've used it or in what context it makes sense. Thanks much.
0
[ 2, 113, 83, 42, 275, 272, 5910, 485, 891, 4868, 60, 800, 3726, 3726, 31, 1190, 685, 21, 2698, 5460, 1989, 27, 226, 689, 88, 272, 5910, 485, 891, 4868, 1989, 133, 5792, 26, 301, 962, 17, 289, 14, 882, 23, 4883, 9, 57, 42, 462, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 casting the same thing as converting? === In Jesse Liberty's Learning C# book, he says "Objects of one type can be converted into objects of another type. This is called casting." If you investigate the IL generated from the code below, you can clearly see that the casted assignment isn't doing the same thing as the converted assignment. In the former, you can see the boxing/unboxing occuring; in the latter you can see a call to a convert method. I know in the end it may be just a silly semantic difference--but is casting just another word for converting. I don't mean to be snarky, but I'm not interested in anyone's gut feeling on this--opinions don't count here! Can anyone point to a defintive reference that confirms or denies if casting and converting are the same thing? object x; int y; x = 4; y = ( int )x; y = Convert.ToInt32( x ); Thank you rp
0
[ 2, 25, 9087, 14, 205, 584, 28, 19583, 60, 800, 3726, 3726, 19, 6841, 6139, 22, 18, 2477, 272, 5910, 360, 15, 24, 898, 13, 7, 23793, 18, 16, 53, 1001, 92, 44, 3494, 77, 3916, 16, 226, 1001, 9, 48, 25, 227, 9087, 9, 7, 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...
Choosing a database type === When would you use a bigtabe/simpledb database vs a Relational database?
0
[ 2, 10883, 21, 6018, 1001, 800, 3726, 3726, 76, 83, 42, 275, 21, 580, 536, 863, 118, 24629, 9007, 6018, 4611, 21, 5827, 192, 6018, 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...
[ 1, 1, 1, 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...
How to incorperate Interactive Ruby into my development process? === I am trying to find a better way to integrate IRB with my normal ruby devleopment. Currently I rarely use IRB with my code. I only use it to verify syntax or to try something small. I know I can load my own code into ruby as a require 'mycode' but this usually doesn't mesh with my programming style. Sometimes the variables I want to examine are out of scope or inside of a loop. Is there an easy way to fire up my script and freeze at a certain point inside of IRB? I guess I'm looking for an easier way to debug my ruby code without breaking my F5(compile) key. Maybe a more experience ruby developer can share with me a more streamlined method of development.
0
[ 2, 184, 20, 19, 10365, 106, 1373, 9194, 10811, 77, 51, 522, 953, 60, 800, 3726, 3726, 31, 589, 749, 20, 477, 21, 574, 161, 20, 18399, 31, 7549, 29, 51, 1826, 10811, 9664, 413, 2594, 1130, 9, 871, 31, 5664, 275, 31, 7549, 29, 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...
Recommended IRC server (ircd) for a small site? === The situation: I want to play around with IRC bots as general communications interfaces to other code I am investigating. The server hardware would be old and low-memory, but running on a relatively up-to-date Debian GNU/Linux install. I don't expect more than a hundred users at a time, tops, and probably in the single-digits most of the time. The interfaces are more of interest here than the server itself, so I'd prefer something relatively simple to maintain over something with a huge number of configuration and tuning options more useful to a larger site. Referencing the <a href="http://en.wikipedia.org/wiki/Comparison_of_IRC_daemons">Wikipedia comparison</a> and the <a href="http://www.google.com/Top/Computers/Software/Internet/Servers/Chat/IRC/">Google PageRank list</a> against the available package list for Debian comes up with the following top contenders: <a href="http://coder-com.undernet.org/">Undernet</a> (ircd-ircu), <a href="http://www.ircd-ratbox.org/">Ratbox</a> (ircd-ratbox), and <a href="http://www.inspircd.org/>Inspire</a> (inspircd). Unfortunately, I can't find any serious comparisons of them, so I'm hoping that asking here will provide a faster solution than just trying them one at a time until something frustrates me enough to move. Thanks in advance for any advice.
0
[ 2, 5773, 31, 5453, 8128, 13, 5, 1523, 6324, 6, 26, 21, 284, 689, 60, 800, 3726, 3726, 14, 1858, 45, 31, 259, 20, 418, 140, 29, 31, 5453, 11012, 18, 28, 297, 3380, 6573, 18, 20, 89, 1797, 31, 589, 12490, 9, 14, 8128, 7610, 83...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse Ganymede not validating JSPs properly === I just installed Ganymede and am exploring an old project in it. All of my JSPs are giving me weird validation errors. I'm seeing stuff like - Syntax error on token "}", delete this token Syntax error on token "catch", Identifier expected Syntax error, insert "Finally" to complete TryStatement I'm doing best practice stuff here, no scriplets or anything, so I think that Eclipse is incorrectly applying a Java class validator to my JSPs. Any idea on how to stop that from happening?
0
[ 2, 11652, 7890, 93, 4688, 62, 52, 7394, 1880, 487, 18, 1919, 7428, 800, 3726, 3726, 31, 114, 4066, 7890, 93, 4688, 62, 17, 589, 11748, 40, 315, 669, 19, 32, 9, 65, 16, 51, 487, 18, 1919, 50, 1438, 55, 5455, 27999, 11908, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to pass page's meta tags in ASP.NET MVC? === I'm playing with ASP.NET MVC for the last few days and was able to build a small site. Everything works great. Now, I need to pass the page's META tags (title, description, keywords, etc.) via the ViewData. (i'm using a master page). How you're dealing with this? Thank you in advance.
0
[ 2, 184, 20, 1477, 2478, 22, 18, 7618, 3383, 18, 19, 28, 306, 9, 2328, 307, 8990, 60, 800, 3726, 3726, 31, 22, 79, 791, 29, 28, 306, 9, 2328, 307, 8990, 26, 14, 236, 310, 509, 17, 23, 777, 20, 1895, 21, 284, 689, 9, 796, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Database Design === I need to create a database to store simulation results. What resources are out there to help me design this?
0
[ 2, 6018, 704, 800, 3726, 3726, 31, 376, 20, 1600, 21, 6018, 20, 1718, 10926, 1736, 9, 98, 2566, 50, 70, 80, 20, 448, 55, 704, 48, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 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...
Operating Systems that *are* the application === Conventional operating systems launch and provide services to applications. The app is like a black-box to the OS, and the app provides the UI for getting real work done with the computer. Are there any operating systems which are the other way around? Where the OS provides the UI for doing useful work with the computer, and applications come in the form of plugins that teach the OS how to do new tricks? Like, say the OS is geared towards communication, and instead of a third-party application providing an SSH terminal, it provides a plugin of the basic SSH mechanism that the OS can use anywhere. Now the spell-checker can load a dictionary of customer names over a secure channel, because the spell-checker was also a plugin; uncompiled and with lots of meta-data so the OS can interpret it at a higher-level and change the call to load the database. This is pure curiosity, so it doesn't matter if the OS is commercial, a hobby, or academic research.
0
[ 2, 2455, 1242, 30, 1637, 1509, 2483, 14, 3010, 800, 3726, 3726, 6533, 2455, 1242, 3394, 17, 1181, 687, 20, 3767, 9, 14, 4865, 25, 101, 21, 319, 8, 5309, 20, 14, 13, 759, 15, 17, 14, 4865, 1927, 14, 13, 5661, 26, 1017, 683, 170...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Proper place to call an event? === I have a Windows Form project that I've just started. On the form I have a listbox that I'm loading with Products. When someone double clicks a Product, I want it to raise a ProductChanged event. Other things in my project will subscribe to this event and update things like other parts of the GUI when the Product changes. My question is, where should the event be and who should raise it? Should the event be on the form and be raised by the listbox's double click handler? Or should I set it up where the event is in my Products class and the listbox calls a method on this class to let it know that the product has changed. And then the Product class will raise the event? Or should it be done another way?
0
[ 2, 4119, 209, 20, 645, 40, 807, 60, 800, 3726, 3726, 31, 57, 21, 1936, 505, 669, 30, 31, 22, 195, 114, 373, 9, 27, 14, 505, 31, 57, 21, 968, 5309, 30, 31, 22, 79, 12797, 29, 1985, 9, 76, 737, 1494, 10840, 18, 21, 2374, 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...
SQL Server normalization tactic: varchar vs int Identity === I'm just wondering what the optimal solution is here. Say I have a normalized database. The primary key of the whole system is a varchar. What I'm wondering is should I relate this varchar to an int for normalization or leave it? It's simpler to leave as a varchar, but it might be more optimal For instance I can have People ====================== name varchar(10) DoB DateTime Height int Phone_Number ====================== name varchar(10) number varchar(15) Or I could have People ====================== id int Identity name varchar(10) DoB DateTime Height int Phone_Number ====================== id int number varchar(15) Add several other one-to-many relationships of course. What do you all think? Which is better and why?
0
[ 2, 4444, 255, 8128, 1826, 1829, 13, 6981, 1786, 45, 4033, 5433, 4611, 19, 38, 3270, 800, 3726, 3726, 31, 22, 79, 114, 5712, 98, 14, 17586, 4295, 25, 235, 9, 395, 31, 57, 21, 1826, 1333, 6018, 9, 14, 1256, 1246, 16, 14, 979, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ORA-01031: insufficient privileges when creating package === I'm getting ORA-01031: insufficient privileges when creating a package my own schema. Shouldn't I have complete control over my schema. If this is not the case, what privileges does my schema need? Thanks in advance.
0
[ 2, 54, 58, 8, 387, 1036, 3513, 45, 14748, 15977, 76, 2936, 6030, 800, 3726, 3726, 31, 22, 79, 1017, 54, 58, 8, 387, 1036, 3513, 45, 14748, 15977, 76, 2936, 21, 6030, 51, 258, 23874, 9, 5714, 22, 38, 31, 57, 1279, 569, 84, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any free Text To Speech for browsers? === Wondering if there is any Text to Speech software available as a plug in for IE or Firefox.
0
[ 2, 186, 551, 1854, 20, 2974, 26, 16495, 18, 60, 800, 3726, 3726, 5712, 100, 80, 25, 186, 1854, 20, 2974, 2306, 904, 28, 21, 10922, 19, 26, 13, 660, 54, 535, 18219, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
JAXB Binding Customization === Whiling trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal class inheritance loop. Outer class OrderPropertyList may not subclass from inner class: OrderPropertyList My xsd define a element to group a unbounded element like this: <element minOccurs="0" name="orderPropertyList"> <complexType> <sequence> <element maxOccurs="unbounded" name="orderProperty" type="tns:orderProperty" /> </sequence> </complexType> </element> And my customization binding follows as specified on [this page][1], but it doesn´t work. Here my binding: <jaxb:bindings schemaLocation="../xsd/Schema.xsd" node="/xs:schema"> <jaxb:bindings node="//xs:element[@name='orderPropertyList']"> <jaxb:class name="OrderPropertyList"/> </jaxb:bindings> </jaxb:bindings> My intention is to generate a individual class for orderPropertyList, not the default behave that is generating a inner class inside the root element of the xsd. I´ve watched [someone with the same intention][2] solving as described, but it doesn´t work properly for me. :( JAXB version: Specification-Version: 2.1 Implementation-Version: 2.1.8 Any help? [1]: http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html [2]: http://forums.java.net/jive/thread.jspa?threadID=15633
0
[ 2, 11712, 220, 8728, 5816, 1829, 800, 3726, 3726, 13, 9373, 802, 749, 20, 7920, 2684, 37, 21, 993, 18, 43, 15, 31, 330, 48, 7019, 45, 8247, 9, 9949, 9, 5564, 4941, 512, 3073, 1130, 10066, 872, 45, 5143, 718, 13852, 5293, 9, 4896...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Compatibility Between Integers and Characters === How does C handle converting between integers and characters? Say you've declared an integer variable and ask the user for a number but they input a string instead. What would happen?
0
[ 2, 272, 13, 21618, 128, 13820, 18, 17, 1766, 800, 3726, 3726, 184, 630, 272, 3053, 19583, 128, 13820, 18, 17, 1766, 60, 395, 42, 22, 195, 2482, 40, 13820, 7612, 17, 1349, 14, 4155, 26, 21, 234, 47, 59, 6367, 21, 3724, 700, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I prevent Excel from rendering the spreadsheet as my macro calculates it? === My macro updates a large spreadsheet with numbers, but it runs very slowly as excel is rendering the result as it computes it. How do I stop excel from rendering the output until the macro is complete?
0
[ 2, 184, 107, 31, 2501, 20700, 37, 15307, 14, 1789, 17627, 28, 51, 9069, 18469, 18, 32, 60, 800, 3726, 3726, 51, 9069, 16779, 21, 370, 1789, 17627, 29, 2116, 15, 47, 32, 1461, 253, 1447, 28, 20700, 25, 15307, 14, 829, 28, 32, 239...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you handle a very large vector in Ruby? === I'm planning to write a program in Ruby to analyse some data which has come back from an online questionnaire. There are hundreds of thousands of responses, and each respondent answers about 200 questions. Each question is multiple-choice, so there are a fixed number of possible responses to each. The intention is to use a piece of demographic data given by each respondent to train a system which can then guess that same piece of demographic data (age, for example) from a respondent who answers the same questionnaire, but doesn't specify the demographic data. So I plan to use a vector (in the mathematical sense, not in the data structure sense) to represent the answers for a given respondent. This means each vector will be large (over 200 elements), and the total data set will be huge. I plan to store the data in a MySQL database. So. 2 questions: 1) How should I store this in the database? One row per response to a single question, or one row per respondent? Or something else? 2) I'm planning to use something like the k-nearest neighbour algorithm, or a simple machine learning algorithm like a naive bayesian classifier to learn to classify new responses. Should I manipulate the data purely through SQL or should I load it into memory and store it in some kind of vast array? Thanks!
0
[ 2, 184, 83, 42, 3053, 21, 253, 370, 7497, 19, 10811, 60, 800, 3726, 3726, 31, 22, 79, 2334, 20, 2757, 21, 625, 19, 10811, 20, 13, 21702, 109, 1054, 56, 63, 340, 97, 37, 40, 2087, 29499, 9, 80, 50, 4541, 16, 3805, 16, 13231, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 format Oracle SQL text-only select output. === I am using Oracle SQL (in SQLDeveloper, so I don't have access to SQLPLUS commands such as COLUMN) to execute a query that looks something like this: select assigner_staff_id as staff_id, active_flag, assign_date, complete_date, mod_date from work where assigner_staff_id = '2096'; The results it give me look something like this: <pre> STAFF_ID ACTIVE_FLAG ASSIGN_DATE COMPLETE_DATE MOD_DATE ---------------------- ----------- ------------------------- ------------------------- ------------------------- 2096 F 25-SEP-08 27-SEP-08 27-SEP-08 02.27.30.642959000 PM 2096 F 25-SEP-08 25-SEP-08 25-SEP-08 01.41.02.517321000 AM 2 rows selected </pre> This can very easily produce a very wide and unwieldy textual report when I'm trying to paste the results as a nicely formatted quick-n-dirty text block into an e-mail or problem report, etc. What's the best way to get rid of all tha extra white space in the output columns when I'm using just plain-vanilla Oracle SQL? So far all my web searches haven't turned up much, as all the web search results are showing me how to do it using formatting commands like COLUMN in SQLPLUS (which I don't have).
0
[ 2, 184, 20, 2595, 15759, 4444, 255, 1854, 8, 4965, 5407, 5196, 9, 800, 3726, 3726, 31, 589, 568, 15759, 4444, 255, 13, 5, 108, 4444, 255, 26051, 106, 15, 86, 31, 221, 22, 38, 57, 1381, 20, 4444, 255, 13349, 14294, 145, 28, 4698,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
User Privileges === Why does a user needs privileges over his own schema to create a packages and triggers?
0
[ 2, 4155, 15977, 800, 3726, 3726, 483, 630, 21, 4155, 2274, 15977, 84, 33, 258, 23874, 20, 1600, 21, 16875, 17, 7286, 18, 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...
[ 1, 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, 0...
Fastest way to convert a possibly-null-terminated ascii byte[] to a string? === I need to convert a (possibly) null terminated array of ascii bytes to a string in C# and the fastest way I've found to do it is by using my UnsafeAsciiBytesToString method shown below. This method uses the String.String(sbyte*) constructor which contains a warning in it's remarks: "The value parameter is assumed to point to an array representing a string encoded using the default ANSI code page (that is, the encoding method specified by Encoding.Default). Note: *** Because the default ANSI code page is system-dependent, the string created by this constructor from identical signed byte arrays may differ on different systems. *** ... *** If the specified array is not null-terminated, the behavior of this constructor is system dependent. For example, such a situation might cause an access violation. *** " Now, I'm positive that the way the string is encoded will never change... but the default codepage on the system that my app is running on might change. So, is there any reason that I shouldn't run screaming from using String.String(sbyte*) for this purpose? using System; using System.Text; namespace FastAsciiBytesToString { static class StringEx { public static string AsciiBytesToString(this byte[] buffer, int offset, int maxLength) { int maxIndex = offset + maxLength; for( int i = offset; i < maxIndex; i++ ) { /// Skip non-nulls. if( buffer[i] != 0 ) continue; /// First null we find, return the string. return Encoding.ASCII.GetString(buffer, offset, i - offset); } /// Terminating null not found. Convert the entire section from offset to maxLength. return Encoding.ASCII.GetString(buffer, offset, maxLength); } public static string UnsafeAsciiBytesToString(this byte[] buffer, int offset) { string result = null; unsafe { fixed( byte* pAscii = &buffer[offset] ) { result = new String((sbyte*)pAscii); } } return result; } } class Program { static void Main(string[] args) { byte[] asciiBytes = new byte[]{ 0, 0, 0, (byte)'a', (byte)'b', (byte)'c', 0, 0, 0 }; string result = asciiBytes.AsciiBytesToString(3, 6); Console.WriteLine("AsciiBytesToString Result: \"{0}\"", result); result = asciiBytes.UnsafeAsciiBytesToString(3); Console.WriteLine("UnsafeAsciiBytesToString Result: \"{0}\"", result); /// Non-null terminated test. asciiBytes = new byte[]{ 0, 0, 0, (byte)'a', (byte)'b', (byte)'c' }; result = asciiBytes.UnsafeAsciiBytesToString(3); Console.WriteLine("UnsafeAsciiBytesToString Result: \"{0}\"", result); Console.ReadLine(); } } }
0
[ 2, 7518, 161, 20, 8406, 21, 2879, 8, 4215, 211, 8, 3964, 12721, 28, 1892, 49, 34, 591, 2558, 500, 20, 21, 3724, 60, 800, 3726, 3726, 31, 376, 20, 8406, 21, 13, 5, 21628, 6, 16203, 13780, 7718, 16, 28, 1892, 49, 34, 3231, 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...
AS3/PureMVC Best Practices? Best code examples of well architected projects? === I am a AS3 noob learning PureMVC and want to write code following best practices so that any other AS3 developer can pick up my code and easily understand what I did, I am tempted to do stuff as I would in JavaScript or Asp.Net/C#, but I have a feeling that might not be the best approach. Thoughts? Links?
0
[ 2, 28, 9280, 21059, 79, 8990, 246, 5242, 60, 246, 1797, 3770, 16, 134, 3338, 69, 2314, 60, 800, 3726, 3726, 31, 589, 21, 28, 240, 90, 4995, 2477, 4267, 79, 8990, 17, 259, 20, 2757, 1797, 249, 246, 5242, 86, 30, 186, 89, 28, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 deploy an ADF Business Component? === I wish to deploy an ADF business component to the middle tier and call it using RMI. I just cannot find any good documentation on this! Any help would be greatly appreciated.
0
[ 2, 184, 107, 31, 17617, 40, 21, 8736, 508, 5912, 60, 800, 3726, 3726, 31, 2536, 20, 17617, 40, 21, 8736, 508, 5912, 20, 14, 772, 7197, 17, 645, 32, 568, 761, 1435, 9, 31, 114, 1967, 477, 186, 254, 13945, 27, 48, 187, 186, 448,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Has anyone found a good set of python plugins for vim -- specifically module completion? === I'm looking for a suite of plugins that can help me finally switch over to vim full-time. Right now I'm using Komodo with some good success, but their vim bindings have enough little errors that I'm tired of it. What I do love in Komodo, though, is the code completion. So, here's what I'm looking for (ordered by importance). - Code completion, meaning: the ability to code complete modules/functions/etc. in *any* module that's on the pythonpath, not just system modules. Bonus points for showing docstrings when completing. - Jump-to a class definition. I'm guessing CTAGS will do this, so how do you all manage automatically updating your tags files? - Project type management for managing buffers: ideally the ability to grep for a filename in a directory structure to open it. Bonus for showing an index of class definitions while a buffer is open. - Bzr integration. Not super important, since most of it I can just drop to the shell to do.
0
[ 2, 63, 1276, 216, 21, 254, 309, 16, 20059, 10922, 108, 18, 26, 1790, 79, 13, 8, 8, 3524, 12613, 5392, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 6160, 16, 10922, 108, 18, 30, 92, 448, 55, 722, 5521, 84, 20, 1790, 79, 503,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 be sure the whole MySQL DB is loaded in memory? === I am running a mysql server. I would like to somehow make sure that the whole DB is loaded into the ram as I heard it would be alot faster. Is this true? and how do I vertify it?
0
[ 2, 184, 92, 31, 44, 562, 14, 979, 51, 18, 22402, 13, 9007, 25, 8572, 19, 1912, 60, 800, 3726, 3726, 31, 589, 946, 21, 51, 18, 22402, 8128, 9, 31, 83, 101, 20, 3625, 233, 562, 30, 14, 979, 13, 9007, 25, 8572, 77, 14, 2843, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Significant figures in the decimal module === So I've decided to try to solve my physics homework by writing some python scripts to solve problems for me. One problem that I'm running into is that significant figures don't always seem to come out properly. For example this handles significant figures properly: from decimal import Decimal >>> Decimal('1.0') + Decimal('2.0') Decimal("3.0") But this doesn't: >>> Decimal('1.00') / Decimal('3.00') Decimal("0.3333333333333333333333333333") So two questions: 1. Am I right that this isn't the expected amount of significant digits, or do I need to brush up on significant digit math? 2. Is there any way to do this without having to set the decimal precision manually? Granted, I'm sure I can use numpy to do this, but I just want to know if there's a way to do this with the decimal module out of curiosity.
0
[ 2, 1505, 2957, 19, 14, 26380, 12613, 800, 3726, 3726, 86, 31, 22, 195, 868, 20, 1131, 20, 8402, 51, 4339, 22334, 34, 1174, 109, 20059, 17505, 20, 8402, 1716, 26, 55, 9, 53, 1448, 30, 31, 22, 79, 946, 77, 25, 30, 1505, 2957, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating ad-supported shareware === Folks, I'm working on a little piece of rich client software that I'd like to distribute for free. That is, I'd still like to make money on it, but I'd like the revenue to come from advertising. Do you know of an advertising platform that works well for client apps? I'd like the ads to be completely unobtrusive (like Google AdSense is for websites). I'd hate to have any kind of popups or other horrible UX. I just want a tiny little ad in the corner of my addin. It would be great if ads could be contextual (i.e. if the platform had an API to tell it what the user is looking at the current moment - give some keywords - to show the most relevant ads). Any thoughts/ideas?
0
[ 2, 2936, 21, 43, 8, 24909, 1891, 5011, 800, 3726, 3726, 14563, 15, 31, 22, 79, 638, 27, 21, 265, 1855, 16, 2042, 6819, 2306, 30, 31, 22, 43, 101, 20, 14751, 26, 551, 9, 30, 25, 15, 31, 22, 43, 174, 101, 20, 233, 875, 27, 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...
What are the consequences of not closing database connection after an error? === I have an application that is causing a lot of headaches. It's a .NET app connecting to SQL Server 2005 via a web service. The program has grid that is filled by a long running stored procedure that is prone to timing out. In the case when it does time out and a SqlException is thrown, there is no execption handling to close the connection. What are the actual consequences of this condition? I think that the framework or SQL Server probably takes care of it one way or another but am not sure.
0
[ 2, 98, 50, 14, 8360, 16, 52, 4239, 6018, 2760, 75, 40, 7019, 60, 800, 3726, 3726, 31, 57, 40, 3010, 30, 25, 3242, 21, 865, 16, 14276, 18, 9, 32, 22, 18, 21, 13, 9, 2328, 4865, 6440, 20, 4444, 255, 8128, 812, 1197, 21, 2741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 get the RGB values for a pixel on an image on the iphone === I am writing an iPhone application and need to essentially implement something equivalent to the 'eyedropper' tool in photoshop, where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its color. Getting the UIImage is the easy part, but is there a way to convert the UIImage data into a bitmap representation in which I could extract this information for a given pixel? A working code sample would be most appreciated, and note that I am not concerned with the alpha value.
0
[ 2, 184, 20, 164, 14, 761, 11400, 4070, 26, 21, 18146, 27, 40, 1961, 27, 14, 21024, 800, 3726, 3726, 31, 589, 1174, 40, 21024, 3010, 17, 376, 20, 7398, 8713, 301, 4602, 20, 14, 13, 22, 9256, 661, 8763, 22, 5607, 19, 7064, 5347, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting started with Android === So, I'll be getting my T-Mobile G1 within a month or so, and I'm excited to start developing for it. Has anyone started using it yet? Is there a dev wiki or anything set up for it yet?
4
[ 2, 1017, 373, 29, 13005, 800, 3726, 3726, 86, 15, 31, 22, 211, 44, 1017, 51, 13, 38, 8, 12571, 489, 165, 363, 21, 1617, 54, 86, 15, 17, 31, 22, 79, 7178, 20, 799, 3561, 26, 32, 9, 63, 1276, 373, 568, 32, 768, 60, 25, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Add WCF Service reference fails. And VS2008 exits === I have a super-simple WCF Service. I host it on my local machine using IIS7. When I add a service reference to my service, Visual Studio tells me there was an error. I can click a Details link, and that bring up a dialog box saying: Object reference not set to an instance of an object. I can build my WCF service with no problems, and my client app also builds successfully. I can even use svcutil http://localhost/logservice/logservice.svc?wsdl to generate a client. I've seen this error in my Windows Event Log/Viewer: .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (706B7706) (80131506) I found a hotfix online, but that won't install... I think this has something to do with the client solution from where I add the service reference. I can add a service refenrece using the the "Discover services in solution" function. I just need to add a service reference in a solution elsewhere, so this is driving me nuts. My WSDL looks as follows: <?xml version="1.0" encoding="utf-8" ?> - <wsdl:definitions name="LogService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> - <sp:ProtectionToken> - <wsp:Policy> - <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> - <wsp:Policy> <sp:RequireDerivedKeys /> - <sp:BootstrapPolicy> - <wsp:Policy> - <sp:SignedParts> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts> <sp:Body /> </sp:EncryptedParts> - <sp:SymmetricBinding> - <wsp:Policy> - <sp:ProtectionToken> - <wsp:Policy> - <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> - <wsp:Policy> <sp:RequireDerivedKeys /> </wsp:Policy> </sp:SpnegoContextToken> </wsp:Policy> </sp:ProtectionToken> - <sp:AlgorithmSuite> - <wsp:Policy> <sp:Basic256 /> </wsp:Policy> </sp:AlgorithmSuite> - <sp:Layout> - <wsp:Policy> <sp:Strict /> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp /> <sp:EncryptSignature /> <sp:OnlySignEntireHeadersAndBody /> </wsp:Policy> </sp:SymmetricBinding> - <sp:Wss11> - <wsp:Policy> <sp:MustSupportRefKeyIdentifier /> <sp:MustSupportRefIssuerSerial /> <sp:MustSupportRefThumbprint /> <sp:MustSupportRefEncryptedKey /> </wsp:Policy> </sp:Wss11> - <sp:Trust10> - <wsp:Policy> <sp:MustSupportIssuedTokens /> <sp:RequireClientEntropy /> <sp:RequireServerEntropy /> </wsp:Policy> </sp:Trust10> </wsp:Policy> </sp:BootstrapPolicy> </wsp:Policy> </sp:SecureConversationToken> </wsp:Policy> </sp:ProtectionToken> - <sp:AlgorithmSuite> - <wsp:Policy> <sp:Basic256 /> </wsp:Policy> </sp:AlgorithmSuite> - <sp:Layout> - <wsp:Policy> <sp:Strict /> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp /> <sp:EncryptSignature /> <sp:OnlySignEntireHeadersAndBody /> </wsp:Policy> </sp:SymmetricBinding> - <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> <sp:MustSupportRefKeyIdentifier /> <sp:MustSupportRefIssuerSerial /> <sp:MustSupportRefThumbprint /> <sp:MustSupportRefEncryptedKey /> </wsp:Policy> </sp:Wss11> - <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> <sp:MustSupportIssuedTokens /> <sp:RequireClientEntropy /> <sp:RequireServerEntropy /> </wsp:Policy> </sp:Trust10> <wsaw:UsingAddressing /> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogErrorSimple_Input_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogErrorSimple_output_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogErrorAdvanced_Input_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogErrorAdvanced_output_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogBehavior_Input_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsp:Policy wsu:Id="WSHttpBinding_ILogService_LogBehavior_output_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> </sp:SignedParts> - <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:Body /> </sp:EncryptedParts> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> - <wsdl:types> - <xsd:schema targetNamespace="http://tempuri.org/Imports"> <xsd:import schemaLocation="http://yakinix.admin/LogService.svc?xsd=xsd0" namespace="http://tempuri.org/" /> <xsd:import schemaLocation="http://yakinix.admin/LogService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" /> </xsd:schema> </wsdl:types> - <wsdl:message name="ILogService_LogErrorSimple_InputMessage"> <wsdl:part name="parameters" element="tns:LogErrorSimple" /> </wsdl:message> - <wsdl:message name="ILogService_LogErrorSimple_OutputMessage"> <wsdl:part name="parameters" element="tns:LogErrorSimpleResponse" /> </wsdl:message> - <wsdl:message name="ILogService_LogErrorAdvanced_InputMessage"> <wsdl:part name="parameters" element="tns:LogErrorAdvanced" /> </wsdl:message> - <wsdl:message name="ILogService_LogErrorAdvanced_OutputMessage"> <wsdl:part name="parameters" element="tns:LogErrorAdvancedResponse" /> </wsdl:message> - <wsdl:message name="ILogService_LogBehavior_InputMessage"> <wsdl:part name="parameters" element="tns:LogBehavior" /> </wsdl:message> - <wsdl:message name="ILogService_LogBehavior_OutputMessage"> <wsdl:part name="parameters" element="tns:LogBehaviorResponse" /> </wsdl:message> - <wsdl:portType name="ILogService"> - <wsdl:operation name="LogErrorSimple"> <wsdl:input wsaw:Action="http://tempuri.org/ILogService/LogErrorSimple" message="tns:ILogService_LogErrorSimple_InputMessage" /> <wsdl:output wsaw:Action="http://tempuri.org/ILogService/LogErrorSimpleResponse" message="tns:ILogService_LogErrorSimple_OutputMessage" /> </wsdl:operation> - <wsdl:operation name="LogErrorAdvanced"> <wsdl:input wsaw:Action="http://tempuri.org/ILogService/LogErrorAdvanced" message="tns:ILogService_LogErrorAdvanced_InputMessage" /> <wsdl:output wsaw:Action="http://tempuri.org/ILogService/LogErrorAdvancedResponse" message="tns:ILogService_LogErrorAdvanced_OutputMessage" /> </wsdl:operation> - <wsdl:operation name="LogBehavior"> <wsdl:input wsaw:Action="http://tempuri.org/ILogService/LogBehavior" message="tns:ILogService_LogBehavior_InputMessage" /> <wsdl:output wsaw:Action="http://tempuri.org/ILogService/LogBehaviorResponse" message="tns:ILogService_LogBehavior_OutputMessage" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="WSHttpBinding_ILogService" type="tns:ILogService"> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_policy" /> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="LogErrorSimple"> <soap12:operation soapAction="http://tempuri.org/ILogService/LogErrorSimple" style="document" /> - <wsdl:input> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogErrorSimple_Input_policy" /> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogErrorSimple_output_policy" /> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="LogErrorAdvanced"> <soap12:operation soapAction="http://tempuri.org/ILogService/LogErrorAdvanced" style="document" /> - <wsdl:input> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogErrorAdvanced_Input_policy" /> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogErrorAdvanced_output_policy" /> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="LogBehavior"> <soap12:operation soapAction="http://tempuri.org/ILogService/LogBehavior" style="document" /> - <wsdl:input> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogBehavior_Input_policy" /> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <wsp:PolicyReference URI="#WSHttpBinding_ILogService_LogBehavior_output_policy" /> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="LogService"> - <wsdl:port name="WSHttpBinding_ILogService" binding="tns:WSHttpBinding_ILogService"> <soap12:address location="http://yakinix.admin/LogService.svc" /> - <wsa10:EndpointReference> <wsa10:Address>http://yakinix.admin/LogService.svc</wsa10:Address> - <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity"> <Dns>localhost</Dns> </Identity> </wsa10:EndpointReference> </wsdl:port> </wsdl:service> </wsdl:definitions> My system.serviceModel of web.config looks as follows: <system.serviceModel> <services> <service behaviorConfiguration="LogServiceBehavior" name="LogService"> <endpoint address="" binding="wsHttpBinding" contract="ILogService"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="LogServiceBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
2
[ 2, 3547, 11801, 410, 365, 2801, 13614, 9, 17, 4611, 2753, 4350, 18, 800, 3726, 3726, 31, 57, 21, 1026, 8, 24629, 11801, 410, 365, 9, 31, 2015, 32, 27, 51, 375, 1940, 568, 595, 18, 465, 9, 76, 31, 3547, 21, 365, 2801, 20, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Memory leak detection tools in XCode === Does Apple's Xcode development enviroment provide any tools for memory leak detection? I am especially interested in tools that apply to the iPhone SDK. (currently my favorite platfrom for hobby programming projects) Documentations/tutorials for said tools would be very helpful.
0
[ 2, 1912, 11724, 11643, 4672, 19, 993, 9375, 800, 3726, 3726, 630, 4037, 22, 18, 993, 9375, 522, 21314, 661, 1130, 1181, 186, 4672, 26, 1912, 11724, 11643, 60, 31, 589, 1118, 3158, 19, 4672, 30, 5645, 20, 14, 21024, 13, 18, 43, 197...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between AddConcreteType and TheDefaultIsConcreteType in StructureMap? === I'm setting up StructureMap and it seems like everything I want to do there are two ways to do it and it's unclear to me what the difference is between them. For instance, what's the difference between these two lines: StructureMapConfiguration.ForRequestedType<IConsumer>().AddConcreteType<Consumer>(); StructureMapConfiguration.ForRequestedType<IConsumer>().TheDefaultIsConcreteType<Consumer>(); Similarly, what's the difference between using AddInstanceOf and ForRequestedType?
0
[ 2, 98, 22, 18, 14, 2841, 128, 3547, 1126, 6037, 591, 4474, 17, 14, 13862, 9708, 403, 1126, 6037, 591, 4474, 19, 1411, 15022, 60, 800, 3726, 3726, 31, 22, 79, 2697, 71, 1411, 15022, 17, 32, 2206, 101, 796, 31, 259, 20, 107, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Alternative to phpUnderControl - is it the best? === I am searching for a good system for PHP, which does UnitTesting, Subversion, Coding Standards. I would love to hear your suggestions and which one is the best and why. I will be running it on a debian server so anything which runs on mac or windows servers would be out of the question.
0
[ 2, 2676, 20, 13, 26120, 4579, 12898, 13, 8, 25, 32, 14, 246, 60, 800, 3726, 3726, 31, 589, 5792, 26, 21, 254, 329, 26, 13, 26120, 15, 56, 630, 1237, 10543, 68, 15, 972, 10898, 15, 13, 15458, 3364, 9, 31, 83, 339, 20, 990, 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...
Is the mono .NET project included in latest release of most popular linux distros? === I'm wondering if mono.net is included in the default installation of Ubuntu, Kubuntu, and Fedora, and other popular distros? If so, does anyone have a good reason why NOT to use it to develop a new GUI application targeted mainly for linux?
0
[ 2, 25, 14, 4129, 13, 9, 2328, 669, 506, 19, 5736, 830, 16, 127, 844, 13024, 1460, 3996, 18, 60, 800, 3726, 3726, 31, 22, 79, 5712, 100, 4129, 9, 2328, 25, 506, 19, 14, 12838, 7758, 16, 287, 12968, 2473, 15, 16032, 1020, 2473, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 varchar and nvarchar === Is it just that nvarchar supports multibyte characters? If that is the case is there really any point, other than storage concerns, to using varchars?
0
[ 2, 98, 25, 14, 2841, 128, 4033, 5433, 17, 13, 103, 3311, 5433, 800, 3726, 3726, 25, 32, 114, 30, 13, 103, 3311, 5433, 6747, 1889, 23246, 1766, 60, 100, 30, 25, 14, 610, 25, 80, 510, 186, 454, 15, 89, 119, 4326, 4823, 15, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the best MPI implementation === I have to implement MPI system in a cluster. If anyone here has any experience with MPI (MPICH/OpenMPI), I'd like to know which is better and how the performance can be boosted on a cluster of x86_64 boxes.
1
[ 2, 98, 25, 14, 246, 4628, 49, 6123, 800, 3726, 3726, 31, 57, 20, 8713, 4628, 49, 329, 19, 21, 7460, 9, 100, 1276, 235, 63, 186, 1496, 29, 4628, 49, 13, 5, 2554, 3870, 118, 10157, 2554, 49, 6, 15, 31, 22, 43, 101, 20, 143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 take the feed for a random program from the clock, programming in assembler === Compiler, TASM 5
0
[ 2, 184, 20, 247, 14, 4063, 26, 21, 5477, 625, 37, 14, 4229, 15, 3143, 19, 13, 13736, 139, 800, 3726, 3726, 21486, 15, 12892, 79, 331, 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...
[ 1, 1, 1, 1, 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...
What do you use to test your browser extension / BHO? === What are the best approaches / tools to test browser extensions? In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and a good deal of database interaction. Up till now we've used automated unit tests for testing our model/business objects but manual testing for the UI/scenario testing. I'm thinking of starting to use Selenium for control of the browser, and then will need to add to it some other scripting to control and assert behaviour of my UI elements and check the database for correct results. Any recommendations? What does anyone else in a similar situation do?
0
[ 2, 98, 107, 42, 275, 20, 1289, 154, 16495, 3896, 13, 118, 334, 1807, 60, 800, 3726, 3726, 98, 50, 14, 246, 7501, 13, 118, 4672, 20, 1289, 16495, 17529, 60, 19, 51, 610, 31, 170, 27, 40, 13, 660, 16495, 448, 106, 3095, 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...
Searching/reading another file from awk based on current file's contents, is it possible? === I'm processing a huge file with (GNU) `awk`, (other available tools are: Linux shell tools, some old (>5.0) version of Perl, but can't install modules). My problem: if some field1, field2, field3 contain X, Y, Z I must search for a file in another directory which contains field4, and field5 on one line, and insert some data from the found file to the current output. Is it possible to do it with `awk`? Thanks in advance.
0
[ 2, 5792, 118, 22883, 226, 3893, 37, 13, 3885, 197, 432, 27, 866, 3893, 22, 18, 8478, 15, 25, 32, 938, 60, 800, 3726, 3726, 31, 22, 79, 5511, 21, 2329, 3893, 29, 13, 5, 263, 4215, 6, 13, 1, 3885, 197, 1, 15, 13, 5, 9539, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OpenID retrofitting and can I trust where sensitive data is involved? === I am considering adding OpenID to our customer facing admin and control panel areas... **1 - Associating OpenID's With Existing Accounts** For customers that already have accounts with us, I'm thinking they would need to login using their existing account number that we issue and then I'd have a mechanism to associate their OpenID with that account in their account management area (call it 'OpenID Manager' for the sake of argument). In the 'OpenID Manager', presuming the user already has an OpenID, would I authenticate the user against their OpenID then associate with our generated account number for future OpenID logins (assuming that they authenticated ok)? **2 - Sensitive Data** Although we don't store full credit card data in our DB there is other data that is sensitive, invoices, domain reg details etc. After reading this article [http://idcorner.org/2007/08/22/the-problems-with-openid/][1] I'm a little cautious about the idea of using OpenID in this way, what's the general consensus with you folks? [1]: http://idcorner.org/2007/08/22/the-problems-with-openid/
0
[ 2, 368, 1340, 13534, 23483, 17, 92, 31, 1527, 113, 7830, 1054, 25, 1013, 60, 800, 3726, 3726, 31, 589, 5154, 4721, 368, 1340, 20, 318, 7705, 4325, 21, 43, 2160, 17, 569, 4113, 924, 9, 9, 9, 13, 1409, 165, 13, 8, 28, 18, 16325,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What would the best tool to create a natural DSL in Java? === A couple of days ago, I read a blog entry (http://ayende.com/Blog/archive/2008/09/08/Implementing-generic-natural-language-DSL.aspx) where the author discuss the idea of a generic natural language DSL parser using .NET. The brilliant part of his idea, in my opinion, is that the text is parsed and matched against classes using the same name as the sentences. Taking as an example, the following lines: <pre> Create user user1 with email test@email.com and password test Log user1 in Take user1 to category t-shirts Make user1 add item Flower T-Shirt to cart Take user1 to checkout </pre> Would get converted using a collection of "known" objects, that takes the result of parsing. Some example objects would be (using Java for my example): public class CreateUser { private final String user; private String email; private String password; public CreateUser(String user) { this.user = user; } public void withEmail(String email) { this.email = email; } public String andPassword(String password) { this.password = password; } } So, when processing the first sentence, CreateUser class would be a match (obviously because it's a concatenation of "create user") and, since it takes a parameter on the constructor, the parser would take "user1" as being the user parameter. After that, the parser would identify that the next part, "with email" also matches a method name, and since that method takes a parameter, it would parse "test@email.com" as being the email parameter. I think you get the idea by now, right? One quite clear application of that, at least for me, would be to allow application testers create "testing scripts" in natural language and then parse the sentences into classes that uses JUnit to check for app behaviors. I'd like to hear ideas, tips and opinions on tools or resource that could code such parser using Java. Better yet if we could avoid using complex lexers, or frameworks like ANTLR, which I think maybe would be using a hammer to kill a fly. More than that, if anyone is up to start an open source project for that, I would definitely be interested.
0
[ 2, 98, 83, 14, 246, 5607, 20, 1600, 21, 1112, 13, 43, 18, 255, 19, 8247, 60, 800, 3726, 3726, 21, 1335, 16, 509, 1464, 15, 31, 1302, 21, 8146, 2792, 13, 5, 21127, 6903, 3707, 17264, 9, 960, 118, 220, 5567, 118, 23941, 118, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 store directory / hierarchy / tree structure in the database? === How do i store a directory / hierarchy / tree structure in the database? Namely MSSQL Server.
0
[ 2, 184, 20, 1718, 16755, 13, 118, 14417, 13, 118, 1541, 1411, 19, 14, 6018, 60, 800, 3726, 3726, 184, 107, 31, 1718, 21, 16755, 13, 118, 14417, 13, 118, 1541, 1411, 19, 14, 6018, 60, 8525, 4235, 18, 22402, 8128, 9, 3, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Comparison of Code Review Tools/Systems === There are a number of tools/systems available aimed at streamlining and enhancing the code review process, including: - [CodeStriker][1] - [Review Board][2], code review system in use at VMWare - [Code Collaborator][3], commercial product by SmartBear - [Rietveld][4], based on Modrian, the code review system in use at Google - [Crucible][5], commercial product by Atlassian These systems all have varying feature sets, and differ in degrees of maturity and polish; the selection is a little bewildering for someone who is evaluating code review systems for the frist time. Some of these tools have already been mentioned in other questions/answers on StackOverflow, but I would like to see a more comprehensive comparison of the more popular systems, especially with respect to: - integration with source control systems - integration with bug tracking systems - supported workflow (reviews pre/post commit, review or contiguous/non-contigous revision ranges, etc) - deployment/maintenance requirements [1]: http://codestriker.sourceforge.net/ [2]: http://www.review-board.org/ [3]: http://smartbear.com/codecollab.php [4]: http://code.google.com/p/rietveld/ [5]: http://www.atlassian.com/software/crucible/
4
[ 2, 6050, 16, 1797, 1487, 4672, 118, 10724, 18, 800, 3726, 3726, 80, 50, 21, 234, 16, 4672, 118, 10724, 18, 904, 5414, 35, 3766, 8930, 17, 13, 23267, 14, 1797, 1487, 953, 15, 215, 45, 13, 8, 636, 9375, 18827, 139, 500, 2558, 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...
What are the best practices for designing a RESTful public API on Rails? === What are the best practices for this? Rails comes with RESTful resources out of the box, but do you use those for your actual public API? If so, how would you accomplish versioning of your API (i.e. example.com/api/v2/foo/bar, etc)?
0
[ 2, 98, 50, 14, 246, 5242, 26, 15026, 21, 760, 1566, 317, 21, 2159, 27, 2240, 18, 60, 800, 3726, 3726, 98, 50, 14, 246, 5242, 26, 48, 60, 2240, 18, 1624, 29, 760, 1566, 2566, 70, 16, 14, 1649, 15, 47, 107, 42, 275, 273, 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...
Simple enough explanation of a Distributed Hash Table (DHT) === Could any one give an explanation on how a DHT works. Nothing too heavy, just the basics.
0
[ 2, 1935, 511, 5764, 16, 21, 4387, 19170, 859, 13, 5, 9756, 38, 6, 800, 3726, 3726, 110, 186, 53, 590, 40, 5764, 27, 184, 21, 10231, 38, 693, 9, 626, 266, 1278, 15, 114, 14, 2125, 18, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
2 column layout in CSS === I want a nice 2 column layout using CSS float's. Column#1 160 px Column#2 100% (i.e. the rest of the space). I want to place the Col#2's div first, so my layout looks like: <div id="header"></div> <div id="content"> <div id="col2"></div> <div id="col1"></div> </div> <div id="footer"></div> What has to be get this effect?
0
[ 2, 172, 4698, 9106, 19, 272, 18, 18, 800, 3726, 3726, 31, 259, 21, 2210, 172, 4698, 9106, 568, 272, 18, 18, 11510, 22, 18, 9, 4698, 5910, 165, 9379, 351, 396, 4698, 5910, 135, 12849, 13, 5, 49, 9, 62, 9, 14, 760, 16, 14, 726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...