text
stringlengths
8
267k
meta
dict
Q: Is there an HLSL plugin available for Visual Studio 2005? Something that at least would add code syntax coloring? HLSL 3 preferably. A: The InteliShade website appears to be dead in the water, unfortunately. While I have not yet found another plugin to add hlsl highlighting, I did find some manual instructions on...
{ "language": "en", "url": "https://stackoverflow.com/questions/451506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Keeping parentheses balanced (Paredit for Vim?) Emacs has Paredit which actively prevents you from typing unbalanced parentheses (short of C-Q ( to force-insert a literal one, or other craziness). Inserting an open paren also inserts a closing one. Backspacing over a paren either deletes both the opening and closi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Staging database predicament Suppose that there are 3 databases for * *Production *Staging *Dev As far as I know, Staging database need to be in sync with Production database But, When we are developing, we can do whatever we want with Dev database and change schema. Now here comes the Chicken & Egg proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/451519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I know what encoding scheme to use when converting a string to a byte array? From my database I am getting a very long string which is basically xml. I need to change it to a byte array. I can't get my head around the potential encoding issues. What do I need to be careful of when doing this conversion? publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I make private functions in a Perl module? I am working on a little Perl module and for some reason I had the test driver script that was using my new module call one of the functions that I thought would be private, and it was successful. I was surprised, so I started searching google and I couldn't really ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do I properly setup IIS5's SMTP service to send email from my development environment? I am trying to send email from an ASP.NET web application using the SmtpClient class. So far I have granted relay access to 127.0.0.1. I am trying to send test emails to my gmail account. The EML files get stuck in the mail...
{ "language": "en", "url": "https://stackoverflow.com/questions/451523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best way to parse string of email addresses So i am working with some email header data, and for the to:, from:, cc:, and bcc: fields the email address(es) can be expressed in a number of different ways: First Last <name@domain.com> Last, First <name@domain.com> name@domain.com And these variations can appear in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/451529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Good logging library for managed/unmanaged application? What logging library or approach would you recommend for this case: * *We want to be able to log both from managed and unmanaged code *For the unmanaged code, the implementation should not cross back into managed code, because this could cause our unmanaged...
{ "language": "en", "url": "https://stackoverflow.com/questions/451534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio 2008 viewing dialog after breakpoint hit I am building a C++ MFC application that creates modal dialog boxes, one at a time, while hiding the parent dialog. I wish to view the newly created modal dialogs when a breakpoint is hit when debugging in Visual Studio. However, anytime a breakpoint is hit, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/451535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TDD: How would you work on this class, test-first style? I am writing a small app to teach myself ASP.NET MVC, and one of its features is the ability to search for books at Amazon (or other sites) and add them to a "bookshelf". So I created an interface called IBookSearch (with a method DoSearch), and an implementat...
{ "language": "en", "url": "https://stackoverflow.com/questions/451541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Multi Database Support When creating an app with Multi-database support,what are the advantages and disadvantages of using Enterprise Library vs using a generic object of type OleDb? A: Without really knowing what "Enterprise Library" is versus "generic OleDb", I would suggest that you be very very careful before e...
{ "language": "en", "url": "https://stackoverflow.com/questions/451542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I dynamically modify a report using Crystal Reports? I want to know I can dynamically modify an existing Crystal Report (using C# and Crystal Reports 2008) so that it can report on fundamentally different data (from the same database) using the same layout. The reason is that we are building an application th...
{ "language": "en", "url": "https://stackoverflow.com/questions/451552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: acts_as_solr returns all rows in the database when using the model as search query In our application we're using acts_as_solr for search. Everything seems to be running smoothly except for the fact that using the model name as the search query returns every single row in the table. For example, let's say we have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ to SQL-- Best learning resources? It's not that I can't google for myself, however others have tread this path before me and I"m always interested in what other programmers have found helpful, or not :) Thanks in advance for any input. A: Hands down IMHO, an excellent read... http://linqinaction.net/ A: asp.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/451568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I eliminate "The specified service already exists" when I install new versions of my software? I have a VS2008 application that includes a service project (I'll call it ServiceProject). I have the installation project (InstallationProject) set to RemovePreviousVersions. Additionally, I have Custom Actions s...
{ "language": "en", "url": "https://stackoverflow.com/questions/451573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: java designing tasks in concurrent mechanism I am coming up with a design for a task based multi-thread java 1.5 system. Tasks will generally interact with a collection to determine failed or successfull match events. Based on the outcome, another task may be queued for IO transactions to inform clients and/or st...
{ "language": "en", "url": "https://stackoverflow.com/questions/451576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysterious cosmetic Visual Studio Editor issue In the Visual Studio code editor, I sometimes have an extraneous mark on the white background. It's a short diagonal slash, one pixel wide. If I scroll up and down, the mark remains in the same place, more or less as if it was a scratch on the screen. It's sometimes th...
{ "language": "en", "url": "https://stackoverflow.com/questions/451577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Erlang : Disallowed Nodes / Maybe Cookie question Trying to get two erlang nodes talking to each other : one on a Ubuntu machine and one on Windows XP. We're getting a "Connection attempt from disallowed node" message which prevents one node receiving messages from the other. They're both using 5.XXX versions of Erl...
{ "language": "en", "url": "https://stackoverflow.com/questions/451583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Eclipse: Subclipse "Edit Conflicts" I have found that when using Subclipse to edit conflicts, all my syntax color settings are preserved except for the background color, which is reset to the standard white. Using my particular color scheme makes it almost impossible to read any of the text when stuck with a white b...
{ "language": "en", "url": "https://stackoverflow.com/questions/451584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blocking the standard error output of a programmatically run system command I have this program in c++: #include <iostream> using namespace std; int main() { char buf[50]; cin.getline(buf,49); system(buf); return 0; } When I run and compile it and type for example "helo", my program prints the error: "helo" not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When is an NSPersistentDocument's data store moved to final save location? Following the advice in the Core Data Programming Guide's Core Data Performance page regarding storage of BLOBs, I've chosen to store binary data for my NSPersistenDocument-based app (Leopard-only, if that makes a difference) in an external f...
{ "language": "en", "url": "https://stackoverflow.com/questions/451597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: taking care of XSS I ran a pen-testing app and it found a ton of XSS errors, specfically, I'm guilty of echo'ing unverified data back to the browser through the querystring. Specifically, running this puts javascript into my page. http://www.mywebsite.com/search.php?q=%00'" [ScRiPt]%20%0a%0d>alert(426177032569)%3B[/...
{ "language": "en", "url": "https://stackoverflow.com/questions/451601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Silverlight Forum component Has anyone encountered such a beastie? I'm thinking about a tree-like display, database, login and registration etc. Ideally ready to bake as time is short. Ideally BSD or similar license but if neccessary might persuade the beancounters to cough up some beans. Alternatively if anyone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is your opinion on Clojure? What do you guys think about Clojure? I'm thinking of learning it next, currently using Erlang and in general happy with it except the records fiasco... Is Clojure as powerful as LISP? A: I used Erlang at work for coordinated network load testing and it was perfect for that because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: cross platform embeddable large image viewer I'm looking for a system with which can embed a zoomable image in a web page. This is for an educational site and the images are x-ray photographs - so we'd like to display the image full size then allow the user to zoom in to see the detail. The final images won't be t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In Vista in Administrative Tools the Microsoft .NET Framework Configuration shortcut is gone, how do I view the GAC? I'm trying to view the items in the GAC on Vista and I've got all the .NET stuff installed, 1.0, 2.0, 3.5 and 3.5 SP1 but I don't see shortcut from Administrative Tools. Does anyone know another way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you protect your website from Local File Inclusion & SQL Injection in PHP? How do you protect your website from Local File Inclusion & SQL Injection (PHP)? A: There are numerous measures to be taken. Be sure to sanitize all input before storing in the database. I suggest using mysql_real_escape_string() on a...
{ "language": "en", "url": "https://stackoverflow.com/questions/451623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CSS for elements ONLY under a specific id I have a div element that has an id and this div contains a set of inputs and labels. I ONLY want to style the inputs inside this specific div but .. the following styles everything (global) instead of keeping the scope inside #ParentDiv #ParentDiv label,input { display: in...
{ "language": "en", "url": "https://stackoverflow.com/questions/451626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: What are the Best practices for Writing MVC App? Coming from ASP.NET Webform and Classic ASP. I want to know what are the best practices. Are MVC apps would not really be using Server Controls and ViewStates? If so the persisting of the html form controls would be similar to classic ASP. Thanks A: Some of the big ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Strategies for logging to application logs from library code? Where I work we use Log4j for web application logging. The log4j.jar is at the application level, not the container level. We're using a daily rolling file appender. Our log4j.properties files define appenders based on the app package name, so only cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/451628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's the best way to export UTF8 data into Excel? So we have this web app where we support UTF8 data. Hooray UTF8. And we can export the user-supplied data into CSV no problem - it's still in UTF8 at that point. The problem is when you open a typical UTF8 CSV up in Excel, it reads it as ANSII encoded text, and acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/451636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How are java.lang.Object's protected methods protected from subclasses? The keyword protected grants access to classes in the same package and subclasses (http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html). Now, every class has java.lang.Object as superclass (http://java.sun.com/j2se/1.5.0/docs/...
{ "language": "en", "url": "https://stackoverflow.com/questions/451647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: On Linux, what tools for Subversion have a tree view (like in Cervisia) for browsing branch history? My company is moving from CVS to SVN. With CVS, I made branches for each production release (now svn copy) and applied limited patches to the branch for critical issues. We used Cervisia for its tree view of branch h...
{ "language": "en", "url": "https://stackoverflow.com/questions/451654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GWT Dynamic loading using GWT.create() with String literals instead of Class literals GWT.create() is the reflection equivalent in GWT, But it take only class literals, not fully qualified String for the Class name. How do i dynamically create classes with Strings using GWT.create()? Its not possible according to...
{ "language": "en", "url": "https://stackoverflow.com/questions/451658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: MSSQL2000: Using a stored procedure results as a table in sql Let's say I have 'myStoredProcedure' that takes in an Id as a parameter, and returns a table of information. Is it possible to write a SQL statement similar to this? SELECT MyColumn FROM Table-ify('myStoredProcedure ' + @MyId) AS [MyTable] I get t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to display source of DB2 SQL UDF Is there any way to see SQL UDF body in DB2 control center? A: -- To get the text of UDF select r.routinename as FunctionName, r.text as FunctionBody from syscat.routines r where r.routinetype = 'F' -- Function and r.origin in ('U', 'Q') -- User-defined sourced or query-based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thread communication using SendMessage my question is : how can I use SendMessage() to implement thread communication between two threads, one with a window (GUI) and the other with no window? The problem is that SendMessage() needs a handle (HWND)? Another detail about my project : Two threads, one running managed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I go about building a Dashboard App using MOSS '07 How is it different from normal ASP.net development? Anyone has valuable cool links/videos/tutorials for what I am trying to do? I am a newbie at sharepoint stuff..but I am pretty comfortable with ASP.net. EDIT: The application is more like a Teamsite/Dashbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/451666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CAD/CAM without C++ Is it possible to do CAD/CAM software without having to use C++? My company developed their software with c/C++ but that was more than 10 years ago. Today,there is a lot of legacy code that switching would force us to get rid of but i was wondering what the actual risks are. We have a lot of math...
{ "language": "en", "url": "https://stackoverflow.com/questions/451682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sharepoint problem saving a file over an existing file in a document library I have an existing document in a document library and I'm trying to overwrite that file in code using code like this: byte[] data = ... SPListItem li = ... li.File.SaveBinary(data); When I run this code I get: Microsoft.SharePoint.SPExcept...
{ "language": "en", "url": "https://stackoverflow.com/questions/451684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to define a block with optional arguments in Ruby? I'm trying to dynamically define functions that call through to another function that takes an options parameter: class MyClass ["hour", "minute", "second"].each do |interval| define_method "get_#{interval}" do |args| some_helper(interval,...
{ "language": "en", "url": "https://stackoverflow.com/questions/451689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the most efficient way to access sibling dictionary value in a Python dict? In Python, I've got a list of dictionaries that looks like this: matchings = [ {'id': 'someid1', 'domain': 'somedomain1.com'}, {'id': 'someid2', 'domain': 'somedomain2.com'}, {'id': 'someid3', 'domain': 'somedomain3.com'} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C# - Lambda syntax for looping over DataGridView.Rows What is the correct lambda syntax in C# for looping over each DataGridViewRow of a DataGridView? And as an example lets say the function makes the row .Visible = false based on some value in the Cells[0]. A: Well, there is no inbuilt ForEach extension method on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF not running under IIS 6.0 Trying to get my WCF service running under IIS 6. I have created the .svc and aspnet_isapi.dll mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx When viewing the Server1.svc page, I am getting a 404. I have tested the site with a simple .aspx page to ensure the...
{ "language": "en", "url": "https://stackoverflow.com/questions/451701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to learn your way through Linux's shell I want to stop losing precious time when dealing with Linux/Unix's shell. If I could get to understand it well, that would be great. Otherwise: * *I may end up losing a day just for setting up a crontab. *I'll keep wondering why the shebang in this script doesn't work....
{ "language": "en", "url": "https://stackoverflow.com/questions/451713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I convert from a Dictionary to a SortedDictionary using LINQ in C#? How to convert a Dictionary to a SortedDictionary? In addition to general conversion (preserving types of key and values) I'm interested in swapping the keys and values as part of the conversion: have a Dictionary<string, double> and I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: I keep hearing there are tons of bug trackers, but not so many build in .net Yes there are tons of bug trackor applications to buy, but being a .net shop, and always leaning towards purchasing .net build products, I don't see that many options when it comes to bug trackers. From the top of my head I can only think o...
{ "language": "en", "url": "https://stackoverflow.com/questions/451718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: No Process Is on the Other End of the Pipe I receive this error when I try to connect to SQL Server 2005. I have enabled TCP/IP, Named Pipes, and restarted the server but that is not working. A: For me the issue was that the SQL server was in Windows Authentication mode only, even though I set it to mixed during th...
{ "language": "en", "url": "https://stackoverflow.com/questions/451720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Same module multiple times as TabItems Here's my scenario: * *Shell with 1 TabControl and 1 region called MenuRegion *MenuRegion contains Buttons for each of the available modules (applications). I want to achieve the following using Prism (Composite Application Library for WPF): When one of the buttons is cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/451730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to associate an Event with a Class in ActionScript / Flex 3? ActionScript 3 / Flex 3 - Adding custom events to a class Say I have the following Event: import flash.events.Event; public class SomeEvent extends Event { public static const EVENT_ACTION:String = "eventAction"; public functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/451737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Drupal Views2 Exposed Form how to change I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible then I would like to have the button text something different than apply. I hacked it for now and change...
{ "language": "en", "url": "https://stackoverflow.com/questions/451745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF M-V-VM: Get selected items from a ListCollectionView? I've got a WPF app using the Model-View-ViewModel pattern. In my ViewModel I've got a ListCollectionView to keep a list of items. This ListCollectionView is bound to a ListBox in my View. <ListBox Grid.Row="1" ItemsSource="{Binding Useragents}" SelectionMod...
{ "language": "en", "url": "https://stackoverflow.com/questions/451748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a TRACE statement for basic win32 C++? In MFC C++ (Visual Studio 6) I am used to using the TRACE macro for debugging. Is there an equivalent statement for plain win32? A: _RPTn works great, though not quite as convenient. Here is some code that recreates the MFC TRACE statement as a function allowing var...
{ "language": "en", "url": "https://stackoverflow.com/questions/451749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What's the best way to "embed" a page number in a URL? I'm developing a blog application using Django. Currently, the URL /blog/ displays the front page of the blog (the first five posts). Visitors can then browse or "page through" the blog entries. This portion is mapped to /blog/browse/{page}/, where page, of cour...
{ "language": "en", "url": "https://stackoverflow.com/questions/451759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Are there any .NET tools available to mux / demux MP4 streams? Are there any .NET-specific tools out there that can parse / access the elementary data streams in an MP4 file? A: If you have a codec that will play MP4 streams, then you could use the unmanaged DirectShow api and you should be able to get info through...
{ "language": "en", "url": "https://stackoverflow.com/questions/451769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Determine if flash OCX is installed? What is the best way to determine if the flash ocx is installed in Innosetup (or any installer for that matter). I don't want to attempt to install it myself, I will simply force the user to go to the flash site and install, I just want to make sure that the flash.ocx (version 9...
{ "language": "en", "url": "https://stackoverflow.com/questions/451770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there such a thing as a process smell? We're generally familiar with code smells here, but just as damaging if not more so are when the business side of things - as much as it falls within our domain - is going wrong. As examples, the inverse of anything on the Joel test would be considered a major process smel...
{ "language": "en", "url": "https://stackoverflow.com/questions/451772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best way to make an iPhone application multi-lingual Can anyone tell me the best way to go about making an iPhone application support multiple languages? I am going to put separate versions for each language in the App Store, but what is the best way to represent this in Xcode? A: A good place to start is here. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/451776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to tell a lambda function to capture a copy instead of a reference in C#? I've been learning C#, and I'm trying to understand lambdas. In this sample below, it prints out 10 ten times. class Program { delegate void Action(); static void Main(string[] args) { List<Action> actions = new List<A...
{ "language": "en", "url": "https://stackoverflow.com/questions/451779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How can I get the id of clicked element using jquery? I want to get the id of the clicked element and then show divs that match this id. I am using the following code, and it's not working. Please help. $(function () { var tabContainers = $('div.difContetform > div'); $('div#head-nav ul a').click(function (ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/451785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The best technology to synchronize data between different database schemas? I have an existing SQL Server 2005 database that runs our accounting/inventory application. We are looking at using a new on-line ordering framework - which has it's own database. If we use this new framework, we will need to transfer the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/451787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Jquery event chaining Based on this question I don't want to litter my ready stuff waiting for a "click event" AND a "change event" AND a "mouseover event" I want to have all that stuff in a single function or event. Is is possible to chain the events together. I want to capture not only a keyup, but also a click ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to configure Visual Studio not to give UAC prompt on each run? I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated: * *PIX for Windows *Visual Studio 2005 (elevated privileges seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/451809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Updating a DB table excluding NULLs I have two tables with the same columns tbl_source (ID, Title) tbl_dest (ID, Title) I want to update tbl_dest titles from the tbl_source where the ids in dest and source match. However, I don't want to update the dest title if the source title is null (or blank). I've got this:...
{ "language": "en", "url": "https://stackoverflow.com/questions/451829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I efficiently transform a series of strings in powershell? Suppose I have a large number of strings formatted something like: <tag>blah blahXXXXXblah blah</tag> I want to transform these strings into something like: blah blahZZZZZblah blah on a powershell command line. All instances of XXXXX get replaced b...
{ "language": "en", "url": "https://stackoverflow.com/questions/451830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ambiguous Controller Names in ASP.NET MVC I tried implementing Phil's Areas Demo in my project http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx. I appended the Areas/Blog structure in my existing MVC project and I get the following error in my project. The controller name Home is ambiguous between the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/451831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: T-SQL While Loop and concatenation I have a SQL query that is supposed to pull out a record and concat each to a string, then output that string. The important part of the query is below. DECLARE @counter int; SET @counter = 1; DECLARE @tempID varchar(50); SET @tempID = ''; DECLARE @tempCat varchar(255); SET @tem...
{ "language": "en", "url": "https://stackoverflow.com/questions/451834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to increase performance for MySQL database How to increase the performance for mysql database because I have my website hosted in shared server and they have suspended my account because of "too many queries" the stuff asked "index" or "cache" or trim my database I don't know what does "index" and cache mean and...
{ "language": "en", "url": "https://stackoverflow.com/questions/451839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ORM performance cost Does anyone have any experience that indicates what kind of performance hit a developer could expect by choosing to use an ORM (in Django, RoR, SQLAlechemy, etc) over SQL and hand-designed databases? I imagine there are complicating issues, including whether specifying a database within the cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/451845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Querying based on a set of Named Attributes/Values I am working with a set of what is essentially Attribute/Value pairs (there's actually quite a bit more to this, but I'm simplifying for the sake of this question). Effectively you can think of the tables as such: Entities (EntityID,AttributeName,AttributeValue) PK...
{ "language": "en", "url": "https://stackoverflow.com/questions/451856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I version a SQL Server Database? I need to put versions onto a SQL Server 2005 database and have these accessible from a .NET Application. What I was thinking is using an Extended Properties on the Database with a name of 'version' and of course the value would be the version of the database. I can then use...
{ "language": "en", "url": "https://stackoverflow.com/questions/451863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Similar String algorithm I'm looking for an algorithm, or at least theory of operation on how you would find similar text in two or more different strings... Much like the question posed here: Algorithm to find articles with similar text, the difference being that my text strings will only ever be a handful of words...
{ "language": "en", "url": "https://stackoverflow.com/questions/451884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why use hex values instead of normal base 10 numbers? I was looking over this code to calculate math.sqrt in Java. Why did they use hex values in some of the loops and normal values for variables? What benefits are there to use hex? A: They probably used hex values because the numbers are easier to remember in he...
{ "language": "en", "url": "https://stackoverflow.com/questions/451886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I allow Pasting of data into a web page? I have a neat little javascript data grid and I want people to be able to paste data into it. I know there are security issues attached to accessing the clipboard, but I am wondering if there is a way to do it. It is by far the most intuitive approach for the end use...
{ "language": "en", "url": "https://stackoverflow.com/questions/451889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show XML file in WinForms app with IE-like coloring and collapsing nodes I would like to show an XML file in my .NET 2.0 WinForms app just like IE does (where you can collapse the nodes, and everything is nicely colored). Is there a built-in way to do this? A: You can host IE inside your application's form or you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/451901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I convert a string length to a pixel unit? I have a string like this: string s = "This is my string"; I am creating a Telerik report and I need to define a textbox that is the width of my string. However the size property needs to be set to a Unit (Pixel, Point, Inch, etc). How can I convert my string leng...
{ "language": "en", "url": "https://stackoverflow.com/questions/451903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: how do I grep through a mysql database? Looking for a nifty helper function/method for grepping through all defined tables, columns, stored procedures, etc, for a MySql database. I had something similar for SQL Server. A: mysqldump --compact --skip-extended-insert -u root -proot mydb | grep "interesting string" A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/451922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: A logical error with my code I wrote this code and its always showing the same results why? The code is a searching method. using System; using System.Collections.Generic; using System.Text; namespace CArraySe { class Program { class CArray { private int[] arr; privat...
{ "language": "en", "url": "https://stackoverflow.com/questions/451925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mono and C# IOCP: Is it a good idea? I'm porting a c++ app to c# that uses IOCP on it's server. Can mono handle IOCP as well as windows? will i get comparable performance to c++ or i should try something else? thanks A: The main overhead in IOCP is the IO not the language. You should expect the same performance fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/451938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Secure String and Keeping it Secure So the .NET framework provides the SecureString class for storing strings in a secure fashion. But to read the information and work with it you have to return it to a standard string. See this implementation example. As you can see from the example using the pointer we ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/451939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best 3rd Party Resume Parser Tool We are working on a hiring application and need the ability to easily parse resumes. Before trying to build one, was wondering what resume parsing tools are available out there and what is the best one, in your opinion? We need to be able to parse both Word and TXT files. A: Don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Get the XPath to an XElement? I've got an XElement deep within a document. Given the XElement (and XDocument?), is there an extension method to get its full (i.e. absolute, e.g. /root/item/element/child) XPath? E.g. myXElement.GetXPath()? EDIT: Okay, looks like I overlooked something very important. Whoops! The inde...
{ "language": "en", "url": "https://stackoverflow.com/questions/451950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: What is the correct way to backup ZODB blobs? I am using plone.app.blob to store large ZODB objects in a blobstorage directory. This reduces size pressure on Data.fs but I have not been able to find any advice on backing up this data. I am already backing up Data.fs by pointing a network backup tool at a directory o...
{ "language": "en", "url": "https://stackoverflow.com/questions/451952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Multiline JavaScript Text I have a long snippet of HTML I want some javascript variable to equal and for maintainability I want to store it with actual newlines instead of adding \n (or as it is HTML just omitting newline characters). In Python I would do something like: largeString = """Hello This is long!""" And ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Making a method private in a python subclass Is it possible to make a public method private in a subclass? I don't want other classes extending this one to be able to call some of the methods. Here is an example: class A: def __init__(self): #do something here def method(self): #some code he...
{ "language": "en", "url": "https://stackoverflow.com/questions/451963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Why doesn't Select Top 5 From news_table order by news_date work? I have a very very simple SQL string that MS Access doesn't seem to like. Select Top 5 * From news_table Order By news_date This is returning ALL rows from the news_table not just the Top 5. I thought this was a simple SQL statement, apparently it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/451966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What do the numbers reported by the Windows TraceRt Mean I need to create a trace route as part of a .NET appliation to support trouble shooting. I have figured out how to use the .NET Ping class to do the tracing. What I do not understand is what the numbers reported by the command line utility are. This is some...
{ "language": "en", "url": "https://stackoverflow.com/questions/451967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What is the best way to clear Plone's CSS cache? I am using Plone and CacheFu behind an Apache caching reverse proxy. Plone combines multiple CSS files into one file such as name-of-css-file-cachekey1234.css where 1234 is a random number, and it may take an hour for CSS changes made on the filesystem to show up on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/451981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why won't cout << work with overloaded * operator? I'm creating my first class, mainly guided by Overland's C++ Without Fear. I've made the overloaded friend ostream operator<<, which works fine. I've also overloaded the * operator, and that works fine. What doesn't work is when I try to output the result of the * o...
{ "language": "en", "url": "https://stackoverflow.com/questions/451983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Testing firmware This follows a couple of other questions (but I think I have refined my question better). I want to test out my firmware code before I put on the device. I realize that a lot of people write their code, upload, test, etc. But I really want to write and test before upload (mainly because I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/451984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I dynamically update a variable in plain html files in on windows web server We have some old html files on the website that have copyright year on the bottom of the page (from include file). We are trying to find a way to update that dynamically to current year so the include file does not need to be edited...
{ "language": "en", "url": "https://stackoverflow.com/questions/451993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML 5 Reference Implementations I'm looking for a good article or description of what HTML 5 actually is or isn't. At Google I/O last year, I kept hearing that Google Gears can be thought of as a reference implementation of HTML 5. Shortly thereafter Yahoo's BrowserPlus plugin came out with similar functionality. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/451996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Cancel/kill window.setTimeout() before it happens I have a few places where I use the line below to clear out a status, for example. I have a few of these that hang out for 10 seconds or more and if the user gets clicking around the action can occur at incorrect time intervals. window.setTimeout(function() { remove...
{ "language": "en", "url": "https://stackoverflow.com/questions/452003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: C# ConfigurationManager.GetSection could not load file or assembly I am stuck! this seems really daft but I can not see where I am going wrong. I am creating a 2.0 C# ASP.NET website. I am trying to use a custom section in the web.config file with: DatabaseFactorySectionHandler sectionHandler = ConfigurationManag...
{ "language": "en", "url": "https://stackoverflow.com/questions/452004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: open 2 database in wince Is it posible to open more than 2 databases in WinCE ? I work with Sql CE 3.5. Can I get example for open 2 connections? A: You're going to have to give us a bit more to go on than that. What kind of database? SQLCE? MySQL? SQL Server via a SqlClient? EDB? db4o? Something else? In gener...
{ "language": "en", "url": "https://stackoverflow.com/questions/452006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: disk based storage in mysql cluster I have been trying to find out if it is possible to do table partitioning with disk based tables in MySQL Cluster. I want to store a large table on disk, and do range partitioning on the table. I have a feeling the answer is no. Thanks for any info you can offer. Mike. A: Any...
{ "language": "en", "url": "https://stackoverflow.com/questions/452013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 Replication Debugging Suggestions I have a replication setup it was up and running yesterday, now I can't connect to the distributor and I don't know why. * *The publisher is on a Domain and talks to the subscriber (not on the domain) via VPN. *I can ping the publisher from the subscriber and vic...
{ "language": "en", "url": "https://stackoverflow.com/questions/452016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python and Bluetooth/OBEX Is there any Python libraries that will let me send files with OBEX (OBject EXchange) and that works cross-platform (Windows, OS X, Linux)? I have found Lightblue, which works for Linux and OS X, but not for Windows. If none such lib exists, are there any decent ones that only works in Wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/452018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: php image include problem im using this php file as a header in my site. my problem is that i have included an image but it is does not displayed what is the problem?? this is my code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/452019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic transparent images using AlphaImageLoader in IE6 The following code works fine when I have an image in IE6 that i want to make transparent. <img src="image.png" style="width: 100px; height: 100px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale')" /> However t...
{ "language": "en", "url": "https://stackoverflow.com/questions/452039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }