text
string
meta
dict
Q: Two-way data binding objects I used an application recently that was awe-inspiring. All the forms inherited from their own classes and a 'form' came with an amazing amount of functionality and looked the nuts. What I'm interested in is this 'feature' of the form. This was a C# WinForms project and blew me away. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monitoring page load event in selected tab from firefox sidebar I want to be able to run a function in my firefox sidebar js file when the selected tab in the main content window is reloaded or changed. So the sidebar can change depending on the site the user is looking at. Anyone able to point me in the right dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/246274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Modified files in a git branch are spilling over into another branch I am working on a git repository with a master branch and another the topic branch. I have switched to topic branch and modified a file. Now, if I switched to the master branch, that same file is shown as modified. For example: git status in git-bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/246275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Is void** an acceptable type in ANSI-C? I have seen a function whose prototype is: int myfunc(void** ppt) This function is called in a C file as a = myfunc(mystruct **var1); where mystruct is typedef for one of structure we have. This works without any compilation errors in MSVC6.0, But when I compile it with...
{ "language": "en", "url": "https://stackoverflow.com/questions/246280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: div with id="end" on masterpage breaks .NET validation Quick info: I'm using latest release of .NET 2.0, and the following is a stripped down test page I wrote to reproduce the error. Excluding header bits, (there is no included/inline css or javascript) My content page looks like this: <asp:Content ID="Content1" Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/246289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ dynamic_cast error handling Is there any good practice related to dynamic_cast error handling (except not using it when you don't have to)? I'm wondering how should I go about NULL and bad_cast it can throw. Should I check for both? And if I catch bad_cast or detect NULL I probably can't recover anyway... For no...
{ "language": "en", "url": "https://stackoverflow.com/questions/246293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is there a 'scratch pad' window in Visual Studio I currently use notepad to store little notes to myself about my code. This is usually a mixture of code and requirements. Is there a 'scratch pad' type window in VS where i could do this. The other alternative is to use code comment blocks in the source files, but th...
{ "language": "en", "url": "https://stackoverflow.com/questions/246295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Reasons for MySQL authentication error: "Access denied for user 'xxx'@'yyy'"? What possible reasons could exist for MySQL giving the error “Access denied for user 'xxx'@'yyy'” when trying to access a database using PHP-mysqli and working fine when using the command-line mysql tool with exactly the same username, pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/246296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Looking for a Report Designer that allows connection to a RESTful webservice I'm looking for a Report Designer that will allow me to connect to a RESTful webservice. Ideally I would like one that has a royalty-free End-User Report Designer. WE will be hosting it in an ASP.NET web site. So something compatable with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/246300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert keycode to key char How do I convert a keycode to a keychar in .NET? A: I solved this using a library class from user32.dll. I would prefer a Framework class, but couldn't find one so this worked for me. Imports System.Runtime.InteropServices Public Class KeyCodeToAscii <DllImport("User32.dll")> _ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: c++ class friend I'm trying to compile such code: #include <iostream> using namespace std; class CPosition { private: int itsX,itsY; public: void Show(); void Set(int,int); }; void CPosition::Set(int a, int b) { itsX=a; itsY=b; } void CPosition::Show() { cout << "x:" << itsX << " y:" << it...
{ "language": "en", "url": "https://stackoverflow.com/questions/246315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are Open and Closed only relevant values of ConnectionState enumeration? The MSDN page on ConnectionState enumeration says "This value is reserved for future versions of the product", for all values except Open and Closed. What does that mean? Are other values even used? However from this StackOverflow answer appear...
{ "language": "en", "url": "https://stackoverflow.com/questions/246316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I cancel a Delete in SQL I want to create a trigger to check what is being deleted against business rules and then cancel the deletion if needed. Any ideas? The solution used the Instead of Delete trigger. The Rollback tran stopped the delete. I was afraid that I would have a cascade issue when I did the dele...
{ "language": "en", "url": "https://stackoverflow.com/questions/246317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Retrieving the value of RETURN @@IDENTITY in C# Here's a very simple question. I have an SP that inserts a row into a table and at the end there's the statement RETURN @@IDENTITY. What I can't seem to find is a way to retrieve this value in C#. I'm using the Enterprise library and using the method: db.ExecuteNonQuer...
{ "language": "en", "url": "https://stackoverflow.com/questions/246321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Select Features From Command Line This might be a naive question. I have to manually edit a .WXS file to make it support select features from command line. For example, there are 3 features in .WXS file. <Feature Id="AllFeature" Level='1'> <Feature Id="Feature1" Level='1'> </Feature> <Feature Id="Fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/246329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How to build an iterative user-defined action in Visual Build Professional? In VBP its possible to define user defined actions by creating a custom COM component or a custom script. I need to create an user defined action which is iterative, which means it has to call child steps in an iterative manner like the "pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/246338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the meaning of '&' and '!' before property name? I am reading WIX script written by others. There are some code really confuses me. <Custom Action='UnLoadSchedulerPerfCounters' After='InstallInitialize'> <![CDATA[(Installed) AND (!Scheduler = 3)]]> </Custom> <Custom Action='RollbackSchedulerPerfCounters'...
{ "language": "en", "url": "https://stackoverflow.com/questions/246357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to unit test IDisposable? I'm working on a piece of library code around IDisposable. The managed path (via using) is easily testable. I'm wondering about the finalizer though: Is calling System.GC.Collect() sufficient to force the finalizer to run? A: No, the GC.Collect() call is asynchronous, you would also ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/246364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to manage full screen in IE via automation? (Flash player like) I'm facing a problem with IE7 full screen mode. Got an app lying in an activeX embedded in IE. Until IE6, we managed fullscreen via IWebBrowser2::put_FullScreen(bool bIsFull) which was good and well. But since IE7, it seems that this trick is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/246365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I programmatically (in vbscript) change/set the tcp port for a site under IIS? My programming environment includes scripts for setting up my autobuild on a clean machine. One step uses a vbscript to configure a website on IIS that is used to monitor the build. On a particular machine I will be running apache ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How many Web service objects are created in JAX-WS RI? When I annotate a Java class with "@WebService" and use it with JAX-WS RI ("Metro"), how many objects of my class does the JAX-WS RI create? Is there at most one object at all times or (perhaps depending on usage) can there be more instances be created? A: Does...
{ "language": "en", "url": "https://stackoverflow.com/questions/246383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ms-Chart Label Format Question I created a PieChart with the new Ms Chart Controls. How can I format the Labels (Point Values inside the Pie) like the folllowing: "LabelName AbsoluteValue (Percentage)"? For example: "Usa 856027 (56 %)". Is this possible with the right format information in LabelFormat alone (How?) o...
{ "language": "en", "url": "https://stackoverflow.com/questions/246384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Quickfix for C# problems in VS2008 is there something like a Quickfix in Eclipse IDE available in VisualStudio 2008? Thanks, Okami A: Ctrl-Period will do various things (adding using directives) etc but VS2008 itself doesn't do a lot. I'd recommend ReSharper, which has rather more of this.
{ "language": "en", "url": "https://stackoverflow.com/questions/246389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do a check before allowing editing of a given row in a JTable The problem is quite basic. I have a JTable showing cached data from a database. If a user clicks in a cell for editing, I want to attempt a lock on that row in the database. If the lock does not succeed, I want to prevent editing. But I can't seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/246395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run index.php rather than listing files I have recently reinstalled MacOSX, and at some point (without realizing it) I made it so that a directory without index.html would try instead to run index.php. This has since stopped working. My localhost runs .php files fine; it just doesn't do so unless you specifically t...
{ "language": "en", "url": "https://stackoverflow.com/questions/246398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Symfony app - how to add calculated fields to Propel objects? What is the best way of working with calculated fields of Propel objects? Say I have an object "Customer" that has a corresponding table "customers" and each column corresponds to an attribute of my object. What I would like to do is: add a calculated att...
{ "language": "en", "url": "https://stackoverflow.com/questions/246400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Database tables / fields you always use in your killer apps I'm hoping to tap into some collective experience here, so What (if any) utility tables, or common fields do you always include in your database design? An example is that I always include an App_Errors table to store any uncaught exception information in, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Effect of field name length of a database on performance? What effect does a field name length has on the performance of a database? Is it negligible? Should I go with long descriptive names? A: The database server converts field names into an internal representation. So the only time the name's length affects per...
{ "language": "en", "url": "https://stackoverflow.com/questions/246406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Disable sleep mode in Windows Mobile 6 Does anyone know how could I programatically disable/enable sleep mode on Windows Mobile? Thanks! A: If you want your program to not be put to sleep while it's running, the best way is to create a KeepAlive type function that calls SystemIdleTimerReset, SHIdleTimerReset and si...
{ "language": "en", "url": "https://stackoverflow.com/questions/246407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I deploy an iPhone application from Xcode to a real iPhone device? How can I deploy an iPhone application from Xcode to real iPhone device without having a US$99 Apple certificate? A: I've used a mix of two howtos: Jason's and alex's. With the second we have the advantage of being able to debug. I'll mostly...
{ "language": "en", "url": "https://stackoverflow.com/questions/246422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: How do I convert big numbers to decimal? 0x34363932353433373538323038353135353439 A: From the Unix / cygwin command line, you can use bc. $ bc ibase=16 34363932353433373538323038353135353439 1164362276596472215941024063897591129839055929 There is also an online version. If you want to do it in code you should use...
{ "language": "en", "url": "https://stackoverflow.com/questions/246430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NHibernate mapping identity to a column without a generator Can I map the identity of an entity to a column whose values are not automatically generated, but is still unique? If so, what should I put in the xml identity/generator tag? Thanks. A: It depends on how new identity values are created. My guess here would...
{ "language": "en", "url": "https://stackoverflow.com/questions/246434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: newline in Possible Duplicate: How can I use a carriage return in a HTML tooltip? I'd like to know if it's possible to force a newline to show in the tooltip when using title property of a TD. something like <td title="lineone \n linetwo \n etc..."> Can this be done? A: Using &#xA; Works in Chrome to create s...
{ "language": "en", "url": "https://stackoverflow.com/questions/246438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Is there an equivalent of ComboBoxRenderer for NumericUpDown? I want to draw spinner controls, such as those found on a NumericUpDown, on a custom component. If I want to draw a drop-down button, I can use ComboBoxRenderer. Is there an equivalent of ComboBoxRenderer for NumericUpDown? A: Turns out there is. See ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML: Why does embedded audio sometimes fail to play? I am experiencing some strange behavior of embedded audio (wav file) on HTML page. I've got a page https://server.com/listen-to-sound, and a Wav file embedded in it via <EMBED/> tag, like this: <embed src='https://server.com/path-to-sound' hidden="true" autostart...
{ "language": "en", "url": "https://stackoverflow.com/questions/246443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: create std::string from char* in a safe way I have a char* p, which points to a \0-terminated string. How do I create a C++ string from it in an exception-safe way? Here is an unsafe version: string foo() { char *p = get_string(); string str( p ); free( p ); return str; } An obvious solution would be to tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/246445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ISO Country/Currency data All, Our application requires data on ISO countries and currencies (where the data must be up to date). We did purchase country/currency data from ISO themselves, however we still needed to perform alot of manual manipulation of the data, as well as write our own tool to read and process th...
{ "language": "en", "url": "https://stackoverflow.com/questions/246459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do forward-compatibility for .NET 3.5 features in .NET 2.0 apps? I want to start using .NET 3.5 features in an app that is currently stuck in the past - how can I write in support for selected features like JSON serialization in a forward-compatible way? In the case of JSON serialization I need to reference S...
{ "language": "en", "url": "https://stackoverflow.com/questions/246467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What settings for a read database, and what settings for a write database? I am implementing replication for a project I am developing, and would like to replicate changes in the Write database to the Read database. While this isn't a problem, I want to tune one database for reading from, and the other to writing to...
{ "language": "en", "url": "https://stackoverflow.com/questions/246469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is SPRING.Net the best framework for Aspect Oriented Programming(AOP)? Please give me the advantages and disadvantages of using the particular framework. Can give me examples of successes where you have used AOP in you .net applications? A: An older post, but might help you see some of the pro/cons of products and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should you make a self-referencing table column a foreign key? For example to create a hierarchy of categories you use a column 'parent_id', which points to another category in the same table. Should this be a foreign key? What would the dis/advantages be? A: Yes you should. Advantages (as for any foreign key): *...
{ "language": "en", "url": "https://stackoverflow.com/questions/246477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Detect when JavaScript is disabled in ASP.NET In the Render method of an ASP.NET web-control, I need to alter the output of the Html based on whether JavaScript is enabled or disabled on the clients browser, Does anyone know the right incantation to figure that out? A: The noscript tag is used to define an alternat...
{ "language": "en", "url": "https://stackoverflow.com/questions/246480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to convert TIS-620 string to UTF-8 string in Java? How do I convert TIS-620 (the extended ASCII Thai Character code page) string to UTF-8 string in Java? A: import java.nio.ByteBuffer import java.nio.CharBuffer .... public static ByteBuffer toByteBuffer(String content, String encode) { Charset charset ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What mutation-testing frameworks exist? In another question I asked if mutation-testing is useful in practice. As I didn't get any answers that satisfy me, I want to check the current tools myself. So I need an overview about current existing mutation-test-frameworks. Which of them are most usable and why? * *I p...
{ "language": "en", "url": "https://stackoverflow.com/questions/246495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Creating a DateTime in a specific Time Zone in c# I'm trying to create a unit test to test the case for when the timezone changes on a machine because it has been incorrectly set and then corrected. In the test I need to be able to create DateTime objects in a none local time zone to ensure that people running the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/246498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "209" }
Q: Database Guy Asks: Object-Oriented Design Theory? I've worked with designing databases for a loooong time, and these days I'm working in C# too. OO makes sense to me, but I don't feel that I have a good grounding in the deep theory of OO design. In database land, there's a lot of theory around how to design the str...
{ "language": "en", "url": "https://stackoverflow.com/questions/246499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you generate rDoc for a particular plugin using rake OK, I am trying to generate the rDoc for paperclip, but the rake task is choking on another plugin before it gets to it, so this is out of the question: rake doc:plugins I could go and fix up the broken plugin, but I'm busy and lazy, so I just want to gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/246503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The DrawItem() method is performed repeatedly I used the owner-drawn strategy on CMyListBox class which derives from CListBox. I only want the DrawItem() method to perform when I insert an item in the listbox. But the method is invoked many times. How can I change to invoke it whenever I need. A: You could always c...
{ "language": "en", "url": "https://stackoverflow.com/questions/246518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find a user's Active Directory display name in a C# web application? I'm writing a web application which uses windows authentication and I can happily get the user's login name using something like: string login = User.Identity.Name.ToString(); But I don't need their login name I want their DisplayName. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/246520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Keeping a "reference" to a row object for a long time In my application I keep a LINQ object fetched from the database, and regularly modifies it followed by db.SubmitChanges(). I have read that you are not supposed to keep around the DataContext object for a long time. But if I close my DataContext between modifica...
{ "language": "en", "url": "https://stackoverflow.com/questions/246521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I draw a bezier curve using Python's PIL? I'm using Python's Imaging Library and I would like to draw some bezier curves. I guess I could calculate pixel by pixel but I'm hoping there is something simpler. A: You can use the aggdraw on top of PIL, bezier curves are supported. EDIT: I made an example only to...
{ "language": "en", "url": "https://stackoverflow.com/questions/246525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How can I prevent my desktop application from breaking horribly when the user messes with its files at run-time? Such as deleting the output file during run, directing two instances of the sw to the same IO etc ? A: There isn't much you can do to prevent the user from doing that, but what you can do is to apply def...
{ "language": "en", "url": "https://stackoverflow.com/questions/246536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Apache/Tomcat error - wrong pages being delivered This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happens where people are served the wrong page - the page that somebody else requested! Clues: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: WCF-endpoint listening There was no endpoint listening at http;//localhost:8080/xdxservice/xdsrepository that could accept the message. This is often caused by an incorrect address or SOAP action. A: Probably a typo in the question, but your URL is invalid. http;//localhost:8080/xdxservice/xdsrepository should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does Base 64 handle binary data with zeroes at the end As I understand the spec, a Base64 encoder a) takes the source binary, and pads it out with zeroes to be a multiple of 24 bytes long. b) it then transcodes it, six bits at a time, to the target set of 64 characters (A..Z, a..z, 0..9, +, -). If it finds the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I recursively copy files of a specific pattern into a single flat folder on Windows? I need to copy a set of DLL and PDB files from a set of folders recursively into another folder. I don't want to recreate the folder hierarchy in the target folder. I want to use built in Windows tools, e.g. DOS commands. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: What is the lifetime of a static variable in a C++ function? If a variable is declared as static in a function's scope it is only initialized once and retains its value between function calls. What exactly is its lifetime? When do its constructor and destructor get called? void foo() { static string plonk = "W...
{ "language": "en", "url": "https://stackoverflow.com/questions/246564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "415" }
Q: Can I serve RSS in JSON? I am writing an RSS feed (for fun) and was looking at the spec here. RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website. Obviously this means that I am not serving 'pure' RSS if I choose the JSON opt...
{ "language": "en", "url": "https://stackoverflow.com/questions/246577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Application Pools not starting after iisreset Before I start, I know using iisreset is considered bad practice, but this shouldn't happen anyway.. What we have: * *Several machines with IIS6 on Windows Server 2003 R2 (both 64 and 32 bits) *Several WCF webservices (.NET runtime 2.0) deployed in several applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/246598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to gracefully check whether Gravatar, or third-party website, is working or not? I just posted the question how-to-determine-why-the-browser-keeps-trying-to-load-a-page and discovered that my problem is with Gravatar. I also noticed that StackOverflow is suffering from the same outage. Does anyone know of a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to move over Uphill about 5 years ago my career was going fairly well, but separation, family deaths and a bit of illness caused me to make a couple of BAD career decisions, and I ended up in a dead end job doing mainly vb 6, though it was the end as mid to late 30, but was recently handed a break, working with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What features do you need the most in Adobe Air? I recently started to develop using Flex 3 and Adobe Air and I wanted to know what features you want to be in futures releases of Adobe Air ? The ones that I miss are: * *Cross-systems way of launching a local file (shellExec) right from an Air application (althoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/246609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to find if a string is in a list (without generics) I want do something like this: Result = 'MyString' in [string1, string2, string3, string4]; This can't be used with strings and I don't want to do something like this: Result = (('MyString' = string1) or ('MyString' = string2)); Also I think that creatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/246623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: WCF - changing endpoint address results in securityexception My WCF Service uses wsHttpBinding and works fine from the client when the service is gerenated by the client using the default options as follows: RServiceClient R = new RServiceClient(); However, at some point I'll need to be able to specify the location...
{ "language": "en", "url": "https://stackoverflow.com/questions/246636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best approach for WCF client I have client application that uses WCF service to insert some data to backend database. Client application is going to call service on per event basis (it can be every hour or every second). I'm wondering what's the best way of calling that service. Should I create communication channe...
{ "language": "en", "url": "https://stackoverflow.com/questions/246638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Pre-requisite and Launch condition I am having a small problem regarding pre-requisites and launch condition for setup. For example, my setup is having one launch condition requiring "Software1" and one prerequisite installing "Software2". So, if a system does not have both requirements "Software1" and "Software2" o...
{ "language": "en", "url": "https://stackoverflow.com/questions/246641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NHibernate: How can I combine fields from two classes? Here is a simplified version of my database model. I have two tables: "Image", and "HostingProvider" which look like this: [Image] * *id *filename *hostingprovider_id [HostingProvider] * *id *base_url Image HostingproviderId is a many-to-one foreig...
{ "language": "en", "url": "https://stackoverflow.com/questions/246644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to filter out JIRA project that only certain users can see and access? Currently we have mutiple projects sharing a JIRA instances. We want to make it such that the users only view the projects that they are doing testing. But however we are currently groupging these users to the standard grouping jira-users. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/246651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Regular Expressions and Relative File Paths I am trying to match the folder name in a relative path using C#. I am using the expression: "/(.*)?/" and reversing the matching from left to right to right to left. When I pass "images/gringo/" into the regular expression, it correctly gives me "gringo" in the first grou...
{ "language": "en", "url": "https://stackoverflow.com/questions/246656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Persisting a computed datetime column in SQL Server 2005 I have an XML column in a table; I want to "promote" a certain value in that XML as a computed column and index it for faster searching. I have a function that takes in the XML information and outputs the element of interest, like this: CREATE FUNCTION [dbo].[...
{ "language": "en", "url": "https://stackoverflow.com/questions/246666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Exporting Access table data to Excel I have a table in Access 2007 with 11,000 rows and about 20 columns. I want to create a form button that exports the table to an Excel sheet. The code need to be VBA. Any Ideas? A: From access you can also use the TransferSpreadsheet method. A: Here's an example. DoCmd.T...
{ "language": "en", "url": "https://stackoverflow.com/questions/246667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mysql import script Is it possible to import csv data into mysql and automatically create the column names, as in can I create just the table, or must I create the table names as well? Is it possible to check for duplicate entries upon importing? I have an identifier field, but dont know how to make it so it will no...
{ "language": "en", "url": "https://stackoverflow.com/questions/246671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CFile Error On Windows Ce I am using Windows CE 4.2 and MS Embedded VC++ 4.0. The following code gives me the error Access to [file name] was denied., and it creates the file but does not write anything to it. CString tmp; tmp.Format(_T("%s%d"), mFileName, ++ctr); TRY { mFile.Open(tmp, CFile::modeCreate); mFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/246683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostSharp aspect for property setters, calling generic method We have a base object we use for some MVC-like system, where each property in a descendant is written like this: public String FirstName { get { return GetProperty<String>("FirstName", ref _FirstName); } set { SetProperty<String>("FirstName", ref ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Timer for using in a Windows service I need to create some windows service which will execute every N period of time. The question is: Which timer control should I use: System.Timers.Timer or System.Threading.Timer one? Does it influence on something? I am asking because I heard many evidences to non correct ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: What is Normalisation (or Normalization)? Why do database guys go on about normalisation? What is it? How does it help? Does it apply to anything outside of databases? A: Normalization a procedure used to eliminate redundancy and functional dependencies between columns in a table. There exist several normal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "115" }
Q: Dynamically adding Content blocks to Masterpage fails after Master.FindControl I've encountered an odd problem that doesn't make any sense to me. I am trying to dynamically set up MasterPage Content controls on a page. I have it working nicely with the following code: protected override void OnPreInit(EventArgs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implement a singleton in C#? How do I implement the singleton pattern in C#? I want to put my constants and some basic functions in it as I use those everywhere in my project. I want to have them 'Global' and not need to manually bind them every object I create. A: Singletons only make sense if both of thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/246710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: What methods exist for leveraging SecurID and similar technologies? From Wikipedia: RSA SecurID is a mechanism developed by RSA Security for performing two-factor authentication for a user to a network resource. I just read about this device, and it seems interesting to me. However, I'm not sure how (or even if) sof...
{ "language": "en", "url": "https://stackoverflow.com/questions/246717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to play a wav-File in Delphi? Which functions are available within Delphi to play a sound-file? A: People keep quoting sndPlaySound, but this is quite obsolete, and it is available in Delphi for backward compatibility only. So, stop using it! That being said, use: procedure PlaySoundFile(FileName: string); beg...
{ "language": "en", "url": "https://stackoverflow.com/questions/246723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How do I add tab completion to the Python shell? When starting a django application using python manage.py shell, I get an InteractiveConsole shell - I can use tab completion, etc. Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "...
{ "language": "en", "url": "https://stackoverflow.com/questions/246725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: In SSRS, can you set a rectangle to grow with its contents? I'm working on a report in SSRS (SQL Server Reporting Services) right now, and I'm having a problem getting a rectanlge I draw on the page in the report designer to grow. Basically, I've got a rectangle drawn, and then I put a text field inside of it. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/246726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C#/.Net Changelog I started programming C# applications when the 1.0 framework was first released. I worked professionally with it for about three years right up until just before the 2.0 framework release. As I look now I see that 3.5 came out last year and that each new version of the framework has added large set...
{ "language": "en", "url": "https://stackoverflow.com/questions/246732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display chinese characters in AJAX and also in excel I am currently developing a Java Struts application and i been wondering how is it possible to display chinese characters in AJAX and also when generating excel file by servlet response. Anyone can share any pointers? A: As long as you use UTF8 for your character...
{ "language": "en", "url": "https://stackoverflow.com/questions/246734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java File Cursor Is there some library for using some sort of cursor over a file? I have to read big files, but can't afford to read them all at once into memory. I'm aware of java.nio, but I want to use a higher level API. A little backgrond: I have a tool written in GWT that analyzes submitted xml documents and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/246744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I tag a database component in UML? In an UML component diagram, how does one tag or identify a component as a database, so that it's easily recognizable? In the old days there was the cylinder symbol for showing database but that's not part of the UML. Same goes for an application server for instance, how wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/246760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding HTTP Headers in a Spring Interceptor postHandle method I have a Spring Interceptor which attempts to add an HTTP header in the postHandle() method. public void postHandle(HttpServletRequest req, HttpServletResponse resp, Object obj1, ModelAndView mv) throws Exception { response.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/246762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NHibernate/ActiveRecord - Any way to map to a foreign key column only? I'm using Castle ActiveRecord, but this question applies to NHibernate, too, since a solution that works with NHibernate should work for ActiveRecord. Anyway, what I have is an underlying table structure like this: TableA -hasMany-> TableB I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/246766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Team foundation and 64-bit windows, can't install? So is it a certified answer that you can't install Team foundation on windows 2008 64-bit? Update Is it better just do install it on windows 2003 or 2008? A: short answer is no Rereading I need to make clear for double negative, read link, official is that you can'...
{ "language": "en", "url": "https://stackoverflow.com/questions/246780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where to store the complete url in a cms? I'm creating a cms and have not yet settled on the matter of where to store the complete url for a given page in the structure. Every page have a slug (url friendly name of the page) and every page has a nullable (for top-level pages) parent and children. Where do I store th...
{ "language": "en", "url": "https://stackoverflow.com/questions/246787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invoking asynchronous call in a C# web service I'm consuming a third-party resource (a .dll) in a web service, and my problem is, that invoking this resource (calling a method) is done asynchronous - I need to subscribe to an event, to get the answer for my request. How do I do that in a c# web service? Update: With...
{ "language": "en", "url": "https://stackoverflow.com/questions/246791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you access the DisplayMemberPath from a ListBox when trying to bind it to the content of the ListBoxItem? I have overridden the windows ListBox in order to display an image and a piece of text in each ListBoxItem, but I need to filter the contents of the text displayed I was hoping to do this by accessing the...
{ "language": "en", "url": "https://stackoverflow.com/questions/246792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data timeline performance in Sql Server I have a table with three columns: user varchar, status varchar , rep int status and rep get updated often and one of the requirements is: Given a datetime value view status and rep values, for each user, at the given date. I can add an updated_at datetime column to the table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/246799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Menu Parent Menu Item Highlighting on Hover when Flyouts are enabled I have a ASP.Net Menu Control with three levels and flyouts enabled. I want to highlight the parent items (right upto the top level parent) whenever a user hovers over the menu items. I do not want to use a client side solution as described...
{ "language": "en", "url": "https://stackoverflow.com/questions/246800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you encode a string to Base64 in JavaScript? I have a PHP script that can encode a PNG image to a Base64 string. I'd like to do the same thing using JavaScript. I know how to open files, but I'm not sure how to do the encoding. I'm not used to working with binary data. A: Sunny's code is great except it bre...
{ "language": "en", "url": "https://stackoverflow.com/questions/246801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1171" }
Q: What's the best way to detect that Adobe Acrobat Reader is installed from a browser? What's the best way to detect that Adobe Acrobat Reader is installed from a web browser? I'm assuming it would have to be done on the client-side (I don't think Adobe adds any user-agent strings). Preferably in JavaScript and in I...
{ "language": "en", "url": "https://stackoverflow.com/questions/246803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I want to convert std::string into a const wchar_t * Is there any method? My computer is AMD64. ::std::string str; BOOL loadU(const wchar_t* lpszPathName, int flag = 0); When I used: loadU(&str); the VS2005 compiler says: Error 7 error C2664:: cannot convert parameter 1 from 'std::string *__w64 ' to 'const wchar_...
{ "language": "en", "url": "https://stackoverflow.com/questions/246806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: When is Object Oriented not the correct solution? I've encountered lately some opinions saying that Object Oriented design/programming should not always be used. Do you know some use-cases that will not benefit from and should not use Object Oriented design? For example: there are some problems (concerns) that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/246808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best Practice: function return value or byref output parameters? I have a function called FindSpecificRowValue that takes in a datatable and returns the row number that contains a particular value. If that value isn't found, I want to indicate so to the calling function. Is the best approach to: * *Write a functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/246814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Automate SVN Adds Using NAnt I want to automate SVN adds using NAnt. I want to add to SVN all new files in a given directory. The NAnt script will successfully execute the add command, however it displays the Tortoise SVN add dialog and this is not acceptable because it will execute on a build server running CruiseC...
{ "language": "en", "url": "https://stackoverflow.com/questions/246817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }