text
string
meta
dict
Q: Is there a Delphi implementation of Google Data APIs? Google offers various libraries for interfacing with the Google Data APIs. Currently these do not include Delphi (Win32) support. Has anyone done any work on a Delphi interface to Google Data, or the underlying Atom/AtomPub protocols? A: There is an open issue ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Parsing different date formats from feedparser in python? I'm trying to get the dates from entries in two different RSS feeds through feedparser. Here is what I'm doing: import feedparser as fp reddit = fp.parse("http://www.reddit.com/.rss") cc = fp.parse("http://contentconsumer.com/feed") print reddit.entries[0].da...
{ "language": "en", "url": "https://stackoverflow.com/questions/225274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to force uninstallation of windows service I installed a windows service using installUtil.exe. After updating the code I used installUtil.exe again to install the service w/o uninstalling the original version first. When I now try to uninstall the service, installUtil.exe completes the uninstall successfully, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "192" }
Q: How to call managed code from unmanaged code? I want to call my .NET code from unmanaged C++. My process entrypoint is .NET based, so I don't have to worry about hosting the CLR. I know it can be done using COM wrappers for .NET objects, but I would like to access individual static methods of managed classes, so CO...
{ "language": "en", "url": "https://stackoverflow.com/questions/225277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Best XML serialization library for a MFC C++ app I have an application, written in C++ using MFC and Stingray libraries. The application works with a wide variety of large data types, which are all currently serialized based on MFC Document/View serialize derived functionality. I have also added options for XML se...
{ "language": "en", "url": "https://stackoverflow.com/questions/225283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: git-upload-pack: command not found, when cloning remote Git repo I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh; git clone me@me.mydevbox.com:/home/chris/myproject In...
{ "language": "en", "url": "https://stackoverflow.com/questions/225291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: SQL Server query execution plan shows wrong "actual row count" on an used index and performance is terrible slow Today i stumbled upon an interesting performance problem with a stored procedure running on Sql Server 2005 SP2 in a db running on compatible level of 80 (SQL2000). The proc runs about 8 Minutes and the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to make a ComboBox column with two data sources (for DataGridView) The data sources have the same structure, but different data. One would be used for rows that are saved (view mode), and the other one would be for rows that are being added or edited (edit/new rows). How can that be acomplished? I have a standar...
{ "language": "en", "url": "https://stackoverflow.com/questions/225317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WordPress Admin Plugin I'm wondering how I can make a plugin to output some data via the admin panel. Just to get me going what code would make a page in the admin panel (for only administrators) to display time()? A: It's actually very easy, you only need two things: * *One of many tutorials on writing a Wordpr...
{ "language": "en", "url": "https://stackoverflow.com/questions/225319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Exposing an enum from a library class In C#, I am using a library that defines an enum. I would like to allow consumers of my code (in a different assembly) to pass in an enum value as a parameter to one of my functions without having to reference the underlying library themselves. Is there a way for me to expose t...
{ "language": "en", "url": "https://stackoverflow.com/questions/225323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Inline script does not resolve in ASP.Net custom control Currently I am working with a custom regular expression validator (unfortunately). I am trying to set the Regex pattern using a server side inline script like this: ValidationExpression="<%= RegExStrings.SomePattern %>" However, the script is not resolving to...
{ "language": "en", "url": "https://stackoverflow.com/questions/225327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to load a .NET assembly for reflection operations and subsequently unload it? I'm writing a tool to report information about .NET applications deployed across environments and regions within my client's systems. I'd like to read the values of assembly attributes in these assemblies. This can be achieved using As...
{ "language": "en", "url": "https://stackoverflow.com/questions/225330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How to split a string with any whitespace chars as delimiters What regex pattern would need I to pass to java.lang.String.split() to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters? A: Something in the lines of myString.split("\\s+"); This groups a...
{ "language": "en", "url": "https://stackoverflow.com/questions/225337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "583" }
Q: Scheduled Report(task) Monitor I have to develop a system to monitor the generation/transmission of reports. * *System data will be stored in database tables (Sybase) *Reports will be generated with different schedules ("mon-fri 10pm", "sat 5am", "1st day of the month", etc.) *System will just monitor that the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert a number to a string with specified length in C++ I have some numbers of different length (like 1, 999, 76492, so on) and I want to convert them all to strings with a common length (for example, if the length is 6, then those strings will be: '000001', '000999', '076492'). In other words, I need to add corr...
{ "language": "en", "url": "https://stackoverflow.com/questions/225362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Is there any good JavaScript hash(code/table) implementation out there? Yes, I know you could use regular objects as associative arrays in JavaScript, but I'd like to use something closer to java's Map's implementation (HashMap, LinkedHashMap etc). Something that could have any kind of data used as key. Are there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/225367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to compare two arrays and remove matching elements from one for the next loop? How else might you compare two arrays ($A and $B )and reduce matching elements out of the first to prep for the next loop over the array $A? $A = array(1,2,3,4,5,6,7,8); $B = array(1,2,3,4); $C = array_intersect($A,$B); //equals (1,...
{ "language": "en", "url": "https://stackoverflow.com/questions/225371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder? I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How can you work out the ID of a users MySite In a Sharepoint WebPart written in c# I need to find out either the ID of the current users MySite, or check if the current site is the users MySite. Ideas? A: I have spent the afternoon working on this and have worked it out. Add the following using statements after re...
{ "language": "en", "url": "https://stackoverflow.com/questions/225391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamically add items to a Context Menu & set Click action I have a List of strings that is regenerated every 5 seconds. I want to create a Context Menu and set its items dynamically using this list. The problem is that I don't have even a clue how to do that and manage the Click action for every item generated (whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/225394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is it better to write a more targeted stored procedure with fewer parameters? Say I have a stored procedure that returns data from a SELECT query. I would like to get a slightly different cut on those results depending on what parameters I pass through. I'm wondering whether it is better design to have multiple stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/225398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Shortcut to collapse to definitions except regions In vs2008, how can I (possibly with a macro) assign a shortcut key to collapse to definitons but leave regions expanded (they must expand if collapsed)? EDIT: I hate regions but my co-workers does not (: So I want this to avoid the regions used by them. I read jeff'...
{ "language": "en", "url": "https://stackoverflow.com/questions/225413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a tool that supports discrete mathematics? Discrete mathematics (also finite mathematics) deals with topics such as logic, set theory, information theory, partially ordered sets, proofs, relations, and a number of other topics. For other branches of mathematics, there are tools that support programming. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/225430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Export all symbols when creating a DLL With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere, and without hand-creating .def files. Is there a way to do this? A: Short answer You can do it with help of the new version of the CMake (any version cmake...
{ "language": "en", "url": "https://stackoverflow.com/questions/225432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: .NET DateTime picker flat style In .NET 3.0, most controls have a "flat" style. Apparently, the date picker doesn't have such a style but all the other controls in the form are set as flat. How can I make the date picker flat? A: My understanding of the datetime picker is that it is limited to what is built into th...
{ "language": "en", "url": "https://stackoverflow.com/questions/225441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Source code handover training We have to train the client professionals on the source code for an application we developed. What shall I include in their training plan for source code? Any help would be really appreciated. regards A: This may help: What are the core elements to include in Support Documentation? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/225446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Doxygen vs Javadoc I just realized from an article in CACM that Doxygen works with Java (and several other languages) too. But Java has already the Javadoc tool. Can someone explain what are the pros and cons of either approach? Are they mutually exclusive? Is there a Maven plugin for Doxygen? A: Doxygen has a numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/225447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: How to specify in Eclipse what to include in a .WAR file In eclipse developing a java app, there are several class files that are generated by a custom ant script. This happens automatically, and it is set up as an export/publish dependency for /WEB-INF/classes. With publishing it happens alright, however on export...
{ "language": "en", "url": "https://stackoverflow.com/questions/225456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I sanitize CSV input with the CsvReader? I'm using the CsvReader library in my Windows Forms application, which is coded in horribly messy VB (I've recently taken over the project.) I'm currently capable of reading semi-colon separated files without quoting, but I'm having a problem: most of the input has qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/225458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't resolve DNS I'm trying to consume a webmethod but it seems that my application can't resolve DNS. The problem surfaces when I configure my application with an url (e.g.: http://mywebservice.com/webservice/methods.asmx), but it does not when I access the same webmethod through the server's IP address. The thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/225467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET Performance : web application without precompilation Currently we're using Web Application project, so we have a gain with compilation. But as far as I know, the aspx pages a still compiled at the first page hit. So does precompilation give a perceptible performance gain ? (first hit exluded). What type of w...
{ "language": "en", "url": "https://stackoverflow.com/questions/225470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I replace accented Latin characters in Ruby? I have an ActiveRecord model, Foo, which has a name field. I'd like users to be able to search by name, but I'd like the search to ignore case and any accents. Thus, I'm also storing a canonical_name field against which to search: class Foo validates_presence_o...
{ "language": "en", "url": "https://stackoverflow.com/questions/225471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: Protecting user passwords in desktop applications I'm making a twitter client, and I'm evaluating the various ways of protecting the user's login information. * *Hashing apparently doesn't do it *Obfuscating in a reversable way is like trying to hide behind my finger *Plain text sounds and propably is promiscuo...
{ "language": "en", "url": "https://stackoverflow.com/questions/225475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embed image in code, without using resource section or external images I'm looking for a way to embed an image in a library (Windows-only). I don't want to go the 'traditional' way of putting it in the resources (because of special circumstances that make it not so convenient to mess around with the resource handle....
{ "language": "en", "url": "https://stackoverflow.com/questions/225480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to check for the presence of an OrderBy in a ObjectQuery expression tree I'm using T4 for generating repositories for LINQ to Entities entities. The repository contains (amongst other things) a List method suitable for paging. The documentation for Supported and Unsupported Methods does not mention it, but you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to distribute .Net binaries and PDBs? We altready have a similar question here but the discussion do not cover all the aspect, so I'm asking again: What is the best way to distribute a .Net application considering build mode (release vs. debug) and distribution of PDB files? Having a good refere...
{ "language": "en", "url": "https://stackoverflow.com/questions/225488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the text of an exception stack trace in Java ME? In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. "No") but, Is there any way to obtain the text of a stack trace in JavaME as a String? Update: I should ment...
{ "language": "en", "url": "https://stackoverflow.com/questions/225489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: IIS 6.0 Integrated authentication : 401.1 with IE7 Today I changed the application pool identity of our ASP.NET application from "Network Service" to a domain user. I added the user to the local group "IIS_WPG", done a iisreset just in case, and everything works fine with IE6 and Firefox 3.0 But when I go to the we...
{ "language": "en", "url": "https://stackoverflow.com/questions/225496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Scrolling Text Block/Area/Div in Loose XAML Is there any way to display scrollabletext in loose xaml? The equivalent in HTML would be <div style="overflow:scroll">some long bit of text here</div> Can you do this in loose xaml? From my experiments so far it seems that in loose xaml: * *You cannot use TextBox ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Building a view column out of separate columns In our database, we have a system set up to keep track of applications. We have a bool column that indicates whether or not the application is approved. Then there's another column that indicates whether or not the application is denied. If neither column is true, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/225535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make a failing $(shell) command interrupt Make I have a Makefile that starts by running a tool before applying the build rules (which this tool writes for me). If this tool, which is a python script, exits with a non-null status code, I want GNU Make to stop right there and not go on with building the program...
{ "language": "en", "url": "https://stackoverflow.com/questions/225542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Detecting running in Main Thread in C# library I'm creating a C# dll, which is going to be used by others developers in WinForms. For some reasons, I want to detect, if methods from this library, are called from Main (GUI) Thread and warn developer he has done such a thing (ie. in log file). Is there any reasonable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Text popping through on image replacement I've used a standard image replacement technique for one of my links, (the nested span technique) but as the image is round & transparent at the edges, the underlying text link is popping through. Heres my screenshot that explains what I mean. http://dl.getdropbox.com/u/2407...
{ "language": "en", "url": "https://stackoverflow.com/questions/225547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resources for image distortion algorithms Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm. A: The swirl and others like it are a matrix transfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/225548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to close a .Net Form from its PreFilterMessage()? I'm filtering the messages that come to a form with PreFilterMessage like this: print("code sample"); public bool PreFilterMessage(ref Message m) { if (m.Msg == WM_KEYDOWN && (int)m.WParam == VK_ESCAPE) { this.Close(); return true; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you uniquify context-root on jBoss Say I have a simple j2EE ear: foo.ear - foo.war I would like to deploy the same ear twice so I rename the ear: bar.ear - foo.war The META-INF\application.xml file looks like this: <application> <module> <web> <web-uri>foo.war</web-uri> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a PHP function to remove any/all key/value pairs that have a certain value from an array? I think questions like this are the reason why I don't like working with PHP. The manual is good, if you can find what you are looking for. After reading through the Array Functions, I didn't see one that provides the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get relative position between 2 DOM elements using JavaScript I've implemented a set of draggable elements that can be dropped into some containers using jQuery. What I need is an animation that moves an element to a specific container without user interaction. The problem is that the elements and the drop container...
{ "language": "en", "url": "https://stackoverflow.com/questions/225563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: API java 5 and more: should I return an array or a Collection? In the spirit of Best Practices: Always return a ____, never a ____, I face a similar question in my upcoming migration from JDK1.4.2 to JDK5 and more. (Yes, I know, JDK1.4.2 is EOL! ;-) ). For functions returning a collection (which are not simple prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/225572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Flash and Flex Just a few quick questions from me: What is the best way to inserting a Flash SWF file into a flex, that will enable me to have it start from frame 0 on reentry of that framework? Would this be States, Viewstack? Is there a way of using forward and back buttons to navigate through displaying a set of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RFC documents to A4 format When printing RFC documents on my A4 format printer I noticed that I print more than it is considered to be one page in RFC document. I figure this is because probably RFC is written in North American paper letter format (216 × 279 mm) and I want to use ISO A4 format (210 × 297 mm). Info o...
{ "language": "en", "url": "https://stackoverflow.com/questions/225586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Thread.getContextClassLoader() == null? Can Thread.getContextClassLoader() be null ? The javadoc is not really clear. Should a library take this case into account ? Update: the reason I asked is that beansbinding.dev.java.net does not work in this case (and my code does setContextClassLoader(null) A: Yes you should...
{ "language": "en", "url": "https://stackoverflow.com/questions/225594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: LINQ to SQL with RDBMS other than MS SQL Server Is there any plans for Microsoft to support LINQ to SQL beyond MS SQL server? A: Microsoft has no plans to extend LINQ to SQL beyond SQL Server and it wouldn't make much sense to do so. The majority of code in LINQ to SQL is in the implementation of the SQL Provider. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JavaScript library for syntax highlighting for code, then diffs, in HTML, at the line level? Anyone know of a JS library that will allow me to syntax highlight a code block, then highlight line-level diffs? For example, in a subversion diff, I'd like to highlight the characters on the line that have changed (as wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/225597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Pretty" Continuous Integration for Python This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at.. For example, compared to.. * *phpUnderControl *Jenkins * *Hudson *CruiseControl.rb ..and others, BuildBot looks rather.. archaic I'm currently playing with Hudson, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/225598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "115" }
Q: User validation dropoff percentage We have a simple registration form for our website users where we only require an e-mail address and a password (both repeated twice to make sure they are correct). We require that the user confirm their e-mail accounts by clicking a link in an e-mail. We see that a lot of users do...
{ "language": "en", "url": "https://stackoverflow.com/questions/225607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access Web Datasheet in a webApp I am trying to write a web application in C# ASP.NET 3.5 and want to include a Microsoft Office Access Web Datasheet in my application. I can't find an example on how to use it anywhere. It's the editing view in a SharePoint grid so I know it's possible, I just can't find out how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/225611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# downloading a webpage. A better way needed, CPU usage high I'm trying to get this piece of code working a little better. I suspect it's the loop reading one byte at a time. I couldn't find another way of doing this with gzip decompression. Implementing a StreamReader is fine, but it returns a string which I can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/225617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How many hash buckets If I notice that a hash table (or any other data structure built on a hash table) is filling up, at what point should you build a new table with more buckets. And given n items in the table so far, how do you figure out how many buckets to use in the new one? So let's say I have 100 buckets. Sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/225621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Installer Dialog comes up with Scroll bars on 800x480 resolution I am building an msi using WISE. The Dialogs appear fine when run on a 1280x800 resolution screen. But when I run the same msi on a 800x480 resolution screen, the installer dialog appears really huge and you cannot see the whole dialog on the screen.Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/225623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to have a different theme/css load up depending on domain name I have a site, and it will be sold to different clients but for maintenance reasons, we will be keeping one codebase. So this means that this one codebase will have to be dynamic enough to have different styles and so forth, depending on the client. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Locking to handle concurrency-- a good idea? In order to handle concurrency issue, is locking-- any form of locking, whether it's row, table or database locking a good solution? If not, how to handle concurrency issue? A: If you believe Oracle, no, not at all. That's because Oracle went to great lengths to avoid it...
{ "language": "en", "url": "https://stackoverflow.com/questions/225625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: create HTML menubar I'm looking for some help with creating a horizontal menubar in HTML. The menubar will have menus such as File, Edit, View and when you mouseover or click on the File menu (for example), the menu will be displayed showing menu items such as New, Open, etc. Ideally, I'd like to create the menubar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET AJAX: How to get a client instance created with the $create method? Using the client-side ASP.NET AJAX library, I have created an instance of a client component with the $create shortcut-method (http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx). The object is attached to a DOM element. Now I need...
{ "language": "en", "url": "https://stackoverflow.com/questions/225635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone using RailRoad diagrams generator? I recently installed RailRoad gem to generate an .svg diagram of my app's models and controllers. The rake task keeps breaking with a similar error: 1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitia...
{ "language": "en", "url": "https://stackoverflow.com/questions/225637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you add a page break in a PDF with XSL-FO? How do you add a page break into a document with XSL-FO? I'm using Apache FOP to create PDFs, if that makes a difference. A: You can also do: <fo:block page-break-before="always"> ...things you want in a new page... </fo:block> A: The FOP compliance page says t...
{ "language": "en", "url": "https://stackoverflow.com/questions/225654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How can I get an UpdatePanel to intercept a CompositeControl's DropDownList I have a CompositeControl that contains a DropDownList. I have set the AutoPostBack property of the DropDownList to true. On the page, I have: <asp:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <MyControl:Control...
{ "language": "en", "url": "https://stackoverflow.com/questions/225666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What tool to use to compare and reduce css style sheets I have a page (page1.html) which references a css file (style1.css) All is good. I need Page1.html to additionally reference Style2.css However when I add the reference, some stuff on Page1.html screws up. How can I determine what it is about Style2.css that is...
{ "language": "en", "url": "https://stackoverflow.com/questions/225672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Unexpected list comprehension behaviour in Python I believe I'm getting bitten by some combination of nested scoping rules and list comprehensions. Jeremy Hylton's blog post is suggestive about the causes, but I don't really understand CPython's implementation well-enough to figure out how to get around this. Here...
{ "language": "en", "url": "https://stackoverflow.com/questions/225675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Disposable singleton in C# I have a singleton that uses the "static readonly T Instance = new T();" pattern. However, I ran into a case where T is disposable, and actually needs to be disposed for unit tests. How can I modify this pattern to support a disposable singleton? The interface I would like is something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/225686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: ADO.NET Data Services Query Interceptor - can anyone tell me the VB syntax of this C#? I am pretty new to VB.NET - and I'm struggling to convert the signature of the method in the following code snippet. The Expression<...>> bit. Thanks in advance. [QueryInterceptor("Orders")] public Expression<Func<Orders,bool>> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Open a .webarchive on the iphone? Does anyone know if you can programmatically open a .webarchive on the iPhone? A .webarchive is Safari's way of packaging up a webpage and it's associated resources into a single file. I tried creating one and browsing to a link to one in mobile safari, but it didn't work.... Note:...
{ "language": "en", "url": "https://stackoverflow.com/questions/225699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it good to include title="" within your links? I am developing a website and for the main navigation, I was thinking it would be a good idea to include the title attribute. <a href="/results/" title="Results">Results</a> Is this a good thing to do? Also, is it good for SEO and accessibility? A: From this articl...
{ "language": "en", "url": "https://stackoverflow.com/questions/225700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Stop the Bell on CTRL-A (WinForms) Any ideas how to stop the system bell from sounding when CTRL-A is used to select text in a Winforms application? Here's the problem. Create a Winforms project. Place a text box on the form and add the following event handler on the form to allow CTRL-A to select all the text in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/225711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: getting an Int/short/byte structure byte representation with C# Given a FieldInfo object and an object, I need to get the actual bytes representation of the field. I know that the field is either int,Int32,uint,short etc. How can I get the actual byte representation? BinaryFormatter.Serialize won't help, since it'll...
{ "language": "en", "url": "https://stackoverflow.com/questions/225717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to sort using a GridView and LINQ? The one thing that LINQ seems to be missing for me is a way to reference columns by text string. For example, I have a typical GridView set up with sorting like this (the DataSource is bound to a LINQ query in the code-behind): <asp:GridView ID="MyGridView" run...
{ "language": "en", "url": "https://stackoverflow.com/questions/225725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Batch Renaming of Files in a Directory Is there an easy way to rename a group of files already contained in a directory, using Python? Example: I have a directory full of *.doc files and I want to rename them in a consistent way. X.doc -> "new(X).doc" Y.doc -> "new(Y).doc" A: Try: http://www.mattweber.org/2007/...
{ "language": "en", "url": "https://stackoverflow.com/questions/225735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "106" }
Q: Does anyone know of a good open source comments module? I want to add the ability to submit, moderate and display comments on an existing set of websites. Surely there's already a bunch of open source components that can handle the following: * *Comment submission *Markup validation *Private comment moderation...
{ "language": "en", "url": "https://stackoverflow.com/questions/225736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WCF client's and versioning If I change the WCF, do I have to run some sort of update on all client computers that are accessing the service? (i.e. run svutils.exe and update all app.config's etc?) A: Read about data contact versioning: Data Contact Versioning: Forward-Compatible Data Contracts Best Practices: Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/225739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you set the StartPosition of a Windows Forms form using code? Is there a way to set the StartPosition of a Windows Forms form using code? It seems whatever I try results in the StartPostion being the default. Here is what I am doing in the form to display: public DealsForm() { InitializeCompo...
{ "language": "en", "url": "https://stackoverflow.com/questions/225741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Using SSPI (NTLM) Api's With Windows AccessCheck() On Vista With UAC Summary Client (Windows XP SP3) Server (Windows Vista Business SP1) / Running as LocalSystem Service Api Sequence Client - AcquireCredentialsHandle Client - Initializesecuritycontext Server - Acquirecredentialshandle Server - AcceptSecurityC...
{ "language": "en", "url": "https://stackoverflow.com/questions/225757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Safely change home directory I'm trying to safely update the home directory as specified in /etc/passwd, but the standard Linux utils - usermod and vipw - for doing so aren't provided by Cygwin. Could anyone tell me how they changed this in Cygwin? A: EDIT: For recent versions of Cygwin (1.7.34 and beyond), see thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/225764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Controlling the execution of a Jython script from Java I'm trying to control the execution of a Jython script from within Java and executed through a call to PythonInterpreter.exec(). The script contains calls to classes defined in Java. I'll call these classes "commands" for the discussion here. The commands can al...
{ "language": "en", "url": "https://stackoverflow.com/questions/225770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compare two MySQL databases I'm currently developing an application using a MySQL database. The database-structure is still in flux and changes while development progresses (I change my local copy, leaving the one on the test-server alone). Is there a way to compare the two instances of the database to see if there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "368" }
Q: Changing the Text in Internet Explorer (7.0) title bar and Tab When i open some website, can i as a end-user make the Text printed in the IE title bar at top disappear(make it blank or change it to my own text). e.g. While typing this question my IE title bar says Ask a Question - Stack Overflow - Windows Internet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I include dependencies for my releases? Should I include dependencies when I do releases for my common projects such as CommonUtils or should I simply specify which dependencies should be referenced when they are to be used? A: You users do not want the work if figuring out your dependencies. * *What pack...
{ "language": "en", "url": "https://stackoverflow.com/questions/225800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to deal with multiple versions of dependencies? Hi I have a problem with a dependency hierarchy I am unsure how to solve: alt text http://img525.imageshack.us/my.php?image=56330713it2.jpg http://img525.imageshack.us/my.php?image=56330713it2.jpg The problem is with how I should reference these dependencies from M...
{ "language": "en", "url": "https://stackoverflow.com/questions/225810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating Default columns in SQL 2008 using Policy management (DMF) Could someone tell me if its possible to add a policy to create default columns in a table schema using the SQL 2008 Policy management features So for example I may have a desire to have a Date column in all of my tables called CreateDate and no DBA ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple Geographic Data Sources for a Web App For a web app I'm working on, I need to know the lat/lon of about 300 US cities. I also need to know the lat/lon for every US zip code. Does anyone know of a free source to get this information? A: Freebase will likely be able to help you. Here is New York and it has L...
{ "language": "en", "url": "https://stackoverflow.com/questions/225824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Save Windows Form Size I'm developing a piece in VB.NET. Inside my primary form, I'm creating a new form to use as a dialog. I was wondering if there was a way to, upon the close of the new dialog, save it's size settings for each user (probably in a file on their machine, through XML or something?) A: you can sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/225825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can I put a tag within the body of a HTML file to send in email? Since a lot of email clients ignore the HEAD tag, can I embed an inline stylesheet in the body? A: Creating an HTML email that works in every email client is hard. I spent several months refining a good looking template. http://commadot.com/the-holy...
{ "language": "en", "url": "https://stackoverflow.com/questions/225828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: Syntax highlighting when pasting into emails Im in the situation that I often send small codesnippets and xml-snippets to coworkers and partners via my outlook. Has anyone got a good idea or tool that I can use to have my pastes syntaxhighlighted before I paste them into an email. I was thinking of an intermediate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Validating and Extracting XML record by record into Database Here's the deal. I have an XML document with a lot of records. Something like this: print("<?xml version="1.0" encoding="utf-8" ?> <Orders> <Order> <Phone>1254</Phone> <City>City1</City> <State>State</State> </Ord...
{ "language": "en", "url": "https://stackoverflow.com/questions/225832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select exclusively a field from a table I have to add a coupon table to my db. There are 3 types of coupons : percentage, amount or 2 for 1. So far I've come up with a coupon table that contains these 3 fields. If there's a percentage value not set to null then it's this kind of coupon. I feel it's not the proper wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/225833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Protecting user passwords in desktop applications (Rev 2) I'm making a twitter client, and I'm evaluating the various ways of protecting the user's login information. IMPORTANT: I need to protect the user's data from other other applications. For example imagine what happens if a bot starts going around stealing Twh...
{ "language": "en", "url": "https://stackoverflow.com/questions/225838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I have a sliding menu div that doesn't move unless the page is scrolled down past a certain point I have a menu div that I want to slide down so it's always visible, but I want it to be positioned under my title div. I don't want it to move until the top of the menu hits the top of the screen and then stay ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I configure modprobe to find my module? I'm trying to get a kernel module to load at boot. If I run insmod /path/to/module.ko, it works fine. But this has to be repeated every time I reboot. If I run modprobe /path/to/module.ko, it can't find the module. I know modprobe uses a configuration file, but I can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: How do I "single-instance" an ASP.Net AJAX web portal? I’ve been asked if we can optionally “single-instance” our web portal. See this post on Hanselman's blog for the same idea in a WinForms app. Suppose we have 2 shortcuts on the same client machine: http://MyServer/MyWebPortal/Default.aspx?user=username&document...
{ "language": "en", "url": "https://stackoverflow.com/questions/225860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to correctly inherit from a usercontrol defined in XAML in Silverlight If I have a usercontrol (in Silverlight) that I've written, that uses XAML to define it's appearance, how can I make a customised version of it? i.e. I have MyControl.xaml & MyControl.xaml.cs What do I need to do if I want a "SpecialisedContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/225878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do the Postgres foreign key 'on update' and 'on delete' options work? Can anyone provide a clear explanation / example of what these functions do, and when it's appropriate to use them? A: Straight from the manual... We know that the foreign keys disallow creation of orders that do not relate to any products. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/225881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }