text
string
meta
dict
Q: Use asynchronous delegates or ThreadPool.QueueUserWorkItem for massive parallelism? I have a .NET application that processes around 300,000 records in a batch import, and it takes a few seconds per record so I would like to parallelize this. In the following code, what's the difference between ProcessWithAnsycDelega...
{ "language": "en", "url": "https://stackoverflow.com/questions/192539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: IP Address change with limited account Here's what I need to do, any ideas would be helpful. I need to be able to change the Local IP address of a computer programmatically as a limited user in XP. Without giving Admin information to the users. I've played with runas, sanur, and autoit, but all either require givi...
{ "language": "en", "url": "https://stackoverflow.com/questions/192544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to change the name of a Start menu link name using a Custom Action We are localizing our application and need to change the name displayed in the Start menu based on the current UI culture. We would like to do this using a Custom Action during the installation. We are using Windows Installer deploym...
{ "language": "en", "url": "https://stackoverflow.com/questions/192545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this the right approach for structuring codebase? We have a Java codebase that is currently one Web-based Netbeans project. As our organization and codebase grows it seems obvious that we should partition the various independent pieces of our system into individual jars. So one Jar library for the data access lay...
{ "language": "en", "url": "https://stackoverflow.com/questions/192546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use different RJS templates from the same rails controller? I have a controller method that returns a list for a drop down that gets rendered in a partial, but depending on where the partial is being used, the RJS template needs to be different. Can I pass a parameter to the controller that will determine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.net MVC custom string output overloaded operator <%=h I am currently in the process of making a new ASP.net MVC website, and find myself using Html.Encode all over the place, which is good practice, but gets pretty messy. I think a good way to clean this up would be if I could overload an operator to automatical...
{ "language": "en", "url": "https://stackoverflow.com/questions/192553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a Visual Studio plugin for sorting build output (scrambled from multi-threaded builds)? My work just gave me a quad core computer, and WOW build times are fast! (What used to take 20+ minutes now takes 7 minutes). Anyway, Visual Studio builds project in parallel (great for build times), but scrambles the ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/192561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firefox 'Error loading script' loading Google Analytics in FF2 The project I'm working on uses a window.onerror event handler to report user problems. I've noticed a single user that just cannot seem to load the Google Analytics script. Our site doesn't see a lot of traffic so I'm not sure how widespread this is, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Transfering User Names from One Forum to Another? How do I transfer the users of a vBulletin forum to a new installation of IceBB? A: Presumably, they both have a database back-end of some sort, right? SQL dump, followed by patching stuff up in your favorite scripting language, followed by SQL load, seems do-able. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TFS Webservice Documentation We use a lot of of python to do much of our deployment and would be handy to connect to our TFS server to get information on iteration paths, tickets etc. I can see the webservice but unable to find any documentation. Just wondering if anyone knew of anything? A: The web services are no...
{ "language": "en", "url": "https://stackoverflow.com/questions/192579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I set different Tooltip text for each item in a listbox? I have a listbox that is databound to a Collection of objects. The listbox is configured to display an identifier property of each object. I would like to show a tooltip with information specific to the item within the listbox that is being hovered o...
{ "language": "en", "url": "https://stackoverflow.com/questions/192584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to send an email attachment with signature in excel I would like to know how to write a macro that would send an email with attachment in excel with user's signature. The same macro would be used by different users. So it should dynamically read any one (out of multiple html, rtf and txt files) signature file f...
{ "language": "en", "url": "https://stackoverflow.com/questions/192592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some of the advantage/disadvantages of using SQLDataReader? SqlDataReader is a faster way to process the stored procedure. What are some of the advantage/disadvantages of using SQLDataReader? A: I assume you mean "instead of loading the results into a DataTable"? Advantages: you're in control of how the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/192599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Are there documented, organized collections of libraries for Common Lisp? I am a college student at a school that teaches mainly in Java. One of the strong points of Java, which I quite enjoy, is the large collection of libraries. What makes these libraries especially useful is the extensive documentation and organi...
{ "language": "en", "url": "https://stackoverflow.com/questions/192602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: jQuery Scrollable, Sortable, Filterable table I'm looking to utilize jQuery to handle a few very common requests we get for data tables of varying sizes: scrolling, sorting, and dynamic filtering. * *I've handled scrolling in the past by having two separate tables with fixed width columns, along with associated d...
{ "language": "en", "url": "https://stackoverflow.com/questions/192608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Google Page Rank - New Domain / Link Structure Migration i've been tasked with re-organizing a pure HTML site into a CMS. if all goes well, the new site will eventually become the main URL, and the old domain will be phased out. the old domain has a decent enough page rank, and the company wishes to mitigate any los...
{ "language": "en", "url": "https://stackoverflow.com/questions/192628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Settings.Default. always returns default value instead of value in persistant storage (XML file) I recently wrote a DLL in C# (.Net 2.0) which contains a class that requires an IP address. A co-worker of mine altered the class to retrieve the IP from a ".dll.config" (XML) file -- This apparently is automatically gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/192641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: .NET Dynamic Objects with Reflection How do I determine if a Nullable(of Enum) is indeed an Enum by means of reflection? I'm working with a method that dynamically populates an object of type T with an IDataReader retrieved from a database call. At its essence, it loops through the datareader's ordinals, and all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/192643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CakePHP - How do i set the page title to an item name? OK, so I'm trying to teach myself the CakePHP framework, and I'm trying to knock up a simple demo app for myself. I have the controllers, views and models all set up and working, but I want to do something slightly more than the basic online help shows. I have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/192648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can you monkey patch methods on core types in Python? Ruby can add methods to the Number class and other core types to get effects like this: 1.should_equal(1) But it seems like Python cannot do this. Is this true? And if so, why? Does it have something to do with the fact that type can't be modified? Rather than t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How come I can't see member 'Default' on a class derived from ApplicationSettingsBase? I'm using .NET 3.5 and I have a class, A, marked as internal sealed partial and it derives from System.Configuration.ApplicationSettingsBase. I then use an instance of this class in the following manner: A A_Instance = new A(); A_...
{ "language": "en", "url": "https://stackoverflow.com/questions/192653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does it mean to "register system events... with Oracle Internet Directory"? This is from the Stream - AQ docs. You can register system events, user events, and notifications on queues with Oracle Internet Directory. System events are database startup, database shutdown, and system error events. User events inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/192655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Forms Authentication Error in WCF We are connecting to a WCF web service which has Anonomous Access turned off, Windows Authentication turned on. The web.config file has a local user account for allow users and deny users="?". I can download and generate the service proxy fine (being prompted for creds), however ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ant's wrong directory on property I'm a newbie on Ant so instead of posting this on the official buglist(because its probably not a bug), I decided to post here: When I run my Ant build.xml file everything works well except for the build directory, that instead of translating the property ${classes.dir} into build/v...
{ "language": "en", "url": "https://stackoverflow.com/questions/192684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hotkeys override Difficult question. The answer is probably no, if all I found in the Intertubes is right, but it is worth a try. I need to override the Ctrl + Shift + Esc and the Ctrl + Esc combinations. It would be good to be able to override the Win key combinations, but I have a low level hook that does such, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is an efficient way to check the precision and scale of a numeric value? I'm writing a routine that validates data before inserting it into a database, and one of the steps is to see if numeric values fit the precision and scale of a Numeric(x,y) SQL-Server type. I have the precision and scale from SQL-Server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How Do You Fix A Parameter Names Mismatch - DOJO and PL/SQL How do you fix a names mismatch problem, if the client-side names are keywords or reserved words in the server-side language you are using? The DOJO JavaScript toolkit has a QueryReadStore class that you can subclass to submit REST patterned queries to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Consuming web services with jboss Can someone point me a good step-by-step tutorial to consuming an already running web service in java? PS: I tried creating the classes with wsconsume, but it cries with [ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0. (my web service is rpc/encoded) If I can consume web s...
{ "language": "en", "url": "https://stackoverflow.com/questions/192702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating Recordset with SQL statement I am trying to create a recordset in Access VBA that will show me all records in a table related to the current record of a form. My current code looks like this: Private Sub Form_Load() Dim rst As Recordset Set rst = CurrentDb.OpenRecordset("Select [ID], [Ln] From [O...
{ "language": "en", "url": "https://stackoverflow.com/questions/192707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MVC with SharePoint * *We are looking to use the MVC Framework in our SP Application. *This is what we are trying to accomplish... A virtual directory within the SPSite which can host and run MVC. for e.g., /_layouts/MVC/ Any hints on the required configuration changes (if at all this is possible) will be very ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to explode an array so that its elements can be passed to a method with the params keyword? Take this non-compiling code for instance: public string GetPath(string basefolder, string[] extraFolders) { string version = Versioner.GetBuildAndDotNetVersions(); string callingModule = StackCrawler.G...
{ "language": "en", "url": "https://stackoverflow.com/questions/192715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is standard CLR XML for a concrete generic that is an array? This is a simple issue of me not knowing proper Xml syntax. In castle windsor I can duplicate this line of code: IoC.Container.AddComponent<IInputRequestedDialog<string>, SealsInputDialog>("seals"); With this Xml: <component id="seals" service=...
{ "language": "en", "url": "https://stackoverflow.com/questions/192717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JNDI without a J2EE Container (with JNP? Maybe some other provider?) I need to run a JNDI provider without the overhead of a J2EE container. I've tried to follow the directions in this article, which describes (on page 3) exactly what I want to do. Unfortunately, these directions fail. I had to add the jboss-comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/192718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a limit to how much a website should track the actions of a visitor and/or user to that website? Once a user starts a session (or logs in, for a registered user, to associate over multiple sessions), their specific page views are followed. The data can then be used in a number of ways from targeted advertis...
{ "language": "en", "url": "https://stackoverflow.com/questions/192719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why shouldn't I use Objective C 2.0 accessors in init/dealloc? In @mmalc's response to this question he states that "In general you should not use accessor methods in dealloc (or init)." Why does mmalc say this? The only really reasons I can think of are performance and avoiding unknown side-effects of @dynamic sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/192721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Is there somewhere I can search for available webservices? I'm wondering if there is a website that collects (and hopefully updates) information on available web services. Edit: Thanks for all the info; many good answers. I can only accept 1 as the "accepted answer" at this time, so I picked my favorite one. A: Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/192723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why is Erlang crashing on large sequences? I have just started learning Erlang and am trying out some Project Euler problems to get started. However, I seem to be able to do any operations on large sequences without crashing the erlang shell. Ie.,even this: list:seq(1,64000000). crashes erlang, with the error: ehe...
{ "language": "en", "url": "https://stackoverflow.com/questions/192725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I make git-svn use a particular svn branch as the remote repository? A word of warning: I'm a n00b to git in general. My team uses feature branches in svn, and I'd like to use git-svn to track my work on a particular feature branch. I've been (roughly) following Andy Delcambre's post to set up my local git re...
{ "language": "en", "url": "https://stackoverflow.com/questions/192736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Proper way to connect ODBC data source with Delphi 2006+? What's proper way to connect ODBC datasources and execute some SQL statements? TQuery and other BDE components can do it, but if I understood correctly they are now deprecated? A: You can use the ADO components: 1) Drag a TAdoConnection from the dbGo tab. 2)...
{ "language": "en", "url": "https://stackoverflow.com/questions/192742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Weird positioning behaviour using ASP.Net, CSS, VS 2008, in IE7 I am working on a webpage in ASP.Net/C# that uses absolute positioning for a textbox, for several in fact. It was working just fine, until I added some more text boxes. That is, the existing text boxes still positioned correctly, but the new ones did no...
{ "language": "en", "url": "https://stackoverflow.com/questions/192748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MSDTC and Oracle transaction locks after abort has been called? I’m running into problems using MSDTC and Oracle. It’s a .net application and I’m using the TransactionScope class to control the transactions. The problem is that, sometimes, if the transaction is rolled back (scope.Dispose is called without having cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/192756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I register domain names programmatically? Any domain name registrars out there that support domain name registration using a web service or a similar functionality without them telling you to become a reseller? I don't register that many domain names and I am not interested in paying reseller fees. If I can b...
{ "language": "en", "url": "https://stackoverflow.com/questions/192767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ZeroConf extension that can be used in Firefox/XULRunner? Is there a ZeroConf client extension for Firefox/XULRunner to be used in a zeroConf environment based on either mDNS or SLP? I know of an extension already that's being developed by the ActiveState Open Komodo folks but it requires PyXPCOM support to be baked...
{ "language": "en", "url": "https://stackoverflow.com/questions/192773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating output m-file in matlab Suppose I have an M-file that calculates, for exampleת d=a+b+c (The values on a, b, c were given earlier). What command should I use in order to produce an output M-file showing the result of this sum? A: In Matlab a semicolon ";" at the end of a line suppresses output. So, >> d...
{ "language": "en", "url": "https://stackoverflow.com/questions/192796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Non-trivial data binding Trivial data binding examples are just that, trivial. I want to do something a little more complicated and am wondering if there's an easy, built in way to handle it. public partial class Form1 : Form { public Form1() { InitializeComponent(); List<DataStruct> list = new List<Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/192801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SVN checkout filtered by file extension? I have a home-grown automated build script in the form of a DOS batch file. In part of that script, I check out (with "svn checkout") a section of our SVN repository that includes a bunch of third-party stuff that's used in our projects. This batch file performed pretty wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/192810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: IIS Manager IIS6 Rights Management on Windows Server 2003 We are using a dedicated hosting provider to host several of our public websites. There are two development teams/divisions within our company who each maintain public websites on these same servers. Is there a way through ACLs or some sort of rights manage...
{ "language": "en", "url": "https://stackoverflow.com/questions/192811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: #warning directive in VB.net I know the #warning directive does not exist in vb.net... is there anything like it? I want to be able to throw messages (warnings) at compiler time. A: As far as I've ever been able to find... no. A: It's not the same as preprocessor warning, but in the most cases where I need a warni...
{ "language": "en", "url": "https://stackoverflow.com/questions/192822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SVN checkout ignore folder Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server. edit: Ignore externals isn't an option. I have some externals that I need. A: With versions prior to 1.5 I have found that if you checkout only the top most folder and then selectively upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/192824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Can you freeze a C/C++ process and continue it on a different host? I was wondering if it is possible to generate a "core" file, copy if to another machine and then continue execution of the a core file on that machine? I have seen the gcore utility that will make a core file from a running process. But I do not thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/192838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can you get the terminal service client machine name from javascript? Is it possible to get the machine name, or IP, or MAC address (basically client network information) from javascript running Internet Explorer? I found the following code that seems to accomplish this: function Button1_onclick() { var locato...
{ "language": "en", "url": "https://stackoverflow.com/questions/192839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to save a PDF file Using NHibernate and SQL Server 2005 I'm developing a webapp where the user is given the chance to upload his resume in pdf format. I'm using NHibernate as a data mapper and MS SQL SERVER 2005. I want to be able to save the .pdf file to a given table... any ideas? Thank you very much! A: We a...
{ "language": "en", "url": "https://stackoverflow.com/questions/192862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set Windows process (or user) memory limit Is there any way to set a system wide memory limit a process can use in Windows XP? I have a couple of unstable apps which do work ok for most of the time but can hit a bug which results in eating whole memory in a matter of seconds (or at least I suppose that's it). This r...
{ "language": "en", "url": "https://stackoverflow.com/questions/192876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Creating a Outlook .MSG file in C# I've been tasked with writing a outlook .MSG files from XML files that have associated metadata. I've tried using the Aspose library, but all of the exposed MapiMessage properties are read only. Using the Outlook Object Model I'm unable to change the creation date, and other proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/192878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I stop Visual Studio from resizing my controls? Visual Studio 2008 SP1 (although IIRC, the behavior was present in 2005 as well) keeps resizing a couple of grid controls (Janus.GridEx to be precise) I use. I can resize them back to normal, save, and compile just fine. When it does compile, these two controls ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: .hide(), .show(), tables, and IE I have some nested tables that I want to hide/show upon a click on one of the top-level rows. The markup is, in a nutshell, this: <table> <tr> <td>stuff</td> .... more tds here </tr> <tr> <td colspan=some_number> <table> </table> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Performance of large EAV/open schema systems on SQL Server Has anyone implemented a very large EAV or open schema style database in SQL Server? I'm wondering if there are performance issues with this and how you were able to overcome those obstacles. A: Regardless of MS SQL Server versus any other brand of databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/192892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Wait cursor over entire html page Is it possible to set the cursor to 'wait' on the entire html page in a simple way? The idea is to show the user that something is going on while an ajax call is being completed. The code below shows a simplified version of what I tried and also demonstrate the problems I run into: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Software to Administrate Network Connections I need a software to admin my networks connections, I go to diferents clients with my notebook and I have to manually change my settings. Best software to do this? Windows and Mac, I use a MacBook with Vmware Fusion. A: Go to the Network tab in your system preferences an...
{ "language": "en", "url": "https://stackoverflow.com/questions/192902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML parsing - ElementTree vs SAX and DOM Python has several ways to parse XML... I understand the very basics of parsing with SAX. It functions as a stream parser, with an event-driven API. I understand the DOM parser also. It reads the XML into memory and converts it to objects that can be accessed with Python. G...
{ "language": "en", "url": "https://stackoverflow.com/questions/192907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: Best way to replace a whole directory tree in Subversion? Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others. What is the best way to update SVN to hold the the latest version of one of these proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/192915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Generating a globally unique identifier in Java Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent duplicates. The Fine Print: * *I'm not using an RDBMS, so I don't have any fancy sequence generators (such as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Best software for showing SQL Server Database Structure I have a MSSQL2005 DB with about 140 tables. I want to create either an accessible diagram or a printable API type document with the table structure. Is there a program that offers this kind of db visualization? I find the diagramming built into SQL Server to...
{ "language": "en", "url": "https://stackoverflow.com/questions/192923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL distinct for 2 fields in a database Can you get the distinct combination of 2 different fields in a database table? if so, can you provide the SQL example. A: You can get result distinct by two columns use below SQL: SELECT COUNT(*) FROM (SELECT DISTINCT c1, c2 FROM [TableEntity]) TE A: If you still want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: How to programmatically update the Outlook contact name resolution order When in Outlook 2003, open the Address Book, select Tools->Options. You get the address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will contain only "Cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/192938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Storing PCRE compiled regexes in C/C++ Is there an efficient way to store the compiled regexes (compiled via regcomp(), PCRE) in a binary file, so that later I can just read from the file and call regexec()? Or is it just a matter of dumping the compiled regex_t structs to the file and reading them back when needed?...
{ "language": "en", "url": "https://stackoverflow.com/questions/192940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is a good way to output an asp.net, C# GridView into a PDF I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to validate a user-entered URL in a Cocoa application? I am trying to build a homebrew web brower to get more proficient at Cocoa. I need a good way to validate whether the user has entered a valid URL. I have tried some regular expressions but NSString has some interesting quirks and doesn't lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/192944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pushing pixels on the iPhone What's the fastest way to get a framebuffer and render to in software on the iPhone? Basically getting into a mode 13h style thing going so I can make some effects? :) A: You need to create a CGImageContext, in a bitmap format that you can directly manipulate. Then, you can draw that im...
{ "language": "en", "url": "https://stackoverflow.com/questions/192951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Efficiently querying one string against multiple regexes Lets say that I have 10,000 regexes and one string and I want to find out if the string matches any of them and get all the matches. The trivial way to do it would be to just query the string one by one against all regexes. Is there a faster,more efficient way...
{ "language": "en", "url": "https://stackoverflow.com/questions/192957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: TListBox Drag and Drop problems with MultiSelect enabled I have a TListBox with multiselect and ExtendedSelect both set to true. I need to be able to drag multiple items in the list box to re-arrange them. My problem is what happens when the user clicks on an item that is already selected without holding down the C...
{ "language": "en", "url": "https://stackoverflow.com/questions/192960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to simplify (reduce number of points) in KML? I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this http://alpha.fores...
{ "language": "en", "url": "https://stackoverflow.com/questions/192976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Using Javascript to perform a process and send updates/callbacks to a webserver I am working on a process to allow people to upload PDF files and manage the document (page order) via a web based interface. The pages of the PDF file need to be cropped to a particular size for printing and currently we run them throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/192978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Boiler plate code replacement - is there anything bad about this code? I've recently created these two (unrelated) methods to replace lots of boiler-plate code in my winforms application. As far as I can tell, they work ok, but I need some reassurance/advice on whether there are some problems I might be missing. (fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/192980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Setting tab size in TableCellRenderer I have a class which extends DefaultTableCellRenderer, which renders strings in a monospace font, with a particular color. By default, it appears that tabs are not rendered at all (0 spaces). How can I set the tab size and/or cause them to be rendered? edits: By "tabs" I mean ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/192985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: QuickTime video codec configuration So I'm porting an app from Windows to Mac, and part of the app deals with creating movie files. On Windows, there's a group of functions like ICOpen and ICConfigure, which signify to the video compression driver to open up a configuration box for the selected codec. Is there any...
{ "language": "en", "url": "https://stackoverflow.com/questions/192986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binary Database Aligned or Packed Is there a way to see, via hex editor or otherwise, if data in a binary file is aligned or packed, specifically for an HPUX system? A: If you know what you are looking for and can recognize it in a hex dump, then you can make informed estimates about whether the data is aligned or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET webservice using an instance of a parameter type? I have a Windows forms project and a Web Service project in my solution, and I'm trying to call the web service and return a customer object as the result. The problem is that when I try to receive the return object, I get an error that it can't convert it. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SharePoint site definitions not showing up in template list -- why? I have some custom SharePoint site definitions that are deployed via SharePoint wsp solution packages. They appear to work fine. I can deploy them fine via the stsadm command line, and my C# code running in some features can also deploy sites base...
{ "language": "en", "url": "https://stackoverflow.com/questions/192998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Capicom 3des: 2 key or 3 key? Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. (.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES) Anyone know which one it is using? A sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/193002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are WPF more 'flashy-like' than winforms? I just installed visio, and the installer almost seemed like it was built in flash. The buttons kinda glowed when I hovered over them, and when I clicked on 'continue' the form phased out in a cool way. I'm assuming it was built in WPF. Anyhow, so are WPF more flash-like (vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/193005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reverse engineering war stories Sometimes you don't have the source code and need to reverse engineer a program or a black box. Any fun war stories? Here's one of mine: Some years ago I needed to rewrite a device driver for which I didn't have source code. The device driver ran on an old CP/M microcomputer and dro...
{ "language": "en", "url": "https://stackoverflow.com/questions/193016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How do I use constants from a Perl module? If I define a constant in a Perl module, how do I use that constant in my main program? (Or how do I call that constant in the main program?) A: package Foo; use Readonly; Readonly my $C1 => 'const1'; Readonly our $C2 => 'const2'; sub get_c1 { return $C1 } 1; perl -MFoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/193020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Set ContentPlaceHolder data through code ASP.NET Is it possible to set the data in a ContentPlaceHolder through code? This is what I am thinking of: dim oCPH as new ContentPlaceHolder oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page oCPH.content = "content here" '<-- not real c...
{ "language": "en", "url": "https://stackoverflow.com/questions/193039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does PHP have a DEBUG symbol that can be used in code? Languages like C and even C# (which technically doesn't have a preprocessor) allow you to write code like: #DEFINE DEBUG ... string returnedStr = this.SomeFoo(); #if DEBUG Debug.WriteLine("returned string =" + returnedStr); #endif This is something I like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/193044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Web services and database concurrency I'm building a .NET client application (C#, WinForms) that uses a web service for interaction with the database. The client will be run from remote locations using a WAN or VPN, hence the idea of using a web service rather than direct database access. The issue I'm grappling wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/193047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an alternative to RawInput in Mac OS X/Linux I'm developing an application that runs on a machine that has several usb keyboards attached. Occasionally keyboards will added or removed. Each time a key is pressed, the application needs to find out which key was pressed, and which keyboard was used. I have g...
{ "language": "en", "url": "https://stackoverflow.com/questions/193073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What slows down growing database performance? I'm creating a database, and prototyping and benchmarking first. I am using H2, an open-source, commercially free, embeddable, relational, java database. I am not currently indexing on any column. After the database grew to about 5GB, its batch write speed doubled (the...
{ "language": "en", "url": "https://stackoverflow.com/questions/193076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Standalone Python applications in Linux How can I distribute a standalone Python application in Linux? I think I can take for granted the presence of a recent Python interpreter in any modern distribution. The problem is dealing with those libraries that do not belong to the standard library, i.e. wxPython, scipy, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/193077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: HOWTO: specify in app.config to call a function before Main() is called? I really want to put in some sort of section handler into App.config that will execute some code before the application actually starts executing at Main. Is there any way to do such a thing? A: Not sure what you're trying to accomplish...but...
{ "language": "en", "url": "https://stackoverflow.com/questions/193080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is your favorite source formatting tool? We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace and readability....
{ "language": "en", "url": "https://stackoverflow.com/questions/193089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - How to add an Excel Worksheet programmatically - Office XP / 2003 I am just starting to fiddle with Excel via C# to be able to automate the creation, and addition to an Excel file. I can open the file and update its data and move through the existing worksheets. My problem is how can I add new sheets? I tried: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/193092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Why can't .NET parse a date string with a timezone? .NET throws an exception trying to parse a datetime string in this format: Fri, 10 Oct 2008 00:05:51 CST Convert.ToDateTime("Fri, 10 Oct 2008 00:05:51 CST") results in an exception: The string was not recognized as a valid DateTime. There is a unknown word st...
{ "language": "en", "url": "https://stackoverflow.com/questions/193095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is VS Debugger Wrong? IndexOutOfRangeException thrown by the code: f++ Why is an exception being thrown in the "f++" part of the code below ("IndexOutOfRangeException was unhandled by user code"): for (int f = 0; f < gnf; f++) { fieldNames[g] = grid.FieldName(f); } The bug is in the "fieldNames[g] = ......
{ "language": "en", "url": "https://stackoverflow.com/questions/193096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing .net Framework 3.5SP1 on top of 3.0 - as simple as "install and go"? This maybe a stupid question, but as I can not easily undo my change if I decide to do it, I think i'd ask here first: I got a Sharepoint 2007 Server. Pretty standard stuff: Windows 2003 (32-Bit), IIS 6, Sharepoint 2007, .net 3.0. At the...
{ "language": "en", "url": "https://stackoverflow.com/questions/193104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print text in Oracle SQL Developer SQL Worksheet window I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as PRINT 'Querying Table1'; SELECT * from Table1; What do I use to Print / show text output? It's not Print, because that gives me the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/193107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Using pbuffer with GLUT? I have been scouring the web for a code sample that shows how to use pbuffer with GLUT but I could not find anything... I am puzzled with the context switching between pbuffer and the rendering window. I guess that I will have to use glutSetWindow to switch between the two rendering surface...
{ "language": "en", "url": "https://stackoverflow.com/questions/193118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can my iPhone Objective-C code get notified of Javascript errors in a UIWebView? I need to have my iPhone Objective-C code catch Javascript errors in a UIWebView. That includes uncaught exceptions, syntax errors when loading files, undefined variable references, etc. This is for a development environment, so it...
{ "language": "en", "url": "https://stackoverflow.com/questions/193119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: How to use prepared statements with Enterprise Library? Is there a way to tell Enterprise Library to use prepared statements? If so, how? A: The short answer is to use DbCommand.Prepare(); The long answer is that it is completely irrelevant, and results in a noop, when calling stored procedures. Also, it should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/193123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to translate Unicode character I have an ASPX page that creates an XMLDocument object from SQL data and then transforms it into another XML document (RSS feed) using an XSLT file with XPathNavigator and XslCompiledTransform. Occasionally the data will contain smart quotes (\u2019) which results in an error (...
{ "language": "en", "url": "https://stackoverflow.com/questions/193124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }