text
string
meta
dict
Q: Why does firefox say "connection partially encrypted" on this page? Here's the page: https://www.testmasters.net/test/ssltest2.aspx When I go to it (in firefox or chrome), it says "connection partially encrypted". But all references to objects are https and not http as far as I can tell. What's odd is that if you re...
{ "language": "en", "url": "https://stackoverflow.com/questions/210778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pitfalls in Upgrading from Visual Studio 2005 to Visual Studio 2008 I've read a number of posts touting the merits of migrating from VS 2005 to 2008. However, I'd love to hear what the various pitfalls are in actually doing the migration. We're about to migrate and I'd prefer knowing what speed bumps to anticipate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/210782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best method to check the empty child nodes in XML? I have a xml which is max 3 levels deep. Now by using C# or Xpath what the best method to check the whether all the child nodes under a parent node are empty. Thanks in Advance. A: Given a sample document of: <foo> <bar> <baz/> <baz>Hello, world!</baz> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to test persistent connection in a HTTP server? While building a small experimental HTTP server, I need to implement the persistent connection feature of HTTP 1.1 (and the pipelining feature). How do I test it? Using a browser like Firefox gives me little or no control, and it's hard to check. Any ideas? Thanks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can you tell whether a file is being cached in memory in linux? Essentially my question is, does anyone know of a utility for inspecting the buffer cache in linux? A: I'm not entirely sure if you're asking what I think you're asking, but vmtouch could be helpful to you. Just type vmtouch [file or folder you wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/210809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can you find the web security issue here? I have a webpage that redirects to another webpage like this: http://www.myOtherServer.com/Sponsor.php?RedirectPage=http://mylink.com/whereIwasgoingtogo.html Then the Sponsor.php page displays an ad with a link saying "Continue to your page" that links to the passed in Redi...
{ "language": "en", "url": "https://stackoverflow.com/questions/210820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I give control back (briefly) to the browser during intensive JavaScript processing? I have read the post here about using setTimeout() during intensive DOM processing (using JavaScript), but how can I integrate this function with the below code? The below code works fine for a small number of options, but w...
{ "language": "en", "url": "https://stackoverflow.com/questions/210821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Assembly "is not signed correctly." Warning I have a mobile .NET solution and decided to sign the assemblies. Compilation completes without errors but gives the warning 'CompactUI.Business.PocketPC.asmmeta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not signed correctly. The application is working fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/210826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how do I wait on console input in c# for 15 seconds or so I need to ask for input in console and wait for few sec may be a min after that I need to default to some value. How can basically time our on console input in c# and proceed with default settings? If you have sample code that would be great. A: You could us...
{ "language": "en", "url": "https://stackoverflow.com/questions/210827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is an NP-complete in computer science? What is an NP-complete problem? Why is it such an important topic in computer science? A: I have heard an explanation, that is:" NP-Completeness is probably one of the more enigmatic ideas in the study of algorithms. "NP" stands for "nondeterministic polynomial time," and...
{ "language": "en", "url": "https://stackoverflow.com/questions/210829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "503" }
Q: How do I secure a SQL Server 2005 database? I have a database for a web application that is home to some personal information about my users. What should I do to make sure the data is secure? Encrypting the data makes sense, of course... but what about stopping somebody from getting on the machine to begin with? Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/210832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is referential transparency? What does the term referential transparency mean? I've heard it described as "it means you can replace equals with equals" but this seems like an inadequate explanation. A: [This is a postscript to my answer from March 25, in an effort to bring the discussion closer to the concerns...
{ "language": "en", "url": "https://stackoverflow.com/questions/210835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "329" }
Q: stdcall over-ride by visual studio? In xp 32bit this line compiles with not problem however in vista 64bit this line: m_FuncAddr = ::GetProcAddress (somthing); gives the following error error C2440: '=' : cannot convert from 'FARPROC' to 'int (__cdecl *)(void)' GetProcAddress is defined as WINBASEAPI FARPROC WI...
{ "language": "en", "url": "https://stackoverflow.com/questions/210836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sharing State Amongst TestMethods in MSTest How do I share state amongst TestMethods in MSTest. These tests would be run as Ordered Tests and in sequence. private TestContext testContext; public TestContext TestContext { get { return this.testContext; } set { this.testContext = value;} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access KML placemarks in a Google Maps overlay via Javascript? I have a KML file overlay on an embedded Google Map using the GGeoXml object. I'd like to be able to access specific placemarks in the KML file from Javascript (for example to highlight a selected polygon on the map in response to user action). Ideally ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are some best practices for querying binary data from a database? I'm being asked to add queryability to a database (Oracle) filled with mostly binary data. So I need to be able to query binary ranges within a blobs of a few kilobytes. I've never done this before, so I'm wondering what are some good practices a...
{ "language": "en", "url": "https://stackoverflow.com/questions/210882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WP-Contact Form 7 -- PHP I don't know how much information you need for this, but WP-ContactForm-7 is a contact form for WordPress. By default it has one server response message for all forms on the website. I have multiple forms and would like a different server response messages for each one. How can I create diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/210899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you scale HTTP server like Google? I often marvel at how I can go to www.google.com, from anywhere in the world at any time, and get the returned page so fast. Sure, they compress their output and keep to a minimal design - that helps. But they must have millions of simultaneous hits to the box sitting on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/210901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How do I email CSV files to specific emails? I have a table (volunteers_2009) that has all the volunteers stored within, then I have a table (venues) that list all the different venues a volunteer could work (volunteers are assigned to one venue each, and that is stored within volunteers_2009.venue_id, which equals ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get an animated gif to work in WPF? What control type should I use - Image, MediaElement, etc.? A: I modified Mike Eshva's code,And I made it work better.You can use it with either 1frame jpg png bmp or mutil-frame gif.If you want bind a uri to the control,bind the UriSource properties or you want bind any...
{ "language": "en", "url": "https://stackoverflow.com/questions/210922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "240" }
Q: How do you remove a file from being version controlled without deleting the file in subversion? I accidentally added a binary file to SVN with the add command, and now I want to remove it from being version controlled, but not delete the file. How do I do this? A: If you didn't commit yet, you can use "svn revert" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Images not rendering in IE7 (but working fine in IE6/Firefox) Having an issue with some images using IE7 - work fine in 6 and in all versions of Firefox. Has anyone run across this before? I know I've had it happen in the past (and I googled a fix, but darned if I can find the fix again... note to self, document thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/210936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Better Way To Use C++ Named Parameter Idiom? I've been developing a GUI library for Windows (as a personal side project, no aspirations of usefulness). For my main window class, I've set up a hierarchy of option classes (using the Named Parameter Idiom), because some options are shared and others are specific to par...
{ "language": "en", "url": "https://stackoverflow.com/questions/210939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: C non-standard libraries I'm quite new to programming, and I was wondering if there is a good source of well-programmed non-standard C code and libraries. I Googled and didn't find anything. I was a bit surprised by this, especially because I used to search for many Python examples and libraries and never had troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/210943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: c# winforms: determine first run of program I need to present a wizard once, the first time my windows forms application is run after install. I could use a user setting like firstrun = false I suppose. But I also need handle the case where the program is uninstalled, then reinstalled. How will that user setting be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What would be a globally accepted regular expression to match e-mail addresses I have seen many examples, with many 'no, you missed something' comments. What is the right way to match an e-mail address? For Sanity sake, only fully-qualified domain names, no @localhost allowed. (or, both ways) Subdomains must be all...
{ "language": "en", "url": "https://stackoverflow.com/questions/210945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Insert a row of grid into datacontext Looking for an example in linq about how to insert a row of a gridview into datacontext. A: First - you'd need a typed object. This will obviously be easier if your gridview is already data-bound. You can use InsertOnSubmit (new record) or Attach (update existing) to associate...
{ "language": "en", "url": "https://stackoverflow.com/questions/210975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using os.execvp in Python I have a question about using os.execvp in Python. I have the following bit of code that's used to create a list of arguments: args = [ "java" , classpath , "-Djava.library.path=" + lib_path() , ea , "-Xmx1000m" , "-server" , "code_swarm" , ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: WCF: auto generate data contract classes? I'm using subsonic o/rm to generate my data classes. But the active record and active list classes it generates don't work over WCF. I have to manually write the data contract classes, and this is fairly tedious work for all the properties. Is there any way to automatically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When to separate files to save bandwidth I'm doing some optimising for my site and am trying to figure out just how big some inline code can be before it can justify having it's own file instead of being written inline. My guess on how to measure it would be that the amount of code (CSS or JS in this case) would nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/210985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you retrieve the directory of an ASP.NET MVC application? Newbie question... If I have a file that is in the root of the web app. How do I programmaticaly query the path of that file? ie, what directory it is in? A: System.Web.HttpServerUtility.MapPath( "~/filename.ext" ); will give you the physical (dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/210986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to initialize a bean? In spring you can initialize a bean by having the applicationContext.xml invoke a constructor, or you can set properties on the bean. What are the trade offs between the two approaches? Is it better to have a constructor (which enforces the contract of having everything i...
{ "language": "en", "url": "https://stackoverflow.com/questions/210996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Canvas3D not appearing in Swing window I am attempting to insert a Canvas3D object inside a Swing JPanel, but the code doesn't seem to be working (i.e. nothing happens): Canvas3D canvas = new Canvas3D(SimpleUniverse.getPreferredConfiguration()); SimpleUniverse universe = new SimpleUniverse(canvas); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/210998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: easiest way to prevent the back button of your browser from showing secure data after a user logs out? In a normal web app w/ login and secure data, what is an easy way to secure that data and prevent it from being seen by using the browser's back button, once a user logs out? A: Here's a useful browser caching g...
{ "language": "en", "url": "https://stackoverflow.com/questions/211001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: C# file management How can I detect in C# whether two files are absolutely identical (size, content, etc.)? A: Here's a simple solution, which just reads both files and compares the data. It should be no slower than the hash method, since both methods will have to read the entire file. EDIT As noted by others, this...
{ "language": "en", "url": "https://stackoverflow.com/questions/211008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: git svn rebase: Incomplete data: Delta source ended unexpectedly I have been maintaining the git mirror of the watir project. Some time a couple weeks ago, we had someone ready to submit their first git-based patch. Unfortunately, we ran into some issues regarding line endings (CRLF vs. LF, etc.) because of the mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/211025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Storing the state of a complex object with Memento pattern (and Command) I'm working on a small UML editor project, in Java, that I started a couple of months ago. After a few weeks, I got a working copy for a UML class diagram editor. But now, I'm redesigning it completely to support other types of diagrams, such a...
{ "language": "en", "url": "https://stackoverflow.com/questions/211034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: fatal error C1083: Cannot open include file: 'Windows.h': and scons Today is officially my first day with C++ :P I've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source Enso Project. So, after installing scons I went t...
{ "language": "en", "url": "https://stackoverflow.com/questions/211035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Automated processing of an Email in C# Similar question as this one but for a Microsoft Environment. Email --> Exchange Server -->[something] For the [something] I was using Outlook 2003 & C# but it feels messy (A program is trying to access outlook, this could be a virus etc) Microsoft.Office.Interop.Outlook.Applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/211037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you use Javadoc for every method you write? Should I be writing Doc Comments for all of my java methods? A: When I write code for myself - NO. In this case, java doccing is a waste of my time. When I write code that others will use - Yes. Every method that somebody else can use (any public method) should have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/211041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Disable global Ctrl-Alt-L hotkey in KDE The IntelliJ IDEA short-cut to reformat source code is Ctrl+Alt+L. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence? A: I eventually found how to disable the lock screen key binding (Ctrl-Alt-L) in the System ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Create an icon in memory with win32 in python What's a good way to generate an icon in-memory in python? Right now I'm forced to use pygame to draw the icon, then I save it to disk as an .ico file, and then I load it from disk as an ICO resource... Something like this: if os.path.isfile(self.icon): icon_...
{ "language": "en", "url": "https://stackoverflow.com/questions/211046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find "real" height/width of Swing/AWT object Because Canvas3D doesn't have the ability to resize dynamically with the parent frame, I would like to be able to track when a user resizes a window and then resize it manually myself. (If this ends up crashing Canvas3D, as some docs suggest, I will simply destroy and rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/211051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What compels you to attend your local user group(s)? So I'm in Des Moines, Iowa and we have a good number of user groups in our area considering our size. Ruby, .Net, Java, Agile, *nix, etc... Well, tonight a good number of us "leaders" of said user groups got together for a couple drinks and to talk about how we ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/211052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does Linux provide a monotonically increasing clock to applications Does Linux/Unix/Posix provide an API to user-space applications to access a monotonically increasing clock, with centisecond to millisecond accuracy? On Linux, /proc/uptime provides a string-based representation of a floating point number of the num...
{ "language": "en", "url": "https://stackoverflow.com/questions/211055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Copy every nth line from one sheet to another I have an Excel spreadsheet with 1 column, 700 rows. I care about every seventh line. I don't want to have to go in and delete the 6 rows between each row I care about. So my solution was to create another sheet and specify a reference to each cell I want. =sheet1!a1 =sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/211062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Using svn and .NET Winforms - Building Install Files Deletes _svn Folders Does anyone know how to build an install project without it deleting/overwriting the _svn folders? I have a VB .NET 2005 Winform Application and each time I do an Installer Build, it deletes/overwrites the _svn folder in the directories. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I constrain the size of a tooltip/popup-style DIV so that it doesn't trigger scrollbars on the page The mouse hovers over an element and a tip appears. The tip overflows the page, triggering a scrollbar, which changes the layout just enough so that the underlying element that triggered the tip is no longer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Running an asp.net 1.1 app under windows server 2008 64bit Are there any issues with running an asp.net 1.1 application under windows server 2008 64-bit web edition? A: I have never tried it myself, but I did find the following pages that you might find interesting: * *This blog has an in depth walk through of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/211076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Free DayView Calendar for WPF? Is there a free DayView Calendar for WPF like this one? http://www.codeproject.com/KB/selection/Calendardayview.aspx Thanks in advance! Cheers from Argentina! A: Have a look at these articles on Code Project * *Creating an Outlook Calendar Using WPF (Part 1) *Creating an Outlook C...
{ "language": "en", "url": "https://stackoverflow.com/questions/211081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I permit my Java applet to use MySQL? I've recently gotten my hobby java project embedded into a page thanks to this very site, but now I'm having some security issues. I have the include: import java.sql.*; and the line: Class.forName("com.mysql.jdbc.Driver").newInstance(); as well as a mysql .jar file in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python's __import__ doesn't work as expected When using __import__ with a dotted name, something like: somepackage.somemodule, the module returned isn't somemodule, whatever is returned seems to be mostly empty! what's going on here? A: There is something that works as you want it to: twisted.python.reflect.namedAn...
{ "language": "en", "url": "https://stackoverflow.com/questions/211100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: jQuery.ScrollTo / jQuery.SerialScroll Horizontal Scrolling I am looking to implement horizontal scrolling using jQuery.SerialScroll (based on jQuery.ScrollTo). I currently have a continuous horizontal scrolling working with liScroll as I discuss in this post. However, now I need discrete scrolling and I have SerialS...
{ "language": "en", "url": "https://stackoverflow.com/questions/211111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to build "Tagging" support using CouchDB? I'm using the following view function to iterate over all items in the database (in order to find a tag), but I think the performance is very poor if the dataset is large. Any other approach? def by_tag(tag): return ''' function(doc) { if (doc.tags.l...
{ "language": "en", "url": "https://stackoverflow.com/questions/211118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WCF Service Custom Configuration In an application that is hosting several WCF services, what would be the best way to add custom configuration information for each service? For example you may want to pass or set a company name or specify the connectionString a service or some other parameter. I'm guessing this m...
{ "language": "en", "url": "https://stackoverflow.com/questions/211122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Connection to Oracle without a username or password Oracle has this concept of allowing database users to be identified by the operating system user who is running the program that is connecting to Oracle. See here. This allows you to do, as that user on a unix machine for example, a command such as: sqlplus / I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/211133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I use jQuery to insert a wrapped around a variable number of child elements? I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol> <li> <label>Some label</label> <one or more form controls, ASP.Net controls, labels, etc.> </li> <li> <label>Another ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server 2005 - best way to move data between two databases when primary keys have changed i know this should be db 101, but its just not as clear as it can be for me. I am using SQL2005 express and i want to copy data from databaseA to databaseB. DatabaseB already contains existing data - it may even contain da...
{ "language": "en", "url": "https://stackoverflow.com/questions/211142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Enum definition I thought I understood Java generics pretty well, but then I came across the following in java.lang.Enum: class Enum<E extends Enum<E>> Could someone explain how to interpret this type parameter? Bonus points for providing other examples of where a similar type parameter could be used. A: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: Installing SqlServer 2005 Express using InstallShield and creating a unique named instance I'm using Installshield 2008 express to create an installation package. My application relies on Sql Server 2005 express edition. I know I am able to check the "microsoft sql server 2005 express" prerequisite under the redistr...
{ "language": "en", "url": "https://stackoverflow.com/questions/211145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use the standard C library in a Palm OS application? The published code for Palm OS applications doesn't include standard headers, but instead uses Palm OS APIs for things like StrCopy and MemMove. Can I use standard headers and functions or do I need to convert my code to use the Palm OS versions? A: From a...
{ "language": "en", "url": "https://stackoverflow.com/questions/211149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Inverse of a Matrix How do I get the inverse of a matrix in python? I've implemented it myself, but it's pure python, and I suspect there are faster modules out there to do it. A: For those like me, who were looking for a pure Python solution without pandas or numpy involved, check out the following GitHub p...
{ "language": "en", "url": "https://stackoverflow.com/questions/211160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: How to get the statistics existing on a column, if any? I want to check in Transact SQL if a specific column in a table has statistics and if so to get them all. A: This query should do it. I use it in a stored proc that browse the DB to find stats. Works in SQL Server 2005 and probably older version as well. SELEC...
{ "language": "en", "url": "https://stackoverflow.com/questions/211166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CNG, CryptoServiceProvider and Managed implementations of HashAlgorithm So I was wondering if there are any major differences between the various implementations of the hash algorithms, take the SHA series of algorithms for example. All of them have 3 implementations each, 1 in managed code and 2 wrappers around dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/211169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Article on using Firebird.NET in a WinForms application Can anyone provide me with a link to good article about using Firebird.NET with a WinForms application? A simple google search did not yield good results - I am looking for a step-by-step guide which will help me to quickly a few things and am not sure the docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/211171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interface is not visible from ClassLoader when using a proxy? I am seeing following exception when I try to use dynamic proxy com.intellij.rt.execution.application.AppMain DynamicProxy.DynamicProxy Exception in thread "main" java.lang.IllegalArgumentException: interface Interfaces.IPerson is not visible from class...
{ "language": "en", "url": "https://stackoverflow.com/questions/211176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Selenium: wait_for_* and friends in Selenium RC ruby driver Are there any implementations of all the nifty Selenium on Rails methods like wait_for_visible, assert_not_text_present, ... for the ruby driver of Selenium RC? If not, how would I go about implementing something like wait_for_visible? A: I solved my own ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: File Upload using Multi Part Request Failure Question Is HTTPS Multipart file upload request a batch process? That is, if I have 99 files, and if the upload fails after file 95 has been uploaded, will that rollback the entire set? A: I would assume that the entire set is rolled back, if you use plain HTTP(S) POST r...
{ "language": "en", "url": "https://stackoverflow.com/questions/211182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using AJAX callbacks with ASP.NET User controls What's the best way to implement user controls that require AJAX callbacks? I want to accomplish a few things: * *Have events done in the browser (eg, drag and drop) trigger an AJAX notification that can raise a control event, which causes code on the page using th...
{ "language": "en", "url": "https://stackoverflow.com/questions/211184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Check if the application is already installed I want to check if an app is alredy installed through launch conditions.If yes i want to exit the installer,if no the installation should continue.Could anyone tell how to achive this in c# installer?. Regards, Harsh Suman A: I'm not sure on how to do this specifically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Design Time Attribute For CSS Class in ASP.net Custom Server Control Hopefully some Custom Control Designers/Builders can help I'm attempting to build my first custom control that is essential a client detail collection form. There are to be a series of elements to this form that require various styles applied to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/211193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stock Trading System Calculations via SQL Need to calculate a stock market portfolio based on trades in a database. The calculation I'm looking to do via SQL are average price, rate of return, portfolio value, etc. Sample data: Stock Shares Price Value A 100 50 5000 A -20 60 -1200...
{ "language": "en", "url": "https://stackoverflow.com/questions/211195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Placing a Sharepoint Site under version control Working with Mircosoft Office Sharepoint Server 2007 (standard edition) what is the best way to place a site collection being developed under version control? We're using Subversion for all our other (non-sharepoint) projects but I'm just not sure how to approach MOSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/211196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hidden features of Haskell What are the lesser-known but useful features of the Haskell programming language. (I understand the language itself is lesser-known, but work with me. Even explanations of the simple things in Haskell, like defining the Fibonacci sequence with one line of code, will get upvoted by me.) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Possible to use MovieClipLoader() to load a swf from a different server? Having some issues loading files from media hosting into swf shell (a swf loading swfs as assets). Mp3s and images work fine but a swf never loads. Code is like: swfpath = "http://555.55.555.555/vir_dir/swf/N000001.swf" movie_loader.loadMovie(s...
{ "language": "en", "url": "https://stackoverflow.com/questions/211219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running External Apps on save in Eclipse Since we cannot setup Eclipse's RSE to use at the tool for remote editing, I have installed Unison. But how can I get Eclipse to automatically run unison on every file save? Is there an eclipse plugin available for this? TIA A: You can setup it to be run on every build. Any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Static variables initialisation order C++ guarantees that variables in a compilation unit (.cpp file) are initialised in order of declaration. For number of compilation units this rule works for each one separately (I mean static variables outside of classes). But, the order of initialization of variables, is undefi...
{ "language": "en", "url": "https://stackoverflow.com/questions/211237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Rails and CouchDB - Architectural Concerns I am working on a project that is going to use CouchDB for flexible storage of documents. The requirements of my system are a neat match for CouchDB for storage. BUT My question really boils down to this: Should I keeop using ActiveRecord and MySQL as well ... there are a r...
{ "language": "en", "url": "https://stackoverflow.com/questions/211238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I rename a project folder from within Visual Studio? My current solution for renaming the project folder is: * *Remove the project from the solution. *Rename the folder outside Visual Studio. *Re-add the project to the solution. Is there a better way? A: For Visual Studio 2017 you can use my Visual S...
{ "language": "en", "url": "https://stackoverflow.com/questions/211241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "792" }
Q: How to build large MySQL INSERT query in PHP without wasting memory I have code looking something like this: $data = file_get_contents($tempFile); // perhaps 30MB of file data, now in PHP's memory $hash = md5($data); $query = "INSERT INTO some_table SET BlobData = '" . mysql_real_escape_string($data) . "',...
{ "language": "en", "url": "https://stackoverflow.com/questions/211243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does Windows provide a monotonically increasing clock to applications This question is inspired by Does Linux provide a monotonically increasing clock to applications. Maybe I should be more precise: I'm looking for a clock function which is strictly increasing, thus never returning the same value, independant how q...
{ "language": "en", "url": "https://stackoverflow.com/questions/211257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Using MS Access to return on-demand reports in a web server? I have built a MS Access 2007 application that can create reports files in various formats (PDF, XLS, CSV, XML). I would like to allow the creation of these reports to be accessible from a web page where users would just click on a link and get a download ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I extract and save text using Perl? No extracted data output to data2.txt? What goes wrong to the code? MyFile.txt ex1,fx2,xx1 mm1,nn2,gg3 EX1,hh2,ff7 This is my desired output in data2.txt: ex1,fx2,xx1 EX1,hh2,ff7 #! /DATA/PLUG/pvelasco/Softwares/PERLINUX/bin/perl -w my $infile ='My1.txt'; my $outfile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Halt storage access? I am trying to construct a way to keep certain hard drive partitions/usb drives from being accessed for security reasons (protecting intellectual property). I was thinking that when windows attempts to access the "locked down drive/usb" the attempted is halted and returns something like "drive i...
{ "language": "en", "url": "https://stackoverflow.com/questions/211263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does traceroute work? It seems almost magical. What is the traceroute command doing in order to map out the entire path to some other node on the Internet? A: traceroute sets the TTL (Time To LIve) field to 1 and increments it for every hop. the routers receiving the message decrement this value and when it rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/211270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Maven archetype to generate simple project including site Is there a Maven archetype that will generate the same scaffolding as maven-archetype-quickstart, but will in addition create the basic project site layout generated by maven-archetype-site? Or do I always have to run each in sequence? A: I think AppFuse is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any performance hit involved in choosing gzip over deflate for http compression? We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers. A: gzip is, basically, deflate with some additional headers. So there should not be a significant perfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/211284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Where can I find plug-ins for Resharper? does anyone know of a good place to find plugins for Resharper? Preferably somewhere more structured than Google... Thanks! A: There are some more here. A: ReSharper Gallery contains a number of packages. A: In partial (self) answer, the list at the Resharper site itself...
{ "language": "en", "url": "https://stackoverflow.com/questions/211298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unable to save Entity Framework Inherited types I have implemented some table-per-type inheritance in my data model (basically have a BaseEntity type with all the base information for my items and a Employer type that inherits from the BaseEntity item). Everything appears to be set up correctly and when using the E...
{ "language": "en", "url": "https://stackoverflow.com/questions/211299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the data type for length property for Java arrays? I want to find out if length property for Java arrays is an int/long or something else. A: In Java Language spec, Arrays you can see in 10.4: Arrays must be indexed by int values; short, byte, or char values may also be used as index values because the...
{ "language": "en", "url": "https://stackoverflow.com/questions/211311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: WPF Databinding and cascading Converters? i wonder if it is possible to cascade converters when using wpf databinding. e.g. something like <SomeControl Visibility="{Binding Path=SomeProperty, Converter={StaticResource firstConverter}, Converter={StaticResource secondConverter}}"/> is it possible at all or do i hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/211319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: quick selection of a random row from a large table in mysql What is a fast way to select a random row from a large mysql table? I'm working in php, but I'm interested in any solution even if it's in another language. A: Grab all the id's, pick a random one from it, and retrieve the full row. If you know the id's ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/211329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Calling As function from js problem I have a swf file that is not controlled by me. The swf expects a javascript call to set some variables after initialization. The swf is embedded using the swfobject and I'm trying to call the as function right after the embed. This appears to be too soon because I get an error. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stay up-to-date with all the software (local and web-based) How do you stay up-to-date when it comes to new software versions? Above all, I mean minor updates (new version for your Joomla-Installation, forum-software, FTP-Client, ...). Versiontracker, RSS-Feeds, Newsletter... what else? Anyone wrote a script ...
{ "language": "en", "url": "https://stackoverflow.com/questions/211336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: access to SQL copy We have an Access DB which has a set of local tables and input forms etc. in which a user maintains their data. We also have a SQL DB with the same tables which is used to displays the data in a web search form. What is the best way to allow the user to udate his changes to the SQL db while keepin...
{ "language": "en", "url": "https://stackoverflow.com/questions/211341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Working with large numbers in PHP To use modular exponentiation as you would require when using the Fermat Primality Test with large numbers (100,000+), it calls for some very large calculations. When I multiply two large numbers (eg: 62574 and 62574) PHP seems to cast the result to a float. Getting the modulus valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/211345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: How do you do TDD in a non-trivial application? I've read a number of books and websites on the subject of TDD, and they all make a lot of sense, especially Kent Beck's book. However, when I try to do TDD myself, i find myself staring at the keyboard wondering how to begin. Is there a process you use? What is you...
{ "language": "en", "url": "https://stackoverflow.com/questions/211346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can I get the computer name of the client filling an web-based Infopath form? I have an Infopath 2007 form hosted on MOSS 2007. The code behind the form is written in C#. In this context, System.Environment.MachineName return the server name. How can I get the name of the computer from which the client is fillin...
{ "language": "en", "url": "https://stackoverflow.com/questions/211347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to let an ASMX file output JSON I created an ASMX file with a code behind file. It's working fine, but it is outputting XML. However, I need it to output JSON. The ResponseFormat configuration doesn't seem to work. My code-behind is: [System.Web.Script.Services.ScriptService] public class _default : System.Web.S...
{ "language": "en", "url": "https://stackoverflow.com/questions/211348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Stand-alone report preview through RDC/ActiveX Crystal Reports XI I'm porting an application from Crystal Reports 8 to Crystal Reports XI in Delphi 5, using the RDC/ActiveX interface. In Crystal Reports 8, I was able to bring up the crystal reports default report viewer window for a report like so: RptInvoicing.Dest...
{ "language": "en", "url": "https://stackoverflow.com/questions/211353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }