text
stringlengths
8
267k
meta
dict
Q: How can I use the URL to set the current culture in ASP.NET 2.0 Web App? I am looking in to ways to enable a site to basically have something like: http://mysite.com/en-US/index.aspx` Where the "en-US" can vary by culture.. This culture in the URL will then basically set the CurrentUICulture for the application.. Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/358949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I completely remove TFS Bindings I have a solution that contains a good deal of projects, I would like to remove the source control bindings completely, how can I do this? Update: What I really want to do is move one solution and its projects from TFS 2005 -> 2008. Thats why I am removing the bindings, is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/358951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "246" }
Q: IE6 Table cell alignment problem with ajax This one is weird, I have a page that consists of a html table in a div called 'rates-viewer'. If you load this page in IE (6 or 7), you will notice that the contents of the table headers is misaligned over to the left. If you choose a country from the dropdown, it triggers...
{ "language": "en", "url": "https://stackoverflow.com/questions/358952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A good place to find frameworks with Interface Builder plug-ins… Someone on here recently recommended BWToolkit, and it really impressed me, so I started googling for more IB plug-ins. I've found a couple on random blogs, but haven't been able to find any kind of repository/aggregator for them. Anyone know where I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/358964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Output the name of the current DLL being acted on using MSBuild This is probably a really stupid MSBuild question but if I have <ItemGroup> <Dll Include="<Path_to_DLLs>\*.dll" /> </ItemGroup> And then <SomeTarget useFiles=@(Dll)> ....do stuff </someTarget> What I want to do is to output the current item that @(Dl...
{ "language": "en", "url": "https://stackoverflow.com/questions/358966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I pass user credentials through a Unix-domain socket on Mac OS X? Under many operating systems Unix-domain sockets allow a process to reliably pass its credentials to another process in a way that can't be maliciously subverted. For instance, this is done on Linux through the SO_PASSCRED and SO_PEERCRED opt...
{ "language": "en", "url": "https://stackoverflow.com/questions/358967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unwanted xmlns="" in _di_IXMLNode I'm creating a xml-file for display in Excel using _di_IXMLDocument. But for some tags I get an unwanted extra (empty) xmlns attribute witch makes the file unreadable for Excel... This is what i do: ... _di_IXMLNode worksheet = workbook->AddChild("Worksheet"); worksheet->SetAttribut...
{ "language": "en", "url": "https://stackoverflow.com/questions/358972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delete in Edit menu In a simple dialog app, using designer, I've set up the usual shortcut keys for cut, copy, paste and delete in the edit menu. My problem is that I only want to handle delete events when a certain tree control is in focus. Otherwise, in my datagrid control for example, I want delete to work as usu...
{ "language": "en", "url": "https://stackoverflow.com/questions/358973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add attribute to an xml node with nant Is there a way to add an attribute to an xml node (which I have the xpath of) using nant? Tried xmlpoke but it looks like it can only update existing attributes. thanks. A: XmlPoke will definitely not work because the xpath must match something in the first place to be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/358974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any java library for converting document from pdf to html? Open source implementation will be preferred. A: Obviously, it isn't an easy task, PDF formatting is much richer than HTML's one (plus you must extract images and link them, etc.). Simple text extraction is much simpler (although not trivial...). I...
{ "language": "en", "url": "https://stackoverflow.com/questions/358975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tab selection in jQuery I have the need of a click tab event. I am using the following code. <script type="text/javascript"> $(function() { $('#container-1').tabs(); $('#start').bind('tabsselect', function(event, ui) { alert('tab label ' + ui.tab.text()); }); }); </scrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/358986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I implement Advanced combobox in CakePHP? I have implemented combobox in CakePHP using following statement: echo $form->select('brand_id',array($brands),null,array(),'Choose Brand'); For brand and input form for category: echo $form->input('category_id',array('type'=>'select',$categories,'empty'=>'Choose C...
{ "language": "en", "url": "https://stackoverflow.com/questions/358990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I customise the namespace prefixes in Metro/JavaEE auto-generated WSDL? I'm using Java 6 + JavaEE + Tomcat 6 + Metro for SOAP web services. In the response, the namespace prefixes are ns2, ns3, ns4, and so on. I'd like to be able to instruct the web services stack to use custom names instead. How do I do thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/358991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve Build Status in XML from TeamCity I need to retrieve the Build Status from TeamCity in the form of XML, RSS format would be ideal. I am familiar with the RSS feed within Teamcity but that is of no use as it is more of a history view. I am looking for something more like the page generated by the Stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/358999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Any Tips for Doing *All* Your Work in a Single Virtual Machine? I bought a new Vista PC recently but was having lots of problems getting everything to work on it, so I continued doing most of my work (development and other) on a slow XP machine that I've had for years. Until now, that is - I used VMware Convertor to...
{ "language": "en", "url": "https://stackoverflow.com/questions/359005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why do I get an error using moveTo in JavaScript? I am opening a new window from a button using var myWindow = window.open(...). I then want to move that window to the correct location on the screen. I use myWindow.moveTo(10,10) to do this but I get an Access Denied error. The window I open contains information from...
{ "language": "en", "url": "https://stackoverflow.com/questions/359020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DAAB, the best approach to use Database instances is Guys, I am going to use Enterprise Library (4.1) and especially DAAB. Here is I have questions: * *What is the best approach and why: * *Every time when I need to run a DbCommand I create Database instance using DatabaseFactory.CreateDatabase(); *I have a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP file uploading trouble I'm having an extremely weird problem with a PHP script of mine. I'm uploading a couple of files and having PHP put them all in one folder. I've have trouble with random files being sent and random ones not being sent. So I debugged it and I got a very weird result from the $_FILES[] array...
{ "language": "en", "url": "https://stackoverflow.com/questions/359029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PDFLib: Can't open a PDF file Following are the PHP code lines which I am using to open a PDF file: $pdf_generartor = new PDFlib(); $doc = $pdf_generartor -> open_pdi_document("Report.pdf", "") or die ("ERROR: " . $pdf_generartor -> get_errmsg()); Though the file is at required location, every time I receive follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/359031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setting up two CMS for one site, best practice I am currently developing a (somewhat large) site for a magazine, the site mainly consists of sections like : news (for various categories), members, and some 'other stuff' (like shoutbox, polls, previous covers, photo galleries that can be tagged, and ad banners system...
{ "language": "en", "url": "https://stackoverflow.com/questions/359032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why won't my program run from the Program Files directory but will from anywhere else? My program run fine from anywhere else on my drive apart from the Program Files directory (windows XP), I am logged on as administrator so I have full permissions to the drive. It runs fine from the root of c: the windows director...
{ "language": "en", "url": "https://stackoverflow.com/questions/359036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Request Web Page in c# spoofing the Host I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too. I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is). I need to do this becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/359041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: character-based pagination - inserting page breaks on text, not punctuation or code I'm writing code to generate character-based pagination. I have articles in my site that I want to split up based on length. The code I have so far is working albeit two issues: * *It's splitting pages in the middle of words and H...
{ "language": "en", "url": "https://stackoverflow.com/questions/359043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the Significance of Pseudo Header used in UDP/TCP Why is the Pseudo header prepended to the UDP datagram for the computation of the UDP checksum? What's the rational behind this? A: The nearest you will get to an answer "straight from the horse's mouth", is from David P. Reed at the following link. http://w...
{ "language": "en", "url": "https://stackoverflow.com/questions/359045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Detecting request type in PHP (GET, POST, PUT or DELETE) How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP? A: In core php you can do like this : <?php $method = $_SERVER['REQUEST_METHOD']; switch ($method) { case 'GET': //Here Handle GET Request echo 'You are using '.$metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/359047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1073" }
Q: Can I send request in PUT and DELETE in Delphi 7? I need to send PUT and DELETE along with POST, GET to a REST API how can I do it? A: Delphi 7 comes with Indy. See the TIdHTTP component and specificly the Get and Put methods. A: Or look at the open source Synapse library. There are some simple function calls in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: error C2065: 'CoInitializeEx' : undeclared identifier I get the following error while trying to use hres = CoInitializeEx(0, COINIT_MULTITHREADED); error C2065: 'CoInitializeEx' : undeclared identifier I have already included: #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/359070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to capture high resolution image on Windows Mobile I would like to capture high resolution image with Windows Mobile device. I've tried the example from WM SDK, but it captures just a single frame of video camera and the resolution is poor. Has anyone any experience with image capturing on Pocket PC with C++? Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/359084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List.BinarySearch vs Dictionary.TryGetValue - which is faster Which would be faster for say 500 elements. Or what's the faster data structure/collection for retrieving elements? List<MyObj> myObjs = new List<MyObj>(); int i = myObjs.BinarySearch(myObjsToFind); MyObj obj = myObjs[i]; Or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET Designtime Datasource (for Combobox) i'm trying to create a ObjectDataSource which I can use to bind to a BindingSource which on his turn should be bound to a ComboBox. I've created a simple class and a simple list for this class (see below) * *The Times list class is not showing up at my toolbox, so I canno...
{ "language": "en", "url": "https://stackoverflow.com/questions/359086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery detecting Programatic change event If i do jQuery(expr).change( function), then I can get an event function to fire when the user makes a change to the value. Is it possible to get this to fire if it's changed programatically, ie if I call jQuery(expr).val("moo"). or if some Plain old JavaScript changes it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I handle multiple sockets within a Perl daemon with large memory usage? I have created a client-server program with Perl using IO::Socket::INET. I access server through CGI based site. My server program will run as daemon and will accept multiple simultaneous connections. My server process consumes about 100...
{ "language": "en", "url": "https://stackoverflow.com/questions/359093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to space items evenly in a horizontal Silverlight Listbox In Silverlight, I have a Vertical ListBox that has a Horizontal ListBox for each item. I want the items in the HorizontalListbox to space evenly across the width of the parent (Vertical) ListBox. How can I do this? <ListBox x:Name="MachineListBox" Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/359098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which implementation of Iterator should I use in PHP, and why? I'm trying to refactor a large, old project and one thing I've noticed is a range of different Iterator implementations: while($iterator->moveNext()) { $item = $iterator->current(); // do something with $item; } for($iterator = getIterator(),...
{ "language": "en", "url": "https://stackoverflow.com/questions/359099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using the scrollwheel in GNU screen How can I set up GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer? I tried to Google about this, but most hits were on how to allow applications inside screen to use the scrollwheel. A: In screen, you must first enter "scrollback mode" (or "co...
{ "language": "en", "url": "https://stackoverflow.com/questions/359109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "285" }
Q: How you deploy your reports (with Reporting Services) Which one you choose? * *Use the Deploy feature in VS *Build a rss script and execute it through rs.exe *Build a deployment package *Another option Keep in mind that in many of your environments the report developers/designers don't have publish role in R...
{ "language": "en", "url": "https://stackoverflow.com/questions/359112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Batch how to end an for-loop properly for testing purposes i need an recursive directory with some files, that comes to maximum path-length. The Script used for the creation consists only of two for-loops, as followed: for /L %%a in (1 1 255) do @( mkdir %%a && cd %%a && for /L %%b in (1 1 %random%) do @...
{ "language": "en", "url": "https://stackoverflow.com/questions/359120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: dependency injection alternatives I am looking at depency injection, I can see the benefits but I am having problems with the syntax it creates. I have this example public class BusinessProducts { IDataContext _dx; BusinessProducts(IDataContext dx) { _dx = dx; } public List<Product> GetProduct...
{ "language": "en", "url": "https://stackoverflow.com/questions/359122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to store data in variable length arrays without causing memory corruption? This is a fairly basic question, which for some reason, a proper solution escapes me at the moment. I am dealing with a 3rd-party SDK which declares the following structure: struct VstEvents { VstInt32 numEvents; ///< number of Even...
{ "language": "en", "url": "https://stackoverflow.com/questions/359125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I speed up Crystal Reports 11 printing? I'm using Crystal Reports 11 (and VB6) to open a report file, load the data from an Access database and either print the report to a printer or export the report to another .rpt file (for later printing without the database) Even for small amounts of data the process i...
{ "language": "en", "url": "https://stackoverflow.com/questions/359126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I "blur" a selected ComboBox in .net windows forms? When a ComboBox is clicked this causes it to be selected in the window. Is there a way to perform the equivalent of a javascript blur() A: Not directly. You can try focusing the root parent of the combobox or another element, though. comboBox1.TopLevelContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/359128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mask urls in JSP Related to this question: URL characters replacement in JSP with UrlRewrite I want to have masked URLs in this JSP Java EE web project. For example if I had this: http://mysite.com/products.jsp?id=42&name=Programming_Book I would like to turn that URL into something more User/Google friendly like:...
{ "language": "en", "url": "https://stackoverflow.com/questions/359147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any free/opensource vbscript compiler? I need to compile a wmi vbscript to executable (to automate configuration in several computers). Any free vbscript compiler or any other suggestions? A: One thing I would be especially concerned about in doing this is you must really trust the product that is compilin...
{ "language": "en", "url": "https://stackoverflow.com/questions/359166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Mapping existing tables to Domain classes in C# I don't even know if I'm using the correct terms but here goes: Is there a way to map the tables and their relations in a SQL Server to domain (C# code) automatically, by means of a tool or something? I've used the nhibernate plugin, but it creates a file in .cs and an...
{ "language": "en", "url": "https://stackoverflow.com/questions/359167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Issue with nested calls with psexec (access denied) First of all, sorry for my poor english. I would try to explain my problem. I am using psexec within a script to restart a cluster as follows: script1 in node1: perform a lot of tasks (shutdown services, check status, etc..) in the node1 and after completing all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I create a Web Service in IronPython? How do I create a .Net Web Service in IronPython? Preferably dynamically without any pre- or post-processing. A: Have a look at the sample called DynamicWebServiceHelpers in the recently released IronPython 2.0. A: I'm not sure about this, but it's something I've tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/359201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Declaring constants in a project I have seen these two approaches for constant declaration which are to be used in the project. * *Constants in a public module. *Constants in a NonInheritable(Sealed) class Does anybody uses any other approach for the constant declartion ? Is there any difference between these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: WCF / Local Data Access Layer I'm looking for a way to create a data access layer that can either reside on a server and be accessed via WCF services or can reside on the local machine in which case it would just be accessed directly without having to run through iis. Is there a way to abstract this in such a way th...
{ "language": "en", "url": "https://stackoverflow.com/questions/359208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compile CLASSPATH in a Windows batchfile On a Unix systems it's very easy to compile the CLASSPATH by using find: LIBDIR=`find lib/ -name \*.jar` for DIR in $LIBDIR: do CLASSPATH="$CLASSPATH:$DIR" done java -classpath $CLASSPATH com.example.MyClass What would be the aquivalent in a Windows batchfile? A: The s...
{ "language": "en", "url": "https://stackoverflow.com/questions/359213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET WebControl for displaying revisions or differences of content I would like to display the differences between versions of the same content. Initially I rolled out my own WebControl, however the differencing algorithm I came up with was slightly naive. Does anyone know of any .Net code or a WebControl out the...
{ "language": "en", "url": "https://stackoverflow.com/questions/359214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I make WPF ListView items repeat horizontally, like a horizontal scrollbar? I have a WPF ListView which repeats the data vertically. I cannot figure out how to make it repeat horizontally, like the slideshow view in Windows Explorer. My current ListView definition is: <ListView ItemsSource="{StaticResource My...
{ "language": "en", "url": "https://stackoverflow.com/questions/359217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Snap to grid mouse locking up I am working on an application which draws a simple dot grid. I would like the mouse to snap between the points on the grid, eventually to draw lines on the grid. I have a method which takes in the current mouse location (X,Y) and calculates the nearest grid coordinate. When I create an...
{ "language": "en", "url": "https://stackoverflow.com/questions/359229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem with for /f command on Windows XP I'm using Windows XP Service Pack 3 and have Command Extensions enabled by default in the Windows Registry. Somehow, the following command does not work on this version of Windows but if I run it in Windows Server 2003 or Windows Vista Business, it works just fine. Any clue?...
{ "language": "en", "url": "https://stackoverflow.com/questions/359232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does C++ not have reflection? This is a somewhat bizarre question. My objectives are to understand the language design decision and to identify the possibilities of reflection in C++. * *Why C++ language committee did not go towards implementing reflection in the language? Is reflection too difficult in a lan...
{ "language": "en", "url": "https://stackoverflow.com/questions/359237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "366" }
Q: AoP on Microsoft Compact Framework 3.5 I've tried with Postsharp, but their current implementation targets 2.0, and it's getting painful to make it work. Should I roll out my own AoP implementation (I'm thinking of a very VERY basic and utilitarian implementation here) Or there is an alternative I'm not aware of? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/359247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is 30 the default length for VARCHAR when using CAST? In SQL server 2005 this query select len(cast('the quick brown fox jumped over the lazy dog' as varchar)) returns 30 as length while the supplied string has more characters. This seems to be the default. Why 30, and not 32 or any other power of 2? [EDIT] I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/359257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Do I have to use InfoPath forms for every task within a SharePoint workflow? Is it possible to use InfoPath forms within a SharePoint workflow for all but one of the workflow tasks? Our customer wants a particular task to use the default sharepoint page for editing that list item but disabling the form I was using f...
{ "language": "en", "url": "https://stackoverflow.com/questions/359265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to retrieve additional LDAP data fields via Tomcat ( getRemoteUser gives just name) I have configured Tomcat to use LDAP / AD. How can I get more details about the logged in user; the userid is returned by request.getRemoteUser() but not the full name that I need. How do I get the actual "displayName" (full na...
{ "language": "en", "url": "https://stackoverflow.com/questions/359267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Consuming a "Table of data" in Silverlight Since silverlight does not have any support for DataSets/DataTables, what would be the best approach if I wanted to consume a table of data from a database? A bit like this: user action in silverlight -> get data from server -> display in GridView The thing is, I do NOT kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/359272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static variables not being initialized - sometimes? I have a game with puzzles. Puzzles are created from script files using a puzzle engine ID. Puzzle engines register themselves using a static variable in a static hash. I'm having reports of crashes and we've tracked down the problem to the hash not having certain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Specifying attribute values as CDATA Can one specify XML attribute values as CDATA ? If yes - what would be the schema for the same. If not - why is this limitation not addressed in XML ? A: No you cannot do this. There's a very fine line (and a very large debate) between what constitutes an attribute and what cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/359280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Javascript submitting a form within a method I have a method which prints out the order of a set of images. I need to submit this to a new php page. I have a form which currently prints out the order to the same page. <form action="mainpage.php" method="post"> <div style="clear:both;padding-bottom:10px"> <input...
{ "language": "en", "url": "https://stackoverflow.com/questions/359284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use Hibernate from an Eclipse Plug-in? I am writing an Eclipse plug-in that loads resources from a central database. I would like to use Hibernate to access that database. So how would I add this as a dependency to my plug-in project? I've tried Google but only get hits on about plug-ins for editing Hibern...
{ "language": "en", "url": "https://stackoverflow.com/questions/359287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get the FxCop custom dictionary to work? How is it possible to get the FxCop custom dictionary to work correctly? I have tried adding words to be recognised to the file 'CustomDictionary.xml', which is kept in the same folder as the FxCop project file. This does not seem to work, as I still get the 'Identifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/359290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Convert Float that has period instead of comma? I have data from a table in a database (string) that contain text and price. I extract the price from the data but my problem is that sometime I can Convert it to float and sometime not. I have noticed that : Convert.ToSingle(m.Groups[1].Value); It works but not alway...
{ "language": "en", "url": "https://stackoverflow.com/questions/359298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Batch process images I have to transform a few hundred images every day in a specific way. I need the best freeware tool or a piece of C# code that supports batch watermarking, resizing of images and can be automated (old configuration can be reused). What tool do you suggest? A: Dave Winer of scripting.com fame ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/359301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Relative Path in Subversion external configuration Is there any way to use Relative path when configuring subversion externals. For example Trunk - directoryA - directoryB - projectA {external DirectoryB} For configuring ProjectA we have to configure full path in the external property which is c...
{ "language": "en", "url": "https://stackoverflow.com/questions/359302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How do I assign a name to a control and retrieve it in an event method? I have a IBAction such as: - (IBAction)showPicker:(id)sender; How can I get the name of the control from the sender variable? I am typically a c# coder so have tried the following to no avail senderName = ((UIButton *)sender).name; I need some...
{ "language": "en", "url": "https://stackoverflow.com/questions/359303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF Routed Commands and ShowDialog Windows I was wondering how a window opened through ShowDialog is treated in the Visual Tree. For example, Window A opens Window B through a ShowDialog. When firing a routed command on Window B, Window A does not receieve the command (even though it is listening for it). Is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to configure JAXB so it trims whitespaces when unmarshalling tag value? How to configure JAXB unmarshaller so it will trim leading and trailing whitespaces from strings? For instance let's consider a simple binding between a Java bean and XML using JAXB annotations: @XmlRootElement(name="bean") class Bean { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Creating a delegate type inside a method I want to create a delegate type in C# inside a method for the purpose of creating Anonymous methods. For example: public void MyMethod(){ delegate int Sum(int a, int b); Sum mySumImplementation=delegate (int a, int b) {return a+b;} Console.WriteLine(mySumImplement...
{ "language": "en", "url": "https://stackoverflow.com/questions/359320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Mysql Query Optimization I have the following SQL query: select expr1, operator, expr2, count(*) as c from log_keyword_fulltext group by expr1, operator, expr2 order by c desc limit 2000; Problem: The count(*) as part of my order by is killing my application, probably because it don't use index. I would like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript not working, no errors I have the following javascript code, which loads without error, however the update function does not actually seem functional, as get_Records.php is never loaded. I can not test if get_auction.php is loaded as it is loaded from within get_records.php One of my main concerns is that...
{ "language": "en", "url": "https://stackoverflow.com/questions/359328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access x86 COM from x64 .NET I have an x64 server which, since my libraries are compiled to AnyCPU, run under x64. We are needing to access a COM component which is registered under x86. I don't know enough about COM and my google searches are leading me nowhere. Question: Can I use a symbolic registry link from x...
{ "language": "en", "url": "https://stackoverflow.com/questions/359331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What is the best way to find and replace "!= null" code with andand? I refactor my code and I am looking for a solution to grep my source files for something like if ( user && user.name && user.name.length() < 128 ) ... in order to replace it later with ruby's andand or groovy's ?. operator (safe navigation operato...
{ "language": "en", "url": "https://stackoverflow.com/questions/359332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows service on server wont run without a user logged in I created a windows service that's basically a file watcher that wont run unless a user is logged into the machine its on. The service is running on a Windows Server 2003 machine. It is designed to move the files that are put into one directory into a dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/359333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: An effective method for encrypting a license file? For a web application, I would like to create a simple but effective licensing system. In C#, this is a little difficult, since my decryption method could be viewed by anyone with Reflector installed. What are some methods for encrypting files in C# that are fairly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to set up a not-local svn-server? Hi i would to know how to se up a svn server? Now, i'm using VisualSVN a TortoiseSVN, but i don't know what are the directories "branch" "trunk" "tags". Can anyone explain me how it works? I read the svn book and many sites articles about it but i don't understand. A: How to se...
{ "language": "en", "url": "https://stackoverflow.com/questions/359343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Execute Commands Sequentially in Python? I would like to execute multiple commands in a row: i.e. (just to illustrate my need): cmd (the shell) then cd dir and ls and read the result of the ls. Any idea with subprocess module? Update: cd dir and ls are just an example. I need to run complex commands (following a par...
{ "language": "en", "url": "https://stackoverflow.com/questions/359347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: eclipse: overriding user.name in config.ini I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users need to override user.name with their full name and the usual method (adding -Duser.name=... to eclipse.ini) is not suitable since the override must be per-user. I've tried settin...
{ "language": "en", "url": "https://stackoverflow.com/questions/359351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Entlib and interop: does it work, and where does the config file go? I'm trying to use the EntLib 3.1 within .net code for a dll which is registered for COM interop. Where do I put the config file? Alternatively, is there a way to specify within the dll code where it should get the entlib config from? Since my dll ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML Schema Case Insensitive Enumeration of Simple Type String I am in need of a case insensitive string enumeration type in my XML schema (.xsd) file. I can get case insensitive by doing the following. <xs:simpleType name="setDigitalPointType"> <xs:restriction base="xs:string"> <xs:pattern value="[Oo][Nn...
{ "language": "en", "url": "https://stackoverflow.com/questions/359359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to assess performance of MDX in OLAP processing I am familiar with standard practices to assess performance query or stored procedure using SQL server 2000/2005/2008. How is the best way to assess MDX performance? I assume its possible to write structurely correct but poor performance MDX queries as easily as y...
{ "language": "en", "url": "https://stackoverflow.com/questions/359374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to code html mailings? I'm preparing to send mass email to customers which is in html + images. What are general rules to do make it display correctly in most popular mail clients? EDIT: Well it's for my customers - about few k clients. My question is - how to code this email that it will display correctly in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you determine the hardware needed for a server? I would like to know how do you determine the hardware needed for a server? I have a DB Server running MySQL, and now I want to buy a server, but I don't know what hardware specification that I need. This is a server for a hosting a web page. EDIT: The software ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: jQuery child of clicked element I've got a list of links which have a click event attached to them, I need to get the ID from the child A link. So in the example below if I clicked the first list element I'd need google retuned. I've tried '$this a' but can't quite work out the syntax. $("ul li").click(function(eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/359393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: path name and arguments of running processes using java code I want to get the path name and arguments of running processes using java code. Is there any solution? A: For instance, on Windows, one possibility is to encapsulate the system call to TASKLIST.EXE Extract from the code: Process p = Runtime.getRuntime()....
{ "language": "en", "url": "https://stackoverflow.com/questions/359400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the sqlalchemy equivalent column type for 'money' and 'OID' in Postgres? What is the sqlalchemy equivalent column type for 'money' and 'OID' column types in Postgres? A: we've never had an "OID" type specifically, though we've supported the concept of an implicit "OID" column on every table through the 0.4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Web User Controls and Validation I have an ASP.Net web user control that contains a TextBox and a calendar from the Ajax Control Toolkit. When I include this user control on my page I would like it to participate in input validation (there is a required filed validator set on the TextBox inside the UC), ie. when the...
{ "language": "en", "url": "https://stackoverflow.com/questions/359422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Detach (move) subdirectory into separate Git repository I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository. How can I do this while keeping the history of the files within the sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/359424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1943" }
Q: Load Balance in Distributed Project Does anyone know a simple load balance algorithm (formula) that relates users connected, cpu load, network load and memory usage? This will be used to compare various servers and assign to a new user the best at the moment. Thank You. A: If you are using Apache Web Server to prox...
{ "language": "en", "url": "https://stackoverflow.com/questions/359426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Differences between cookies and sessions? I am training in web developement and am learning about JSP & Servlets. I have some knowledge of HttpSession - I have used it in some of my sample projects. In browsers I have seen the option to "delete cookies". If I delete the cookies it deletes the HttpSession also. Are c...
{ "language": "en", "url": "https://stackoverflow.com/questions/359434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "157" }
Q: C# equivalent to Java's continue ? Should be simple and quick: I want a C# equivalent to the following Java code: orig: for(String a : foo) { for (String b : bar) { if (b.equals("buzz")) { continue orig; } } // other code comes here... } Edit: OK it seems there is no such equivalent (hey - Jon ...
{ "language": "en", "url": "https://stackoverflow.com/questions/359436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Optimization packages for R Does anyone know of any optimization packages out there for R (similar to NUOPT for S+)? A: Try lpSolve with R. A simple example: # Maximize # x1 + 9 x2 + x3 # Subject to: # x1 + 2 x2 + 3 x3 <= 9 # 3 x1 + 2 x2 + 2 x3 <= 15 f.obj <- c(1, 9, 3) f.con <- matrix(c(1, 2, 3, 3, 2, 2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/359438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I retrieve a URL from a web site using Java? I want to use HTTP GET and POST commands to retrieve URLs from a website and parse the HTML. How do I do this? A: The easiest way to do a GET is to use the built in java.net.URL. However, as mentioned, httpclient is the proper way to go, as it will allow you among...
{ "language": "en", "url": "https://stackoverflow.com/questions/359439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: CDO message: text attachment gets corrupted I'm creating an email message using CDO object (and VB6, but that doesn't really matter). With New CDO.Message .To = "<address>" .Subject = "Manifest test 8" .Organization = "<company>" .From = "<address>" .Sender = .From With .Configuration .Fields(cdoSen...
{ "language": "en", "url": "https://stackoverflow.com/questions/359452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maintaining referential integrity Given the schema: MACHINE_TYPE { machine_type } MACHINE { machine, machine_type } SORT_PLAN { sort_plan, machine_type } SCHEDULE { day_of_week, machine, sort_plan } and the business rule: A sort plan can be assigned to any machine of the same machine_type. How do I enforce tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/359459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Closures, Loops and Events I have a question similar to the one here: Event handlers inside a Javascript loop - need a closure? but I'm using jQuery and the solution given seems to fire the event when it's bound rather than on click. Here's my code: for(var i in DisplayGlobals.Indicators) { var div = d.cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/359467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I verify a Google authentication API access token? How can I verify a Google authentication access token? I need to somehow query Google and ask: Is [given access token] valid for the [example@example.com] Google account? Short version It's clear how an access token supplied through the Google Authentication...
{ "language": "en", "url": "https://stackoverflow.com/questions/359472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: VS 2008 Open Word Document - Memory Error I am executing the following code that worked fine in a vs2003(1.1) but seems to have decided otherwise now that I'm using vs2008(2.0/3.5): Dim wordApp As Microsoft.Office.Interop.Word.Application Dim wordDoc As Microsoft.Office.Interop.Word.Document missing = System.Reflec...
{ "language": "en", "url": "https://stackoverflow.com/questions/359478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }