text
stringlengths
8
267k
meta
dict
Q: Using jQuery tablesorter to sort mm/yy dates I am using the jquery tablesorter plugin to sort a table. On of my the columns in my table shows the date in mm/yy format. <tr> <td class="col-name">...</td> ... <td rel="2000" class="col-dob">10/00</td> ... </tr> <tr> <td class="col-name">...</td> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Wiki rendering engine for C#? like redcloth, bluecloth, or something decent We have used the redcloth and bluecloth wiki renderer's with Ruby, basically you can do something like this... html = RedCloth.to_html(wiki_content) and poof, you get back HTML. Is there something out there for C#/.NET ? A: try http://wikip...
{ "language": "en", "url": "https://stackoverflow.com/questions/450937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Find out the real file type I am working on an ASP web page that handles file uploads. Only certain types of files are allowed to be uploaded, like .XLS, .XML, .CSV, .TXT, .PDF, .PPT, etc. I have to decide if a file really has the same type as the extension shows. In other words if a trojan.exe was renamed to har...
{ "language": "en", "url": "https://stackoverflow.com/questions/450947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PowerShell Windows Installer Com Object I'm trying to modify the contents of an MSI file using Powershell. To do so I create an instance of a WindowsInstaller.Installer then use $installer.OpenDatabase and $database.OpenView. Similar functionality works in VBScript and I've seen samples on-line that appear to work...
{ "language": "en", "url": "https://stackoverflow.com/questions/450953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Going beyond the iframe I am trying to get an iframe B communicate with site A. I've searched and searched and every thing I read says it's impossible if they are of different domain (the iframe src is coming from a sub domain). I want to communicate because my company has ads on its page and it needs to refresh the...
{ "language": "en", "url": "https://stackoverflow.com/questions/450960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do common JARs have to be repeated across WARs in an EAR? I have a JAR file for authorization. I need it for each of my WAR files. All the WAR files are packaged in an EAR file. Do I have to repeat this common JAR in every WAR, or is there a structure for common libraries? So my example looks something like this....
{ "language": "en", "url": "https://stackoverflow.com/questions/450965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Seeing the windows of a process running as System account or as a service Suppose you have a process which run as as service as the System Account, is it possible to view the content of the windows created by the processes created by the service. Suppose for example, that you have a service running as a kind of wrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/450966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I read a Django HTTPResponse in Flex? I'm a complete Flex noob, so I apologize in advance if I'm missing something obvious. I wrote a fairly simple file uploader in Flex, which calls my Django back-end via URLRequest (the FileReference object handles the upload). My upload works as intended and I have Django...
{ "language": "en", "url": "https://stackoverflow.com/questions/450976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error HRESULT E_FAIL when creating Exchange mailbox (CDOEXM.IMailboxStore.CreateMailbox) I am trying to automate the process of creating an Exchange Mailbox for AD users and am running into an issue. When calling the CreateMailbox method I am receiving the error "Error HRESULT E_FAIL has been returned from a call t...
{ "language": "en", "url": "https://stackoverflow.com/questions/450992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Growing MS Access File Size problem I have a large MS Access application with a lot of computations in VBA code. When I run it it eventually crashes due to excessive file size. There are a lot of intermediate tables and queries created and subsequently deleted, but Access does not reclaim the space. I have dilige...
{ "language": "en", "url": "https://stackoverflow.com/questions/450995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP Session variable timeout My application uses some session variables that are timing out even though I thought they would not because I've got the following setting in php.ini: session.cookie_lifetime = 0 The other session settings in php.ini are pretty much set as their defaults. How do I make sure the session v...
{ "language": "en", "url": "https://stackoverflow.com/questions/450997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Are you missing an assembly reference?" compile error - Visual Studio I am currently working on a server control for other applications in our company to interface with a WCF service. Every time I make a change code change and recompile the control, I increment the the AssemblyVerison and AssemblyFileVersion clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/450999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Best Java supported server/client protocol? I'm in the process of writing a client/server application which should work message based. I would like re-use as much as possible instead of writing another implementation and curious what others are using. Features the library should offer: * *client and server side f...
{ "language": "en", "url": "https://stackoverflow.com/questions/451004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Eager Load entire SQL table in LINQ? Writing my first Linq application, and I'm trying to find the best way to do the following: I want to load the entire employees table at once to populate the cache (used for form autocomplete). I can do - var query = from employee in db.Employees select employee; foreach...
{ "language": "en", "url": "https://stackoverflow.com/questions/451006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VB.NET Function Return In order to return a value from a VB.NET function one can assign a value to the "Functions Name" or use "return value." I sometimes see these inter-mixed in the same function. Personally, I prefer the return. My question is, what is the internal difference, if any, between the two? A: Doing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Feasibility of ASP.NET based MMOG I want to develop ASP.NET C# based MMOG (Massively multiplayer online game). I would be using ASP.NET Ajax control kit, jquery and MS SQL server 2005. Q.1)How feasible .NET 3.5, ASP.NET with C# in handling thousands of users simultaneously. I would also incorporate ASP.NET ajax bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/451026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to edit default templates for database objects using VSTS 2008 Database Edition GDR Version I'm giving Visual Studio Team System 2008 Database Edition (GDR Version) a go on a new project I'm working on and have come up against a slightly annoying problem that I am hoping someone knows how to resolve. In a nutshe...
{ "language": "en", "url": "https://stackoverflow.com/questions/451032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use new keyword if hiding was intended I have the following snippet of code that's generating the "Use new keyword if hiding was intended" warning in VS2008: public double Foo(double param) { return base.Foo(param); } The Foo() function in the base class is protected and I want to expose it to a unit test by put...
{ "language": "en", "url": "https://stackoverflow.com/questions/451035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Query/Where dialog in Oracle Forms 10g In Oracle Forms 6i, you could enter query mode in your form, and type & or :A in a field, and when you executed the query, a Query/Where dialog box would open, allowing you to enter more complex query or sorting criteria than just entering data in the fields allows. This doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/451047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you expose the state of a SharePoint Workflow instance? I have a fairly straight-forward sequential approval workflow that has an EnableModificationActivity that is in scope for just about the entirety of the workflow. My modification form is an ASPX page that gives the user the ability to enable/disable app...
{ "language": "en", "url": "https://stackoverflow.com/questions/451055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a derived ComboBox with pre-bound datasource that is designer friendly? I'd like to create a derived control from System.Windows.Forms.ComboBox that is bound to a list of objects that I retrieve from the database. Idea is other developers can just drop this control on their form without having to worr...
{ "language": "en", "url": "https://stackoverflow.com/questions/451058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL nvl equivalent - without if/case statements & isnull & coalesce Are there any nvl() equivalent functions in SQL? Or something close enough to be used in the same way in certain scenarios? UPDATE: no if statementsno case statementsno isnullno coalesce select nvl (purge_date,"SODIUFOSDIUFSDOIFUDSF") from id_rec w...
{ "language": "en", "url": "https://stackoverflow.com/questions/451060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vs2008 circular references (c#) Here's the setup I have in a vs2008 solution: Data layer in a project named MyProject.Data Web application in a project named MyProject.Web MyProject.Web has a reference to MyProject.Data In MyProject.Web I have a class I use called "MySite.Utils" I want to be able to use MySite.Utils...
{ "language": "en", "url": "https://stackoverflow.com/questions/451068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I fill in an encrypted PDF with iTextSharp? I have a fillable, saveable PDF file that has an owner password (that I don't have access to). I can fill it out in Adobe reader, export the FDF file, modify the FDF file, and then import it. Then I tried to do it with iText for .NET. I can't create a PdfStamper from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Generating a lot of static html I have a process that will need to generate a lot of static html from a set of data. The html is relatively complex and I want the maintenance to be fairly simple so I don't want to embed much if any html in program code. At my company the blessed tool set is .net or php. My initi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to do effective paging in Classic ASP? I'm trying to page a table, and while I have paging already working, it displays every page in a single line along with Previous/Next links, causing the HTML page to break if there are a lot of results (which often there are). What I'd like to do is display the pages in bat...
{ "language": "en", "url": "https://stackoverflow.com/questions/451080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AS3 - How to do a synchronous load of an asynchronous call? I have a function that loads a user object from a web service asynchronously. I wrap this function call in another function and make it synchronous. For example: private function getUser():User{ var newUser:User; var f:UserFactor...
{ "language": "en", "url": "https://stackoverflow.com/questions/451090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exception that goes away with Clean/Rebuild. How to diagnose/prevent? Pre-Problem: our office was hit by a worm due to a corporate patching oversight, and the boys in the lab repaved my machine. I needed to re-install all my development tools (Visual Studio 2005, SP1, and the Web Application Project Setup patch) aga...
{ "language": "en", "url": "https://stackoverflow.com/questions/451095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute Trigger on View? I am not too familiar with database triggers and/or views. I am currently using PostgreSQL and HSQL; although the database is not too important. I am just wondering if any database offers something like this: I have an (example) table like this: CREATE TABLE DUMMY_TABLE (ID INTEGER, NUMBER...
{ "language": "en", "url": "https://stackoverflow.com/questions/451096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Implementing a bidirectional enumerator in C# Is there a way to use yield blocks to implement an IEnumerator<T> which can go backward (MoveLast()) as well as forward? A: No, the state machine generated by the C# compiler is strictly forward. It doesn't even make sense to go backwards in many cases. Imagine an itera...
{ "language": "en", "url": "https://stackoverflow.com/questions/451099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to work with the data in Binary in C/C++ I have to do some work work with integers, but I am interested in treat them as binary data, in a way that for example I can take the 4 most significant bits of an 32 bit value. What I am trying to do is, I have several 32 bit value I want to take for example, in the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/451102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to write the contents of b.aspx on a.aspx? Here is the scenario: I have two asp pages. a.aspx is layout and b.aspx is content. I want to display the contents of b.aspx inside a <div> on a.aspx. I know with PHP you can do it like so: //a.php <html> <head> <title>test</title> </head> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/451125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to define an object whose address is null? I am wondering how I can define an object in C whose reference will be null? // definition of foo ... void * bar = &foo; // bar must be null There is some ways I could find to do it, but none fit my needs. __attribute__((weak)) extern int foo; //not working with cygwi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sql Server Reporting Service without Full SQL Server I am going to use SSRS to generate report for my website. Scenario: I have 2 servers, Application server & Database Server. I want to have reports(.rdl files) sitting on Application server(IIS) accessing data on SQL server(Database Server) In order to fulfil the...
{ "language": "en", "url": "https://stackoverflow.com/questions/451132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add something to each route in Rails? Is there an easy way to add a permanent string to every route in a Rails app, given that I already have quite a few resources specified and don't want to refactor all into a namespace? Can I do something along the lines of map.root 'myappnamehere' and have that string...
{ "language": "en", "url": "https://stackoverflow.com/questions/451138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The diff between openssl-2 and openssl-3 New to this. How can you tell what the openssl version is and what's the diff? A: Find the current OpenSSL version on the OpenSSL webpage (0.9.8k as of 25-Mar-2009 and 1.0.0, third beta as of 15-Jul-2009). OpenSSL is a implementation of the TLS cryptographic protocol suite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do you know of a resource that lists all the font-families with their fall-backs that are good on the web? Note: I've made a few edits here as I didn't get my question across very well the first time around. Update: After doing some of my own research on this subject, I've come up with a perfect example of why I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to use private field conventions for Fluent NHibernate Automapping? How can I map to a private field with fluent NHibernate AutoPersistenceModel? public class A { private List<B> myField; public A() { myField = new List<B>(); } public ILis...
{ "language": "en", "url": "https://stackoverflow.com/questions/451159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Storing Username/Password During Processing Working inside the context of an ASP.NET application I am creating a page that will be able to execute database scripts against one of many databases in our environment. To do this we need to prompt the user for a username/password combination, this value can be used for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Any free tools for webservice testing with NTLM2 support? What tools are free tools are available for testing WebServices that are behind NTLM2 authentication. SoapUI Is Excellent tool with all functionality that I need, however, it doesn't support NTLMv2. If someone has a way of making that work, please provide sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/451170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stopping inheritance without using final Is there any other method of stopping inheritance of a class apart from declaring it as final or by declaring its constructor as private? A: * *Use final *Use private constructors *Use a comment: // do not inherit *Use a javadoc comment *Make every method final, so peo...
{ "language": "en", "url": "https://stackoverflow.com/questions/451182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: mod_rewrite, .htaccess connecting to mysql database I would like mod_rewrite in an .htaccess file to link to a mysql database to provide me with mapping information. Specifically, I am using a single code base to host multiple sites so..if a user requests an image, for example: http://www.example.com/images/car.jpg ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I get around a 'die' call in a Perl library I can't modify? Yes, the problem is with a library I'm using, and no, I cannot modify it. I need a workaround. Basically, I'm dealing with a badly written Perl library, that exits with 'die' when a certain error condition is encountered reading a file. I call this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How to send input to the console as if the user is typing? This is my problem. I have a program that has to run in a TTY, cygwin provides this TTY. When I redirect stdIn the program fails because it does not have a TTY. I cannot modify this program, and need some way of automating it. How can I grab the cmd.exe win...
{ "language": "en", "url": "https://stackoverflow.com/questions/451228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Check if a DataGridView/BindSource have changed data I have a WinForms app with a datagridview and a bindingsource. I want the user to confirm changes before I save them to the database. I don't want to pop up the confirmation dialog unless I know the user has made changes. So I need a way to check if changes ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/451247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does my VB.NET class library show "My" and "My.Resources" namespaces in Reflector? I have no intention of using "My" for anything in any of my projects. I haven't done anything with it (that I know of). But every one of class libraries shows a "My" namespace in Reflector and NDepend. This adds a lot of unneces...
{ "language": "en", "url": "https://stackoverflow.com/questions/451273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why is "Microsoft.VisualBasic.Compatibility.dll" missing from the .NET Framework v1.1.4322 folder? I've started to use a Vista machine for development. In case it is significant: I'm using MSBee so that I can code in the Visual Studio 2005 IDE while still building against the 1.1 framework. On the Vista machine, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/451274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I configure authentication between linked servers? I am trying to test a proof of concept that I can run a distributed transaction across two linked SQL Servers, linked using sp_addlinkedserver - their names are Server1 and Server2, both running under default instances. Each server holds a single database, S...
{ "language": "en", "url": "https://stackoverflow.com/questions/451280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running a JNI application in the Sun VM under Valgrind The sun JVM spits out a LOT of extra noise when run under valgrind, which makes tracking memory problems in the application very challenging. I'd like to find either a suppression file, or a VM runtime mode, that will strip out spurious memory errors in order to...
{ "language": "en", "url": "https://stackoverflow.com/questions/451282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: algorithm to convert pathname to unique number I want to convert windows pathname to unique integer. Eg: For pathname C:\temp\a.out, if i add ascii value of all the characters, i get 1234. But some other path can also generate the same number. So, what is the best way to generate unique numbers for different pathna...
{ "language": "en", "url": "https://stackoverflow.com/questions/451285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you show the Windows Explorer context menu from a C# application? I have a file listing in my application and I would like to allow people to right-click on an item and show the Windows Explorer context menu. I'm assuming I would need to use the IContextMenu interface, but I'm not really sure where to start. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Deleting files securely in delphi7 I need to delete my input file securely once I have finished with it, at the moment I'm overwriting all the data with zero, this is messy as my temp folder becomes full of old files also the name of the files is a security issue. Rather than just moving them to the recycle bin I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/451288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Format cell color based on value in another sheet and cell I have a workbook with two sheets. I would like to format the cell background color in the first column of sheet 1 based on the values in the second column of sheet 2. For example, if the value of of sheet2, row 6, column 2 is say, 4, then I would like the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/451297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: MVC frameworks for .NET desktop applications I've been playing a lot with MVC lately in the forms of ASP.NET MVC and Django (MTV actually) and I must say that I love it. Are there any similar frameworks for creating desktop WinForm apps? A: Not that I know of. Most of my Winforms apps use the MVC or MVP pattern tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/451300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Datasource returned from Informix Stored Proc I have an Informix stored procedure that returns two columns and multiple rows. I can use "EXECUTE FUNCTION curr_sess(2009,'SP')" fine, but how do I get the results into a temp table. EDIT: We are on version 10.00.HC5 Testing Jonathan Leffler's idea didn't work. EXECUTE...
{ "language": "en", "url": "https://stackoverflow.com/questions/451302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GSA Wrapper in java? Does anybody knows a good wrapper implementation for Google Search Appliance? A: Give this a look: http://gsa-japi.sourceforge.net/gsa-japi.html
{ "language": "en", "url": "https://stackoverflow.com/questions/451303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Continuous Integration Fix for NAnt 0.86 Beta 1 with .NET 3.5 I have been trying to use the latest NAnt (0.86 Beta 1) for a few weeks now in several .NET 3.0/3.5 projects as using multiple .sln solution files to build the platform code on my build server but alws ran to error and having this problem : BUILD FAILED ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing command output in .NET I want to connect up to a database server in my .NET app and execute a database command that produces a series of database statistics. The problem is that it doesn't return the stats in a structured format, it returns it in plain text (like a df -k command in UNIX) I can capture the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validating an RSS feed I'm working on an application that allows users to add their own RSS feeds to a simple reader of sorts. Currently, I'm using xml_domit_rss as the parser but I'm unsure if it's actually validating the URL before parsing. From what I can gather online, it looks as if validating is separate from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SaveFileDialog blocking removeable drive I'm using a SaveFileDialog to let a user pick a directory and filename on a removeable drive. Afterwards I create that file, write to it, and close it again. By then the file itself is not locked (editable, deleteable), but I can't eject the drive because windows claims it is...
{ "language": "en", "url": "https://stackoverflow.com/questions/451340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: LINQ Incompatibility Issue with SQL Server 2000 I have a Linq to SQL query that was working just fine with SQL Server 2005 but, I have to deploy the web app with a SQL Server 2000 and, when executing that query, I get his error: "System.Data.SqlClient.SqlException: The column prefix 't0' does not match with a table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: in ruby, how can I know what module is defined as result of a 'load' or 'require'? In ruby, if I do "require foo", is there a way to subsequently determine the name of the module or modules defined in foo.rb? For example, say I have a ruby file named foo.rb that looks like this: # foo.rb module MyModule def self...
{ "language": "en", "url": "https://stackoverflow.com/questions/451347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XslCompiledTransform debugging in C# i've tried and tried and tried but i cannot manage to step into the XslCompiledTransform without having to load the stylesheet from disk (by passing a URI into the XslCompiledTransform.Load() method). I am fully aware that you can only step into the XslCompiledTransform.Transform...
{ "language": "en", "url": "https://stackoverflow.com/questions/451348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: remoteObject Fails After Recompiling Using CF8 I've been handed a Flex project that was originally built and compiled using Flex3 and CF7. My setup is Flex3 with CF8. Everything works fine when I initially pull the project over but as soon as I recompile, remote calls to the CFCs begin to fail. I used Charles Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/451351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access a .Net COM object hosted in a COM+ Server in .Net? This question is a follow-up to the answer given by Marc Gravell to my question Create Out-Of-Process COM in C#/.Net ?. I have chosen his proposed solution, but now am running in a different issue. Here is my situation: * *I implemented a "DataProvi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using JQuery and Prototype in the same page Several of my pages use both JQuery and Protoype. Since I upgraded to version 1.3 of JQuery this appears to be causing problems, because both libraries define a function named '$'. JQuery provides a function noConflict() which relinquishes control of $ to other libraries t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Interface Builder caching bad data (voodoo) Sometimes IB will hold onto old or bad references, and I cannot seem to remove or edit them. EDIT I have made this a wiki question with the intention of gathering more data on the phenomenon. Answers involving situations where other coders have encountered this are welcome...
{ "language": "en", "url": "https://stackoverflow.com/questions/451364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to remove a set string pattern in SSIS? i wish to modify a string. In ssis I have a step which is a "Derived column transformation editior". I have a string such as: edit=style?form=exy?test=x~~StringIWantToRemove I wish to remove "~~StringIWantToRemove" "~~" is the delimiter "StringIWantToRemove" is a random ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate the decimal point offset from 0 I'm having a bit of a go slow in the brain department today and thought maybe somone had done this before. Given the numbers below, what simple means could I use in Javascript to work out the decimal point as a number, eg: * *1 = Decimal point: 0 *10 = Decimal po...
{ "language": "en", "url": "https://stackoverflow.com/questions/451374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does it mean for a char to be signed? Given that signed and unsigned ints use the same registers, etc., and just interpret bit patterns differently, and C chars are basically just 8-bit ints, what's the difference between signed and unsigned chars in C? I understand that the signedness of char is implementatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/451375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: File download through WCF slower than through IIS The following method (in which I hopefully did not make any mistakes while dramatically simplifying it for this post) is working properly and set up using the Streamed transfer mode over the net.tcp protocol. The problem is that the performance is significantly wors...
{ "language": "en", "url": "https://stackoverflow.com/questions/451376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there an idiomatic way to listen for changes to the DOM using the Prototype library? I'm trying to add a listener to DOM change events. I was hoping something as simple as 'dom:loaded' was baked into Prototype. I'm not sure of the 'Prototype-way' to handle this. EDIT: I cannot control every case in which the DOM ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove uses of certain Java classes at compile time I am looking for a way to remove all uses of a particular class, including the class itself, at compile time. Basically a form of pre-processing, but I'd like to do it without having to surround all the instances with #ifdebug ... #endif. Is there any ant-based too...
{ "language": "en", "url": "https://stackoverflow.com/questions/451385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you test HTTPS with Rails script/server? I need to test HTTPS connections to my local Rails script/server instance in development it doesn't seem to be supported and I wasn't able to Google-up any solutions. Here's what it looks like from the client perspective: ted@teflon-ted ~/Downloads[master]$ grep tedsl...
{ "language": "en", "url": "https://stackoverflow.com/questions/451395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there any way to add values from 2 matrices together in order to get a 'grand total'? I have created a report in SSRS that contains 2 matrices (not tables/lists), each with a subtotal. What I am trying to work out is if there is any way to calculate a 'grand total' at the bottom of my report that is the sum of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/451396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the best font clarity to display on an HDTV with c#? This is for an arrivals/departures flight display. The display is difficult to read because of blurry fonts. The current state is an asp.net page displayed using internet explorer on a HDTV. From the software side, what can I do to produce good looking ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain a correct dump using mysqldump and single-transaction when DDL is used at the same time? I'm new to MySQL and I'm figuring out the best way to perform an on-line hot logical backup using mysqldump. This page suggests this command line: mysqldump --single-transaction --flush-logs --master-data=2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Make/makefile progress indication! Look at this makefile, it has some sort of primitive progress indication (could have been a progress bar). Please give me suggestions/comments on it! # BUILD is initially undefined ifndef BUILD # max equals 256 x's sixteen := x x x x x x x x x x x x x x x x MAX := $(foreach x,$...
{ "language": "en", "url": "https://stackoverflow.com/questions/451413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Simulating group_concat MySQL function in Microsoft SQL Server 2005? I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life). In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat f...
{ "language": "en", "url": "https://stackoverflow.com/questions/451415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "367" }
Q: Expose a specific .net object as JSON I'm currently enabling JSON calls to my web services using the ScriptService attribute. The problem is that one of my classes references a second class and .Net is not picking up and writing out the JavaScript for the second class. As a workaround I can write a dummy method t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Silverlight Crossdomain I've seen a lot of links to MSDN and "works on my machine!" answers so I'd like to ask my question with the exact steps to duplicate what I'm doing. Because we are using an already existing webservice, I'm asking with the context of having a webservice hosted outside of my project, unlike man...
{ "language": "en", "url": "https://stackoverflow.com/questions/451424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How do I calculate the area of a 2d polygon? Assuming a series of points in 2d space that do not self-intersect, what is an efficient method of determining the area of the resulting polygon? As a side note, this is not homework and I am not looking for code. I am looking for a description I can use to implement my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: iPhone SQLite DB and Web-based DB synchronization and interaction recommendations I'm in the process of developing my second iPhone application, and am looking for architectural recommendations on DB handling. The idea is: 1. A database of information is stored on a server (LAMP stack), and information is delivered ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Can two processes render to one OpenGL canvas? I have three different processes running on the same machine. One of them owns an OpenGL window. I would like the other two to be able to render (quickly) to different rectangular portions of the OpenGL window. If I can guarantee that they will nicely take turns execut...
{ "language": "en", "url": "https://stackoverflow.com/questions/451434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Factor out COALESCE function? I have a large query (not written by me, but I'm making some modifications). One thing that kind of bugs me is that I've got the same COALESCE function in about four places. Is there a way to factor that out, possibly by joining with a select from DUAL? Is there a performance benefit...
{ "language": "en", "url": "https://stackoverflow.com/questions/451449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Valid characters for Excel sheet names In Java, we're using the following package to programmatically create excel documents: org.apache.poi.hssf If you attempt to set a sheet's name (NOT file, but internal Excel sheet), you will get an error if: * *The name is over 31 characters *The name contains any of the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/451452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How to get a Static property with Reflection So this seems pretty basic but I can't get it to work. I have an Object, and I am using reflection to get to it's public properties. One of these properties is static and I'm having no luck getting to it. Public Function GetProp(ByRef obj As Object, ByVal propName as St...
{ "language": "en", "url": "https://stackoverflow.com/questions/451453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Tomcat: setup realm for authentication to use Windows users I'd like to setup Tomcat on Windows and have authentication in my web application be done against the Windows users (or a subset of those users). I read that if you have users setup on Active Directory, you can use the JNDI realm. What if you don't have Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/451456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DataTable to JSON I recently needed to serialize a datatable to JSON. Where I'm at we're still on .Net 2.0, so I can't use the JSON serializer in .Net 3.5. I figured this must have been done before, so I went looking online and found a number of different options. Some of them depend on an additional library, whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: I want pan and zoom functionality (like a MapView) on my own map image How can I get my own image to be able to pan and zoom (like a MapView)? A: I tried hosting an image in a WebView (built-in pan and zoom), but there were a number of problems. I ended up extending the View class and overriding onDraw. It was no...
{ "language": "en", "url": "https://stackoverflow.com/questions/451464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to print out dash or dot using fprintf/printf? As of now I'm using below line to print with out dot's fprintf( stdout, "%-40s[%d]", tag, data); I'm expecting the output would be something like following, Number of cards..................................[500] Fixed prize amount [in whole dollars]............[10...
{ "language": "en", "url": "https://stackoverflow.com/questions/451475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Returning Arrays from .net web service to Java ME web service results in compile error of stub? So, I'm getting some compile errors on netbeans 6.5 generated web service code for a java ME client to a c# (vs2005) web service. I've trimmed my example significantly, and it still shows the problem, and not being able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i determine which of my product's .net assemblies are registered, when i have several on my pc? I have the code for various versions of a software product I work on on my machine. The product includes one or more assemblies that are registered for com interop. How can I determine which one is currently regis...
{ "language": "en", "url": "https://stackoverflow.com/questions/451480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tag loses line breaks when setting innerHTML in IE I'm using Prototype's PeriodicalUpdater to update a div with the results of an ajax call. As I understand it, the div is updated by setting its innerHTML. The div is wrapped in a <pre> tag. In Firefox, the <pre> formatting works as expected, but in IE, the text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What is the best way to emulate an HTML input "maxlength" attribute on an HTML textarea? An HTML text input has an attribute called "maxlength", implemented by browsers, which if set blocks user input after a certain number of characters. An HTML textarea element, on the other hand, does not have this attribute. My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Why does Windows CE drop key events if you hog the UI thread Now I appreciate the moral of the story is "don't hog the UI thread" but we tried to KISS by keeping things on the UI thread for as long as possible but I think we've just hit the tipping point and we're going to have to change our design. But anyway........
{ "language": "en", "url": "https://stackoverflow.com/questions/451494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maintain multiple Visual Studio user options (suo) profiles I work in two environments with Visual Studio 2008: my laptop and my laptop+external monitor. When I work with a second monitor, I like for my solution explorer and other non-code windows to be on the second monitor, and my laptop screen to be just code fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/451495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to open a file inside a Test Project code folder? (Visual Studio 2008 and .NET C#) When I run a Test Project on Visual Studio I use the code below to access a file inside the test project code folder var Location = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetModules(...
{ "language": "en", "url": "https://stackoverflow.com/questions/451499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Designing a generic interface, require the type parameter on the type or method? I have a very thin interface that's going to define one method. Should I require the type parameter on the class definition? public interface ISomethingFun<T> { void Do(T item); } or method definition? public interface ISomethingFu...
{ "language": "en", "url": "https://stackoverflow.com/questions/451501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change table name when script a table from SQL Server SMO Let's say I have a table "foo" that I want to script out using SMO. Is there a way to have it so that in the generated script the table has a different name such as "foo2"? Database db = sqlServer.Databases["testdb"]; Table foo = db.Tables["foo"]; foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/451505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }