text
stringlengths
8
267k
meta
dict
Q: Where can I get a simple explanation of policy injection? I'd like a dead simple explanation of policy injection for less-informed co-workers. Where is a good resource for this? I learned about policy injection from the entlib help files, which I'm sure aren't the best option. A: The MSDN documentation for Policy...
{ "language": "en", "url": "https://stackoverflow.com/questions/73487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Missing aar file in maven2 multi-project build I'm trying to use maven2 to build an axis2 project. My project is configured as a parent project with AAR, WAR, and EAR modules. When I run the parent project's package goal, the console shows a successful build and all of the files are created. However the AAR file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically select an MFC radio button When I'm initializing a dialog, I'd like to select one of the radio buttons on the form. I don't see a way to associate a Control variable using the Class Wizard, like you would typically do with CButtons, CComboBoxes, etc... Further, it doesn't like a CRadioButton class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to move SharePoint sites from one active directory domain to another? I have a SharePoint virtual machine in one active directory domain (for example domain1) and I want to transfer all the sites it has to another active directory domain (domain2). I don’t know which could be the best procedure to do this, if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to tell if .NET code is being run by Visual Studio designer I am getting some errors thrown in my code when I open a Windows Forms form in Visual Studio's designer. I would like to branch in my code and perform a different initialization if the form is being opened by designer than if it is being run for real. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Silverlight Cross Domain Policies In a silverlight application, I want to access the page the silverlight .xap file from an HTTP subdomain, but have the web services access a different subdomain for sensitive information over HTTPS. I set up clientaccesspolicy.xml at the root of the subdomain and it lets the silverl...
{ "language": "en", "url": "https://stackoverflow.com/questions/73517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you direct traffic to/from a particular site to a specific NIC? In Windows XP: How do you direct traffic to/from a particular site to a specific NIC? For Instance: How do I say, all connections to stackoverflow.com should use my wireless connection, while all other sites will use my ethernet? A: I'm not sure...
{ "language": "en", "url": "https://stackoverflow.com/questions/73518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove C++-STL/Boost debug symbols (... or do not create them) Linux/Gcc/LD - Toolchain. I would like to remove STL/Boost debug symbols from libraries and executable, for two reasons: * *Linking gets very slow for big programs *Debugging jumps into stl/boost code, which is annoying For 1. incremental linking w...
{ "language": "en", "url": "https://stackoverflow.com/questions/73519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I convert from a location (address) String to a YGeoPoint in Yahoo Maps API? I have a list of addresses from a Database for which I'd like to put markers on a Yahoo Map. The addMarker() method on YMap takes a YGeoPoint, which requires a latitude and longitude. However, Yahoo Maps must know how to convert from...
{ "language": "en", "url": "https://stackoverflow.com/questions/73524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best option for searching in Ruby on Rails? There are several plugin options for building a search engine into your Ruby on Rails application. Which of these is the best? * *Thinking Sphinx *UltraSphinx *Sphincter *acts_as_sphinx *acts_as_ferret *Ferret *acts_as_xapian *acts_as_solr *Hyper Est...
{ "language": "en", "url": "https://stackoverflow.com/questions/73527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Are REST request headers encrypted by SSL? I'm developing a client/server app that will communicate via rest. Some custom request data will be stored in the header of the request. Both the server sending the request and the receiving server have an SSL certificate - will the headers be encrypted, or just the content...
{ "language": "en", "url": "https://stackoverflow.com/questions/73536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Do you know any examples of a PAC design pattern? Can anyone point to any websites or web applications that are using the Presentation-Abstraction-Control design pattern rather than MVC? Desktop applications are easy to find like this (e.g.; GIMP) but I'm looking for something on the web. A: There are more sites us...
{ "language": "en", "url": "https://stackoverflow.com/questions/73538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: IList to IQueryable I have an List and I'd like to wrap it into an IQueryable. Is this possible? A: List<int> list = new List<int>() { 1, 2, 3, 4, }; IQueryable<int> query = list.AsQueryable(); If you don't see the AsQueryable() method, add a using statement for System.Linq. A: Use the AsQueryable<T>() extension ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: FTP client class for .NET Anyone know of a good, hopefully free FTP class for use in .NET that can actually work behind an HTTP proxy or FTP gateway? The FtpWebRequest stuff in .NET is horrible at best, and I really don't want to roll my own here. A: Our Rebex FTP works with proxies just fine. Following code shows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Wildcard filename in schema.ini? Was wondering if there was a way to put a wildcard in the schema.ini for example [*.txt] FMT=TabDelimited I've got an app that is imported tab delimited files and the only place I can seem to get the FMT="TabDelimited" is in the schema.ini (doesn't work in the connection string for s...
{ "language": "en", "url": "https://stackoverflow.com/questions/73576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I send an SMTP Message from Java? Possible Duplicate: How do you send email from a Java app using Gmail? How do I send an SMTP Message from Java? A: Another way is to use aspirin (https://github.com/masukomi/aspirin) like this: MailQue.queMail(MimeMessage message) ..after having constructed your mimemess...
{ "language": "en", "url": "https://stackoverflow.com/questions/73580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: IIS configurable http-headers for caching How would one configurably set http-headers to cache files in IIS >= 6? Example: * **.cache.* => cache nearly forever **.nocache.* => never cache An example framework using this naming would be the GWT framework. A: I think you're referring to setting the cache-contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/73586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Premature Redo Log Switching in Oracle RAC What are the possible causes of premature redo log switching in Oracle other than reaching the specified file size and executing ALTER SYSTEM SWITCH LOGFILE? We have a situation where some (but not all) of our nodes are prematurely switching redo log files before filling up...
{ "language": "en", "url": "https://stackoverflow.com/questions/73607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I execute Javascript before a JSF action is performed? If you have a JSF <h:commandLink> (which uses the onclick event of an <a> to submit the current form), how do you execute JavaScript (such as asking for delete confirmation) prior to the action being performed? A: <h:commandLink id="myCommandLink" acti...
{ "language": "en", "url": "https://stackoverflow.com/questions/73628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I Trim the leading comma in my string I have a string that is like below. ,liger, unicorn, snipe in other languages I'm familiar with I can just do a string.trim(",") but how can I do that in c#? Thanks. There's been a lot of back and forth about the StartTrim function. As several have pointed out, the St...
{ "language": "en", "url": "https://stackoverflow.com/questions/73629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Subversion and Siteminder Has anyone implements Subversion with Siteminder as authentication provider ? If yes, would it be possible to provide an overview of how the whole setup is done ? Since I am using only HTTP authentication, I think it would be easier to integrate with SM, but I am not able to find much help ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SMTP commands for "AUTH NTLM" I'm failing at finding the commands I need to send to authenticate to a SMTP server using NTLM. I think it goes something like: AUTH NTLM <bae64encode something> 334 <bae64encode something> 235 A: You need a Base64-encoded Type 1 message. Read this. A: i think the following liknk m...
{ "language": "en", "url": "https://stackoverflow.com/questions/73651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I terminate a script? How do I exit a script early, like the die() command in PHP? A: You can also use simply exit(). Keep in mind that sys.exit(), exit(), quit(), and os._exit(0) kill the Python interpreter. Therefore, if it appears in a script called from another script by execfile(), it stops execution of...
{ "language": "en", "url": "https://stackoverflow.com/questions/73663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1339" }
Q: How can I start an interactive console for Perl? How can I start an interactive console for Perl, similar to the irb command for Ruby or python for Python? A: Perl doesn't have a console but the debugger can be used as one. At a command prompt, type perl -de 1. (The value "1" doesn't matter, it's just a valid state...
{ "language": "en", "url": "https://stackoverflow.com/questions/73667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "305" }
Q: Using pictures as buttons? I talked to a friend of mine and he told me that it's possible to create an image in an image editor (gimp/photoshop) and then use it as a button . He said that's the way applications that have great GUIs do it. He also said that there is a file describing which parts of the image make up...
{ "language": "en", "url": "https://stackoverflow.com/questions/73674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Companies doing Domain driven design I've just finished reading Domain Driven Design and I'm enchanted with some of the ideas covered in it. Do you know any companies that implement ubiquitous language in their projects? A: This is an indirect answer. You could find such projects by looking at software development ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: cout prints "-0" instead of "0" #include <iostream> using namespace std; int main() { double u = 0; double w = -u; cout << w << endl; return 0; } Why does this great piece of code output -0 and not 0, as one would expect? A: In IEEE floating point 0 and -0 are both distinct values, from here under...
{ "language": "en", "url": "https://stackoverflow.com/questions/73686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I check for nulls in an '==' operator overload without infinite recursion? The following will cause infinite recursion on the == operator overload method Foo foo1 = null; Foo foo2 = new Foo(); Assert.IsFalse(foo1 == foo2); public static bool operator ==(Foo foo1, Foo foo2) { if (foo1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Bootstrapper for SQL Server Express 2005 64 bit Where can I get the 64 bit bootstrapper for SQL Server Express 2005 64 bit. The default bootstrapper is 32 bit only. This will not install on Vista 64 bit. A: Microsoft's SQL Server Express Download page has a link to the 64-bit version, down near the bottom of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best server-side framework for heavy AJAX Java application There are zillions of Java web application frameworks. 95% were designed before the modern era of AJAX/DHTML-based development, and that means these new methods are grafted on rather than designed in. Has any framework been built from the ground up with e.g....
{ "language": "en", "url": "https://stackoverflow.com/questions/73736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Long term source code archiving: Is it possible? I'm curious about keeping source code around reliably and securely for several years. From my research/experience: * *Optical media, such as burned DVD-R's lose bits of data over time. After a couple years, I don't get all the files off that I put on them. Read err...
{ "language": "en", "url": "https://stackoverflow.com/questions/73745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: DropdownList autoposback after client confirmation I have a dropdownlist with the autopostback set to true. I want the user to confirm if they really want to change the value, which on post back fires a server side event (selectedindexchanged). I have tried adding an onchange attribute "return confirm('Please click ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the dual table in Oracle? I've heard people referring to this table and was not sure what it was about. A: It is a dummy table with one element in it. It is useful because Oracle doesn't allow statements like SELECT 3+4 You can work around this restriction by writing SELECT 3+4 FROM DUAL instead. A: Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/73751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "253" }
Q: C# P/Invoke with Variants Anybody know what my DLLImport statement should look like here: extern "C" __declspec(dllexport) long SomeFunction(VARIANT *argNames, VARIANT *argValues, VARIANT *pVal) { ... } A: A variant is an object. Type Conversions During marshaling one of the most important steps is converting u...
{ "language": "en", "url": "https://stackoverflow.com/questions/73775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending mail via sendmail from python If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process? Better yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice? I'll be running this script on a bunch of unix hosts, only so...
{ "language": "en", "url": "https://stackoverflow.com/questions/73781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: Iterating through all the cells in Excel VBA or VSTO 2005 I need to simply go through all the cells in a Excel Spreadsheet and check the values in the cells. The cells may contain text, numbers or be blank. I am not very familiar / comfortable working with the concept of 'Range'. Therefore, any sample codes would...
{ "language": "en", "url": "https://stackoverflow.com/questions/73785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do I tell Subversion to treat a file as a binary file? How do I tell Subversion (svn) to treat a file as a binary file? A: It is possible to manually identify a file located within a repository as binary by using: svn propset svn:mime-type application/octet-stream <filename> This is generally not necessary, as...
{ "language": "en", "url": "https://stackoverflow.com/questions/73797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: .NET Remoting exception This is about when a .NET remoting exception is thrown. If you take a look at MSDN, it will mention that a remoting exception is thrown when something goes wrong with remoting. If my server is not running, I get a socket exception which is fine. What I am trying to figure out is: does getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/73825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you search for files containing DOS line endings (CRLF) with grep on Linux? I want to search for files containing DOS line endings with grep on Linux. Something like this: grep -IUr --color '\r\n' . The above seems to match for literal rn which is not what is desired. The output of this will be piped throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/73833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: Translate C++/CLI to C# I have a small to medium project that is in C++/CLI. I really hate the syntax extensions of C++/CLI and I would prefer to work in C#. Is there a tool that does a decent job of translating one to the other? EDIT: When I said Managed c++ before I apparently meant c++/CLI A: You can only transl...
{ "language": "en", "url": "https://stackoverflow.com/questions/73879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Quick and easy way to test OSGi bundles Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/73881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: String vs. StringBuilder I understand the difference between String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m working on has a lot of case driven string appends (500+). Is using StringBuilder a better choice? A: StringBuilder reduce...
{ "language": "en", "url": "https://stackoverflow.com/questions/73883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "229" }
Q: Can you set Visual Studio's "smart indent" to not remove tabs in blank lines? When Visual Studio (2005) has Options -> Text Editor -> C/C++ -> Tabs -> Indenting set to Smart it will automatically indent code blocks and line up squiggly brackets, {}, as expected. However, if you hit enter inside a code block, move th...
{ "language": "en", "url": "https://stackoverflow.com/questions/73884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In jQuery, using ajaxSend to preview the url built by $.post call How can I construct my ajaxSend call, this seems like the place to put it, to preview what is being passed back to the broker? also, can I stop the ajax call in ajaxSend?..so I can perfect my url string before dealing with errors from the broker? This...
{ "language": "en", "url": "https://stackoverflow.com/questions/73885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which framework should I use to write modules? What's the best framework for writing modules -- ExtUtils::MakeMaker (h2xs) or Module::Build? A: The only trouble with compatibility regarding Module::Build is when a user tries to install modules without updating their CPAN client (CPAN.pm or CPANPLUS.pm) If they are...
{ "language": "en", "url": "https://stackoverflow.com/questions/73889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Pre-Pending a file to all .cs file in directory and subdirectory using PowerShell How can I pre pend (insert at beginning of file) a file to all files of a type in folder and sub-folders using Powershell? I need to add a standard header file to all .cs and was trying to use Powershell to do so, but while I was able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi Component Serialization Has anyone run into issues serializing components into a file and reading them back, specifically in the area where the component vendor upgrades the VCL components. For example a file serialized with DelphiX and then years later read back with delphiY. Do the serialization formats c...
{ "language": "en", "url": "https://stackoverflow.com/questions/73895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ASP.NET MVC "Components" Is there someway to have a part of the page that renders like a little sub-page, like components? For example, if I have a shopping cart on all my pages? A: If you want it to render another controllers action, as a component, to get encapsulation, you use. Html.RenderAction uses routedata t...
{ "language": "en", "url": "https://stackoverflow.com/questions/73902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a console for Windows Mobile devices? I would like to write small console based applications on Windows Mobile. What console applications might I use? A: it may be useful to know that when you use printf from a standard windows mobile application, the output will end up in the kernel log of the device. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/73910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Clustering Algorithm for Mapping Application I'm looking into clustering points on a map (latitude/longitude). Are there any recommendations as to a suitable algorithm that is fast and scalable? More specifically, I have a series of latitude/longitude coordinates and a map viewport. I'm trying to cluster the points ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Linux desktop shortcut and icon from install What do I need to add to my .spec file to create the desktop shortcut and assign an icon to the shortcut during install of my .rpm? If a script is required, an example would be very helpful. A: You use a .desktop file for icons under linux. Where to put the icon depend...
{ "language": "en", "url": "https://stackoverflow.com/questions/73930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I get my Disciplines to appear in published Site (in EPF Composer 1.5)? I have a custom category ("disciplines") in my method plugin which I want to use to contain existing disciplines (from the Scrum plugin and EPF OpenUP library) as well as a few of my own (some are new, and others extend the OpenUP ones). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to stop people hacking the PHP-based highscore table of a Flash game I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc. What I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "212" }
Q: Combine PDFs c# How can I combine multiple PDFs into one PDF without a 3rd party component? A: The .NET Framework does not contain the ability to modify/create PDFs. You need a 3rd party component to accomplish what you are looking for. A: As others have said, there is nothing built in to do that task. Use iTextSh...
{ "language": "en", "url": "https://stackoverflow.com/questions/73950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Change IP address via shellscript on Slackware In a shellscript, I'd like to set the IP of my box, run a command, then move to the next IP. The IPs are an entire C block. The question is how do I set the IP of the box without editing a file? What command sets the IP on Slackware? Thanks A: As mentioned in other ans...
{ "language": "en", "url": "https://stackoverflow.com/questions/73958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dropdownlist width in IE In IE, the dropdown-list takes the same width as the dropbox (I hope I am making sense) whereas in Firefox the dropdown-list's width varies according to the content. This basically means that I have to make sure that the dropbox is wide enough to display the longest selection possible. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/73960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: How do I turn a ColdFusion page into a PDF download? I would like to turn the HTML generated by my CFM page into a PDF, and have the user prompted with the standard "Save As" prompt when navigating to my page. A: If you want to avoid storing the PDF at all, using cfdocument without a filename will send the pdf (of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Using Javascript, how do I make sure a date range is valid? In JavaScript, what is the best way to determine if a date provided falls within a valid range? An example of this might be checking to see if the user input requestedDate is part of the next valid work week. Note that this is not just checking to see if on...
{ "language": "en", "url": "https://stackoverflow.com/questions/73971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Disabling copy of empty text in Visual Studio I have somehow misconfigured fingers. This leads to a very annoying situation. * *I select a block of text to copy; *I move the cursor the place where I want to paste the code; *I accidentally press Ctrl+C again instead of Ctrl+V; *My block of copied text is replac...
{ "language": "en", "url": "https://stackoverflow.com/questions/73972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Missing SQL Service stored procedure I am receiving a message from a commercial program stating that the "LogMessage" stored procedure is not found. There does not appear to be a stored procedure called LogMessage in the associated MS SQLServer 2000 database. What can I do to track down the missing procedure, othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/73988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between explicit and implicit cursors in Oracle? I am a bit rusty on my cursor lingo in PL/SQL. Anyone know this? A: An implicit cursor is one created "automatically" for you by Oracle when you execute a query. It is simpler to code, but suffers from * *inefficiency (the ANSI standard spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/74010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Specifying filename for dynamic PDF in asp.net How can I specify the filename when dumping data into the response stream? Right now I'm doing the following: byte[] data= GetFoo(); Response.Clear(); Response.Buffer = true; Response.ContentType = "application/pdf"; Response.BinaryWrite(data); Response.End(...
{ "language": "en", "url": "https://stackoverflow.com/questions/74019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: What's the recommended best practice for using IEqualityComparer? I'm looking for real world best practices, how other people might have implemented solutions with complex domains. A: I did the following, I'm not sure if it is real-world best practice, but it worked fine for me. :) public class GenericEqualityCompa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to use analytic functions in Hibernate? Is there a way to use sql-server like analytic functions in Hibernate? Something like select foo from Foo foo where f.x = max(f.x) over (partition by f.y) A: You are after a native SQL query. If you are using JPA the syntax is: Query q = em.createNativeQuery...
{ "language": "en", "url": "https://stackoverflow.com/questions/74057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do you detect and print the current drilldown in the CrystalReportViewer control? When using Business Objects' CrystalReportViewer control, how can you detect and manually print the report the user has currently drilled into? You can print this automatically using the Print() method of the CrystalReportViewer, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/74083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a common way to check in Python if an object is any function type? I have a function in Python which is iterating over the attributes returned from dir(obj), and I want to check to see if any of the objects contained within is a function, method, built-in function, etc. Normally you could use callable() fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/74092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Generate thumbnail with white border I need to generate thumbnails from a set of jpg's that need to have a small white border so that they appear to be "photos" when displayed on a map. Getting the thumbnails themselves is easy but I can't figure out how to get the border. A: Here's a quick hack: public Image Appen...
{ "language": "en", "url": "https://stackoverflow.com/questions/74100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visualize Friend of a Friend (foaf) graph I wrote a script to export twitter friends as foaf rdf description. Now I'm looking for a tool to visualize the friend networks. I tried http://foafscape.berlios.de/ but for 300+ Nodes it is really slow and does a bad job on auto formatting. Any hints for good graph visualiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/74108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I embed Media Player in a C# MailMessage to play an Attachment I'm using a C# MailMessage to attach a wave file (8K) to an email message. I'd like to provide a player within the body of that email message that will play that wave file if the user chooses to do so. I've tried using the embedded <object> vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/74112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access the camera with iOS It seems obvious that some people have been able to figure out how to access the iPhone camera through the SDK (Spore Origins, for example). How can this be done? A: Hmmmm.....Ever tried using an OverlayView? With this the camera might look customized but in actuality its just a view abov...
{ "language": "en", "url": "https://stackoverflow.com/questions/74113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Writing more to a file than just plain text I have always been able to read and write basic text files in C++, but so far no one has discussed much more than that. My question is this: If developing a file type by myself for use by an application I also create, how would I go about writing the data to a file and pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/74116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to force a reboot instead of shutdown (XP) I have a Windows XP SP2 virtual machine which can be accessed via VNC. It's also running Deep Freeze so there should be no problem in forcing it to reboot. I am looking for a way to force the operating system to reboot instead of shutting down or completely remove the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/74126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert numbers between hexadecimal and decimal How do you convert between hexadecimal numbers and decimal numbers in C#? A: Hex -> decimal: Convert.ToInt64(hexString, 16); Decimal -> Hex string.Format("{0:x}", intValue); A: To convert from decimal to hex do... string hexValue = decValue.ToString("X"); T...
{ "language": "en", "url": "https://stackoverflow.com/questions/74148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "170" }
Q: How to do INSERT into a table records extracted from another table I'm trying to write a query that extracts and transforms data from a table and then insert those data into another table. Yes, this is a data warehousing query and I'm doing it in MS Access. So basically I want some query like this: INSERT INTO Table...
{ "language": "en", "url": "https://stackoverflow.com/questions/74162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "188" }
Q: Java Compilation - Is there a way to tell the compiler to ignore parts of my code? I maintain a Java Swing application. For backwards compatibility with java 5 (for Apple machines), we maintain two codebases, 1 using features from Java 6, another without those features. The code is largely the same, except for 3-4 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/74171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: WPF ListBox WrapPanel clips long groups I've created a ListBox to display items in groups, where the groups are wrapped right to left when they can no longer fit within the height of the ListBox's panel. So, the groups would appear similar to this in the listbox, where each group's height is arbitrary (group 1, for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you have more than one ASP.NET State Server Service in a cluster? We have a 4 server cluster running ASP.NET web application using ASP.NET State Server Service for session. On one of the 4 servers ASP.NET State Server Service is running and other servers are configured to look at this. Very often we have to patc...
{ "language": "en", "url": "https://stackoverflow.com/questions/74190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MS Word: Creating shortcut or toolbar button for the "Paste Special..Unformatted Text" option I have been playing with this for a while, but the closest I have gotten is a button that opens the Paste Special dialog box and requires another couple of mouse clicks to paste the contents of the clipboard as unformatted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do you restart Rails under Mongrel, without stopping and starting Mongrel Is there a way to restart the Rails app (e.g. when you've changed a plugin/config file) while Mongrel is running. Or alternatively quickly restart Mongrel. Mongrel gives these hints that you can but how do you do it? ** Signals ready. TER...
{ "language": "en", "url": "https://stackoverflow.com/questions/74218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is it possible to base GroupTemplate (.NET) on anything but a fixed record count? I'd like to use ListView to display grouped data from my db. Because of the way the query is structured, each logical group might have 1 or 2 records associated with it. Is there anyway to use GroupTemplate, while overridding the Group...
{ "language": "en", "url": "https://stackoverflow.com/questions/74224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In JSTL/JSP, given a java.util.Date, how do I find the next day? On a JSTL/JSP page, I have a java.util.Date object from my application. I need to find the day after the day specified by that object. I can use <jsp:scriptlet> to drop into Java and use java.util.Calendar to do the necessary calculations, but this fee...
{ "language": "en", "url": "https://stackoverflow.com/questions/74248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Architect Database to Allow App To Use Windows Integrated Auth or FBA I'm writing a web app that will be distributed and I want to allow the installer to choose between using Integrated Authentication, or FBA. Switching between those with web.config is obviously very easy. I'm trying to decide how best to architec...
{ "language": "en", "url": "https://stackoverflow.com/questions/74258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When is it time to change database backends? Is there a general rule of thumb to follow when storing web application data to know what database backend should be used? Is the number of hits per day, number of rows of data, or other metrics that I should consider when choosing? My initial idea is that the order for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rendering suggested values from an ext Combobox to an element in the DOM I have an ext combobox which uses a store to suggest values to a user as they type. An example of which can be found here: combobox example Is there a way of making it so the suggested text list is rendered to an element in the DOM. Please not...
{ "language": "en", "url": "https://stackoverflow.com/questions/74266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get an Batch file .bat continue onto the next statement if there is an error I'm trying to script the shutdown of my VM Servers in a .bat. if one of the vmware-cmd commands fails (as the machine is already shutdown say), I'd like it to continue instead of bombing out. c: cd "c:\Program Files\VMWare\VmWare Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/74267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: what is the difference between invalidateList and invalidateDisplayList? I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/74269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the best way to handle photo uploads? I'm doing a website for a family member's wedding. A feature they requested was a photo section where all the guests could go after the wedding and upload their snaps. I said this was a stellar idea and I went off to build it. Well there's just the one problem: logistics...
{ "language": "en", "url": "https://stackoverflow.com/questions/74315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How should I detect unnecessary #include files in a large C++ project? I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #includes are just artifacts and everything will compile fine with them removed, and in other cases classe...
{ "language": "en", "url": "https://stackoverflow.com/questions/74326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: How to fix an MFC Painting Glitch? I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard drive. As part of some UI polish, I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get LWP to validate SSL server certificates? How can I get LWP to verify that the certificate of the server I'm connecting to is signed by a trusted authority and issued to the correct host? As far as I can tell, it doesn't even check that the certificate claims to be for the hostname I'm connecting to. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Outlook 07 2 column flexible layout I am trying to create an email two column flexible layout, which works in outlook 07, i have created a successful version in outlook 03, hotmail, gmail, yahoo and aol, in both IE and Mozilla Firefox, however when testing in outlook 07 it strips out my float left css. What I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/74368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX? I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #...
{ "language": "en", "url": "https://stackoverflow.com/questions/74372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to convert DateTime to VarChar I need to convert a value which is in a DateTime variable into a varchar variable formatted as yyyy-mm-dd format (without time part). How do I do that? A: You can use DATEPART(DATEPART, VARIABLE). For example: DECLARE @DAY INT DECLARE @MONTH INT DECLARE @YEAR INT DECLARE @DATE DA...
{ "language": "en", "url": "https://stackoverflow.com/questions/74385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "330" }
Q: Using DLR from Unmanaged Code Is it possible to call managed code, specifically IronRuby or IronPython from unamanaged code such as C++ or Delphi? For example, we have an application written in Delphi that is being moved to C#.NET We'd like to provide Ruby or Python scripting in our new application to replace VBSCR...
{ "language": "en", "url": "https://stackoverflow.com/questions/74386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Proving correctness of multithread algorithms Multithread algorithms are notably hard to design/debug/prove. Dekker's algorithm is a prime example of how hard it can be to design a correct synchronized algorithm. Tanenbaum's Modern operating systems is filled with examples in its IPC section. Does anyone have a good...
{ "language": "en", "url": "https://stackoverflow.com/questions/74391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is it possible to use Jackpot outside of NetBeans, without NetBeans projects? I know there is a Jackpot API http://jackpot.netbeans.org/docs/org-netbeans-modules-jackpot/overview-summary.html for programmatic access the the rules engine, has anyone had success seperating this from NetBeans itself? So it can operate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Interactive world map - suggestions? I'm looking to create a "Countries You've Visited" map - just like the ones you've probably seen on Facebook, TravelAdvisor and whatnot. I've tried different flash kits, but they're not quite as advanced as I'd like them to be. The main problem I've encountered with all the diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/74409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Game Loop and GDI over .NET CF Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case? Should the game form paint loop only should be overriden? or should i do an application.do events() in the main method? Please guide me regardi...
{ "language": "en", "url": "https://stackoverflow.com/questions/74422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Random in python 2.5 not working? I am trying to use the import random statement in python, but it doesn't appear to have any methods in it to use. Am I missing something? A: You probably have a file named random.py or random.pyc in your working directory. That's shadowing the built-in random module. You need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Managing authorized_keys on a large number of hosts What is the easiest way to manage the authorized_keys file for openssh across a large number of hosts? If I need to add or revoke a new key to an account on 10 hosts say, I must login and add the public key manually, or through a clumsy shell script, which is time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }