text
stringlengths
8
267k
meta
dict
Q: Prolog: Filtering a list? I'm currently working on a very short project on Prolog, and just got stuck trying to apply a "filter" I have created to a list. I have what you could call the filter ready, but I can't apply it. It'd be better if I illustrate: filter(A, B) ...outputs 'true' if certain conditions are met....
{ "language": "en", "url": "https://stackoverflow.com/questions/297996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: python (jython) archiving library Is there a neat archiving library that automatically handles archiving a folder or directories for you out there? I am using Jython, so Java libs are also open for use. -UPDATE- Also Im looking for timestamp archiving. ie archive-dir/2008/11/16/zipfilebypreference.zip then the next...
{ "language": "en", "url": "https://stackoverflow.com/questions/298004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ignore NullReferenceException when reading object properties Is there any way to direct C# to ignore NullReferenceException (or any specific exception for that matter) for a set of statements. This is useful when trying to read properties from a deserialized object that may contain many null objects in it. Having a...
{ "language": "en", "url": "https://stackoverflow.com/questions/298009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can the DMV views get reset without kicking eveyone out of the db? I have seen posts that show three ways to reset the DMV views: * *Reset the SQL Service *Detatch the database *Close the database All of these methods seem to require taking the system off-line for a few moments. Is there a way to reset the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/298011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fetching Core Data entities, but not sub-entities Say I have entities organized in a hierarchy with Parent being the root entity and Child being a subclass of Parent. I'd like to setup an NSArrayController to fetch only entities of Parent, but not Child. If you set the Entity Name of the array controller in Interfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/298013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Browser handling feeds to show up with a "friendly" interface Do developers have to put certain/extra elements in the feed's XML file or attributes in the hyperlink for the browser to recognize that it's a feed that can be subscribed to? Or do browsers do that automatically as long as the XML validates? (showing use...
{ "language": "en", "url": "https://stackoverflow.com/questions/298015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it really worth porting from VC6 ->vc2005,2008? What are all the problem that you foresee in doing that. A: * *VC 6 is no longer supported by Microsoft, in any way. If something goes wrong and for whatever reason we were not able to compile, we would be completely on our own unable to get any assistance from M...
{ "language": "en", "url": "https://stackoverflow.com/questions/298016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a WebService C# ASP.Net The Code Snippet is as follwos namespace RecruiterWebService { /// <summary> /// Summary description for Service1 /// </summary> [WebService(Namespace = "http://tempuri.org/") ] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false...
{ "language": "en", "url": "https://stackoverflow.com/questions/298018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to debug code that uses boost w/o losing sanity? Boost is a great set of libraries and it really boosts productivity. But debugging code that uses it is a total nightmare. Sure, stepping through twenty thousand header files can be a valuable intellectual exercise, but what if you need to do it over and over agai...
{ "language": "en", "url": "https://stackoverflow.com/questions/298024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Does Windows XP use the NTFS filesystem function calls to read-from/write-to a pagefile (pagefile.sys)? If it does, then how do you justify the overheads incurred (journaling etc.)? If it does not, then how come the pagefile gets fragmented? Additionally, would increasing the cluster size improve pagefile performanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/298031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Changing the database at runtime in Grails application I am wondering if there is a way to change the database at runtime in grails - e.g., in most commercial/opensource CMS, they allow the database server to be hosted elsewhere, and you can specify the address in some config screen at runtime. since grails configs...
{ "language": "en", "url": "https://stackoverflow.com/questions/298032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make the keywords recognizable in simpleparse? I've been trying to create a parser using simpleparse. I've defined the grammar like this: <w> := [ \n]* statement_list := statement,(w,statement)? statement := "MOVE",w,word,w,"TO",w,(word,w)+ word := [A-Za-z],[A-Za-z0-9]*,([-]+,[A-Za-z0-9]+)* Now if I try to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/298034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom control to be used in another custom control I have a custom control that I need to use in another custom control. I have written all code at server side (no HTML). Can anyone tell me how to write below line of code in code behind using htmlTextWriter and how to register this control or how to write custom co...
{ "language": "en", "url": "https://stackoverflow.com/questions/298039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which command will executed first,If a stored procedure have individual multiple select commands; Which command will executed first,If a stored procedure have individual multiple select commands; A: Commands inside stored procedure are executed in the order in which they are written.
{ "language": "en", "url": "https://stackoverflow.com/questions/298040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle conflicting keybindings paredit binds M-<up> and M-<down>, but I want windmove to own those keybindings. I have paredit-mode set to activate in certain modes only, but windmove is set to run globally. I want windmove to win, but paredit steals those keybindings when it loads. How can I easily stop pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/298048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can I access the datafile of an img tag from JavaScript I want to, from JavaScript, access as a variable the file that is loaded as an image in an img tag. I don't want to access its name, but the actual data. The reason for this is that I want to be able to copy it to and from variables so that I can , among other...
{ "language": "en", "url": "https://stackoverflow.com/questions/298049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Are there JavaScript bindings for MySQL? I want to access a MySQL database directly from JavaScript code in an HTML page in Firefox. Does such a library exist? To be very clear, CGI+Ajax will not work Some background: I want to create something like a GUI front end for a MySQL database (that's not what it is, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/298057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Signing application in Visual Studio I have a windows application project that has to be signed. I received the .spc and .pfx files from my client. I converted these files to .pfx and by right clicking an assembly - Properties - Signing I specified the .pfx file. Everything OK with no errors. The problem is that aft...
{ "language": "en", "url": "https://stackoverflow.com/questions/298059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I get a finished slot if I start QProcess using startDetached Do I get a finished signal if I start a QProcess using startDetached()? I'm trying to start a process, but I need to be able to get an event when the process has terminated. A: No you can't get a signal when you use startDetached because you have no o...
{ "language": "en", "url": "https://stackoverflow.com/questions/298060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MS Access multiply fields I have got a table in MS Access 2007 with 4 fields. * *Labour Cost *Labour Hours *Vat *Total How do I multiply 'Labour Hours' by 'Labour Cost' add the 'VAT' and display the answer in 'Total' Where would I put any formulas?, in a form or query or table ? A: There is also the dummies (...
{ "language": "en", "url": "https://stackoverflow.com/questions/298063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby's subclassing and Qt's signals/slots don't work together as expected When trying to work with Qt's signal/slot mechanisms over more than one level of inheritance, I ran into a problem: When my class does not directly inherit from QObject, signals and slots don't seem to work any more. The output of the followin...
{ "language": "en", "url": "https://stackoverflow.com/questions/298064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Proxy exceptions in C# We have a problem with our project. We make web services with C# and a client for the web services. In our office the client work fine, but in production we have a problem with proxy. Proxy is configured in Windows Internet Properties. The client has to connect to http:\aaa.com and http:\aaa.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/298067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automate download of BusinessObjecs Web Intelligence reports I'm tasked with automating the retrieval of a couple of BusinessObjects Web Intelligence reports and further processing thereof. I have no other means of access to this data (this was the first avenue I followed), so I will have to do some screen scraping....
{ "language": "en", "url": "https://stackoverflow.com/questions/298069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to add a method to a built-in type in Scala? I would like to add a method to a built-in type (e.g. Double), so that I can use an infix operator. Is that possible? A: This feature came in handy to implement a class performing error estimation: object errorEstimation { class Estimate(val x: Double, v...
{ "language": "en", "url": "https://stackoverflow.com/questions/298074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to display the row index in a JSF datatable In a JSF dataTable I want to display the row index next to the rows... like: Column A Column B 1 xxx 2 yyy I thought that I could use an implicit el variable like #{rowIndex} but this is not working. A solution I found is to create a binding for...
{ "language": "en", "url": "https://stackoverflow.com/questions/298116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Branch a version in CVS So i have a source tree that i want to clean up in CVS. What a really want is to branch the old stuff off, but never merge in back in. But so i can have an eclipse workspace to access and make some changes if i need to. And then we clean up the main trunk (by removing things we dont need anym...
{ "language": "en", "url": "https://stackoverflow.com/questions/298118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Expectations on Partial Mock - NullReference Exception I've a problem with partial mocking using Rhino Mocks: var authentication = (FormsAuthenticationService)_mocks.PartialMock( typeof(FormsAuthenticationService)); Expect.Call( delegate{ authentication.SetAuthCookie(null, null); }).IgnoreArguments(); ..and I get...
{ "language": "en", "url": "https://stackoverflow.com/questions/298125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using a IF Statement within a TSQL UPDATE I want to update two columns in a table. The value of the second column is dependant upon the first; If the first is Null the second's value is 'false', otherwise it is 'true'. Can I do this within TSQL or do I need to work out the values separately in my code before hand ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Modifying controls with Form.Controls I'm passing a reference of a form to a class. Within this class I believed I could use formRef->Controls["controlName"] to access properties on the control. This works for a few labels, but on a button I receive a "Object reference not set to an instance of an object." when I tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/298139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a TableRow/TableCell to an ASP.NET table from Javascript? What is the best way to dynamically add TableRows and TableCells to an ASP.NET table from Javascript? Thanks, Jeff A: Your question is too vague to answer completely, I'm afraid. If you actually want to create TableRow or TableCell objects, you w...
{ "language": "en", "url": "https://stackoverflow.com/questions/298145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help needed for LINQ To SQL operations (insert/update) with nested POCO's Ok well I've been trying to convert my model to use LINQ but didn't want to throw away my current DTO's and their interfaces which are scattered through the domain. I managed to find this blog post which has outlined the process quite nicely: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: SQL query to check blank cell in Excel I have data in excel sheet that has two columns and 10 rows. Some of the rows for First column has blank value. Excel shows it as (blank) on putting aut filter on colunm I am querying the excel sheet from C# 2.0 to find out if first column contains a blank. select * from [Shee...
{ "language": "en", "url": "https://stackoverflow.com/questions/298165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there syntactic sugar for binding a value inside an anonymous function in Scala? Instead of writing ((x: Double) => (((y: Double) => y*y))(x+x))(3) I would like to write something like ((x: Double) => let y=x+x in y*y)(3) Is there anything like this sort of syntactic sugar in Scala? A: OK, here's the one liner...
{ "language": "en", "url": "https://stackoverflow.com/questions/298167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Creating an answers file for a 3rd party software (Non OS install) Ok guys any idea how i may go about creating an answers file for an unattended install for say WinAmp? So far all my research points to is doing an unattended install for windows or some other OS. What I want to do is create an unattended install for...
{ "language": "en", "url": "https://stackoverflow.com/questions/298169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# member variable initialization; best practice? Is it better to initialize class member variables on declaration private List<Thing> _things = new List<Thing>(); private int _arb = 99; or in the default constructor? private List<Thing> _things; private int _arb; public TheClass() { _things = new List<Thing>();...
{ "language": "en", "url": "https://stackoverflow.com/questions/298183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Optimization of Google App Engine Code Google app engine tells me to optimize this code. Anybody any ideas what I could do? def index(request): user = users.get_current_user() return base.views.render('XXX.html', dict(profiles=Profile.gql("").fetch(limit=100), user=user)) And later in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access Denied when Reading/Writing to Program FIles I have a small program that is installed in a custom folder in the program files, but when I tried to read or write to files that are needed to operate, the program raises an Access Denied Exeption. How can I elevte the program, with the user's permission of course...
{ "language": "en", "url": "https://stackoverflow.com/questions/298187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show Vista style balloon hints in Delphi? On input validation, I'm using balloon tips instead of message boxes. My problem is that on Vista, they have the old XP style with the rounded corners, not the newer more rectangle like appearance. I've tried creating them using CreateWindowEx and tooltips_class32 or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to implement transaction way in vb.net? I develop one application using VB.net (200%) that connects to MS-Access Database, I use TableAdapter and Dataset for connection to the Access DB file. I need to implement a simple transaction method (commit, rollback) in saving to the DB? Is there a way to do that without...
{ "language": "en", "url": "https://stackoverflow.com/questions/298194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a semantic version of ? In XHTML Strict, it seems that you're not allowed to use the <u> tag any more. Is there a semantic equivalent like there is for <b> and <i>? If not, is there any convention for how to markup underlined text in XHTML? Thanks. A: To have an equivalent, you have to define why you are u...
{ "language": "en", "url": "https://stackoverflow.com/questions/298218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Getting to the query string (GET request array) inside a web service in .NET I'm looking to find a way to access the .net query string contained in the standard ASP.NET request object inside a web service. In other words if I set a SOAP web service to this url: http://localhost/service.asmx?id=2 Can I access the ID ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Maven, Hudson and Dynamic Clearcase Views This led on from the question about asking if Apache Maven and IBM Rational ClearCase integrated well. Thought I should write up what I found out - will require various edits, but I shall eventually get round to adding it all I hope. Environment ClearCase - Version 7.0.1.2 o...
{ "language": "en", "url": "https://stackoverflow.com/questions/298228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: String replace function I have following string String str = "replace :) :) with some other string"; And I want to replace first occurance of :) with some other string And I used str.replaceFirst(":)","hi"); it gives following exception "Unmatched closing ')'" I tried using replace function but it replaced all oc...
{ "language": "en", "url": "https://stackoverflow.com/questions/298231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SVN Doubt - VMWARE Image / Install / Hosted which would you pick? I'm having some doubts on how to set up my SVN stuff. First my situation: Programmer working alone on most stuff, outside access not needed (yet). I want: * *A speedy SVN, preferably free. *Private *Backup friendly *Somewhat hassle free *A l...
{ "language": "en", "url": "https://stackoverflow.com/questions/298235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Name Value pairs and fact tables I'm working on a star schema for analysis of posted form data. The site that the form data will be posted to is actually external to the site hosting the form, so only the data in the form will be available. I'm going to give the option to include some extra useful information with h...
{ "language": "en", "url": "https://stackoverflow.com/questions/298251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ms c++ get pid of current process Parts of my application are in C++ under windows. I need the process id for the current process. Any thoughts? A: Having grown accustomed to seeing yards and yards of code to accomplish seemingly straightforward tasks, I was pleasantly surprised at the directness of GetCurrentProc...
{ "language": "en", "url": "https://stackoverflow.com/questions/298257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Looking for a strong Build Management system My team works on a Medium sized product which takes about 2 hours to build on a single dual-core machine. As part of an effort to improve productivity I am looking for alternatives to improve our build process. Currently we build C++ code and .NET code using VS2005 soluti...
{ "language": "en", "url": "https://stackoverflow.com/questions/298259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do event handlers stop garbage collection from occurring? If I have the following code: MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null; Will pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow...
{ "language": "en", "url": "https://stackoverflow.com/questions/298261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "199" }
Q: How do I verify that my LINQ-to-SQL model matches the database schema? I am absolutely new to the .NET world, and started with C# on friday. I have some experience with database apps, though. We will go with LINQ-to-SQL for a medium scale project. I am used to generating my schema from classes and keep track of chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/298270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does the new 'dynamic' C# 4.0 keyword deprecate the 'var' keyword? When C# 4.0 comes out and we have the dynamic keyword as described in this excellent presentation by Anders Hejlsberg, (C# is evolving faster than I can keep up.. I didn't have much time to acquaint myself with the var keyword) Would I still need the...
{ "language": "en", "url": "https://stackoverflow.com/questions/298277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Built-in List that can be accessed by index and key Is it possible to create a list that can be access by either an index or a key? I am looking for a Collection type that already exists but has this facility, I want to avoid redefining the indexers A: There's a similar question at What is the best data structure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Limiting records returned by a sqldatasource, using session variable in where clause I have a web application which has a Sql Server database on the backend. As the site will be rolled out to different clients (or different virtual directories in IIS), each client derivative of the site will use the same backend. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/298286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: making pictures center horizontally in a layer I have the following code <html> <head> <title>Test</title> <style type="text/css"> <!-- body,td,th { color: #FFFFFF; } body { background-color: #000000; } #Pictures { position:absolute; width:591px; height:214px; z-index:1; le...
{ "language": "en", "url": "https://stackoverflow.com/questions/298288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I add an additional object to the results of a LINQ query? I have the following code that I need to add an additonal object to after the results have been retrieved from the databse. Any Ideas on how I might to this ? public IEnumerable<ProdPriceDisplay> GetShopProductsPrices() { //ProdPriceDisplay P...
{ "language": "en", "url": "https://stackoverflow.com/questions/298289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading a value from a file in a windows batch script I'm trying to read a value from a file and use it in a subsequent command. I have a file called AppServer.pid which contains the process id of my app server (just the number, it's not a properties file or anything like that). The app server is hanging, so I want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Roulette wheel selection algorithm Can anyone provide some pseudo code for a roulette selection function? How would I implement this: I don't really understand how to read this math notation.I want General algorithm to this. A: First, generate an array of the percentages you assigned, let's say p[1..n] and assum...
{ "language": "en", "url": "https://stackoverflow.com/questions/298301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Java generics - passing a collection of subtype to a method requiring a collection of base type How to do this in Java - passing a collection of subtype to a method requiring a collection of base type? The example below gives: The method foo(Map<String,List>) is not applicable for the arguments (Map<String,MyList>) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Starting JBoss from Eclipse Staring JBoss server from within Eclipse Ganymede gives me the following problem: "Server JBoss v4.0 at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor." The console shows JBoss has started in so and so mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/298312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Find files in git repo over x megabytes, that don't exist in HEAD I have a Git repository I store random things in. Mostly random scripts, text files, websites I've designed and so on. There are some large binary files I have deleted over time (generally 1-5MB), which are sitting around increasing the size of the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/298314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How do I relate one table to many different tables? I have a list of tables i.e. student, teacher, staff, dept. and so on and each of these tables have comments specific to them. Now one record in a table can have one or many comments that shows it's a one to many relation from any table to comments table. I don't k...
{ "language": "en", "url": "https://stackoverflow.com/questions/298319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to call a stored procedure from iReport? I'm trying to call a stored procedure that receives a parameter from the iReport plugin wizard of Netbeans 6.1, how can I successfully accomplish this task? Other technical details are: using MySQL 5.0.51a-17, and iReport designer 1.0. Thanks! Update: I'm voting this qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/298323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I remove unused CSS classes from my website project? My project has collected CSS entropy (unused classes) during its course of development. Now in order to keep the CSS file small, I want to remove all unused CSS references. But doing that manually involves searching for each class in the entire project. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/298325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Selecting particular columns in ADO using getstring When we use getstring to get data from a recordset (ADO) then it returns all the columns. If only certain columns are required, how do we modify the getstring statement? A: You can take a step back and build the recordset with only the fields (columns) that you wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/298326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firefox restarts Flash movie if enclosing DIV properties change I have a Flash movie embedded in some DIV. The trouble is that when I change any property of the enclosing DIV dynamically, Firefox (not other browsers) restarts/reinitializes Flash movie effectively resetting the whole progress (eg: file selection for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: .net click on image button not working in Internet Explorer but in Firefox I have written C# code for ascx. I am trying to send an email on click of image button which works in Mozilla Firefox but not in Internet Explorer. This function is called on button click: <%@ Control Language="C#" %> <%@ Import Namespace="Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/298346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading xml into flash movie hosted on IIS6 server, not working I have a flash file that loads an XML file at runtime. When the .swf file is run locally or on an Apache server it works fine but when hosted on an IIS6 based server the file won't load. Can anyone help with this? A: You may have file permission issue...
{ "language": "en", "url": "https://stackoverflow.com/questions/298347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Include ib_logfiles in backup? The short question: Is it safe skip ib_logfile* files while creating custom-made backup of MySQL installation with InnoDB engine used? Custom-made backup is just copy all (or subset of) /var/lib/mysql + /etc/my.cnf to safe place. As I know ib_logfile* files are recreated by MySQL on st...
{ "language": "en", "url": "https://stackoverflow.com/questions/298350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: c# How can I expand an item within a ListView to occupy multiple lines? Currently I have a ListView (using the Details View). I would like to implement the behaviour whereby when a user selects a single item (log entry) the log entry expands (from one line to multiple lines) to provide more detailed information abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/298359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC Beta 1 - Does It Support Strongly Typed View Data? In previous releases there were 3 ways to pass data from controller to view AFAIK (shown below). I want to use method (2) with MVC Beta 1, but I can't find the renderView method. So what's the new syntax (if it's still possible)? Thanks in advance. Ben....
{ "language": "en", "url": "https://stackoverflow.com/questions/298361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make SMTP authenticated in C# I create new ASP.NET web application that use SMTP to send message. The problem is the smtp was not authenticated from who send the message. How can I make SMTP authenticated in my program? does C# have a class that have attribute for enter username and password? A: Ensure...
{ "language": "en", "url": "https://stackoverflow.com/questions/298363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Changing java lookandfeel without modifying the application Is it possible to change java lookandfeel without modifying the program in a real-world environment? I know that theoretically the answer is yes. I also created demo applications and changed the lookandfeel even at runtime and it worked. But when I created ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can a function with 'varargs' retrieve the contents of the stack? Normally, in Delphi one would declare a function with a variable number of arguments using the 'array of const' method. However, for compatibility with code written in C, there's an much-unknown 'varargs' directive that can be added to a function...
{ "language": "en", "url": "https://stackoverflow.com/questions/298373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What are the key factors that ensure successful ASP.NET application scalability? When starting a new ASP.NET application, with the knowledge that at some point in the future it must scale, what are the most important design decisions that will allow future scalability without wholsesale refactoring? A: My Top three...
{ "language": "en", "url": "https://stackoverflow.com/questions/298377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to manage frequently modified production code? My project invovles me to make a lot of changes on the production code. The requirement keeps coming up and I need to make changes and deploy it as soon as possible. I sometimes end up creating patch work sort of code because some of the requirement would not fit in...
{ "language": "en", "url": "https://stackoverflow.com/questions/298380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get all named instances in a flash movie Is it possible to get a list of all instances with a name in a flash movie using actionscript 2. Like an array containing all named text areas, or all movieClip instances etc. I would like to get this so the designer can add or remove text areas etc. and the actionscript can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception Handling in classes and Code Behind with C# I'm a little bit stuck with a asp.net project that i'm doing! I have got a class that is called from the code behind and many of its function have no return type ie, being void. How does one do exception handling then??? Also, if the function within the class doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/298391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory management for .NET components used by unmanaged code When working in the unmanaged world, we have to make sure that we clean up after ourselves if we have allocated memory on the heap (e.g. by using the new keyword in C++); we also have to make sure that we AddRef COM components that are created using Create...
{ "language": "en", "url": "https://stackoverflow.com/questions/298397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to publish Asp.Net WebService with debug information? Starting with asp.net 2.0 the debug=true in the compilation section of the web.config file is deciding if the website/webservice will be compiled with debug information or not. But the compilation output is a lot of "gibberish" under the ASP.Net Temporary fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/298417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dump hidden (or minimized) X11 window I'd like to dump the contents of an X window. Like this: xwd -id | convert - capture.png ... which works quite well as long as the target window is not hidden (totally or partially behind other windows) or minimized. Any idea on how to do this? I guess we somehow have to send a...
{ "language": "en", "url": "https://stackoverflow.com/questions/298430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In an ASP.NET Web Setup Project, can I disable anonymous access in IIS? I have a really simple ASP.NET web application and a web setup project that deploys the project output and content files to a virtual directory in IIS. What I want is for the MSI to automatically disable Anonymouse Access for that virtual folder...
{ "language": "en", "url": "https://stackoverflow.com/questions/298432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WSH mapping drives leaves default path set I wrote the following javascript to put in my startup folder to work around some problems with mapping drives. Unfortunately it has the side effect of starting command prompts with H:\ as current directory. How can I get around this? var objNetwork = WScript.CreateObject(...
{ "language": "en", "url": "https://stackoverflow.com/questions/298435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is our bugtracking workflow so unique? We're currently using Mantis as our bugtracker, and we're pretty much sick and tired with it. The developers want more SVN integration, the customers want an easier system to work with. As such, we're looking for a new bugtracker and at the moment we're looking at Redmine. Howe...
{ "language": "en", "url": "https://stackoverflow.com/questions/298441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Looping in Django forms I've just started building a prototype application in Django. I started out by working through the Django app tutorial on the Django site which was pretty helpful, and gave me what I needed to get started. Now I have a couple of what I hope are very simple questions: I want to put a loop into...
{ "language": "en", "url": "https://stackoverflow.com/questions/298446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fibonacci coding Can anybody suggest a good book/paper/website/background reading about universal codes for integers and especially Fibonacci code (in the sense of http://en.wikipedia.org/wiki/Fibonacci_code)? Thanks! Edit: Thanks for the answers and the useful links so far! I am sorry if I have not made myself comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/298448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get ‘footer’ content on a master page to push down when main content doesn't fill a page I have the following code for my masterpage: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C/...
{ "language": "en", "url": "https://stackoverflow.com/questions/298449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mail merge in C# with n copies I just want to create a C# program which will read a word template and create n number of copies of it with mail merge feature.The data to replace is Name and Address the rest of the things in the template should remains the same. Can any one tell me how to do this ? A: You can use As...
{ "language": "en", "url": "https://stackoverflow.com/questions/298456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Milliseconds missing when getting a DateTime value from Excel using .Net Interop If I put a DateTime value into an Excel cell using Range.set_value through .Net COM Interop, and then retrieve the value of that same cell using Range.get_value, the Millisecond part of the value is not returned, though everything else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: which HTML element lost focus? in javascript, when I receive a focus event, how can I work out which element has lost focus? I'm trying to avoid having to put an onblur event handler on all elements within my web page. A: @pbrodka: the target/srcElement property would refer to the element with focus for onfocus ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/298459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firefox CSS: Given 2 divs, how can I float the *second* one to the right using static positioning? I'm working on a Youtube userstyle script that displays comments side by side with the video so you can watch the video and read the comments at the same time (what a marvelous idea - duh). You can see in the screensho...
{ "language": "en", "url": "https://stackoverflow.com/questions/298460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS2 Selectors and Style override This is the HTML: <div id="testBlue"> <span>hello</span> <span id="testGreen" class="testGreen">hello2</span> </div> If I have set in CSS: #testBlue span { color:Blue; } .testGreen, #testGreen { color:Green; } How can I override the general style in the second SPAN? I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I reliably determine the window handle of a given Outlook inspector window with WordMail turned on from inside a COM-Addin (Outlook <=2003)? [This code is called from within the Inspector.Activate event handler (first call), i.e. right before the inspector window is actually shown.] For "native" mail inspecto...
{ "language": "en", "url": "https://stackoverflow.com/questions/298466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What caching strategy would best suit this problem? First of all, let me say I am very new to rails, have been working with it for only a couple of days. My first application is a little different from traditional: on one of my model classes I have parts of data that is pulled from a database and other part that is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I disable visual styles for just one control, and not its children? I have a TabControl within a TabControl. I want the outer TabControl to show its tabs on the left. However, with Visual Styles enabled, left-aligned TabControls don't display properly. Can I disable Visual Styles for just the outer TabCont...
{ "language": "en", "url": "https://stackoverflow.com/questions/298486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Host a WPF control in activex instead of Win32 App I'm searching an example of an activex that contain a WPF control. I'm able to see the control during registration of activex in the test activex container but when I instantiate it i cannot see WPF but what is coded inside OnDraw. Any hint or example? A: Acording ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I close a form when a user clicks outside the form's window? I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form's window? A: With thank...
{ "language": "en", "url": "https://stackoverflow.com/questions/298491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Convert NVARCHAR to INT skipping non convertibles I need to query a database which is designed so what a NVARCHAR column keeps age of clients. I want group clients using GROUP BY age / 10 but when engine encounters some string like '20.10.1984' (someone entered his bithday instead of age), my query fails. The perc...
{ "language": "en", "url": "https://stackoverflow.com/questions/298493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bulk-amend the job step command in ALL sql server agent jobs I have many jobs that have a step to send 1 specific email out to a list of people. That list of reciepients is hardcoded in the step command and I need to remove one person from that list, in all jobs. How do I loop through ALL the jobs in the Sql...
{ "language": "en", "url": "https://stackoverflow.com/questions/298494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Developing and debugging a component inside FLA file with Flash CS4 I have created a small flash CS4 project that has a few custom components ( AS 3), communicating with each other. Is it possible to make a FLA file that points to these components in source format (as .AS files), without compiling these components ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you check for a #hash in a URL using JavaScript? I have some jQuery/JavaScript code that I want to run only when there is a hash (#) anchor link in a URL. How can you check for this character using JavaScript? I need a simple catch-all test that would detect URLs like these: * *example.com/page.html#anchor...
{ "language": "en", "url": "https://stackoverflow.com/questions/298503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "900" }
Q: Where can I get the JSONRequestError code? Following the JSONRequest proposal, I've found code for the JSONRequest object. However, this object depends on JSONRequestError, and the code for that is nowhere to be found. Anyone know where I can find the code? Thanks in advance! A: For such a highly spoke of and nicel...
{ "language": "en", "url": "https://stackoverflow.com/questions/298507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }