text
stringlengths
8
267k
meta
dict
Q: What do parentheses surrounding an object/function/class declaration mean? In the YUI library examples, you can find many uses of this construct: (function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, layout = null, ... })(); I think the last couple of parentheses are to execute the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/440739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: IE7 doesn't print full image? i have an jpg where the height is larger than a regular 8.5x11 piece of paper (the height is around 2000px) here is the link http://i39.tinypic.com/121d7ur.jpg so obviously when you try to print this picture its going to print on more than 1 piece of paper ....however when i try to prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/440743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Special Characters in WCF REST ATOM Feed I have a WCF ATOM Feed Service using the WCF REST Toolkit with the following UriTemplate [WebGet(UriTemplate = "{category}/?numItems={numItems}")] public Atom10FeedFormatter GetFeedByCategory(string category, int numItems) Most cases work, the edge is when I try to load the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSeparator with Title How do I create a horizontal JSeparator with a title label in Java Swing? Something like this: --- Title XYZ -------------------- A: I found a solution: SwingX JXTitledSeparator. We already use SwingX in our project. I didn't know that SwingX provides a titled separator. @Bombe Thank you fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/440745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I get rid of the "Close" button in SharePoint? I need to give access to users to some Reports History (Reporting Services snapshots lists, under http://SEVERNAME//Reports/_layouts/ReportServer/ReportHistory.aspx?list={REPORTID} but they shouldn't access and navigate the Report Library to do so. A Links List ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XslCompiledTransform vs. XslTransform and how about an OOM for good measure? So for a while I've been using XslCompiledTransform because that's what Microsoft tells me I need to use as XslTransform is deprecated. Recently I had to use it with a transform that has nearly 100,000 lines (generated xsl - of course). W...
{ "language": "en", "url": "https://stackoverflow.com/questions/440755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find the processor queue length in linux Trying to determine the Processor Queue Length (the number of processes that ready to run but currently aren't) on a linux machine. There is a WMI call in Windows for this metric, but not knowing much about linux I'm trying to mine /proc and 'top' for the information. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Repository Pattern - MVC storefront Have been looking at the MVC storefront and see that IQueryable is returned from the repository classes. Wondering if you are not using LINQ does it makes sense to return that object? In the case of LINQ in makes sense because of deferred execution, so adding filtering in the se...
{ "language": "en", "url": "https://stackoverflow.com/questions/440757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Openssl command line troubles Edit: Haven't solved my problems, but I've moved on to new and more exciting problems. Leaving this here in case anyone has and insightful that'll help someone who stumbles on to this question in the future. Hi, I'm attempting to send an encrypted email from php to outlook. As s...
{ "language": "en", "url": "https://stackoverflow.com/questions/440762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can i remove the sidebar in movable type? im building a new side with movable type. And i want to remove the sidebar for a few pages, but not for all the pages. Any idea? Thanks. A: In the archive template -> page <mt:Var name="hide_sidebar" value="1"> Thanks A: More in depth answer.... This code sets the var...
{ "language": "en", "url": "https://stackoverflow.com/questions/440770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any reason for numeric rather than int in T-SQL? Why would someone use numeric(12, 0) datatype for a simple integer ID column? If you have a reason why this is better than int or bigint I would like to hear it. We are not doing any math on this column, it is simply an ID used for foreign key linking. I am c...
{ "language": "en", "url": "https://stackoverflow.com/questions/440779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: junit & java : testing non-public methods JUnit will only test those methods in my class that are public. How do I do junit testing on the ones that are not (i.e., private, protected)? I can test them by not using junit, but I was wondering what the junit standard method was. A: One school of thought about unit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: Can linq2sql do this without a lot of custom code? Just dipping my toes into Linq2sql project after years of rolling my own SQL Server DB access routines. Before I spend too much time figuring out how to make linq2sql behave like my custom code used to, I want to check to make sure that it isn't already "built" in b...
{ "language": "en", "url": "https://stackoverflow.com/questions/440788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: validating HTML I am beginner in HTML and CSS. I just designed web site and tried to validate but my HTML end up having some "geovisit();" and it wont validate. I do not know how to get rid of it. Help me? Thank you Guest A: A quick Google search for geovisit suggests that the non-validating code is being added ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I know how many rows a Perl DBI query returns? I'm trying to basically do a search through the database with Perl to tell if there is an item with a certain ID. This search can return no rows, but it can also return one. I have the following code: my $th = $dbh->prepare(qq{SELECT bi_exim_id FROM bounce_info W...
{ "language": "en", "url": "https://stackoverflow.com/questions/440799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: "freeze" one column in flex datagrid I'm using a datagrid to display a column of date ranges and several columns of data. I'd like to make the first column (the date ranges) fixed; i.e. that column stays in place when the user scrolls the other columns. That way, the dates column will always be visible as the user...
{ "language": "en", "url": "https://stackoverflow.com/questions/440804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Crash writing simple WSO2/C++ web service client Has any been able to successfully run with a client using the WSO2/C++ web services package? I've tried just about everything I can think of yet every time I try to run a very simple client I get a crash. Here's some sample code from one of their example programs......
{ "language": "en", "url": "https://stackoverflow.com/questions/440827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: console application - object model - database persmission I'm trying to run a console application that uses the SharePoint Object Model. I'm getting the error Cannot open database "dbname" requested by the login. The login failed. Login failed for user 'DOMAIN\userid'. Some place I have read that the user must have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compare and Contrast NHibernate and OpenAccess from Telerik Have you used the OpenAccess ORM from Telerik? How does it compare to NHibernate? When should I consider using it over NHibernate? A: I've not used it but one benefit obvious to me, is OpenAccess is supported by Telerik, where as nHibernate is supported ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ASP.net: dynamically load web user control I have a asp.net web page with place holder control and Menu control when user select an item from the menu. It will dynamically load the control based on menu item's value. I got the control loaded but if i click on the a link button or anything on the web user control (.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/440854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ideal button Size My coworker and I constantly argue about button sizes. I like to have buttons that have a fixed size (ie if minimized/maximized the button sizes dont change,other controls may but not buttons), width= text in it and height=27 -30 pixels. My co-worker prefers buttons that are only 20 pixels in heig...
{ "language": "en", "url": "https://stackoverflow.com/questions/440855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ASP.NET MVC - Complex Objects and Forms So let's say we have a domain object such as the following public class Person { public string Name { get; set; } public IList<PhoneNumber> PhoneNumbers {get; set; } public IList<Address> Addresses { get; set; } } The Person is not valid until a name, phone numbers, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to output an Excel *.xls file from classic ASP I have a number of generated html tables that I need to output as an Excel file. The site is codded in classic ASP. Is this possible? Could it be done by somehow using the Open Office libraries? EDIT: Thus far, I have tried some of the suggestions, but it seems to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: .NET - How can I get more information for an error in my program? Error: "The thread 0x566967f6 has exited with code 0 (0x0)" Maybe you can help me... I am writing a program in Windows Mobile that connects to a mail-server and retrieves data from a POP3-server. I am using a third-party (free) socket available from h...
{ "language": "en", "url": "https://stackoverflow.com/questions/440896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I allow my .net program to compile C# code while running? I've seen a couple .net applications that allow you to select a C# .cs source file and the program itself will compile this code and run it. How is this done? A: CodeDOM is your friend A: It probably uses the CSharpCodeProvider class in the Microso...
{ "language": "en", "url": "https://stackoverflow.com/questions/440897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I create a PDF file in classic ASP? Is there any way to generate PDF files from classic ASP? I have a bunch of user-entered data that needs to be turned into a PDF that the user can download. How can I do this? OpenOffice allows exporting documents to PDF, so could this somehow be leveraged? A: I played aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/440905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can you connect to a MS Access database from Ruby running on a Mac? I'm pretty sure the answer is "no" but I thought I'd check. Background: * *I have some legacy data in Access, need to get it into MySQL, which will be the DB server for a Ruby application that uses this legacy data. *Data has to be processed and...
{ "language": "en", "url": "https://stackoverflow.com/questions/440908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How many multiple "Eclipse Projects" is considered too excessive for one actual development project? I'm currently working on a project that contains many different Eclipse projects referencing each other to make up one large project. Is there a point where a developer should ask themselves if they should rethink t...
{ "language": "en", "url": "https://stackoverflow.com/questions/440931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Reading Command Line Arguments of Another Process (Win32 C code) I need to be able to list the command line arguments (if any) passed to other running processes. I have the PIDs already of the running processes on the system, so basically I need to determine the arguments passed to process with given PID XXX. I'm w...
{ "language": "en", "url": "https://stackoverflow.com/questions/440932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can we get DynamicData working with EFPocoAdapter? My team is hoping to use the EFPocoAdapter, but are also hoping to use the DynamicData tools with it but are having some issues. We basically added a "Dynamic Data Entities Web Application" project to the EFPocoAdapter Northwind sample solution (I am using the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/440943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server: Query fast, but slow from procedure A query runs fast: DECLARE @SessionGUID uniqueidentifier SET @SessionGUID = 'BCBA333C-B6A1-4155-9833-C495F22EA908' SELECT * FROM Report_Opener WHERE SessionGUID = @SessionGUID ORDER BY CurrencyTypeOrder, Rank subtree cost: 0.502 But putting the same SQL in a stored p...
{ "language": "en", "url": "https://stackoverflow.com/questions/440944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "315" }
Q: Complex Searching with NHibernate I am curious about what methods do you use for complex searching with NHibernate ? I am using Ayende's What is yours ? Thanks for your advices and answers. A: If we have a complex dynamic search, we will usually construct a SearchParameter object and then pass that into a method th...
{ "language": "en", "url": "https://stackoverflow.com/questions/440947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# concurrency, locking and dictionary objects I have a bunch of DB entities that are loaded into DB objects. The same DB entity may be loaded into more than DB object. Periodically a DB entity will require special processing. This processing must be performed by one thread at a time. Locking is in order here. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parameterised query breaks when doing LIKE condition. Why? So, I have a method that performs a parametrised LIKE query. The method takes in the search parameter/value in and then it is added to the command ready for the query. It is not working. It should work, and when I code the value to search for directly into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/440962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: REST web service accepting a POST using Restlet - Best Practice I have my resource and they typical overridden method to handle POST requests. public void acceptRepresentation(Representation rep) { if (MediaType.APPLICATION_XML.equals(rep.getMediaType())) { //Do stuff here } else { //complain! }...
{ "language": "en", "url": "https://stackoverflow.com/questions/440989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AddWithValue-method (C#) does nothing I'm currently writing a class to handle all database-activity in my application, and so I've come to the method that performs UPDATE-queries. As of now I'm returning and displaying the content of the commandtext to check it, and it seems fine: UPDATE news SET title = @title, new...
{ "language": "en", "url": "https://stackoverflow.com/questions/440999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Possible to do a MySQL foreign key to one of two possible tables? Well here's my problem I have three tables; regions, countries, states. Countries can be inside of regions, states can be inside of regions. Regions are the top of the food chain. Now I'm adding a popular_areas table with two columns; region_id and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "212" }
Q: Exist a generic library of validators for obj-c? I wonder if already exist a generic library of validator suitable for a iPhone project (or better, bussines objects) for obj-c. Things like: Validator.IsNotEmpty.. Validator.IsValidEmail.. Validator.IsValidZipCode.. Validator.IsValidRegex.. Validator.IsInRange.. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replacing spaces with underscores in JavaScript? I'm trying to use this code to replace spaces with _, it works for the first space in the string but all the other instances of spaces remain unchanged. Anybody know why? function updateKey() { var key=$("#title").val(); key=key.replace(" ","_"); $("#url_k...
{ "language": "en", "url": "https://stackoverflow.com/questions/441018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "446" }
Q: In Oracle, why do public synonyms become invalid when a table partition is dropped can someone tell me why the following behavior occurs (Oracle 10.2): SQL> create table part_test ( i int primary key, d date ) partition by range (d) (partition part_test_1 values less than (to_date(' 2 3 4 5...
{ "language": "en", "url": "https://stackoverflow.com/questions/441021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fastest way to convert datatable to generic list I have a data tier select method that returns a datatable. It's called from a business tier method that should then return a strongly typed generic List. What I want to do is very similar (but not the same as) this question: How do you convert a DataTable into a gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/441023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is your ultimate development environment for working with Dojo widgets? I'm new to working with the Dojo lib and want to know: what's the ultimate development environment to work on Dojo widgets with? I'm hoping for something with at least JavaScript syntax checking, and code completion support for the standar...
{ "language": "en", "url": "https://stackoverflow.com/questions/441037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET UpdatePanel Error htmlfile: Unknown runtime error, updatePanelElement.innerHTML=rendering I get this error when debugging my ASP.NET web application after I trigger an UpdatePanel: htmlfile: Unknown runtime error and "updatePanelElement.innerHTML=rendering" is highlighted in a ScriptResource.axd file. A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/441038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Enterprise Service/Data Buses for a new company's infrastructure? I'm designing a system for a new business and am in a unique "carte blanche" position. Like every business it plans to last a long time and grow to an indeterminate size. Is it worth while going whole hog and developing a full enterprise architectur...
{ "language": "en", "url": "https://stackoverflow.com/questions/441042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Check if remote file is well-formed XML with PHP I have a PHP-driven site that includes an XML stock feed, which is remotely served from ASP (i.e. the XML feed url is of the order: http://remote.com/client.asp). As the feed is often unavailable (by which I mean the site returns an ASP error) I'd like to check if the...
{ "language": "en", "url": "https://stackoverflow.com/questions/441044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WCF Security: What is best for intranet with mostly java clients? The data is not sensitive, I am really only considering security so that I can keep track of who is calling our system. I thought of just having each 'client' send an 'api-key' in the request and cross-check against a list of valid keys. I could then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Quick way to change a property on many forms in a Delphi project? I thought there was something in GExperts to do this, but I can't see it if there is. I have to change the SCALED property (from the default of TRUE to FALSE) in each form in a project that contains about 100 different forms. Because the default value...
{ "language": "en", "url": "https://stackoverflow.com/questions/441060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Efficient layout for a distributed python server? If I wanted to have Python distributed across multiple processors on multiple computers, what would my best approach be? If I have 3 eight-core servers, that would mean I would have to run 24 python processes. I would be using the multiprocessing library, and to shar...
{ "language": "en", "url": "https://stackoverflow.com/questions/441061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c++ push_back, non const copy constructor I have a class that i want to push_back into a deque. The problem is when i push back i need the original object to be changed thus i need a non const copy ctor. Now if i implement that my const copy ctor gets called. If i removed the const ctor i get an compile error about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ruby style question : blocks or inheritance? I have some classes that will do something based on some conditions . The conditions are sent as parameters to some methods . My questions is related to ruby coding style : * *should the conditions be sent as lambdas/blocks , or as some objects that inherit from a cond...
{ "language": "en", "url": "https://stackoverflow.com/questions/441071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Double quotes in vim/ubuntu? I apologize profusely for the incredibly newbish question I'm about to ask, but for some reason, my brain's locked up: I'm trying to code in C on gvim on a virtual machine running Ubuntu, but my Hello World throws compiler errors which I suspect has to do with the quotes being different ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: boost lite? I heard there is a light implementation of boost where its only smart pointers and a few other very basic stuff. I think i heard it doesnt use any OS functions either. I tried searching for it but found nothing. Does anyone know what it is called or an implementation of boost styled smart pointers that d...
{ "language": "en", "url": "https://stackoverflow.com/questions/441078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: "Cannot resolve symbol" error in Visual Studio 2008? I have started working on some code left behind by previous developers, and I'm having a strange issue with it. The code is C# in ASP.NET 2.0, and I'm using ReSharper 4.1 in Visual Studio 2008. This code compiles just fine and works in my Web app, but ReSharper is...
{ "language": "en", "url": "https://stackoverflow.com/questions/441079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: what is the best strategy to retrieve form data? client ajax / server Recently I was introduced to Ajax form data handling, including the use of jTemplates to guarantee some repeatability and jQuery, a great library. But I'm a little confused. With the form-user interaction, I use Ajax calls and deal with pure HTML...
{ "language": "en", "url": "https://stackoverflow.com/questions/441084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Alternatives to IIS for Windows to run ASP.NET Are there any alternatives to IIS for Windows to run ASP.NET? CassiniEx seems pretty old? A: Apache 2 can do this I think. At least it can while running on Linux. You will need a plugin for it though. Mod_aspdotnet is your friend :-) A: UltiDev has released a new vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/441085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Downloading files using Adobe AIR When I download a file using URLStream and write to a file using FileStream, where else do the file gets cached? It definitely gets cached somewhere, as the second time I try to download the same file, it comes down like a lighting.. A: AIR is using the operating systems networking...
{ "language": "en", "url": "https://stackoverflow.com/questions/441090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get DateTime For Another Time Zone Regardless of Local Time Zone Regardless of what the user's local time zone is set to, using C# (.NET 2.0) I need to determine the time (DateTime object) in the Eastern time zone. I know about these methods but there doesn't seem to be an obvious way to get a DateTime object for a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Why am I getting 'System.__ComObject' from my LDAP property? I'll be the first to admit that this is cut and past programming. I've never looked at AD before, and really don't understand it. I suppose that's my next study... Anyways, This is some test code, which should display the expiry date -- either as somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/441110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to add additional information to a many-to-many relation? I'm writing a program to manage orders and then print them. An order is an object containing the ordering person, the date and the products this person orders. I'd like to add the amount of a certain product one orderer. E.g. 3 eggs, 2 breads. Is there a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: F# error: Wrong number of parameters I am puzzling over some code given to me in a prior SO question I had. Code here At this line, I get an error saying I have an invalid number of parameters. I don't completely understand what the error is, since all the research I do comes up with this being a correct application...
{ "language": "en", "url": "https://stackoverflow.com/questions/441121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Do I Bypass MS Access Startup When Using OLE? I am trying to do an automated xml export from an access database using C# and OLE. Everything is working perfectly except that the startup form is shown and won't close without user intervention. Here's what I am doing so far: objAccess = CreateObject("Access.Appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/441126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help moving nUnit tests into separate project Everything works fine when the unit tests class is part of the main project (TestAccount). Every article I've read about unit testing recommends putting the tests in a separate project, so I... * *added another project (TestAccount.UnitTests) to the solution ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to compile a simple Qt and c++ application using g++ on mac os x? I am trying to use Qt for a project in school but am running into problems. I started following the tutorials and I am running into Makefile problems. Most of the tutorials say to run qmake -project, then qmake and finally make. But when I try thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/441128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Using "with" statement for CSV files in Python Is it possible to use the with statement directly with CSV files? It seems natural to be able to do something like this: import csv with csv.reader(open("myfile.csv")) as reader: # do things with reader But csv.reader doesn't provide the __enter__ and __exit__ meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/441130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Change cloned hidden field value I am cloning a table row using JQuery and, amongst other things, the row contains a hidden field. I want to change the value of the hidden field when I clone the row. The form field: <input type="hidden" name="items.Index" id="items.Index" value="0" /> The JQuery: var id = document....
{ "language": "en", "url": "https://stackoverflow.com/questions/441138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF Service to Create Video Thumbnails I am trying create a WCF service that leverages the WPF MediaPlayer on the server to generate thumbnails for a video that a user uploads. I found a lot oif info on how to render a frame and save it to a file. But the problem is the key event MediaOpened (actually none of the ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/441141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight - Make same size as browser frame Is there a way to scale a silverlight app to 100% width and 100% height of the browser frame that the application is embedded in? I'm aware of the full screen capabilities, I'd like it to sit nicely inside the browser. A: Using Width=”Auto” Height=”Auto” on your LayoutR...
{ "language": "en", "url": "https://stackoverflow.com/questions/441143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you define how objects are compared in JavaScript I want to define a JavaScript class, Foo. Foo = function(value){ this.value = value; }; I will create "instances" of my Foo: foo1 = new Foo(1); foo2 = new Foo(1); and I want my instances of Foo to be comparable with each other using the standard == equ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to subtract a day from a date? I have a Python datetime.datetime object. What is the best way to subtract one day? A: If your Python datetime object is timezone-aware than you should be careful to avoid errors around DST transitions (or changes in UTC offset for other reasons): from datetime import datetime, ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/441147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1106" }
Q: update progress between pages I have a website that uses the ajax UpdateProgress and UpdatePanel controls. I know that I can't use this same method to show a process indicator between pages. But, the user's would like to see that some work is being done while they are going to a new link. What are some ways to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/441149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is Java Swing serializable? When I create Swing apps for remote users, I just create jar files and create a WebStart file to let users download the app and then run it. I haven't heard of application servers serving up JFrames, etc, like JSPs. Was that the original intent? A: Persistence. If you want to have no...
{ "language": "en", "url": "https://stackoverflow.com/questions/441151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to convert code from C# to PHP I have a business logic classes that are written in pure C# (without any specific things from this language) and I would convert this code into PHP. I can write my own parser, but think if I could someone did it before me. Could you please tell me where can I find this kind of con...
{ "language": "en", "url": "https://stackoverflow.com/questions/441161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Migrating MySQL to PostgreSQL - what features not visible in SQL code will be important? We're migrating MySQL to PostgreSQL. I can easily audit the schema and the SQL statements used throughout the (REALbasic) program. Most of the SQL is composed by building string variables. I already know about needing to replac...
{ "language": "en", "url": "https://stackoverflow.com/questions/441168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Avoid Beep sound when enter keypress in a textbox When you create an aspx page as this one: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/441185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does Microsoft Provides a PKCS #11 provider that connects to its own MS CryptoAPI? I'm looking to run some tests using the PKCS #11 interface and was wondering if Microsoft provided a software based implementation the provides PKCS #11 functionality? Rather then waiting for a HSM to arrive and be properly configured...
{ "language": "en", "url": "https://stackoverflow.com/questions/441194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why Java needs Serializable interface? We work heavily with serialization and having to specify Serializable tag on every object we use is kind of a burden. Especially when it's a 3rd-party class that we can't really change. The question is: since Serializable is an empty interface and Java provides robust serializa...
{ "language": "en", "url": "https://stackoverflow.com/questions/441196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: "Proper" way to store binary data with C++/STL In general, what is the best way of storing binary data in C++? The options, as far as I can tell, pretty much boil down to using strings or vector<char>s. (I'll omit the possibility of char*s and malloc()s since I'm referring specifically to C++). Usually I just use a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Sticking all variables in a struct under a class or leave them in the class? I have a class which is quite Maths intensive and performs a number of formulas/equations on an object (object not being a class in my code but a real world object). Anyway, I was wondering, under my class should I move all the properties a...
{ "language": "en", "url": "https://stackoverflow.com/questions/441206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Singleton DAL class Shouldn't classes in DAL (customerDAL) be singleton? Since my controllers (customerController) exposes "Shared Subs", then on every call, there is no need to create a new DAL object if already existed. Correct? Thanks A: If you have a web site singleton dal objects are very dangerous because eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/441214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are Enterprise Level DataContracts a Good Practice? Is it a good practice to define DataContracts in an enterprise level assembly and then reference them in WCF service projects as opposed to defining them at the individual WCF service solution level? All of the WCF examples that I have seen have avoided that topic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Weblogic wlserver memory setting? When we start up Weblogic (8.1) from the command line, we’re passing it memory usage arguments of the form “-Xms256m -Xmx1024m” which gives it a GB to play with. When we’re starting it up from ANT, we’re using a “wlserver” task instead which, I’m guessing, does a live launch of it....
{ "language": "en", "url": "https://stackoverflow.com/questions/441237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaBeans alternatives? I hate the JavaBeans pattern with a passion that burns like the fire of a thousand suns. Why? * *Verbose. It's 2009. I shouldn't have to write 7 LOC for a property. If they have event listeners then hold on to your hat. *No type-safe references. There is no type-safe way to reference a pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/441240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What will happen with Office VBA? The company I work at is run on Excel sheets. Several of those sheets have some form of VBA code embedded. I'm doing some maintenance on them, but it feels really dated. What's going to happen to Office VBA? Why hasn't Microsoft released an embedded .NET macro language for Office? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Getting a Global setting in C # Taking this article on classes and structs as an example: http://msdn.microsoft.com/en-us/library/ms173109.aspx namespace ProgrammingGuide { // Class definition. public class MyCustomClass { // Class members: // Property. public int Number { get; se...
{ "language": "en", "url": "https://stackoverflow.com/questions/441251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In SharePoint, what is the easiest way to create a custom list 'schema.xml' file? Like many other SharePoint users, I've had to create a custom list definition. After much trouble, I've managed to create one (I think, let me get through all the errors first), but is there a "basic" schema out there I can start with,...
{ "language": "en", "url": "https://stackoverflow.com/questions/441252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Py2Exe - "The application configuration is incorrect." I've compiled my Python program using Py2Exe, and on the client's computer we've satisfied all the dependencies using dependency walker, but we still get "The application configuration is incorrect. Reinstalling the application may correct the problem." I'm al...
{ "language": "en", "url": "https://stackoverflow.com/questions/441256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the core classes In C#? Which class hierarchy is most necessary in order to get an excellent grasp of C#, for the aspiring C# desktop applications programmer? Not just the totally obvious stuff. EDIT: To clarify, I mean, that as I am learning C#, I would like to know what are the classes I should be acqua...
{ "language": "en", "url": "https://stackoverflow.com/questions/441264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to setup an Object Creation Interface "rule" in C#? The general rule is that I want to say, "T has a method with a String parameter which will return List." Put verbosely, we might call the interface ICanCreateListOfObjectsFromString. A possible application might be search. It feels like it'd be nice to have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/441265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to parse a DateTime I'm trying to parse a date/time string using DateTime.ParseExact. It works everywhere, except on one machine - it just will not parse on that machine. The question is: Why? What could be different on that machine so that it will cause this behaviour? Here are some things that I've already ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unknown exception while deserializing using simple XML I am deserializing data using Simple XML in Java, but i get an exception telling me: protokolsimulering.model.Terminal.<init>() This is my serializing code: public void saveSimulationState(String simulationFile) { try{ Strategy strategy = new CycleS...
{ "language": "en", "url": "https://stackoverflow.com/questions/441272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to embed a Java control on a C# winforms control? Can I put a Java control (SWT, Swing, ...) on a C# control? I know it's possible with web controls but I don't like this way. A: I wrote examples: - Java component embedding in .NET GUI, - .NET WinForm Component embedding in Java GUI. You can find them in the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/441275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firefox 3 adds spacing to spans with display:inline-block In my test, I have 2 spans both set to display:inline-block with a border for visibility. Firefox renders space between each span. Even setting margin:0;padding:0; doesn't do anything to fix this. My expectation when setting the inline span element to display...
{ "language": "en", "url": "https://stackoverflow.com/questions/441279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Passing information to usercontrol in ASP.NET MVC I know how pass viewdata into a user control which is like this <% Html.RenderPartial("someUserControl.ascx", viewData); %> This is what i want to do: In the current situation i have events calendar and each section of my events calendar is a wired to a user contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/441282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you use namespaces? Namespace are pretty cool: with them, you can organize your libraries and you can avoid name conflicts. Well, this is the intention, I think. I think that a lot of people do not use it like it should be used... Every day, I see 95 char long namespaces scattering the code and hiding the rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/441289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LinqToSQL and the exception " ExecuteReader requires an open and available Connection." I have a collection called dbUsers of type IQueryable These are pulled from a linqtosql database context i.e. IQueryable<Data.LinqToSQL.User> dbUsers = DBContext.Users Calling ToList on this object: IList<Data.LinqToSQL.User> us...
{ "language": "en", "url": "https://stackoverflow.com/questions/441293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 401 Returned for every 5th call in an ASP.NET MVC application that returns JSON This is nuts. I have an ASP.NET MVC application using Windows authentication that, amongst other things, interacts with a number of ExtJs Javascript components by returning JSON data to them. The problem is that even after the user is su...
{ "language": "en", "url": "https://stackoverflow.com/questions/441294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Copy SVN Repository I have an SVN repo at a hosted SVN service which I need to move to our locally hosted SVN service. The host offers an export feature, which I've used. But how do I take that exported file and import it into a new repository? EDIT I tried using svnadmin load, but got an error message: % svnadmin l...
{ "language": "en", "url": "https://stackoverflow.com/questions/441297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: When I instantiate an ASP.NET usercontrol at runtime, why does it ignore the ASCX file? I've created a regular ASP.NET user control, including the ascx file. For example: MyUserControl.ascx MyUserControl.ascx.cs Then I try to render the control manually, at runtime, using code similar to the following code: var tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/441299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL syntax question What do the following mean in an sql sytax: * *(+) after a condition eg: "WHERE table1.col1 = table2.col2 (+) *What does /* */ after select signify , i vaguely remember it being a suggestion to the optimizer, but where can i find more reference on this eg: select /* */ ... A: * *The (+) me...
{ "language": "en", "url": "https://stackoverflow.com/questions/441302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to delete files instantly on Windows XP? On my Mac and any other Unix machine, when I delete a file by any of the several available methods (rm on the command line, drag to trash, press delete key) it usually happens instantly. Occasionally it takes a few seconds if it's a huge file. On Windows, when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/441304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }