text stringlengths 8 267k | meta dict |
|---|---|
Q: Is there a workaround for IE 6/7 "Unspecified Error" bug when accessing offsetParent I'm using jQuery UI's draggable and droppable libraries in a simple ASP.NET proof of concept application. This page uses the ASP.NET AJAX UpdatePanel to do partial page updates. The page allows a user to drop an item into a trashcan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: HTML + Javascript: Dynamic Image Resize? I am trying to get some JavaScript to programmatically adjust a HTML img tag's width to display various sized images correctly.
I have a fixed width img tag at 800px to display an image, this is the max width.
If the image is wider then 800px I want to display it at 800px wid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linux lib / include organization for cross-compiled libraries? We are cross-compiling an application for an embedded Linux target under desktop Linux. For testing and other purposes we are using statically linked libraries with our application. The testing library we are using is CMockery.
My question is: Where sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle SQL - Parsing a name string and converting it to first initial & last name Does anyone know how to turn this string: "Smith, John R"
Into this string: "jsmith" ?
I need to lowercase everything with lower()
Find where the comma is and track it's integer location value
Get the first character after that comma a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Analyze Tomcat Heap in detail on a production System Having analyzed a light-load web application running in tomcat, using JMX Console, it turns out the "PS Old Gen" is growing slowly but constant. It starts with 200MB and grows around 80MB/Hour.
CPU is not an issue, it runs at 0-1% on average, but somewhere it leak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: HTTP file download with Javascript Is there any way (in Javascript) to download a remote website (i.e. like with Curl), read it into a string variable and further process it?
A: You can only download a file from the same domain, as per the Same Origin Policy. You can download content from the same domain though, us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is ++i considered an l-value, but i++ is not? Why is ++i is l-value and i++ not?
A: I'm getting the lvalue error when I try to compile
i++ = 2;
but not when I change it to
++i = 2;
This is because the prefix operator (++i) changes the value in i, then returns i, so it can still be assigned to. The postfix op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: How do you keep your metadata under version control? We have a database that persist our metadata and data.
Our metadata is produced buy a dedicated team, using a Web application on the development server, and is a critical part of our application.
Then the customer generates data according to this metadata.
We alre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET 2.0 RijndaelManaged encryption algorithm vs. FIPS I'm running into an issue with an ASP.NET 2.0 application. Our network folks just upped our security, and now I get the floowing error whenever I try to access the app:
"This implementation is not part of the Windows Platform FIPS validated cryptographic al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Do you know a good cache technology which can be used in .net to share data between a server and many client? I'm trying to adress the following issue:
*
*I have a server side .net application holding a Dictionary of PONO: the cache.
*I have many client side .net User interfaces which can query some of these PON... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any good ORM tools for Android development? Anyone working on the Android ('gPhone') have or know of a place where I can find a good ORM tool for it? The code is written in Java, and the database is SQLite. What I would like to find is a tool that given the object definition, can auto-generate the tables and the CRU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "291"
} |
Q: Nested records is sql server select Table1.colID, Table1.colName,
(select * from Table2 where Table2.colID = Table1.colID) as NestedRows
from Table1
The above query gives you this error:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio hangs on build When I try to build my projects in Visual Studio 2008, web sites won't build anymore, they hang on this stage:
------ Build started: Project: C:\...\Web\, Configuration: Debug Any CPU ------
Validating Web Site
Building directory '/Web/Admin/Secure/'.
Building directory '/Web/Admin/'.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to skip the 1st key in an array loop? I have the following code:
if ($_POST['submit'] == "Next") {
foreach($_POST['info'] as $key => $value) {
echo $value;
}
}
How do I get the foreach function to start from the 2nd key in the array?
A: If you were working with a normal array, I'd say to use so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Pattern for compile time discovery of unsafe/wrong queries My team is developing a large java application which extensively queries a MySQL database (in different classes and modules).
I'd like to known if there is a pattern that allows me to be notified at compile time if there are queries that refer to a wrong ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ironruby IDE Which IDE if any, are people using to develop Ironruby in?
A: If you are looking for an integrated Visual Studio editor, with intellisense etc, Microsoft has nothing in plan yet (according to this article with John Lam -> http://www.infoq.com/articles/state-of-ironruby). But there is an integrated edit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Entities and calculated properties What is the best practice to implement the following:
*
*we have a classes Order and
OrderItem as parent-child.
*Class OrderItem provides property Cost
*On the OrdersList form we have to see MaxCost column = max(cost)
from Items collection
I found only one useful solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delete is deleting the whole directory instead of individual files I'm running a simple batch file which is generated by a vbscript to delete individual files, however when I execute it, it is deleting entire subdirectories. Anyone have any ideas on this? Below is the batch file.
rem 2008-12-15D:\DP-Production\Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to alter sharepoint workflow task status? I am novice in sharepoint programming. I have a following code:
SPWorkflowTask task = some_getter();
task["Status"] = "Canceled";
task.Update();
and I am getting SPException:
Microsoft.SharePoint.SPException: "This task is currently locked by a running workflow and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Removing many to many associations in NHibernate I have a many to many relationship using NHibernate.
Is there an easier way of removing the category association from all products without creating an class for the Join Table?
I'd like the SQL to look like
DELETE FROM ProductCategories WHERE CategoryId = 123
and her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery in an ASP.net MVC application using Master Pages I am trying to get simple jQuery to execute on my Content page with no luck below is what I am trying to do:
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to remove QWidgets from QSplitter In my app have a window splitted by a QSplitter, and I need to remove an widget.
How can I do that? I can't find useful methods
A: It's not clear to me if you want to preserve the widget and put it somewhere else, or if you want to destroy the widget.
*
*Destroying the wid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What's the best way to represent System.Decimal in Protocol Buffers? Following on from this question, what would be the best way to represent a System.Decimal object in a Protocol Buffer?
A: Well, protobuf-net will simply handle this for you; it runs off the properties of types, and has full support for decimal. Si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Double Float Bug - IE i am trying to fix a site I am helping a friend with, and in IE it is displaying the navigation bar like it is stacking on top of each other.
Is that a part of the double float bug, I tried adding display:inline, but I still have that problem.
URL: http://www.flanels.com/RadiantecHOME.html
CSS:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to tell Java which StringEscapeUtils.escapeXML() to use? I'm trying to use the StringEscapeUtils.escapeXML() function from org.apache.commons.lang...
There are two versions of that function, one which expects (Writer, String) and one which just expects (String)....
http://commons.apache.org/lang/api/org/apache/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C typedef: parameter has incomplete type GCC 3.4.5 (MinGW version) produces a warning: parameter has incomplete type for line 2 of the following C code:
struct s;
typedef void (* func_t)(struct s _this);
struct s { func_t method; int dummy_member; };
Is there a way to fix this (or at least hide the warning) without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What modal editors are available aside from vi/vim? Another question asked why there are so few non-vi modal editors. A few of the comments in that question mentioned other modal editors in passing, but I think that it would be useful to develop a more comprehensive list. Searching for this information on Google is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why isn't HTML::Obliterate obliterating my HTML? I am trying to use the following code, which I have not been able to test yet, because I get the following errors:
#!/usr/bin/perl
use warnings;
use strict;
use Text::Wrap;
use Mail::Box::Manager;
use HTML::Obliterate qw(extirpate_html);
open (MYFILE, '>>data.txt');... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Asynchronous vs Synchronous vs Threading in an iPhone App I'm in the design stage for an app which will utilize a REST web service and sort of have a dilemma in as far as using asynchronous vs synchronous vs threading. Here's the scenario.
Say you have three options to drill down into, each one having its own REST-b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: using nulls in a mysqli prepared statement In a mysqli prepared statement, a NULL gets turned into '' (in the case of a string) or 0 (in the case of an integer). I would like to store it as a true NULL. Is there any way of doing this?
A: It's possible to bind a true NULL value to the prepared statements (read this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: English Error Messages in German Visual Studio 2008 / ASP.NET This might be a bit weird question, but I'll give it a shot:
HELP, my Visual Studio 2008 / ASP.NET is giving me GERMAN error messages. Besides the fact that translations tend to be not as good as the original text, I can't search for those and find releva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: nhibernate, class with parents and children causing duplicate keys any help you can give is very gratefully accepted. I've been looking at this problem over and over and cannot seem to find the solution. Its probably staring in me in the face :(
I have the following class with a list of parents and children to be pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Application (Not a Markup Language) for Producing a User Manual Can anyone recommend a program to create user manuals with? Not a markup language (like LaTeX or DocBook) but more something interactive like Scribus. As I'm not the only one that will update the manual the software should be something that's easy for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: O/R mappers that can update the database schema automatically? Are there any O/R mappers out there that will automatically create or modify the database schema when you update the business objects? After looking around it seems that most libraries work the other way by creating business object from the database sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In which process to Sharepoint 2007 Workflows run? If I update an Assembly that holds a workflow, I have to restart the appropriate Windows Process to pick up the new Assemblies.
For Web parts & stuff, this is just the IIS Application Pool in question (iisapp /r), and for Timer Jobs it is OWSTIMER.exe (net stop/star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: openGL into png I'm trying to convert an openGL [edit: "card that I drew"(?):) thx unwind]containing a lot of textures (nothing moving) into one PNG file that I can use in another part of the framework I'm working with. Is there a C++ library that does that?
thanks!
A: If you simply mean "take a scene rendered by O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best solution for turning a website into a pdf The company I work for we have a CBT system we have developed. We have to go through and create books out of the content that is in our system, I have developed a program that goes through and downloads all of the content out of our system and creates a offline version ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there an acceptable Linux targeted GUI client for git-svn? My employer uses subversion for version-control, and this is unlikely to change. I'm interested in learning more about git, and using git-svn to interface with my employer's subversion repositories. My question is: if I were to begin using git-svn, would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Upgrade to Birt 2.3.1 and log SEVERE: Not allowed choice any After an upgrade to BIRT 2.3.1 have a tons of logs:
org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml
SEVERE: Not allowed choice any
Any thoughts how to rid of them will be appreciated.
A: I found the solution. During the upgrade to 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Streaming files and character sets problem I have made some code which exports some details of a journal article to a reference manager called Endnote
The format of which is a list of items like below (an author):
%A Schortgen Frédérique
Unfortunately, I am having some encoding problems somewhere, as when endnote o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is EventInfo.RemoveEventHandler throwing a NullReferenceException? I've got some code that is using reflection to install .NET event handlers on MSHTML objects in an Internet Explorer BHO, and it appears to be working fine. I'm running into trouble, however, when I try to remove the event handlers.
This is what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java JAXB Pros/Cons and Documentation It's been a while since I used Java in anger so please forgive me if this is silly.
I have just got started on a Java project where we are using JAXB to de-serializing an incoming XML string (from Jetty Server). The project is only using JAXB for this situation.
What are the alt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to construct two objects, with each other as a parameter/member I have two classes that each need an instance of each other to function. Ordinarily if an object needs another object to run, I like to pass it in the constructor. But I can't do that in this case, because one object has to be instantiated before ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What datatype do you use for enumerations in SQL Server When we serialize an enum from C# to SQL Server we use a NCHAR(3) datatype with mnemonic values for each value of the enum.
That way we can easily read a SELECT qry.
How do you save enum to your database?
What datatype do you use?
A: A better way would be to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: File / Image Replication I have a simple question and wish to hear others' experiences regarding which is the best way to replicate images across multiple hosts.
I have determined that storing images in the database and then using database replication over multiple hosts would result in maximum availability.
The wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I do an in list option In Pseudo code
If Domain inList(GB,US,ES,FR Then
Print This Html
Else
Print This HTML
EndIf
A: This is avery general form, but where you don't know the list at design-time, so long as you can get a reference to a nodeset which represents the list you can do a simple test like:
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I permanently prevent Excel from setting all new documents to R1C1 mode? Every time I create a new excel sheet, I have to go in and change it's cell reference mode to the familiar A1, B1, etc. I can't seem to find a way to permanently set it to A1 style.
Is there a macro I can write or a way to use templates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I mix my UnitTests and my Integration tests in the same project? I am using NUnit to test my C# code and have so far been keeping unit tests (fast running ones) and integration tests (longer running) separate, and in separate project files. I use NUnit for doing both the unit tests and the integration tests. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to develop an Outlook/Mail Plugin? I want to develop a plug-in that does this:
A button, when clicked, opens the new mail window but has a certain phrase in the subject line, for e.g. when I click a button called 'PROJ123', the new mail window opens with the subject line "[PROJ123]"
Other functionality it would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Java Mobile programming for a beginner, where to start? After I downloaded the Google Mail and Google Maps application into my mobile phone I got an idea about a service that I want to implement.
My problem is that I never did any programming for the mobile platform and I need someone to point me out some resources ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PL/SQL function to return string with regexp special chars escaped Is there an existing PL/SQL method which takes a string and returns the same string but with backslashes preceding any regexp chars?
A: Try this:
result := REGEXP_REPLACE(subject, '([$^[()+*?{\|])', '\\\1', 1, 0, 'c');
| {
"language": "en",
"url": "https://stackoverflow.com/questions/371752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I implement __getattribute__ without an infinite recursion error? I want to override access to one variable in a class, but return all others normally. How do I accomplish this with __getattribute__?
I tried the following (which should also illustrate what I'm trying to do) but I get a recursion error:
class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Controllers handle application flow, so where does my business logic go? I will begin this question by admitting I am very new to MVC. The design pattern makes sense to me at a high level, but now that I'm exploring ASP.NET MVC, some of the architectural pieces are challenging my preconceived notions. Learning is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What exactly is GUID? Why and where I should use it? What exactly is GUID? Why and where I should use it?
I've seen references to GUID in a lot of places, and in wikipedia,
but it is not very clear telling you where to use it.
If someone could answer this, it would be nice.
Thanks
A: Someone said they are conceptu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: How to create an HTML CSS Page with Header, Footer and Content There are 3 parts to the page.
*
*Header, which has unknown content at design time as it is populated with text at runtime. All the text must be displayed, no scroll bars.( I think height: 100% does this)
*Content, the content should fill the page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .htaccess redirect with fragment I need to issue a redirect, using .htaccess, to a URL with a fragment (also known as an anchor), but it's automatically escaping the #.
At the moment I want a hard-coded fragment, but for the sake of others if you know how to take it from the URL too that would be good.
Ideally I sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In a Rails Migration (MySQL), can you specify what position a new column should be? If I'm adding a column via MySQL, I can specify where in the table that column will be using the AFTER modifier. But if I do the add_column via a Rails migration, the column will be created at the end of the table.
Is there any funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Issues using custom fonts in Visual Studio 2008 under Server 2003 I am having an issue with a custom font that my company has created. When I set the Font property of a control in Visual Studio 2008 to our font, I receive the following error:
Only TrueType fonts are supported.
This is not a TrueType font.
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TCP communication on Vista I have a very simple app I'm trying to get to run under TCP using WCF 3.5 on Vista Enterpise. The error I'm getting when trying to hit a WCF service at http://localhost:8080 (or any other port not reserved by http) is:
TCP error code 10061: No connection could be made because the target ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Traversing an arbitrary C# object graph using XPath/applying XSL transforms I've been looking for a component that would allow me to pass an arbitrary C# object to an XSL transform.
The naive way of doing this is to serialise the object graph using an XmlSerializer; however, if you have a large object graph, this co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Cocoa Interface Style I'm on a project doing an iPhone application. We had a Cocoa consultant come in for a few weeks. He showed me an interesting idiom of Cocoa, dealing with interfaces, but there was a difficult language barrier between us, and he wasn't really able to explain why this was done or where it was doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to clear the wireshark filter combo contents Does anyone know how to clear the filter drop down (combo) contents in Wireshark? Are the contents stored in a file somewhere?
For the life of me, I can't figure this out. And, the Wireshark help file only tells me "The entries in the pull down list will remain avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java nested list to array conversion What is the most efficient way to convert data from nested lists to an object array (which can be used i.e. as data for JTable)?
List<List> table = new ArrayList<List>();
for (DATAROW rowData : entries) {
List<String> row = new ArrayList<String>();
for (String col : row... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What are "unstacked calls in outer" in Perl's Devel::DProf? I am profiling a Perl application with perl -d:DProf. When running dprofpp on the resulting tmon.out file, I get warnings like these:
Compress::Zlib::__ANON__ has 5 unstacked calls in outer
Compress::Zlib::AUTOLOAD has -5 unstacked calls in outer
*
*Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ajax php variables in javascript I have the below code, which was previously working fine:
var xmlHttp
var layername
var url
function update(layer, url) {
var xmlHttp=GetXmlHttpObject(); //you have this defined elsewhere
if(xmlHttp==null) {
alert("Your browser is not supported?");
}
xmlHttp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I do "svn st" in AnkhSVN for Visual Studio? -no text- Just installed AnkhSVN and I see the equivalent of "svn up" but I'd prefer to run "svn st" first so that I don't just blindly update.
A: The next release of AnkhSVN will enable the 'Recent Changes' tab in the pending changes window. This allows the equiva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Website/Web App Architecture Advice Let me set the stage here. I'm a very junior developer who's recently made the transition from Network Admin who does some WinForms for his employer to a full-time development position working on an ASP.NET product that will be transitioning to Silverlight. I have precious little ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JPA default persistence unit I get exception "There is no default persistence unit in this deployment." can I somehow mark unit as default?(I have only one persistence unit, so Id rather not call it by name)
A: No, you have to call PU's by name.
A: You are probably doing it through code rather than letting the con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excel-like expressions in DataGridView In Excel I can use an expression like "=C16+C17" for a cell to display values from other cells.
In my application I need something similar. The user needs to be able to select a range of cells from a databound grind and display the sum in another cell (not in a footer!). So wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Local file access with JavaScript Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring Adobe AIR.
Specifically, I'd like to read the contents from a file and write those contents to another file. At this point ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "198"
} |
Q: Gzip compression using IIS6.0 for files without an extension Has anyone managed to activate Gzip compression on a website in IIS6 ?
We're using Castle Monorail (it's very nice btw) and as a result have clean RESTful URLs with no extensions.....
..... and there's the rub -> as far as we can see we need extensions on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Object initialization syntax I'm just starting out with F# and I can't find the syntax to do object initialization like in C# 3.
I.e. given this:
public class Person {
public DateTime BirthDate { get; set; }
public string Name { get; set; }
}
how do I write the following in F#:
var p = new Person { Name = "Joh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: WPF Button IsEnabled Based on ComboBox Selection Overwriting default style I have a Button that is looking at 2 comboboxes to make sure they have a value before it is enabled. The problem is the way I am doing it is overwriting the default style declared in my theme project.
<Button x:Name="btnOK" VerticalAlignment... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: TreeListView with Columns generated and populated by ObservableCollection Does anyone known (or even has an example) of a WPF based TreeListView that can generate its colums by databinding to the ObservableCollection of its tree items?
For example the databound model is a tree consisting of Employee instances repre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does differential execution work? I've seen a few mentions of this on Stack Overflow, but staring at Wikipedia (the relevant page has since been deleted) and at an MFC dynamic dialog demo did nothing to enlighten me. Can someone please explain this? Learning a fundamentally different concept sounds nice.
Based ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: VB.Net 2008 New keyword I could have sworn that I saw a quick demo of new features in VS 2008 which included a way to set public variables without creating numerous constructors that take variables and set them to values. Does anyone know the syntax for this?
A: You may be talking about the Object Initializers lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should unauthorized actions in the UI be hidden, disabled, or result in an error? This is a perennial question for me that I've never really resolved so I'd like your input. If I have actions that I know a user will not be able to perform due to insufficient privileges or object state, should the UI elements for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Decoding byte stream I have a series of messages that are defined by independent structs. These structs share a common header are sent between applications. I am creating a decoder that will take the raw data captures in the messages that were built using these structs and decode/parse them to some plain text.
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to disable the MSFT IE XML Databinding feature via script? Question: Is it possible to construct a web page that has a script to turn off XML data-binding in MSIE? The ideal approach would be to code an HTML page and instruct all people in the office to visit the page with a button that says "turn off... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .Net XmlWriter - unexpected encoding is confusing me Environment is VS2008, .Net 3.5
The following C# code (note the specified encoding of UTF8)
XmlWriterSettings settings = new XmlWriterSettings ();
StringBuilder sb = new StringBuilder();
settings.Encoding = System.Text.Encoding.UTF8;
settings.Indent = false;
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Entity framework function import, can't load relations for functions that return entity types I've created a function import that returns the results of a stored proceedure as one of my entities. however I can't seem to traverse my through navigation properties to access the data in other entities. I know that you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET MVC route question I have two routes I want mapped in my ASP.NET MVC application
*
*/User/Login
*/User/{userid}/{username}/{action} (e.g. /User/1/blah/profile)
Here are the routes I've defined:
routes.MapRoute(
"Profile",
"Users/{userID}/{username}/{action}",
new { co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine if an AD group contains a given DirectoryEntry from another (trusted) domain? I am trying to beef up my code that determines whether a user is a member of a given AD group. It essentially works except when the member of the group happens to be from another (trusted) domain because it is stored as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MSDN - Question about MSDN Subscription and Microsoft Expression tools Are the latest expression tools covered under a Microsoft MSDN subscription? I know in the past they were not part of MSDN downloads. I think I remember someone saying they are available now. Are these trial editions or full-blown versions?
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to unit test C# Web Service with Visual Studio 2008 How are you supposed to unit test a web service in C# with Visual Studio 2008? When I generate a unit test it adds an actual reference to the web service class instead of a web reference. It sets the attributes specified in:
http://msdn.microsoft.com/en-us/li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Template control in ASP.NET hiding content from page I'm writing my own Modal Popup as a template control in ASP.NET. I got two template containers - one for the heading of the window and one for the actual control i want to display in the modal window (let's call it the form control). The form controls can contain ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails and multiple databases (one per host)? Is there a way (in Grails) to change the 'primary' database while the application is running, but before any domain objects have been instantiated? I'm trying to set up an app where each customer has their own database, but don't want to have to run a separate Java inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is OpenBD or Railo a viable replacement for ColdFusion? Has anyone here had any experience with running OpenBD or Railo in production? We have some legacy CF6.1 apps that need to be hosted somewhere and I'm wondering if OpenBD or Railo is stable enough for production use, won't require a great deal effort to migrate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to Validate a DateTime in C#? I doubt I am the only one who has come up with this solution, but if you have a better one please post it here. I simply want to leave this question here so I and others can search it later.
I needed to tell whether a valid date had been entered into a text box and this is the code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: Custom Error handling in ASP MVC I want to go beyond the default error handling given in ASP mvc. I have an errors controller, so I can hopefully give different error messages according to whats happened: i.e Invalid arguments, Permission denied, OMG DATABASE DEAD, etc.
But I cant seem to work out how to do this, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/371989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unit Testing Application_Start I am looking for any kind of information (prefer Moq) on how to unit test the Application_Start method in Global.asax. I am using ASP.NET MVC and trying to get to that elusive 100% code coverage!
The fact that I'm using MVC is not the point. And saying that not testing Start is not n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: When is white space not important in Python? When is white space not important in Python?
It seems to be ignored inside a list, for example:
for x in range(5):
list += [x, 1
,2,3,
4,5]
A: Your question is really about when Python implicitly joins lines of code.
Python will implicitly join lines that are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RegEx matching with no single letter delimiter Medicare Eligibility EDI Example Responses is what I'm trying to match.
I have a string that looks like this:
LN:SMITHbbbbbbbbFN:SAMANTHAbbBD:19400515PD:1BN:123456PN:9876543210GP:ABCDEFGHIJKLMNOID:123456789012345bbbbbPC:123PH:8005551212CD:123456PB:123ED:20060101TD:20701... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get the start index and number of visible items in a ListView? I have a listview working in virtual mode, in the LargeIcons view. Retrieves are expensive, so I want to ask for the data for all the visible items. How do I get the start index and total number of the visible items?
Update: I am aware of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Widget "flip" behavior in Core Animation/Cocoa I'm trying to make a Card class that duplicates the behavior of Dashboard widgets in that you can put controls or images or whatever on two sides of the card and flip between them.
Layer backed views have a transform property, but altering that doesn't do what I would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Runtime C# knowing if 32-bit or 64-bit version of COM Interface is being used I want to build a DLL Class Library use COM Interop, with C#, target ANY CPU, and register it as 32-bit and 64-bit interfaces.
I want to be able to, at runtime, display what interface was used - if I am using the 32-bit version, or 64-bit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is MSXML2.ServerXMLHTTP's default Content-Type? In my previous question, I was accidentally sending token/value pairs with an text/xml Content-Type which resulted in nothing being sent. Tim C's insight into that problem was extremely helpful. Thanks again, Tim!
Looking back at the original sending code, I now r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Parameterise table name in .NET/SQL? As the topic suggests I wish to be able to pass table names as parameters using .NET (doesn't matter which language really) and SQL Server.
I know how to do this for values, e.g. command.Parameters.AddWithValue("whatever", whatever) using @whatever in the query to denote the para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I listen for scrolling in a ListView? The ListView doesn't seem to support the Scroll event. I need to call a function whenever the list is scrolled; how would I go about that?
A: Why do you need to call a function when the list is scrolled?
If you are changing the items as it's scrolled i would recommend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Save Record to Relational Tables With Linq To Sql I have three tables like that:
Articles
IdArticle
Title
Content
Tags
IdTag
TagName
ContentTag
IdContentTag
Idtag
IdContent
When user in my site write an article with adding tags and submit, I want to save it to tables above.
In traditional ways, I used to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/372040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.