text
string
meta
dict
Q: Query to get all revisions of an object graph I'm implementing an audit log on a database, so everything has a CreatedAt and a RemovedAt column. Now I want to be able to list all revisions of an object graph but the best way I can think of for this is to use unions. I need to get every unique CreatedAt and RemovedAt...
{ "language": "en", "url": "https://stackoverflow.com/questions/221002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .app OSX package problems on removable media So from what little I understand about packaging for Macs, I see that the actual program that launches is the one defined under the CFBundleExecutable key in Info.plist. <key>CFBundleExecutable</key> <string>JavaApplicationStub</string> Now, my app doesnt work if /APP/Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/221006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make html validation part of build cycle Currently when I build my site I have to manually open validate it at the 3wbc site (means when opera pops up, press ctr+alt+shft+u) for every page. Is it possible to automatically validate every page whenever I build my pages? P.s.: This page doesn't validate ;) A: You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does .net SqlCommand.ExecuteReader close connection? In this sentence: myCommand.ExecuteReader(CommandBehavior.CloseConnection) does it close connection in case of exception? A: The safest way to do a "normal" query is using (var conn = new SqlConnection("...")) { conn.Open(); using (var cmd = conn.CreateC...
{ "language": "en", "url": "https://stackoverflow.com/questions/221025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you add tests for multi threaded support? I have a Java service which now will execute in a batch mode. Multi threaded support is added to the service so for every batch request a thread pool will be dedicated to execute the batch. The question is how do I test this? I have functional tests that pass under th...
{ "language": "en", "url": "https://stackoverflow.com/questions/221031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Future considerations for NUnit and NAnt During .NET v1 days, I have tried without much success to convince colleagues to develop test-driven and automated-build work habits using the additional tools of NUnit and NAnt. When .NET Framework 2.0 and Visual Studio 2005 Team Suite came into picture, I was able to "force...
{ "language": "en", "url": "https://stackoverflow.com/questions/221037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Record level permissions In a database I am designing I have implemented profile based object level security. Each user can view, edit, insert, update database tables according to the profiles (roles) he is a member of. Now there is a need to implement "External Users" who can view only the relevant records and edit...
{ "language": "en", "url": "https://stackoverflow.com/questions/221040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flash inside a scrolling div - IE6 bug I have div containing a list of flash objects. The list is long so I've set the div height to 400 and overflow to auto. This works fine on FF but on IE6 only the first 5 flash objects that are visible work. The rest of the flash objects that are initially outside the viewable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I remove a folder from Windows Distributed File System? We recently moved to a webfarm and setup dfs, only to find a beta application was creating files like there was no tomorrow. 1.2 million files were replicated across the farm, and since then we have prevented the application from creating new files, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NAnt script for C++ project build automation Could anyone provide any example of NAnt script for C++ project build automation? Thanks! A: If you're talking Microsoft Visual C++ then I think you get the most control by shelling out msbuild.exe from the nant script and passing it your solution file on the command lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/221052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When will boost 1.36 be available for Mac Port? How can i find out this information? Ie, I can install boost 1.35 with a command like sudo port install boost only to get boost 1.36 via port i would do something like this? sudo port install boost-1.36 Hope that clears up my question A: The Boost website distrib...
{ "language": "en", "url": "https://stackoverflow.com/questions/221063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Illegal attempt to associate a collection with two open sessions I'm trying to add a pojo to a collection in another pojo. I'm sure I'm making a really stupid mistake somewhere along the lines but I can't figure out how to solve it. I have a pojo LookupTable which contains a list of Columns: public class LookupTable...
{ "language": "en", "url": "https://stackoverflow.com/questions/221079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I extract XML of a website and save in a file using Perl's LWP? How can I extract information from a website (http://tv.yahoo.com/listings) and then create an XML file out of it? I want to save it so to parse later and display information using JavaScript? I am quite new to Perl and I have no idea about ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/221091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way on python 2.3 for windows to execute a program like ghostscript with multiple arguments and spaces in paths? Surely there is some kind of abstraction that allows for this? This is essentially the command cmd = self._ghostscriptPath + 'gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r196X20...
{ "language": "en", "url": "https://stackoverflow.com/questions/221097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What license does designer/wizard-generated code fall under? This might be a stupid question but I just wanted to make sure... If I incorporate code generated by the IDE (Visual Studio in this case) in my software, can I apply my own license to that code or is it subject to its own license? A: I am not a lawyer, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/221098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Does full userdata __gc metamethod need to free() it's memory? I have a full userdata in Lua module written in C. The userdata has __gc() metamethod, which is called by garbage collector. Does lua interpreter free userdata memory after __gc() call, or do I have to free() it inside __gc()? A: You should not free the...
{ "language": "en", "url": "https://stackoverflow.com/questions/221106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: xdoclet vs xdoclet2? I'm updating an old project & my version of xdoclet complains about my Java 1.5 annontations (ArrayList data = ....) when parsing for Hibernate (hibernate3) tags. So my question is this... Is there a fix for Xdoclet 1.2.3, or should I look to move to Xdoclet2? I've already started moving some of...
{ "language": "en", "url": "https://stackoverflow.com/questions/221108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET MVC ready for business applications (integrating 3rd party controls/components)? My company has developed (and still continues to develope) a large ASP.NET business application. Our platform is ASP.NET 2.0 using some ASP.NET Ajax. We're extensively using third-party components, like webgrids, comboboxes, tre...
{ "language": "en", "url": "https://stackoverflow.com/questions/221120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP Blog system for MODx I run a site using the MODx Content Management System. What I'd like to do is set up a news feed on the front page, with a blog-style backend that supports the usual things (tags, categories, archives basically). I've looked into the MODx plugins which provide this functionality (the depreca...
{ "language": "en", "url": "https://stackoverflow.com/questions/221124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PDFCreator and ASP.NET Has anyone managed to get PDFCreator running on an ASP.NET 2.0 website ? On my development machine with Visual Studio webserver, it works just fine after following this procedure : * *create a com interop dll with tlbimp *reference this dll *write some code to use it However, when I dep...
{ "language": "en", "url": "https://stackoverflow.com/questions/221126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does the SQL Server JDBC Trusted Connection Authentication work? How does the SQL Server JDBC Trusted Connection Authentication work? (ie how does the trusted connection authenticate the logged in AD user in such a transparent and elegant fashion and how can I implement a similar authentication solution for my c...
{ "language": "en", "url": "https://stackoverflow.com/questions/221149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling performSelectorOnMainThread => Multithreaded app? I noticed that the following banal call from my main thread [self performSelectorOnMainThread:@selector(rollBar:) withObject:nil waitUntilDone:false]; was causing [NSThread isMultiThreaded] to report that my app had become multithreaded. I though...
{ "language": "en", "url": "https://stackoverflow.com/questions/221152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I Convert a Big decimal number to Hex in C# (Eg : 588063595292424954445828) The number is bigger than int & long but can be accomodated in Decimal. But the normal ToString or Convert methods don't work on Decimal. A: Do it manually! http://www.permadi.com/tutorial/numDecToHex/ A: I believe this will produc...
{ "language": "en", "url": "https://stackoverflow.com/questions/221154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are TIOCM_OUT1 and TIOCM_OUT2 good for? termios.h defines: #define TIOCM_OUT1 0x2000 #define TIOCM_OUT2 0x4000 But what are the flags good for? A: TIOCM_OUT1 = Unassigned Programmable Output #1 TIOCM_OUT2 = Unassigned Programmable Output #2 It looks like they can be used to set the OUT1 and OUT2 bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/221160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Pros and cons of using md5 hash of URI as the primary key in a database I'm building a database that will store information on a range of objects (such as scientific papers, specimens, DNA sequences, etc.) that all have a presence online and can be identified by a URL, or an identifier such as a DOI. Using these GUI...
{ "language": "en", "url": "https://stackoverflow.com/questions/221165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: how can I write a generic property modification function in Flex/Actionscript3? I'm new to Flex, although not new to programming. I want to write a generic event handler that will be called by all my textinput boxes when they receive focus. When they have focus, I want to change the colour of the textinput box. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/221169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Private function in Fortran How do I declare a private function in Fortran? A: This will only work with a Fortran 90 module. In your module declaration, you can specify the access limits for a list of variables and routines using the "public" and "private" keywords. I usually find it helpful to use the private ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/221170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can anyone point me to Spring MVC, Tiles, Freemarker integration example? In my Spring MVC based applications i use Freemarker and i like it very much, but it's lacking advantages provided by Composite View pattern. I'm thinking of trying to use Tiles2 together with Freemarker - does anyone know where do i find a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/221178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I access netstat-like Ethernet statistics from a Windows program How can I access Ethernet statistics from C/C++ code like netstat -e? Interface Statistics Received Sent Bytes 21010071 15425579 Unicast packets 95512 94166...
{ "language": "en", "url": "https://stackoverflow.com/questions/221181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I compile and run C/C++ code in a Unix console or Mac terminal? How can I compile/run C or C++ code in a Unix console or a Mac terminal? A: Assuming the current directory is not in the path, the syntax is ./[name of the program]. For example ./a.out A: To compile C or C++ programs, there is a common comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/221185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "174" }
Q: JQuery and frames - $(document).ready doesn't work I have a page, with some code in js and jQuery and it works very well. But unfortunately, all my site is very very old, and uses frames. So when I loaded my page inside a frame, $(document).ready() doesn't fire up. My frameset looks like: <frameset rows="79,*" frame...
{ "language": "en", "url": "https://stackoverflow.com/questions/221192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Performance of recursive stored procedures in MYSQL to get hierarchical data I have table employee like, employee ( emp_id int primary key, emp_name varchar(50), mngr_id int) and here mngr_id would either null or contain valid emp_id. This way it form the hierarchy of employees in the organization. In order to trav...
{ "language": "en", "url": "https://stackoverflow.com/questions/221194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embedding Flash / Flex component into Java app I'm working on some Flex spike in my company. We are basically evaluating different scenarios etc. What solution would you recommend for embedding Flex components into Java app? Flex <-> Java communication is not (yet...) an issue, just embedding swf into JFrame. A: I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/221218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hash character in path throws DirectoryNotFoundException Consider the following code snippet private void ProcessFile(string fullPath) { XmlTextReader rdr = new XmlTextReader("file:\\\\" + fullPath); while (rdr.Read()) { //Do something } return; } Now, this functions fine when passed a path ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MIDL generates the same file for /env win32 and /env win64 In Visual Studio, when you compile foo.idl, MIDL generates the proxy information in foo_p.c. Unfortunately, for Win32 and x64 files, it uses the same filename. For Win32, the file starts with: #if !defined(_M_IA64) && !defined(_M_AMD64) For x64, the file st...
{ "language": "en", "url": "https://stackoverflow.com/questions/221254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: First page of MS Access Report does not seem to call On Page Event I have coded a MS Access 2000 report that displays a calendar with one month per page and projects added to particular days. The only data in the underlying record source is a list of months. The structure is created via the On Page event, which also...
{ "language": "en", "url": "https://stackoverflow.com/questions/221256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server Active Directory Import Issues with British Summer Time (BST) I'm using SQL Server ADSI to import data from Active Directory and using the whenChanged field to control if I need to reimport the members of a group. Problem is the date is being returned in GMT and I'm currently in BST. So, did a member chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/221258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copying symbolic links in Mac OS X What is the simplest way of copying symbolic links on the Mac? A python or perl solution would be preferred, but any solution would be a help. I am copying frameworks for an installation package, and need the links to be maintained A: As David mentioned, OS X is missing the handy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Returning data from ASP.net to an ExtJS Grid I've been given a prototype/mockup of a grid written in html and javascript (via ExtJS) that I now need to implement within an ASP.net web application. Does anyone have any pointers as to how to pass data to the grid (to a GroupingStore, specifically). I'd rather not hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/221273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JTidy Node.findBody() — How to use? I'm trying to do XHTML DOM parsing with JTidy, and it seems to be rather counterintuitive task. In particular, there's a method to parse HTML: Node Tidy.parse(Reader, Writer) And to get the <body /> of that Node, I assume, I should use Node Node.findBody(TagTable) Where should I...
{ "language": "en", "url": "https://stackoverflow.com/questions/221277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Converting Simplifed Chinese GB 2312 text characters into UTF8 How do I convert text between multi-byte text strings, for example Simplified Chinese GB 2312, into UTF8 using c++ ? A: On unix systems you'd best use the iconv library. See iconv_open, iconv, iconv_close You'd have to know the character encoding of cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/221281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you rename a shell session by command in linux? I like to keep my shell sessions named with useful titles as I work, this helps me keep track of what I'm using each of the many tabs for. Currently to rename a session I double click its name on the tabbed part of the console - is there any command that I can use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sending a message to the Windows GUI Thread I've noticed that when you create a web service object (inheriting from SoapHttpClientProtocol) and you use the Async method, it makes the callback on the Windows GUI thread. * *Does anyone know how this works? *How can I achieve the same thing. I figure this will sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/221287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is Crystal Reports 8 freezing? I have a problem with Crystal Reports 8. When exporting a report from my application, Crystal Reports sometimes freezes. The progress windows just stays, saying X of X records exported. * *Smaller reports with less data are more likley to freeze. *Faster workstations (P4, Core2...
{ "language": "en", "url": "https://stackoverflow.com/questions/221292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get a timestamp in JavaScript? I want a single number that represents the current date and time, like a Unix timestamp. A: In addition to the other options, if you want a dateformat ISO, you can get it directly console.log(new Date().toISOString()); A: sometime I need it in objects for xmlhttp calls, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4692" }
Q: What are the benefits of MS Word content controls? Office 2007 brings a new goodie called as 'content controls'. I need to evaluate this to see if this serves as a solution for a problem under research. Due to paucity of time and my general disdain for Office-interop-pains, * *can someone summarize the benefits?...
{ "language": "en", "url": "https://stackoverflow.com/questions/221300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Width of an element accounting for quirks mode in javascript? I've been scanning through all the popular js libraries, but I can't find one that has a width function for a DOM element that actually accounts for quirks mode in Internet Explorer. The issue is that padding and borders don't get counted in the the width...
{ "language": "en", "url": "https://stackoverflow.com/questions/221307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What code highlighting libs are there for Ruby? What'd also interest me is which have more or less dependencies. A: I'm using Coderay (see it in action at the bottom of this article) Not sure how many (if any) dependencies it has. A: See also the Ultraviolet library. Ultraviolet is a syntax highlighting engine ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/221310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the most efficient way of finding a path through a small world graph? I have a sea of weighted nodes with edges linking clusters of nodes together. This graph follows the typical small world layout. I wish to find a path finding algorithm, which isn't costly on processor power, to find a path along the best ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Moss 2007: Change Label of Search Option (Advanced Search) I've created a custom search page with some defined options in my search scope. I have a metadata mapped jobtitle, and added the search option to my custom search. <Property name="JobTitle" ManagedName="title" ProfileURI="urn:schemas-mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/221317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Standard File Naming Conventions in Ruby For a file containing the given class, SomeCoolClass, what would be the proper or standard filename? 1. somecoolclass.rb 2. some_cool_class.rb 3. some-cool-class.rb 4. SomeCoolClass.rb or some other variation? I noticed in the Ruby stdlib, versions 1, 2 and 3 are used. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Sharing Assemblies A have a design question. I have wrote a couple of c# applications. Most of these apps have their own sql or access database, but then they also share a common database, but they are entirely different apps which have their own responsibilities in their own business domains. Some people I spoke wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/221323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I write a method within a Django model to retrieve related objects? I have two models. We'll call them object A and object B. Their design looks something like this: class Foo(models.Model): name = models.CharField() class Bar(models.Model): title = models.CharField() Foo= models.ForeignKey('...
{ "language": "en", "url": "https://stackoverflow.com/questions/221328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How should I implement a dropdown box which contains a list of items which need to be shown in different languages? I'm trying to design a form which contains a dropdown box containing a list of grocery item choices. What criteria should I look at when trying to decide on whether to use a java enum or a lookup tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/221336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to implement Python code-completion in TextMate? PySmell seems like a good starting point. I think it should be possible, PySmell's idehelper.py does a majority of the complex stuff, it should just be a case of giving it the current line, offering up the completions (the bit I am not sure about) and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/221339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to get the file size of a "System.Drawing.Image" I am currently writing a system that stores meta data for around 140,000 ish images stored within a legacy image library that are being moved to cloud storage. I am using the following to get the jpg data... System.Drawing.Image image = System.Drawing.Image.FromFi...
{ "language": "en", "url": "https://stackoverflow.com/questions/221345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: What can I use instead of the arrow operator, `->`? What is the arrow operator (->) a synonym for? A: a->b is generally a synonym for (*a).b. The parenthesises here are necessary because of the binding strength of the operators * and .: *a.b wouldn't work because . binds stronger and is executed first. This is thu...
{ "language": "en", "url": "https://stackoverflow.com/questions/221346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Connecting to Microsoft Dynamics CRM 4.0 from a legacy ASP application I have a legacy ASP application written in JScript. At the moment it uses its own database tables for user accounts and authentication. The customer data for this app is being moved into Microsoft Dynamics CRM 4.0, and I need to modify the ASP si...
{ "language": "en", "url": "https://stackoverflow.com/questions/221347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emacs Lisp: How to add a folder and all its first level sub-folders to the load-path If I have a folder structure set up like this: ~/Projects emacs package1 package1-helpers package2 package2-helpers package2-more-helpers package3 package3-...
{ "language": "en", "url": "https://stackoverflow.com/questions/221365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Easy way to flatten XML file with LINQ Is there an easy way with LINQ to flatten an XML file? I can see a number of ways with XSLT but wondered what the best option with LINQ would be? I cant put the xml structure up exactly as stackoverflow seems to filter chevron chars. But its something like this nodeA --nodeA1...
{ "language": "en", "url": "https://stackoverflow.com/questions/221370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it okay to update a Java web application by replacing just single class files? Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we don't build a whole new WAR-file each time, but merely replace just the affected class files in the exploded web app directory under WEB-INF/classes and rest...
{ "language": "en", "url": "https://stackoverflow.com/questions/221373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Putting Copyright Symbol into a Python File I need to include a copyright statement at the top of every Python source file I produce: # Copyright: © 2008 etc. However, when I then run such a file I get this message: SyntaxError: Non-ASCII character '\xa9' in file MyFile.py on line 3, but no encoding declared; see...
{ "language": "en", "url": "https://stackoverflow.com/questions/221376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Best way to remove an element at a known location from an XML String using DotNet? I appreciate that there are now many mechanisms in dotnet to deal with XML in a myriad of ways... Suppose I have a string containing the XML.... <?xml version="1.0" encoding="utf-8" ?> <root> <Element1> <Element1_1> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hibernate: hbm2ddl.auto=update in production? Is it okay to run Hibernate applications configured with hbm2ddl.auto=update to update the database schema in a production environment? A: I wouldn't risk it because you might end up losing data that should have been preserved. hbm2ddl.auto=update is purely an easy way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "375" }
Q: Ruby on Rails and jeditable (jquery) Has anyone gotten the jquery plugin jeditable to run properly in a Rails applications. If so, could you share some hints on how to set it up? I'm having some trouble with creating the "submit-url". IIRC, you cannot simply call ruby code from within javascript (please let me be w...
{ "language": "en", "url": "https://stackoverflow.com/questions/221385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Removing a sequence of characters from a large binary file using python I would like to trim long sequences of the same value from a binary file in python. A simple way of doing it is simply reading in the file and using re.sub to replace the unwanted sequence. This will of course not work on large binary files. Can...
{ "language": "en", "url": "https://stackoverflow.com/questions/221386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I programatically search for Wi-Fi access point using PAlib on the Nintendo DS I need a way to check for Wi-Fi routers/access points on my DS homebrew. I'm using PAlib. A: i used the code from ds_wifi_test (which comes with the original dswifi library) when i tried to implement this. Basically, access points...
{ "language": "en", "url": "https://stackoverflow.com/questions/221387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript and PHP functions Is it possible to call a function from PHP using onsubmit from JavaScript? If so could someone give me an example of how it would be done? function addOrder(){ $con = mysql_connect("localhost", "146687", "password"); if(!$con){ die('Could not connect: ' . mysql_error()) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: mysql duplicate entry error when there is no duplicate entry (bulk load via php) I am using mysql (5.0.32-Debian_7etch6-log) and i've got a nightly running bulk load php (5.2.6) script (using Zend_DB (1.5.1) via PDO) which does the following: * *truncating a set of 4 'import' tables *bulk inserting data into the...
{ "language": "en", "url": "https://stackoverflow.com/questions/221399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: remotely and programatically logoff an active domain user I need to be able to logoff any user from his windows session from a program. I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in? The tool will run as admin so that's not a problem, being...
{ "language": "en", "url": "https://stackoverflow.com/questions/221410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I specify a font for a window created through CreateWindow? I'm creating window using pure Win32 API (RegisterClass and CreateWindow functions). How can I specify a font for the window instead of system defined one? A: In case you superclass a standard common control that already has its own font handle, us...
{ "language": "en", "url": "https://stackoverflow.com/questions/221411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: SMTP error 554 "Message does not conform to standards" I'm using MDaemon as out mail server and the last days I get an error "554 Message does not conform to standards" for emails sent from one of the machines. Any idea what may be causing it? Other machines work fine. More info....this is the log file: Mon 2008-10...
{ "language": "en", "url": "https://stackoverflow.com/questions/221416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I programmatically access the target path of a windows symbolic link? Windows 6 (Vista and Server 2008) support proper symbolic links, which can be created via the CreateSymbolicLink function. But there doesn't appear to be a corresponding function for interrogating a symbolic link to obtain the path of the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/221417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to programmatically create an SSIS Package? I am trying to programmatically create an SSIS package containing a simple data flow from table A to table B in the same database. I am using the example given here. The package gets created and saved to a dtsx file, but when I open it in visual studio I see that the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/221428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I confirm a browser window is open, with Javascript? I'm opening a new browser window from my site for some of the members. However, some may later close it, or it might have initially failed to open. Is there a snippet of fairly plain Javascript that can be run on each page to confirm if another browser wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/221432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Firefox 3 doesn't apply my xslt stylesheet, but other browsers do I'm trying to serve dynamically generated xml pages from a web server, and provide a custom, static, xslt from the same web server, that will offload the processing into the client web browser. Until recently, I had this working fine in Firefox 2, 3, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do you create a REST client for Java? With JSR 311 and its implementations we have a powerful standard for exposing Java objects via REST. However on the client side there seems to be something missing that is comparable to Apache Axis for SOAP - something that hides the web service and marshals the data transpa...
{ "language": "en", "url": "https://stackoverflow.com/questions/221442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "262" }
Q: Browse for a File from Excel VBA How can I put up a "File Open" dialog from some VBA running in Excel? I'm using Excel 2003. A: You want the Application.GetOpenFilename function. Copying from VBA Object Browser: Function GetOpenFilename([FileFilter], [FilterIndex], [Title], [ButtonText], [MultiSelect]) M...
{ "language": "en", "url": "https://stackoverflow.com/questions/221444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to provide a smtp server for solicited promotional email? I have a customer who needs to send some direct mailing to his contacts which is being collected from trade shows etc. I am thinking about providing a web based solution for them on sending direct mailing material- however this kind of solution always fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/221446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I define a cross container TabIndex order in XAML (or code-beside) Control.TabIndex Only allows me to overide the Tab order of controls in a given container. Is there a way to specify this across all the controls in, for example a UserControl, regardless of the contains used to arrange the controls. Cheers, Ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/221452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen My stomach churns when I see this kind of output. http://www.freeimagehosting.net/uploads/e1097a5a10.jpg and this was my command as suggested by Best way to convert pdf files to tiff files gswin32c.exe -q -dNOPAUSE -sDEVICE...
{ "language": "en", "url": "https://stackoverflow.com/questions/221455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: C# generics question I'm trying to complete a practice question from a book on generics but the question doesn't make sense to me. Here it goes. Create two classes with identical functionality. Use generics for the first class, and cast the second class to Object types. Create a for loop that uses class and the Obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/221467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you prevent downloads from being run instead of saved in IE When you create a link to an executable file intended for download (like say update.exe), on a web page, IE7 gives the user the option to "Run" or "Save". I don't want users to be running the update file they should be downloading. Is it possible to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update a single column in LINQ without loading the entire row? In LinqToSql, it is lovely easy to load a row, change a column, and submit the changes to the database: using (MyDataContext wdc = new MyDataContext()) { Article article = wdc.Article.First(p => p.ID == id); article.ItemsInStock = item...
{ "language": "en", "url": "https://stackoverflow.com/questions/221475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to remove old versions of Eclipse plugins? After update, old Eclipse plugins remain in "plugins" folder (there are also leftovers in "features" folder). Is there a way to remove those automatically? A: To get rid of the old plugins you have to clear the Installation History. Go to Help | About Eclipse | Install...
{ "language": "en", "url": "https://stackoverflow.com/questions/221476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Unit testing with C/C++: Lessons, what to remember? Unit testing with C/C++: What do you teach people who either did not do unit testing before or come from Java/Junit? What is the single most important lesson / thing to remember/ practice from your point of view that saves a lot of time or stress (especially regard...
{ "language": "en", "url": "https://stackoverflow.com/questions/221482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Raise CellValueChanged from a custom editing control in a DataGridView I have a DataGridView (WinForms) in which I have defined a custom EditingControl derived from DataGridViewTextBoxEditingControl that only allows numeric characters. I need to raise CellValueChanged event on the DataGridView each time the user pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/221490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vb 6 Make .exe different results to debugger I'm comparing the results produced when i use the 'Make .exe' compared to when i run the exact same process using the exact same variables though the IDE vb 6 debugger. I've tried an array of different compiler options but to no avail. So my question is why would i get a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IUsable: controlling resources in a better way than IDisposable I wish we have "Usable" pattern in C#, when code block of using construct would be passed to a function as delegate: class Usable : IUsable { public void Use(Action action) // implements IUsable { // acquire resources action(); // rele...
{ "language": "en", "url": "https://stackoverflow.com/questions/221503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate: check if object exists Suppose, objects of type A are stored in DB. Here's the way I load specific one from DB using hibernate: org.hibernate.Session session = ...; long id = 1; A obj = session.load(A.class, id); If object with id=1 doesn't exist I will get ObjectNotFoundException. But is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Linq to XML 'Where not in' syntax problem The following Code does not compile Dim BasicGroups As String() = New String() {"Node1", "Node2"} Dim NodesToRemove = From Element In SchemaDoc.Root.<Group> _ Where Element.@Name not in BasicGroups For Each XNode In NodesToRemove XNode.Remove() Next ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why ^*$ matches "127.0.0.1" I don't understand, why does the following regular expression: ^*$ Match the string "127.0.0.1"? Using Regex.IsMatch("127.0.0.1", "^*$"); Using Expresso, it does not match, which is also what I would expect. Using the expression ^.*$ does match the string, which I would also expect. Tech...
{ "language": "en", "url": "https://stackoverflow.com/questions/221520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: sliding UISearchBar I would like to hide the UISearchBar most of the time and only call it to appear when user wants it. I've put a UISearchBar in Interface Builder and hide it behind a view, when user click a button, it calls the following code, which I hoped it would bring the search bar to the front and slide th...
{ "language": "en", "url": "https://stackoverflow.com/questions/221523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VC++ MFC edit box sorting How do I sort the date and time in decending order in edit box? A: an edit box contains only one single text (either multiple-lines or single line). if you want a list of date/time string, use CListBox and it has sort member function. Otherwise you'll need to retrieve the complete string f...
{ "language": "en", "url": "https://stackoverflow.com/questions/221524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would you implement an LRU cache in Java? Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already imple...
{ "language": "en", "url": "https://stackoverflow.com/questions/221525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "173" }
Q: Intranet Vs Internet Web application considerations What are the differences in considerations in respect to designing or developing an Intranet and an Internet application ? A: One other thing, in an intranet environment you will generally have a standard client build meaning that you can code to a specific browse...
{ "language": "en", "url": "https://stackoverflow.com/questions/221534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What does the plus sign do in '+new Date' I've seen this in a few places function fn() { return +new Date; } And I can see that it is returning a timestamp rather than a date object, but I can't find any documentation on what the plus sign is doing. Can anyone explain? A: A JavaScript date can be written as a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "259" }
Q: How do I pass multiple parameters to a logparser sql query? Using logparser you can pass on parameters to the query you'd like to run such as: logparser file:query.sql?logs=somewhere\*.log -o:Sql -server:databaseserver -database:database -createtable:ON -i:IISW3C -iCheckPoint:somewhere\query.lpc -transactionR...
{ "language": "en", "url": "https://stackoverflow.com/questions/221544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C# Generics/Design Patterns: Should I use the template method? Scenario: (If anyone has answered/viewed my questions recently this will be somewhat familar) I have 3 different web services which expose a set of objects that have commonality. I've written wrapper classes and conversion logic using generic methods to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating RSS feed from database, how many items to put into feed so that they are all likely to be consumed? I'm creating several RSS feeds from a database to publish things like job openings, volunteer opportunities, and links in general. My question is, how many items should be returned in the feed so that it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }