text
stringlengths
8
267k
meta
dict
Q: ASP.NET MVC on IIS 6 - wildcard mapping - the incoming request does not match any route I have been trying to set up my Beta 1 MVC app on IIS 6 and cannot get it to run correctly. I have added a Wildcard mapping to the .net isapi DLL as suggested in other blog posts but get the following error when I access the root...
{ "language": "en", "url": "https://stackoverflow.com/questions/275920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WCF data persistence between sessions We are developing a WCF based system. In the process we are trying to lock some data from being modified by more than one users. So we decided to have a data structure that will contain the necessary information for the locking logic to execute (by for example storing the ID of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Modifying graphics context in Java I have a form that tries to modify a JComponent's graphics context. I use, for example, ((Graphics2D) target.getGraphics()).setStroke(new BasicStroke(5)); Now, immediately after I set the value and close the form, the change is not visible. Am I not allowed to modify a JComponent'...
{ "language": "en", "url": "https://stackoverflow.com/questions/275927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you make an element "flash" in jQuery I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element — ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such a method in jQuery? I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/275931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "275" }
Q: How do I count the number of occurrences of a char in a String? I have the string a.b.c.d I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner. (Previously I had expressed this constraint as "without a loop", in case you're wondering why everyone's trying to answer without using a loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/275944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "610" }
Q: Has the daylight savings rule change invalidated the C runtime library? Some time ago I put together a time based library that could be used for working out relative times within a year for someone. I noted at the time, that it did the one hour shift in both directions for daylight savings. It just occurred to me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can a C# program measure its own CPU usage somehow? I am working on a background program that will be running for a long time, and I have a external logging program (SmartInspect) that I want to feed with some values periodically, to monitor it in realtime when debugging. I know I can simply fire up multiple program...
{ "language": "en", "url": "https://stackoverflow.com/questions/275957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Most efficient way to list items in C/C++ I have a list of say 100 unsorted items. Each item belongs to a group. The group the item belongs to is simply a member of the item class. Using C/C++ I'm looking for the most efficient way of scanning through the list of items, checking which group they are in and printing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC AutoEventWireup required? when i create an aspx page, the header includes something like this:- <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Create.aspx.cs" Inherits="My.Mvc.Views.Blah" %> With ASP.NET MVC apps, do we: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Having trouble converting a query to HQL I'm pretty new to HQL (well, nHibernate in general) and am currently building a simple app to learn more about it. I've run into problems trying to express the following SQL as HQL though, and would be very grateful for any ideas. Here's the query: select * from parent p wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/275971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DNS in Twenty-One Hours I want the equivalent online resource to DNS in Twenty-One Days. I need one evening's reading that will explain what the different record types do, how do propagation and caching work, what is an SoA, etc. I don't want anything that begins by explaining what DNS is. Can anybody please point ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: import mechanize module to python script I tried to import mechanize module to my python script like this, from mechanize import Browser But, Google appengine throws HTTP 500 when accessing my script. To make things more clear, Let me give you the snapshot of my package structure, root ....mechanize(where all the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: lsass.exe starts maxing CPU after ASP.NET web app deployment After deploying a new build (mostly changed DLL's) of an ASP.NET web app the CPU on the server is now jumping to 100% every few seconds and the culprit is lsass.exe. Do you think that the deployment of the asp.net web app to the server and this problem are...
{ "language": "en", "url": "https://stackoverflow.com/questions/275981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL 2005 User Instances and SQL Authentication Can I use SQL Authentication with User Instances? A: No: Limitations When Using User Instances * *User Instance does not support SQL Server Authentication. Only Windows Authentication is supported.
{ "language": "en", "url": "https://stackoverflow.com/questions/275983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi: "Invalid field type" error with master/detail datasets I asked about setting up an in-memory dataset with TClientDataset, and was told I had to use the "Create Data Set" command in the form designer. That works just fine until I try to create a master-detail database relation. If I have a field def of type...
{ "language": "en", "url": "https://stackoverflow.com/questions/275984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flow terminates without looping and prints extra character searchterms.rb search = "1|butter+salted|Butter salt|Butter|Túrós csusza|Margarine|Potato 2|butter+whipped|Shea butter|Butter|Pastry bag|Cream bun|Butter cream 3|butter+oil+anhydrous|Ultralight backpacking|Odell\'s|Ghee|Fragrance extracti...
{ "language": "en", "url": "https://stackoverflow.com/questions/275985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remote debugging of multi threaded Python Applications How can I do remote debugging of a multi threaded Python application, running on an Embedded Linux based system, from Windows XP or Vista? So far I have only come across PyScripter based remote debugging. How does it perform? A: I've never used it except a few ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to do a backwards loop in C/C#/C++? I need to move backwards through an array, so I have code like this: for (int i = myArray.Length - 1; i >= 0; i--) { // Do something myArray[i] = 42; } Is there a better way of doing this? Update: I was hoping that maybe C# had some built-in mechanism ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: mvc framework for winforms .net Please suggest a good MVC framework for Winforms. A: http://www.codeplex.com/CompositeWPF (MVC application block for WPF/Silverlight) http://blogs.msdn.com/priozersk/archive/2008/11/04/mobile-mvc-framework-part-4-passing-data-between-controllers.aspx (MVC framework for .NET Compact F...
{ "language": "en", "url": "https://stackoverflow.com/questions/276000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is a good solution for deploying a PHP/MySQL site via FTP? I am currently working on a web application that uses PHP and MySQL, but I do not have shell access to the server (working on that problem already...). Currently, I have source control with subversion on my local computer and I have a database on the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/276007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using XQUERY/Modify to replace a piece of my XML with value from varchar field I have a table: MyTable config as XML title as varchar(255) In MyTable.config I have XML in the following structure: <configuration pagetitle="myConfig"> <column> <row> <component id="1" type="MyPiece" title="My Title" te...
{ "language": "en", "url": "https://stackoverflow.com/questions/276009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: std::wcout to console window in Xcode In an Xcode project, if I use std::cout to write to the console the output is fine. However, if I use std::wcout I get no output. I know that this is a thorny issue in C++, and I've been googling around to try and find a specific solution in the Xcode case. A couple of things I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When will NAnt reach version 1.0 I like Nant very much. I do a lot of scripting with NAnt. It is a great little tool. Since NAnt is pre 1.0, when problems occur, I often think if that it is a problem with NAnt itself, but this is not always the case. One funny example: After running the oracle scripts I parsed the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/276014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Line width formatting standard Do you follow a standard for wrapping long lines in source code? What line length do you find most comfortable to read? Sometimes I find people who program on wide-screen monitors and like to use its full width for displaying source code. I prefer shorter lines, around 80-100 character...
{ "language": "en", "url": "https://stackoverflow.com/questions/276022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Regular expression replace a word by a link I want to write a regular expression that will replace the word Paris by a link, for only the word is not ready a part of a link. Example: i'm living <a href="Paris" atl="Paris link">in Paris</a>, near Paris <a href="gare">Gare du Nord</a>, i love Paris. would become...
{ "language": "en", "url": "https://stackoverflow.com/questions/276029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: _configthreadlocale and localeconv As we all know, global data, like the locale settings affecting the numeric decimal point printf() and strtod() are using, is evil. Fortunately, MSVC++ 9 allows to use per-thread locales by a _configthreadlocale(_ENABLE_PER_THREAD_LOCALE) call. Unfortunately, it seems that the loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/276030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Deleting all directories in an FTP archive that have a certain name using PHP How would one go about deleting all of the directories in a directory tree that have a certain name if the only access to the server available is via FTP? To clarify, I would like to iterate over a directory tree and delete every directory...
{ "language": "en", "url": "https://stackoverflow.com/questions/276033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you connect/retrieve data from a MYSQL database using objects in PHP? Generally I connect and retrieve data using the standard way (error checking removed for simplicity): $db = mysql_select_db("dbname", mysql_connect("host","username","passord")); $items = mysql_query("SELECT * FROM $db"); while($item = mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/276040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change data in JTable cells? I can set data in JTable constructor, and then user can change this data when program is running manually(typing from keyboard). But what method should I use in case I want to change data in some column? To change column header I use TableColumn method setHeaderValue. What should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get current CPU and RAM usage in Python? How can I get the current system status (current CPU, RAM, free disk space, etc.) in Python? Ideally, it would work for both Unix and Windows platforms. There seems to be a few possible ways of extracting that from my search: * *Using a library such as PSI (that curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/276052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "479" }
Q: What is the optimal size of a UDP packet for maximum throughput? I need to send packets from one host to another over a potentially lossy network. In order to minimize packet latency, I'm not considering TCP/IP. But, I wish to maximize the throughput uisng UDP. What should be the optimal size of UDP packet to use? H...
{ "language": "en", "url": "https://stackoverflow.com/questions/276058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Better way to implement count_permutations? I need a function count_permutations() that returns the number of permutations of a given range. Assuming that the range is allowed to be modified, and starts at the first permutation, I could naively implement this as repeated calls to next_permutation() as below: templat...
{ "language": "en", "url": "https://stackoverflow.com/questions/276066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select the properties to an product, like size/color, without creating a model to handle them I just picked up Agile Web Development with Rails 3rd Ed., and I'm going thru the Depot Application chapters, and I have a question about Product/Item options. If I wanted to modify the product catalog and store so that pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/276072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Preventing AJAX memory leaks I am working on a web application that is designed to display a bunch of data that is updated periodically with AJAX. The general usage scenario would be that a user would leave it open all day and take a glance at it now and then. I am encountering a problem where the browsers memory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: When handling large file transfers in ASP.NET what precautions should you take? My ASP.NET application allows users to upload and download large files. Both procedures involve reading and writing filestreams. What should I do to ensure the application doesn't hang or crash when it handles a large file? Should the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/276088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ converting a mac id string into an array of uint8_t I want to read a mac id from command line and convert it to an array of uint8_t values to use it in a struct. I can not get it to work. I have a vector of string for the mac id split about : and I want to use stringstream to convert them with no luck. What I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/276099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Catching all unhandled C++ exceptions? Is there some way to catch exceptions which are otherwise unhandled (including those thrown outside the catch block)? I'm not really concerned about all the normal cleanup stuff done with exceptions, just that I can catch it, write it to log/notify the user and exit the program...
{ "language": "en", "url": "https://stackoverflow.com/questions/276102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to return a View in MVC with URL like this http://localhost/admin#sayhi Ok Here is the exact scenario: I have a view named Index I have a partial view (user control) named SayHi I have an AdminController which has an Action named SayHi which doesn't do anything else ViewData["Message"] = "Hi There!"; I am us...
{ "language": "en", "url": "https://stackoverflow.com/questions/276112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a bubble sort good for? Do bubble sorts have any real world use? Every time I see one mentioned, it's always either: * *A sorting algorithm to learn with. *An example of a sorting algorithm not to use. A: Bubble sort is (provably) the fastest sort available under a very specific circumstance. It origi...
{ "language": "en", "url": "https://stackoverflow.com/questions/276113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: auto_increment causing errors with CREATE TABLE I have been using netbeans as a tool for my java, and i have a problem. I read this tutorial and then i tried to create a table using this SQL: CREATE TABLE CUSTOMERS ( ID INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, FIRST_NAME VARCHAR(20), LAST_NAME VARCHA...
{ "language": "en", "url": "https://stackoverflow.com/questions/276121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where do I report a Windows core library problem? How do I let Microsoft know about a problem I've found in one of their core library routines? Do they have a central repository to report these things? I am not a member of Microsoft Development Network (MSDN). Or should I even bother? A: There is no official way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/276125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best Way to DataBind a List with sub-related content (For example, SO's questions with tags) Using ASP.net 2.0, how do I present the information to the user similar to the Questions list on SO where each question has some child items (like the tags). I would probably be making two separate queries, one to first find...
{ "language": "en", "url": "https://stackoverflow.com/questions/276126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recommendations for securing Internet-facing IIS Host? I'm setting up an Internet-facing ASP.NET MVC application, on Windows 2008. It uses SQL Server 2008 for its database. I'm looking for best-practices for securing it. I found this article, but it's a bit dated now. How much of that advice is still valuable? Some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I setup different SSL-Certificates for vhosts on Apache? I have a web-server, that serves different domain-names, but has only one IP-address assigned. That works fine with virtual hosts in Apache. Now I want SSL-encrypted connections for the websites. How can I set different SSL-certificates for the differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/276134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using VS 2008 (vb.net) I need to create an object I can use in Classic ASP with CreateObject I am very new to VB.net. I have written these objects in VB6 before. I'm just lost in VB.net, but (kicking and screaming) I have to learn how to do this. I've been googling for hours with only minor steps forward. Can anyone...
{ "language": "en", "url": "https://stackoverflow.com/questions/276152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nested linq queries, how to get distinct values? table data of 2 columns "category" and "subcategory" i want to get a collection of "category", [subcategories] using code below i get duplicates. Puting .Distinct() after outer "from" does not help much. What do i miss? var rootcategories = (from p in sr.products ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are your favorite C++ Coding Style idioms What are your favorite C++ coding style idioms? I'm asking about style or coding typography such as where you put curly braces, are there spaces after keywords, the size of indents, etc. This is opposed to best-practices or requirements such as always deleting arrays w...
{ "language": "en", "url": "https://stackoverflow.com/questions/276173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Hidden Input Field causes potentially dangerous Request.Form value error In my ASP.NET 1.1 application, I am compressing and replacing the hidden Viewstate variable with an alternate compressed value, stored in a hidden field called __VSTATE. This works well but on a few occasions, submitting a page causes the commo...
{ "language": "en", "url": "https://stackoverflow.com/questions/276177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the font color of a disabled TextBox? Does anyone know which property sets the text color for disabled control? I have to display some text in a disabled TextBox and I want to set its color to black. A: NOTE: see Cheetah's answer below as it identifies a prerequisite to get this solution to work. Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/276179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Server monitoring and alerting software? What software does everyone use to monitor hardware? I know about nagios and cacti, but does anyone use any other software? A: SolarWinds IPMonitor is pretty useful. A bit like cacti or nagios, but more pleasing to the eye. Windows only, and not free (not even as in "free be...
{ "language": "en", "url": "https://stackoverflow.com/questions/276180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Updating sqlite3 API I want to update/upgrade the standard Leopard install of Sqlite3 to >3.5 to use the new sqlite_xxx_v2 methods from a Cocoa project. I can't seem to find any information on how to do this. Does anyone have any tips or a site that outlines the update procedure. Also is 3.5+ supported on the iPhon...
{ "language": "en", "url": "https://stackoverflow.com/questions/276182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF and Python Is there any example code of a cpython (not IronPython) client which can call Windows Communication Foundation (WCF) service? A: WCF needs to expose functionality through a communication protocol. I think the most commonly used protocol is probably SOAP over HTTP. Let's assume that's what you're u...
{ "language": "en", "url": "https://stackoverflow.com/questions/276184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Variadic templates C++0x will allow template to take an arbitrary number of arguments. What is the best use of this feature other than implementing tuples ? A: * *Type-safe printf *Forwarding of arbitrary many constructor arguments in factory methods *Having arbitrary base-classes allows for putting and removing...
{ "language": "en", "url": "https://stackoverflow.com/questions/276188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: MATLAB class array What would be the best way to manage large number of instances of the same class in MATLAB? Using the naive way produces absymal results: classdef Request properties num=7; end methods function f=foo(this) f = this.num + 4; end end end >> a=[]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How practical is Virtual PC on a personal development machine? Is virtual PC practical on a home personal development computer. I do some custom .net programming at home and I was wondering if in terms of performance and overall use, Virtual PC is useful. Do the applications inside Virtual PC session run slower. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can I write an app in the new version of Visual Studio and make it compatible with .NET Framework 1.1 I am a Web developer who spends 99% of his time in Linux, but I need to develop a super simple application with VB or possibly C# (.Net). The only version of Visual Studio I have is the most current free ones. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/276204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I hide a div based on empty input fields within it? I have a form made up of multiple, optional subparts - each of which is enclosed in a <div class="details"></div> When editing the form I would like to hide those subparts which aren't as yet completed, and obviously I would like to do it unobtrusively. To ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC Web application vs ASP.NET Web Application Other than the fact that ASP.NET MVC Web Application has more clarity in its implementation of the MVC pattern and that it strictly follows the MVC pattern, how is it different from ASP.NET Web Application? If you make your ASP.NET Web Application have a Busines...
{ "language": "en", "url": "https://stackoverflow.com/questions/276211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Change each record in a table with no primary key? I have a table in a database that represents dates textually (i.e. "2008-11-09") and I would like to replace them with the UNIX timestamp. However, I don't think that MySQL is capable of doing the conversion on its own, so I'd like to write a little script to do the...
{ "language": "en", "url": "https://stackoverflow.com/questions/276212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select multiple descendants with jQuery? I have this form: <form name="customize"> Only show results within <select name="distance" id="slct_distance"> <option>25</option> <option>50</option> <option>100</option> <option value="10000" selected="selected">A...
{ "language": "en", "url": "https://stackoverflow.com/questions/276249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: C#: How do you pass an object in a function parameter? C#: How do you pass an object in a function parameter? public void MyFunction(TextBox txtField) { txtField.Text = "Hi."; } Would the above be valid? Or? A: Yup, that will work. You're not actually passing an object - you're passing in a reference to the obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/276253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to disable (or hide) the close (x) button on a JFrame? I have a window (derived from JFrame) and I want to disable the close button during certain operations which are not interruptible. I know I can make the button not do anything (or call a handler in a WindowListener) by calling setDefaultCloseOperation(JFra...
{ "language": "en", "url": "https://stackoverflow.com/questions/276254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: What's a cross platform way to play a sound file in python? I tried playing a .wav file using pyaudio. It works great on windows, but doesn't work in Ubuntu when another device is using sound. The error is "IOError: [Errorno Invalid output device (no default output device)] -9996 Is there another library I cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/276266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Feasibility of LinkedList vs. Array for sorted vs. unsorted data? Comparing LinkedLists and Arrays while also comparing their differences with sorted and unsorted data * *Adding *Removing *Retrieving *Sorting *Overall speed *Overall memory usage Actual questions Discuss the feasibility of implementing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/276278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: CPU Usage Per Process in Python Is it possible for me to see the amount of processor usage (% of maximum) that the current, python, app is using? Scenario: My host will allow me to run my app as long as it does not consume more then X% of the CPU power, so I would like it to 'keep an eye on itself' and slowdown. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/276281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to show the visitor a moved web page AND return a 301 redirect HTTP response status code in Django? When a webpage has moved to a new location, how do I show the moved web page AND return a 301 permanent redirect HTTP response status code in Django? A: You can't. 301 is an HTTP return code that is directly acte...
{ "language": "en", "url": "https://stackoverflow.com/questions/276286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capturing image from webcam in java? How can I continuously capture images from a webcam? I want to experiment with object recognition (by maybe using java media framework). I was thinking of creating two threads one thread: * *Node 1: capture live image *Node 2: save image as "1.jpg" *Node 3: wait 5 seconds ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: Is there an OpenID 2.0 plugin for Symfony? I am using sfOpenID plugin for Symfony, which doesn't support OpenID 2.0. That means, for example, that people using Yahoo! OpenID can't login to my site. There is an OpenID 2.0 plugin that works with sfGuard, but I am not using nor planning to use sfGuard. Plus, it require...
{ "language": "en", "url": "https://stackoverflow.com/questions/276310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Create Zip archive from multiple in memory files in C# Is there a way to create a Zip archive that contains multiple files, when the files are currently in memory? The files I want to save are really just text only and are stored in a string class in my application. But I would like to save multiple files in a sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/276319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: css horizontal navigation spacing I'm trying to create a horizontal navigation bar in css with 5 evenly spaced links. The html hopefully will remain like this: <div id="footer"> <ul> <li><a href="one.html">One</a></li> <li><a href="two.html">Two</a></li> <li><a href="three.html">Three</a>...
{ "language": "en", "url": "https://stackoverflow.com/questions/276324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Convert Sandcastle Help File Builder Output (Web site) to MediaWiki format I need to * *convert my Sandcastle Help File Builder (SHFB) output that is a Web site (HTML) to Media wiki format *Find a way to transfer/include the converted pages directly into the MediaWiki we have set up. Any ideas? we have o...
{ "language": "en", "url": "https://stackoverflow.com/questions/276334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: filtering on gridview control VS-2008 This is what I am working with to get back to the web dev world ASP.Net with VS2008 Subsonic as Data Access Layer SqlServer DB Home Project description: I have a student registration system. I have a web page which should display the student records. At present I have a gridvi...
{ "language": "en", "url": "https://stackoverflow.com/questions/276336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there something like a translating database for strings? I am in search for a database with translations so I can have comonly used phrases and words translated by a machine and not by an expensive translator. Is there such a thing as a translation database with words and often used phrases? If you don't know any...
{ "language": "en", "url": "https://stackoverflow.com/questions/276342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Syntax error whenever I put Python code inside a Django template I'm trying to do the following in my Django template: {% for embed in embeds %} {% embed2 = embed.replace("&lt;", "<") %} {{embed2}}<br /> {% endfor %} However, I always get an invalid block or some syntax error when I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/276345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I access session state from an HTTPModule? I could really do with updating a user's session variables from within my HTTPModule, but from what I can see, it isn't possible. UPDATE: My code is currently running inside the OnBeginRequest () event handler. UPDATE: Following advice received so far, I tried adding th...
{ "language": "en", "url": "https://stackoverflow.com/questions/276355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: Is there a way to measure parse time in PHP? Optimization of PHP code via runtime benchmarking is straight forward. Keep track of $start and $end times via microtime() around a code block - I am not looking for an answer that involves microtime() usage. What I would like to do is measure the time it takes PHP to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/276360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to programmatically generate a PDF from any document on OSX? I'm working on a project for OSX where the user can pick a collection of documents (from any application) which I need to generate PDF's from. The standard Macintosh Print dialog has a PDF button which has a number of PDF-related commands including "S...
{ "language": "en", "url": "https://stackoverflow.com/questions/276362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Make recommendations on building (or setting up) an RRD Tool based web app for website monitoring that is simpler than Cacti? I think Cacti is great except for the fact that it takes hours to configure it. There is a lot that you can do with it but I find it a little overly complicated. A script collecting disk util...
{ "language": "en", "url": "https://stackoverflow.com/questions/276381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to enter numeric values with decimal points? In my app users need to be able to enter numeric values with decimal places. The iPhone doesn't provides a keyboard that's specific for this purpose - only a number pad and a keyboard with numbers and symbols. Is there an easy way to use the latter an...
{ "language": "en", "url": "https://stackoverflow.com/questions/276382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Add container class to dictionary I have a Dictionary that when I add multiple values to it, the items that were entered before take the values of the item added. I am using the .Net 3.5 Here is the code: public static Dictionary<string, Neighborhoods> Families() { if (File.Exists(calculatePath() + "Fami...
{ "language": "en", "url": "https://stackoverflow.com/questions/276383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to structure #includes in C Say I have a C program which is broken to a set of *.c and *.h files. If code from one file uses functions from another file, where should I include the header file? Inside the *.c file that used the function, or inside the header of that file? E.g. file foo.c includes foo.h, which co...
{ "language": "en", "url": "https://stackoverflow.com/questions/276386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WCF over HTTPS with PHP throws "Method Not Allowed" exception I've created a .NET WCF service that is intended to always be over HTTPS. When I first created the service skeleton and ran it over HTTP, it worked fine. I used PHP5 to test the interoperability with the built in SOAP functions. However, once I switched t...
{ "language": "en", "url": "https://stackoverflow.com/questions/276389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multi file upload with PHP/Javascript and no flash I'm trying to make a webpage that allows the uploading of multiple files at the same times. I will limit the file extensions to the most common images like JPG, JPEG, PNG and GIF. I've done some research on this and everywhere I look it's flash this and flash that. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I place a MFC CFormView inside a CDockablePane? How can I place a MFC CFormView inside a CDockablePane which was introduced in the VS 2008 MFC Feature Pack? A: Check the BCGSoft Samples for doing this with a cview. The class names are a little different but its more or less the same stuff since they provid...
{ "language": "en", "url": "https://stackoverflow.com/questions/276420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why have language interpreters be written in the target language? Possible Duplicate: Bootstrapping a language What's the importance of having an interpreter for a given language written in the target language (for example, PyPy)? A: It's not so much about writing the interpreter in itself - more about writing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/276432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Do you think it's advantageous to switch to Entity Framework? With LINQ to SQL most likely going to not get as much active development as Entity Framework do you think it's best to switch to Entity Framework? I've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural....
{ "language": "en", "url": "https://stackoverflow.com/questions/276433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Converting PDF to HTML with Python How can I convert PDF files to HTML with Python? I was thinking something alone the lines of what Google does (or seems to do) to index PDF files. My final goal is to setup Apache to show the HTML for the PDF files, so anything leading me in that direction would also be appreciated...
{ "language": "en", "url": "https://stackoverflow.com/questions/276434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How to keep a website with url routing directory independent I'm developing a PHP website that uses url routing. I'd like the site to be directory independent, so that it could be moved from http://site.example.com/ to http://example.com/site/ without having to change every path in the HTML. The problem comes up whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/276443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: linking to network share with safari I am trying to dynamically generate links to files on a network share that will work in both IE and safari. In IE, doing href=\\networksharename\foldername\filename works fine, and we thought this worked fine on safari in our initial testing, but our safari users are reporting p...
{ "language": "en", "url": "https://stackoverflow.com/questions/276464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cross platform, multi-syntax highlighting editor Is there an editor that is: * *Available for at least windows and linux *Highlights multiple syntaxes in the same document. (Ala Dreamweaver) *Tabbed interface All the editors I tried highlighted by file extension only which isn't fine grained enough. At the ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/276465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Coding using sequence diagrams When I was at university a lecturer said how some people managed to code using sequence diagrams, this to me seems a good way of programming but of course the devil is in the details. I have a few questions. * *Does this actually happen or was I misinterpreting what he said? *Has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cross-class-capable extendable static analysis tool for java? I'm trying to write rules for detecting some errors in annotated multi-threaded java programs. As a toy example, I'd like to detect if any method annotated with @ThreadSafe calls a method without such an annotation, without synchronization. I'm looking ...
{ "language": "en", "url": "https://stackoverflow.com/questions/276476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript: how to validate dates in format MM-DD-YYYY? I saw a potential answer here but that was for YYYY-MM-DD: JavaScript date validation I modified the code code above for MM-DD-YYYY like so but I still can't get it to work: String.prototype.isValidDate = function() { var IsoDateRe = new RegExp("^([0-9]{2...
{ "language": "en", "url": "https://stackoverflow.com/questions/276479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Full text search on a mobile device? We'll soon be embarking on the development of a new mobile application. This particular app will be used for heavy searching of text based fields. Any suggestions from the group at large for what sort of database engine is best suited to allowing these types of searches on a mobi...
{ "language": "en", "url": "https://stackoverflow.com/questions/276489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom UIView with keyboard input? I have a custom UILabel subclass for displaying currency values. I only want the user to be able to enter digits and let the view format those digits into a currency value -- like a cash register. This makes UITextField an inappropriate choice for this kind of input. I've already o...
{ "language": "en", "url": "https://stackoverflow.com/questions/276499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connecting to DB2 via .NET DbConnection Our current DB Connection provider model relies on database connectivity to use DbConnection (System.Data) based objects. We can connect to DB2 (*Nix * Windows) via OdbcConnection, but we would like to allow the use of native DB2 Drivers. Is there any way to do so (either .Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/276505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iPhone UIwebview with embedded quicktime video? When I load a HTML page with a .MOV embedded video on my App using a UIWebview it appears a broken icon, any idea? The same HTML page on Iphone Safari works fine and the media player is started without problem... A: Where is the webpage? Is it embedded in your app? If...
{ "language": "en", "url": "https://stackoverflow.com/questions/276510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the full "for" loop syntax in C? I have seen some very weird for loops when reading other people's code. I have been trying to search for a full syntax explanation for the for loop in C but it is very hard because the word "for" appears in unrelated sentences making the search almost impossible to Google eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/276512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: Installing sql server express: VS2008 sp1 problem I am trying to install SQL server express 2008 on my machine. I get an error message that says that older version of VS 2008 in installed on the computer. Upgrade to VS2008 SP1 before installing Sql server 2008. I tried to install sp1 but I get an error message that...
{ "language": "en", "url": "https://stackoverflow.com/questions/276514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing domain from a URL I need to build a function which parses the domain from a URL. So, with http://google.com/dhasjkdas/sadsdds/sdda/sdads.html or http://www.google.com/dhasjkdas/sadsdds/sdda/sdads.html it should return google.com with http://google.co.uk/dhasjkdas/sadsdds/sdda/sdads.html it should return g...
{ "language": "en", "url": "https://stackoverflow.com/questions/276516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }