text
stringlengths
8
267k
meta
dict
Q: How do you tell whether a string is an IP or a hostname So you have a String that is retrieved from an admin web UI (so it is definitely a String). How can you find out whether this string is an IP address or a hostname in Java? Update: I think I didn't make myself clear, I was more asking if there is anything in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/66923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you place a textbox object over a specific Cell when automating Excel? We are automating Excel using VB.Net, and trying to place multiple lines of text on an Excel worksheet that we can set to not print. Between these we would have printable reports. We can do this if we add textbox objects, and set the print...
{ "language": "en", "url": "https://stackoverflow.com/questions/66934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Tools to test/debug/fix PHP concurrency issues? I find myself doing some relatively advanced stuff with memcached in PHP. It's becoming a mental struggle to think about and resolve race conditions and concurrency issues caused by the lock-free nature of the cache. PHP seems pretty poor in tools when it comes to conc...
{ "language": "en", "url": "https://stackoverflow.com/questions/66952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create a link to a footnote in HTML? For example: This is main body of my content. I have a footnote link for this line [1]. Then, I have some more content. Some of it is interesting and it has some footnotes as well [2]. [1] Here is my first footnote. [2] Another footnote. So, if I click on the "[1...
{ "language": "en", "url": "https://stackoverflow.com/questions/66964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Is there an Eclipse command to surround the current selection with parentheses? Is there an Eclipse command to surround the current selection with parentheses? Creating a template is a decent workaround; it doesn't work with the "Surround With" functionality, because I want to parenthesize an expression, not an enti...
{ "language": "en", "url": "https://stackoverflow.com/questions/66986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Fast, Pixel Precision 2D Drawing API for Graphics App? I woud like to create a cross-platform drawing program. The one requirement for writing my app is that I have pixel level precision over the canvas. For instance, I want to write my own line drawing algorithm rather than rely on someone elses. I do not want any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is a good algorithm for deciding whether a passed in amount can be built additively from a set of numbers? Possible Duplicate: Algorithm to find which numbers from a list of size n sum to another number What is a good algorithm for deciding whether a passed in amount can be built additively from a set of num...
{ "language": "en", "url": "https://stackoverflow.com/questions/67004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google maps traffic info Google maps in some region can serve traffic information showing the blocked roads and so on. I was wondering if there is any code example demonstrating how can I serve traffice information for my own region. A: "Google Maps Hacks" has a hack, "Hack 30. Stay Out of Traffic Jams", on that. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using boost-python with C++ in Linux My development shop has put together a fairly useful Python-based test suite, and we'd like to test some Linux-based C++ code with it. We've gotten the test project they ship with Boost to compile (type 'bjam' in the directory and it works), but we're having issues with our actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/67015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I export the Bazaar history of a subfolder I'm coding a framework along with a project which uses this framework. The project is a Bazaar repository, with the framework in a subfolder below the project. I want to give the framework a Bazaar repository of its own. How do I do it? A: You use the split command:...
{ "language": "en", "url": "https://stackoverflow.com/questions/67021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: google maps providing directions in local language I noticed that Google maps is providing directions in my local language (hungarian) when I am using google chrome, but English language directions when I am using it from IE. I would like to know how chrome figures this out and how can I write code that is always r...
{ "language": "en", "url": "https://stackoverflow.com/questions/67029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What advantages does jQuery have over other JavaScript libraries? I am trying to convince those who set standards at my current organization that we should use jQuery rather than Prototype and/or YUI. What are some convincing advantages I can use to convince them? A: In my opinion, having briefly tried Prototype, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/67045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: best library to do web-scraping I would like to get data from from different webpages such as addresses of restaurants or dates of different events for a given location and so on. What is the best library I can use for extracting this data from a given set of sites? A: I think the general answer here is to use any...
{ "language": "en", "url": "https://stackoverflow.com/questions/67056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Convention question: When do you use a Getter/Setter function rather than using a Property It strikes me that Properties in C# should be use when trying to manipulate a field in the class. But when there's complex calculations or database involved, we should use a getter/setter. Is this correct? When do you use s/ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/67063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to actually use a source control system? So I get that most of you are frowning at me for not currently using any source control. I want to, I really do, now that I've spent some time reading the questions / answers here. I am a hobby programmer and really don't do much more than tinker, but I've been bitten...
{ "language": "en", "url": "https://stackoverflow.com/questions/67069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the best epoll/kqueue/select equvalient on Windows? What is Windows' best I/O event notification facility? By best I mean something that ... * *doesn't have a limit on number of input file descriptors *works on all file descriptors (disk files, sockets, ...) *provides various notification modes (edge t...
{ "language": "en", "url": "https://stackoverflow.com/questions/67082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How do I rename a MySQL database (change schema name)? How do I quickly rename a MySQL database (change its schema name)? Usually I just dump a database and re-import it with a new name. This is not an option for very big databases. Apparently RENAME {DATABASE | SCHEMA} db_name TO new_db_name; does bad things, exist...
{ "language": "en", "url": "https://stackoverflow.com/questions/67093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1116" }
Q: What is the best way to improve performance of NHibernate? I have an application that uses NHibernate as its ORM and sometimes it experiences performance issues due to how the data is being accessed by it. What kind of things can be done to improve the performance of NHibernate? (Please limit to one recommendation p...
{ "language": "en", "url": "https://stackoverflow.com/questions/67103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Is Asp.net and Windows Workflow good combination? I am implementing a quite simple state-machine order processing application. It is a e-commerce application with a few twists. The users of the application will not be editing workflows by themselves. Microsoft claims that asp.net and Windows Workflow is possible to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Speeding up mysql dumps and imports Are there any documented techniques for speeding up mySQL dumps and imports? This would include my.cnf settings, using ramdisks, etc. Looking only for documented techniques, preferably with benchmarks showing potential speed-up. A: Make sure you are using the --opt option to mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/67117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Database functionality with WPF app: SQLite, SQL CE, other? I want to extend a WPF application with database functionality. Which database engine would you suggest and why? SQLite, SQL CE, other? A: Just to throw out a differing opinion, we've been using SQL Compact Edition for the last year and have been generally...
{ "language": "en", "url": "https://stackoverflow.com/questions/67127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Using Rails 2.x with MS SQL Server 2005 Does anybody here have positive experience of working with MS SQL Server 2005 from Rails 2.x? Our developers use Mac OS X, and our production runs on Linux. For legacy reasons we should use MS SQL Server 2005. We're using ruby-odbc and are running into various problems, too ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can one host Flash content in a WPF application and use transparency? How can I go about hosting flash content inside a WPF form and still use transparency/alpha on my WPF window? Hosting a WinForms flash controls does not allow this. A: Unless the control you use to display the Flash content is built in WPF, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it safe to manipulate objects that I created outside my thread if I don't explicitly access them on the thread which created them? I am working on a cocoa software and in order to keep the GUI responsive during a massive data import (Core Data) I need to run the import outside the main thread. Is it safe to acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/67154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AxAcroPDF - Vista64 Class Not Registered Error We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/67167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Find memory leaks caused by smart pointers Does anybody know a "technique" to discover memory leaks caused by smart pointers? I am currently working on a large project written in C++ that heavily uses smart pointers with reference counting. Obviously we have some memory leaks caused by smart pointers, that are still...
{ "language": "en", "url": "https://stackoverflow.com/questions/67174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: mod_python/MySQL error on INSERT with a lot of data: "OperationalError: (2006, 'MySQL server has gone away')" When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field) VALUES ('...lots of text here: about 2MB worth...') MySQL returns "OperationalError: (2006, 'MySQL server has gone away')"...
{ "language": "en", "url": "https://stackoverflow.com/questions/67180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a specification of Java's threading model running under Windows XP available anywhere? There are various documents describing threading on Solaris/Linux, but nowwhere describing the Windows implementation. I have a passing interest in this, it seems strange that something so critical is (seemingly) not docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/67183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tool recommendation for converting VB to C# We have a project with over 500,000 lines of VB.NET that we need to convert to C#. Any recommendations, based on experience, for tools to use? We are using Visual Studio 2008 and we're targeting 3.5 . A: Reflector will decompile the IL and produce C# for you, it will be r...
{ "language": "en", "url": "https://stackoverflow.com/questions/67200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Apple Cover-flow effect using jQuery or other library? Does anyone know how to achieve the cover-flow effect using JavaScript to scroll through a bunch of images. I'm not talking about the 3D rotating itunes cover-art, but the effect that happens when you hit the space bar in a folder of documents, allowing you to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: How do you customize the copy/paste behavior in Visual Studio 2008? How do you customize the Copy/Paste behavior in Visual Studio 2008? For example I create a new <div id="MyDiv"></div> and then copy and paste it in the same file. VisualStudio pastes <div id="Div1"></div> instead of the original text I copied. It is...
{ "language": "en", "url": "https://stackoverflow.com/questions/67209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do you prevent printing dialog when using Excel PrintOut method When I use the PrintOut method to print a Worksheet object to a printer, the "Printing" dialog (showing filename, destination printer, pages printed and a Cancel button) is displayed even though I have set DisplayAlerts = False. The code below work...
{ "language": "en", "url": "https://stackoverflow.com/questions/67219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: why might my pyglet vertex lists and batches be very slow on Windows? I'm writing opengl code in python using the library pyglet. When I draw to the screen using pyglet.graphics.vertex_list or pyglet.graphics.batch objects, they are very slow (~0.1 fps) compared to plain old pyglet.graphics.draw() or just glVertex()...
{ "language": "en", "url": "https://stackoverflow.com/questions/67223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I determine using TSQL what roles are granted execute permissions on a specific stored procedure? How do I determine using TSQL what roles are granted execute permissions on a specific stored procedure? Is there a system stored procedure or a system view I can use? A: In 7.0 or 2000, you can modify and use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/67244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you iterate through every file/directory recursively in standard C++? How do you iterate through every file/directory recursively in standard C++? A: Boost::filesystem provides recursive_directory_iterator, which is quite convenient for this task: #include "boost/filesystem.hpp" #include <iostream> using na...
{ "language": "en", "url": "https://stackoverflow.com/questions/67273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: Reading from a ZipInputStream into a ByteArrayOutputStream I am trying to read a single file from a java.util.zip.ZipInputStream, and copy it into a java.io.ByteArrayOutputStream (so that I can then create a java.io.ByteArrayInputStream and hand that to a 3rd party library that will end up closing the stream, and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Is Unit Testing worth the effort? I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add f...
{ "language": "en", "url": "https://stackoverflow.com/questions/67299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "572" }
Q: Why doesn't BackColor work for TabControls in .NET? If you use the standard tab control in .NET for your tab pages and you try to change the look and feel a little bit then you are able to change the back color of the tab pages but not for the tab control. The property is available, you could set it but it has no ef...
{ "language": "en", "url": "https://stackoverflow.com/questions/67300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Save us from VSS I'm a 1-2 man band at work, and so far I've been using VSS for two reasons 1) the company was using that when I started a few months ago, and 2) it is friendly with Visual Studio. Needless to say, I would very much like to upgrade to a not-so-archaic source control system. However, I don't want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL 2000 equivalent of SQLAgentReaderRole I have quite a few developers asking me if certain SQL jobs ran, and I would like to give them access to check it on their own without giving them sysadmin rights. I know that in SQL 2005, you can grant them the SQLAgentReaderRole, but I am looking for a solution in SQL 200...
{ "language": "en", "url": "https://stackoverflow.com/questions/67347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dreaded iframe horizontal scroll bar can't be removed in IE? I have an iframe. The content is wider than the width I am setting so the iframe gets a horizontal scroll bar. I can't increase the width of the iframe so I want to just remove the scroll bar. I tried setting the scroll property to "no" but that kills b...
{ "language": "en", "url": "https://stackoverflow.com/questions/67354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: A checklist for fixing .NET applications to SQL Server timeout problems and improve execution time A checklist for improving execution time between .NET code and SQL Server. Anything from the basic to weird solutions is appreciated. Code: Change default timeout in command and connection by avgbody. Use stored proced...
{ "language": "en", "url": "https://stackoverflow.com/questions/67366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do you update a live, busy web site in the politest way possible? When you roll out changes to a live web site, how do you go about checking that the live system is working correctly? Which tools do you use? Who does it? Do you block access to the site for the testing period? What amount of downtime is accep...
{ "language": "en", "url": "https://stackoverflow.com/questions/67368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Dynamically Create a generic type for template I'm programming WCF using the ChannelFactory which expects a type in order to call the CreateChannel method. For example: IProxy proxy = ChannelFactory<IProxy>.CreateChannel(...); In my case I'm doing routing so I don't know what type my channel factory will be using....
{ "language": "en", "url": "https://stackoverflow.com/questions/67370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Why isn't there a Team Foundation Server Express Edition? Why isn't there a Team Foundation Server Express Edition? A: Because Microsoft is positioning TFS to compete with software like ClearCase, releasing a free edition would undermine that positioning. A: If you're looking for the source-control a bug-tracking...
{ "language": "en", "url": "https://stackoverflow.com/questions/67407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Why does sed fail with International characters and how to fix? GNU sed version 4.1.5 seems to fail with International chars. Here is my input file: Gras Och Stenar Trad - From Moja to Minneapolis DVD [G2007DVD] 7812 | X <br> Gras Och Stenar Trad - From Möja to Minneapolis DVD [G2007DVD] 7812 | Y (Note the umlaut i...
{ "language": "en", "url": "https://stackoverflow.com/questions/67410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Passing hierarchy into a Verilog module I have a "watcher" module that is currently using global hierarchies inside it. I need to instantiate a second instance of this with a second global hierarchy. Currently: module watcher; wire sig = `HIER.sig; wire bar = `HIER.foo.bar; ... endmodule watcher w; // instantiatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/67418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Database design for a booking application e.g. hotel I've built one, but I'm convinced it's wrong. I had a table for customer details, and another table with the each date staying (i.e. a week's holiday would have seven records). Is there a better way? I code in PHP with MySQL A: Here you go I found it at this page...
{ "language": "en", "url": "https://stackoverflow.com/questions/67421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamically sorted STL containers I'm fairly new to the STL, so I was wondering whether there are any dynamically sortable containers? At the moment my current thinking is to use a vector in conjunction with the various sort algorithms, but I'm not sure whether there's a more appropriate selection given the (presum...
{ "language": "en", "url": "https://stackoverflow.com/questions/67426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Serving dynamically generated ZIP archives in Django How to serve users a dynamically generated ZIP archive in Django? I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server down to...
{ "language": "en", "url": "https://stackoverflow.com/questions/67454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How might I display a web page in a window with a transparent background using C#? How can I show a web page in a transparent window and have the white part of the web page also transparent. A: If you're using a Browser control, there may be a property in it to change the background color to Transparent or to use A...
{ "language": "en", "url": "https://stackoverflow.com/questions/67457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good references / tips for designing rule systems? I often need to implement some sort of rule system that is user-editable -- the requirements are generally different enough that the same system isn't directly applicable, so I frequently run into the same problem--how do I design a rule system that * *is maintai...
{ "language": "en", "url": "https://stackoverflow.com/questions/67475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the simplest way to initialize an Array of N numbers following a simple pattern? Let's say the first N integers divisible by 3 starting with 9. I'm sure there is some one line solution using lambdas, I just don't know it that area of the language well enough yet. A: Using Linq: int[] numbers = Enumerabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/67492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET 2.0: Skin files only work when placed at the root theme folder? I have found that skin files only work if they are placed at the root theme folder in the App_Themes folder. For example, if you have 2 themes in the App_Themes folder, you cannot add another sub folder to the theme folder and place a seperate s...
{ "language": "en", "url": "https://stackoverflow.com/questions/67499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best keyboard for custom Dvorak-based programming layout I'm considering switching to a Dvorak-based keyboard layout, but one optimized for programming (mostly) Java and python (e.g. DDvorak, Programmer Dvorak, etc.). What particular keyboard would be best for such an undertaking? I'd consider either natural or stra...
{ "language": "en", "url": "https://stackoverflow.com/questions/67512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Flex: How to add a tab close button for TabNavigator component I'd like to have a TabNavigator component that has a close button for some of the tabs. How do I do that? It seems that the TabNavigator component does not allow (or I could not find) extensibility of this form. Help. Thanks A: You should take a look...
{ "language": "en", "url": "https://stackoverflow.com/questions/67516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Multiple tabs in Windows and gvim I am trying to get the Edit with Vim context menu to open files in a new tab of the previously opened Gvim instance (if any). Currently, using Regedit I have modified this key: \HKEY-LOCAL-MACHINE\SOFTWARE\Vim\Gvim\path = "C:\Programs\Vim\vim72\gvim.exe" -p --remote-tab-silent "%*" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to record webcam to flv with smooth playback I would like my website to record flvs using webcams. These flvs need to play smoothly so I can play with them afterwards, for example transcoding them to avis. I've tried many different servers to handle the flv recording. The resulting flvs play OK in Wimpy FLV Play...
{ "language": "en", "url": "https://stackoverflow.com/questions/67536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best free C++ profiler for Windows? I'm looking for a profiler in order to find the bottleneck in my C++ code. I'd like to find a free, non-intrusive, and good profiling tool. I'm a game developer, and I use PIX for Xbox 360 and found it very good, but it's not free. I know the Intel VTune, but it's not f...
{ "language": "en", "url": "https://stackoverflow.com/questions/67554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "237" }
Q: Getting multiple file sizes for a preloader Alright, currently I have my SWF hitting a php file that will go and find all the files I specify to it, add their sizes together and return their combined sizes as one number. I then use this number with a ProgressEvent listener to determine the current percentage of file...
{ "language": "en", "url": "https://stackoverflow.com/questions/67556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Audit Database Activity without Performance and Scalability Issues? I have a need to do auditing all database activity regardless of whether it came from application or someone issuing some sql via other means. So the auditing must be done at the database level. The database in question is Oracle. I looked at...
{ "language": "en", "url": "https://stackoverflow.com/questions/67557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I fix a "broken" debugger in EclipseME (MTJ)? How do I fix a broken debugger, one that just won't start, in EclipseME (now Mobile Tools Java)? (This question has an answer which will be transferred from another question soon) A: The most annoying issue with EclipseME for me was the "broken" debugger, which j...
{ "language": "en", "url": "https://stackoverflow.com/questions/67559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do fluent interfaces violate the Law of Demeter? The wikipedia article about Law of Demeter says: The law can be stated simply as "use only one dot". However a simple example of a fluent interface may look like this: static void Main(string[] args) { new ZRLabs.Yael.Pipeline("cat.jpg") .Rotate(90) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Why do fixed elements slow down scrolling in Firefox? Why do elements with the CSS position: fixed applied to them cause Firefox to eat 100% CPU when scrolling the page they are in? And are there any workarounds? I've noticed this behavior on a few sites, for example the notification bar at the top of the page on St...
{ "language": "en", "url": "https://stackoverflow.com/questions/67588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Find coordinates of every link in a page In Javascript: How does one find the coordinates (x, y, height, width) of every link in a webpage? A: Using jQuery, it's as simple as: $("a").each(function() { var link = $(this); var top = link.offset().top; var left = link.offset().left; var width = link.of...
{ "language": "en", "url": "https://stackoverflow.com/questions/67612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Call a method via AJAX without causing the page to render at all? I am working with ASP.net. I am trying to call a method that exists on the base class for the page I am using. I want to call this method via Javascript and do not require any rendering to be handled by ASP.net. What would be the easiest way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/67621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a guide I can follow to convert my procedural actionscript 3 to OOP? I'm wanting to change my movie clips to actionscript classes in AS3. Is there a standard list of things I need to do to make sure the classes work? A: Check out these resources: Grant Skinners Introductory AS3 Workshop slidedeck http://gs...
{ "language": "en", "url": "https://stackoverflow.com/questions/67627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deepzoom for WPF Are there any ports to WPF of Silverlight's MultiScaleImage (aka DeepZoom)? Have Microsoft road-mapped this at all for WPF? I want to move from WinForms to WPF and require something like DeepZoom, using Silverlight isn't an option. A: At the moment there is no port. However, DeepZoom is based on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/67628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is "Client-only Framework subset" in Visual Studio 2008? What does "Client-only Framework subset" in Visual Studio 2008 do? A: You mean Client Profile? The .NET Framework Client Profile setup contains just those assemblies and files in the .NET Framework that are typically used for client application scenarios...
{ "language": "en", "url": "https://stackoverflow.com/questions/67629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can I import a module dynamically given the full path? How do I load a Python module given its full path? Note that the file can be anywhere in the filesystem where the user has access rights. See also: How to import a module given its name as string? A: If your top-level module is not a file but is packaged a...
{ "language": "en", "url": "https://stackoverflow.com/questions/67631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1692" }
Q: Other than Xcode, are there any full functioned IDEs for Objective-C? I know and have Xcode, but I was wondering if there were any other complete development environments that support Objective-C? I'm not looking for solutions with vim or emacs, nor editors like BBEdit that support syntax highlighting, but a full fl...
{ "language": "en", "url": "https://stackoverflow.com/questions/67640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to convert a FLV file recorded with Red5 / FMS to MP3? I'm looking for a way to extract the audio part of a FLV file. I'm recording from the user's microphone and the audio is encoded using the Nellymoser Asao Codec. This is the default codec and there's no way to change this. A: ffMpeg is the way to go ! It w...
{ "language": "en", "url": "https://stackoverflow.com/questions/67647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can a LINQ to SQL IsDiscriminator column NOT inherit? I'm designing my database and LINQ To SQL ASP.NET web application. Imagine I have two types of pages: normal and root. Some pages are roots. Some pages are not. I have a Page database table and a RootPage database table: Page ---- PK PageId ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE7 CSS Scrolling Div Bug I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand. I believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it works correctly...
{ "language": "en", "url": "https://stackoverflow.com/questions/67665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Backup/Restore database for oracle 10g testing using sqlplus or rman Using Oracle 10g with our testing server what is the most efficient/easy way to backup and restore a database to a static point, assuming that you always want to go back to the given point once a backup has been created. A sample use case would be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to save code snippets (vb/c#/.net/sql) to sql server I want to create a code/knowledge base where I can save my vb.net/c#.net/sqlserver code snippets for use later. I've tried setting the ValidateRequest property to false in my page directive, and encoding the value with HttpUtility.HtmlEncode (c#.net), but I st...
{ "language": "en", "url": "https://stackoverflow.com/questions/67669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataSet.Select and DateTime How can I use .NET DataSet.Select method to search records that match a DateTime? What format should I use to enter my dates in? A: The best method is dd MMM yyyy (ie 15 Sep 2008). This means there is no possiblity of getting it wrong for different Locals. ds.select(DBDate = '15 Sep 2008...
{ "language": "en", "url": "https://stackoverflow.com/questions/67676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use Javascript to locate by X-Y Coordinates in my browser? I'm trying to make it so when a user scrolls down a page, click a link, do whatever it is they need to do, and then come back to the pages w/ links, they are at the same (x-y) location in the browser they were before. How do I do that? I'm a DOM Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/67682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to join webcam FLVs I want my website to join some webcam recordings in FLV files (like this one). This needs to be done on Linux without user input. How do I do this? For simplicity's sake, I'll use the same flv as both inputs in hope of getting a flv that plays the same thing twice in a row. That should be eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/67685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I clone all remote branches? My master and development branches are tracked remotely on GitHub. How do I clone both these branches? A: If you have many remote branches that you want to fetch at once, do: git pull --all Now you can checkout any branch as you need to, without hitting the remote repository. N...
{ "language": "en", "url": "https://stackoverflow.com/questions/67699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4681" }
Q: LinqToSql and full text search - can it be done? Has anyone come up with a good way of performing full text searches (FREETEXT() CONTAINS()) for any number of arbitrary keywords using standard LinqToSql query syntax? I'd obviously like to avoid having to use a Stored Proc or have to generate a Dynamic SQL calls. Obv...
{ "language": "en", "url": "https://stackoverflow.com/questions/67706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to display a form in any site's pages using a bookmarklet (like Note in Google Reader)? In Google Reader, you can use a bookmarklet to "note" a page you're visiting. When you press the bookmarklet, a little Google form is displayed on top of the current page. In the form you can enter a description, etc. When yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/67713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an algorithm that extracts meaningful tags of english text I would like to extract a reduced collection of "meaningful" tags (10 max) out of an english text of any size. http://tagcrowd.com/ is quite interesting but the algorithm seems very basic (just word counting) Is there any other existing algorithm t...
{ "language": "en", "url": "https://stackoverflow.com/questions/67725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Execute JavaScript from within a C# assembly I'd like to execute JavaScript code from within a C# assembly and have the results of the JavaScript code returned to the calling C# code. It's easier to define things that I'm not trying to do: * *I'm not trying to call a JavaScript function on a web page from my code...
{ "language": "en", "url": "https://stackoverflow.com/questions/67734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: WCF problem passing complex types I have a service contract that defines a method with a parameter of type System.Object (xs:anyType in the WSDL). I want to be able to pass simple types as well as complex types in this parameter. Simple types work fine, but when I try to pass a complex type that is defined in my W...
{ "language": "en", "url": "https://stackoverflow.com/questions/67736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Perl Sys::Syslog on Solaris Has anyone got Sys::Syslog to work on Solaris? (I'm running Sys::Syslog 0.05 on Perl v5.8.4 on SunOS 5.10 on SPARC). Here's what doesn't work for me: openlog "myprog", "pid", "user" or die; syslog "crit", "%s", "Test from $0" or die; closelog() or warn "Can't close: $!"; system "tail /v...
{ "language": "en", "url": "https://stackoverflow.com/questions/67760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NetworkStream.Write returns immediately - how can I tell when it has finished sending data? Despite the documentation, NetworkStream.Write does not appear to wait until the data has been sent. Instead, it waits until the data has been copied to a buffer and then returns. That buffer is transmitted in the background....
{ "language": "en", "url": "https://stackoverflow.com/questions/67761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Where can I find an example burn-down / planning game template? I'd like to experiment with burn-down and planning game with the team I'm on. People on my team are interested in making it happen, however I'm sure someone has done this before and has learned some lessons we hopefully don't have to repeat. Does anyo...
{ "language": "en", "url": "https://stackoverflow.com/questions/67780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does SQL Server 2005 scale to a large number of databases? If I add 3-400 databases to a single SQL Server instance will I encounter scaling issues introduced by the large number of databases? A: This is one of those questions best answered by: Why are you trying to do this in the first place? What is the concurren...
{ "language": "en", "url": "https://stackoverflow.com/questions/67788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to pass a structure type to a c function I have some code with multiple functions very similar to each other to look up an item in a list based on the contents of one field in a structure. The only difference between the functions is the type of the structure that the look up is occurring in. If I...
{ "language": "en", "url": "https://stackoverflow.com/questions/67790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiline C# Regex to match after a blank line I'm looking for a multiline regex that will match occurrences after a blank line. For example, given a sample email below, I'd like to match "From: Alex". ^From:\s*(.*)$ works to match any From line, but I want it to be restricted to lines in the body (anything after ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to debug a JSP tomcat service using eclipse? I would like to debug my separately running JSP/Struts/Tomcat/Hibernate application stack using the Eclipse IDE debugger. How do I setup the java JVM and eclipse so that I can set breakpoints, monitor variable values, and see the code that is currently executing? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: how to get the number of apache children free within php In php, how can I get the number of apache children that are currently available (status = SERVER_READY in the apache scoreboard)? I'm really hoping there is a simple way to do this in php that I am missing. A: You could execute a shell command of ps aux | gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/67819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best data access paradigm for scalability? There are so many different options coming out of microsoft for data access. Which one is the best for scalable apps? Linq Should we be using Linq? It certainly seems easy but if you know your SQL does it really help. Also I hear that you can't run Async queries...
{ "language": "en", "url": "https://stackoverflow.com/questions/67831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Deleting a file in VBA Using VBA, how can I: * *test whether a file exists, and if so, *delete it? A: In VB its normally Dir to find the directory of the file. If it's not blank then it exists and then use Kill to get rid of the file. test = Dir(Filename) If Not test = "" Then Kill (Filename) End If A: s...
{ "language": "en", "url": "https://stackoverflow.com/questions/67835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "135" }
Q: Cannot get xslt to output an (&) even after escaping the character I am trying to create a query string of variable assignments separated by the & symbol (ex: "var1=x&var2=y&..."). I plan to pass this string into an embedded flash file. I am having trouble getting an & symbol to show up in XSLT. If I just type & wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/67859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Good ways to Learn Cocoa? I'd love to learn Cocoa, it seems like the best systems language for Mac OS X. Can you recommend any useful ways to learn the language? Books, websites, example projects or even classes to take? A: Cocoa Programming for Mac OS X, by Aaron Hillegass. A: * *Read and follow the Become an X...
{ "language": "en", "url": "https://stackoverflow.com/questions/67875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Passing data between a parent app and a virtual directory I have an application that runs as a child application in a virtual directory. I want to pass a value from the parent application, but I believe that Session is keyed per application, and won't work. To further complicate things, the parent application is Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/67879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to hash a url in ruby? I'm writing a web app that points to external links. I'm looking to create a non-sequential, non-guessable id for each document that I can use in the URL. I did the obvious thing: treating the url as a string and str#crypt on it, but that seems to choke on any non-alphanumb...
{ "language": "en", "url": "https://stackoverflow.com/questions/67890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Why do we need extern "C"{ #include } in C++? Why do we need to use: extern "C" { #include <foo.h> } Specifically: * *When should we use it? *What is happening at the compiler/linker level that requires us to use it? *How in terms of compilation/linking does this solve the problems which require us to use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "148" }