text
stringlengths
8
267k
meta
dict
Q: Dropping a connected user from an Oracle 10g database schema Is there a better way to forcefully disconnect all users from an Oracle 10g database schema than restarting the Oracle database services? We have several developers using SQL Developer connecting to the same schema on a single Oracle 10g server. The probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/85804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Sending Excel to user through ASP.NET I have a web application that is able to open an excel template, push data into a worksheet and send the file to a user. When the file is opened a VBA Macro will refresh a pivot table based on the data that was pushed into the template. The user receives the standard File Open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to tell if a JavaScript function is defined How do you tell if a function in JavaScript is defined? I want to do something like this function something_cool(text, callback) { alert(text); if( callback != null ) callback(); } But it gets me a callback is not a function error when callback is not define...
{ "language": "en", "url": "https://stackoverflow.com/questions/85815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "341" }
Q: How can I force users to access my page over HTTPS instead of HTTP? I've got just one page that I want to force to be accessed as an HTTPS page (PHP on Apache). How do I do this without making the whole directory require HTTPS? Or, if you submit a form to an HTTPS page from an HTTP page, does it send it by HTTPS ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/85816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "142" }
Q: What's the best way to learn server RESTful code? I'm an experienced client application developer (C++/C#), but need to come up to speed quickly on writing server side code to perform RESTful interactions. Specifically, I need to learn how to exchange data with OpenSocial containers via the RESTful API. A: The RES...
{ "language": "en", "url": "https://stackoverflow.com/questions/85856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# component do not refresh when source code updated I have a solution with many projects. One project contain few custom components. One of these components is used to display a title on an image. We can change the color of the background and many other things. The problem is IF I decide to change the default color...
{ "language": "en", "url": "https://stackoverflow.com/questions/85866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: linking HTMLHelp.lib with x64 i have a VS05 C++ (MFC) project which uses HtmlHelp (function HTMLHelpA, linked from HmleHelp.lib, which came from HTML HElp Workshop v1.4). the 32-bit version compiles and links fine. the 64-bit version compiles fine, but gets an "unresolved external" error on HTMLHelpA, when linking....
{ "language": "en", "url": "https://stackoverflow.com/questions/85872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine if a function exists in bash Currently I'm doing some unit tests which are executed from bash. Unit tests are initialized, executed and cleaned up in a bash script. This script usualy contains an init(), execute() and cleanup() functions. But they are not mandatory. I'd like to test if they are or are not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "237" }
Q: How can I reimplement external pop-up jQuery code in Prototype? I have this code in jQuery, that I want to reimplement with the prototype library. // make external links open in popups // this will apply a window.open() behaviour to all anchor links // the not() functions filter iteratively filter out http://www.foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/85887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Collection initialization syntax in Visual Basic 2008? I'm trying to determine if there's a way in Visual Basic 2008 (Express edition if that matters) to do inline collection initialization, a la JavaScript or Python: Dim oMapping As Dictionary(Of Integer, String) = {{1,"First"}, {2, "Second"}} I know Visual Basic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is there a tutorial that teaches common Ruby programming idioms used by experienced programmers, but may not be obvious to newcomers? I'm looking for a Ruby's equivalent of Code Like a Pythonista: Idiomatic Python Desirable features: * *easy to read *single document which covers all topics: tips, tricks, guideli...
{ "language": "en", "url": "https://stackoverflow.com/questions/85916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: XML Notepad 2007 breaks MS Access 2007 Help I tried scouring the web for help on this issue, but there are so many generic words in there, that I couldn't find much of anything that was relevant. I have MS Office 2007 installed on Vista and later installed XML Notepad 2007 (also a Microsoft product). It seems that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple Forms and a Single Update,Will it work? I need to make an application in .NET CF with different/single forms with a lot of drawing/animation on each forms.I would prefer to have a single update[my own for state management and so on] function so that i can manage the different states, so that my [J2ME Gamin...
{ "language": "en", "url": "https://stackoverflow.com/questions/85925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Autogenerate multiple getters/setters or accessors in Visual Studio Before I start, I know there is this post and it doesn't answer my question: How to generate getters and setters in Visual Studio? In Visual Studio 2008 there is the ability to auto generate getters and setters (accessors) by right clicking o...
{ "language": "en", "url": "https://stackoverflow.com/questions/85928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I export styles from a Microsoft Word 2003 .dot file? I have an old .dot file with a few dozen styles in it. I need to place them into another .dot file that I received. Is there a better way to get them in there than manually recreating each style? A: There is a 'Style Organizer' tool within Word which wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/85935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why I get an "Canvas does not allow drawing" while drawing in TeeChart ActiveX 5 component? I'm using Steema's TeeChart ActiveX 5 component for an application in .NET C#. I do some drawings using the methods Line(), Rectangle() and Circle() through the "Canvas" property of the component. My code for drawing is calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/85936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASPNET user does not have write access to Temporary ASP.NET Files I get the following error when running my Visual Studio 2008 ASP.NET project (start without Debugging) on my XP Professional box: System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.N...
{ "language": "en", "url": "https://stackoverflow.com/questions/85941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: how to sort a flex datagrid according to multiple columns? I have a datagrid, populated as shown below. When the user clicks on a column header, I would like to sort the rows using a lexicographic sort in which the selected column is used first, then the remaining columns are used in left-to-right order to break an...
{ "language": "en", "url": "https://stackoverflow.com/questions/85974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Query a Table's Foreign Key relationships For a given table 'foo', I need a query to generate a set of tables that have foreign keys that point to foo. I'm using Oracle 10G. A: The following statement should give the children and all of their descendents. I have tested it on an Oracle 10 database. SELECT level, m...
{ "language": "en", "url": "https://stackoverflow.com/questions/85978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to best implement simple crash / error reporting? What would be the best way to implement a simple crash / error reporting mechanism? Details: my app is cross-platform (mac/windows/linux) and written in Python, so I just need something that will send me a small amount of text, e.g. just a timestamp and a traceb...
{ "language": "en", "url": "https://stackoverflow.com/questions/85985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I enumerate the properties of a JavaScript object? How do I enumerate the properties of a JavaScript object? I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object. A: I found it... for (property in object...
{ "language": "en", "url": "https://stackoverflow.com/questions/85992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "720" }
Q: I need an algorithm for rendering soft paint brush strokes I have an array of mouse points, a stroke width, and a softness. I can draw soft circles and soft lines. Which algorithm should I use for drawing my array of points? I want crossed lines to look nice as well as end points. A: I would definitely choose the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you keep a personal wiki (TiddlyWiki) current and in sync in multiple locations? If one were to use TiddlyWiki as a personal database for notes and code snippets, how would you go about keeping it in sync between multiple machines. Would a svn/cvs etc work. How would you handle merges? A: Tiddlywiki is well ...
{ "language": "en", "url": "https://stackoverflow.com/questions/85994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I create a folder in VB if it doesn't exist? I wrote myself a little downloading application so that I could easily grab a set of files from my server and put them all onto a new pc with a clean install of Windows, without actually going on the net. Unfortunately I'm having problems creating the folder I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/85996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: In Delphi, how can you have currency data types shown in different currencies in different forms? I need to write a Delphi application that pulls entries up from various tables in a database, and different entries will be in different currencies. Thus, I need to show a different number of decimal places and a diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/86002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Measure Total Network Transfer Time from Servlets How do i measure how long a client has to wait for a request. On the server side it is easy, through a filter for example. But if we want to take into accout the total time including latency and data transfer, it gets diffcult. is it possible to access the underlyin...
{ "language": "en", "url": "https://stackoverflow.com/questions/86008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best method for storing SASS generated CSS in your application and source control? If you are using HAML and SASS in your Rails application, then any templates you define in public/stylesheet/*.sass will be compiled into *.css stylesheets. From your code, you use stylesheet_link_tag to pull in the asset ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How can I use classes from VisualBasic-Express in VBA for Excel or Access projects? I saved my VB-Express code as .dll and registered it with regasm and made a .tlb file. But when I try to run a function from it in an Excel-modul I get: Run-time error ‘453’: Can’t find DLL entry point RegisterServiceProcess in kerne...
{ "language": "en", "url": "https://stackoverflow.com/questions/86027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How much success is there working on ASP.NET decompiled by Reflector? I just finished a small project where changes were required to a pre-compiled, but no longer supported, ASP.NET web site. The code was ugly, but it was ugly before it was even compiled, and I'm quite impressed that everything still seems to work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a Microsoft Word document “read only” within a SharePoint document library? How do I make open “read only” the only option within a SharePoint document library? When using either Word 2003 or 2007 and saving the document as a template or modifying the file properties as “read only” doesn’t prevent modi...
{ "language": "en", "url": "https://stackoverflow.com/questions/86033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to start a thread as a member of a C++ class? I'm wondering the best way to start a pthread that is a member of a C++ class? My own approach follows as an answer... A: I have used three of the methods outlined above. When I first used threading in c++ I used static member functions, then friend functions a...
{ "language": "en", "url": "https://stackoverflow.com/questions/86046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Why does Imake interpret certain words in a Imakefile to numerical values? I've found it very difficult to find any existing documentation on this. What I'm trying to find out is why Imake would interpret a word such as unix, linux or i386 to a number 1 in the produced Make-file? I'm sure it is a function of indic...
{ "language": "en", "url": "https://stackoverflow.com/questions/86047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I ignore files in Subversion? How do I ignore files in Subversion? Also, how do I find files which are not under version control? A: Use the following command to create a list not under version control files. svn status | grep "^\?" | awk "{print \$2}" > ignoring.txt Then edit the file to leave just the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/86049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "706" }
Q: Any good recommendations for MP3/Sound libraries for java? I'm looking for libraries to: * *read and write meta data (for example ID3v2 tags in mp3 and all) *convert compressed to to raw audio data and if possible raw audio data to mp3, ogg, aac, ... *digitally process the audio data (energy, timbre, Mel Freque...
{ "language": "en", "url": "https://stackoverflow.com/questions/86083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: OpenID providers - what stops malicious providers? So I like the OpenID idea. I support it on my site, and use it wherever it's possible (like here!). But I am not clear about one thing. A site that supports OpenID basically accepts any OpenID provider out there, right? How does that work with sites that want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/86090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I disable a button cell in a WinForms DataGrid? I have a WinForms application with a DataGridView control and a column of DataGridViewButtonCell cells within that. When I click on one of these buttons, it starts a background task, and I'd like to disable the buttons until that task completes. I can disable th...
{ "language": "en", "url": "https://stackoverflow.com/questions/86096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I suppress the browser's authentication dialog? My web application has a login page that submits authentication credentials via an AJAX call. If the user enters the correct username and password, everything is fine, but if not, the following happens: * *The web server determines that although the request ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: How to setup FollowSymLinks? I am trying to have Apache follow a symlink to a raid array server that will contain some large data files. I have tried modifying httpd.conf to have an entry like this <Directory "/Users/imagine/Sites"> Options FollowSymLinks AllowOverride all Order allow,deny Allow from all </...
{ "language": "en", "url": "https://stackoverflow.com/questions/86119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VB6/Microsoft Access/DAO to VB.NET/SQL Server... Got Advice? I can make a DAO recordset in VB6/Access do anything - add data, clean data, move data, get data dressed in the morning and take it to school. But I don't even know where to start in .NET. I'm not having any problems retrieving data from the database, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/86129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the pros and cons of the various Python implementations? I am relatively new to Python, and I have always used the standard cpython (v2.5) implementation. I've been wondering about the other implementations though, particularly Jython and IronPython. What makes them better? What makes them worse? What ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What's the best way to get the default printer in .NET I need to get the default printer name. I'll be using C# but I suspect this is more of a framework question and isn't language specific. A: Try also this example PrinterSettings printerName = new PrinterSettings(); string defaultPrinter; defaultPrinter = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Help getting .Net WinForms apps to support Vista Aero Glass There are a couple of tricks for getting glass support for .Net forms. I think the original source for this method is here: http://blogs.msdn.com/tims/archive/2006/04/18/578637.aspx Basically: //reference Desktop Windows Manager (DWM API) [DllImport( "dwmap...
{ "language": "en", "url": "https://stackoverflow.com/questions/86143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do you or do you not implement using polyglot solutions? Polyglot, or multiple language, solutions allow you to apply languages to problems which they are best suited for. Yet, at least in my experience, software shops tend to want to apply a "super" language to all aspects of the problem they are trying to sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/86151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do I need a flickr api key? Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's public photo feed (For instance, I am not planning on writing an upload script, where a API ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can I improve the performance of the RichFaces ScrollableDataTable control? First, a little background: I'm displaying a data set with 288 rows and 8 columns (2304 records) using a ScrollableDataTable and the performance leaves a lot to be desired. An AJAX request that rerenders the control takes nearly 20 seco...
{ "language": "en", "url": "https://stackoverflow.com/questions/86171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where does CGI.pm normally create temporary files? On all my Windows servers, except for one machine, when I execute the following code to allocate a temporary files folder: use CGI; my $tmpfile = new CGITempFile(1); print "tmpfile='", $tmpfile->as_string(), "'\n"; The variable $tmpfile is assigned the value '.\CGI...
{ "language": "en", "url": "https://stackoverflow.com/questions/86175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I enforce data integrity rules in my database? I'm designing this collection of classes and abstract (MustInherit) classes… This is the database table where I'm going to store all this… As far as the Microsoft SQL Server database knows, those are all nullable ("Allow Nulls") columns. But really, that depend...
{ "language": "en", "url": "https://stackoverflow.com/questions/86181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect browser connection closed in PHP Does anyone know if it is possible to detect whether the browser has closed the connection during the execution of a long PHP script, when using apache and mod_php? For example, in Java, the HttpOutputStream will throw an exception if one attempts to write to it after the brow...
{ "language": "en", "url": "https://stackoverflow.com/questions/86197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Internationalised labels in JSF/Facelets Does Facelets have any features for neater or more readable internationalised user interface text labels that what you can otherwise do using JSF? For example, with plain JSF, using h:outputFormat is a very verbose way to interpolate variables in messages. Clarification: I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/86202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to conditionally enable actions in C# ASP.NET website Using a configuration file I want to enable myself to turn on and off things like (third party) logging and using a cache in a C# website. The solution should not be restricted to logging and caching in particular but more general, so I can use it for other t...
{ "language": "en", "url": "https://stackoverflow.com/questions/86204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: File Replication Solutions Thinking about a Windows-hosted build process that will periodically drop files to disk to be replicated to several other Windows Servers in the same datacenter. The other machines would run IIS, and serve those files to the masses. The total corpus size would be millions of files, 100's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interfacing with telephony systems from *nix Does anyone know of any 'standard' way to interface with a telephony system (think Cisco CCM) from a C/C++ app in *nix? I have used MS TAPI in the past but this is Windows only and don't want to go the jTAPI (Java) route, which seems to be the only option on the face of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I make Perl ithreads in Windows run concurrently? I have a Perl script that I'm attempting to set up using Perl Threads (use threads). When I run simple tests everything works, but when I do my actual script (which has the threads running multiple SQLPlus sessions), each SQLPlus session runs in order (i.e., thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/86220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why am I getting this Objective-C error message: invalid conversion from 'objc_object*' This error message had me stumped for a while: invalid conversion from 'objc_object* to 'int' The line in question was something like this: int iResult = [MyUtils utilsMemberFunc:param1,param2]; A: It doesn't matter what the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: LINQ to SQL in Visual Studio 2005 I normally run VS 2008 at home and LINQ is built in. At work we are still using VS 2005 and I have the opportunity to start a new project that I would like to use LINQ to SQL. After doing some searching all I could come up with was the MAY 2006 CTP of LINQ would have to be installe...
{ "language": "en", "url": "https://stackoverflow.com/questions/86262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is setInterval calling a function with random arguments? So, I am seeing a curious problem. If I have a function // counter wraps around to beginning eventually, omitted for clarity. var counter; cycleCharts(chartId) { // chartId should be undefined when called from setInterval console.log('chartId: ' +...
{ "language": "en", "url": "https://stackoverflow.com/questions/86269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you search for an XML comment covering N lines of a file? I am attempting to find xml files with large swaths of commented out xml. I would like to programmatically search for xml comments that stretch beyond a given number of lines. Is there an easy way of doing this? A: Considering that XML doesn't use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/86271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom row source for combo box in continuous form in Access I have searched around, and it seems that this is a limitation in MS Access, so I'm wondering what creative solutions other have found to this puzzle. If you have a continuous form and you want a field to be a combo box of options that are specific to that...
{ "language": "en", "url": "https://stackoverflow.com/questions/86278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to check for valid xml in string input before calling .LoadXml() I would much prefer to do this without catching an exception in LoadXml() and using this results as part of my logic. Any ideas for a solution that doesn't involve manually parsing the xml myself? I think VB has a return value of false for this f...
{ "language": "en", "url": "https://stackoverflow.com/questions/86292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: What is the most effective tool you've used to track changes in a CVS repository? I'm in Quality Assurance and use Fisheye to track checkins to CVS. What other options do people use? We have tens of thousands of files and have plans for migrating to Team Foundation Server's code management tool 'at some point' When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you prevent over complicated solutions or designs? Many times we find ourselves working on a problem, only to figure out the solution being created is far more complex than the problem requires. Are there controls, best practices, techniques, etc that help you control over complication in your workplace? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/86308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Tool to reformat xml-comments (Visual Studio 2008) does anyone know of a macro or add-on for VS 2008 which reformats xml-comments? There has been this really smart CommentReflower for the older version of VS, but I couldn't find a release supporting VS 2008. Any ideas? Thanks in advance! Matthias A: I have used the...
{ "language": "en", "url": "https://stackoverflow.com/questions/86324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Designing a Yahoo Pipes inspired interface I really like the interface for Yahoo Pipes (http://pipes.yahoo.com/pipes/) and would like to create a similar interface for a different problem. Are there any libraries that would allow me to create an interface with the same basic look and feel? I especially like how the...
{ "language": "en", "url": "https://stackoverflow.com/questions/86361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: When is this VB6 member variable destroyed? Suppose I have a class module clsMyClass with an object as a member variable. Listed below are two complete implementations of this very simple class. Implementation 1: Dim oObj As New clsObject Implementation 2: Dim oObj As clsObject Private Sub Class_Initialize() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to best search against a DB with Lucene? I am looking into mechanisms for better search capabilities against our database. It is currently a huge bottleneck (causing long-lasting queries that are hurting our database performance). My boss wanted me to look into Solr, but on closer inspection, it seems we actual...
{ "language": "en", "url": "https://stackoverflow.com/questions/86378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I get Git to follow symlinks? Is my best be going to be a shell script which replaces symlinks with copies, or is there another way of telling Git to follow symlinks? PS: I know it's not very secure, but I only want to do it in a few specific cases. A: Why not create symlinks the other way around? Meaning i...
{ "language": "en", "url": "https://stackoverflow.com/questions/86402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "261" }
Q: Select current date by default in ASP.Net Calendar control Let's say I have an aspx page with this calendar control: <asp:Calendar ID="Calendar1" runat="server" SelectedDate="" ></asp:Calendar> Is there anything I can put in for SelectedDate to make it use the current date by default, without having to use the cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/86408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Creating a fixed width file in C# What is the best way to create a fixed width file in C#. I have a bunch of fields with lengths to write out. Say 20,80.10,2 etc all left aligned. Is there an easy way to do this? A: Use the .PadRight function (for left aligned data) of the String class. So: handle.WriteLine(s20.Pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/86413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Creating a workflow task generates an "Invalid field name" error I have a custom (code-based) workflow, deployed in WSS via features in a .wsp file. The workflow is configured with a custom task content type (ie, the Workflow element contains a TaskListContentTypeId attribute). This content type's declaration conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/86417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why JavaScript rather than a standard browser virtual machine? Would it not make sense to support a set of languages (Java, Python, Ruby, etc.) by way of a standardized virtual machine hosted in the browser rather than requiring the use of a specialized language -- really, a specialized paradigm -- for client script...
{ "language": "en", "url": "https://stackoverflow.com/questions/86426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "169" }
Q: What’s the best way to reload / refresh an iframe? I would like to reload an <iframe> using JavaScript. The best way I found until now was set the iframe’s src attribute to itself, but this isn’t very clean. Any ideas? A: I've just come up against this in chrome and the only thing that worked was removing and repla...
{ "language": "en", "url": "https://stackoverflow.com/questions/86428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "304" }
Q: Visual Basic 6 and UNC Paths I'm receiving feedback from a developer that "The only way visual basic (6) can deal with a UNC path is to map it to a drive." Is this accurate? And, if so, what's the underlying issue and are there any alternatives other than a mapped drive? A: We have a legacy VB6 app that uses UNC ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best process for a new ASP.NET web app from the ground up? I am re-building our poorly designed web application from scratch, and wanted to get into TDD and basically "do things right" as kind of a learning project. What tools, processes, and resources are recommended to do it "right" from the start? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/86444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I upload a file to an SFTP server in C# (.NET)? Does a free .NET library exist with which I can upload a file to a SFTP (SSH FTP) server, which throws exceptions on problems with the upload and allows the monitoring of its progress? A: Following code shows how to upload a file to a SFTP server using our Rebe...
{ "language": "en", "url": "https://stackoverflow.com/questions/86458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Firing COM events in C++ - Synchronous or asynchronous? I have an ActiveX control written using the MS ATL library and I am firing events via pDispatch->Invoke(..., DISPATCH_METHOD). The control will be used by a .NET client and my question is this - is the firing of the event a synchronous or asynchronous call? M...
{ "language": "en", "url": "https://stackoverflow.com/questions/86474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does C# have an equivalent to JavaScript's encodeURIComponent()? In JavaScript: encodeURIComponent("©√") == "%C2%A9%E2%88%9A" Is there an equivalent for C# applications? For escaping HTML characters I used: txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]", m => @"&#" + ((int)m.Value[0]).ToString() + "...
{ "language": "en", "url": "https://stackoverflow.com/questions/86477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: ASP.net ACTK DragPanel Extender on PopupControlExtender with UpdatePanel does not drag after partial postback I have a panel on an aspx page which contains an UpdatePanel. This panel is wrapped with both a PopUpControl Extender as well as a DragPanel Extender. Upon initial show everything works fine, the panel pops ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best documentation for snapshots and flow repositories in Spring Web Flow? I'm looking for more and better documentation about snapshots, flow repositories, and flow state serialization in Spring Web Flow. Available docs I've found seem pretty sparse. "Spring in Action" doesn't talk about this. The Sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/86487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use RegisterClientScriptBlock to register JavaScript? ASP.NET 2.0 provides the ClientScript.RegisterClientScriptBlock() method for registering JavaScript in an ASP.NET Page. The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is using the JavaScript eval function a bad idea? The eval function is a powerful and easy way to dynamically generate code, so what are the caveats? A: Along with the rest of the answers, I don't think eval statements can have advanced minimization. A: It is a possible security risk, it has a different scope ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "576" }
Q: Does anyone know the CVS command line options to get the details of the last check in? I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix. I need to know the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I make the Ant copy task OS-specific? I have an Ant script that performs a copy operation using the 'copy' task. It was written for Windows, and has a hardcoded C:\ path as the 'todir' argument. I see the 'exec' task has an OS argument, is there a similar way to branch a copy based on OS? A: The previously post...
{ "language": "en", "url": "https://stackoverflow.com/questions/86526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: JSF selectItem label formatting Trying to keep all the presentation stuff in the xhtml on this project and I need to format some values in a selectItem tag have a BigDecimal value and need to make it look like currency. Is there anyway to apply a <f:convertNumber pattern="$#,##0.00"/> Inside a <f:selectItem> tag? An...
{ "language": "en", "url": "https://stackoverflow.com/questions/86531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Reading changes in a file in real-time using .NET I have a .csv file that is frequently updated (about 20 to 30 times per minute). I want to insert the newly added lines to a database as soon as they are written to the file. The FileSystemWatcher class listens to the file system change notifications and can raise an...
{ "language": "en", "url": "https://stackoverflow.com/questions/86534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Modify config file on clickonce deployment? I have a application deployed through clickonce, but How can I modify the config file on the deployment server?. I mean, once the product is tested, it should be deployed in our production server, but need to modify some of the config parameters to consume producti...
{ "language": "en", "url": "https://stackoverflow.com/questions/86539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a JavaScript PNG fix for IE6 that allows CSS background positioning? I've seen a few fixes for allowing PNG images to have transparency in Internet Explorer 6, but I've yet to find one that also allows you to set the background position in CSS. If you use sprites, it's a deal-breaker. I've resorted to using...
{ "language": "en", "url": "https://stackoverflow.com/questions/86545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I protect my file data from disk corruption? Recently, I read an article entitled "SATA vs. SCSI reliability". It mostly discusses the very high rate bit flipping in consumer SATA drives and concludes "A 56% chance that you can't read all the data from a particular disk now". Even Raid-5 can't save us as it m...
{ "language": "en", "url": "https://stackoverflow.com/questions/86548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IndexOutOfRangeException in the Ajax.Net extensions framework For some reason when I attempt to make a request to an Ajax.net web service with the ScriptService attribute set, an exception occurs deep inside the protocol class which I have no control over. Anyone seen this before? Here is the exact msg: System.Index...
{ "language": "en", "url": "https://stackoverflow.com/questions/86549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good Linux (Ubuntu) SVN client Subversion has a superb client on Windows (Tortoise, of course). Everything I've tried on Linux just - well - sucks in comparison.... A: I guess you could have a look at RabbitVCS RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/86550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "163" }
Q: Best Permalinking for Rails What do you think is the best way to create SEO friendly URLs (dynamically) in Rails? A: Override the to_param method in your model classes so that the default numeric ID is replaced with a meaningful string. For example, this very question uses best-permalinking-for-rails in the URL. Ry...
{ "language": "en", "url": "https://stackoverflow.com/questions/86558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Inlining C++ code Is there any difference to the following code: class Foo { inline int SomeFunc() { return 42; } int AnotherFunc() { return 42; } }; Will both functions gets inlined? Does inline actually make any difference? Are there any rules on when you should or shouldn't inline code? I often use the An...
{ "language": "en", "url": "https://stackoverflow.com/questions/86561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is "missing" in the Visual Studio 2008 Express Editions? What is "missing" in the Visual Studio 2008 Express Editions? In particular, * *what functionality is not available? *what restrictions are there on its use? A: Here's comparison chart of editions Edit: didn't realize this was for 2005, not 2008 A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/86562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: Linkbutton click event not running handler I'm creating a custom drop down list with AJAX dropdownextender. Inside my drop panel I have linkbuttons for my options. <asp:Label ID="ddl_Remit" runat="server" Text="Select remit address." Style="display: block; width: 300px; padding:2px; padding-right: 50px; font-fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/86563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Designing a WPF map control I'm thinking about making a simple map control in WPF, and am thinking about the design of the basic map interface and am wondering if anyone has some good advice for this. What I'm thinking of is using a ScrollViewer (sans scroll bars) as my "view port" and then stacking everything up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Singleton: How should it be used Edit: From another question I provided an answer that has links to a lot of questions/answers about singletons: More info about singletons here: So I have read the thread Singletons: good design or a crutch? And the argument still rages. I see Singletons as a Design Pattern (good ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "318" }
Q: Google Maps, Z Index and Drop Down Javascript menus I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map? Thanks! A: If your problem happens in Internet Explorer, but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/86604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I correctly access static member classes? I have two classes, and want to include a static instance of one class inside the other and access the static fields from the second class via the first. This is so I can have non-identical instances with the same name. Class A { public static package1.Foo fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/86607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Proper Logging in OOP context Here is a problem I've struggled with ever since I first started learning object-oriented programming: how should one implement a logger in "proper" OOP code? By this, I mean an object that has a method that we want every other object in the code to be able to access; this method would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to "pretty" format JSON output in Ruby on Rails I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. Right now, I call to_json and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream. Is there way to configure to make my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "738" }
Q: What's wrong with singleton? Do not waste your time with this question. Follow up to: What is so bad about singletons? Please feel free to bitch on Singleton. Inappropriate usage of Singleton may cause lot of paint. What kind of problem do you experienced with singleton? What is common misuse of this pattern? Afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/86654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }