text
stringlengths
8
267k
meta
dict
Q: Dynamic hyperlink using formula I need to use an ID in a URL hyperlink like this example: http://www.wotnots.co.uk/property/images/property2402_image1.jpg The ID here is 2402. I want to change it to the ID number which is in the first column and is different on every row. I want to have the ID number to be the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/417309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scaffolding ActiveRecord: two columns of the same data type Another basic Rails question: I have a database table that needs to contain references to exactly two different records of a specific data type. Hypothetical example: I'm making a video game database. I have a table for "Companies." I want to have exactly o...
{ "language": "en", "url": "https://stackoverflow.com/questions/417320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How do I get the alias string of a class in AS3? var alias:String = 'models.User'; registerClassAlias(alias, models.User); // If I have the alias, then // I can get the class like this: var klass:Class = flash.net.getClassByAlias(alias); // How do I do the reverse // (get the alias from the class)? // // I want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/417334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to migrate SourceSafe with HISTORY into SVN? Is there a way to migrate SourceSafe with HISTORY into a SVN ? Ideally I'd like to use VisualSVN Server, but I don't really want to lose my SourceSafe history. If I have to I will though. A: A long time ago (it seems) I tried to migrate a SourceSafe DB to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MS Reporting Services 2005 - Report Subscriptions Email only Occassionally Working I have an internal customer that only receives his email report from MS Report Services 2005 about 30% of the time. It is not getting caught by a SPAM filter. The report takes about 2 minutes to run. Does Reporting Services give up af...
{ "language": "en", "url": "https://stackoverflow.com/questions/417357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modelling inheritance in a database For a database assignment I have to model a system for a school. Part of the requirements is to model information for staff, students and parents. In the UML class diagram I have modelled this as those three classes being subtypes of a person type. This is because they will all...
{ "language": "en", "url": "https://stackoverflow.com/questions/417363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can i put a flash animation in the header of a movable type 4.2 site? Im creating a new site i a i want a flash animation in the header of my page, im using Movable Type 4.2. The problem is i don't know how can i do that, and which file i need edit, or if i can do all the job in the dfashboard of movable type. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML special code to ASCII Hey, is there any built in functions or something like that in php that will allow me to turn HTML special code like: <(;), >(;), Á(;) and ©(;) etc... into <, >, Á and © Lets say I have the value: $fileName = "Gibt es eine schö(;)ne Offroadstrecke? (;)"; And I want this: $fileName = "Gib...
{ "language": "en", "url": "https://stackoverflow.com/questions/417370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a boolean calculated field in TSQL and join on that calculated field? First check out this code. I seems like it should work for me, but it doesn't! (surprise!) Anyway, this is what I tried first: SELECT Status as status, Address as ip, PCName as pc_name, (Numbers.Phone = 'CPU/' + PCName) as cpu_cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/417371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP: Apply a function to multiple variables without using an array I have a function (for ease, I'll just use count()) that I want to apply to maybe 4-5 different variables. Right now, I am doing this: $a = count($a); $b = count($b); $c = count($c); $d = count($d); Is there a better way? I know arrays can use the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/417373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django Templates: With Template AutoEscaping on, do I need to pass URLs to URLEncode? I am running Django trunk and have template Autoescaping on (default). Do I need to pass template URLs to the URLENCODE filter, or does Autoescape take care of that automatically? The Django docs aren't clear. Django docs say this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I determine what the alphabet for a locale is in java? I would like to determine what the alphabet for a given locale is, preferably based on the browser Accept-Language header values. Anyone know how to do this, using a library if necessary ? A: take a look at [LocaleData.getExemplarSet][1] for example for...
{ "language": "en", "url": "https://stackoverflow.com/questions/417377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WatiN or Selenium? I'm going to start coding some automated tests of our presentation soon. It seems that everyone recommends WatiN and Selenium. Which do you prefer for automated testing of ASP.NET web forms? Which of these products work better for you? As a side note, I noticed that WatiN 2.0 has been in CTP since...
{ "language": "en", "url": "https://stackoverflow.com/questions/417380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "149" }
Q: Get dpi settings via GTK Using GTK, how do I query the current screen's dpi settings? A: The current accepted answer is for PHPGTK, which feels a bit odd to me. The pure GDK library has this call: gdk_screen_get_resolution(), which sounds like a better match. Haven't worked with it myself, don't know if it's genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/417384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What does the “|” sign mean in Python? This question originally asked (wrongly) what does "|" mean in Python, when the actual question was about Django. That question had a wonderful answer by Triptych I want to preserve. A: In Python, the '|' operator is defined by default on integer types and set types. If the...
{ "language": "en", "url": "https://stackoverflow.com/questions/417396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Force Log4Net RollingFileAppender to roll According to the Log4Net documentation, the RollingFileAppender will only roll the log file when a message is logged. I need to log to this file, but import it every day into another database. I cannot use a database appender because I need the files and I have to translat...
{ "language": "en", "url": "https://stackoverflow.com/questions/417403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting Shortcut Keys in Textmate I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally. First, tab switching doesn't work with Cmd+Shift+{ and Cmd+Shift+} This works in nearly every o...
{ "language": "en", "url": "https://stackoverflow.com/questions/417406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Managing dependencies with Eclipse and CVS I have a bit of code for a dll that is needed by two or more projects in eclipse. Currently each project has a copy of the code and builds the DLL separately. I want to separate the dll code into a separate eclipse project so there is a common location. But I want to avoid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Microsoft provider for Oracle and positional parameters Is there a way to use positional parameters when calling Oracle stored procedure using System.Data.OracleClient? IDataParameter parameter = dbCommand.CreateParameter( ); parameter.Value = "Blah Blah"; parameter.Type = OracleType.Varchar; dbCommand.Parameters.A...
{ "language": "en", "url": "https://stackoverflow.com/questions/417426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Create Custom Exceptions? Why do we need to create custom exceptions in .NET? A: Specific customs exceptions allow you to segregate different error types for your catch statements. The common construct for exception handling is this: try {} catch (Exception ex) {} This catches all exceptions regardless of type...
{ "language": "en", "url": "https://stackoverflow.com/questions/417428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Repeater for display sets I need to display something such as below. Type A * *Type A Item 1 *Type A Item 2 *Type A Item 3 Type B * *Type B Item 1 *Type B Item 2 *Type B Item 3 Type C * *Type C Item 1 *Type C Item 2 *Type C Item 3 All of the data comes from a dataset with columns 'Type' and 'Ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/417429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is the regex replace method not working? In the following code I want to replace every occurrence of "U.S.A" with "united states of America" and every occurrence of "uk" with "united kingdom" in a string, but it does not seem to work. How do I fix it? class Program { static void Main(string[] args) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating gridview using ado.net and then changing edit mode I simply use commandName = "Edit" to put the gridview into edit mode. Then i use a special command ("CallUpdate") so i can update in a special function. All of this works great except after i call the update and the page refreshes IT IS STILL IN EDIT MODE. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I search for a varying string in an XML file using VBS and replace it with another string I have a configuration XML file which contains an encrypted password. From time to time we need to reset this password, and the methodology for doing so involves stripping out the string which is effectively the passwo...
{ "language": "en", "url": "https://stackoverflow.com/questions/417435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to build a data layer across multiple databases? First a bit about the environment: We use a program called Clearview to manage service relationships with our customers, including call center and field service work. In order to better support clients and our field technicians we also developed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Managing C++ objects in a buffer, considering the alignment and memory layout assumptions I am storing objects in a buffer. Now I know that I cannot make assumptions about the memory layout of the object. If I know the overall size of the object, is it acceptible to create a pointer to this memory and call functions...
{ "language": "en", "url": "https://stackoverflow.com/questions/417446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best/Most Comprehensive API for Stocks/Financial Data What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML setup, etc.), as long as it's got some decent documentati...
{ "language": "en", "url": "https://stackoverflow.com/questions/417453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Install Shield 2009 - Shortcuts creation Is it possible to create shortcuts in Install Shield 2009 based on user input? In essnes, a shortcut will be created (on the desktop) only if the user (who runs the installation) wants to do so A: We have a screen that prompts the user to create desktop and quicklaunch short...
{ "language": "en", "url": "https://stackoverflow.com/questions/417460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically saving file location I have an asp.net app and I am trying to save a text file to a folder that changes with each client. How can I write it to save the files to a folder that changes. For example one customer might be C:\inetpub\wwwroot\site1\ another might be C:\inetpub\wwwroot\site2. Relative paths do...
{ "language": "en", "url": "https://stackoverflow.com/questions/417472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hide certain actions from Swing's undo manager I am trying to write a JTextPane which supports some sort of coloring: as the user is typing the text, I am running some code that colors the text according to a certain algorithm. This works well. The problem is that the coloring operations is registered with the undo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Pointers, smart pointers or shared pointers? I am programming with normal pointers, but I have heard about libraries like Boost that implement smart pointers. I have also seen that in Ogre3D rendering engine there is a deep use of shared pointers. What exactly is the difference between the three, and should I stick ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "128" }
Q: Change Default Locale in IIS 6.0 I've got a hosted VPS hosted by a UK hosting company that for some reason is set to US settings. In fact, until recently, the regional settings were 'English - United States'. I've corrected the regional settings, but my application is still working with the wrong date format. See: h...
{ "language": "en", "url": "https://stackoverflow.com/questions/417497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can ZFS mirror an entire hard drive in OpenSolaris? I am upgrading an OpenSolaris development workstation and recently purchased two 500GB SATA hard drives expecting to use the features of the motherboard to mirror the drives. OpenSolaris doesn't recognize the drives when configured to be mirrored through the BIOS b...
{ "language": "en", "url": "https://stackoverflow.com/questions/417503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Edit HTML Meta Tag w/ ASP.NET Question I'm trying to build a quick and easy ASP.NET page that redirects a user to a new URL using a meta redirect. Only trouble is that I need to also pass along the GET values of the current request. I've found a way to do this programatically in the code behind using the HtmlMeta...
{ "language": "en", "url": "https://stackoverflow.com/questions/417510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How Do I Track and Eliminate Session Abuse? I'm pretty sure that there have been developers in the past that have severely abused our poor friend ASP.NET session state. Session would love to help track things between requests, but can only do so much! Please help me ease its pain so that it can work with us happil...
{ "language": "en", "url": "https://stackoverflow.com/questions/417512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: quick-and-dirty vs. good design What do you do when your manager wants you to implement something in a quick and dirty way and you just know it's going to backfire? My manager wants me to develop a web app for a client and to do it as quickly as possible. This is the first web app we're building for this client, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/417515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running a new executable file of a Java application, saving a session here is a rather newbie question, but it'll be very helpful if you give me some clues. I am running a Java application (with Gui). Every time I exit the Gui, the session (what I have done in the Gui) is saved, and next time when I start the Gui, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/417517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET web service without proxy class I'm trying to create an application that will let me execute a method specified at runtime on an arbitrary webservice (the URL of which I'll also provide at runtime). I've figured out how to use Type.InvokeMember to execute the arbitrary method, but how do I specify the web serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/417535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find unique entries in Large data set? I have 100 million lines of data, the data is a word no longer than 15 chars,one word per line. Those data are stored in multiple files. My goal to to find the unique words among all files. One solution is to import all words into database and add a unique key for the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/417549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery UI Tabs - How to Select a Tab on Hover Using the jQuery UI Tabs component, is it possible to select new tabs on hover instead of when clicking on them? I found an example here, but this does not seem to work with the latest (stable) versions of jQuery and jQuery UI tabs. Finally, one of the developers mention...
{ "language": "en", "url": "https://stackoverflow.com/questions/417550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Float vs Double Performance I did some timing tests and also read some articles like this one (last comment), and it looks like in Release build, float and double values take the same amount of processing time. How is this possible? When float is less precise and smaller compared to double values, how can the CLR ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/417568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: How to view Windows Event Log remotely with limited privileges To debug some code, I would like to view the Windows event log of a remote machine (target is Windows2003). With mmc.exe I can add the event log for a remote machine, but only if I have sufficient permissions. For this remote machine, they do not want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I tell if an Expando subclass has a property defined? I'm creating an app that I want to have an expandable set of properties (each a RatingProperty) I also want to validate that any dynamic properties are of the RatingProperty type. In the Expando documentation it says: Tip: If you want to validate a dyna...
{ "language": "en", "url": "https://stackoverflow.com/questions/417584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Abstract classes and methods in Java, Inheritance I have class B, which inherits from class A. The superclass A is abstract, containing one abstract method. I don't want to implement the abstract method in class B, therefore I need to declare class B as abstract as well. Declaring class B abstract, two things are wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/417590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SVN best-practices - working in a team I'm starting out with SVN. I know the basic commands and understand the base principles. I was wondering if anyone has any tips or best practices for working with Subversion in a team environment. I can see the benefit of adding reasonably verbose messages when committing c...
{ "language": "en", "url": "https://stackoverflow.com/questions/417599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: C makefile to compile OpenGL project directly on iphone Please direct me if this question has already been asked; I did a search on the topic unable to find yet. I am having trouble putting together a makefile that will take one or more .c OpenGL project files, uses apple-arm-darwin9 and OpenGL framework to compile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looking for a simple explanation on using trace logging I have seen several projects that use the Trace functionality to capture events and stream them out to a log file. I have been unsuccessful in finding a simple to follow guide that will show me how to configure Trace to capture and write said logfile. Does an...
{ "language": "en", "url": "https://stackoverflow.com/questions/417611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I make the Enter key on intellisense when typeing in VB react the same way as in C# in Visual Studio? I'm using Visual Studio 2008 and I'm used to C# where when Intellisense pops up, I select what I want by hitting enter and it doesn't skip down to the next line. In VB when I hit the enter on intellisense, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to return errors from a WCF service in a RESTful way? Using WCF in a RESTful way seems great. I’m a big fan of the big guns like simplicity and flexibility, but I also love the way the Urls end up looking. What can I say, I’m a programmer. The simple API for retrieving and editing resources is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/417632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Are there any good workarounds for FxCop warning CA1006? I am having trouble with FxCop warning CA1006, Microsoft.Design "DoNotNestGenericTypesInMemberSignatures". Specifically, I am designing a ReportCollection<T> class that inherits from ReadOnlyCollection<Report<T>>, and its public constructor takes an IList<Repo...
{ "language": "en", "url": "https://stackoverflow.com/questions/417634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: XML and Sql Server 2005 i have a problem that I want to resolve in a best possible way. The thing is that I made a schema that looks like this: print(" <xs:complexType name="rentACarT"> <xs:sequence> <xs:element name="poslovnice" type="poslovniceT" /> <xs:element name="korisnici" type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/417639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a variable addressable by name as string in JavaScript? Is there a way to convert variable names to strings in javascript? To be more specific: var a = 1, b = 2, c = 'hello'; var array = [a, b, c]; Now at some point as I go through the array, I need to get variable names (instead of their values) as str...
{ "language": "en", "url": "https://stackoverflow.com/questions/417645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Track used applications I've been using Wakoopa recently, and I find it quite amusing. I had no idea ( well I had an idea but never got real data about it ) on how much time I spend in SO until this: alt text http://img396.imageshack.us/img396/4699/wakoopaim1.png So my programming question is: How can I programma...
{ "language": "en", "url": "https://stackoverflow.com/questions/417648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Moving BizTalk 2006 Database from SQL 2000 to SQL 2005 Has anybody had any experience migrating a BizTalk 2006 server from a SQL 2000 server to a SQL 2005 Server? I understand that nothing changes as far as the content of the databases - views, stored procs, etc. all remain the same. The scheduled jobs have to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hash sign (#) in VB.NET I have this legacy code that I am working with and there is code like this all over the place: #If PRE611 = True Then 'Do Something #Else 'Something Else #End If I am pretty sure the PRE611 has something to do with versioning, but I would like to know what specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/417657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to config Tomcat to serve images from an external folder outside webapps? How can i use Tomcat to serve image files from a public folder outside webapps? I dont want to use a 2nd Apache fileserver on a different port since the image files are part of the same app. And i dont want to create a symlink to the publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/417658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: How can I use Numerical Python with Python 2.6 I'm forced to upgrade to Python 2.6 and am having issues using Numerical Python (NumPy) with Python 2.6 in Windows. I'm getting the following error... Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from numpy.core.numeric import array,...
{ "language": "en", "url": "https://stackoverflow.com/questions/417664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Load images in the background using Flex In my Flex application I call a web service that returns a few dozen "items" where each item has an associated image url. I create a model based on this data and bind the image components source property to the url string. I'd like to have more control over the loading of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/417665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is only the first word capitalizing when using the tocap() function? I did the following to upper case the first letter in each word but it's only working on the first word. Could someone explain why? static void Main(string[] args) { string s = "how u doin the dnt know about medri sho min shan ma baref shu"...
{ "language": "en", "url": "https://stackoverflow.com/questions/417677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: One UITableView - Multiple DataSource, best design pattern? This seems like a typical problem, but I have a UITableView that has identical behavior for two separate data sources. What is the best way of going about designing the class hierarchy to have as little duplication and if/else conditions? The view controlle...
{ "language": "en", "url": "https://stackoverflow.com/questions/417678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Classic ASP: Server.CreateObject not supported When I call Server.CreateObject(), from my Classic ASP page, I get Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method I've tried the following (separately): Server.CreateObject("Microsoft.XMLHTTP") Server.CreateObject("MSXML2.XMLHTTP...
{ "language": "en", "url": "https://stackoverflow.com/questions/417690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What does the sys.dm_exec_query_optimizer_info "timeout" record indicate? During an investigation of some client machines losing their connection with SQL Server 2005, I ran into the following line of code on the web: Select * FROM sys.dm_exec_query_optimizer_info WHERE counter = 'timeout' When I run this query on o...
{ "language": "en", "url": "https://stackoverflow.com/questions/417697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getting 'System.OutOfMemoryException' when converting byte array to string code snippet: //byte[] myByteArray = byte array from database (database BLOB) myByteArray = (byte[]) ((dbCommand.Parameters["parameter"].Value)); string myString =System.Text.Encoding.UTF8.GetString(myByteArray); Xmldocument doc = new Xmld...
{ "language": "en", "url": "https://stackoverflow.com/questions/417699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python: C++-like stream input Is there a pythonic way of reading - say - mixed integer and char input without reading the whole input at once and without worrying about linebreaks? For example I have a file with whitespace-separated data of which I only know that there are x integers, then y chars and then z more in...
{ "language": "en", "url": "https://stackoverflow.com/questions/417703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSIS Check Ready Flag I need help with an SSIS package. I have a server that populates a DB table as a part of a daily job. Then the server writes to a process status table to let me know that its done. The process status table looks like this: Job | Ready | Downloaded myJob True False I want to create a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/417707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging Solaris OS crash I have access to a remote Solaris terminal which crashes occasionally, and I have to ask someone with physical access to boot the machine up, which it does successfully. I would like to know which tools/files should I look at to find out the cause of the crash so that I can make the necess...
{ "language": "en", "url": "https://stackoverflow.com/questions/417724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I move a single folder from one Subversion repository to another repository? I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs". I'd like to move the "docs" folder (and all of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "158" }
Q: ASP.NET Localized web site -- updating on the fly I think I have a solution to this, but is there a better way, or is this going to break on me? I am constructing a localized web site using global/local resx files. It is a requirement that non-technical users can edit the strings and add new languages through the w...
{ "language": "en", "url": "https://stackoverflow.com/questions/417729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: free statistic website for analysing traffic I am searching for a program like Google Analytics or Clicky which runs on my own servers. I have used awstats, which looks really old. It doesn't have to be open source but I would prefer something free. If possible it should also analyse my Apache Logs. A: You might li...
{ "language": "en", "url": "https://stackoverflow.com/questions/417731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In TDD, what is the advantage of running the tests before even writing an empty method? I see lots of TDD practitioners following this cycle: 1) Write your test as if the target objects and API already exists. 2) Compile the solution and see it break. 3) Write just enough code to get it to compile. 4) Run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: OS X equivalent to OutputDebugString()? I'm examining the feasibility of porting an existing Windows MFC control to OS X/Carbon. My test bed is a C++ Carbon application generated using the XCode 3 Wizard. I'm looking for a quick way to dump some trace info to the debugger or the OS X equivalent of DbgView. On Win32...
{ "language": "en", "url": "https://stackoverflow.com/questions/417745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I get NAnt to use the new VB9 compiler for .NET 2.0 applications? How do I tell NAnt to use the same VB compiler VS2008 uses when it creates .NET 2.0-targeting applications? I have switched a web application to VS2008 back-targetted to .NET 2.0. I can run NAnt (0.85rc4, 0.85, and 0.86b1) just fine once I do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/417755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Closing a .NET form causes the parent to minimize I have an issue where the parent form will minimize to the task tray (but I don't think it is losing focus because the next form that shows, the Studio IDE, has focus) when I close a dialog/form that was shown by calling ShowDialog(owner). The weird thing is that thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/417762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Process size in XP from Python I have a python script that can approach the 2 GB process limit under Windows XP. On a machine with 2 GB physical memory, that can pretty much lock up the machine, even if the Python script is running at below normal priority. Is there a way in Python to find out my own process size? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the difference between a temporary table vs global temporary table in Oracle? I have heard these two terms "temporary table" and "global temporary table" used pretty much in similar context. What is the difference between the two? A: Contrast this with MS SQL-Server, where temporary tables are local. If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/417764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How Do You Convert a Page-Based PHP Application to MVC? I've been struggling for some time now with exactly how to recode a page-based PHP application using an MVC framework. Just for background, I am having to move the app into MVC because my boss is making me. Anyway, I've sat down, and printed out the directory s...
{ "language": "en", "url": "https://stackoverflow.com/questions/417774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Best way to handle sql-connections in webservice? I have a webservice that is called by up to 10 clients. The webservice is built up of 7 differnet asmx-pages and have about 100-200 functions in each page. All those functions are working against a MSSQL2005 or MS SQL2000 database. Some periods of the day its heavy t...
{ "language": "en", "url": "https://stackoverflow.com/questions/417776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help to correct source code, with template I tried to compile the example posted (C++ Service Providers) and failed to VS8 VC9. I have little experience with template. Any suggestions? Tanks. These are the errors : dictionarystl.cpp(40) : error C2663: 'std::_Tree<_Traits>::find' : 2 overloads have no legal conversio...
{ "language": "en", "url": "https://stackoverflow.com/questions/417788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cf.net exception and other logging I want to add some logging capability to a cf.net application running on WM6 Pro. I'm looking at logging exceptions and some of the more sensitive sections of code. I would like to have logs stored both locally (i.e. on the device) and also have them reliably uploaded to a serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/417789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Capturing file output in PHP (fputcsv) I'm attempting to capture the output of fputcsv() in order to use gzwrite() to actually write to a tab-delimited file. Basically, I'm querying a database and I want to put these rows into a gzipped CSV file and I'd rather use fputcsv() than actually append "\t" and "\n" everyw...
{ "language": "en", "url": "https://stackoverflow.com/questions/417793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTTP_REFERER substitute that IE 6 will provide? So IE (6, at least) won't help me with $_SERVER["HTTP_REFERER"] that I request with PHP. But I'm new to JavaScript and have just used a little routine in a pop-up to refresh the page from which the popup was called (i.e. parent). Works beautifully in Firefox, Safari, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/417795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP .NET and C# I am fresh out of college (passed in 07) and have been working on a Windows Forms project since then. I have a decent understanding of C# (not all the features of the language only the ones that i got to use in the project) and am very interested in learning ASP .NET Would it be better to start le...
{ "language": "en", "url": "https://stackoverflow.com/questions/417797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: INI file parsing in PowerShell I'm parsing simple (no sections) INI file in PowerShell. Here code I've came up with, is there any way to simplify it? convertfrom-stringdata -StringData ( ` get-content .\deploy.ini ` | foreach-object ` -Begin { $total = "" } ` { $total += "`n" + $_.ToString() } ` -En...
{ "language": "en", "url": "https://stackoverflow.com/questions/417798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to embed .tlb as a resource file into .NET Assembly DLL? We're using our .NET Assembly DLL within native C++ through COM (CCW). Whenever I make new version of my DLL, I have to send two files (.dll and corresponding .tlb) to crew that's using it in their code. Is it possible to embed .tlb file as a resource in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Using XSLT to process business rules? A coworker of mine mentioned that one use of XSLT is processing business rules. He mentioned that there were systems that allowed users to write business rules in some kind of text format, and then the program uses XSLT to process the text and apply the rules at run-time in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update a DropDrownList in a ASP.NET MVC when a user select un option in another DropDrownList Anyone known how to polulate a combo with values that depends on the user seleccion, I have to combo, Country and Region, When the user select contry I need to go to the database and get the region of the country, Anyone k...
{ "language": "en", "url": "https://stackoverflow.com/questions/417813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need an exercise suggestions to help me learn and exercise .NET Do you have any idea for a complex exercise that touches and covers most important and major concepts of .NET? (so I can learn while coding and implementation) The exercise should NOT be for beginners, but for someone who already familiar with .net, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/417814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access.Application.CurrentDb is Nothing? I'm at a loss to explain this one: I am getting an error: Error "91" (Object or With block not set) on the second line below: Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("SELECT * FROM employees") The following also causes it: `Set rs = CurrentDb.OpenRecord...
{ "language": "en", "url": "https://stackoverflow.com/questions/417823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way of randomly re-arranging a list of items in c#? I have a list of objects and I want to reorder them randomly on each request. What is the best way of doing this? A: Check out this cool Linq way of doing it: public class Employee { public int Id { get; set; } pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/417831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Lost decimal precision and scale using LINQ and stored procedure with output parameters I have a stored procedure that uses output parameters like this: ALTER PROCEDURE [GetAmount] ( @orderID [int], @totalcost decimal(18,2) OUTPUT ) SELECT @totalcost = cost FROM mytable WHERE orderID = @orderID When I drag ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to right align a tag? I have a couple of <p> tags that I want to right align. Does anyone know how to do this? A: It depends. Do you want the entire paragraph to align to the right side of whatever container it's in? Or do you want the text of the paragraph to align to the right margin of the paragraph? If it...
{ "language": "en", "url": "https://stackoverflow.com/questions/417840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: InternalsVisibleTo not working for Managed C++ InternalsVisibleTo is not working for my managed C++ projects, but it is for my C# projects. Any help would be appreciated. Here is a simplified layout. Project A - C#, has an internal property I want to access from B/C. Project B - Managed C++. References A. Project C ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: ColdFusion Exception help: coldfusion.runtime.NoOperScope cannot be cast to coldfusion.runtime.ApplicationScope I am encountering an exception cause by the CFINVOKEARGUMENT line of the following snippet: <CFOUTPUT query="cfmx.Messages"><CFSILENT> <CFINVOKE component="com_VUI_RemoveIllegalChars" method="formatString"...
{ "language": "en", "url": "https://stackoverflow.com/questions/417843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I source/link external functions in C or C++? EDIT: I suppose I should clarify, in case it matters. I am on a AIX Unix box, so I am using VAC compilers - no gnu compilers. End edit I am pretty rusty in C/C++, so forgive me if this is a simple question. I would like to take common functions out of a few of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: getting the best record from a file I have a file with the following text inside mimi,m,70 tata,f,60 bobo,m,100 soso,f,30 I did the reading from file thing and many many other methods and functions, but how I can get the best male name and his grade according to the grade. here is the code I wrote. Hope it's not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/417878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: J2ME and (open source) applet signing for Mobile Devices (esp. phones) - what can I do? I've just discovered J2ME and I love the possibilities that it presents. I'm currently working on a simple application and I'd like to maybe release it as an open-source project sometime in the future. As part of my research int...
{ "language": "en", "url": "https://stackoverflow.com/questions/417895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why do I need Stored Procedures when I have LINQ to SQL My understanding of Linq to Sql is it will take my Linq statement and convert it into an equivalent SQL statement. So var products = from p in db.Products where p.Category.CategoryName == "Beverages" select p Just turns into Sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/417898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to do a mass rename? I need to rename files names like this transform.php?dappName=Test&transformer=YAML&v_id=XXXXX to just this XXXXX.txt How can I do it? I understand that i need more than one mv command because they are at least 25000 files. A: Easiest solution is to use "mmv" You can write: mmv "long_na...
{ "language": "en", "url": "https://stackoverflow.com/questions/417916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to filter the following listboxes in asp.net? I have 4 listboxes (lstStates, lstCounties, lstCities, and lstZipcodes). Here are a few constraints: * *None of the listboxes are disabled. *Any listbox can be selected at anytime, meaning there is no specific order the user has to choose. *Filtering is forward...
{ "language": "en", "url": "https://stackoverflow.com/questions/417944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can one IIS6 .NET app appear as subsite of another? SiteA.com and siteB.com are .NET 2.0 apps on IIS6. SiteA uses SSL. Can I set things up so siteA.com/train gets people to siteB.com? Are there multiple ways to do this? How would a good way be configured? A: Go to MyComputer, right+mouse+click and chose Manag...
{ "language": "en", "url": "https://stackoverflow.com/questions/417951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }