text
stringlengths
8
267k
meta
dict
Q: When to use threading against a scheduled task/web methods These two may look like they have no correlation but bear with me! In a previous version of the software I develop/maintain there was a web app sitting on top of a web service. There was a scheduled task that run every hour called one of the web methods to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NAnt task running "svn import" fails I would like to import a build product to Subversion in a NAnt build task. But it fails for me. The following works fine for me from the command-line: svn.exe import -m 'Importing build 14' build/project.zip http://svn/builds/14/project.zip --username builder --password secret ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can a Java Applet use the printer? Can a Java Applet able to print out text/html easily to standard printer driver(s) (with all common platforms Win/Mac/Linux)? Does it need to be signed? A: In order to print, the security manager needs to allow it to access the printer. This means either signing the applet or, at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Subversion as version-incrementor at each commit? I'd like to update the (highest) revision number to a file inside a subversion repository after each commit. I thought of a svn version keyword, but doesn't this only get updated if the specific file was changed? i.e. I have a file version.php where i have the versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/438398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What internal dictionary does FxCop use? FxCop must base itself on some internal dictionary. Does it use Word dictionaries if they are installed? When running FxCop on my build server it doesn't find any spelling errors, but on my developer machine it does. I am aware of the custom dictionary, but it is not the is...
{ "language": "en", "url": "https://stackoverflow.com/questions/438399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tablet PC Autocomplete I have been trying to implement the autocomplete functionality mentioned here. The problem is I am developing on a windows xp machine and I cant seem to find the right dlls used to develop this feature. Using vista for development is not an option, but the production environment is on a Vista...
{ "language": "en", "url": "https://stackoverflow.com/questions/438400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exception handling of a function in Python Suppose I have a function definiton: def test(): print 'hi' I get a TypeError whenever I gives an argument. Now, I want to put the def statement in try. How do I do this? A: try: test() except TypeError: print "error" A: In [1]: def test(): ...: pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/438401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a login section - Im new an need some serious direction please! Alright. So I am new, I know my way around html pretty well, and have gotten by for a while now doing so. But today I am presented with a seemingly simple issue. My client needs the ability for users to create their own LOGIN/PASSWORD, my clie...
{ "language": "en", "url": "https://stackoverflow.com/questions/438405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do search engines respect the HTTP header field “Content-Location”? I was wondering whether search engines respect the HTTP header field Content-Location. This could be useful, for example, when you want to remove the session ID argument out of the URL: GET /foo/bar?sid=0123456789 HTTP/1.1 Host: example.com … HTTP/...
{ "language": "en", "url": "https://stackoverflow.com/questions/438413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Delphi file types I am looking for a list of all file types that can be associated to a Delphi project (all versions of Delphi), more specifically all file types that should be under source control. This site doesn't mention Delphi 2009 so I'm not sure if there may be new file types. Is there maybe such a list dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/438414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Can Web Parts in Sharepoint be moved outside of edit mode using drag & drop? I'm wondering if anyone has implemented an iGoogle/netvibes drag&drop interface in the normal view mode of a Sharepoint 2007 Web Part page? I would preferably want to use the drag & drop functionality that already exists in the edit mode i...
{ "language": "en", "url": "https://stackoverflow.com/questions/438418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to create autorun hybrid CD/DVD on Max OSX Tiger/Leopard? Excuse me for not quite a programming question, but I need to burn a disc that would be autoplayed both on Windows and OSX. I read somewhere, that OSX disables autoplay feature by default (?) regarding to some security issues or wtf. However, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/438423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to wait for a background thread/operation to complete in WPF UI code? e.g. in Winforms I'd write... // on UI Thread BackgroundWorker workerThread = new BackgroundWorker(); workerThread.DoWork += new DoWorkEventHandler(LoadChildren); workerThread.RunWorkerCompleted += new RunWorkerCompletedEventHandle...
{ "language": "en", "url": "https://stackoverflow.com/questions/438431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Passing object ownership in C++ What is the best way to indicate that an object wants to take ownership of another object? So far, I've been using a std::auto_ptr in the public interface, so the client knows that the interface wants to take ownership of the passed object. However, the latest GCC tells me auto_ptr is...
{ "language": "en", "url": "https://stackoverflow.com/questions/438444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best batch photo upload applet I'm looking to handle image uploads on a site I'm building. All the behind the scenes stuff is fine, but creating an intuitive front-end is causing me head pains. The problem with handling photos in a world where most people have asynchronous internet connections is the photos' size. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/438455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CANopen PDOs using the serial port I am trying to understand the CANopen protocol. For now, I do not have any CAN hardware nor the CANopen stack to experiment with. I would like to know how to write a Java program to simply interpret CANopen messages that are received at the RS-232 port. * *Are there CAN interfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/438458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you track versions in Bugzilla? We are in the process of migrating our bug tracking to Bugzilla from a really old version of track and I am running out of Advil. We have a legacy application that has been around for a long time. Mix in the fact that our versioning management has been through a few iterations...
{ "language": "en", "url": "https://stackoverflow.com/questions/438461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JOptionPane won't show its dialog on top of other windows I have problem currently for my swing reminder application, which able to minimize to tray on close. My problem here is, I need JOptionPane dialog to pop up on time according to what I set, but problem here is, when I minimize it, the dialog will pop up, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Changing the date format In Calc I set a cell value to "2006/10/03 13:33:55.448" and Calc says it is Standard format. I'm doing this with Java and I want to set the format to "DD.MM.YY HH:MM:SS AM/PM": XNumberFormatTypes xFormatTypes = (XNumberFormatTypes) UnoRuntime.queryInterface(XNumberFormatTypes.class, xNumberF...
{ "language": "en", "url": "https://stackoverflow.com/questions/438473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sql Compact randomly produces AccessViolationException I am running Sql Server Compact Edition 3.5.1.0 SP1 in a multi-thread application. The application randomly runs insert queries in transactions. With short transactions, it works fine. But when the transactions get longer and delay between executions get shorter...
{ "language": "en", "url": "https://stackoverflow.com/questions/438477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: enCapsa -what is it and what is used for? It may not be a pure programming question but I'm looking for information about enCapsa. Do you know what it is, have you ever used it? I'm reading some papers about it but I can't really see how it works and what it can be used for in an IT company (and this is what i am su...
{ "language": "en", "url": "https://stackoverflow.com/questions/438479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP image upload issues <td valign="top"> <input type="hidden" name="MAX_FILE_SIZE" value="12485760" /> Image?</td> <td><input type="file" name="image"> $path = "uploads/"; $path .= basename($_FILES['image']['name']); $path = addslashes($path); $name = $_FILES['image']['name']; echo $path; move_uploaded_file($_F...
{ "language": "en", "url": "https://stackoverflow.com/questions/438486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it expected to disclose all the frameworks / open source software used in a project to a client Taken aback to day when I was confronted about the use of validation code used from the Csla framework. It felt like I was reprimanded for not disclosing the use of the framework to the client. Is this not the same as...
{ "language": "en", "url": "https://stackoverflow.com/questions/438492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom Rails URL argument separators? We're building a Facebook application at work using Ruby on Rails. We're currently switching it from a canvas to an iframe application for technical reasons. There is however a problem, Facebook sends you the fb_sig_api_key and others as GET varialbes in the URL (blah.com/?fb_si...
{ "language": "en", "url": "https://stackoverflow.com/questions/438504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to securely trigger a Swing-Action in a restricted applet? I simply want to call a swing action from my own popup menu. But since there is a security manager I need a solution to invoke this action without calling it directly. For instance the paste action of a text component will fail, because sun.swing.SwingUt...
{ "language": "en", "url": "https://stackoverflow.com/questions/438508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Undo in a transactional database I do not know how to implement undo property of user-friendly interfaces using a transactional database. On one hand it is advisable that the user has multilevel (infinite) undoing possibility as it is stated here in the answer. Patterns that may help in this problem are Memento or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to track memory allocations in C++ (especially new/delete) How can I track the memory allocations in C++, especially those done by new/delete. For an object, I can easily override the operator new, but I'm not sure how to globally override all allocations so they go through my custom new/delete. This should be n...
{ "language": "en", "url": "https://stackoverflow.com/questions/438515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How do I upgrade PHP 5.1 to 5.2 on SUSE 10.1 using the yast command line only? How do I upgrade PHP 5.1 to 5.2 from the SUSE 10.1 command line? Is there a package manager command to do it automatically? Actually I need JSON support to use the JavaScript-RTE and believe it's in PHP 5.2 only. A: How about using zypp...
{ "language": "en", "url": "https://stackoverflow.com/questions/438520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In ASP.NET MVC, why do my custom JavaScript files not work in /Scripts? I can successfully include main jquery files in /Scripts, but if my custom test.js file is in Scripts, it will not work: <script type="text/javascript" src="<%= this.ResolveClientUrl ("~/Scripts/jquery-1.2.6.js") %>"></script> <script type="text...
{ "language": "en", "url": "https://stackoverflow.com/questions/438525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Improving our development environment at work In the near future i will get some 2 weeks for moving and improving our development environment at work. We mainly develop one large PHP/MySQL project with 2-10 developers. At the moment we have one dev server, running apache with mod_userdir, each dev has a /public_html...
{ "language": "en", "url": "https://stackoverflow.com/questions/438530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Iterating Over Using jQuery + Multi Select This isn't quite as straight forward as one may think. I'm using a plugin called jQuery MultiSelect and multiple <select> options using XSLT as follows: <xsl:for-each select="RootField"> <select id="{RootField}" multiple="multiple" size="3"> <option value=""></optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/438538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (ProjectEuler) Sum Combinations From ProjectEuler.net: Prob 76: How many different ways can one hundred be written as a sum of at least two positive integers? I have no idea how to start this...any points in the right direction or help? I'm not looking for how to do it but some hints on how to do it. For example 5 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/438540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Visual Studio: Find the assembly of a class Me stupid. How can I know which assembly to reference if I just know the name of the class, for example System.Collections.Specialized.StringCollection. (Yes, I know that more often than not I can make an educated guess by looking at the namespace.) Thanks Alex A: You can...
{ "language": "en", "url": "https://stackoverflow.com/questions/438543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Foreach Loop Microsoft SSIS - equivalent to break statement Within a Foreach loop in SSIS is there a way that if a task fails you can break out of the loop to the next iteration? I am looping over xml files and performing a lookup using values within this file, if the lookup doesn't return any values i'd like to re...
{ "language": "en", "url": "https://stackoverflow.com/questions/438546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: update a field based on subtotal from another table I'm using oracle(10). I've got two tables as follows: Table1 (uniq rows): ID AMOUNT DATE Table2: ID AMOUNT1 AMOUNT2 ...AMOUNTN DATE Table2 is connected many to one to Table1 connected via ID. What I need is update-ing Table1.DATE with: the last (earlie...
{ "language": "en", "url": "https://stackoverflow.com/questions/438547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Algorithm for ProjectEuler Problem 99 From http://projecteuler.net/index.php?section=problems&id=99 Comparing two numbers written in index form like 211 and 37 is not difficult, as any calculator would confirm that 211 = 2048 37 = 2187. However, confirming that 632382518061 > 519432525806 would be m...
{ "language": "en", "url": "https://stackoverflow.com/questions/438555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to Access ASP control located in a user control via JavaScript Hi All, I'm designing a user control, briefly it contains an asp:hiddenfield control, i'm going to access it via JavaScript function like this function doAnyThing { var myVar = document.getElementById("myHiddenFiled"); } but when I trace my code...
{ "language": "en", "url": "https://stackoverflow.com/questions/438556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you pass data between views using a UINavigationController I have tried using the obvious method as outlined in the following example but my passed variable (rootcategory) is still nil on viewDidLoad in the loaded view. This is my code: CategoryViewController *viewController = [[CategoryViewController alloc] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to automatically generate a list of columns that need indexing? The beauty of ORM lulled me into a soporific sleep. I've got an existing Django app with a lack of database indexes. Is there a way to automatically generate a list of columns that need indexing? I was thinking maybe some middleware that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a way to add a path to all src attributes of image tags? I would like to add a path "images/" to all img tags in my html file. Is that possible and if how can I achive that? A: From what? Is search/replace in notepad good enough? A: I'm sure there's a jQuery specific way to do this, but this basic JS loop...
{ "language": "en", "url": "https://stackoverflow.com/questions/438565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: https stops working after site publish I am working on Windows Server 2003 (IIS6), which has two asp.net sites running in seperate app pools. One of the sites has an ssl certificate installed and was running fine on https. The other site has no certificate and does not require https The problem I have is that when I...
{ "language": "en", "url": "https://stackoverflow.com/questions/438566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use the Groups.pm in Request Tracker? In lib\RT\CustomFieldValues\ there is the groups.pm file which is supposed to be an example of how to get data into a custom field, but how do I actually use that once I have written it? Does anyone have any documentation or a sample of this? A: I have finally figured ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Deploy PowerBuilder application I'm trying to deploy the examples project that comes with PowerBuilder 9 IDE to an .exe file. * *Full build - passed successfully. *Deploy - fails with the following error: "The current library list is different than the library list contained within this project. The project lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/438570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SqlBulkCopy Not Working I have a DataSet populated from Excel Sheet. I wanted to use SQLBulk Copy to Insert Records in Lead_Hdr table where LeadId is PK. I am having following error while executing the code below: The given ColumnMapping does not match up with any column in the source or destination string ConS...
{ "language": "en", "url": "https://stackoverflow.com/questions/438587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to call java objects and functions from CPython? I have a python program, which runs on the CPython implementation, and inside it I must call a function defined in a java program. How can I do this? It would be nice to be able to use some java objects too. Jython is not an option. I must run the python part in C...
{ "language": "en", "url": "https://stackoverflow.com/questions/438594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: JavaScript debugging issue with vs2005 I encountered a strange problem today. Whenever i put a breakpoint in one of my js files, the breakpoint is not hit. I use Visual Studio 2005 in combination with TFS. In ie the disable script options are both disabled. The only thing that changed is that I installed Visual Bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/438603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is class being called from another class Suppose I have the following code: class siteMS { ... function __CONSTRUCT() { require 'config.php'; $this->config = new siteMSConfig; ... } ... } From inside the siteMSConfig class can I determine weather or not it is being ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/438607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I write a query that outputs the row number as a column? How do I write a query that outputs the row number as a column? This is DB2 SQL on an iSeries. eg if I have table Beatles: John Paul George Ringo and I want to write a statement, without writing a procedure or view if possible, that gives me 1 John 2 P...
{ "language": "en", "url": "https://stackoverflow.com/questions/438610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: illegal command error code 127 in php exec function I am using this php code: exec("unrar e file.rar",$ret,$code); and getting an error code of illegal command ie 127 ... but when I am using this command through ssh its working ... because unrar is installed on the server ... so can anyone guess why exec is not doi...
{ "language": "en", "url": "https://stackoverflow.com/questions/438618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Asp.Net General Local Resource tool for user control When I use the Visual Studio menu Tool -> Generate Local Resource, it changed aspx file by adding meta attributes to controls. But it doesnt do so for user controls that I have created. For example, If I have used a control in the page <myControl:SpecialLabelContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/438624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a possibility to break on every object reference in eclipse debugger? Suppose I have a class public class MyClass { private Set<String> set = new HashSet<String>(); //and many methods here } is there a possibility to make an eclipse debugger stop at every line where set member is used? A: Yes. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: PHP 'something like widget' code design I have a prototype website written in PHP. Lately i've rewritten code to separate logic from layout and database operations. So now I have something like MVC code design. Now what bothers me, is that in MVC I'll have many files and each will display something when combined wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/438631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studios 2005 - Clear custom properties in designer/property window Morning all, I've created a custom control with an image property. That image property is a get/set to a private Image variable. Can anyone tell me how I enable that get/set to clear the property from the designer? I.e. if I add an image to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ImageClickEvenHandler doesn't call handler I have a dynamically created table and in some of the cells i have an image button associated with the redBall_Click() handler (here is the code behind) TableCell cellOK = new TableCell(); cellOK.Style.Add(HtmlTextWriterStyle.TextAlign, "Center"); cellOK.Width =...
{ "language": "en", "url": "https://stackoverflow.com/questions/438649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open a file dialogue box in JavaScript? How can I get an "open file dialogue" box in JavaScript? A: Javascript cannot open files. (Leastways not in any cross browser secure way). Possibly you'd be interested in <input type="file" /> (an intro here). A: Short answer is that no, you cannot do this through pur...
{ "language": "en", "url": "https://stackoverflow.com/questions/438650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to implement search on jqgrid? So I've got basic example of jqgrid working in ASP.NET MVC, the javascript looks like this: $(document).ready(function() { $("#list").jqGrid({ url: '../../Home/Example', datatype: 'json', myType: 'GET', colNames: ['Id', '...
{ "language": "en", "url": "https://stackoverflow.com/questions/438659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How do you return a user defined type from a WCF service? I have a WCF service hosted in IIS. The intention is for clients to make a call and receive a custom class that is defined in another project/dll. I have generated a service client using the svcutil.exe. The problem is this autogenerated client contains a new...
{ "language": "en", "url": "https://stackoverflow.com/questions/438669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to select links but not child links in jQuery? How in jQuery can I select just the links inside a div element and not the child div elements contained within that div? <div> <a>Link 1</a> <a>Link 2</a> <div> <a>Not these 1</a> <a>Not these 2</a> </div> </div> A: If there is a sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/438675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert a list of longs into a comma separated string in python I'm new to python, and have a list of longs which I want to join together into a comma separated string. In PHP I'd do something like this: $output = implode(",", $array) In Python, I'm not sure how to do this. I've tried using join, but this do...
{ "language": "en", "url": "https://stackoverflow.com/questions/438684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Dynamic LINQ with direct user input, any dangers? I have a table in a ASP.NET MVC application that I want to be sortable (serverside) and filterable using AJAX. I wanted it to be fairly easy to use in other places and didn't feel like hardcoding the sorting and filtering into query expressions so I looked for a way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: handling CSS & Images in ASP.NET MVC Hi I am developing a simple application based upon ASP.NET MVC. I have altered the default master.css to my have my own styles. Now the only problem is that i am adding background-image property to my one of my UL->Li->A to create menus. It is working fine in firefox but the imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/438707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Do you think the Spring WebFlow Flow Definition format would be suitable for externalising a Web Flow for a non Spring framework? I like the idea of Spring WebFlow - particularly the way the flow definitiion abstracts the higher level web flow from components in the Spring Bean Container. The Flow definition format...
{ "language": "en", "url": "https://stackoverflow.com/questions/438709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting from multiple MySQL tables I have a few tables that have similar fields but not exactly the same. The same fields they have are description (text field) and modified (unixtime) I would like to select the last modified items from these tables based on unixtime. I cant use UNION since the tables aren't the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/438711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SharePoint WebPart Packages and dlls I have a SharePoint WebPart project in visual studio. As part of the project I am referencing the interop.ActiveDS.dll. I can compile the project successfully and add/deploy the solution to SharePoint. When I try to run the WebPart in SharePoint I get the error: That assembly doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/438712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How sort a System.Collections.Generic.List in VB.Net? I using a genric list(m_equipmentList ) which is collection of objects (Schedule_Payitem). How can sort list according to a proerty of child object ? Dim m_equipmentList As New List(Of Schedule_Payitem) Need to sort m_equipmentList on basis of resourceid proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/438715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How to unregister an event handler in Internet Explorer 6? I am registering a function with the onload method of a html form, I need to unregister this event hander function on unload of the form. How do I do it in Internet Explorer 6? A: if you have added the onload in your HTML or via JavaScript <form onload="bla...
{ "language": "en", "url": "https://stackoverflow.com/questions/438720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: smalltalk singleton pattern: how do I initialize the instance variables? I'm having trouble in getting the singleton pattern to initialize a instance variable in smalltalk. (here is a link to another implementation for clarification) this is what I have: new ^UniqueInstance ifNil: [UniqueInstance := self basicNew. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Help in FileNotFoundException -Python This is my code: try: import clr, sys from xml.dom.minidom import parse import datetime sys.path.append("C:\\teest") clr.AddReference("TCdll") from ClassLibrary1 import Class1 cl = Class1() except ( ImportError ) : print "Module may not be existin...
{ "language": "en", "url": "https://stackoverflow.com/questions/438733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: WPF MediaElement video playback tearing I'm trying to use the MediaElement control in WPF to play back video. It works great in Vista, but when I run it on an XP machine I get tearing in the display. It looks as if it's not using the vertical synch, and just updating the screen mid-draw. Anyone know how to fix thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/438741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which is the best book out there to learn Linq, including Linq to Entities? I heard lots of reviews on the book Linq in Action, but it does not cover Linq to Entities. Please provide your feedback on the books you may have read. A: LINQ in Action is a good book for understanding the principles of LINQ, and LINQ-to...
{ "language": "en", "url": "https://stackoverflow.com/questions/438742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: a good testbed to debug SCORM courseware (Applet) without LMS What would be a nice testbed to debug JAVA APPLET based SCORM content package (eclipse). debugging with a real LMS (like Moodle) usually requires uploading package in a zip file to LMS (slow..) A: ADL themselves provide some compliance testing software (...
{ "language": "en", "url": "https://stackoverflow.com/questions/438746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF Exclusive mode Is it possible to run a WPF application in exclusive mode - where it owns the entire screen? I want to do full screen video playback. A: If you set the WindowStyle to None and maximize then you will take over the full screen - including task bar. But then you have to implement your own window ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/438747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET Events not firing in page containing large GridView control I have a GridView control on an ASP page, which I've bound to a large(ish) datasource (about 10k rows, with 24 varchar(50) columns). The page also has a seperate (i.e. not in the GridView) button control. The problem is; clicking on the button doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/438752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NUnit is executing All If statement evenif the condition fails I am executing If statement based on some vales but Nunit executes all statements even if the condition is false A: NUnit is written entirely in C#, if statements do work in C#! :) It must be a mistake in your implementation or interpretation. A: Nunit...
{ "language": "en", "url": "https://stackoverflow.com/questions/438766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: scale, rotate and crop images I want to have in my GUI capability for scale, rotate and crop images permanently (saving into the file the changes). WPF is natively capable of it? If it isn't, is there any component that can work more integrated with WPF? I also need to adjust image brightness and contrast, remove bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/438769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Simplest way to get the number of calls to an MSSQL2000 Server Does anyone know how one can get the total number of calls to an MSSQL2000 server during a specified time, let’s say 24 hours? We want figures of how many calls our production machine gets per day, but we can’t find any good tools/strategies for this. Be...
{ "language": "en", "url": "https://stackoverflow.com/questions/438776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assembly Versioning using CruiseControl.net I have setup CruiseControl.net for a bunch of my projects which are related. As a result a single project tag in CruiseControl has multiple SVN checkouts and then a bunch of msbuild tasks compile all the individual sln files. I need to update the assembly version of all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to create a MySQL stored procedure from PHP? My attempts to query MySQL from PHP with a create statement of a store procedure (SP) have all failed. Is this not possible ? If indeed possible, please give an example. A: Besides of the privileges, what quite probably might cause your problem is, that actually mysq...
{ "language": "en", "url": "https://stackoverflow.com/questions/438788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Controlling a UserControl's Storyboard from the parent Window in WPF using only XAML I have created a very simple test app to try and solve this problem described to me by a co-worker. He was able to trigger it in C#, but I believe he needed the solution to be more generic and wanted it to be done strictly in the X...
{ "language": "en", "url": "https://stackoverflow.com/questions/438795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Explain System.Diagnostics.CodeAnalysis.SuppressMessage I have this kind of code in some applications (from microsoft) [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "CounterClockwise", Scope = "member", Target =...
{ "language": "en", "url": "https://stackoverflow.com/questions/438803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Testing framework for functional/system testing for C/C++? For C++, there are lots of good unit test frameworks out there, but I couldn't find a good one for functional testing. With functional testing, I mean stuff which touches the disk, requires the whole application to be in place etc. Point in case: What framew...
{ "language": "en", "url": "https://stackoverflow.com/questions/438809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is this a bug in string.TrimEnd? "\u4000\f".TrimEnd(new char[0]) is equal to "\u4000". I am passing an empty array, so according to the MSDN documentation nothing should be removed and "\u4000\f" should be returned. Is there a reason for this behaviour? EDIT: Clarified expected behaviour EDIT: Apparently, this cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/438810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you create a list like PHP's in Python? This is an incredibly simple question (I'm new to Python). I basically want a data structure like a PHP array -- i.e., I want to initialise it and then just add values into it. As far as I can tell, this is not possible with Python, so I've got the maximum value I might...
{ "language": "en", "url": "https://stackoverflow.com/questions/438813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does '?' do in a Css link? I was browsing the html of my favorite site...ahem...and I saw this in the markup: <link href="/Content/all.min.css?d=20090107" rel="stylesheet" type="text/css" /> what does "?d=20090107" do? I'm assuming it's a date of some kind, but I'm not sure why it's in the path to the file. An...
{ "language": "en", "url": "https://stackoverflow.com/questions/438821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: How to access keywords for files generated by desktop search engines like Windows Search or Copernic Desktop Search I am trying order the files on a common fileshare of my department, containing thousands of documents of various filetypes. My idea was to sort them by content-related keywords. Only few files contain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: add a vanity url to subtext article So I'm running subtext 1.95 on IIS6 and .net 2.0 framework. What I'd like to do is create a nice vanity URL to a particular article that is published inside the subtext system. The vanity url should look like this: mydomain.com/blog/toc/, but the subtext article that it is pointin...
{ "language": "en", "url": "https://stackoverflow.com/questions/438835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: eclipse find resource not compiled When I click Ctrl+Shift+R in eclipse I get a dialog that allows me to find a resource. However it shows all resources regardless if they are not compiled or compiled. Is there any way to filter so it shows just not compiled resource? Or can I hide compiled resources in some way? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/438839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a label/goto in Python? Is there a goto or any equivalent in Python to be able to jump to a specific line of code? A: Labels for break and continue were proposed in PEP 3136 back in 2007, but it was rejected. The Motivation section of the proposal illustrates several common (if inelegant) methods for imit...
{ "language": "en", "url": "https://stackoverflow.com/questions/438844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: Custom tld function validation in eclipse I am working in eclipse (Ganymede 3.4.1) and have created a ctl TLD : <?xml version="1.0" encoding="UTF-8"?> <taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2...
{ "language": "en", "url": "https://stackoverflow.com/questions/438851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why isn't jQuery $('.classname') working in IE? With valid HTML the following finds the object as expected in all browsers but gets NULL in IE (6 & 7). $(document).ready(function() { alert( '$(.rollover):\n' + $('.rollover')); }); I've tried by switching it to something simpler like $('a') but I always get NULL...
{ "language": "en", "url": "https://stackoverflow.com/questions/438853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Virtual allocation granularity and page size What are the typical values of the virtual allocation granularity and page size on Win64 platforms? That'd be SYSTEM_INFO's dwAllocationGranularity and dwPageSize. On Win32 systems these would be 64k and 4k. I need to know because I've designed a custom allocator based on...
{ "language": "en", "url": "https://stackoverflow.com/questions/438863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ASP.NET MVC application controller constructor problem I've created an application controller abstract class that my controllers derive from (As described in the following article) The following is an example of what my code looks like public abstract class ApplicationController : Controller { private ProjectDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/438870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Document,text format to my project i need document editor for many types of documents(tabular data, invoices, letters, some formulars,...) and i am looking for text format and editor to acompish my task * *is there some MS Word like format? *I know for example rtf, I need formating, invissible comment will be v...
{ "language": "en", "url": "https://stackoverflow.com/questions/438872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StackOverflowError when serializing an object in Java I am writing an application in Java using Swing. I am trying to implement functionality to save and load simulation states for at simulation i am running. The entire simulation is kept as an object, disconnected from Swing. I am trying to serialize my Simulation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to create copy of a Excel file without opening What is the command to create a copy of an Excel file without opening it using VB.NET? A: File.Copy http://msdn.microsoft.com/en-us/library/system.io.file.copy(VS.71).aspx A: Let's keep it VB-centric: My.Computer.FileSystem.CopyFile() A: The parm 'true' in the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/438877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to password protect HTML pages without using a server side language? I have a series of interlinked web pages, and I want to restrict access to these pages by asking the user to provide a login and password. However, my hosting account currently does not provide any facility for server side scripting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/438886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do I need to set debug="false" in my ASP.NET web app before I use the "Publish Web Site" feature in VS 2005? Basically, what I'm wondering is if I need to set debug="false" before hitting the "Publish Web Site" button or if I can switch it after all the files have been published. A: You do not have to turn that set...
{ "language": "en", "url": "https://stackoverflow.com/questions/438889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I stop a program when an exception is raised in Python? I need to stop my program when an exception is raised in Python. How do I implement this? A: import sys try: print("stuff") except: sys.exit(1) # exiting with a non zero value is better for returning from an error A: You can stop catching the exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/438894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Custom attributes on interfaces or the classes that implement them? When employing custom attributes to store meta-data, is it best to decorate the interface, or the class that implements the interface, assuming that any class that implements the interface would have the same data in the attribute? Update: Basically...
{ "language": "en", "url": "https://stackoverflow.com/questions/438913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Localization of a WinForms app and later UI changes I am using VS2008 to develop a WinForms 2.0 application. I have read about how to localize my app in the Visual Studio by setting the Localizable property to true in the designer etc. I would like to ask about your experience, how does it work when I translate the...
{ "language": "en", "url": "https://stackoverflow.com/questions/438920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }