text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I find the exact amount of physical memory on Windows x86-32bit using Perl or any other language? I need to know how much physical memory a windows machine has, using Perl.
I've tried using Win32::SystemInfo. However this module states the following caveat:
On Intel x86 computers with more than 2 GB and les... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Way to convert java.hprof.txt to binary hprof format? I have a java.hprof.txt file (automatically generated after an OutOfMemoryError) which I would like to convert to the binary hprof format. Is there any easy way to do this?
A: No there isn't. You have to create it again as a binary hprof.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/423802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a Database using DBExpress in Delphi? I need to create a Firebird Database programmatically using DBExpress. I have done this for SQL server, by first connecting to Master, then passing in the script for Create to a query, but with Firebird I have a little chicken and egg problem.
A: I got a good tip from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find minimal path in a tree with multivalued nodes My math classes are far behind, and I'm currently struggling to find a decent solution to a problem I'm having: I have a tree, in which nodes are actions, and are "weighted" according to multiple criteria : the cost of said action, the time it will take, the necessa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integer.Parse vs. CInt Basically, I have been using both Integer.Parse and CInt in most of my daily programming tasks, but I'm a little bit confused of what the difference is between the two.
What is the difference between Integer.Parse and CInt in VB.NET?
A: Looking with ILDASM at some sample code you can see that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can i get the path configured for the current executing httphandler? Consider an HttpHandler that can be configured for multiple paths.
But based on the path that matched a url i could be able to select the settings to apply.
I don't want to pass parameters in the url.
A: I don't have time right now to write a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In statement for LINQ to objects Is there an equivalent of a SQL IN statement in LINQ to objects?
A: Yes - Contains.
var desiredNames = new[] { "Jon", "Marc" };
var people = new[]
{
new { FirstName="Jon", Surname="Skeet" },
new { FirstName="Marc", Surname="Gravell" },
new { FirstName="Jeff", Surname="A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to "HTML encode" Em Dash in Visual Basic.NET I am generating some text to be shown on a web-site, and use HttpUtility.HtmlEncode to ensure it will look correct. However, this method does not appear to encode the Em Dash (it should convert it to "—").
I have come up with a solution, but I'm sure there is a bette... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to lock the ASP.net Dataset I am having one requirement for locking the entire dataset. Is it possible to lock the ASP.net dataset that no further updates to dataset to be done.
A: I don't think so, but you could always call the DataSet.RejectChanges Method
http://msdn.microsoft.com/en-us/library/sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Header redirect not working include('header.php');
$name = $_POST['name'];
$score = $_POST['score'];
$dept = $_POST['dept'];
$MyDB->prep("INSERT INTO demo (`id`,`name`,`score`,`dept`, `date`) VALUES ('','$name','$score','$dept','$date')");
// Bind a value to our :id hook
// Produces: SELECT * FROM demo_table W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: The Unknown Exception DateTime C# The data that I am sending to convertStringToDataSet function is
<NewDataSet>\r\n <Table ID="Table1">
\r\n
<PATNAME>Doe,JaneN</PATNAME>\r\n
<LEVEL>175</LEVEL>\r\n
<WHEN>2007-09-13T23:00:00.0000000-05:00</WHEN>\r\n
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get better performances using TIBCO RV from C#? I'm using TIBCO RV .NET API (TIBCO.Rendezvous.dll).
Do you know if there is a better way, in term of performance, to receive and read messages from a RV channel in C#? I found the Message type - the logical wrapper over a RV message - being quite heavy. Getting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHaml configuration problem: Model is not found I'm having a little problem with my NHaml config:
<configSections>
<section name="nhaml" type="NHaml.Configuration.NHamlConfigurationSection, NHaml"/>
</configSections>
<nhaml AutoRecompile="true">
<assemblies>
<add assembly="Microsoft.Web.Mvc"/>
<add as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has anybody used Manco.net Licensing for .Net? http://www.mancosoftware.com/licensing/index.htm
Just wondering what your thoughts are on it, if it's relatively good for the 80$ charge. We realize stuff will still get cracked, but prevention from the masses is also good to consider.
Any input is appreciated.
A: Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What IOC containers work with Windows Azure I am getting to grips with Windows Azure. I usually use NInject as my IoC container in web apps. However, when trying to use it within an Azure web role I get a security exception (something to do with reflection permission).
Has anyone used other IoC with Azure and had su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Postfix notation to expression tree There are enough resources on how to convert an expression tree into postfix notation, and it's not that hard.
But I have to parse a postfix expression into an expression tree.
The expression is:
A 2 ^ 2 A * B * - B 2 ^ + A B - /
I don't really have a clue on how to interpret th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: XMLTextReader.ReadSubtree to return XMLTextReader I am using an XMLTextReader to process an XML file (as opposed to an XMLDocument). I use XMLTextReader so I can use the option to ignore all whitespace.
At certain points I want to read in a node using ReadSubtree. This returns an XMLReader. How can I convert this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP PDF-Generation - IE7/Acrobat8: "Website cannot be displayed" I've got some trouble with displaying pdfs in IE7 (which were generated by R&OS' ezpdf).
IE7 with Acrobat Reader 8.1.2. says "The page cannot be displayed"
Other Browsers (like FF3/Acrobat 8.1.2. or IE6/Acrobat 7) have no problem with the file.
The fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which software for intranet CMS - Django or Joomla? In my company we are thinking of moving from wiki style
intranet to a more bespoke CMS solution. Natural choice
would be Joomla, but we have a specific architecture. There
is a few hundred people who will use the system. System
should be self explainable (easier th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to prevent DOS attacks using image resizing in an ASP.NET application? I'm currently developing a site where users can upload images to use as avatars, I know this makes me sound a little paranoid but I was wondering what if a malicious user uploads an image with incredibly large dimensions that will eat the ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Links to AJAX calls do not work Hi all i am writing a Rails application and i include some link_to_remote links
The generated code is
<a href="#" onclick="new Ajax.Request('/b10/categories/games?category=Action', {asynchronous:true, evalScripts:true}); return false;">Test</a>
That works perfectly fine on Safari and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: modelbinder with dropdownlist in asp.net mvc Here's what I'm trying to do :
I have an entity Task with a TaskName property and a TaskPriority property.
Now, in the html I have :
<td><%=Html.TextBox("Task.TaskName") %></td>
<td><%=Html.DropDownList("Task.TaskPriority",new SelectList(ViewData.Model.TaskPriorities,"ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XmlDocument and slow schema processing I have an xml template document that I need to load into an XmlDocument. eg
myXMLDocument.Load(myXMLFile);
However this is very slow as it loads in the dtd. I have tried both "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" and a local copy of the dtd. Both take more or less t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get Hibernate session inside a Hibernate Interceptor? How to get Hibernate session inside a Hibernate Interceptor?
I'm trying to use Hibernate to enforce data access by organization id transparently.
I have set a global Filter to filter all queries by organization id.
Now, I need to use an Entity interceptor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: T-SQL Decimal Division Accuracy Does anyone know why, using SQLServer 2005
SELECT CONVERT(DECIMAL(30,15),146804871.212533)/CONVERT(DECIMAL (38,9),12499999.9999)
gives me 11.74438969709659,
but when I increase the decimal places on the denominator to 15, I get a less accurate answer:
SELECT CONVERT(DECIMAL(30,15),14... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: xampp with asp (not aspx) is it possible to use xampp (apache 2) with asp (it works with aspx, but i want to use "normal" asp). With kind regard, JSMB
A: Thanks, I "solved" this with using quickwebserver. http://www.pablosoftwaresolutions.com/
Now I can use classic ASP with XP home edition (and of course it's not f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java: export to an .jar file in eclipse I'm trying to export a program in Eclipse to a jar file.
In my project I have added some pictures and PDF:s. When I'm exporting to jar file, it seems that only the main has been compiled and exported.
My will is to export everything to a jar file if it's possible, because th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: PostgreSQL replication strategies Right now we are using PostgreSQL 8.3 (on Linux) as a database backend to our Ruby on Rails web application.
Considering that on PostgreSQL database we actively use row level blocking and PL/PGSQL, what can we employ to secure our data -- I mean tools, packages, scripts, strategies ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Rounded Swing JButton using Java Well, I have an image that I would like to put as a background to a button (or something clicable). The problem is that this image is round, so I need to show this image, without any borders, etc.
The JComponent that holds this button has a custom background, so the button really nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to include/link C .lib files in a Delphi project We have a .lib file with functionality that must be included in a Delphi application.
It is easy to include .obj files, but for some unknown reason, this won't work for .lib files. The help is not very helpful on this. And a google search did not help that much (m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: easy way to add 1 month to a time_t in C/C++ I have some code that uses the Oracle function add_months to increment a Date by X number of months.
I now need to re-implement the same logic in a C / C++ function. For reasons I don't want/need to go into I can't simply issue a query to oracle to get the new date.
Does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Software "Robots" - Processes or work automation I have being toying with the idea of creating software “Robots” to help on different areas of the development process, repetitive task, automatable task, etc.
I have quite a few ideas where to begin.
My problem is that I work mostly alone, as a freelancer, and work te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is F10 so slow in VS2008? Question title says it all really - a lot slower than VS2005, with a noticeable (0.5 sec) delay on each key press.
It makes stepping through code a pain.
A: What kind of project are you debugging? C#?
I noticed that stepping through code is slowed down when you are monitoring a lot of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: missing file or assembly tinymcetextbox I have a project I am doing some maintenance work on and have got the solution files etc and attempted to build it and have got the following error:-
Error 4 Could not load file or assembly 'TinyMCETextBox' or one of its dependencies. The system cannot find the file specif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I approach Continuous Integration and .NET Framework Versions I am just beginning the move to the .NET Framework 3.5. I use CruiseControl.NET for our Continuous Integration and would like to know how other people approach setting this up.
I have a branch of the source code entitled NET3.5 but for now am k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating lightweight Linq2Sql proxy objects I'm trying to find the most efficient way to send my Linq2Sql objects to my jQuery plugins via JSON, preferably without additional code for each class.
The EntitySets are the main issue as they cause not only recursion, but when recursion is ignored (using JSON.NET's Refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reserved words as names or identifiers Is there any tricky way to use Java reserved words as variable, method, class, interface, package, or enum constant names?
A: Strictly speaking you can't, unless you get your hands on a buggy compiler implementation that doesn't adhere to the Java language spec.
But where the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: StringDictionary not saving as user setting I've created a user scoped setting with the type "System.Collections.Specialized.StringDictionary". Whenever I open the local settings, I can see it in the config, but it's empty.
I have other user settings that save correctly, but this dictionary doesn't seem to be savin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: LLVM vs GCC MIPS code generation, any benchmarks? I'm interested in knowing what is "best" free/OSS compiler for MIPS code, GCC or LLVM, or is there anything even better than those?
I'm interested in knowing more about fast and memory constrained generated Assembly code than code size.
In other words, does llvm-opt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is my WPF Treeview bound to LinqToSql classes being a memory hog? I have a WPF App which is grinding to a halt after running out of memory...
It is basically a TreeView displaying nodes, which are instances of Linq To Sql OR Generated class ICTemplates.Segment. There around 20 tables indirectly linked via associ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using uniqueidentifiers/guids as custom properties in log4net I'm trying to add a custom property which is a guid, but it gives me this error:
System.InvalidCastException: Failed to
convert parameter value from a String
to a Guid. --->
System.InvalidCastException: Invalid
cast from 'System.String' to
'Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Grouping Regular expression BackReferences I have the following RegEx
id=(.*?) | id="(.*?)"
The reason for this is I am trying to replace Ids from the browsers DOM using JavaScript. IE, however strips quotes from element atributes as it appears not to require them in the DOM
The problem I have is that the backrefer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What alternatives to Hans Boehm GC are out there for small devices? I'd like to use a virtual machine like NekoVM into a small device but to build it, it requires Boehm GC, however there is no port of that GC to that small device so I was wondering if there is any alternative to it, something that could be done excl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Dojo Struts 2.0.12 In my struts 2.0.12 application I'm trying to use s:datetimepicker
but it does not render.
Firebug error: dojo is not defined
on dojo.require("dojo.widget.DatePicker");
My jsp page
<%@taglib prefix="s" uri="/struts-tags" %>
.
.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<s:head th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove duplicate xml header html Tidy gives this as output for some reason:
<?xml version="1.0" encoding="utf-16"?>
<?xml version="1.0" encoding="utf-16"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Symbian C++ - Use a TTF font in your application? Is it possible to package a .TTF file in your application and use it to render text at runtime, and have the application release the font after use?
I've found bits of information scattered around the forum, but nothing conclusive.
Can anyone offer any advice?
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to link a .DLL statically? We have a (pure native C++) .DLL that is build by VS. As clients we have some native C++ applications and a .Net-Wrapper around this DLL written in C++/CLI. Finally there are some client applications for the .Net-Wrapper written in C#.
My problem is that the native.dll must be distribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: .htaccess rewritecond rewrite case level 2 folder=info I wanted to set .htaccess to rewrite:
example.com/bla/info/
to
example.com/info/index.php?q=bla
example.com/bla/info/txt/
to
example.com/info/index.php?q=bla&t=txt
I wanted the browser still to display:
example.com/bla/info/txt/
I didn't want rewrite in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server 2000 intermittent connection exceptions on production server - specific environment problem? We've been having intermittent problems causing users to be forcibly logged out of out application.
Our set-up is ASP.Net/C# web application on Windows Server 2003 Standard Edition with SQL Server 2000 on the back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to log SQLite queries on iPhone I'm doing an iPhone application, and I'm using SQLite.
The problem is that I had some issues with the query (I did bad binding) so, this is my question:
How can I log in my iPhone application the effective SQL query/statement with the bindings that SQLite receives?
Thanks.
A: Eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I output the name, file type and file extension of an xml to another xml I have a java class that applies an xslt to all xml files in a directory and performs a transformation on every xml it finds and prints out the complete filename.
My question is how would I create an xml (Files.xml),which would have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would you lock down an online form? We have a web application that is based around a form that gets passed around. Unfortunately when people look at it, it is editable. So two people can edit it at the same time and overwrite their changes. How would you go about locking the form (and any multiple parts of the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Suggestions for an embeddable scripting language for iPhone and Java app? I'm developing an app for iPhone with a Java desktop companion that it synchs to over the network. I'd like to embed a scripting language into both apps so that end users can write scripts that add new behaviours and interact with the object m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I list all the files in a commit? How can I print a plain list of all files that were part of a given commit?
Although the following lists the files, it also includes unwanted diff information for each:
git show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
A: Only the file list (not even commit message):
git sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3438"
} |
Q: How to determine if a javascript was already loaded by other html file How to determine if a javascript was already loaded by other html file? I want to reduce the redundant loading of the javascript files to decrease the loading time of my webpages.
A: If your web server is providing correct caching headers this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is this LEFT JOIN eliminating records with nothing in the other table? I have a MySQL Left Join problem.
I have three tables which I'm trying to join.
A person table:
CREATE TABLE person (
id INT NOT NULL AUTO_INCREMENT,
type ENUM('student', 'staff', 'guardian') NOT NULL,
first_name CHAR(30) NOT NULL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Persisting three related tables using nhibernate We have three tables A, B, C.
Columns
A => id, x
B => id, y
C => A.id, B.id
For every row in A there will be a row in B.
To relate A and B we are using C (we cannot change the table design).
We have to persist information in one transaction. Is there a way to do it u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I access private members from outside the class without using friends? Disclaimer
Yes, I am fully aware that what I am asking about is totally stupid and that anyone who would wish to try such a thing in production code should be fired and/or shot. I'm mainly looking to see if can be done.
Now that that's out o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: What kind of code library should I build for distribution? I need to build a C++ library to distribute among our customers. The library must be able to be accessed from a wide range of languages including VB6, C++, VB.net and C#.
I've being using ActiveX controls (ocx files) until now. But I wonder if there is a bet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate RTF from Java? I work on a web-based tool where we offer customized prints.
Currently we build an XML structure with Java, feed it to the XMLmind XSL-FO Converter along with customized XSL-FO, which then produces an RTF document.
This works fine on simple layouts, but there's some problem areas whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the relationship between the Windows API and the C run time library? What is the relationship between the Windows API and the C run time library?
A: If you mean the standard C library (msvcrt.dll I assume). Then not much at all. The majority of the windows API is implemented in separate dlls (very much of i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using JQuery as an ASP.NET embedded webresource I have an ASP.NET server control which relies on JQuery for certain functionality. I've tried to add as a webresource.
My problem is my method of including the jquery file adds it to the body, or the form to be exact:
this.Page.ClientScript.RegisterClientScriptInclude(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Create xmlns:xsi namespace and attribute I want to create the following element:
<exercises xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mySchema.xsd">
If I use something like this:
<xsl:element name="excercises">
<xsl:attribute name="xmlns:xsi" namespace="http://www.w3.org/2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ViewState or HiddenField If I have a simple piece of data to store (an integer or string for example) I might choose to store that in ViewState, or using a HiddenField control.
Why would I choose one over the other?
ViewState
*
*Hard for the user to decode (thought not impossible), which might be desirable
Hidd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.NET Membership Provider with Confirmation email Is there any framework/library for using ASP.NET Membership Provider with confirmation email, something ready to be used ?
Standard functionality used on almost all public web sites.
A: Found good example:
4Guys from Rolla : Examining ASP.NET 2.0's Membership, Ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I pass structured data to my (F)CGI through Apache? We've got an apache module in place for authentication. If the user is able to authenticate, the REMOTE_USER environment variable is set to their username, where it's available to any CGI they access.
I'd like to add a feature/module so that we can get add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: com.finder.desktopservices asks for admin password when copying files I am trying to copy files from my mac to a network drive. When copying the files, an empty file is created at the destination and I get a prompt saying I might have to enter an administrator password to change the file named "whatever my file name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: \\\\$ converted to \$ in jsp template data I just stumbled unto a weirdness in my JSP code. It seems that a double backslash followed by a dollar or percent symbol gets converted to a single backslash (plus symbol).
That is, the following JSP:
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
\\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Deployment (ClickOnce or MSI) Client Settings/Parameters I've created a windows forms application. I have a requirement of storing some information (in the Registry, Isolated Storage or other serialization method) like ClientID which is a GUID generated from a registration form before the user can download the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding Minutes to Date is not changing the Date C# .NET double TotalMinute=300.0
double TotalMinutesAdded=1378.0
double TotalMinute=300.0
double TotalMinutesAdded=1378.0
foreach(DataRow dr in ds.Tables[0].Rows)
{
//Add The above Timings to each Row's 2nd Column
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML Textarea horizontal scroll I would like to provide a horizontal scroll to a textarea in my HTML page. The scroll should appear without wrapping, if I type a long line without a line break. A few friends suggested using overflow-y CSS attribute, which did not work for me. The browsers that I use are IE 6+ and Mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Preventing Brute Force Logins on Websites As a response to the recent Twitter hijackings and Jeff's post on Dictionary Attacks, what is the best way to secure your website against brute force login attacks?
Jeff's post suggests putting in an increasing delay for each attempted login, and a suggestion in the comments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Performance of SQL "EXISTS" usage variants Is there any difference in the performance of the following three SQL statements?
SELECT * FROM tableA WHERE EXISTS (SELECT * FROM tableB WHERE tableA.x = tableB.y)
SELECT * FROM tableA WHERE EXISTS (SELECT y FROM tableB WHERE tableA.x = tableB.y)
SELECT * FROM tableA WHE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: What flags do you recommend for release configuration in MSVC project I am reviewing the flags we have for our MSVC projects, and I can't get enough documentation on the following features:
*
*Use Link Time Code Generation (/ltcg)
*enable function level linking (/Gy)
*Eliminate Unreferenced Data (/OPT:REF)
*Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining "Owner" of Text Edited by Multiple Users You may have noticed that we now show an edit summary on Community Wiki posts:
community wiki
220 revisions, 48 users
I'd like to also show the user who "most owns" the final content displayed on the page, as a percentage of the remaining text:
community wiki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a way to get rid of aspx placeholder files in a ASP.NET web deployment project? I'm using a web deployment project in order to precompile my ASP.NET 3.5 web project. It creates a single extra DLL for the code in aspx and ascx files. And, for every aspx file there is a placeholder aspx file (empty) which nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: User authentication If I am to follow What should a developer know before building a public web site? on authentication, then what options do I have ?
I have never used PEAR, and I'm not about to start. I have read about phpGALC but have yet to try it.
After the authentication do rights/access level kick in. I'm not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: User authentication database in App_Data folder - isn't that dangerous? We're planning to use standard ASP.NET user authentication for our application. However, by default this requires us to have our user database on our web server in the App_Data folder.
This is usually a big no-no for us - our databases are all b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert a string into TimeSeriesDataItem I am using Jfreechart. I have the following code:
TimeSeries t1 = new TimeSeries("EUR/GBP");
t1.add(new TimeSeriesDataItem....);
But my SQL query gives date in String format & value in Double. I want to use TimeSeriesDataItem. Please let me know how to convert my Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Seedable JavaScript random number generator The JavaScript Math.random() function returns a random value between 0 and 1, automatically seeded based on the current time (similar to Java I believe). However, I don't think there's any way to set you own seed for it.
How can I make a random number generator that I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "186"
} |
Q: How to determine whether click happened on element's scrollbar or on its content There is indeed method element.componentFromPoint(iCoordX, iCoordY) in Internet Explorer, but how do I differentiate a mouse click occurred in the content area of an element from the click occurred on its scrollbar in other browsers?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Experience with Hudson - Building matrix project Did anyone try that feature and has some feedback? Or Does anyone know some useful samples to look up?
A: Matrix builds have a number of issues:
*
*Broadly incompatible with plugins - they are getting better, but you need to be keeping very much up to date.
*Arti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Using KDE4 localization mechanisms in pure QT4 application I'm writing an application that is currently a pure QT4 app. It is designed to run cleanly on both Linux and Windows.
However I plan to integrate it a bit into KDE in future and here come the problems with localization/translations.
QT4 uses its own tr()/tr(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What A.I.-driven features would you like to see in an IDE? We already have things like static analysis that tells us what's wrong with our code and where, so should we be endowing our IDEs with more AI features and, if so, which ones? I'm looking for ideas!
A: Detection of duplicate code is a number one wish for me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spring and Hibernate, Lazy initiation problem Hey I am developing an desktop application using Spring and Hibernate, and I have a problem with lazy initiation. I looked in the web and every solution is related to the open session in view pattern, but I can't use this pattern. I've also tried to get the sessionfactor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .Net open source clustering products? ... like Terracotta Does .Net have any open source clustering products like terracotta (http://www.terracotta.org/)?
A: I don't think they have anything exactly like Terracotta... but there is velocity on the cards from MS(who knows when) as well as MEMCache(heard bad things) h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Get the current temporary directory path in VBScript? The VB trick to get the path of the current temporary directory:
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
fails in VBScript. So?
A: WScript.CreateObject("Scripting.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Are there any Java VMs which can save their state to a file and then reload that state? Are there any Java VMs which can save their state to a file and then reload that state?
If so, which ones?
A: Continuations are probably be what you are looking for:
[...] first class continuations, which are constructs
that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Accessing Erlang business layer via REST For a college project i'm thinking of implementing the business layer in Erlang and then accessing it via multiple front-ends using REST. I would like to avail of OTP features like distributed applications, etc.
My question is how do I expose gen_server calls/casts to other a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Doing a pivot using XSLT I have an xml file like this:
<root>
<item>
<name>one</name>
<status>good</status>
</item>
<item>
<name>two</name>
<status>good</status>
</item>
<item>
<name>three</name>
<status>bad</status>
</item>
<item>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using HTML formatting to output variables in Flex/MXML I'm trying to output a sentence containing 4 variables, with their values emboldened using the following code:
<mx:Text width="100%" y="307">
<mx:htmlText>
<![CDATA[Showing data from <b>{labelStartTime.text} {labelStartDate.text}</b> to <b>{labelEndT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using same Debug settings for Start External Program across 32 bit and 64 bit debug environments We use a mixture of 32-bit and 64-bit development environments. Some of our class libraries are debugged using a 32-bit application so we have debug settings for "Start External Program" and "Working Directory". The prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Increasing the timeout value in a WCF service How do I increase the default timeout to larger than 1 minute on a WCF service?
A: Different timeouts mean different things. When you're working on the client.. you're probably looking mostly at the SendTimeout - check this reference - wonderful and relevant explanation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "139"
} |
Q: How do I get the server/website IP address in asp.net? When a user request comes in, I can use Context.Request.UserHostAddress to get the user's IP address. How can I get the IP address of the website/server at runtime? I have some reporting code that can be used by multiple websites on the same server, and each web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: String representation of an Enum I have the following enumeration:
public enum AuthenticationMethod
{
FORMS = 1,
WINDOWSAUTHENTICATION = 2,
SINGLESIGNON = 3
}
The problem however is that I need the word "FORMS" when I ask for AuthenticationMethod.FORMS and not the id 1.
I have found the following soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "951"
} |
Q: Opening a "known file type" into running instance of custom app - .NET How would you open a file (that has a known file/app association in the registry) into a "running instance" of the application it's supposed to open in? An example would be, I have Excel open and I click on an XLS file.....the file opens up in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How stable/usable is SqlRoleProvider & aspnet_regsql? this isn't asp.net specific, some of these apps are WinForms, also will be adding some Wpf and possibly some silverlight apps in the future.
I’ve a requirement to put role & permissions based access security into a new app we’re developing here.
The .net RoleProv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the significance of the Type parameter in the RegisterClientScriptBlock method call? This is an example of RegisterClientScriptBlock
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "key","scriptblock", True)
Why do the method needs the type as the first parameter ?
Thanks.
A: From the MSDN docs:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to run junit tests in Eclipse I and my colleagues have an intermittent problem running junit tests or tomcat from within Eclipse.
Sometimes the tests will run.
Sometimes they will not.
There appears to be no pattern and we are not in sync. IE mine might run and others will fail.
Stopping/starting Eclipse can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.Net 2.0 VB WebSite Project "Type 'Exception' is not defined" All of a sudden our VB ASP.Net 2.0 WebSite Project started complaining that Exception was not defined.
I have discovered that if I add "Imports System" to the header, or explicitly use System.Exception that it works, but this error permeates a lot of o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/424396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.