text
stringlengths
8
267k
meta
dict
Q: Can anyone recommend a good backup "system" for a developer? I'm known around the office as "the backup guy". As a developer, I often jump back and forth between projects, and as a result I don't always remember exactly what changes were present in each when I return to them. I usually have to compare my local chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/344281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best place to be kept updated on security flaws in softwares Where should one go to be kept updated on all of the security flaws/problems floating around? Specially in the era of open source where we tend to use libraries from everywhere. A: Here's a quick list: * *CVE *Security Focus *Secunia *CERT *FrSIRT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mock Objects in PHPUnit to emulate Static Method Calls? I am trying to test a class that manages data access in the database (you know, CRUD, essentially). The DB library we're using happens to have an API wherein you first get the table object by a static call: function getFoo($id) { $MyTableRepresentation = DB_D...
{ "language": "en", "url": "https://stackoverflow.com/questions/344315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to reference ViewData within a script block in ASP.NET MVC? I'd like to add a click handler for a button using jQuery, but the handler needs to reference data supplied by the controller. Is there a way to access ViewData in a script block in ASP.NET MVC? Or do I need to construct the script in the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/344316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where does gcc look for C and C++ header files? On a Unix system, where does gcc look for header files? I spent a little time this morning looking for some system header files, so I thought this would be good information to have here. A: In addition, gcc will look in the directories specified after the -I option. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "211" }
Q: Different output from midl.exe 6 and midl.exe 7 I'm tyring to convert a MSVC project from VS 2005 to VS 2008. It contains a IDL file that outputs a header and stubs used for RPC. The VS 2005 project uses MIDL.exe version 6.00.0366. The VS 2008 project uses MIDL.exe version 7.00.0500. Here's the problem: MIDL v6 ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/344320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to cause my VSTO 2005 SE Outlook Addin to crash so that it's disabled? For testing purposes I need to get my Outlook 2003 addin (vb.net) disabled so that it can only be reactivated through the help menu or by deleting the resilency key from within the registry. I tried to achieve this by creating an unhandled in...
{ "language": "en", "url": "https://stackoverflow.com/questions/344325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filtering an Objects Properties by Name I am doing some simple sanity validation on various types. The current test I'm working on is checking to make sure their properties are populated. In this case, populated is defined as not null, having a length greater than zero (if a string), or not equal to 0 (if an integer...
{ "language": "en", "url": "https://stackoverflow.com/questions/344327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows Mobile (C#) - Communicating between phone and PC I'm working on a project where a program running on the mobile phone needs to communicate with a program running on the PC it's connected to. Ideally, I'd like to use USB, WiFi, whatever to communicate. The two programs should be able to communicate things li...
{ "language": "en", "url": "https://stackoverflow.com/questions/344335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SVN says I need to perform cleanup, but the cleanup fails Duplicate: Working copy XXX locked and cleanup failed in SVN When I try to commit: Error: Working copy 'D:\Webs\Drupal 6' locked Error: Please execute the "Cleanup" command. When I try to do a cleanup: Cleanup failed to process the following paths: D:\We...
{ "language": "en", "url": "https://stackoverflow.com/questions/344341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Low pass filter software? I'm looking for digital low pass filter code/library/class for a .net windows forms project, preferably written in c, c++ or c#. I probably need to set the number of poles, coefficients, windowing, that sort of thing. I can't use any of the gpl'd code that's available, and don't know what e...
{ "language": "en", "url": "https://stackoverflow.com/questions/344343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stored procedure to modify bit flag, can't use Enums since many apps will be modifying it, what should I do? There is a column in a database that is of type INT (Sql server). This int value is used at a bit flag, so I will be AND'ing and OR'ing on it. I have to pass a parameter into my sproc, and that parameter will...
{ "language": "en", "url": "https://stackoverflow.com/questions/344350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Deriving static members I have a base class that has a private static member: class Base { private static Base m_instance = new Base(); public static Base Instance { get { return m_instance; } } } And I want to derive multiple classes from this: class DerivedA : Base {} class DerivedB : Base...
{ "language": "en", "url": "https://stackoverflow.com/questions/344363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error Installing TFS 2008 SP1, CREATE TABLE permission denied in database 'master' just now the dba let me connect to the database using Sql Server Management Studio, this is how i noticed that the default database for the tfs setup and service users is master, is this ok?, is this why I'm having this error?, Let m...
{ "language": "en", "url": "https://stackoverflow.com/questions/344372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ActiveX Document or something like it on C#/.NET How can I implement ActiveX Document on C#/.NET? (ActiveX Document can draw itself in IE) Update: I need a solution for drawing my own document type in IE windows (like MS Word or MS Excel draw its documents in IE). A: You need to dive into OLE for that purpose. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/344373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Advanced Search Form Validation in asp.net I'm looking to make validation for a page in which one or more fields have a value in them. I have an advanced search form in asp.net and I'm trying to pop up an error and not post back if all the fields are empty. I've looked into required fields validators but I'm not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/344379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is January month 0 in Java Calendar? In java.util.Calendar, January is defined as month 0, not month 1. Is there any specific reason to that ? I have seen many people getting confused about that... A: Probably because C's "struct tm" does the same. A: Because programmers are obsessed with 0-based indexes. OK,...
{ "language": "en", "url": "https://stackoverflow.com/questions/344380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "339" }
Q: Unit testing CLI/MFC Application I have CLI/MFC application and I would like to begin to learn how to unit test with it. I have VS2008 Pro. If possible, I would like to use the built in unit testing. Thanks for your input! A: I've had success with both CPPUnit and Google Test. For either you have to do a bit of...
{ "language": "en", "url": "https://stackoverflow.com/questions/344390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to drop and create new repositories with a subversion server? Ok so I just did something boneheaded. I'm setting up a subversion server for the first time ever that will be used by contractors. I did the 1 click setup, created my project and did my first check in of our application thinking that I'll go through...
{ "language": "en", "url": "https://stackoverflow.com/questions/344406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I set an absolute include path in PHP? In HTML, I can find a file starting from the web server's root folder by beginning the filepath with "/". Like: /images/some_image.jpg I can put that path in any file in any subdirectory, and it will point to the right image. With PHP, I tried something similar: include...
{ "language": "en", "url": "https://stackoverflow.com/questions/344419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Are there any project planning tools which can handle a estimate range? Some people have suggested that when doing an estimate one should make a lower and upper range on the expected time to delivery. The few project tools I have seen, seem to demand one fixed date. Are there any tools that support this concept ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: scope of returned object in javascript function How do I access 'a' below? var test = function () { return { 'a' : 1, 'b' : this.a + 1 //doesn't work }; }; A: You can't do it this way. When you are in the process of constructing an object (that's what you actually do using the curly brace...
{ "language": "en", "url": "https://stackoverflow.com/questions/344428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Response.Flush not working ASP.NET I have an aspx page where i am Processing a large number of records from a table and doing some manipulation.after each manipuation,(each record),I have a Response.Write("Record : "+rec); Response.Flush() I have set Response.Buffer property to false. It is working fine But If i wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/344430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Accessing Windows (XP) performance counters preferably in VBScript I'm testing a web application for browser memory leaks using Quick Test Professional (QTP) 9.5 and Internet Explorer 6. PerfMon works for monitoring the memory usage over time, but its data has to be synchronized to the testing results to find out w...
{ "language": "en", "url": "https://stackoverflow.com/questions/344437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get which page threw an exception to Application_error in aspx I have a general exception handler, Application_error in my global.asax where I'm trying to isolate all the uncaught exceptions on all my many pages. I don't want to use Page_error to catch exception because it's inefficient to call that on so man...
{ "language": "en", "url": "https://stackoverflow.com/questions/344440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Notification Library for Windows I'm developing a small tray-icon application for Windows and I need to display non-intrusive visual notifications similar to those that appear when you receive a new message in MSN Messenger or any other IM application. I have looked at Snarl, but it seems to be a separate applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/344442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why doesn't Entity Framework support ODBC? Is there a specific reason that the EF requires new data providers and can't make use of ODBC? I figured it had to be some ORM specific problem, but NHibernate works fine via ODBC. I'm using NHibernate and can continue to use Nhibernate, but I worry that I can't assume Nhi...
{ "language": "en", "url": "https://stackoverflow.com/questions/344449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Modifying form data before submission I'm using jQuery in conjunction with the form plugin and I'd like to intercept the form data before submission and make changes. The form plugin has a property called beforeSubmit that should do this, but I seem to be having trouble getting the function I specify to run. Here's...
{ "language": "en", "url": "https://stackoverflow.com/questions/344451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is $1 empty in my substitution? I am trying to put the stuff within parentheses into the value of a src attribute in an img tag: while(<TOCFILE>) { $toc_line = $_; $toc_line =~ s/<inlineFig.*?(\.\.\/pics\/ch09_inline99_*?\.jpg)*?<\/inlineFig>/<img src="${1}" alt="" \/\>/g; $new_toc_file .= $toc_line;...
{ "language": "en", "url": "https://stackoverflow.com/questions/344460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: As a developer, what changes do you make to a vanilla Windows install? When I get a vanilla Windows system, there's a bunch of stuff I change to make it more developer-friendly. Some of it I remember every time, other stuff I only do as and when. Examples: * *Show extensions of all file types *Make hidden and sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/344468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: Full-Time WPF Development I am fortunate to be working for a company in which all of our new development efforts are all in WPF. Are there a lot of other developers out there in this situation? Are companies quickly adopting this as their primary UI platform? As developers we all see the value in it, but are compani...
{ "language": "en", "url": "https://stackoverflow.com/questions/344470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.net: Website or web application project Is there any difference between website and web application project? What if you are working on a project that is sort of hybrid of site and application? which project should you chose? A: As for which project to choose, I would go with the Web Application Project, regard...
{ "language": "en", "url": "https://stackoverflow.com/questions/344473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Form Authentication on Website Here is how our Tomcat webserver is currently setup. We are using jsp for the webpages. * */webserverpath/main (all public pages and the login page) */webserverpath/secure1 (private pages) */webserverpath/secure2 (private pages) */webserverpath/secure3 (private pages) I recen...
{ "language": "en", "url": "https://stackoverflow.com/questions/344474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ to SQL query using "NOT IN" Can LINQ to SQL query using NOT IN? e.g., SELECT au_lname, state FROM authors WHERE state NOT IN ('CA', 'IN', 'MD') A: You can do it with Contains: var states = new[] {"CA", "IN", "MD"}; var query = db.Authors.Where(x => !states.Contains(x.state)); A: here's an exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/344478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How can I get the expiry datetime of an HttpRuntime.Cache object? Is it possible to get the expiry DateTime of an HttpRuntime.Cache object? If so, what would be the best approach? A: As suggested by someone in comments that the accepted answer does not work in .NET 4.7 I had a lot of trouble trying to figure out wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/344479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Dynamic Data: Scaffolds are read-only for LINQ classes using Views instead of Tables? I am trying to use the ASP.NET Dynamic Data features to generate CRUD scaffolding for my data model. My model contains supertype/subtype relationships, so some logical entities are split between two tables: one for the generic data...
{ "language": "en", "url": "https://stackoverflow.com/questions/344497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to reach a `protected` member of another object from a derived type? class MyBase { protected object PropertyOfBase { get; set; } } class MyType : MyBase { void MyMethod(MyBase parameter) { // I am looking for: object p = parameter.PropertyOfBase; // error CS1540: Cannot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Modeling Relational Entities for Auditing Question States This is something that made me doubt for a while so I thought it would be a good idea to post it here to find some insight, it's a relational database modeling problem/doubt I have the following problem: I have "questions" that must be in an specific "state",...
{ "language": "en", "url": "https://stackoverflow.com/questions/344505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF Namespace question - Process? Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get the namespace or syntax right for "Process" below. <Border x:Name="panelDialog" Visibility="Collapsed"> <Grid> <Border Background="...
{ "language": "en", "url": "https://stackoverflow.com/questions/344509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable "Adjust Date/Time" in Vista Home Edition My company has got quite a number of client laptops out in the field. These laptops are running Windows Vista Home edition. I was recently asked if I could find a way to disable the user's ability to adjust the system time. * *My first thought was to use gpedit,...
{ "language": "en", "url": "https://stackoverflow.com/questions/344513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: method-invoking Spring bean I've declared the following bean in my Spring config <bean id="templateCacheClearingTask" class="org.springframework.scheduling.timer.ScheduledTimerTask"> <property name="delay" value="5000" /> <property name="period" value="5000" /> <property name="timerTask"> <bean ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select Distinct from a list of IEnumerable in .NET 2.0 I am trying to filter an IEnumerable object of the duplicate values, so I would like to get the distinct values from it, for example, lets say that it holds days: monday tuesday wednesday wednesday I would like to filter it and return: monday tuesday wednesday ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipselink problem in a javase project I am getting this error when I am running my eclipselink project. [EL Warning]: 2008.12.05 11:47:08.056--java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jdbc/ValidConnectionChecker was thrown on attempt of PersistenceLoadProcessor to load class com.mysql.jdbc.integ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dependency Properties in Silverlight I'm struggling to understand Dependency Properties in Silverlight 2. Does anybody have a good explanation or link that clearly explains the DependencyObject and/or DependencyProperty? A: I like this article that "Jesse Liberty - Silverlight Geek" blogged called: Dependency Prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/344533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How is Tail Call Optimization implemented in DrScheme? I've heard that trampolining is an ineffective way of implementing TCO. How does DrScheme (PLAI Scheme, technically) do it? Does it do it the 'right' way (that is, produce assembly code which directly branches to the tail call, instead of going through the stack...
{ "language": "en", "url": "https://stackoverflow.com/questions/344549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: $1 outputting no characters in regex A couple people just recommended removing the curly brackets from ${1}, but that didn't seem to change anything; still getting nothing for $1. I am trying to put the stuff within parentheses into the value of a src attribute in an img tag: $toc_line =~ s!<inlineFig.*?(\.\./pics/c...
{ "language": "en", "url": "https://stackoverflow.com/questions/344550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is Garbage Collection Required for Tail Call Optimization? Why is garbage collection required for tail call optimization? Is it because if you allocate memory in a function which you then want to do a tail call on, there'd be no way to do the tail call and regain that memory? (So the stack would have to be saved...
{ "language": "en", "url": "https://stackoverflow.com/questions/344557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the most efficient way of extracting information from a large number of xml files in python? I have a directory full (~103, 104) of XML files from which I need to extract the contents of several fields. I've tested different xml parsers, and since I don't need to validate the contents (expensive) I was thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/344559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Data Warehouse Management Command Line Application - PowerShell or C# Console App I'll preface this question by saying this is for a Microsoft only shop. If you were to write a console app to manage a data warehouse what would you use: 1) Writing a custom environment for PowerShell (ala the latest flavors of Excha...
{ "language": "en", "url": "https://stackoverflow.com/questions/344561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: gwt-ext file upload I am trying to do a file upload from gwt-ext without bringing up the dialog box. To do this, I created a FormPanel and added the appropriate fields to it. Then did a form.submit(). This doesn't seem to work. Any idea why? The code is shown below. final FormPanel uploadForm = new FormPanel(); uplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/344580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I implement a global RewriteCond / RewriteRule in Apache that applies to all virtual hosts? The title pretty much says it all. :-) I have lots of virtual hosts and I want to put a single rewriting block at the top of the httpd.conf file that rewrites URLs no matter which virtual host the request might be d...
{ "language": "en", "url": "https://stackoverflow.com/questions/344588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Issue with Self Signed Cert in WCF - Must have Private Key I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error: The certificate 'CN=SignedByLocalHost' must have a private key that is capable of key exchange. The process must have access rights for the private key. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/344590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to use Nant/TeamCity to Deploy across DMZ? I have build server inside our domain (and it needs to be because it also talks to other boxes in the domain), and a webserver that is in the DMZ. As part of our build scripts, I would like to deploy websites to the webserver in the DMZ, using the Nant copy task. The p...
{ "language": "en", "url": "https://stackoverflow.com/questions/344591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom Presence with UCMA 2.0 and OCS 2007 I have recently started working with Unified Communication Managed API 2.0 (UCMA) and Office Communication Server(OCS) 2007. I have a need in my app that I have to create custom presence for my users? Has anyone of you guys done this before and can point me in right directi...
{ "language": "en", "url": "https://stackoverflow.com/questions/344607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unmanaged DLLs fail to load on ASP.NET server This question relates to an ASP.NET website, originally developed in VS 2005 and now in VS 2008. This website uses two unmanaged external DLLs which are not .NET and I do not have the source code to compile them and have to use them as is. This website runs fine from wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/344608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Scroll Position of div with "overflow: auto" Given this HTML snippet: <div id="box" style="overflow:auto; width:200px; height:200px; border:1px solid black;"> 1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br> 11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br> 21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<...
{ "language": "en", "url": "https://stackoverflow.com/questions/344615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Ignore ObsoleteAttribute Compiler Error I have an enumeration value marked with the following attribute. The second parameter instructs the compiler to error whenever the value is used. I want this behavior for anyone that implements my library, but I need to use this enumeration value within my library. How do I...
{ "language": "en", "url": "https://stackoverflow.com/questions/344630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to find the size of decoded base64 data in C I have an function which decodes the encoded base64 data in binary data but I dont know how to find the length of decoded data. I use the BIO functions in openssl. unsigned char *unbase64(unsigned char *input, int length) { BIO *b64, *bmem; unsigned char *buf...
{ "language": "en", "url": "https://stackoverflow.com/questions/344634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I programatically determine if an IIS site is receiving requests? The title pretty much says it all. Some caveats are: * *I need to be able to do it in C# *It needs to be able to be done from a remote server (ie, running on one server, checking IIS on another) *Needs to be close to real-time (within 1 s...
{ "language": "en", "url": "https://stackoverflow.com/questions/344639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the algorithm for storing the pixels in an oval in Javascript? How would one draw an oval in JS? A: SVG .. or tiny divs and bresenham .. or check the Javascript VectorGraphics library A: More-or-less crossplatform way to do vector graphics is to use Dojo GFX (tests, demos, ellipse example — all those links...
{ "language": "en", "url": "https://stackoverflow.com/questions/344647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing a tree from scratch I'm trying to learn about trees by implementing one from scratch. In this case I'd like to do it in C# Java or C++. (without using built in methods) So each node will store a character and there will be a maximum of 26 nodes per node. What data structure would I use to contain the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/344657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find unclosed connection? Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding I've had this problem before and found that basically I've got a connection that I'm not closing quickly enough (leaving connections open and waiting for garbage collectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/344659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Resume BizTalk dehydrated orchestration How can I resume a dehydrated orchestration ? * *the orchestration in question should have been retrieving messages from a MSMQ queue *but the userid permission wasn't set on the queue, so the BizTalk box wasn't able to read from the queue Corrected the permissions, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get most common value for each value of another column in SQL I have a table like this: Column | Type | Modifiers ---------+------+----------- country | text | food_id | int | eaten | date | And for each country, I want to get the food that is eaten most often. The best I can think of (I'm using postgr...
{ "language": "en", "url": "https://stackoverflow.com/questions/344665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: What is the algorithm for storing the pixels in a spiral in JS? What is the algorithm for storing the pixels in a spiral in JS? A: http://www.mathematische-basteleien.de/spiral.htm var Spiral = function(a) { this.initialize(a); } Spiral.prototype = { _a: 0.5, constructor: Spiral, initialize: func...
{ "language": "en", "url": "https://stackoverflow.com/questions/344672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread and Process What is the best definition of a thread and what is a process? If I call a function, how do I know that a thread is calling it or a process (or am I not understanding it??!). This is in a multi-core system (quadcore). A: From http://wiki.answers.com/Q/What_is_the_difference_between_a_computer_pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/344682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Server transactional replication for very large tables I have set up transactional replication between two SQL Servers on different ends of a relatively slow VPN connection. The setup is your standard "load snapshot immediately" kind of thing where the first thing it does after initializing the subscription is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fire silverlight events with javascript Can I use javascript in a page to cause an event in a silverlight component to fire? If so, does anybody have some code samples? A: Yes, you can. You need to decorate a method on a class in your .NET code with the "ScriptableMember" attribue and then call HtmlPage.RegisterSc...
{ "language": "en", "url": "https://stackoverflow.com/questions/344686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Subversion: Expected format '3' of repository; found format '5' Well I've gotten myself in a pickle I did the subversion 1 click setup and it worked great. However, in setting up my repository I accidentally committed a file that I shouldn't have. Rather than jumping through the hoops of purging a file I deleted t...
{ "language": "en", "url": "https://stackoverflow.com/questions/344691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking for real-time web server analytics package I am the programmer for the Education department at a county hospital. I would like to be able to see some real-time stats on an IIS6 web server that is only accessible in-house. I'm looking for something similar to what 1and1.com provides for their customers (if yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/344693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Googlebots Ignoring robots.txt? I have a site with the following robots.txt in the root: User-agent: * Disabled: / User-agent: Googlebot Disabled: / User-agent: Googlebot-Image Disallow: / And pages within this site are getting scanned by Googlebots all day long. Is there something wrong with my file or with Go...
{ "language": "en", "url": "https://stackoverflow.com/questions/344697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What usability evaluation methods do you use? What usability evaluation methods do you use? * *GOMS? *Cognitive Walkthrough? *Think aloud protocol? Others? (apart from 'ask your mum' tips that are well covered elsewhere on SO) A: * *Dogfooding. Using our own application we quickly find out which parts are...
{ "language": "en", "url": "https://stackoverflow.com/questions/344702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Building a Plugin Architecture with Adobe AIR I'm thinking of choosing Adobe AIR as the client-side implementation technology for an upcoming project. (The previous choice was C# and WPF, but I've been really impressed with Flash/Flex/AIR lately.) But one of the most important features of my product will be its plug...
{ "language": "en", "url": "https://stackoverflow.com/questions/344705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: SVN says I need to perform cleanup, but the cleanup fails !!! This is not a duplicate question since the solutions offered in the other topics didn't work for me. When I try to commit: Error: Working copy 'D:\Webs\Drupal 6' locked Error: Please execute the "Cleanup" command. When I try to do a cleanup: Cleanup faile...
{ "language": "en", "url": "https://stackoverflow.com/questions/344714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting control of the main thread in windows c++ app I'm writing some code that id like to be able to work with any window, such as a window created through the windows API, MFC, wxWidgets, etc. The problem is that for some things I need to use the same thread that created the window, which in many cases is just sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/344715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you combat website spoofing/phishing? What is your suggested solution for the threat of website UI spoofing? A: By definition any solution that relies on the site showing you personalised information once you've logged in is ineffective against phishers. If you've attempted to login, they've already succeed...
{ "language": "en", "url": "https://stackoverflow.com/questions/344719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Possible to prevent search engine spiders from infinitely crawling paging links on search results? Our SEO team would like to open up our main dynamic search results page to spiders and remove the 'nofollow' from the meta tags. It is currently accessible to spiders via allowing the path in robots.txt, but with a 'n...
{ "language": "en", "url": "https://stackoverflow.com/questions/344721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sorting XML nodes based on DateTime attribute C#, XPath I have a XML Structure that looks like this. <sales> <item name="Games" sku="MIC28306200" iCat="28" sTime="11/26/2008 8:41:12 AM" price="1.00" desc="Item Name" /> <item name="Games" sku="MIC28307100" iCat="28" sTime="11/26/2008 8:42:12 AM"...
{ "language": "en", "url": "https://stackoverflow.com/questions/344737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I Create an Expression Tree by Parsing Xml in C#? I am looking to create an expression tree by parsing xml using C#. The xml would be like the following: <Expression> <If> <Condition> <GreaterThan> <X> <Y> </GreaterThan> </Condition> <Expression /> <If> <Else> <Expression /> </Else...
{ "language": "en", "url": "https://stackoverflow.com/questions/344741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails Caching DB Queries and Best Practices The DB load on my site is getting really high so it is time for me to cache common queries that are being called 1000s of times an hour where the results are not changing. So for instance on my city model I do the following: def self.fetch(id) Rails.cache.fetch("cit...
{ "language": "en", "url": "https://stackoverflow.com/questions/344744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to change MS SQLServer authenticated login without closing and reopening the connection? I have a connection to a Microsoft SQL Server and want the change the connection authenticated user. Is it possible to do it without closing and reopening the connection? The ideal is something like Oracle set role feature. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a file in a jar as javax.net.ssl.keystore? I'm trying to do something like URL clientks = com.messaging.SubscriptionManager.class.getResource( "client.ks" ); String path = clientks.toURI().getPath(); System.setProperty( "javax.net.ssl.keyStore", path); Where client.ks is a file stored in com/messaging i...
{ "language": "en", "url": "https://stackoverflow.com/questions/344748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Having problem importing the PIL image library i am trying to do something with the PIL Image library in django, but i experience some problems. I do like this: import Image And then I do like this images = map(Image.open, glob.glob(os.path.join(dirpath, '*.thumb.jpg'))) But when i try to run this i get an error...
{ "language": "en", "url": "https://stackoverflow.com/questions/344753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net MVC Validating Dynamic Form I'm building an ASP.NET MVC application with a form that needs validation. The majority of the form is static, but part of the form is dynamic. I need to enable the user to enter n string/date combinations. The string/date combos need to be validated server side, and I need to g...
{ "language": "en", "url": "https://stackoverflow.com/questions/344754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Floorplan and packaging architecture resources for the interested software professional? One of the more interesting things I've run into lately is the art and science of laying out chip floorplan and determining packaging for the silicon. I would like to read some materials on the subject for the "Interested Softwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/344755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WindowsIdentity Token in Legacy ASP I've created a .Net library at work that is used by all of our developers. The security part of it uses Microsoft AzMan for the security backend. In order to create a security (AzMan) ClientContext I have to pass it a token value (as a uint). This is all fine an dandy until I need...
{ "language": "en", "url": "https://stackoverflow.com/questions/344774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nested Folders in Eclipse Classpath I'm trying to add two folders to my eclipse project's classpath, let's say Folder A and Folder B. B is inside A. Whenever I add A to the classpath <classpathentry kind="lib" path="/A"/> it works just fine, but I need to be able to access the files in B as well. Whenever I try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to use enterprise library logging in a .NET custom action I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration i...
{ "language": "en", "url": "https://stackoverflow.com/questions/344784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: what would make a single task executor stop processing tasks? I'm using a java.util.concurrent.ExecutorService that I obtained by calling Executors.newSingleThreadExecutor(). This ExecutorService can sometimes stop processing tasks, even though it has not been shutdown and continues to accept new tasks without throw...
{ "language": "en", "url": "https://stackoverflow.com/questions/344788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Installing PEAR on PHP 5? I want to install PEAR on PHP 5, so I can use Spreadsheet_Excel_Writer. I don`t know how to install it on my ISP nor my personal MacBook. Thoughts for both? A: The PEAR Manual has a quite extensive list of instructions on how to install the PEAR manager on Windows, *NIX and Mac OS X. The m...
{ "language": "en", "url": "https://stackoverflow.com/questions/344789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Build several CDT C++ projects from commandline What is the best solution to build several CDT C++ projects from the command line? The projects have references and so it is not possible to just build single projects. A: This feature has been added in CDT 6 (Final build due June 15th 2009). You can download the fina...
{ "language": "en", "url": "https://stackoverflow.com/questions/344797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Optimizing deletion of multiple rows in a YUI datatable Deletion operations seems to be the slowest in a YUI datatable. I have a datatable with > 300 rows. I need to delete selected rows. I tried removing the selected records from the recordset and then calling table.render() .. While this is okay, can it be made be...
{ "language": "en", "url": "https://stackoverflow.com/questions/344801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I format a PHP include() absolute (rather than relative) path? On various pages throughout my PHP web site and in various nested directories I want to include a specific file at a path relative to the root. What single command can I put on both of these pages... http://www.example.com/pageone.php http://www.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/344823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Looking for input in model design for Django Schools Today I'm starting a little project to create a Django based school administration program. I'm currently designing the models and their corresponding relationships. Being rather new to Django and relational databases in general, I would like some input. Before I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/344826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to retrieve Stored Procedure schema using Linq to SQL? Basically I am trying to retrieve a list of stored procedure parameters using Linq to SQL? Is there a way to do this? A: Perhaps System.Data.SqlClient.SqlCommandBuilder.DeriveParameters() will help. A: At design time? Just drag the stored procedure on to...
{ "language": "en", "url": "https://stackoverflow.com/questions/344828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is __kernel_vsyscall? I got a core that looks very different from the ones I usually get - most of the threads are in __kernel_vsyscall() : 9 process 11334 0xffffe410 in __kernel_vsyscall () 8 process 11453 0xffffe410 in __kernel_vsyscall () 7 process 11454 0xffffe410 in __kernel_vsyscall () 6 proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/344829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Communicating with Exchange in .NET I would like to use Exchange e-mail groups as an authentication scheme for an internal app. IE, if a user is in a certain mailing group, they are allowed in. Any pointers on where to look for information with talking with Exchange from .NET? EDIT: Exchange 2003. A: You don't need...
{ "language": "en", "url": "https://stackoverflow.com/questions/344834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Easily using Excel data in SQL Server I am regularly required to compare data sent to me in Excel spreadsheets with data that lives in SQL Server. I know that you can connect SQL Server to spreadsheets but it always seemed clunky This is really a post to show off my solution but I would love to hear other peoples i...
{ "language": "en", "url": "https://stackoverflow.com/questions/344845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Django Admin's "view on site" points to example.com instead of my domain I added a get_absolute_url function to one of my models. def get_absolute_url(self): return '/foo/bar' The admin site picks it up and adds a "view on site" link to the detail page for that object (when I put a real URL there instead of "/...
{ "language": "en", "url": "https://stackoverflow.com/questions/344851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: print or echo a javascript variable, not to the document, but to be the value, or part of the value, to a DOM element, specifically a form action I have a form action that needs to have its value set from a variable. I need to set the variable once and it will be reflected many times throughout the DOM. So: variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/344856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }