text stringlengths 8 267k | meta dict |
|---|---|
Q: Can an anonymous object be declared static in C++? Is this allowed? :
class A;
void foo()
{
static A();
}
I get signal 11 when I try to do it, but the following works fine:
class A;
void foo()
{
static A a;
}
Thank you.
A: Nope. There is no such thing as an "anonymous object" in C++. There is such a thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find non-active CSS properties Is it possible to determine styles in a CSS file through Javascript?
I am trying to detect CSS properties that will be applied to an element in a certain state, :hover in this case, but without those properties currently being active on the element. I had thought about cloning the elem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XSL FO inline alignment I need to get text aligned right and left on the same line. This should be possible, but i can't seem to find a way. I'm using Apache FOP to convert xml to pdf.
Can someone help me to get this right?
A: <fo:inline-container vertical-align="top" inline-progression-dimension="49.9%">
<fo:b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Thread Creation Event for setting CurrentCulture Our application allows the user to change the Culture that they run it under and that culture can be different than the underlying OS Culture. The only way that I have found of doing this is by setting Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.Curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\cbnonreg\fc933fca\bbf91eea" is denied I get the error
Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\cbnonreg\fc933fca\bbf91eea" is denied.
whenever I try to access my newly deplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I append children to QDomDocumentFragment object in qt with c++ I'm using qt 4.4.3 with c++. I want to implement a QDomDocumentFragment object, and pass it as a return value for a function. I am using it the same way as QDomElement objects, with appendChild():
QDomDocumentFragment rootnode;
QDomNode initmodn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.net session expiry redirect to login page What is the best way to redirect to the login page when the session expires. I'm using
sessionState mode="InProc"
Can I set this in the web.config file?
A: The trick to remember about the session expiration is that this happens in the the worker process running behind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's with the "Afx" in StdAfx.h? I'm just curious what Afx stands for. And what about Fx in FxCop?
A: http://en.wikipedia.org/wiki/Stdafx.h
"The AFX in stdafx.h stands for Application Framework eXtensions. AFX was the original abbreviation for the Microsoft Foundation Classes (MFC)."
A: From Wikipedia:
One inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Is there an upper limit on .txt file size? As a Christmas gift I have written a small program in Java to calculate primes. My intention was to leave it on all night, calculating the next prime and writing it to a .txt file. In the morning I would kill the program and take the .txt file to my friend for Christmas.
Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Contents not able to be found in an Update Panel? I have a table for a contact form and this table contains another table which is hidden whether the extended form is desired or not because this control is used on several pages. All of this worked fine until I put an update panel around it. I can see the controls in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add Autocomplete to a Masked Text Box? In .Net, there is the MaskedTextBox and there is the TextBox which has an autocomplete member. Autocomplete doesn't seem to be available for MaskedTextBox. How do you get MaskedTextBox working with autocomplete?
I am attempting to do this in Visual Basic.
A: Your only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.net: what's the best way to handle clearing a page? I have a page for searching and the search result will be shown in gridview control. I have a button called Clear to clear out the search result in gridview and also the text box where user enter the search criteria.
At first, i did the Clearing by doing page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stack overflow when tabbing in flash player 10 Has anyone run into this problem? All I am doing in tabbing from one TextInput component to another.
I have reduced my TitleWindow (the container for the TextInputs) down to only these two components and I still get this error. I assumed that it had something to do with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SVN Mergeinfo properties on paths other than the working copy root I have an SVN repository where I have trunk and a branch.
I intend to merge the trunk into the branch at regular intervals, however, when I do this I see many property status changes, in addition to actual file content changes.
On further investigati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: VB.NET 2005 DataGridView Redraw Description :
I'm using a Global DataGridView which is been created once , then I'm sharing that grid ByRef on multiple User controls , the strange thing is -> first control adding or Initializing that grid will draw it all others controls will not draw it (For sure and I know why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update in Oracle I need to update the comments field in a table for a large list of customer_ids. The comment needs to be updated to include the existing comment and appending some text and the password which is in another table. I'm not quite sure how to do this.
Here is some code that does this for a single cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS App Pools - Stop/Start vs Recycle I've noticed that on one of my production web apps, when I manually recycle an app pool, the recycled worker process can take upwards of 60+ seconds to actually be completely destroyed, based on watching it in Task Manager. However, if I stop the app pool completely, the worker ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Organising my Python project I'm starting a Python project and expect to have 20 or more classes in it. As is good practice I want to put them in a separate file each. However, the project directory quickly becomes swamped with files (or will when I do this).
If I put a file to import in a folder I can no longer imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to get the "real" value of the Visible property? If you set the Visible property of a Windows Forms control to true, that property still returns false if any of the control's parent windows are hidden. Is there a way to get the true, underlying visibility flag of the control in case the parent window is hidden?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Access to iTunes Ratings Data We want to write a Windows/OS X app that sends podcast ratings info from an iPod and iTunes back to a server. Two questions:
*
*Is there documentation for how ratings data are stored in iTunes,
*if a user has iTunes set to auto-delete programs he has heard, is there a way to capture... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to identify fortran standard - '77, '90, or '95? I have a piece of fortran code, and I am not sure which standard it is - '77, '90 or '95. Is there a standard tool to identify which standard it subjects to?
A: If you have access to GNU Fortran (gfortran) you can try compiling it with the different options for -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Synchronizing ASP.NET Sessions Across Multiple Sites Is there an elegant solution for synchronizing sessions across multiple ASP.NET applications? I'm sure this could easily be considered a security hole, but there is a 3rd party ASP.NET application involved, for which there is no ability to extend. For this reaso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Re-entrant locks in C# Will the following code result in a deadlock using C# on .NET?
class MyClass
{
private object lockObj = new object();
public void Foo()
{
lock(lockObj)
{
Bar();
}
}
public void Bar()
{
lock(lockObj)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: How Do I get this ComboBox Hosted in a ListView to update my Collection? I have a ComboBox hosted in a ListView and I need changes in the CombBox to update the supporing class that the ListView is bound to.
Here is my DataTemplate
<DataTemplate x:Key="Category">
<ComboBox IsSynchronizedWithCurrentItem="False"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPEG support with ijg - getting access violation I was recently trying to update my game to store graphics in compressed formats (JPEG and PNG).
Whilst I ended up settling on a different library, my initial attempt was to incorporate ijg to do JPEG decompression. However, I was unable to get even the simplest consol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Form designer inconsistent in control display style for updated project I've got a project that I started in Turbo Delphi, which I recently updated to D2009, and I've noticed a bit of a quirk in the form designer. All the old forms have a Win98 style applied to them. The buttons are gray with sharp square edges, fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Approach for large data/reporting project What is a good approach for the following:
On a weekly basis, approximately 250,000 records representing transactions will be appended to a large table in an SQL 2005 database. It is required to augment this data and append it to another table. (For example, based on the cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simplest way to use JPA with my GWT application I'd like to create a simple Google Web Toolkit application which makes uses RPCs. For persistence, I'd like to use something like the Java Persistence API.
Does this mean I have to use an application server like Glassfish? or can I stick with a simple web container?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Submit a registration form remotely A client of mine is needing their current website to tie into an online leasing module off site.
The module needs to be accessed from our website by posting the username and password hash to it, or the registration information.
It works when I copy the view state manually from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a good commercial tar stream lib for c# and .net? We are currently using SharpZipLib but since it uses the GPL we need to replace it with a commercial lib.
A: Have you looked at DotNetZip?
It is not under the GPL, but rather the Microsoft Public License (Ms-PL).
A: See my comment about #ziplib on the mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to find good examples or Templates for Configuration Management Plans? Documentation is not the favorite area of a developer but an important area to fulfill if you want to have standards in the organization. We are trying to put together a new Configuratio Mgmt Plan to setup Change Controls, Backups strategi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to implement realtime UI updates like SO's 'new answer' notifier? What is the suggested pattern for providing realtime UI updates in a web application? For example, whilst answering a question on SO and another user submits an answer and a prompt appears. Also, if every page in your site provides this funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bubbling up newest content in lucene search results I am storing various articles in my lucene index.
When user searches for articles which contain a specific term or phrase,I need to show all th articles (could be anywhere between 1000 to 10000 articles) but with newest articles "bubbled up" in the search results.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dependency Properties with Explicit Interfaces I am knocking together a WPF demo for our department at work to show them the advantages of WPF whilst trying to adhere to our development standards (dependency injection and developing objects to an explicit interface).
I have come to a bit of a wall now. I am implemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to enable ClearType on Visual Studio only? I really like how Consolas looks with ClearType enabled but unfortunately it makes everything else look terrible. Is there any way to enable this on a per app basis? I noticed that putty (the terminal emulator) has options for ClearType separate from the disp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get client's IP address using JavaScript? I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI.
However, I'm not against using a free 3rd party script/service.
A: Get your IP with jQuery
you can get your public IP address with one line of JS? There is a free ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "560"
} |
Q: How does Hibernate create proxies of concrete classes? To the best of my knowledge, creating a dynamic Java proxy requires that one have an interface to work against for the proxy. Yet, Hibernate seems to manage its dynamic proxy generation without requiring that one write interfaces for entity classes. How does it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: For each not working properly in VBA code Well I am almost done finalizing the auditing portion of my application that I discussed here. The way I am doing it is looping through all text fields, drop down boxes and checkboxes and storing their values in the form_load event. Then I am doing the same thing in the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/391991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL string formatter Does anyone know of a program, a utility, or some programmatic library, preferably for Linux, that takes an unformatted SQL string and pretty prints it?
For example I would like the following
select * from users where name = 'Paul'
be changed to something like this
select *
from users
where
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Access via ODBC - Oracle DEFAULT not working We use MS Access as a front-end to Oracle tables, via ODBC, and it has been working well.
But we're trying to use the DEFAULT constraint in an Oracle table. When we open the linked table in Access, we see existing data just fine, but when we try to add a row, without key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to do a cross-platform, atomic file replacement in Perl? I have a very common situation. I have a file, and I need to entirely overwrite that file with new contents. However, the original file is accessed on every page load (this is a web app), so it can't be missing for very long. A few ms is OK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's the best way to send a signal to all members of a process group? I want to kill a whole process tree. What is the best way to do this using any common scripting languages? I am looking for a simple solution.
A: if you know pass the pid of the parent process, here's a shell script that should work:
for child... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "456"
} |
Q: Why 'delete from table' takes a long time when 'truncate table' takes 0 time? (I've tried this in MySql)
I believe they're semantically equivalent. Why not identify this trivial case and speed it up?
A: Your question was about MySQL and I know little to nothing about MySQL as a product but I thought I'd add that in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: ssh tunnel for sendmail I'm going nuts here, trying to get my system configured.
I have a laptop at home and a workstation at work. I use mutt and sendmail. I have a home ISP that is on a lot of blacklists, so that any email I send from my laptop through my ISP is frequently blocked as spam by the receiver. I can S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Isolating a rampant process in IIS I have a webserver that is pegged and I've been able to isolate it to a particular website instance. I'd like to dig deeper and isolate the particular page/process that is causing the issue.. Any tips?
A: You can take a memory dump of the process and poke around with windbg.
Ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Optparse list I'm using the python optparse module in my program, and I'm having trouble finding an easy way to parse an option that contains a list of values.
For example:
--groups one,two,three.
I'd like to be able to access these values in a list format as options.groups[]. Is there an optparse option to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: PHP ignoring mysql_connect requests I'm new to PHP and have installed on Linux to boot (also a newbie).
Anyway, PHP is working...
<?
$myVar = "test";
echo($myVar);
?>
... works just fine.
But...
<?
$dbhost = "localhost";
$dbuser = "myuser";
$dbpass = "mypass";
$dbname = "mydb";
echo($dbhost . "-" . $dbuser . "-" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are some database caching options for .Net? I see on the web there are a lot of questions about caching ASP.Net, but not a lot of discussion on caching options for a Smart Client Application and their databases.
What are the data caching options that are available for Smart Client Application on the .Net framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How many candles are in the box? For the holiday currently described as [ck]?hann?ukk?ah? or thereabouts, 1 candle is lit on the first day, increasing up to a final 8 candles on day 8. However, there is an extra candle each day that is used to light the others.
So, when you buy that box in the store, how many candl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: use a global setting as an attribute argument I want to specify an argument in an attribute, like this:
[OutputCache(Duration = GlobalSettings.GlobalVar)]
Where GlobalVar is a variable I defined only once (don't care where).
Using a configuration setting doesn't work anyhow, and I can't get it working with some sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Call a function before outputting headers in PHP? Is there any way to have PHP automatically call a function, before a script outputs any HTTP headers?
I'm looking for something like register-shutdown-function, but to register a function that's called before the output is already sent, not after. I want my function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: best (or at least good) guide to Java annotations There must be a good book/PDF/HTML file that describes the essentials & good practices of annotations in Java. I sort of know what they are from other good Java books, but I'm looking for something that would teach me most of what I would need to know to make good us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Are design patterns something you invent as you go Are there set design patterns or does each individual sufficiently skilled software developer recognize and reduce their code to develop new patterns. Effectively creating their own "design" patterns.
Edit - Thanks for the responses. In reality I'm just refactorin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make Combobox in winforms readonly I do not want the user to be able to change the value displayed in the combobox. I have been using Enabled = false but it grays out the text, so it is not very readable. I want it to behave like a textbox with ReadOnly = true, where the text is displayed normally, but the us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: wxPython and sharing objects between windows I've been working with python for a while now and am just starting to learn wxPython. After creating a few little programs, I'm having difficulty understanding how to create objects that can be shared between dialogs.
Here's some code as an example (apologies for the len... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ZFS vdev naming? I have no idea what is the rationale behind naming the vdev (virtual devices) used while creating zfs pools in Solaris. Suppose, I have a disk c4d0, what is meant by c4d0p0 and c4d0s0? And, how would I know what to use with ZFS commands. I am terribly confused since I keep getting "invalid vdev spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FireBird install using InstallShield I can't seem to find a good script or anything to use for installing Firebird (the InterBase-decendent RDBMS) using InstallShield. There is a way to silently install it using the firebird install executable, but I don't know enough about InstallShieldscripts to be able to do it! ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't I declare a friend through a typedef? Does anyone know why typedefs of class names don't work like class names for the friend declaration?
class A
{
public:
};
class B : public A
{
public:
typedef A SUPERCLASS;
};
typedef A X;
class C
{
public:
friend class A; // OK
friend class X; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: In C#, how can I tell if a property is static? (.Net CF 2.0) FieldInfo has an IsStatic member, but PropertyInfo doesn't. I assume I'm just overlooking what I need.
Type type = someObject.GetType();
foreach (PropertyInfo pi in type.GetProperties())
{
// umm... Not sure how to tell if this property is static
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Is there a WPF ListBox equivalent to Windows Forms Listbox TopIndex? Basically what I want to do is allow a user to type in a string value and have the list box scroll to the item that matches the text they have typed (or the first LIKE match).
If I use the .ScrollIntoView() method, the problem is that it puts the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What exactly does Perl's "bless" do? I understand one uses the "bless" keyword in Perl inside a class's "new" method:
sub new {
my $self = bless { };
return $self;
}
But what exactly is "bless" doing to that hash reference ?
A: This function tells the entity referenced by REF that it is now an object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "154"
} |
Q: How would you list the available functions etc contained within a compiled library? How do I determine whether a function exists within a library, or list out the functions in a compiled library?
A: For Microsoft tools, "link /dump /symbols <filename>" will give you the gory details. There are probably other ways... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Installing and running a .NET Windows service at a web host I already asked this question at the JOS-.NET board but Joel is closing that board down so here it is again:
Do web hosting providers allow you to install Windows Services? I want to play around with some automation stuff, which I can currently do fine from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are some (concrete) use-cases for metaclasses? I have a friend who likes to use metaclasses, and regularly offers them as a solution.
I am of the mind that you almost never need to use metaclasses. Why? because I figure if you are doing something like that to a class, you should probably be doing it to an objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: Post code that plays a Christmas tune Is there a way to play a Christmas tune on a PC or Mac without having a pre-recorded sound file? (No .mp3 or .wav or whatever-sound file)
I remember on my TI 99/4A and Apple II sounds (resembling music) could be played. Not sure if modern computers have these abilities (aside ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to find minimum of nonlinear, multivariate function using Newton's method (code not linear algebra) I'm trying to do some parameter estimation and want to choose parameter estimates that minimize the square error in a predicted equation over about 30 variables. If the equation were linear, I would just compute ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Query three non-bisecting sets of data I am retrieving three different sets of data (or what should be "unique" rows). In total, I expect 3 different unique sets of rows because I have to complete different operations on each set of data. I am, however, retrieving more rows than there are in total in the table, me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resharper Shortcuts for Create Class and Move Class To New File What are the Resharper 4 shortcuts to
*
*Create a class from usage? e.g. I type "var p = new Person();", and I want to now create the person class.
*Move this class to its own file? When the Person class exists in the same file next to my Order c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Program Slicing in VS 2008 Anyone have any ideas or experience using program-slicing techniques for debugging OO projects in MS Visual Studio 2008? Tool suggestions would be helpful.
A: IMHO, real useful program slicing tool often come within static analysis tools, for example, CodeSurfer for C++ and Clang of LLVM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make Linux GUI "usable" when lots of disk activity is happening If I start copying a huge file tree from one position to another or if some other process starts doing lots of disk activity, the foreground app (GUI) slows way down. For example, take a 2gb file tree with 100k files in it. Open a console and do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Refactoring To Remove Static Methods Code Smell I have the current basic structure for each domain object that I need to create:
class Model_Company extends LP_Model
{
protected static $_gatewayName = 'Model_Table_Company';
protected static $_gateway;
protected static $_class;
public static funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Looking for recommendations for end-to-end Java CPU Profilers What are some good end to end CPU profilers that exist for Java?
Quick list of things I'm looking for:
*
*Offline profiling - No user interaction or GUI required during program execution. Dumping the profile data to a file and then requiring viewing af... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: DNN 4.9 ... Intermittent error while uploading PDF files I get intermittent "Object reference is not set to an instance of an object" errors when uploading PDF files in FCKEditor in DNN 4.9.
Here's the error:
AssemblyVersion: 04.09.00 AbsoluteURL:
/.../Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx
Use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i load a .swf via a url in html object and/or embed tag? I thought this would be simple, but its not working .. in both the object/embed code, i try to load a .swf via a url but nothing loads.
ex:
name="movie"value="http://localhost/mySite/Flash/Flash.swf"
If i run the pages locally from the flash folder and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What exactly is "Abrupt completion of a finally clause"? According to the Java Language Specification:
If there are any enclosing try statements whose try blocks contain the throw statement, then any finally clauses of those try statements are executed as control is transferred outward, until the thrown value is ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a Ruby/Python HTML reflow/layout library? I'm looking for a library in Ruby or Python that would take some HTML and CSS as the input and return data that contains the positions and sizes of the elements. If it helps, I don't need the info for all the elements but just the major divs of the page.
A: Scripto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regex misspellings I have a regex created from a list in a database to match names for types of buildings in a game. The problem is typos, sometimes those writing instructions for their team in the game will misspell a building name and obviously the regex will then not pick it up (i.e. spelling "University" and "Un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Complete Sample for ActionMailer to send email with GMAIL I would like to test my ActionMailer class, but don't have an smtp server. I would like to use gmail to send such emails. Could someone provide a sample with all the necessary configurations both on google and whatever config files in the app?
A: GMail has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Transparency for images in Visual Basic .net? I have a picture box on my form, which I add a picture to. This picture has a transparent background, but unfortunately, it seems lost in the picture box... I'm guessing that's because the picture box's background colour property is set to grey (the default). I can't see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Issue Targeted C# Events to Specific Event Handlers? Suppose I have a Customer object that can enter multiple Stores and shop simultaneously. When a customer enters a Store, the Store will begin to handle the Customer's triggered events. To purchase an item, the Customer currently triggers a PurchaseItem even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I manage to get a non-null name argument with org.xml.sax.ext.EntityResolver2 resolveEntity method? In Java SAX processing, I dot not manage to obtain entity reference names from the
org.xml.sax.ext.EntityResolver2 resolveEntity method. The name argument is always null even if the documentation states that '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: regenerateExpiredSessionId not working as expected It is my understanding, according to the MSDN, that regenerateExpiredSessionId="true" specifies that the session ID will be reissued when an expired session ID is specified by the client. However, this does not seem to be working as described.
Let's say you have an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's stored in that Tcl variable? Pursuant to the advice given in this question I have written a little gui to take the options for a command line C program and pass them on to said C program which is already set up to process them. It displays just like I wanted.
However, I would like to verify that the values st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Hide using ID I'm trying to change the border color of an image using its id with jquery
( photo['id'] is passed in from a previous function )
the ids of the photos are of the form 'photo239839'
$('#photo'+photo['id']+'').click(function(){
$('#photo'+photo['id']+'').css('border-color','#777');
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Windows Live Writer as a web site content editor What are your thoughts on using Windows Live Writer communicating with your website as the content editing system?
Windows Live Writer supports multiple category blogs (i.e. can be news, articles, and blogs), multiple category pages, tagging, XHTML WYSIWYG editi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ADO.NET Entity Framework and Linq to Entities I'm confused about Linq to Entities. Is it the new name of Entity Framework or are they different things?
A: LINQ to Entities is really simply the standard LINQ extension methods (Where, OrderBy, etc), when used to query Entity Framework. This isn't the only option; EF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to test a hash function? Is there a way to test the quality of a hash function? I want to have a good spread when used in the hash table, and it would be great if this is verifyable in a unit test.
EDIT: For clarification, my problem was that I have used long values in Java in such a way that the first 32 bit en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Saving Window Configurations in Emacs I'm wondering if there's a way to save window configurations across emacs sessions. I know desktop-save is fantastic for preserving buffers and whatnot and the emacs manual demonstrates storing a window configuration into a register but this doesn't persist across sessions.
Of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to switch master page depending on IFrame I want to use an IFrame in my ASP.Net MVC application, yet I want to retain the layout when the internal pages are navigated via direct access (Search Engine).
How would I switch the master page based on whether the View was in an IFrame, or a top level window?
A: The V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Code behind/beside Model (.cs-aspx.cs-aspx) VS MVC model, what is the difference really? What are the basic differences between classic .cs-aspx.cs-aspx (code behind/beside) model and new MVC model?
A: The basic difference between MVC and classic ASP is that in classic ASP all of the code and mark-up for the appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there an RDF ontology for blogs? I'm setting up a blog, and I'm fascinated by RDF and the idea of the sematic web. I'd like to use RDFa to embed sematic data into my blog. There are several well know semantic web ontologies like FOAF for decribing people, ical for events, geo for places.
Is there an ontology for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Converting an array of Pixels to an image in C# I have an array of int pixels in my C# program and I want to convert it into an image. The problem is I am converting Java source code for a program into equivalent C# code. In java the line reads which displays the array of int pixels into image:
Image output = create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I obtain a stack trace on Windows without using dbghelp.dll? How do I obtain a stack trace of addresses on Windows without using dbghelp.dll?
I don't need to know what the symbols or function names associated with the addresses, I just want the list of addresses -- something similar to backtrace of *nix syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Retroactively Correct Authors with Git SVN? I have a repository which I have already cloned from Subversion. I've been doing some work in this repository in its Git form and I would hate to lose that structure by cloning again.
However, when I originally cloned the repository, I failed to correctly specify the svn.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Facebook Connect, jQuery UI, and jQuery.noConflict() I'm trying to build a page on my personal website that both used jQuery and implements Facebook Connect.
Unfortunately, the Facebook client API uses the $ token, which means I have to call jQuery.noConflict()
Double-unfortunately, I've found out that for some craz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Modify bound variables of a closure in Python Is there any way to modify the bound value of one of the variables inside a closure? Look at the example to understand it better.
def foo():
var_a = 2
var_b = 3
def _closure(x):
return var_a + var_b + x
return _closure
localClosure = foo()
# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How to force a template code creation without creating object instance? I have a template class that is only valid for couple of template parameters:
doIt.h:
// only int and float are valid T
template <typename T>
class doer
{
public:
void doIt();
}
I want to hide the implementation inside the .cpp file (for fas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to decompose integer array to a byte array (pixel codings) Hi sorry for being annoying by rephrasing my question but I am just on the point of discovering my answer.
I have an array of int composed of RGB values, I need to decompose that int array into a byte array, but it should be in BGR order.
The array of in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Turn while loop into math equation? I have two simple while loops in my program that I feel ought to be math equations, but I'm struggling to convert them:
float a = someValue;
int b = someOtherValue;
int c = 0;
while (a <= -b / 2) {
c--;
a += b;
}
while (a >= b / 2) {
c++;
a -= b;
}
This code work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Need Help publishing a browser enabled InfoPath form to a Sharepoint 2007 Server I’m trying to publish an InfoPath form to a SharePoint document library, and have the form be viewable in a web browser.
The problem is that in the InfoPath publishing wizard tells me that although the form is browser compatible, that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/392376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.