text
stringlengths
8
267k
meta
dict
Q: How to get the current directory in a C program? I'm making a C program where I need to get the directory that the program is started from. This program is written for UNIX computers. I've been looking at opendir() and telldir(), but telldir() returns a off_t (long int), so it really doesn't help me. How can I get...
{ "language": "en", "url": "https://stackoverflow.com/questions/298510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "215" }
Q: How do you display the "cannot connect" dialog in windows mobile when a webservice URL is unreachable? On windows mobile when there is no internet connection and I try to browse the web using internet explorer i get cannot connect information at the top of the screen. It says cannot connect with current connection s...
{ "language": "en", "url": "https://stackoverflow.com/questions/298511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET Treeview control supporting drag & drop? Can anybody recommend a treeview component for ASP.NET that supports drag & drop (between it's own nodes - it's for a content management system to rearrage the pages). Don't mind if it's open source or commercial (can't quite stretch to the treeview from Telerik thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/298519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: tomcat 5.5 - problem with reading resource files I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar and has some resource files (textual files with strings and configuration parameters) located under its WEB-INF directory. Tomcat 5.5 runs on ubuntu linux. The resource file is read with...
{ "language": "en", "url": "https://stackoverflow.com/questions/298521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WPF UC in Winforms occasionally has an odd border to the left / visually corrupted I have a WPF user control I created that is used to show the state of tasks in my UI. I get the odd report back that the control sometimes has a nasty looking border to the left and I cannot reproduce it. The control looks like this (...
{ "language": "en", "url": "https://stackoverflow.com/questions/298524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a good PHP script I can use as a poll? What is a good free PHP script to use as a poll for a website? I'd need a simple script to show on the web page with the standard multiple option vote + bar chart graph. Also an admin interface with add / edit / delete poll would be required. A: I have used Advanced Po...
{ "language": "en", "url": "https://stackoverflow.com/questions/298529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to build EAR/WAR for Websphere Application Server by Eclipse? IBM Rational Application Developer is very slow and has many problems. I tried to use ant scripts to build EAR/WAR files for Websphere Application Server but it did not work. A: If Ant can't find the WAS tasks, then it is likely that the WAS API's ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/298534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP's new input_filter does not read $_GET or $_POST arrays In PHP 5.2 there was a nice security function added called "input_filter", so instead of saying: $name = $_GET['name']; you can now say: $name = filter_input (INPUT_GET, 'name', FILTER_SANITIZE_STRING); and it automatically sanitizes your string, there is...
{ "language": "en", "url": "https://stackoverflow.com/questions/298535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Generating thumbnails using PHP causes bad image quality $sourcePath = 'images/'; // Path of original image $sourceUrl = ''; $sourceName = 'photo1.jpg'; // Name of original image $thumbPath = 'thumbs/'; // Writeable thumb path $thumbUrl = 'thumbs/'; $thumbName = "test_thumb.jpg"; // Tip: Name dynamically $thumbWidth...
{ "language": "en", "url": "https://stackoverflow.com/questions/298554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLMembershipProvider - source code Where can I find the source code for SQLMembershipProvider (.NET2.0)? Is it available? A: The source code has been released. See ScottGu's blog for further details A: The source code can be find here It is .msi installer. It will install the code samples in c:\Program Files\AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/298556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Ajax based username availability check Anyone have examples for creating a new user registration form where the web application checks for username availability via making an ajax call on the form and returning available or not on the same page without a full page post? Something similar to new user registration on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows XP or later Windows: How can I run a batch file in the background with no window displayed? I know I have already answered a similar question (Running Batch File in background when windows boots up), but this time I need to launch a batch: * *from another batch, *without any console window displayed, *w...
{ "language": "en", "url": "https://stackoverflow.com/questions/298562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: Word Automation in C#. Error while using SaveAs I am getting the following error when trying to Save as Document Object while trying to implement a word automation in C#: System.Runtime.InteropServices.COMException (0x80020005): Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) at Mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/298563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL won't maintain character information while importing I'm trying to import a large SQL file; created by mysqldump on one server, then converted with iconv; using these commands: $ mysqldump -uxxx -p xxx > data.sql $ iconv -f UTF-8 -t ISO-8859-1//TRANSLIT data.sql data.iconv.sql I noticed that the "\x91" in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/298568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the .NET Framework usable on Win98? I need to write a little tool for a customer to be run on Windows 98. Since this is a very small project I'd hope that I could avoid having to go native C++ and use C#. The .net Framework 2.0 download claims to support Windows 98. Are there any caveats or hitches to be aware of...
{ "language": "en", "url": "https://stackoverflow.com/questions/298569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can I Write AddIn to MS Word which was turn on another AddIn? I Have a problem with my custom Addin to word because sometimes, MS Word was disabled my addin, and I need to write another AddIn, which Was enabled to turn - on/off my first AddIn. Is it possible? sorry for my English :( A: I agree with divo, your firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/298571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overriding a member variable in C++ I have run into a bit of a tricky problem in some C++ code, which is most easily described using code. I have classes that are something like: class MyVarBase { } class MyVar : public MyVarBase { int Foo(); } class MyBase { public: MyBase(MyVarBase* v) : m_var(v) {} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Subsonic Join issue For those of you who are decent with subsonic! TblNewsCollection col = new Select().From(Tables.TblNews) .InnerJoin(Tables.TblContent) .Paged(currentPage, pageSize) .OrderDesc(TblContent.Columns.PubDate) .ExecuteA...
{ "language": "en", "url": "https://stackoverflow.com/questions/298580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I guess a checksum algorithm? How can I figure out the CRC algorithm if a given code + CRC string is given? I have got several strings consisting of code + matching CRCs but don't know how to calculate the CRC in question so that I could produce more code strings. Here are some samples (16bit code + 4bit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best way to detect if a COM component is installed I have a COM interop assembly, and I would like to check from a .NET application whether the component I'm about to create is installed on the machine. I would like to provide a nice error message if it is not installed. Put the instantiation into try-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/298592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java: `static` Methods When I call a static method like: Something.action(); Since a instance isn't created how long will the Class of the static method be held in memory? If I call the same method will the Class be reloaded for each call since no instance exists? And are only individual static methods loaded when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CSS Best Practice about ID and Class? I've been dipping into SitePoint book concerning CSS. The thing that struck me about the examples was the use of ID as a CSS selector. Some bits of CSS design I've done, I've always found it easier and more versatile to use Class as the selector. Maybe its a .Net thing as we don...
{ "language": "en", "url": "https://stackoverflow.com/questions/298607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: What do these WndProc codes mean? I'm trying to make a window that closes when you click outside it, and at the moment I'm looking into doing that by handling the WndProc function. None of the messages I'm getting so far seem useful, but there are a few I don't understand at all. What do codes 0x0118, 0xC123, 0xC12...
{ "language": "en", "url": "https://stackoverflow.com/questions/298626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What/Where is the "Symbol Browser" in Visual Studio 2008? OK, so this is the background... I'm going to manually fix the multiple resource header files in our project. That involves fixing this value, among other things: #define _APS_NEXT_SYMED_VALUE ... that is automatically written to in (normally) resource.h. It'...
{ "language": "en", "url": "https://stackoverflow.com/questions/298638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to compress http responses using mongrel I have a rails app that uses heavily js (over 1MB total). I'd like to compress them in order to reduce the overall load time of the site. I did a fast search and found that most browsers accept compressed content. I'd like to know what can I do to make my rails app send c...
{ "language": "en", "url": "https://stackoverflow.com/questions/298644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Oracle to Excel - PL/SQL export procedure I’m writing pl/sql procedure that exports data from Oracle to Excel. I need data formatting so I can’t use CSV. I’ve already tried with XML but it generates too large files when I want to export e.g. 70000 rows with 50 columns (almost 300 MB!!!). That’s why I decided to use...
{ "language": "en", "url": "https://stackoverflow.com/questions/298648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Remove from cache specific user data on Session_End I'm inserting something in the cache when the user does a login. Now I want to delete that from the cache when the user's session expires. HttpContext is null .. so I don't know for which user the session expired. How can I go about finding this ? EDIT: unfortunat...
{ "language": "en", "url": "https://stackoverflow.com/questions/298653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SqlMembershipProvider administration Before I embark on writing my own solution to this issue, can anyone point me to a pre-built solution for managing standard user details when using the SqlMembershipProvider? The solutions I have found through Google seem to either be half baked 'example solutions' or unsuitable...
{ "language": "en", "url": "https://stackoverflow.com/questions/298659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting XML Schema from MS SQL Database Is it possible to generate a XML Schema of a Database programatically with .Net and C#? I want to look into NDbUnit but for big databases it would not really be feasible to make a Schema manually? A: Is it possible to generate a XML Schema from a Database? It sure is, XM...
{ "language": "en", "url": "https://stackoverflow.com/questions/298660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Obout "onCallbackError" problem I'm using the obout grid control in c# and not to sure how to throw an error from the code behind! I am catching the error in the code behind with a try catch block (which i can see it doing using break points in visual studio) which I am creating on purpose from the database(creating...
{ "language": "en", "url": "https://stackoverflow.com/questions/298661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I find the location of exe that runs as a windows service in run-time? How can I find the location of exe that runs as a windows service in run-time? A: Programmatically or with a tool? In the latter case, I recommend using Sysinternals' Process Explorer: it shows all running processes, including services, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pattern for splitting, traversing and tracking objects can anyome help me find an elegant design for splitting, traversing and tracking objects. The diagram below shows an object with an initial size of 100 which is spilt into two (50, 75) then one of the child objects (75) is subsequently split into three (25, 25 ,...
{ "language": "en", "url": "https://stackoverflow.com/questions/298677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GetModifiedMembers returns empty array The code below always return an empty array from GetModifiedMembers(object) but dx.GetChangeSet().Updates.Contains( foo ) returns true. DataContext dx = new DataContext( string.Empty ); MockLinqDataObject foo = new MockLinqDataObject(); dx.GetTable( foo.GetType() ).Attach( foo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net MVC Ajax form with jQuery validation I have an MVC view with a form built with the Ajax.BeginForm() helper method, and I'm trying to validate user input with the jQuery Validation plugin. I get the plugin to highlight the inputs with invalid input data, but despite the invalid input the form is posted to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/298691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Are there any limitations in IIS on Windows XP? For the project I'm working on I noticed that file transfer* speed is really bad if I'm using IIS FTP and HTTP services. I know that the last thing I should think is "it's a Windows bug", but the fact that simply by using IIS on Windows Server or by changing IIS on tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/298692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows ToolBar-dockable application How to create a windows toolbar-dockable application - like Winamp Desk Band - in .NET? A: It sounds like you want to create an AppBar. I suggest you first check out the AppBar implementation included with the Genghis package. I couldn't say if it's any good since I never used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Transactional replication What is the maximum number of publishers one can create on one Database on that same database server itself? Also, Vice - versa , What is the maximum number of subscribers one can create on one Database on that same database server itself? A: Why would you have the subscribers on the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging with command-line parameters in Visual Studio I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there s...
{ "language": "en", "url": "https://stackoverflow.com/questions/298708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "591" }
Q: What's the best CVS client for Windows? We're currently using WinCVS but it's slow and has no merge dialog. I'm looking for something like Eclipse's Team Synchronize (so people can see what they'll get before they update). What do you suggest? TortoiseCVS with WinMerge? Note: OSS preferred :) A: On windows, definit...
{ "language": "en", "url": "https://stackoverflow.com/questions/298712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Things to keep in mind while creating a ASP.NET Mobile Web Application I am creating a mobile web application using asp.net. The application must support iPhone, Blackberry and Windows Mobile Platform. What are the low things which should be taken care of while developing this application. Is there any best practice...
{ "language": "en", "url": "https://stackoverflow.com/questions/298718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: please break this synchronization algorithm P1 and P2 are processes or nodes in a cluster. f1 and f2 are their flags. Supposing strong memory model, and that both processes may be restarted at any moment, and that restarting a process clears it's flag, here's an algorithm that I came up with and couldn't yet break,...
{ "language": "en", "url": "https://stackoverflow.com/questions/298721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple "order by" in LINQ I have two tables, movies and categories, and I want to get an ordered list by categoryID first and then by Name. The movie table has three columns ID, Name and CategoryID. The category table has two columns ID and Name. I tried something like the following, but it didn't work. var movies...
{ "language": "en", "url": "https://stackoverflow.com/questions/298725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1777" }
Q: Accessing Excel Spreadsheet with C# occasionally returns blank value for some cells I need to access an excel spreadsheet and insert the data from the spreadsheet into a SQL Database. However the Primary Keys are mixed, most are numeric and some are alpha-numeric. The problem I have is that when the numeric and alph...
{ "language": "en", "url": "https://stackoverflow.com/questions/298726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: java.util.List is an interface, and JAXB can't handle interfaces I seemed to get the following exception when trying to deploy my application: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/298733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: What is the difference between a schema and a table and a database? This is probably a n00blike (or worse) question. But I've always viewed a schema as a table definition in a database. This is wrong or not entirely correct. I don't remember much from my database courses. A: From the PostgreSQL documentation: A d...
{ "language": "en", "url": "https://stackoverflow.com/questions/298739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "213" }
Q: How do I send a cross-domain POST request via JavaScript? How do I send a cross-domain POST request via JavaScript? Notes - it shouldn't refresh the page, and I need to grab and parse the response afterwards. A: Check the post_method function in http://taiyolab.com/mbtweet/scripts/twitterapi_call.js - a good exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/298745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "613" }
Q: How do I select text nodes with jQuery? I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best way to do that? A: jQuery.contents() can be used with jQuery.filter to find all child text nodes. With a little twist, you can find grandchildren text nodes as well. No recur...
{ "language": "en", "url": "https://stackoverflow.com/questions/298750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "404" }
Q: regex compare two numbers can i somehow compare two numbers in regex? i want regex that is correct for 10-12, but incorrect for 12-10. I mean that 10 must be smaller than 12. I want to do it in Javascript. A: I wouldn't use regex for this. I'd split the string on the operator, then compare the two resulting number...
{ "language": "en", "url": "https://stackoverflow.com/questions/298753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make sure an application keeps running on Linux I'm trying to ensure a script remains running on a development server. It collates stats and provides a web service so it's supposed to persist, yet a few times a day, it dies off for unknown reasons. When we notice we just launch it again, but it's a pain in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/298760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Django Template Variables and Javascript When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using {{ myVar }}. Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/298772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "302" }
Q: Make ajax get redirect main page to login when auth times out I'm using ASP.Net MVC beta 1 and I'm using the asp.net membership provider with the standard authentication controller to restrict access to my site. I'm using ajax functionality to provide e.g. editing of values by loading partial views into a div with e...
{ "language": "en", "url": "https://stackoverflow.com/questions/298777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Form (or Formset?) to handle multiple table rows in Django I'm working on my first Django application. In short, what it needs to do is to display a list of film titles, and allow users to give a rating (out of 10) to each film. I've been able to use the {{ form }} and {{ formset }} syntax in a template to produce a...
{ "language": "en", "url": "https://stackoverflow.com/questions/298779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do a jquery ajax call to a subdomain? i could call a page inside the same domain, but its not working when i calling a page in a sub domain due to security issues. what i have to do? help me!!! A: You can set the document.domain but if I remember correctly a few browsers (Opera) will not even allow this. I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/298780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reporting in .net winforms with end user designer What are you guys using as reporting engine in .net, with end user designing capabilities? I tried DevExpress XtraReports, but i am not able to successfully achieve consistent results. (for example, i try to display a detailreport of sold machines for a certain cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/298781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python xml.dom.minidom.parse() function ignores DTDs I have the following Python code: import xml.dom.minidom import xml.parsers.expat try: domTree = ml.dom.minidom.parse(myXMLFileName) except xml.parsers.expat.ExpatError, e: return e.args[0] which I am using to parse an XML file. Although it quite happi...
{ "language": "en", "url": "https://stackoverflow.com/questions/298782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vertically center a title with fixed height in css I have a header <h1>My Header</h1> It has a height of 150px and a font-size of say 1.3em; How can I make the header text vertically centered with CSS. I would rather not wrap it in a container DIV (wrapping divs really defeat the whole CSS idea). A: If the height...
{ "language": "en", "url": "https://stackoverflow.com/questions/298786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving Meta in OS X Terminal Since Terminal appeared I've saved as ~/mySrvr.term a modified stock .term file which opens to execute an ssh to a remote server and to modify the appearance. I have NOT been able to save "use option key as meta" for emacs-ery; there's no slot for it in the term file and I'm reluctant to...
{ "language": "en", "url": "https://stackoverflow.com/questions/298788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: File transfer I have an IIS located on serverA I have userA at locationA who has opened a content management system site, hosted on serverA. One of the features of the system is that it allows the user to move a file to LocationB, all within the same network. Now when this move occurs and due to bandwidth restrictio...
{ "language": "en", "url": "https://stackoverflow.com/questions/298791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio project not saved Somebody please tell me it is possible to recover Visual Studio source after VS crashes! I have just spent 5 hours writing a new utility app, and running it with the "Save before Build" option turned on, as well as AutoRecover every 5-mins. But after VS crashed I am unabled to find an...
{ "language": "en", "url": "https://stackoverflow.com/questions/298799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Why do I have an Issue with binding to an image from a control template? I have a style for an items control that binds to an image in the target, it only appears if the target also binds to the image and I have no idea why.. can anyone shed any light on it for me? A simplified version of my style: <Style x:Key="te...
{ "language": "en", "url": "https://stackoverflow.com/questions/298811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you bring Denormalized Values Into your Business Objects? I have two Tables. Order - With Columns OrderID, OrderStatusID OrderStatus - With Columns OrderStatusID, Description I have an Order Object which calls to the database and fills its properties for use in my code. Right now I have access to Order.Order...
{ "language": "en", "url": "https://stackoverflow.com/questions/298812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Distutils I was unable to install cython due to strict version numbering class of Distutils. For example binutils-2.18.50-20080109-2.tar.gz cannot be used along with MinGW for installing cython. The source code documentation says that "The rationale for this version numbering system will be explained in the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/298828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a pdf to display in a web browser before it's fully downloaded I have a client that's been struggling with slow loading pdf files on the web. My client has some very large pdf files that are almost 10 Mb. They take upwards of 3-4 minutes to download. The files will not display until the whole file is loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/298829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Split string containing command-line parameters into string[] in C# I have a single string that contains the command-line parameters to be passed to another executable and I need to extract the string[] containing the individual parameters in the same way that C# would if the commands had been specified on the comma...
{ "language": "en", "url": "https://stackoverflow.com/questions/298830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: XML Serialization issue for minoccurs I have a .NET Web app which consumes a Java-based Web service. One of the objects, named Optional, contains search criteria fields. The schema is the following: <xsd:complexType name="Optional"> <xsd:sequence> <xsd:element name="FromAmount" nillable="true" type="xsd:float" mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/298840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I programmatically read the properties inside an MSI file? Is there a way to read the properties inside an MSI file? For example, given a MSI file named Testpackage.msi, I need to find productName PackageCode version This I am going to use it with WMI uninstall string objPath = string.Format("Win32_Product....
{ "language": "en", "url": "https://stackoverflow.com/questions/298841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JavaScript alerting from a C# class I have a 5 ASPX page wizard. Each one contains a SaveAndExit button that executes a C# function on a common static class. After saving, the C# code redirects to another page. Is there a way for running javascript: alert('Data Saved'); after the saving, and before new page is Load...
{ "language": "en", "url": "https://stackoverflow.com/questions/298850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: after running aspnet_regsql.exe , do I have to init the db with data? how? I ran aspnet_regsql.exe to setup .net membership tables etc. What do I run to create my application so I can add users etc? A: in your visual studio, go to "Website -> ASP.NET Configuration" then a web application will start. there you can a...
{ "language": "en", "url": "https://stackoverflow.com/questions/298856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an easy to integrate java-based forum software available Integration via Hibernate, Acegi, Spring, Tiles would be superb. A: you can use JavaBB A: I like JForum See the feature list. A: simply compare them JavaBB vs JForum vs MVN Forum vs Yazd. My personal choice would be, however, JForum, that is far mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/298864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Outlook/Exchange - how to programmatically export users in distribution list? How do I export all of the names and email addresses from a distribution list in Outlook using code? I have access to an Outlook 2000 or Outlook 2007 client. Ideally I would like the code to be in C#. A: I realize you asked about c#, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Integrated Security is there a managed code (without adding COM component or wrapped called to C++ routines) way to add integrated security to a C# Managed code assembly? i.e. I want to write a client-server system where the server uses Remoting instead of IIS, but I want the client to automatically pass it's cred...
{ "language": "en", "url": "https://stackoverflow.com/questions/298872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to detect synchronization violations with Java I'm wondering what good ways there would be make assertions about synchronization or something so that I could detect synchronization violations (while testing). That would be used for example for the case that I'd have a class that is not thread-safe and that isn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/298873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to step through foreach loop task? In SSIS, how do I step through a foreach loop in debug to see each step within it individually? I've added breakpoints, but they don't seem to break on them in debug? Thanks! A: I would add OnPreExecute breakpoint to the first task inside the foreach loop.
{ "language": "en", "url": "https://stackoverflow.com/questions/298884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connecting to POP3 servers Does .NET have a way to pull email from a POP3 server out of the box or you have to code/buy a 3rd party component? A: You can check Mail.dll .NET mail component, it has SSL support, unicode, and multi-national email support: using(Pop3 pop3 = new Pop3()) { pop3.Connect("mail.host.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/298886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Any real reason to use ASP.NET Mobile? I've been putting together a small web form for our technicians to use from their phones out in the field. However I'm having a lot of trouble getting things working using ASP.NET Mobile, and there seems to be few resources out there to help learn this stuff. I'm also having ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java assertions underused I'm wondering why the assert keyword is so underused in Java? I've almost never seen them used, but I think they're a great idea. I certainly much prefer the brevity of: assert param != null : "Param cannot be null"; to the verbosity of: if (param == null) { throw new IllegalArgumentEx...
{ "language": "en", "url": "https://stackoverflow.com/questions/298909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: Best ways to Improve Sharepoint 2007 Performance? OK we are at the end of our rope here, and I’d really appreciate feedback from the SO community. Our basic issue is slow performance by our MOSS-based intranet-- Some environment info: We have a MOSS standard edition for a collaboration based site. * *The site...
{ "language": "en", "url": "https://stackoverflow.com/questions/298917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom namespace for code behind .aspx page I am using .NET2.0. Let's say a have a simple aspx form with txtInput and btnSomeAction <asp:TextBox ID="txtInput" runat="server"></asp:TextBox> <asp:Button ID="btnSomeAction" runat="server" CommandName="SomeAction" Text="Do"/> Then within the code behind the form I...
{ "language": "en", "url": "https://stackoverflow.com/questions/298920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NHibernate IInterceptor implementation(add properties to DB table that original domain class doesn't have) How is possible to set some special column values when update/insert entities via NHibernate without extending domain classes with special properties? For example: in my case I would like to get object and just...
{ "language": "en", "url": "https://stackoverflow.com/questions/298921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can a hashtable be bound to a drop down list? In vb.net / winforms, how can a hashtable be bound to a drop down list or any other datasource-driven control? A: Just use the dropdown lists's Datasource property DropDownList dd = new DropDownList(); Hashtable mycountries = New Hashtable(); mycountries.Ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/298926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Set focus to embedded MSHTML In my application I have an embedded MSHTML control. The problem is that I cannot set focus to this control. I can click, select, push buttons etc, but it won't accept keyboard input and mouse wheel notifications as a result. Even left-clicks on the control do not set the focus. (The que...
{ "language": "en", "url": "https://stackoverflow.com/questions/298932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I let a non-admin user instantiate objects from a VB6 ActiveX Exe? Question says it all really... I have tried changing the "Allow non-admin users to run this program" setting on the property pages, and have also given the non-admin user in question what looks like the correct privileges in Component Services...
{ "language": "en", "url": "https://stackoverflow.com/questions/298952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LINQ To SQL entity objects as domain objects Clearly separation of concerns is a desirable trait in our code and the first obvious step most people take is to separate data access from presentation. In my situation, LINQ To SQL is being used within data access objects for the data access. My question is, where shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/298962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Querying data from different tables I am using a query like this on my postgres database: SELECT TableA.id FROM TableA , TableB WHERE TableA.id = 100; Each TableA.id is unique (it's an autoincrement), I am getting more than 1 result. Am I missing something in here? A: You need a join: SELECT TableA.ID from TableA ...
{ "language": "en", "url": "https://stackoverflow.com/questions/298972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a better alternative than this to 'switch on type'? Seeing as C# can't switch on a Type (which I gather wasn't added as a special case because is relationships mean that more than one distinct case might apply), is there a better way to simulate switching on type other than this? void Foo(object o) { if...
{ "language": "en", "url": "https://stackoverflow.com/questions/298976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "396" }
Q: How to remove from a document I'm trying to have an XSLT that copies most of the tags but removes empty "<b/>" tags. That is, it should copy as-is "<b> </b>" or "<b>toto</b>" but completely remove "<b/>". I think the template would look like : <xsl:template match="b"> <xsl:if test=".hasChildren()"> <xsl:eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/298981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle: Communication link failure We're using Spring 2.5.4/Hibernate 3.2/Websphere Application Server 6.1.0.17. We've deployed the application on an AIX box. The next day when I come in, I try to log into the application. I get this exception on the page: Error 500: Request processing failed; nested excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/298988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Access Web service from Oracle stored procedure Is there anybody who has successfully accessed a Web service from an Oracle stored procedure? If so, was it a Java stored procedure? A PL/SQL stored procedure? Is there any reason why I should not be trying to access a WS from a stored proc? Here are a couple refs th...
{ "language": "en", "url": "https://stackoverflow.com/questions/299002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Ways to purge the workspace environment with RAD (based on Eclipse) I am getting a lot of errors when starting RAD7. The server doesn't respond to class changes. Sometimes the server won't start. Sometimes RAD will not acknowledge modules that I added to the server. It is kind of buggy. I know there is metadata ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to publish a web project with MSBuild? In Visual Studio 2008 if you have a web project you can use menu Build -> Publish Web. Can I achieve the same result with msbuild via command line? Found the answer in this blog post: How to publish a web site with MSBuild. In more detail is here: Using MSBuild to deploy v...
{ "language": "en", "url": "https://stackoverflow.com/questions/299017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it acceptable to cross between databases? I'm not sure what this practice is actually called, so perhaps someone can edit the title to more accurately reflect my question. Let's say we have a site that stores objects of different types. Each type of object has its own database (a database of books and assorted in...
{ "language": "en", "url": "https://stackoverflow.com/questions/299027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: project deployment automation with PVCS We use PVCS for source control for all our code. We have 7 Servers across the EU covering 17 countries. PVCS mimics our folder structure in production: folderA | |--folderB | | | | -- folderC | | | | -- folder | --folderD | | | | -- folderE | | | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Capistrano - RAILS_GEM_VERSION Error I can't figure this out. Capistrano keeps giving me this error: ** [out :: myserver.net] Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the effects of exceptions on performance in Java? Question: Is exception handling in Java actually slow? Conventional wisdom, as well as a lot of Google results, says that exceptional logic shouldn't be used for normal program flow in Java. Two reasons are usually given, * *it is really slow - even an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "552" }
Q: How to (ignore|keep going) a gant-build in case of compile errors? Does anybody know how I can run a gant build which ignores build errors? Something like ant and make are doing with the '-k' or '-keep-going' switch. Thx A: The -k flag hasn't been added yet to gant, afaik. You can submit a feature request for it he...
{ "language": "en", "url": "https://stackoverflow.com/questions/299075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scaling Literate Programming? Greetings. I have been looking at Literate Programming a bit now, and I do like the idea behind it: you basically write a little paper about your code and write down as much of the design decisions, the code probably surrounding the module, the inner workins of the module, assumptions a...
{ "language": "en", "url": "https://stackoverflow.com/questions/299076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Why is this code with several "or" statements slightly faster than using a lookup table in Java? While looking at a micro-optimization question that I asked yesterday (here), I found something strange: an or statement in Java is running slightly faster than looking up a boolean value in an array of booleans. In my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Imitating SQL Server Profiler in a C# app? I want to create a trace on a database server from my C# app, like what you do in SQL Server Profiler. I have found stored procedures (sys.sp_trace_create etc...) that dont seem to work for my SQL management studio. I was wondering if anyone could help with the coding, or w...
{ "language": "en", "url": "https://stackoverflow.com/questions/299080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it really such a bad idea to use webservices to wrap data-access layer? I am not convinced - I think it might be useful to expose your data to different consumers that can build their front-end apps on top of your webservice. Can someone provide samples of when using web-services to wrap data-access layer is a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/299084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# How do I click a button by hitting Enter whilst textbox has focus? I'm working with a WinForm app in C#, after I type something in a textbox I want to hit the Enter key but the textbox still has focus (flashing cursor is still in textbox), how can I achieve this? A: The simple option is just to set the forms's A...
{ "language": "en", "url": "https://stackoverflow.com/questions/299086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }