text stringlengths 8 267k | meta dict |
|---|---|
Q: What does the C++ new operator do other than allocation and a ctor call? What are all the other things the new operator does other than allocating memory and calling a constructor?
A: I've written a explanation of what it does in this answer. It explains how
*
*new gets the memory
*new handles memory failure
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: 32 or 64 bit DLL loading from .Net managed code I have a unmanaged DLL (the scilexer.dll of Scintilla code editor, used by Scintilla.Net from CodePlex) that is loaded from a managed application trough the Scintilla.Net component. The windows managed application runs without problem on both 32 and 64 bit environments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Dealing with null values from DB The db I am querying from is returning some null values.
How do I safeguard against this and make sure the caller gets some data back.
The code I have is:
Using DataReader
while (dr.Read())
{
vo = new PlacementVO();
vo.PlacementID = dr.GetStrin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to avoid code duplication between views and controllers in Ruby on Rails? I currently have code in my ApplicationController to check if a user is logged in and has the required access to perform a given action (the tests take place in a before_filter).
I require the same functionality in the vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to debug the entry-point of fork-exec process in GDB? I have a C linux application (A) that spawns another process (P) when it is started. When I want to debug P I start A as usual and I connect with ddd/gdb to P.
Problems appear when I want to debug the entry-point (start of main) of P. If I follow the usual ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Java Developer looking for a 2nd'ary language to play with What is best language to learn next to Java?
Criteria for this secondary language are:
*
*High potential of being the "next big thing". e.g. If the market for Java open positions hypothetically dies/dwindles, what is the next programming language that wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which should I use, -awakeFromNib or -viewDidLoad? I recently had a problem in my app where some of the subviews I was creating in a UIViewController subclass's -awakeFromNib method were disappearing from the view. After some poking around I found that moving the code I had put in -awakeFromNib to -viewDidLoad solv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Java method dispatch with null argument Why does it (apparently) make a difference whether I pass null as an argument directly, or pass an Object that I assigned the value null?
Object testVal = null;
test.foo(testVal); // dispatched to foo(Object)
// test.foo(null); // compilation problem -> "The method foo(S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to set and preserve minimal width? I use some wx.ListCtrl classes in wx.LC_REPORT mode, augmented with ListCtrlAutoWidthMixin.
The problem is: When user double clicks the column divider (to auto resize column), column width is set to match the width of contents. This is done by the wx library and resizes column ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Git serve: I would like it that simple I want to know how to simply publish over http = much like Mercurial's hg serve! On the Windows/work box do this:
git serve
and then on the Linux box SIMPLY go:
git clone http://project project
finished.
A: Here is an alternative way. You will need python installed.
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: C# delegate for two methods with different parameters I am using the following methods:
public void M1(Int32 a)
{
// acquire MyMutex
DoSomething(a);
// release MyMutex
}
and
public void M2(String s, String t)
{
// acquire MyMutex
DoSomethingElse(s, t);
// release MyMutex
}
From what I have found so far... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Do you have coding standards? If so, how are they enforced? I've worked on a couple of projects where we spent a great deal of time discussing and writing elaborate coding standards covering everything from syntax layout to actual best practices. However, I have also found that these are rarely followed to the full ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: how to use an MS-Access file from Linux? I'm studying an introductory course in databases and one of the exercises is to work with MS-Access. However I'm using Linux at home and although I can use the computer classes at the university it is far from convenient (limited open time - my studying time is mostly nights)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to exclude 'out of stock' items from the front page? I'm currently using Magento 1.1.6. My store only sells unique items (shirts with exclusive designs) which means at any one time, only 1 unit is available for each items.
How do I omit those items which are already sold from being displayed in the front page?
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem: XMLHttpRequest - handle server connection lost How do I handle the scenario where I making a synchronous request to the server using XMLHttpRequest and the server is not available?
xmlhttp.open("POST","Page.aspx",false);
xmlhttp.send(null);
Right now this scenario results into a JavaScript error:
"The syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cool way to call methods on multiple objects in Ruby? A long time ago I saw this trick in Ruby. Instead of doing (for example)
if array1.empty? and array2.empty? and array3.empty?
You could call all of the objects at once and append the operation at the end, kind of like
if %w(array1 array2 array3).each { |a| a.emp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: JavaFX Script for server side applications Has anybody tried to use JavaFX Script in server side applications?
The language itself looks quite nice and modern, and is fully Java compatible. If Sun is serious about it, it could be quite ubiquitus on the server side too, where Java is strong.
What do you think?
A: Ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem returning field in ms sql 2005 - System.InvalidCastException: Using the code below, I am returning an nvarchar field from MS SQL 2005 and keep getting a System.InvalidCastException.
vo.PlacementID = dr.IsDBNull(0) ? null : dr.GetString(0);
The vo.PlacementID variable is of type String so there shouldn't be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: API design terminology, I just can't remember the word! There's a word that's used in API design that relates to the coupling between two entities. If one entity can vary without impacting the entity they are said to be _ _ _ _ _. For example given the declaration
class Point
{
public int X;
public in Y;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stackless python and multicores? So, I'm toying around with Stackless Python and a question popped up in my head, maybe this is "assumed" or "common" knowledge, but I couldn't find it actually written anywhere on the stackless site.
Does Stackless Python take advantage of multicore CPUs? In normal Python you have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Code analysis/FxCop in VS2008 FxCops is something new to me, but as always I would like to get to know the new things..
From what I've read, FxCops is already included in VS2008. I guess it's the "Code Analysis" function. Whenever I try to run it though, it seems to start a rebuild and end in the "Finished Rebuildin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Whats the best way to send an event to all workstations I hope someone can guide me as I'm stuck... I need to write an emergency broadcast system that notifies workstations of an emergency and pops up a little message at the bottom of the user's screen. This seems simple enough but there are about 4000 workstations ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flash for business web applications - why not? I'm in the trade of developing business web applications. They are mostly internal-use, sometimes with a partner zone, but rarely available to the public internet. They are applications that help companies run their business.
For some time now I have an idea bugging me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Howto identify UTF-8 encoded strings What's the best way to identify if a string (is or) might be UTF-8 encoded? The Win32 API IsTextUnicode isn't of much help here. Also, the string will not have an UTF-8 BOM, so that cannot be checked for. And, yes, I know that only characters above the ASCII range are encoded wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is there a LaTeX command to make text all lower caps? Hey, I am trying to write a command to print todays date on the front page of a report using the textsc command, but the today date capitalize December.
Any help will be appreciated.
A: You can use the \MakeLowercase macro or \MakeTextLowercase from the textcase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SNMP MIB development tool Does anybody know a good tool to assist in the development of an SNMP MIB with correct formatting and syntax?
If possible, it should be free and run under Linux.
A: You could always use the snmp-mode in emacs for syntax highlighting.
A: For a very quick & dirty systax-hightlighter, try th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Combo boxes with Hibernate Im searching for the best way to mantain combo box values within a Mysql Database accessed by Hibernate objects.
Currently we have the following table:
CREATE TABLE COMBO_VALUES(
KEY VARCHAR(5) NOT NULL,
COMBO_TYPE VARCHAR(20) NOT NULL,
VALUE VARCHAR(100) NOT NULL
PRIMARY KEY(K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSP code to Struts or JSTL tag HI,
I m doing the folling stuff in the jsp code I need to do it using Struts or using JSTL tag can any body have relevant idea please share..
The following is my JSP code
<%
Object category = request.getAttribute("categoryDetails");
Hash... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery: how do I see which events are defined on an element? I use
$(window).bind( ... )
to set up event handlers, but for some reason I keep losing event handlers (i think).
Is there any way when debugging (firebug) to see which custom events have been added to a given element?
Yours
Andreas
A: All events bound ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can someone explain the c++ FAILED function? I've seen a lot of example c++ code that wraps function calls in a FAILED() function/method/macro.
Could someone explain to me how this works? And if possible does anyone know a c# equivalent?
A: It generally checks COM function errors. But checking any function that ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: OpenID on Community Server Okay, I've asked on the Community Server Forums and was totally ignored. So I'll ask here. The OpenID provider (presumably janrain) for CommunityServer does not work with an SSL OpenID endpoint. I really don't know of a non SSL OpenID endpoint and even if I did...I'm not sure if I'd want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Generating code stub from class and javadoc Is anyone familiar with a tool that generates code stubs with meaningful names from class and javadoc?
The real question should've been "I have classes without debug information and a matching javadoc, but my IntelliJ IDEA 8.0.1 (please, no IDE wars) doesn't take into acco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server 2005: natural sort order for 2-columns tables with unique constraint I have this table in my SQL Express 2005 database:
CREATE TABLE [dbo].[test_sort_order](
[Col1] [int] IDENTITY(1,1) NOT NULL,
[Col2] [nchar](50) COLLATE French_CI_AS NULL,
CONSTRAINT [PK_test_sort_order] PRIMARY KEY CLUSTERED
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OOP and MVC programming style I'm writing some data analysis software and decided to use such approach:
epn:
model/data.py <- Model definition
model/reader.py <- How to read data into model
view/gui.py <- main gui frame (wx)
view/dialogs.py <- different dialogs (wx)
epn.py <- controller
For communication between gui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SELECT WHERE ... hundreds of conditions Is there an elegant way to do this:
SELECT Cols from MyTable WHERE
zip = 90210 OR
zip = 23310 OR
zip = 74245 OR
zip = 77427 OR
zip = 18817 OR
zip = 94566 OR
zip = 34533 OR
zip = 96322 OR
zip = 34566 OR
zip = 52214 OR
zip = 73455 OR
zip = 52675 OR
zip = 54724 OR
zip = 98566 OR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sum of the digits of the number 2^1000 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2 power of 1000 (2^1000)?
Can anyone provide the solution or algorithm for this problem in java?
A: Here is my solution:
public static void main(String[] args) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Code not waiting for class initialization! I have a block of code that basically intializes several classes, but they are placed in a sequential order, as later ones reference early ones.
For some reason the last one initializes before the first one...it seems to me there is some sort of threading going on. What I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Castle Windsor with .net 3.5 framework How can I use Windsor in my .net 3.5 solution? Can I use the binaries built for .net 2.0? Do I need to compile the Castle Windsor source myself, targeting 3.5?
A: You can use the .net 2.0 binaries in your 3.5 solution without any problem. They are both built for the same versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A beginner's guide to SQL database design Do you know a good source to learn how to design SQL solutions?
Beyond the basic language syntax, I'm looking for something to help me understand:
*
*What tables to build and how to link them
*How to design for different scales (small client APP to a huge distributed web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: How can I break a table row in xsl after a specified count? I have the following xsl that sorts my xml alphabetically:
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:key name="rows-by-title" match="Row" use="translate(substring(@Title,1,1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRST... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET RadioButton messing with the name (groupname) I got a templated control (a repeater) listing some text and other markup. Each item has a radiobutton associated with it, making it possible for the user to select ONE of the items created by the repeater.
The repeater writes the radiobutton setting its id and n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Is Catalyst+Mason+Template::Toolkit worth learning rather than sticking to LAMP+Axkit? Currently i'm using pretty much Unix + Mysql + Perl + Apache with some javascript to make it more ajax like. and i've been looking at sites which are web 2.0 and stackoverflow and really like the simple design and the smooth flow ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using YUI and Prototype Together I want to add a calendar control to a page that already includes Prototype and Scriptaculous. Not happy with any of the Prototype ones I could find, I'm considring using the YUI Calendar widget.
I this likely to cause any problems?
A: We have worked hard to make sure that YUI is sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MATLAB: Using ODE solvers? This is a really basic question but this is the first time I've used MATLAB and I'm stuck.
I need to simulate a simple series RC network using 3 different numerical integration techniques. I think I understand how to use the ode solvers, but I have no idea how to enter the differential equ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting how a batch file was executed Assuming Windows, is there a way I can detect from within a batch file if it was launched from an open command prompt or by double-clicking? I'd like to add a pause to the end of the batch process if and only if it was double clicked, so that the window doesn't just disappear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Setting both Debug and Release settings in Visual C++ 2008 A common mistake when configuring the compilation/linking/etc. settings in VC++ 2008 is to set them in Release but not Debug (or vice versa) rather than setting them for "All Configurations". Any suggestions on how to avoid this kind of mistake?
Some beginni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practices for file system dependencies in unit/integration tests I just started writing tests for a lot of code. There's a bunch of classes with dependencies to the file system, that is they read CSV files, read/write configuration files and so on.
Currently the test files are stored in the test directory of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Macro which prints an expression and evaluates it (with __STRING) For learning and demonstrating, I need a macro which prints its parameter and evaluates it. I suspect it is a very common case, may be even a FAQ but I cannot find actual references.
My current code is:
#define PRINT(expr) (fprintf(stdout, "%s -> %d\n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are the rendering differences between FF2 and FF3? I've noticed slight spacing differences in HTML rendering between these versions in Windows XP.
Is the box-model interpreted in a slight different manner?
A: Found this: http://kb.mozillazine.org/Websites_look_wrong
It's not specifically about FF3, but can hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get my program to sleep for 50 milliseconds? How do I get my Python program to sleep for 50 milliseconds?
A: Use time.sleep():
import time
time.sleep(50 / 1000)
See the Python documentation: https://docs.python.org/library/time.html#time.sleep
A: You can also do it by using the Timer() function.
Code:
fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "738"
} |
Q: Sharepoint Web Part Management I have a rather large project developed on Sharepoint and Project Server, designed as a multi-tier application. I programmatically manage web parts on certain web part pages. According to the choices of the user in one of the web pages, appropriate web parts are added to the web part c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically add where clauses to a cursor in oracle I have plsql procedure which accepts certain parameters e.g. v_name, v_country, v_type.
I wish to have a cursor with a select statement like this:
select column from table1 t1, table2 t2
where t1.name = v_name
and t1.country = v_country
and t1.id = t2.id
and t2.typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JBPM Workflow patch generation I have been using JBPM workflow in my project and I have a small question regarding generating the database patches or SQL statements to apply JBPM workflow modifications.
Currently JBPM workflow provides a way to refresh the JBPM tables in schema with the deployment of the latest pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Select statement with Inner Join help Here is my SQL Statement which is not returning DISTINCT Thread Titles.
SELECT DISTINCT TOP 5 tblThread.Title, tblPost.Date
FROM tblPost
INNER JOIN tblThread ON tblPost.ThreadID = tblThread.ThreadID
ORDER BY tblPost.Date DESC
The common field between tblThread and tblPos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Profiling existing flash files I'm trying to do some research on flash objects in browsers. For example memory usage etc.
With Adobe Flex Builder 3 im trying to do some profiling on swf files but the problem is that I can only do this on debug swfs. Almost all adds/games/video are release version. Is there a way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF Designer has bug with parsing generic control with overrided property I've created a generic lookless control with virtual property:
public abstract class TestControlBase<TValue> : Control
{
public static readonly DependencyProperty ValueProperty;
static TestControlBase()
{
ValueProperty = D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XmlSerialize a custom collection with an Attribute I've got a simple class that inherits from Collection and adds a couple of properties. I need to serialize this class to XML, but the XMLSerializer ignores my additional properties.
I assume this is because of the special treatment that XMLSerializer gives ICollecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Method overloading behaviour I have the following code sample :
public class Base
{
public virtual void MyMethod(int param)
{
Console.WriteLine("Base:MyMethod - Int {0}", param);
}
}
public class Derived1 : Base
{
public override void MyMethod(int param)
{
Console.WriteLine("Deriv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to put a page break into an HTML email? I know it's possible to use CSS to add page breaks to web pages, for when they're printed.
I also know CSS support in HTML emails is poor.
So, is there a way to generate a page break when an HTML email is printed? Or given the variety of email clients out there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Stopping LINQ from querying entity sets (and grouping) This is a brief description of my db. You have issues which have categories. I have various queries that get issues based on all sorts of criteria, but that's not important to the question.
I want to be able to take a list of issues I have queried, lets say for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error using JSTL XML taglib - attribute xml does not accept any expressions I'm getting the following error when I try to use the JSTL XML taglib:
/server-side-transform.jsp(51,0)
According to TLD or attribute directive in tag file,
attribute xml does not accept any expressions
I'm looking into the tlds etc, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should one use auto shrink on log files in SQL Server? I have had a few problems with log files growing too big on my SQL Servers (2000). Microsoft doesn't recommend using auto shrink for log files, but since it is a feature it must be useful in some scenarios. Does anyone know when is proper to use the auto ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: constrain StackPanel's width to smallest child element How can I constrain a vertical WPF StackPanel's width to the most narrow item it contains. The StackPanel's width must not be greater than the width of any other child element.
A: Unfortunately the IValueConverter approach will not always work; if the children ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Execution speed of references vs pointers I recently read a discussion regarding whether managed languages are slower (or faster) than native languages (specifically C# vs C++). One person that contributed to the discussion said that the JIT compilers of managed languages would be able to make optimizations regardin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Linq to Entities / Entity Framework cross edmx "join" I have two entities, each from a different database and therefore different edmx files. There is, however, an infered relationship between them.
Foo has many Bars for example.
What's the easiest way to do this join in the EntityFramework, with fewest database cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Quickest way to get Scaffold code created with C#/ASP.NET At the start of any project, once you've got your object model there then comes a period of tedium as you crank out the skeleton code required.
Are there any tools that will help me with this task (including unit test skeletons if possible), a bit like the sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Path of DLL installed to the GAC How can I get the (physical) installed path of a DLL that is (may be) registered in GAC? This DLL is a control that may be hosted in things other than a .Net app (including IDEs other than VS...).
When I use System.Reflection.Assembly.GetExecutingAssembly().Location, it gives path of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Best Practice: network communication I'm programming a simple network chat with a Python server and a Java client.
But one question came into my mind:
Which "network protocol" should I use for communication?
There are some possibilities for me:
*
*YAML: Nice to parse, problem: parsed objects contain language spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Calling ActionScript 2.0 events from another project I have an ActionScript 2.0 file that contains a small library.
This library parses an XML file.
I have assigned an onComplete function on the onLoad function of the XML.
For example:
------------ mysmalllib.as --------------
r_xml = new XML();
r_xml.onLoad = onCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange path references to Javascript files? In a HTML page references to Javascript files are rewritten with one additional subdirectory at the end:
/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+.
Why is that and can it be a source to potential problems?
In our source code we have Javas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access Report PageHeader not with GroupHeader I'm stuck with the following:
I have an Access2003 report "rptInvoices".
Group levels are on CustomerID and PackingListID.
What I like to achieve is that every 2nd (or 3rd etc.) page of an invoice starts with a blank section (of say 9cm) at the top of the page. For thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Counting the number of instances of some data in a mySQL column I have 1 table called urltracker that holds information about the number of times a specific url has been clicked. The table is structured into 4 columns id, urlclicked, referrer and timestamp. The urltracker creates another entry in the table every tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring WebFLow Handling Request in JSP I am newbie to Spring Webflow, I have am using Custom FlowHandler
I can reach the respective Controller, but if set an attribute in a request Object I don't get it in JSP that is View state.
How can I proceed in this?
A: you shouldn't set anything to your request attributes i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaFX is now out: Are Applets and Java Desktop officially dead/dying? JavaFX is now out, and there are promises that Swing will improve along with JavaFX. Gone will be the days of ugly default UI, and at long last we can create engaging applications that are comparable to Flash, Air, and Silverlight in terms of qua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Windows Mobile Development - Where to begin? Okay, I will shortly be starting down the path of windows mobile development. I know nothing about the subject really and I am looking for people with experience to let me know of any gottchas you may know of.
Right now I dont even have a breif of what is requied but the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Can multiple CSS hover popups occupy the same space within a single div? I'm trying to have text spans pop up on a hover pseudo-class for different lines in a menu (list items). I can have the pop-ups occupy the same space in the div if the menu/list is horizontal, but a vertical list places the popups at the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Signing .NET assemblies: Does this protect my assembly from tampering really? I am implementing a "locking" system in my app which protects my app against being copied and used illegally. The system checks the signature of a hardware-based code and expects it to be signed with a Private Key that only my company owns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can I integrate a Zend-Framework powered web application into a wordpress site? I have a project in which I want to be able to call wp_list_pages() on a page that also uses the Zend Framework to power some complex interfaces manages custom data outside of wordpress.
This page should also redirect the user to the wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drupal deployment/testing/don't-how-to-call it tool Setup is following:
Drupal project, one svn repo with trunk/qa/production-ready branches, vhosts for every branch, post-commit hook that copies files from repository to docroots.
Problem is following: Drupal website often relies not only on source code but on DB da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A respectable PHP Datetime parser echo date('r',strtotime("16 Dec, 2010")); //Tue, 16 Dec 2008 20:10:00 +0530
echo date('r',strtotime("16 Dec 2010")); //Sat, 16 Jan 2010 00:00:00 +0530
That's just wrong... Either it should fail or it should parse correctly. Do you know any robust natural language date/time parse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add, update and edit an XML file with PHP I have an xml file which I would like to create a form/table around to add, edit and delete records using PHP. Currently I use simpleXML to load the XML file, and display its content on various pages.
Is there any way I can create a table that shows all results, and allows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How or where to obtain the Official Samsung Omnia's SDK I have searched high and low and cannot find a Samsung Omnia SDK.
I know its possible to use the .net framework for development , but i want more , specifically being able to access the motion sensor and maybe the GPS as well.
Any idea or directions are welcome... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: stop the animation jQ ive got the problem that i dont know how to stop my function with mouseover and restart it with mouseout
first here is my test-code:
<script type="text/javascript">
function fadeEngine(x) {
var total_divs=3; //setze hier die nummer der gewollten divs
var y=x;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC framework for huge Java EE application Which MVC-framework is the best option (performance/ease of development) for a web application, that will have + 2 million visits per week.
Basically the site is a search engine,but also there will be large amounts of XML parsing, and high db traffic.
We are using Java, ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery Ajax error handling, show custom exception messages Is there some way I can show custom exception messages as an alert in my jQuery AJAX error message?
For example, if I want to throw an exception on the server side via Struts by throw new ApplicationException("User name already exists");, I want to catch thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "797"
} |
Q: ASP.NET MVC Preserve Post Data After Authorize I have an action handling a form post, but I want to make sure they are authenticated before the action. The problem is that the post data is lost because they user is redirected to the login page, and then back.
[AcceptVerbs(HttpVerbs.Post)]
[Authorize]
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: navigation items disappearing from UINavigationBar I am adding a custom background image to my navigation bar by creating an image view and doing a [navigationController.navigationBar addSubview:imageView].
The background comes in fine. But as soon as I do this, my other navigation items start behaving in a strange ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SOA Governance Explained Does anybody have an idea what SOA Governance is all about? What is the difference (or correlation) between SOA Governance and IT Governance? and How can it be applied using SOA platforms available in the market?
Can a project built on SOA platform be successful without applying SOA Governan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Openbase SQL case-sensitivity oddities ('=' vs. LIKE) - porting to MySQL We are porting an app which formerly used Openbase 7 to now use MySQL 5.0.
OB 7 did have quite badly defined (i.e. undocumented) behavior regarding case-sensitivity. We only found this out now when trying the same queries with MySQL.
It appears... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sharepoint workflows does not start After some point wokflows on Sharepoint MOSS 2007 System stopped functioning. They do not start, their status allways remains in 'Starting' state. The issue remains for a declarative workflow. And even if we try to run workflow manually. Issue resolved temporary by restarting owst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Word 2007 as CMS page editor I have been searching for several hours but i couldn't find anything about this... Basically I would like to create a template or plug-in for word 2007 that would allow someone to create new pages for a CMS. What I have in mind is something similar to blog post template. I know how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can you achieve encrypted bi-directional communication using WCF when the client can be behind a proxy,a firewall or a NAT? I have a client and a server both written in .net 3.5 so I've got no interoperability issues.
The server is fully accessible on port 443 (I'm hosting it so I can open other ports if needed)
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling server event of a button in ASP.NET from Javascript I have a button, I need to display a pop-up in javascript. So on its client click I call a javascript function which does that.
if user clicks "yes", I need to do a post back and call buttons server side click event, here is what I am doing inside the java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ char array with stdin I am trying to get the size of an array populated by stdin:
char *myArray;
cin >> myArray
cout << sizeof(myArray);
This returns 4 when I enter a string greater with a length greater than 4 e.g. "40905898"
Where am i going wrong?
A: sizeof(pointer) will always return 4. You want to use str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Formatting Tables to not look like tables / JS Sorting without tables? I'm designing an interface to display sets of data. I'm interested in organizing the information in a customized format using DIVs and SPANs to identify where specific data will be (not in the typical row-by-row format tables provide) but still h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server data/input validation I am considering adding validation on some insert and update statements for MS SQL Server 2005.
I want to be able to check the values inserted before it is written into the table - in this particular case, it is an integer field where the data must conform to a rule.
So a simple sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rename jQuery tabs? Is it possible to rename all the tabs in a jQuery UI tab control? My tabs are numbered from 1..N, and it is possible to remove a tab from it. I want to "rename" the remaining tabs so they are numbered 1,2,3,4,5,6, and 1,2,3,5,6,7 when you remove the fourth tab. They should end up named by their 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaScript automatic getter/setters (John Resig book) I'm reading "Pro JavaScript Techniques" by John Resig, and I'm confused with an example. This is the code:
// Create a new user object that accepts an object of properties
function User( properties ) {
// Iterate through the properties of the object, and make s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Help with a special case of permutations algorithm (not the usual) I have always been interested in algorithms, sort, crypto, binary trees, data compression, memory operations, etc.
I read Mark Nelson's article about permutations in C++ with the STL function next_perm(), very interesting and useful, after that I wro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 284 could not be located in the dynamic link library SSLEAY32.dll Postgres 8.3 is installed on a windows 2008 server.
Ruby 1.8-6 installed.
gem install ruby-postgres.
When trying a simple connect I get
ruby.exe - Ordinal Not Found
The ordinal 284 could not be located in the dynamic link library SSLEAY32.dll.
OK
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.