text
stringlengths
8
267k
meta
dict
Q: Java post-mortem debugging? Is it possible to have a post-mortem ( or post-exception ) debugging session in Java ? What would the workarounds be ( if there isn't a solution for this already ) ? A: You can attach the debugger to a java process and set a breakpoint when a specific exception is received. Is this wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/314843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Localization: Do all locales put the weekday before the date? Here's a simple (hopefully) L10N question: Do all locales want this format: Sunday, Nov 23, 2008 with the weekday before the date, or do some locales want it after the date like this? Nov 23, 2008, Sunday A: Don't assume that. I can customize my setting...
{ "language": "en", "url": "https://stackoverflow.com/questions/314844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Checking memory usage of an ASP.NET web site I'm using shared ASP.NET hosting and I have no remote-desktop access to the web server. I only have the ability to FTP ASP.NET related files to the server. In this scenario, how would I see how much memory my ASP.NET application is consuming? A: Could you create a page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: With System.Data.SQLite how do you specify a database file in the connect string using a relative path Wanting to deploy my project on different servers I would prefer to be able to specify a connect string using a relative path. I can't seem to get that to work and want to know if there is some trick to it...? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: how to make text line break in flex textarea I have a string var s:String = "This is a line \n This is another line."; this.txtHolder.text = s; //.text has \n, not a new line and i want to put it into a text area, but the new line character is ignored. How can i ensure that the text breaks where i want it to when i...
{ "language": "en", "url": "https://stackoverflow.com/questions/314858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to generate a Mandelbrot with T-SQL? Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it. Turns out someone already has (and recently, it appears). I'll let someone else post it as an answer, but I'm curious what optimizations can be made. Alternately...
{ "language": "en", "url": "https://stackoverflow.com/questions/314864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Mod-rewrite Trailing Slash Issue There doesn't seem to be much info on this topic so I'm going to outline my specific problem then maybe we can shape the question and the answer into something a bit more universal. I have this rewrite rule RewriteEngine On RewriteBase /bookkeepers/ RewriteCond %{REQUEST_FILENAME} !-...
{ "language": "en", "url": "https://stackoverflow.com/questions/314872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Team Build MSBuild Task Does Not Update Main Build Log File I have an after build event in my main TFSBuild.proj file that uses the MSBuild task to call a deployment task after a successful build. It looks like this: <ItemGroup> <DeploymentTargets Include="..\Sources\Build\SkunkWorks.Build.Deployment.targets"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Intercept every request originating from a webpage Is it possible to intercept every request made from a page using javascript? i.e. Clicking on a link, loading an image, ajax request... A: In a word, no. There's no place you can hook into to get all the requests. Having said that, you can us javascript to place e...
{ "language": "en", "url": "https://stackoverflow.com/questions/314891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Heap fragmentation in 64 bit land In the past, when I've worked on long-running C++ daemons I've had to deal with heap fragmentation issues. Tricks like keeping a pool of my large allocations were necessary to keep from running out of contiguous heap space. Is this still an issue with a 64 bit address space? Per...
{ "language": "en", "url": "https://stackoverflow.com/questions/314909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Do all WPF render transforms run in double-precision? WPF stores all its data in double precision. I just want to confirm that all transforms, etc., run in double precision. I'm working on a WPF canvas, which is very large (40,000,000 x 40,000,000), translating and scaling to zoom into it - placing tiles on to it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Looping through a datatable and remove row I have populated a Datatable, from 2 different servers. I am able to make adjustments where my length>0, what I want to do is remove the rows that does not hit. Here is a summary of what I have DataRow[] dr = payments.dtPayments.Select(myselect); if (dr.Length > 0) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: glibc's '-lmcheck' option and multithreading We've been trying to hunt down some heap corruption issues in our multi-threaded C++ apps. As one technique, we tried add -lmcheck to the libraries line of the application. This is causing the app to crash out with apparent heap corruption in relatively short order. Our a...
{ "language": "en", "url": "https://stackoverflow.com/questions/314931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ASP.NET MVC: How do I pass a list (from a class in Model) to a repeater in a View? How do I do the above? I've started using MVC and I'm having issues passing data around. My specific problem is to do with a list of objects I have in my Model which I need to access in a View and iterate through. Thanks in advance. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PHP -CSV REading and Uploading images from url Can any one help me to find out a code snippet in PHP to read contents in an CSV file and then insert to some tables as well as fetch some data from www(fetch image fom the image url in CSV file) A: The code would look something like this. Note this code hasn't been te...
{ "language": "en", "url": "https://stackoverflow.com/questions/314934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tablesorter problems with JSP I have a one-page application whose only page is created through a JSP. It allows people to look up bibliographic information. Unfortunately there are some problems with JQuery tablesorter. * *The main one is that the result page cannot be sorted, nor the header images are visible, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/314936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to: Update calendar events that were imported by iCalendar file? Possible Duplicate: ICalendar and event updates not working in Outlook Help updating an event in Outlook 2007 with an iCalendar file How do I update calendar events that were imported by iCalendar file? I need to re-import events but I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What algorithm does Excel use to recalculate formulas? Are the formulas represented in a syntax tree then recalculated using a design pattern like the Visitor pattern? How would you go about reproducing the recalculation process in code? A: Resolver One was a spreadsheet developed using IronPython. Its source code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails Background task overhead Has anybody done a comparison of the overhead of the various background processing techniques? Background/RB, Starling, Workling MemcacheQ Beanstalk Background Job (Bj) delayed_job (Dj) I will be implementing one of them on a slice and would like to know how much memory they take up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is this Makefile Doing? I'm new using makefiles and I have some makefiles. One of them has these statements I tried to understand but I can't. What is this makefile doing? # debugging support ifeq ($(DEBUG), true) CFLAGS+=-DDEBUG -g endif ifeq ($(DEBUG), gdb) CFLAGS+=-g endif ifeq ($(PROFILING), true) CFLAG...
{ "language": "en", "url": "https://stackoverflow.com/questions/314945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET friendly image editor I'm looking for an image editor that I can embed easily into an ASP.NET website. I need to be able to draw rectangles, lines and add some text. Additionally, images must not be uploaded to third-party servers. I've checked sites of the main ISVs that develop .NET controls but none of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/314958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I hide duplicate records (within a crystal report) which have already been reversed? This question is a follow-up to a question I asked the other day ("Need to find duplicate records but exclude reversed transactions"). I have a Crystal Report which displays customers' fuel transactions. There are occasions...
{ "language": "en", "url": "https://stackoverflow.com/questions/314966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: #include header guard format? I know it makes little difference to a project but, assuming you use #defined header guards for your C++ code, what format do you use? e.g. assuming a header called foo.hpp: #ifndef __FOO_HPP__ ... #ifndef INCLUDED_FOO_HPP ... #ifndef SOME_OTHER_FORMAT I'm sold on the idea of upper-...
{ "language": "en", "url": "https://stackoverflow.com/questions/314983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What's a good example of register variable usage in C? I'm reading through K&R and came to the small section on register variables, and was wondering if people here have some good examples of this put into practice. From section 4.7 in K&R: The register declaration looks like register int x; register...
{ "language": "en", "url": "https://stackoverflow.com/questions/314994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: SQL Server 2005 drop column with constraints I have a column with a "DEFAULT" constraint. I'd like to create a script that drops that column. The problem is that it returns this error: Msg 5074, Level 16, State 1, Line 1 The object 'DF__PeriodSce__IsClo__4BCC3ABA' is dependent on column 'IsClosed'. Msg 4922, Leve...
{ "language": "en", "url": "https://stackoverflow.com/questions/314998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: How to study design patterns? I have read around 4-5 books on design patterns, but still I don't feel I have come closer to intermediate level in design patterns? How should I go studying design patterns? Is there any good book for design patterns? I know this will come only with experience but there must be som...
{ "language": "en", "url": "https://stackoverflow.com/questions/315000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "351" }
Q: Challenges faced while working in different time zones I am sure there are many developers out here who have team spread across different time zones. What are some of the challenges people face and whats the best way to tackle them? A: I currently work in a different time zone than the rest of my team. The biggest...
{ "language": "en", "url": "https://stackoverflow.com/questions/315002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: java - determining if a file is a link How do you do it, or is it even possible? I suppose you could fiddle with getCanonicalWhatever and the original path, but that's messy and I don't like it. Please include a definitive reason if you suggest it. A: See the article How to deal with filesystem softlinks/symbolic l...
{ "language": "en", "url": "https://stackoverflow.com/questions/315004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to programmatically recycle a dllhost.exe process in COM+? How to programmatically recycle a dllhost.exe process in COM+? A: Take a look at this. This is a com library that allows you to manage com+ application. Com+ Administrator Reference
{ "language": "en", "url": "https://stackoverflow.com/questions/315006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mechanical Turk: Using HTML in the API Question for anyone who's used Mechanical Turk: Is it possible to take an HTML template created on Mechanical Turk's website, and then create more HITs based on that template from the command line tools or API? According to the API docs, it's not possible to create new HTML a...
{ "language": "en", "url": "https://stackoverflow.com/questions/315009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding a dependency of a SQL Server server data type Is there a command, or a set of tables I can look at to determine which tables, stored procedures and views in SQL Server server 2005 have a certain user defined data type? A: For tables and views: Select * From Information_Schema.Columns Where DOMAIN_NAME ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Get Last Created Entry's ID From Sql Database With Asp.Net I will explain problem with an example: There is two table in my database, named entry, tags There is a column named ID_ENTRY in both table. When I add a record to table, entry, I have to take the ID_ENTRY of last added record and add it to table, tag...
{ "language": "en", "url": "https://stackoverflow.com/questions/315017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Behavior of SIO_FLUSH When SIO_FLUSH socket ioctl is used in a Windows environment (in user space), I am confused as to what happens. Does this: (1) completely discard the data from the TCP/IP send queue into a black hole, or (2) push the queued send data across the connection until the buffer is empty, or (3) some...
{ "language": "en", "url": "https://stackoverflow.com/questions/315045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: using a class defined in a c++ dll in c# code I have a dll that was written in c++, I need to use this dll in my c# code. After searching I found that using P/Invoke would give me access to the function I need, but these functions are defined with in a class and use non-static private member variables. So I need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Making the window [X] button close instead of minimise on Windows Moblie The [x] button in the top bar of a window that normally closes the window in standard Windows, appears to do a minimise instead on Windows Compact. How do it make it close instead? I need to also be able to raise an event when this happens as I...
{ "language": "en", "url": "https://stackoverflow.com/questions/315053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: JSF initialize application-scope bean when context initialized I'm building a JSF+Facelets web app, one piece of which is a method that scans a directory every so often and indexes any changes. This method is part of a bean which is in application scope. I have built a subclass of TimerTask to call the method ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/315073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Transforming flat file to XML using XSLT-like technology I'm designing a system which is receiving data from a number of partners in the form of CSV files. The files may differ in the number and ordering of columns. For the most part, I will want to choose a subset of the columns, maybe reorder them, and hand them o...
{ "language": "en", "url": "https://stackoverflow.com/questions/315074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you handle multiple instances of setTimeout()? What is the most recommended/best way to stop multiple instances of a setTimeout function from being created (in javascript)? An example (psuedo code): function mouseClick() { moveDiv("div_0001", mouseX, mouseY); } function moveDiv(objID, destX, destY) { /...
{ "language": "en", "url": "https://stackoverflow.com/questions/315078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Best performance comparison website or resource for .Net Web Applications? I am the .Net specialist in a consultancy with many difference flavors of developers using many different languages and frameworks. Because everyone is pretty much trying to push their own agendas with our different clients in terms of what t...
{ "language": "en", "url": "https://stackoverflow.com/questions/315084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interleave row/column colors in a GridView Suppose you have a GridView with a few columns like: | Foo | Bar | Total | and you use a style sheet to make the alternating rows different colors, say light blue and white. Is there a good way to make a particular column alternate in a different color? For example, I migh...
{ "language": "en", "url": "https://stackoverflow.com/questions/315091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Configure Symlinks for single directory in Tomcat I have a directory to which a process uploads some .pdf files. This process is out of my control. I need to make those files available through the website using Tomcat. I have a directory /var/lib/tomcat5/webapps/test1 available to the web and I can see the files in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to react when the client's response is negative on delivery? I am a junior programmer. Since my supervisor told me to sit in with the client, I joined. I saw the unsatisfied face of the client despite the successful (from my programmer's perspective) delivery of the project! Client: You could have included this!...
{ "language": "en", "url": "https://stackoverflow.com/questions/315097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: NHibernate: Best way to deal with intermediary table using Fluent NHibernate? How would you map the following in Fluent NHibernate? See "18.3. Customer/Order/Product" http://www.hibernate.org/hib_docs/nhibernate/html/example-mappings.html A: The following solution uses the same approach as the solution in the examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/315106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross-platform (linux/Win32) nonblocking C++ IO on stdin/stdout/stderr I'm trying to find the best solution for nonblocking IO via stdin/stdout with the following characteristics: * *As long as there is enough data, read in n-sized chunks. *If there's not enough data, read in a partial chunk. *If there is no da...
{ "language": "en", "url": "https://stackoverflow.com/questions/315111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: java.lang.UnsupportedOperationException in JPA transaction I'm pretty sure that I'm not understanding something about JPA (I'm using OpenJPA) and it's causing this problem. I want to make a copy of a Job entity. @Entity @Table(name="Job") public class Job implements Serializable { @Id @GeneratedValue(strate...
{ "language": "en", "url": "https://stackoverflow.com/questions/315115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the factors to decide between using Core Data versus rolling out a custom model? There might be applications that are not suited for Core Data - image manipulation programs like Photoshop or Gimp for example. But for applications that are suited for Core Data, say Address Book or iCal, what is the criteria ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use cookies across two different domains? I need to share SSO information between two different domains with a cookie, can this be done in PHP and how? A: On both domains, place an image or other web element that is pulled from the other domain. Use the URL to notify the other domain that user X is on dom...
{ "language": "en", "url": "https://stackoverflow.com/questions/315132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I get started using Nunit in my Visual Studio project? I want to start using Nunit (finally), I am using Visual Studio 2008. Is it as simple as importing Nunit into my test project? I remember seeing a GUI for NUnit, does that do the exact same thing that a separate test project would do, except show you the...
{ "language": "en", "url": "https://stackoverflow.com/questions/315139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Java Beans: What am I missing? I'm wondering if I'm missing something about Java Beans. I like my objects to do as much initialization in the constructor as possible and have a minimum number of mutators. Beans seem to go directly against this and generally feel clunky. What capabilities am I missing out on by not b...
{ "language": "en", "url": "https://stackoverflow.com/questions/315142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Anonymous Types - Are there any distingushing characteristics? Is there anything to use, to determine if a type is actually a anonymous type? For example an interface, etc? The goal is to create something like the following... //defined like... public static T Get<T>(this IAnonymous obj, string prop) { return (T...
{ "language": "en", "url": "https://stackoverflow.com/questions/315146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Is it possible to use BindingSource.find on multple columns? Is it possible to use BindingSource.find on multple columns? I have a treeview and a combobox. The combobox provides the ID that is used to build the treeview. When I select a node in the tree view I want to display the details/child information for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a FolderBrowserDialog from a WPF application I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don't much care that it has the Windows Forms look to it. However, when I call ShowDialog, I want to pass the owner window which is an IWin32Window. How do I get this from my W...
{ "language": "en", "url": "https://stackoverflow.com/questions/315164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to debug Web2py applications? Is it possible? By debug I mean setting breakpoints, inspect values and advance step by step. A: I haven't used web2py, but if it runs in a terminal window, you can use standard pdb stuff. Add this line somewhere in your code: import pdb; pdb.set_trace() This will invoke the deb...
{ "language": "en", "url": "https://stackoverflow.com/questions/315165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Windows 2000 and Windows 2003 RC2 encryption/decryption using windows Crypto API? Our app encrypts a value using RC2 in C++ code and I wrote a decryption routine in .NET The problem is that it works fine on our dev server, which is Windows 2003 but fails on the Windows 2000 one. It's running the same code and I che...
{ "language": "en", "url": "https://stackoverflow.com/questions/315171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic Columns and Data Sources with .NET Grid View I am working on a multi-purpose page and rather than adding multiple grids to the same page we wanted to use a single GridView to the page, and on Page_Init add the needed columns, and set the respective DataSourceID. So to do this, we have something like the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/315176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any way to shuffle content in multiple div elements I'm relatively new to Javascript and was wondering if there's a quick way to shuffle content that is contained in multiple <div> tags. For example <div id='d1'> <span>alpha</span> <img src='alpha.jpg'> </div> <div id='d2'> <span>beta</span> <img src='beta....
{ "language": "en", "url": "https://stackoverflow.com/questions/315177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: ASP.NET GridView Newbie Questions About TFOOT and TH Greetings! I'm still learning about the GridView control and I have one bound to an ObjectDataSource. My Web form looks like this: <asp:GridView ID="ourGrid" runat="server" DataSourceID="ourDataSource" onrowdatabound="ourGrid_RowDataBound" HeaderSty...
{ "language": "en", "url": "https://stackoverflow.com/questions/315178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Model-View-Presenter and Modal Dialog boxes.... How to? I am implementing MVP/M-V-VM in WPF and I'm having good luck with it so far. However, I don't see how this model supports implementing Modal dialog boxes. I've derived my work from Crack.NET (http://www.codeplex.com/cracknetproject) to learn how this stuff wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/315180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which Hypervisors allow Raw PCI access? I am trying to find out which Hypervisor will allow me to grant access to specialized PCI cards (such as a telephony card) to a virtual machine. So far I have tried out VMWare ESXi server and it doesn't seem to allow me to do this. I have heard that Microsoft Virtual Server do...
{ "language": "en", "url": "https://stackoverflow.com/questions/315182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery: Move JavaScript to the bottom of the page? We are developing large ASP.NET applications with lot of dynmically created pages containing ASCX controls. We use a lot of jQuery everywhere. I have been reading that it would make sense to move the inline JavaScript code to the bottom of the page as it could delay...
{ "language": "en", "url": "https://stackoverflow.com/questions/315183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the sql to query SqlServer system databases to find an DB object? I have a large db with many tables and sprocs, and I want to find and see, for example, if there is a table with a name that has "setting" as part of it. I'm not very familiar with SqlServer's System Databases like master, msdb etc., I know t...
{ "language": "en", "url": "https://stackoverflow.com/questions/315185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL join to find inconsistencies between two data sources I have a SQL challenge that is wracking my brain. I am trying to reconcile two reports for licenses of an application. The first report is an access database table. It has been created and maintained by hand by my predecessors. Whenever they installed or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java printing directly to a Postscript network printer I've got Postscript code/data (?) in memory (in a Java Tomcat webapp) that I'd like to send directly to a networked PS printer. Is there an easy way (i.e. just popping open a port and sending the text) to print this, bypassing all of the O/S-specific drivers an...
{ "language": "en", "url": "https://stackoverflow.com/questions/315209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Unable to debug WCF service message I've got a Visual Studio 2008 solution with a WCF service, and a client. When I run my client, and call a method from my service I get a message saying "Unable to automatically debug 'Home.Service'. The remote procedure could not be debugged. This usually indicates that debugging ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: C++ templates and inheritance My C++ framework has Buttons. A Button derives from Control. So a function accepting a Control can take a Button as its argument. So far so good. I also have List<T>. However, List<Button> doesn't derive from List<Control>, which means a function accepting a list of Controls can't take ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to add a user in a different Active Directory Domain in C#? So my goal is to be able to add a user from one Active Directory Domain to another group in a separate Active Directory Domain. I'd like to do this in C#. I know there is a System.DirectoryServices namespace with classes to communicate with AD, but I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/315227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multi-lingual projects in Visual Studio Would anyone know if there are plans or extensions to Visual Studio to allow for multi-lingual projects? While the .NET platform is truly polyglot, Visual Studio project are stubbornly monoglot which means that all the work that goes into tooling C# and VB is unusable from new...
{ "language": "en", "url": "https://stackoverflow.com/questions/315230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Reflection to set a Property with a type of List How can I use reflection to create a generic List with a custom class (List<CustomClass>)? I need to be able to add values and use propertyInfo.SetValue(..., ..., ...) to store it. Would I be better off storing these List<>'s as some other data structure? Edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/315231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Get the combobox text in C# I filled up a combobox with the values from an Enum. Now a combobox is text right? So I'm using a getter and a setter. I'm having problems reading the text. Here's the code: public BookType type { get { return (BookType)Enum.Parse(typeof(BookType), this.typeComboBox.Text)...
{ "language": "en", "url": "https://stackoverflow.com/questions/315237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Audit trails and implementing SOX/HIPAA/etc, best practices for sensitive data I consider myself to be relatively proficient in terms of application design, but I've never had to work with sensitive data. I've been wondering about what the best practices were for audit trails and how exactly one should implement the...
{ "language": "en", "url": "https://stackoverflow.com/questions/315240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Source control setup I thought I'd get myself a Subversion setup at home for my hobby projects, and I'm trying to do it right, first time (my work's source control control policies or lack of them are, well, not perfect). The thing I'm struggling with is this: I'd like to version entire Eclipse projects. This will...
{ "language": "en", "url": "https://stackoverflow.com/questions/315242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a window show up outside the app? In our Flex AIR app, we have the problem that our main app window is fairly narrow. This means Alert dialog boxes are chopped on both side, while the right click menu is cropped. How can we get these windows to not get cropped by our main window? A: Turn your main AIR w...
{ "language": "en", "url": "https://stackoverflow.com/questions/315243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using QMDIArea with Qt 4.4. I'm using the QMdiArea in Qt 4.4. If a new project is created, I add a number of sub windows to a QMdiArea. I'd like to disallow the user to close a sub window during runtime. The sub windows should only be closed if the whole application is closed or if a new project is created. How can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use two incompatible versions of the same DLL in the same process? I'm using two commercial libraries that are produced by the same vendor, called VendorLibA and VendorLibB. The libraries are distributed as many DLLs that depend on the compiler version (e.g. VC7, VC8). Both libraries depend on a another librar...
{ "language": "en", "url": "https://stackoverflow.com/questions/315285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Using a XAML vector image as a window icon LearnWPF.com posted this article about converting bitmap images to XAML and using them in your applications. The outer element of the XAML image is a Canvas. However, the Window.Icon property only accepts an ImageSource object. Does anyone know how I can 'wrap' the Canvas...
{ "language": "en", "url": "https://stackoverflow.com/questions/315295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to list all month names, e.g. for a combo? At the moment I'm creating a DateTime for each month and formatting it to only include the month. Is there another or any better way to do this? A: Try enumerating the month names: for( int i = 1; i <= 12; i++ ){ combo.Items.Add(CultureInfo.CurrentCulture.DateTimeFor...
{ "language": "en", "url": "https://stackoverflow.com/questions/315301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Is "IF" expensive? I can't, for the life of me, remember what exactly our teacher said that day and I'm hoping you would probably know. The module is "Data Structures and Algorithms" and he told us something along the lines of: The if statement is the most expensive [something]. [something] registers [something...
{ "language": "en", "url": "https://stackoverflow.com/questions/315306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "124" }
Q: Rails or clone on Windows Server 2008 - Most Performant? I am very interested in learning a Ruby on Rails / Django type web technology but am currently using Windows Server 2008 (for .Net web applications.) I have read that RoR is not very performant on Windows. * *Would it be unadvisable to create run a beta web...
{ "language": "en", "url": "https://stackoverflow.com/questions/315325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best approach to limit database traffic on large query? I have a database that i'm dealing with which is updated every few hours remotely (not on any specific time span) and i have no control over the administration of it. I have web clients connecting to it to view information contained within it. These clients (co...
{ "language": "en", "url": "https://stackoverflow.com/questions/315331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# LINQ SEO General programming question, how to correctly get the results of a location? sorry about the title :) Here is my basic problem, I trying to implement an SEO type query for a location. Here are my examples * */Leeds */Leeds_England */Hampshire_England */England_Leeds */Europe_England I am trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/315336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any way to programatically set auto refresh on a report in a ReportViewer? I know you can set the auto refresh interval in the design of the report itself, but what I am trying to do is allow a user to set/change this interval himself in a web app (ASP.NET) that uses a ReportViewer control. Is there any way to do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/315339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Practical non-Turing-complete languages? Nearly all programming languages used are Turing Complete, and while this affords the language to represent any computable algorithm, it also comes with its own set of problems. Seeing as all the algorithms I write are intended to halt, I would like to be able to represent th...
{ "language": "en", "url": "https://stackoverflow.com/questions/315340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: How do I edit all rows in an ASP.NET ListView control at the same time? I would like to know how to put all of my ListView rows into edit mode at once. I am not looking for the traditional behavior of editing each row one at a time. The answer can be in either C# or VB.NET. Also, if possible, any sample code of sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/315349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hyper links problems How do I set up a hyperlink on my page that will recognize a landing page from another source (web page) and change my link destination temporarily? In other words: Page one. Someone clicks a link on page (1) and it brings them to my page. On my page there is a link that goes to another page spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/315357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Syntax - Split String into Array by Comma, Convert To Generic List, and Reverse Order What is the correct syntax for this: IList<string> names = "Tom,Scott,Bob".Split(',').ToList<string>().Reverse(); What am I messing up? What does TSource mean? A: List<string> names = "Tom,Scott,Bob".Split(',').Reverse().ToLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/315358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Properly formatted example for Python iMAP email access? tldr: Can someone show me how to properly format this Python iMAP example so it works? from https://docs.python.org/2.4/lib/imap4-example.html import getpass, imaplib M = imaplib.IMAP4() M.login(getpass.getuser(), getpass.getpass()) M.select() typ, data = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Spambots are cluttering my log file [Django] I have a nice and lovely Django site up and running, but have noticed that my error.log file was getting huge, over 150 MB after a couple of months of being live. Turns out a bunch of spambots are looking for well known URL vulnerabilities (or something) and hitting a bun...
{ "language": "en", "url": "https://stackoverflow.com/questions/315363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ performance tips and rules of thumb anyone? When coding, what is a good rule of thumb to keep in mind with respect to performance? There are endless ways to optimize for a specific platform and compiler, but I'm looking for answers that apply equally well (or almost) across compilers and platforms. A: Don't bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/315378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I search through a folder for the filename that matches a regular expression using Python? I am having some difficulty writing a function that will search through a directory for a file that matches a specific regular expression (which I have compiled using 're.compile'). So my question is: How do I search th...
{ "language": "en", "url": "https://stackoverflow.com/questions/315381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I can't connect KAction to slot on KMainWindow I have a KMainWindow: //file.h class MainWindow: public KMainWindow { public: MainWindow(QWidget *parent = 0); ... ... ... private slots: void removeClick(); //file.cpp MainWindow::MainWindow(QWidget *parent) : KMainWindow(parent) {} void MainWindow::removeCl...
{ "language": "en", "url": "https://stackoverflow.com/questions/315393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient C code for Hardware realization in Verilog I have a plain C code for a Image codec.My goal is to develop a efficient C model which will be taken and realized in Hardware using Verilog or some such Hardware description language. What i am trying to find out is: 1.) What modifications need to be done in exi...
{ "language": "en", "url": "https://stackoverflow.com/questions/315398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: server.Databases[databaseName].Drop(); fails in MSTest The following exception is thrown: Error Message: Microsoft.SqlServer.Management.Smo.FailedOperationException: Drop failed for Database '4d982a46-58cb-4ddb-8999-28bd5bb900c7'. ---> Microsoft.SqlServer.Management.Common.ExecutionFailureException: An exception ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting authenticate AD users objectGuid from asp.net I am using windows authentication within an ASP.NET application. I am wondering how to best get the objectGuid from the currently logged in user? Regards, Egil. A: You can do this with the System.DirectoryServices namespace. Dim entry As DirectoryServices.Direc...
{ "language": "en", "url": "https://stackoverflow.com/questions/315403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it advisable to use arrays in Javascript using tens of thousands of indexes? Is it advisable to use arrays in Javascript using tens of thousands of indexes? I have a database which contains a table of static data, meaning that it will never change. In this case would it be advisable to convert this table to a jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/315410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Export from PowerPoint to animated gif? Is it possible to export a picture with custom animation from PowerPoint to an animated gif? A: There are a number of services and pieces of software to convert PowerPoint presentations to videos of various types. AuthorStream is a website that converts PPT to MPEG4. A bunc...
{ "language": "en", "url": "https://stackoverflow.com/questions/315419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: wpf storyboard death C#: public partial class MainWindow : Window { Storyboard a = new Storyboard(); int i; public MainWindow() { InitializeComponent(); a.Completed += new EventHandler(a_Completed); a.Duration = TimeSpan.FromMilliseconds(10); a.Begin(); } void...
{ "language": "en", "url": "https://stackoverflow.com/questions/315427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need instructions for Reversi game I am trying to write Reversi game in Python. Can anyone give me some basic ideas and strategy which are simple, good and easy to use? I would appreciate for any help because I've gone to a little far but is stucked between codes and it became more complex too. I think I overdid in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect file handle leaks with Win32 C++ Is there some way to detect file handle leaks at program termination? In particular I would like to make sure that all of my handles that get created are being freed in code. For example, I may have a CreateFile() somewhere, and at program termination I want to detect and e...
{ "language": "en", "url": "https://stackoverflow.com/questions/315437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WPF: Adding a Trigger to a Button I am currently coding a program with a WPF UI and I have a button which is either close or cancel, depending on if there were any changes made on the page. To achieve this I want to use a trigger (wrapped in a style) on the button so that when the dependency property HasChanges is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/315440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Optimum web folder structure for ~250,000 images I will have around 200,000 images as part of my website. Each image will be stored 3 times: full size, thumbnail, larger thumbnail. Full size images are around 50Kb to 500Kb. Normal tech: Linux, Apache, MySQL, PHP on a VPS. What is the optimum way to store these for f...
{ "language": "en", "url": "https://stackoverflow.com/questions/315459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }