text
stringlengths
8
267k
meta
dict
Q: Seq.generate_using is MIA I'm trying to use the Seq.generate_using function but unfortunately, I don't seem to be able to find it. I thought it would be living here: Microsoft.FSharp.Collections.Seq.generate_using But it doesn't. I am getting the error listed below. C:\Users\Owner\Documents\Visual Studio 2008\...
{ "language": "en", "url": "https://stackoverflow.com/questions/440083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transforming Point object when using simple-xml I am serializing a class using simple-xml (http://simple.sourceforge.net/) but when i try to use @Element on a Point object i get an error, how can i transform this Point object? A: You can create a transform like so public class PointTransform implements Transform<Po...
{ "language": "en", "url": "https://stackoverflow.com/questions/440087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: We use Subversion, but our client uses SourceSafe. What are my options? We're about to start a new project, and our client's current application is .NET versioned in SourceSafe. However, we use Subversion internally. This will likely be a "one-time" delivery (complete application rewrite), so they could easily do a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to determine the datatypes of the results of a SQL? We have a SQL query that pulls a large number of fields from many tables/views from a database. We need to put a spec together for integration with a 3rd party, what is the quickest way to compile the data types of the result set? Clarifications: * *There ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What is your definition of a 'Component' in a software Product? We are working on standardizing our Bugzilla application across all projects. The default installation has bugs grouped into Products which have Components and Versions. We are united in our definitions of Product and Version but there is still some con...
{ "language": "en", "url": "https://stackoverflow.com/questions/440128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: locale-independent way of getting standard windows registry security object Is there a way to get the built-in "Everyone" registry security object in a locale-independent manner? I want to make a RegistryAccessRule without needing to translate "Everyone" to each language. A: Use the constructor for SecurityIdentif...
{ "language": "en", "url": "https://stackoverflow.com/questions/440130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL Insert: Test first? As an example, when inserting a record into a table with a unique index, is it best to test first? e.g., $mysqli->query('SELECT email FROM tblUser WHERE email = 'foo@bar.org'); then make sure 0 rows are returned, then do the insert? $mysqli->query('INSERT INTO tblUser ...'); Or is it be...
{ "language": "en", "url": "https://stackoverflow.com/questions/440131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I create a random alpha-numeric string in C++? I'd like to create a random string, consisting of alpha-numeric characters. I want to be able to be specify the length of the string. How do I do this in C++? A: I just tested this, it works sweet and doesn't require a lookup table. rand_alnum() sort of forces o...
{ "language": "en", "url": "https://stackoverflow.com/questions/440133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "211" }
Q: How to catch a unique constraint error in a PL/SQL block? Say I have an Oracle PL/SQL block that inserts a record into a table and need to recover from a unique constraint error, like this: begin insert into some_table ('some', 'values'); exception when ... update some_table set value = 'values' wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/440135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Server-side Push in Rails I'd like to implement a scalable chatroom in rails using AJAX. I know from research that the only scalability happens with a server-side push. My two questions are: 1) In a reasonably efficient chat server, at what point does polling become prohibitive? 2) I really don't want to use Jugger...
{ "language": "en", "url": "https://stackoverflow.com/questions/440140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP to ASP.NET Helper Functions I'm looking at converting a web site from classic ASP to ASP.NET. I'm thinking of doing an agile style approach and providing deliverables as quickly as possible and so am thinking of doing a line by line conversion and creating "bad" ASP.NET and have it all in the ASPX file for phase...
{ "language": "en", "url": "https://stackoverflow.com/questions/440142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program? I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & glGetUniformLocation() can be used to map a string to a location, but what I would really like is the list of strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/440144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Detect version of Java using JavaScript Is there a reliable way of detecting what version of Java is installed on the client's machine using JavaScript? A: Googling for detect "java version" using javascript yields a couple of results, this one looks like it might be useful. In essence, it tries to load a Java app...
{ "language": "en", "url": "https://stackoverflow.com/questions/440160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Dll compatibility between compilers Is there some way to make c++ dlls built with diffrent compilers compatible with each other? The classes can have factory methods for creation and destruction, so each compiler can use its own new/delete (since diffrent runtimes have there own heaps). I tried the following code bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/440161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: textBoxEmployeeName vs employeeNameTextBox Which naming convention do you use and why? I like to use employeeNameTextBox, because: * *It seems more natural from an English language perspective. *I find it's easier to look up with Intellisense. *The convention is similar to the convention used for events (MouseC...
{ "language": "en", "url": "https://stackoverflow.com/questions/440163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: C++ file handling (structures) Following code, when compiled and run with g++, prints '1' twice, whereas I expect '1' to be printed only once, since I am dumping a single structure to the file, but while reading back it seems to be reading two structures. Why? #include <iostream.h> #include <fstream.h> int main(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DataModel for Workflow/Business Process Application What should be the data model for a work flow application? Currently we are using an Entity Attribute Value based model in SQL Server 2000 with the user having the ability to create dynamic forms (on asp.net), but as the data grows performance is getting down and h...
{ "language": "en", "url": "https://stackoverflow.com/questions/440172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: linux c/c++ programming telnet connection io redirection I have a computer (say computer A) whenever computer A gets a connection over a particular telnet port, it launches a program. this program on computer A handles login, authentication etc. One of the jobs it can do is receive files. It handles this by launchin...
{ "language": "en", "url": "https://stackoverflow.com/questions/440175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nightly syncing of TFS to SVN Our development department is going to be using Team Foundation Server for our projects, but we're required to sync up with the company standard SVN server on a nightly basis. Is there any good method to sync them up (TFS to SVN), like a nightly scheduled task that runs an SVN add, rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/440178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I create a strong password string in C++? Would like to create a strong password in C++. Any suggestions? * *I assume it should use alpha (upper and lower), numeric, special characters. *It would be good to be able to specify a minimum length. *It would be great to avoid characters that are hard to visua...
{ "language": "en", "url": "https://stackoverflow.com/questions/440200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does floor() return something that's exactly representable? In C89, floor() returns a double. Is the following guaranteed to work? double d = floor(3.0 + 0.5); int x = (int) d; assert(x == 3); My concern is that the result of floor might not be exactly representable in IEEE 754. So d gets something like 2.99999, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I assign Enter as the trigger key of all JButtons in my Java application? I'm writing a Java Swing application using the Metal look-and-feel. Every time there is a JButton in my application the user uses the Tab key to move the focus to the button and then hits the Enter key. Nothing happens! If he hits the S...
{ "language": "en", "url": "https://stackoverflow.com/questions/440209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I combine cells in a row in a latex-table? In a table I want to combine some of the columns, but not in all rows. How can I realize this with LaTeX? A: \multicolumn{<number>}{<formatting>}{<contents>} Where the arguments are * *Number of columns to merge *the justification and formating string (just lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/440228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: To PerformanceCounter or To Write Custom Monitoring? I have a Windows service that runs implementations of a framework across multiple threads. Each running instance has several things in common that I need to keep track of, for example, number of items processed, last time an item was processed, etc. On top of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/440232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vim Case-Agnostic Regex I've run into the following case a few times and I was wondering if there is a fast way to handle it in Vim. I'll have a source file like the following: #ifndef _FOO_H_ #define _FOO_H_ class Foo { Foo(int foo); }; #endif And I would like to convert it to the following: #ifndef _BAR_H_ #...
{ "language": "en", "url": "https://stackoverflow.com/questions/440258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Java generics: List> = new LinkedList>() is prohibited? How come, in Java, I can write List<?> list = new LinkedList<Double>(); but not List<Container<?>> list = new LinkedList<Container<Double>>(); where Container is just something like public class Container<T> { ... } This came up because I have a method that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to Asynchronously fetch AutoComplete data for a TextBox? Our WinForms application does lazy loading of the data for auto complete of a textbox. The pseudocode for this is as follows; * *User types in TextBox *On typing pause, determine if we need to fetch the auto complete data *In worker thread, contact t...
{ "language": "en", "url": "https://stackoverflow.com/questions/440277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I store XP_SMTP mail result code messages? I am trying to keep a record of all of the emails that get sent via xp_smtp mail component, but I don't know how to store the message. Storing a 1 because it failed doesn't do me much good. DECLARE @rc INT EXEC @rc = master.dbo.xp_smtp_sendmail... --Once the email ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS SQL Server - Bulk Insert Across a Network I have an application that uses MS SQL Server for which I'll need to do a bulk insert from a file. The sticking point is that the database and my application will be hosted on separate servers. What is the best way to do a bulk insert across a network? Two ideas I'd co...
{ "language": "en", "url": "https://stackoverflow.com/questions/440289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing a "LazyProperty" class - is this a good idea? I often find myself writing a property that is evaluated lazily. Something like: if (backingField == null) backingField = SomeOperation(); return backingField; It is not much code, but it does get repeated a lot if you have a lot of properties. I am thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/440290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Windows Mobile File Time In Windows Mobile I am using FindFirstFile/FindNextFile to search for some files. As part of the results I am getting a WIN32_FIND_DATA structure which contains one search result. This structure contains 3 FILETIME structures for file creation, last write and last access times. Then I am co...
{ "language": "en", "url": "https://stackoverflow.com/questions/440295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Cross-Compile Java Source Code to JavaScript? Given a set of Java source code files, how can I compile them into one or more JavaScript files that can be used with hand-crafted JavaScript? GWT is one option, but every example I've seen so far is aimed at building fancy websites. The simple use case of just co...
{ "language": "en", "url": "https://stackoverflow.com/questions/440302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: tsql returning a table from a function or store procedure This is more of a syntax question I'm trying to write a store procedure or function that I can embed into a query such as: select * from MyBigProcOrFunction I'm trying to define a tabular function but I do not understand how to do it as I build tmp tables to...
{ "language": "en", "url": "https://stackoverflow.com/questions/440308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: unicode() vs. str.decode() for a utf8 encoded byte string (python 2.x) Is there any reason to prefer unicode(somestring, 'utf8') as opposed to somestring.decode('utf8')? My only thought is that .decode() is a bound method so python may be able to resolve it more efficiently, but correct me if I'm wrong. A: It's eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/440320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: LINQ with Subquery/Group By/Join Newbie to LINQ, and trying to write the following query... select f.Section_ID, f.Page_ID, f.SortOrder, f.Type from ( select Section_ID, min(SortOrder) as minSortOrder from ContentPages group by Section_ID ) as x inner join ContentPages as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why can I change the value of a const char* variable? Why does the following code in C work? const char* str = NULL; str = "test"; str = "test2"; Since str is a pointer to a constant character, why are we allowed to assign it different string literals? Further, how can we protect str from being modified? It seems...
{ "language": "en", "url": "https://stackoverflow.com/questions/440331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How to determine when an embedded flash object is loaded? When embedding a flash object, is there a way to determine when it's fully loaded? That's my basic question, but for anyone interested in the details behind it: I am using the (DOMWindow) jQuery plugin. For those not familiar, it's a basic overlay the appears...
{ "language": "en", "url": "https://stackoverflow.com/questions/440338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to convert an OCX file to a TLB file? I'm trying to automate a build, but the instructions require openning an OCX in Borland C++ Builder and saving it as a TLB. How can I reproduce this process through the command line? A: With Delphi/C++Builder 2009, you can use the TLIBIMP and GENTLB command line...
{ "language": "en", "url": "https://stackoverflow.com/questions/440344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to approach an ETL mission? I am supposed to perform ETL where source is a large and badly designed sql 2k database and a a better designed sql 2k5 database. I think SSIS is the way to go. Can anyone suggest a to-do list or a checklist or things to watchout for so that I dont forget anything? How should I approa...
{ "language": "en", "url": "https://stackoverflow.com/questions/440346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to debug a Visual C++ Runtime Error I am writing a C++ COM object in Visual Studio 2008 that is an Internet Explorer Browser Helper Object. Recently, when running in IE, IE has started frequently popping up a dialog titled "Microsoft Visual C++ Runtime Library" with an error message "Runtime Error!" and going on...
{ "language": "en", "url": "https://stackoverflow.com/questions/440355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Extracting Embedded Images From Outlook Email I am using Microsoft's CDO (Collaboration Data Objects) to programmatically read mail from an Outlook mailbox and save embedded image attachments. I'm trying to do this from Python using the Win32 extensions, but samples in any language that uses CDO would be helpful. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/440356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can Windows API calls to an application/service be monitored? My company is looking at implementing a new VPN solution, but require that the connection be maintained programatically by our software. The VPN solution consists of a background service that seems to manage the physical connection and a command line/...
{ "language": "en", "url": "https://stackoverflow.com/questions/440360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is possible to include files (linking) based on a component property? Delphi 2007/2009 odd question here: It's possible, based on a component property defined in design-time, to include files in linking or leave them ? Example: If I leave SomeProperty true, when compiling, the unit SomeUnit will be included into my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: blogging from within emacs I would like to know what packages and tools to use to write blogs from within emacs. I mean packages to write and publish. I 've seen a demo of that in textmate : http://blog.macromates.com/2006/blogging-from-textmate/ Is it possible to do the same in emacs? Thank you very much. Edit: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why are check-in/commit comments a required field in some source control systems? In Perforce (atleast the GUI) a check-in/commit comment is required. (I don't believe they are required in Git or Subversion.) Most developers that work with me just fill it in with latest/updated/etc. I used to write meaningful descri...
{ "language": "en", "url": "https://stackoverflow.com/questions/440375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Reflection runtime performance - Java vs CLR A related post here pretty much established reflection in Java as a performance hog. Does that apply to the CLR as well? (C#, VB.NET, etc). EDIT: How does the CLR compare to Java when it comes to reflection? Was that ever benchmarked? A: I wouldn't really care about the...
{ "language": "en", "url": "https://stackoverflow.com/questions/440390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How To Tell Web Browsers About Atom Feeds My website has an Atom feed and I want to make it easier to subscribe to it. I see that many sites such as StackOverflow have the Atom icon in the location bar in Firefox 3. I haven't, however, been able to work out how. I assume some HTML is needed - but what tags specify t...
{ "language": "en", "url": "https://stackoverflow.com/questions/440391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Flush cache in iis6 For some magical reason ii6 started to cache pages on the server. Even if I remove the page, it is still displayed. I tried to follow couple suggestions but no luck. That's what I did so far: * *Deleted \WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files *Unchecked 'cache I...
{ "language": "en", "url": "https://stackoverflow.com/questions/440406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NetBeans Library using JNI Can I have a Library defined that makes use of JNI in NetBeans? Seems the library definition only allows Jars or Folders. How can I assure that the DLL follows the jar file when the app is built? A: Assuming you are referring to building a NetBeans Platform App (or module), then you can p...
{ "language": "en", "url": "https://stackoverflow.com/questions/440407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Where to install local Java libraries by default? I'm integrating JNI bindings with a C++ library. The library follows the usual conventions: the installation root is /usr/local by default and can be modified with the --prefix argument to ./configure; the .a or .so files go in ${prefix}/lib; etc. The JNI binding pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/440408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you CM an application with managed content We have a web application which contains a bunch of content that the system operator can change (e.g. news and events). Occasionally we publish new versions of the software. The software is being tagged and stored in subversion. However, I'm a bit torn on how to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/440409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I find projects across multiple open-source code repositories? There are lots of open-source code repositories - SourceForge, Google Code, Project Kenai, etc. Is there a one-stop place where I can find, discover, or search for open-source projects across all of these repositories? Or do I have to visit al...
{ "language": "en", "url": "https://stackoverflow.com/questions/440412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the proper background process behaviour for a non-GUI Java app? What's the proper way for a Java command line application to do background work without hogging resources? Should it use sleep() in the loop or is there a more elegant/efficient way? A: Some heuristics: * *Don't attempt to make scheduling dec...
{ "language": "en", "url": "https://stackoverflow.com/questions/440417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SSH "Login monitor" for Linux I'm trying to write a script that informs the user when someone has logged in on the machine via ssh. My current idea is to parse the output of "w" using grep in intervals. But that's neither elegant nor performant. Has anyone got a better idea how to implement such a program? Any help...
{ "language": "en", "url": "https://stackoverflow.com/questions/440427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Ant automation of InstallAnywhere installers - console mode My problem is to create an ant target for automating our installer running in console mode. The installer is created using InstallAnywhere 2008, which UniversalExtractor recognizes as a 7-zip archive. Once I have the archive unpacked, it appears that the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java sort String array of file names by their extension I have an array of filenames and need to sort that array by the extensions of the filename. Is there an easy way to do this? A: If I remember correctly, the Arrays.sort(...) takes a Comparator<> that it will use to do the sorting. You can provide an implement...
{ "language": "en", "url": "https://stackoverflow.com/questions/440430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Location of 1.5.x JDK source code I have installed Eclipse 3.3 on Mac OS X and it does not contain the src.zip file I am used to seeing with Windows and Linux installations. Where can I download the complete source code for the Java 1.5 JDK (must be specific versions). I have been able to locate the full source cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/440441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Silverlight Button Click Event I have a silverlight page with a textblock and button on it. Like this: <TextBlock x:Name="txbNote" Margin="50,50" Text="Hello"/> <Button x:Name="btnCheck" Height="40" Click="btnCheck_Click" ClickMode="Press" Margin="50,50,50,50" Content="Check Service"/> Here is the handler ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why would I use Reflection in a business app? I know what Reflection is but why would I need to use it in a typical line-of-business Winforms app? A: Reflection can help you write more maintanable code and reduce the amount of code for some specific task. I.e. you could write a simple shell either by using a lot of...
{ "language": "en", "url": "https://stackoverflow.com/questions/440456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Microsoft.XMLHTTP and CDATA I'm having a problem sending XML through Microsoft.XMLHTTP object in ASP (not .NET). I have CDATA elements inside some of the XML nodes and i get this error while trying to send. msxml3.dll error '80070005' Access is denied. First of all, this only comes up with CDATA. If i remove it, al...
{ "language": "en", "url": "https://stackoverflow.com/questions/440457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How best to maintain an Eclipse RCP plugin target? I have a plugin for an RCP app that uses BIRT. I have a target for building my app which contains only the plugins/features that are required. I recently updated the BIRT plugin versions in my IDE, which created an incompatibility in the design files with previous v...
{ "language": "en", "url": "https://stackoverflow.com/questions/440458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Differences between SFTP and "FTP over SSH" While looking for an SFTP client in C# SSH File Transfer Protocol (SFTP), I've come across these two suitable projects - one and two. While trying to understand the basics, I came across this confusing Wikipedia article. What is difference between SFTP and FTP over SSH? No...
{ "language": "en", "url": "https://stackoverflow.com/questions/440463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Can I make a generic CompiledQuery that accepts multiple tables and generic types? I have multiple tables with an "id" component. I'd like to use LINQ to get an item from one of these tables with the correct LINQ-To-SQL type, but only using one CompiledQuery. Here's an example that works currently. Say the object t...
{ "language": "en", "url": "https://stackoverflow.com/questions/440474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can a 'content page' send simple 'properties' to a 'master page'? The basic idea of a masterpage is simple -- you have a block of content that you want to 'inject' into a location in a master page. Its very easy to figure this out without even reading the documentation about masterpages (which I admit to not having ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I build project files and packages for Borland C++ Builder 5 from the command line? How do I build Borland C++ project files (bpr) and package files (bpk) from the command line? Project groups (bpg) are apparently make files and can be compile with make. But bpks and bprs are xml based and the Export to Mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/440490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Share Constants Between PHP and JavaScript Possible Duplicate: Pass a PHP string to a Javascript variable (and escape newlines) I have several constants in a PHP application I'm developing. I've defined a Constants class and the defined the constants as const VAR_NAME = value; in this class. I would like to sha...
{ "language": "en", "url": "https://stackoverflow.com/questions/440494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Serial port, equivalent of "full duplex" flow control? I have a document with connection information to a device over a serial port. It specifies "full duplex" as the setting for flow control. Under Windows, I have the following options for setting up the flow control: * *Xon/Xoff *Hardware *None What is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSH - a way to transfer files without opening a separate SFTP session? Not really a programming question, but relevant to many programmers... Let's say I have opened an SSH session to another computer. remote:html avalys$ ls welcome.msg index.html readme.txt remote:html avalys$ Is there any command that I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/440524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: python, sorting a list by a key that's a substring of each element Part of a programme builds this list, [u'1 x Affinity for war', u'1 x Intellect', u'2 x Charisma', u'2 x Perception', u'3 x Population growth', u'4 x Affinity for the land', u'5 x Morale'] I'm currently trying to sort it alphabetically by the name o...
{ "language": "en", "url": "https://stackoverflow.com/questions/440541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Does somebody knows a T-SQl query to obtain the SQL Server Users and their DB associations and permissions? Does somebody knows if its possible to build a T-SQL query to obtain the SQL Server Users ,their DB associations and permissions? this is in SQL server 2000 i will appreciate!! Thanks, A: how about sp_helplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/440542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET 4.0 - The "dynamic" keyword In his PDC talk, Anders said that the dynamic keyword would dispatch any function calls made to it at run time. He then went on to say that the "dynamic" keyword is itself staticly typed checked during compile time. Now if you were to invoke a method that does not exist on a "dynami...
{ "language": "en", "url": "https://stackoverflow.com/questions/440543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Installing Python 3.0 on Cygwin The Question What is the correct way to install Python 3.0 alongside Python 2.x using Cygwin? Notes I already have a working copy of Cygwin, and Python 2.x is installed within Cygwin (/lib/python2.x, not c:\python2.x). Also, I would like to be able to call python 3 separately (and onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/440547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to go from bad to good OOP design? I'm reading a lot about good and bad practices in OOP design. It's nice to know your design is bad, or good. But how do you get from bad to good design? I've split the interface (xaml) and codebehind from the main businesslogic class. That last class is growing big. I've tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/440554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Check Method Signatures when moving a Single DLL Is there a way to check that the method signatures of a bunch of .NET dlls are "lined up" against one another? Basiclly what the complier does during compile time,but instead it would be trying me trying to move a single dll up instead of the whole group of 20 to fix ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering Custom Fields in Wordpress Plugin Dev I'm wondering if it's possible to add filters and actions on Custom Fields in a post? I have a plugin that extracts all <a> tags and converts them into trackable objects. This works great for the content and excerpt but I can't figure out how to filter the Custom Field...
{ "language": "en", "url": "https://stackoverflow.com/questions/440558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to bulk copying SQL data over a dial-up connection? I have a few remote SQL servers that I need to pull a large amount of data from regularly (say 5,000,000 rows per server). This data also needs to be formatted and FTPed to another server. The dial-up portion is fine, I can connect and communic...
{ "language": "en", "url": "https://stackoverflow.com/questions/440566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why should I use ASP.NET Membership security model? I'm updating my website at the moment and figure that if I am to update my login/security mode, now is a good time. I have looked through the Membership model which is included in ASP.NET but I'm not convinced that it will provide any benefit apart from being fami...
{ "language": "en", "url": "https://stackoverflow.com/questions/440568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I detect if jQuery is in a document navigated to in the WinForm WebBrowser control? I have a Windows Forms application in C#/Visual Studio 2008 with an IE WebBrowser control. In the DocumentCompleted event, I want to search the WebBrowser.Document or WebBrowser.DomDocument to see if jQuery is already present...
{ "language": "en", "url": "https://stackoverflow.com/questions/440570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I test helpers in Rails? I'm trying to build some unit tests for testing my Rails helpers, but I can never remember how to access them. Annoying. Suggestions? A: This thread is kind of old, but I thought I'd reply with what I use: # encoding: UTF-8 require 'spec_helper' describe AuthHelper do include Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/440571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: What are Expression Trees in LINQ? What are Expression Trees in LINQ? Could someone point me to a resource that has code and explanation? A: An expression tree is a tree where all the nodes are Expressions (bear with me). I am not entirely sure whether you are asking about a specific application of Expressions tre...
{ "language": "en", "url": "https://stackoverflow.com/questions/440575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Building Boost BCP I was trying to build Boost C++ Libraries for last two hours and stopped without any result. Since I am new to C++, I am unable to get the build right. How can I build it correctly using Visual Studio 2008? I need to use the BCP tool to extract a subset of library. So I need to build BCP first, ri...
{ "language": "en", "url": "https://stackoverflow.com/questions/440585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: How do I get all strings from a Form for localization? All articles I've read about localization of a WinForms application assume that I already have all the strings translated. According to the articles, I should just set the Localizable property to true and edit all the controls. But how do I get all the original ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash Video Players: Do people really use the volume control? Im wondering if anyone has any input on this subject? Im building a flash video player, and I have added a mute volume icon, but Im wondering what everyone's thoughts are on adding a volume control too? A: I consider a volume control to be an absolute re...
{ "language": "en", "url": "https://stackoverflow.com/questions/440610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to SQL: Asking if a date is empty I've got a new instance of an object in a Linq DBML, but don't know of the test if the a date field is empty. I have tried: If d Is Nothing OrElse IsDBNull(d) OrElse d <= Date.MinValue Then TextValue = "nada" Else TextValue = FormatDateTime(d) End If But the result is "1...
{ "language": "en", "url": "https://stackoverflow.com/questions/440613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to check that a list of items exists in an SQL database column? If I have a list of items, say apples pairs pomegranites and I want to identify any that don't exist in the 'fruit' column in an SQL DB table. * *Fast performance is the main concern. *Needs to be portable over different SQL implementation...
{ "language": "en", "url": "https://stackoverflow.com/questions/440615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Fastest Way to get Data From Array Into SQLServer Database? Problem: How to most efficiently move data from an array into a SQL Server table. Details: I have created an array with many rows (typically, about 100,000) and many columns (about 40) in memory in a WinForms application. I need to get this array into a cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/440638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XPath to search for elements in a sequence With xml like: <a> <b> <c>1</c> <c>2</c> </c>3</c> </b> I'm trying to create an xpath expression (for a postgresql query) that will return if is a particular value and not that is all three values. What I currently have (which does not work) is: select * fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/440644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I convert JavaScript code into one big Java string So I have 1000 lines of javascript. I need to turn it into a Java String so that I can output (via System.out.println or whatever). I'm looking for an online tool to escape all the quotes... something geared toward my specific need would be nice as I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows Forms Databinding DisplayMember a Custom Class's Child Property I'm trying to set the DisplayMember Property of my ListBox in a windows forms project to a property of a nested class inside a Generic List I am binding to. Here's a simple example: public class Security { public int SecurityId { get; set;}...
{ "language": "en", "url": "https://stackoverflow.com/questions/440651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you make a class listen for PropertyChangeEvents caused by other classes, but not this class? As described in another question, I have a set of Model objects and an associated set of Panel objects which allow the user to access the data in the Model objects. The Panels are registered as PropertyChangeListene...
{ "language": "en", "url": "https://stackoverflow.com/questions/440672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile Error CS0433 on pre-compiled ASP.NET 2.0 site I keep getting this error ever so often when I launch the debugger to debug my site. I'm using the Telerik controls, and usually the error is in my tab strip. Here is an example of the error I'm looking at right now: Compiler Error Message: CS0433: The type 'AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/440675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Python classes from a for loop I've got a piece of code which contains a for loop to draw things from an XML file; for evoNode in node.getElementsByTagName('evolution'): evoName = getText(evoNode.getElementsByTagName( "type")[0].childNodes) evoId = getText(evoNode.getElementsByTagName( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET 2.0 HtmlTable Rows - hiding without making invisible I need to find a way to hide HTML Rows (or Tables) from view without blocking them from being rendered. Setting this.myTable.Visible = false would seem to be the easiest way to hide tables from the user, but it prevents the HTML Table from being sent to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/440685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Language Agnostic API I am planning on putting up a web service, or some other service exposed over the internet. I would like to create an API for applications to interact with this service. I would like the API to be usable in different languages, such as Java, C++, C#, or PHP. How can I maintain one code base ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Build a Plugin or Gem? Typically I create a plugin when I have a module that I know I'm going to need over again in my other projects, however, they could also be packaged as gems. When should I be building a gem over creating a plugin? Is there any criteria for making the call? A: Plugins are becoming obsolete now...
{ "language": "en", "url": "https://stackoverflow.com/questions/440692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How would I Practice .NET at Home (gratis)? How do you manage to use and practice the Microsoft technologies without the ability or desire to pay for all of the software needed? Are there free versions of Visual Studio, SQL Server, and plugins? Are there any tutorials on how to set up ASP.NET Development on a local ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: for(;true;) different from while(true)? If my understanding is correct, they do exactly the same thing. Why would anyone use for the "for" variant? Is it just taste? Edit: I suppose I was also thinking of for (;;). A: Yes, it is just taste. A: I've never seen for (;true;). I have seen for (;;), and the only diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/440694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can I update a field in one table with a field from another table? (SQL) Two tables: COURSE_ROSTER - contains * *COURSE_ID as foreign key to COURSES *USER_ID as field I need to insert into COURSES COURSES - contains * *COURSE_ID as primary key *INSTRUCTOR_ID as field that needs to be updated with USER_ID...
{ "language": "en", "url": "https://stackoverflow.com/questions/440702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set variable to be formatted in HTML before sending email I am sending out an email, and the message ($message) is in HTML I used a different script before (HTML MIME MAIL) and I just set it to HTML by doing this: setHTML($message). With this script, I am unsure how I would set $message to output as HTML within the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to store global variables I'm writing an application in PHP that uses a LOT of global variables that are used throughout the script. Right now, I have a config file that stores a bunch of global variables created by using the define() function, but since I'm going to have so many, would it be better to crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/440725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }