text
stringlengths
8
267k
meta
dict
Q: How do you inherit StringBuilder in vb.net? I want to add my own member to the StringBuilder class, but when I go to create it IntelliSense doesn't bring it up. public class myStringBuilder() Inherits System.Text.[StringBuilder should be here] .... end class Is it even possible? thanks A: No, StringBuilder...
{ "language": "en", "url": "https://stackoverflow.com/questions/179223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What scares you the most about the integrated IDE of most modern Smalltalks? As I'm riding the wave of resurgence of Smalltalk (especially because many Ruby-on-Rails people are rediscovering Smalltalk and seeing Seaside as their next upgraded web framework), I get questions like "yeah, but how do I use my favorite e...
{ "language": "en", "url": "https://stackoverflow.com/questions/179238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Reloading configuration without restarting application using ConfigurationManager.RefreshSection Has anyone got this working in a web application? No matter what I do it seems that my appSettings section (redirected from web.config using appSettings file=".\Site\site.config") does not get reloaded. Am I doomed to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How do I make IEditableObject.EndEdit atomic? If I have an Address object which implements IEditableObject, I might have EndEdit implementation like this: public void EndEdit() { // BeginEdit would set _editInProgress and update *Editing fields; if (_editInProgress) { _line1 = _line1Editing; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Hibernate try to delete when I try to update/insert? In my app I have these Hibernate-mapped types (general case): class RoleRule { private Role role; private PermissionAwareEntity entity; // hibernate-mapped entity for which permission is granted private PermissionType permissionType; // enum @Man...
{ "language": "en", "url": "https://stackoverflow.com/questions/179259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: IE8 loses cookies when opening a new window after a redirect I'm using Internet Explorer 8 beta 2. * *Client performs POST on http://alpha/foo *Server responds with redirect to http://beta/bar *Client performs GET on http://beta/bar *Server responds with redirect to http://beta/baz and sets cookie *Client p...
{ "language": "en", "url": "https://stackoverflow.com/questions/179260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the optimum limit for URL length? 100, 200+ I have an ASP.Net 3.5 platform and windows 2003 server with all the updates. There is a limit with .Net that it cannot handle more than 260 characters. Moreover if you look it up on web, you will find that IE 6 fails to work if it is not patched at above 100 charc...
{ "language": "en", "url": "https://stackoverflow.com/questions/179264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to change text contained in an XML file using Python? Let's say I have an existing trivial XML file named 'MyData.xml' that contains the following: <?xml version="1.0" encoding="utf-8" ?> <myElement>foo</myElement> I want to change the text value of 'foo' to 'bar' resulting in the following: <?...
{ "language": "en", "url": "https://stackoverflow.com/questions/179287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: HTML Frameset alignment Say I have 3 frames in a frameset arranged in 3 rows. Frames 1 and 3 are from my site and frame 2 (the central one) is from an external website. Is there a cunning way to force the browser to centre align the data in frame 2? I've found a small work-around which uses a frameset within a frame...
{ "language": "en", "url": "https://stackoverflow.com/questions/179288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting up pipelines reading from named pipes without blocking in bash I'm looking to call a subprocess with a file descriptor opened to a given pipe such that the open() call does not hang waiting for the other side of the pipe to receive a connection. To demonstrate: $ mkfifo /tmp/foobar.pipe $ some_program --comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/179291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Should I Learn NHaml? Should I learn NHaml? What does it provide me over a classic ASP.NET MVC view? What are the pros and cons? Are you using it via the MVC Contrib project? I have been seeing more and more about it. For example... I saw a blog post by Matthew Podwysocki using ASP.NET MVC, NHaml, and F#! A: It sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/179293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I indicate a validation requirement to users of my class? I'm implementing a class that wraps around an xml document with a very strictly defined schema. I don't control the schema. One of the properties in the class is for an element value that the schema indicates must match a certain regular expression....
{ "language": "en", "url": "https://stackoverflow.com/questions/179295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do shell text editors work? I'm fairly new at programming, but I've wondered how shell text editors such as vim, emacs, nano, etc are able to control the command-line window. I'm primarily a Windows programmer, so maybe it's different on *nix. As far as I know, it's only possible to print text to a console, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/179299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is O/R Mapping worth it? The expressiveness of the query languages (QL) provided with ORMs can be very powerful. Unfortunately, once you have a fleet of complex queries, and then some puzzling schema or data problem arises, it is very difficult to enlist the DBA help that you need? Here they are, part of the team th...
{ "language": "en", "url": "https://stackoverflow.com/questions/179311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Downloading Docx from IE - Setting MIME Types in IIS I am sure there is a simple answer to this one. I have a docx file that I get an error when trying to download(document cannot be found).... .doc is fine .txt is also fine. I am sure this is just an iis setting, the permissions on the server are all the same for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/179315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to embed a png in an Adobe Illustrator or Expression Design file to create XAML I have an AI file. I paste it into Expression Blend and then export the XAML for use in my WPF project. Works for most of my files, but some export the XAML plus a seperate png file. What can I do so that the png is embedded into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Conflict between Google util.js and ASP.NET AJAX? I'm trying to use Google's jstemplate as a client-side templating engine on an ASP.NET page, and it seems to be conflicting with ASP.NET AJAX. The problem is not jstemplate.js but util.js, which it needs as a support file. I've isolated the problem as follows:: <%@ P...
{ "language": "en", "url": "https://stackoverflow.com/questions/179334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix precision of variable In c# double tmp = 3.0 * 0.05; tmp = 0.15000000000000002 This has to do with money. The value is really $0.15, but the system wants to round it up to $0.16. 0.151 should probably be rounded up to 0.16, but not 0.15000000000000002 What are some ways I can get the correct numbers (ie ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to manage external dependencies which are constantly being modified Our development uses lots of open-source code and I'm trying to figure out what the best way to manage these external dependencies. Our current configuration: * *we are developing for both linux and windows *We use svn for our own code *ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/179338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Clearing all cookies with JavaScript How do you delete all the cookies for the current domain using JavaScript? A: After a bit of frustration with this myself I knocked together this function which will attempt to delete a named cookie from all paths. Just call this for each of your cookies and you should be close...
{ "language": "en", "url": "https://stackoverflow.com/questions/179355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "408" }
Q: How can I connect to an Oracle database as SYS using an ADO connection string? I am trying this: Provider=MSDASQL.1;Persist Security Info=False;User ID=sys;Password=pwd;Initial Catalog=DATABASE;Data Source=OdbcDataSource;DBA Privilege=SYSDBA But I get the error: [Microsoft][ODBC Driver Manager] Driver's SQLSetConne...
{ "language": "en", "url": "https://stackoverflow.com/questions/179365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bad Database Design - Is my table too large? I have a poorly designed database. One of the most important tables has 11,000+ entries. We would like to expand our system, and I am wondering if this table grew to 5x its size, would this be a problem? It's 15360 kB in size... if that matters. I'm using phpMyAdmin, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/179368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I abort the execution of a Python script? I have a simple Python script that I want to stop executing if a condition is met. For example: done = True if done: # quit/stop/exit else: # do other stuff Essentially, I am looking for something that behaves equivalently to the 'return' keyword in the body ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "194" }
Q: Explain this mod_rewrite rule Can anyone explain what this mod_rewrite rule is doing? I'm trying to comment the file, but the code seems to state the opposite of what I think it's doing # Enable rewriting of URLs RewriteEngine on # Allow specified file types to be accessed # Thing to test = URL # Condition = not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/179405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java2D: Is it always safe to cast Graphics into Graphics2D Assuming we always use a Sun JVM (say, 1.5+), is it always safe to cast a Graphics reference to Graphics2D? I haven't seen it cause any problems yet and, to my understanding, the Graphics class is legacy code but the Java designers didn't want to change th...
{ "language": "en", "url": "https://stackoverflow.com/questions/179415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How to add to a textbox the red line (like bad spelling in Word)? How can we produce the effect of the red line under a bad spelling word like the image below : alt text http://img505.imageshack.us/img505/7253/options285x395rg9.th.png Update I do not want to use Google or whatever spell program. I would like to know...
{ "language": "en", "url": "https://stackoverflow.com/questions/179423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: 401 when POSTing using HttpWebRequest (yes I used Credentials) I'm using HttpWebRequest to pull down XML, and POST data back to a 'WebService' and getting a 401 on the POST. When creating the requests I've added Credentials and now tried a credentials cache and setting PreAutenticate to True, still getting the 401!...
{ "language": "en", "url": "https://stackoverflow.com/questions/179425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to resolve a Java Rounding Double issue Seems like the subtraction is triggering some kind of issue and the resulting value is wrong. double tempCommission = targetPremium.doubleValue()*rate.doubleValue()/100d; 78.75 = 787.5 * 10.0/100d double netToCompany = targetPremium.doubleValue() - tempCommission; 708.75...
{ "language": "en", "url": "https://stackoverflow.com/questions/179427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: How do I make a tag cloud in ASP.NET? I'm venturing into web programming for the first time and would like a nice way to display a frequency indicator of some data, in the form of a tag cloud. For example, pretend I have some simple data of three types of pets: Dog, Cat, Monkey. There are 5 Dogs, 27 Cats and 101 Mon...
{ "language": "en", "url": "https://stackoverflow.com/questions/179428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to change an Eclipse default project into a Java project I checked out a project from SVN and did not specify the project type, so it checked out as a "default" project. What is the easiest way to quickly convert this into a "Java" project? I'm using Eclipse version 3.3.2. A: You can do it directly from eclips...
{ "language": "en", "url": "https://stackoverflow.com/questions/179439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "147" }
Q: What content encoding does a Perl CGI script use by default? I'm modifying a mature CGI application written in Perl and the question of content encoding has come up. The browser reports that the content is iso-8859-1 encoded and the application is declaring iso-8859-1 as the charset in the HTTP headers but doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which online eBook reference library do you use? I use Safari Books Online as a reference library and to evaluate book before I decide to buy a paper copy, but it doesn't include any Apress books. Is there a better alternative you would recommend? Edit: Safari Books Online now includes Apress titles which makes it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/179447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: configure knotify to execute a custom command on KDE, there's a possibility to execute a command when some event happen. for example one can execute a script when kmail receives a mail or when a akregator fetches a new feed. I want to execute the script on a way I can retrieve the mail/feed subject in my script. is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make use of .NET objects from within Excel VBA? Can VBA code instantiate and use .NET objects? The specific class I'm interested in is System.IO.Compression.GZipStream. For Info GAC is the .NET Global Assembly Cache A: VBA can make use of any .NET objects that are exposed to COM. I don't know if GZipStrea...
{ "language": "en", "url": "https://stackoverflow.com/questions/179452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: CodeRush - Export type to file missing? I'm currently evaluating CodeRush and one thing that I liked most when reading the featurelist was the "Export type to new file" or similar functionality. Now that CodeRush runs within my IDE, I cannot find this functionality. Is there a plug-in required for it or am I just mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/179459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Correct behavior for interface methods that can't be implemented If I have a class that needs to implement an interface but one or more of the methods on that interface don't make sense in the context of this particular class, what should I do? For example, lets say I'm implementing an adapter pattern where I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/179460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Executing and then Deleting a DLL in c# I'm creating a self updating app where I have the majority of the code in a seperate DLL. It's command line and will eventually be run on Mono. I'm just trying to get this code to work in C# on windows at the command line. How can I create a c# application that I can delete a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Focus on a Control When Switching Tabs What I want to do is set the focus to a specific control (specifically a TextBox) on a tab page when that tab page is selected. I've tried to call Focus during the Selected event of the containing tab control, but that isn't working. After that I tried to call focus during the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I export a Silverlight 2.0 DataGrid to html? I need to export a SL DataGrid to HTML so my users can then print it. Can someone put me in the right direction? Upate: After reading Rob's answer I am changing my question. Instead of Silverlight Grid to HTML, I now just want to export it to PDF. Has anyone used a...
{ "language": "en", "url": "https://stackoverflow.com/questions/179472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Learning resources - stack machines, JVM especially I'm curious if anyone have any really good tutorials/articles/books for learning about stack machines in general, and the JVM in particular. I know these ones: http://www.artima.com/insidejvm/applets/EternalMath.html http://www.ibm.com/developerworks/ibm/library/it...
{ "language": "en", "url": "https://stackoverflow.com/questions/179478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Creating local users on remote windows server using c# Provided I have admin access, I need a way to manage (Create, modify, remove) local accounts in a remote machine from an ASP.NET client. I'm clueless in how to approach this. Is WMI a possibility (System.Management namespace)? Any pointers? A: Give this a try: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to validate a property of a custom object in a databinding scenario (i.e. BindingList)? When you a set a property's value, you can either validate before or after updating the internal value. If validating before, you could throw an exception if the new value is invalid. The object is then always in a valid sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/179485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET Attributes List Is there a list somewhere on common Attributes which are used in objects like Serializable? Thanks Edit ~ The reason I asked is that I came across an StoredProcedure attribute in ntiers ORMS. A: Additionally, you can create your own attributes. If you are searching through someone else's code, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: F# changes to OCaml F# is derived from OCaml, but what major items are missing or added? Specifically I'm curious as to whether the resources available for learning OCaml are also useful to someone who wants to learn F#. A: The main differences are that F# does not support: * *functors *OCaml-style objects *po...
{ "language": "en", "url": "https://stackoverflow.com/questions/179492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "132" }
Q: Isn't saying "C/C++" wrong? I've seen a lot of questions around that use improperly the expression "C/C++". The reasons in my opinion are: * *Newbie C and C++ programmers probably don't understand the difference between the two languages. *People don't really care about it since they want a generic, quick and "...
{ "language": "en", "url": "https://stackoverflow.com/questions/179500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: CSS - Is there a way to get rid of the selection rectangle after clicking a link? Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely? A: Do you mean the dotted outline of a target? Try: :focus { outline: 0; } This would remove all focus ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/179510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Does Google Chrome display pages the same as Safari? Given that Chrome and Safari use webkit has anyone yet found anything that renders differently on Chrome than Safari? Is there any reason at the moment to test sites on both, or would testing Safari be sufficient for right now? A: Google Chrome also uses an earl...
{ "language": "en", "url": "https://stackoverflow.com/questions/179512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What is the proper size for a sequence-generated primary key? Currently, primary keys in our system are 10 digits longs, just over the limit for Java Integers. I want to avoid any maintenance problems down the road caused by numeric overflow in these keys, but at the same time I do not want to sacrifice much system ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refactoring XSD Schemas I'm working in a project which needs to clean up some third party XSD Schemas and I want to do some refactoring of common elements in them. There is any suitable tool to automate this? I tried by sfactor from XMLBeans but it doesn't work (it throws a weird exception which even Google can't an...
{ "language": "en", "url": "https://stackoverflow.com/questions/179538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In PHP, for what reasons can I not include a variable from external file? If I have $var defined in Page1.php and in Page2.php I have //Page2.php include('Page1.php'); echo $var; For what reasons will it not print the value of $var to the screen? The files are in the same directory so paths shouldn't be the issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/179539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What to keep in mind while migrating SSIS packages from SQL Server 2005 to 2008? What are best practices for moving/exporting SQL Server Integration Services Packages from a SQL Server 2005 DB over to 2008? What are some of the security concerns? A: It turns out that migrating from 2005 to 2008 isn't as ugly a...
{ "language": "en", "url": "https://stackoverflow.com/questions/179542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the return value of feof() on a closed file? for a FILE* stream, if I read as much data as possible, feof(stream) returns me non-zero. Then, If I fclose stream, it feof(stream) will continue to returns me a non-zero value? Is it GUARANTEED? A: Depending upon the library implementation, calling fclose() will...
{ "language": "en", "url": "https://stackoverflow.com/questions/179543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do I have to be a Scrum Master to manage the agile scrums? I am sure to become a scrum master could really add value to the process I am following, however I believe that the background of the area of the application I am working on help more to get better planning and scheduling done for the project A: I just have...
{ "language": "en", "url": "https://stackoverflow.com/questions/179548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Will app_offline.htm stop current requests or just new requests? Like the title says, If I place an app_offline.htm in the application root, will it cut off currently running requests, or just new ones? A: From ScottGu's blog: Basically, if you place a file with this name in the root of a web application direc...
{ "language": "en", "url": "https://stackoverflow.com/questions/179556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Does CLI mean anything other than "command line interface"? According to Wikipedia, on the Comparison of programming languages page, it says that F# uses CLI. Does that mean that F# is designed for the purpose of making command-line applications and not graphical applications, or is there another meaning of CLI? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/179559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ExitCodes bigger than 255, possible? If yes, on which operating system, shell or whatever? Consider the following java program (I'm using java just as an example, any language would be good for this question, which is more about operation systems): public class ExitCode { public static void main(String args[]) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/179565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: .NET Open Source CODE for SFTP? I googled a lot, and could not find a single open source implementation of SFTP in .NET. All i got is 3rd party component for SFTP. can anyone help me with SFTP implenetation in .NET ? A: See this question and shrpssh, which was the accepted answer. A: You may want to check out Gran...
{ "language": "en", "url": "https://stackoverflow.com/questions/179569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can/how do you add a circle of references without breaking RI? I'm primarily interested in pgsql for this, but I was wondering if there is a way in any RDBMS to do an insert operation, without disabling and re-enabling any FOREIGN KEY or NOT NULL constraints, on two tables that refer to each other. (You might think...
{ "language": "en", "url": "https://stackoverflow.com/questions/179582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do a LINQ Outer Join of a SubTable? I have a data tables with this type of setup. Table A AID AName --------------------- 1 A_Name1 2 A_Name2 3 A_Name3 Table B BID BName --------------------- 10 B_Name1 20 B_Name2 30 B_Name3 Table C AID BID --------------------- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an MSBuild task that will extract the path give from a file name? I use the following to get a list of project files that need to be compiled. Each project is stored in a subdirectory of the projects directory. <ItemGroup> <dprs Include="c:\projects\**\*.dpr" /> </ItemGroup> Is there a task that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Distribution of Code with Visual Studio Express Products I installed Visual Studio (Web Developer in this case) Express Edition and was reading through the EULA. One thing that did not jump out at me was what I was allowed to use the software for (private, commercial, etc). Does anyone know if you are allowed to se...
{ "language": "en", "url": "https://stackoverflow.com/questions/179596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TTS Engine Recommendation Can anyone recommend a reliable and cost effective TTS engine for use in a telephony application? Requirements are: * *Must support the Windows platform *Must have rich language support including support for accents (ie US English vs GB English) Nice to have: * *Integration with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/179598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any VB6 to C# migration tool? Does anyone know a way to convert from VB6 code to C#? Is there a tool that can do this for me? Is there any migration process that I can follow to do this? A: Open your project with a new version of Visual Studio, convert your code to VB.Net and then download .Net Reflector t...
{ "language": "en", "url": "https://stackoverflow.com/questions/179605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Strange Hibernate Cache Issue We are using Hibernate 3.1 with Spring MVC 2.0. Our problem occurs when data is updated on the database directly (not in the application). We use a Filter to filter a collection of results by whether the orders are opened or closed. If we change an order on the DB to be closed, the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/179617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the difference between a schema namespace and an assembly reference in WPF? Why is it that there are two kinds of references in xaml. One looks like this: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" But mine look like this: xmlns:WPFToolKit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/179619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What kind of programming environment do you use to write your Windows-based Games? I've used XNA and Visual Studio 2005 integrated with Flash. I'm curious to see what environments other people use and prefer. A: I developed some cross-platform 2D games (Windows as well) and used C++ with Geany and SDL. I find SDL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to trim a string in SQL Server before 2017? In SQL Server 2017, you can use this syntax, but not in earlier versions: SELECT Name = TRIM(Name) FROM dbo.Customer; A: I assume this is a one-off data scrubbing exercise. Once done, ensure you add database constraints to prevent bad data in the future e.g. ALTER T...
{ "language": "en", "url": "https://stackoverflow.com/questions/179625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: Optimize Frustum Culling i am writing a game in C++ and have a level consisting of many seperate meshes, each with their own vertex buffer. i am using vmmlib ( brilliant free gl compat. vector/matrix library ) to create my frustum culler and testing it against the bounding sphere of every mesh in the level. sadly my...
{ "language": "en", "url": "https://stackoverflow.com/questions/179643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get the integer value of a char in C++? I want to take the value stored in a 32 bit unsigned int, put it into four chars and then store the integer value of each of these chars in a string. I think the first part goes like this: char a = orig << 8; char b = orig << 8; char c = orig << 8; char d = orig << 8;...
{ "language": "en", "url": "https://stackoverflow.com/questions/179653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NSMutableArray destruction I have an array NSMutableArray with happy objects. These objects viciously turn on (leak) me whenever I try to clear the array of all the objects and repopulate it. It's allocated in the init function like so self.list = [NSMutableArray array]; The different methods I have used to clear i...
{ "language": "en", "url": "https://stackoverflow.com/questions/179665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: ActionScript 3.0 using closures for event handlers I tried doing this: root.addEventListener("click", function () { navigateToURL(ClickURLRequest,"_self"); }); And it does add the event listener. I like using closures because they work well in this situation, however, removing the event listener ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I put a WebResponse into a memory stream? What is the best way to get a file (in this case, a .PDF, but any file will do) from a WebResponse and put it into a MemoryStream? Using .GetResponseStream() from WebResponse gets a Stream object, but if you want to convert that Stream to a specific type of stream, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/179676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can you make use of the add-in framework in .NET 3.0? There are some updates with .NET 3.0 concerning how to create and use add-ins for your own applications. I read about some "pipeline" you have to create for the communication between add-in and host-application but couldn't find further information about it. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is C++ CLI a superset of C++? Would a C++ CLI compiler be able to compile some large sets of C++ classes without modifications? Is C++ CLI a superset of C++? A: technically no, but depending how standard the C++ code is, you'll probably be just fine. when you get into windows stuff you may run into issues. I com...
{ "language": "en", "url": "https://stackoverflow.com/questions/179684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Would you use C++/CLI if supported like C# & VB.NET? I've always had a thing for C++/CLI. Maybe because not many developers use it... or just because it's different. Suppose Microsoft fully supported C++/CLI as they do VB.NET and C# (ie. LINQ, WPF, etc.). Would you use it? If not, why? A: It's all about using the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get the name of a class as a string in C# Is there a way to take a class name and convert it to a string in C#? As part of the Entity Framework, the .Include method takes in a dot-delimited list of strings to join on when performing a query. I have the class model of what I want to join, and for reasons of refactor...
{ "language": "en", "url": "https://stackoverflow.com/questions/179700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Adding dummy Column to strongly typed dataset I am writing a site that uses strongly typed datasets. The DBA who created the table made gave a column a value that represents a negative. The column is 'Do_Not_Estimate_Flag' where the column can contain 'T' or 'F'. I can't change the underlying table or the logic tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/179706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I find the Rect of wrapped text on an iPhone? Can anybody recommend a good method for determining the Rect of some wrapped text on an iPhone? I've tried all the built-in methods for NSString in the 2.1 SDK to no avail. The size methods never return sizes that allow me to completely fit wrapped text in my c...
{ "language": "en", "url": "https://stackoverflow.com/questions/179708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the href attribute for a hyperlink using jQuery How can you change the href attribute (link target) for a hyperlink using jQuery? A: Use the attr method on your lookup. You can switch out any attribute with a new value. $("a.mylink").attr("href", "http://cupcream.com"); A: href in an attribute, so y...
{ "language": "en", "url": "https://stackoverflow.com/questions/179713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1442" }
Q: Average difference between dates in Python I have a series of datetime objects and would like to calculate the average delta between them. For example, if the input was (2008-10-01 12:15:00, 2008-10-01 12:25:00, 2008-10-01 12:35:00), then the average delta would be exactly 00:10:00, or 10 minutes. Any suggestions on...
{ "language": "en", "url": "https://stackoverflow.com/questions/179716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: is there something like alternate data streams on any linux filesystem? On Windows NTFS there is a nice but mostly unused feature called "Alternate Data Streams" (ADS) which I recently used in a hobby-dev project. On Mac HFS+ there is also a similarly nice but mostly unused feature called "named forks". I am thinki...
{ "language": "en", "url": "https://stackoverflow.com/questions/179720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: What is the best way of implementing assertion checking in C++? By that I mean, what do I need to do to have useful assertions in my code? MFC is quite easy, i just use ASSERT(something). What's the non-MFC way? Edit: Is it possible to stop assert breaking in assert.c rather than than my file which called assert()? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What are some good resources on 2D game engine design? I'm messing around with 2D game development using C++ and DirectX in my spare time. I'm finding that the enterprisey problem domain modeling approach doesn't help as much as I'd like ;) I'm more or less looking for a "best practices" equivalent to basic game eng...
{ "language": "en", "url": "https://stackoverflow.com/questions/179735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I decompile a .NET EXE into readable C# source code? I wrote a C# application for a client a couple of years ago, but I no longer have the source code. All I have is the EXE that I deployed on the client's PC. Is there a way I can generate C# source code from the EXE? A: Reflector is no longer free in gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/179741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "285" }
Q: How to associate all textbox controls on a form with the same event handler VB 2008. I have several text boxes on a form and I want each of them to use the same event handler. I know how to manually wire each one up to the handler, but I'm looking for a more generic way so if I add more text boxes they will automati...
{ "language": "en", "url": "https://stackoverflow.com/questions/179742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why does HttpServlet implement Serializable? In my understanding of Servlet, the Servlet will be instantiated by the Container, its init() method will be called once, and the servlet will live like a singleton until the JVM shuts down. I do not expect my servlet to be serialized, since it will be constructed new whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/179743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Speeding Up Java This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together: * *Firstly: Given an established Java project, what are some decent ways to speed it up beyond just plain in-code optimization? *Secondly: When writing a program from scratch in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can I specify a JPA compliant persistence.xml file on the java command line? I've got an UberJar with all my java classes, but want to execute this jar with an external persistence.xml file. Per the specification, Hibernate (or any other JPA provider) looks for the persistence.xml file in any META-INF folder that's...
{ "language": "en", "url": "https://stackoverflow.com/questions/179748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call Javascript function and return value from ASP .NET Lets say on my page I have this function: function ReturnFoo(bar) { return bar.toString() + "foo"; } Now, I would like to have this called from ASP .NET, hopefully with the ASP .NET AJAX framework, as I am already using it in this codebase (I have alread...
{ "language": "en", "url": "https://stackoverflow.com/questions/179752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: An open-source license that doesn't let users compile the application unless they've purchased it? I've been developing GPL'd software for years, but now I need a more restrictive license. This is for a commercial application, and I want to share my source code with the whole world, regardless of whether they've pur...
{ "language": "en", "url": "https://stackoverflow.com/questions/179764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MS Access questions - Scalability / indexing / transactions A few questions on MS Access databases - Size: Are there limits to the size of an access database? The reason i ask is that we have an access database that has a few simple tables. The size of the db is about 1GB. When I do a query on it, i see it taking ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What regex will match text excluding what lies within HTML tags? I am writing code for a search results page that needs to highlight search terms. The terms happen to occur within table cells (the app is iterating through GridView Row Cells), and these table cells may have HTML. Currently, my code looks like this (r...
{ "language": "en", "url": "https://stackoverflow.com/questions/179779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: High speed graphing control for .NET (or MFC)? I need to write a digital oscilloscope type application. There are many great static graphing controls out there, but I need something that can graph 16 traces processing 4000 samples per second. Is anyone aware of a high speed graphing control for .NET? I'll even tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/179787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to Reset a Working folder VSS 2005 In Visual Source Safe 6.0, you could "reset" a working folder by setting it to a blank string. This meant that the working folder would be determined by the working folder of the parent. How do I do this in Visual Source Safe 2005? A: This can't be done in the normal VSS 2005...
{ "language": "en", "url": "https://stackoverflow.com/questions/179791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Visual Studio 2008 Design Surface Error: "The operation could not be completed. Invalid formatetc structure." In a VS2008 web site project, I have a page open in split view. I try to drag an Infragistics web control onto the page's design surface. Nothing happens. I try to drag same onto the htmlz. Dialog box with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java RMI Tutorial - AccessControlException: access denied (java.io.FilePermission Yesterday I tried to get started with Java RMI. I found this sun tutorial (http://java.sun.com/docs/books/tutorial/rmi/index.html) and started with the server implemantation. But everytime I start the pogram (the rmiregistry is running...
{ "language": "en", "url": "https://stackoverflow.com/questions/179799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Crossbrowser equivalent of explicitOriginalTarget event parameter Does anyone know of crossbrowser equivalent of explicitOriginalTarget event parameter? This parameter is Mozilla specific and it gives me the element that caused the blur. Let's say i have a text input and a link on my page. Text input has the focus. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What is the best way to detect and store the timezone the client of a web app is in? I have a multi-timezone web application that stores all of the datetime values in UTC in the database, when actions happen on the server, I can easily convert the time into UTC. However, when a client enters a time or time span, wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/179834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Bulk Row Transfer between Oracle Databases with a Select Filter Basically, I'm trying to selectively copy a table from one database to another. I have two different [Oracle] databases (e.g., running on different hosts) with the same schema. I'm interested in a efficient way to load Table A in DB1 with the result of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/179839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integrating with Great Plains, best way? I can't find much information around the web about it. Has anyone used both eConnect and the Dynamics web services to interact (read/write) with Great Plains. I am looking for the pros and cons of both approaches. This product will be installed and configured on various sites...
{ "language": "en", "url": "https://stackoverflow.com/questions/179840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }