text stringlengths 8 267k | meta dict |
|---|---|
Q: displaying HTML inside a Flex application I have some HTML that is generated via a Rich Text Editor outside of my Flex application but would like to display it inside Flex.
The HTML is simple HTML tags, things like styles, anchors, and possibly image tags, is there a control that would let me render this HTML in fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determining the performance consequences of PHP code How can you determine the performance consequences of your PHP code if you are not familiar with the internals? Are there ways to figure out how your code is being executed (besides simply load testing it)? I am looking for things like memory usage, the execution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does it mean when a PostgreSQL process is "idle in transaction"? What does it mean when a PostgreSQL process is "idle in transaction"?
On a server that I'm looking at, the output of "ps ax | grep postgres" I see 9 PostgreSQL processes that look like the following:
postgres: user db 127.0.0.1(55658) idle in tran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: What is the difference between Raising Exceptions vs Throwing Exceptions in Ruby? Ruby has two different exceptions mechanisms: Throw/Catch and Raise/Rescue.
Why do we have two?
When should you use one and not the other?
A: https://coderwall.com/p/lhkkug/don-t-confuse-ruby-s-throw-statement-with-raise offers an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "192"
} |
Q: What is the simplest way to write web apps in Haskell? I would like to use Haskell more for my projects, and I think if I can get started using it for web apps, it would really help that cause. I have tried happs once or twice but had trouble getting off the ground. Are there simpler/more conventional (more like lam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Database system that is not relational What are the other types of database systems out there. I've recently came across couchDB that handles data in a non relational way. It got me thinking about what other models are other people is using.
So, I want to know what other types of data model is out there. (I'm not lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Create background process in windows without visible console window How do I create a background process with Haskell on windows without a visible command window being created?
I wrote a Haskell program that runs backup processes periodically but every time I run it, a command window opens up to the top of all the w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a difference between foo(void) and foo() in C++ or C? Consider these two function definitions:
void foo() { }
void foo(void) { }
Is there any difference between these two? If not, why is the void argument there? Aesthetic reasons?
A: C++11 N3337 standard draft
There is no difference.
http://www.open-std.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "279"
} |
Q: What are some good usability guidelines an average developer should follow? I'm not a usability specialist, and I really don't care to be one.
I just want a small set of rules of thumb that I can follow while coding my user interfaces so that my product has decent usability.
At first I thought that this question wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Batch file to delete files older than N days I am looking for a way to delete all files older than 7 days in a batch file. I've searched around the web, and found some examples with hundreds of lines of code, and others that required installing extra command line utilities to accomplish the task.
Similar things can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "740"
} |
Q: Plugin for R# similar to CodeRush "statement highlight" See here http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx - for want of a better description - the statement block highlighting - eg in the pics on the link the "statement blocks" are grouped with a vertical line. I un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL: aggregate function and group by Consider the Oracle emp table. I'd like to get the employees with the top salary with department = 20 and job = clerk. Also assume that there is no "empno" column, and that the primary key involves a number of columns. You can do this with:
select * from scott.emp
where deptno = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ubuntu 32 bit maximum address space Jeff covered this a while back on his blog in terms of 32 bit Vista.
Does the same 32 bit 4 GB memory cap that applies in 32 bit Vista apply to 32 bit Ubuntu? Are there any 32 bit operating systems that have creatively solved this problem?
A: Ubuntu server has PAE enabled in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Payment Processors - What do I need to know if I want to accept credit cards on my website? This question talks about different payment processors and what they cost, but I'm looking for the answer to what do I need to do if I want to accept credit card payments?
Assume I need to store credit card numbers for custom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "260"
} |
Q: Modifying a spreadsheet using a VB macro I have two spreadsheets... when one gets modified in a certain way I want to have a macro run that modifies the second in an appropriate manner. I've already isolated the event I need to act on (the modification of any cell in a particular column), I just can't seem to find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spartan Programming I really enjoyed Jeff's post on Spartan Programming. I agree that code like that is a joy to read. Unfortunately, I'm not so sure it would necessarily be a joy to work with.
For years I have read about and adhered to the "one-expression-per-line" practice. I have fought the good fight and held my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Win32 List-View Control SubItem padding for custom-drawn SubItems? When using custom-draw (NM_CUSTOMDRAW) to draw the entire contents of a ListView SubItem (in Report/Details view), it would be nice to be able to apply the same left and right
padding in my custom paint method that is applied by the control itself fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Get MIME type of a local file in PHP5 without a PECL extension? mime_content_type() is deprecated.
How can I find the MIME type of a local file using PHP5 but without using this deprecated method or the PECL fileinfo extension?
Edit: That's what I was afraid of. It's unfortunate that they deprecated a built-in func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to detect if an IDataReader is empty? It seems like IDataReader.Read() is always true at least one time (If I'm wrong about this let me know.) So how do you tell if it has no records without just wrapping it in a try/catch?
A: Yes, if you want to use the interface then Read until false is the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ASP.NET 3.5 Without Microsoft SQL Server - What do I lose? I was just assigned to do a CMS using ASP.net 3.5 and MySQL. I am kind of new to ASP.NET development (quite sufficient with C#) and I am wondering what major ASP.NET and general .NET features I am losing when I don't have the option to use Microsoft SQL Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Usefulness of SQL Server "with encryption" statement Recently a friend and I were talking about securing stored procedure code in a SQL server database.
From distant memory, I'm pretty certain that "with encryption" is incredibly easily broken in all versions of SQL Server, however he said it has been greatly impr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you Modify TextBox Control Tab Stops When you use a Windows Forms TextBox, the default number of tab stops (spaces) is 8. How do you modify this?
A: First add the following namespace
using System.Runtime.InteropServices;
Then add the following after the class declaration:
private const int EM_SETTABSTOPS = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get a value from an XML web service in C#? In C#, if I need to open an HTTP connection, download XML and get one value from the result, how would I do that?
For consistency, imagine the webservice is at www.webservice.com and that if you pass it the POST argument fXML=1 it gives you back
<xml><somekey>some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Define realtime on the web for business It drives me nuts to hear business proponents using the term realtime for web-based systems. I'm becoming the crazy in the room, chanting, "There is no such thing as realtime on the web! We're in banking, not the rocket launch/ship navigation/airplane autopilot business!"
An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to insert a row into a dataset using SSIS? I'm trying to create an SSIS package that takes data from an XML data source and for each row inserts another row with some preset values. Any ideas? I'm thinking I could use a DataReader source to generate the preset values by doing the following:
SELECT 'foo' as 'at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Win32 ToolTip disappears never to re-appear with Commctl 6 I'm creating a ToolTip window and adding tools to it using the flags
TTF_IDISHWND | TTF_SUBCLASS. (c++, win32)
I have a manifest file such that my program uses the new WindowsXP themes
(comctrl32 version 6).
When I hover over a registered tool, the tip appea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I find out if a process is already running using c#? I have C# winforms application that needs to start an external exe from time to time, but I do not wish to start another process if one is already running, but rather switch to it.
So how in C# would I so this in the example below?
using System.Diagnostics;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Why does clicking a child window not always bring the application to the foreground? When an application is behind another applications and
I click on my application's taskbar icon, I expect the entire application to
come to the top of the z-order, even if an app-modal, WS_POPUP dialog box is
open.
However, some of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way of selecting the last item of a list with CSS? Say I have a list as follows:
*
*item1
*item2
*item3
Is there a CSS selector that will allow me to directly select the last item of a list? In this case item 3.
Cheers!
A: Until it's properly supported, you'll need to add a class to 'last' items, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Can the Weblogic default handler display the list of contexts? In Jetty, if there is no deployment at '/' then the DefaultHandler displays a list of known contexts. This is very useful during development.
Is it possible to configure BEA Weblogic to provide a similar convenience?
A: You could write a small webapp th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to sort strings in JavaScript I have a list of objects I wish to sort based on a field attr of type string. I tried using -
list.sort(function (a, b) {
return a.attr - b.attr
})
but found that - doesn't appear to work with strings in JavaScript. How can I sort a list of objects based on an attribute with ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "517"
} |
Q: Separating concerns with Linq To SQL and DTO's I recently started a new webforms project and decided to separate the business classes from any DBML references. My business layer classes instead access discrete Data layer methods and are returned collections of DTO's. So the data layer might project DTO's like the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What are the alternative's to using the iThenticate service for content comparison? What are the alternative's to using the iThenticate service for content comparison?
A: Wikipedia page on plagiarism detection has a list of commercial and free services.
A: I generally recommend Copyscape and/or eTBlast if you choo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I stop Visual Studio from automatically inserting asterisk during a block comment? I'm tearing my hair out with this one. If I start a block comment /* in VS.NET 2005+ then carriage return, Visual Studio insists that I have another asterisk *. I know there's an option to turn this off but I just can't find it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Are JavaScript strings immutable? Do I need a "string builder" in JavaScript? Does javascript use immutable or mutable strings? Do I need a "string builder"?
A: The string type value is immutable, but the String object, which is created by using the String() constructor, is mutable, because it is an object and you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "293"
} |
Q: How to get hashes out of arrays in Perl? I want to write a little "DBQuery" function in perl so I can have one-liners which send an SQL statement and receive back and an array of hashes, i.e. a recordset. However, I'm running into an issue with Perl syntax (and probably some odd pointer/reference issue) which is pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can a STP template be hidden from subsite creation page? When a template is added using the add-template stsadm command, it becomes available to everyone when creating a subsite. Is there any way to make it only available when a site collection is being created?
A: go to site actions -> Site Settings -> view all si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to deal with RoutingError in Rails 2.1.x? I'm playing with the routing.rb code in Rails 2.1, and trying to to get it to the point where I can do something useful with the RoutingError exception that is thrown when it can't find the appropriate path.
This is a somewhat tricky problem, because there are some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a download progress indicator in Python? I am writing a little application to download files over http (as, for example, described here).
I also want to include a little download progress indicator showing the percentage of the download progress.
Here is what I came up with:
sys.stdout.write(rem_fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: How would you organize a Subversion repository for in house software projects? I work for a company whose primary business is not software related. Most documentation for using source control is written with a development team writing for commercial or open source projects in mind. As someone who writes in house sof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Regular Expression to match valid dates I'm trying to write a regular expression that validates a date. The regex needs to match the following
*
*M/D/YYYY
*MM/DD/YYYY
*Single digit months can start with a leading zero (eg: 03/12/2008)
*Single digit days can start with a leading zero (eg: 3/02/2008)
*CANNOT i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: How can I retrieve the page title of a webpage using Python? How can I retrieve the page title of a webpage (title html tag) using Python?
A: Use soup.select_one to target title tag
import requests
from bs4 import BeautifulSoup as bs
r = requests.get('url')
soup = bs(r.content, 'lxml')
print(soup.select_one('title... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: How do I conditionally set a column to its default value with MySqlParameter? I have a table in a MySql database that stores user accounts. One of the columns, expires, stores an expiration date but defaults to NULL. I need to be able to remove an expiration date and set it back to the default value.
Currently, all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to upload a file to a WCF Service? I've build a WCF Service to accept a file and write it to disk. The front-end consists of a page with SWFUpload which is handling the upload on the client side. Apparently, SWFUpload posts the data with a Content Type of: multipart/form-data.
I would think this ok but on the Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Find long running query on Informix? How can you find out what are the long running queries are on Informix database server? I have a query that is using up the CPU and want to find out what the query is.
A: If the query is currently running watch the onstat -g act -r 1 output and look for items with an rstcb that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What table/view do you query against to select all the table names in a schema in Oracle? What object do you query against to select all the table names in a schema in Oracle?
A: To see all the tables you have access to
select table_name from all_tables where owner='<SCHEMA>';
To select all tables for the current ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: High availability and scalable platform for Java/C++ on Solaris I have an application that's a mix of Java and C++ on Solaris. The Java aspects of the code run the web UI and establish state on the devices that we're talking to, and the C++ code does the real-time crunching of data coming back from the devices. Shar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Change Attribute's parameter at runtime I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I have the following class
public class UserInfo
{
[Category("change me!")]
public int Age
{
get;
set;
}
[Category("change m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Performance gain in compiling java to native code? Is there any performance to be gained these days from compiling java to native code, or do modern hotspot compilers end up doing this over time anyway?
A: There was a similar discussion here recently, for the question What are advantages of bytecode over native cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Strategy for single sign on with legacy applications I'm wondering what strategies people use for reduced sign on with legacy applications and how effective they have found them?
We have an ASP.Net based intranet and own a lot of the legacy applications, but not all. We also have BizTalk and are considering the u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access to restricted URI denied code: 1012 How do you get around this Ajax cross site scripting problem on FireFox 3?
A: To update the answer (I guess, mostly for my benefit when I come looking for this answer later on), if are loading XML or something else, you can always ask the user if he will allow us to read f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to keep Stored Procedures and other scripts in SVN/Other repository? Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (or other) repository.
Obviously one solution is to have the script files for all the different components in a direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Pass Silverlight type to Microsoft AJAX and pass parameter validation I'm working on a Silverlight application where I want to take advantage of the Microsoft ASP.NET AJAX Client library. I'm calling the library using the HTML Bridge that is part of Silverlight 2. Silverlight got great support for passing types betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking network status and controlling PPP in a program So I'm running PPP under linux with a cellular modem. The program I'm writing needs to know if the link is active before sending any data.
What are my options to check
*
*if the link is available
*if it routes to a server I control (it doesn't go to the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the quickest way to a very simple blog? I am about to start a new project and would like to document its development in a very simple blog.
My requirements are:
*
*self-hosted on my Gentoo-based LAMP stack (that seems to rule out blogger)
*Integration in a django based website (as in www.myproject.com/ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Find all drive letters in Java For a project I'm working on. I need to look for an executable on the filesystem. For UNIX derivatives, I assume the user has the file in the mighty $PATH variable, but there is no such thing on Windows.
I can safely assume the file is at most 2 levels deep into the filesystem, but I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do I implement license management for on-site installation of webapps (preferably cross-platform)? I have a web application running on a Gentoo-based LAMP stack. My customers buy the software as a service and I host everything. However, there is some demand for on-site deployment inside the clients' own networks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can you handle an IN sub-query with LINQ to SQL? I'm a bit stuck on this. Basically I want to do something like the following SQL query in LINQ to SQL:
SELECT f.*
FROM Foo f
WHERE f.FooId IN (
SELECT fb.FooId
FROM FooBar fb
WHERE fb.BarId = 1000
)
Any help would be gratefully received.
A: General ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Implementing user defined display order UI i have a list of products that are being displayed in particular order. store admin can reassign the display order, by moving the "hot" items to the top of the list. what's the best way of implementing the admin functionality UI [asp.net C#]? Products table has a [displayOr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you start Knowledge Transfer? Do you use a formal event to get people talking in your IT department? Like a monthly meetup in a social place, a internal wiki/chat space or just a regular "information market" with some presentations about technology or projects made by your staff for your staff? Do you invite ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to show a spinner while loading an image via JavaScript I'm currently working on a web application which has a page which displays a single chart (a .png image). On another part of this page there are a set of links which, when clicked, the entire page reloads and looks exactly the same as before except for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: How does the Licenses.licx based .Net component licensing model work? I've encountered multiple third party .Net component-vendors that use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a Licenses.licx is created - with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: When can DataInputStream.skipBytes(n) not skip n bytes? The Sun Documentation for DataInput.skipBytes states that it "makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Where did all the java applets go? When java was young, people were excited about writing applets. They were cool and popular, for a little while. Now, I never see them anymore. Instead we have flash, javascript, and a plethora of other web app-building technologies.
Why don't sites use java applets anymore?
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Can you load a .Net form as a control? I want to load a desktop application, via reflection, as a Control inside another application.
The application I'm reflecting is a legacy one - I can't make changes to it.
I can dynamically access the Form, but can't load it as a Control.
In .Net Form expands on Control, and I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Passing on named variable arguments in python Say I have the following methods:
def methodA(arg, **kwargs):
pass
def methodB(arg, *args, **kwargs):
pass
In methodA I wish to call methodB, passing on the kwargs. However, it seems that if I define methodA as follows, the second argument will be passed on as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to get the base 10 logarithm of a Fixnum in Ruby? I want to get the base 10 logarithm of a Fixnum using Ruby, but found that n.log or n.log10 are not defined. Math::log is defined but uses a different base than 10.
What is the easiest way to get the base 10 logarithm of a Fixnum?
A: Reading the documentation fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Display data from XMLDataSource in TextBox Can anyone give me some pointers on how to display the results of an XPath query in a textbox using code (C#)? My datascource seems to (re)bind correctly once the XPath query has been applied, but I cannot find how to get at the resulting data.
Any help would be greatly ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to host licensed .Net controls in unmanaged C++ app? I need to host and run managed controls inside of a purely unmanaged C++ app. How to do this?
To run unlicensed controls is typically simple:
if (SUCCEEDED(ClrCreateManagedInstance(type, iid, &obj)))
{
// do something with obj
}
When using a licensed cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get a file's Media Type (MIME type)? How do you get a Media Type (MIME type) from a file using Java? So far I've tried JMimeMagic & Mime-Util. The first gave me memory exceptions, the second doesn't close its streams properly.
How would you probe the file to determine its actual type (not merely based on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "375"
} |
Q: Best practice for Java IPC what is the best method for inter process communication in a multithreaded java app.
It should be performant (so no JMS please) easy to implement and reliable,so that
objects & data can be bound to one thread only?
Any ideas welcome!
A: Assuming the scenario 1 JVM, multiple threads then i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Killing Excel.EXE on server
Possible Duplicate:
How to properly clean up Excel interop objects in C#
Suppose a ASP.NET web application generates automated Excel Reports on the server. How do we kill a server-side Excel.EXE once the processing is over. I am raising this purposely, because I believe that the Garbag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you show events in UML Class Diagrams? This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model.
I usually end up adding a method named EvChanged to indicate a .Net event Changed.
What is the right way to show that a type pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I reset a sequence in Oracle? In PostgreSQL, I can do something like this:
ALTER SEQUENCE serial RESTART WITH 0;
Is there an Oracle equivalent?
A: For regular sequences:
alter sequence serial restart start with 1;
For system-generated sequences used for identity columns:
alter table table_name modify id ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "197"
} |
Q: Polygon fill modes in GDI and GDI+ The system default polygon fill mode in current device context is ALTERNATE (as I've learned from the Petzold book on Windows programming) and this one is used in Polygon Win32 function unless you change the mode with SetPolyFillMode.
My question is:
Does the GDI+ Graphics::FillPol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What usable alternatives to XML syntax do you know? For me usable means that:
*
*it's being used in real-wold
*it has tools support. (at least some simple editor)
*it has human readable syntax (no angle brackets please)
Also I want it to be as close to XML as possible, i.e. there must be support for attribut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Are there any good automated frameworks for applying coding standards in Perl? One I am aware of is Perl::Critic
And my googling has resulted in no results on multiple attempts so far. :-(
Does anyone have any recommendations here?
Any resources to configure Perl::Critic as per our coding standards and run it on cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Where to find gdb for an arm target running on linux 2.6.21.5-cfs-v19 I have a ARM11 based hardware board which runs a Linux kernel ver. 2.6.21.5-cfs-v19. I have my application running on this ARM-LINUX board. To do source level debugging, of my application I used to use gdb from command prompt of the linux board, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Improving Python readability? I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things that don't req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make only certain parts of a site beta? Most sites are either fully released, or in beta.
But what happens if you have a large site, and some of the parts are still in Beta, and other parts aren't.
How do you effectively communicate this to the customer?
A: Maybe take a look at how Facebook, Bloglines, Gmai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get an absolute file path in Python Given a path such as "mydir/myfile.txt", how do I find the file's absolute path in Python? E.g. on Windows, I might end up with:
"C:/example/cwd/mydir/myfile.txt"
A: You can use this to get absolute path of a specific file.
from pathlib import Path
fpath = Path('myfile.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1005"
} |
Q: Changing the value of an element in a list of structs I have a list of structs and I want to change one element. For example :
MyList.Add(new MyStruct("john");
MyList.Add(new MyStruct("peter");
Now I want to change one element:
MyList[1].Name = "bob"
However, whenever I try and do this I get the following error:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: What is a managable way to store e-mails for extended periods of time? If you have a site which sends out emails to the customer, and you want to save a copy of the mail, what is an effective strategy?
If you save it to a table in your database (e.g. create a table called Mail), it gets very large very quickly.
Some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you treat legacy code (and data)? I am currently in the process of restructuring my local Subversion repository by adding some new projects and merging legacy code and data from a couple of older repositories into it.
When I have done this in the past I have usually put the legacy code in a dedicated "legacy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine how much memory a class uses? I am trying to find a way to determine at run-time how much memory a given class is using in .NET. Using Marshal.SizeOf() is out, as it only works on value types. Is there a way to check exactly how much memory a class uses?
A: I've only recently started looking into this ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Finding unused files in a project We are migrating our works repository so I want to do a cull of all the unreferenced files that exist in the source tree before moving it into the nice fresh (empty) repository.
So far I have gone through by hand and found all the unreferenced files that I know about but I want to f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows):
SELECT count(id), avg(a), avg(b), avg(c), avg(d) FR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I automate finding unused #include directives? Typically when writing new code you discover that you are missing a #include because the file doesn't compile. Simple enough, you add the required #include. But later you refactor the code somehow and now a couple of #include directives are no longer needed. How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: JavaScript culture sensitive currency formatting How can i format currency related data in a manner that is culture aware in JavaScript?
A: So I know this is an old question, but incase anyone else shows up looking for similar answers, in modern JavaScript you can use
new Intl.NumberFormat('de-DE', { style: 'curren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Determine file type in Ruby How does one reliably determine a file's type? File extension analysis is not acceptable. There must be a rubyesque tool similar to the UNIX file(1) command?
This is regarding MIME or content type, not file system classifications, such as directory, file, or socket.
A: If you're using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Good Java graph algorithm library? Has anyone had good experiences with any Java libraries for Graph algorithms. I've tried JGraph and found it ok, and there are a lot of different ones in google. Are there any that people are actually using successfully in production code or would recommend?
To clarify, I'm not loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "237"
} |
Q: Java Generics: Comparing the class of Object o to Let's say I have the following class:
public class Test<E> {
public boolean sameClassAs(Object o) {
// TODO help!
}
}
How would I check that o is the same class as E?
Test<String> test = new Test<String>();
test.sameClassAs("a string"); // returns t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Twitter for work updates If you are sending work/progress reports to the project lead on a daily or weekly basis, I wondered if you would consider using Twitter or similar services for these updates.
Say if you're working remotely or with a distributed team and the project lead has a hard time getting an overview ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Accessing non-generic members of a generic object Is there a way to collect (e.g. in a List) multiple 'generic' objects that don't share a common super class? If so, how can I access their common properties?
For example:
class MyObject<T>
{
public T Value { get; set; }
public string Name { get; set; }
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I fix the multiple-step OLE DB operation errors in SSIS? I'm attempting to make a DTS package to transfer data between two databases on the same server and I'm getting the following errors. Iv read that the Multiple-step OLE DB operation generated error can occur when you are transferring between different da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is there a need to destroy char * = "string" or char * = new char[6]? I assume that char* = "string" is the same to char* = new char[6]. I believe these strings are created on the heap instead of the stack. So do I need to destroy them or free their memory when I'm done using them or do they get destroyed by themsel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Apache XML-RPC Exception Handling What is the easiest way to extract the original exception from an exception returned via Apache's implementation of XML-RPC?
A: It turns out that getting the cause exception from the Apache exception is the right one.
} catch (XmlRpcException rpce) {
Throwable cause = rpce.ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to set up Git bare HTTP-available repository on IIS My server already runs IIS on TCP ports 80 and 443. I want to make a centralized "push/pull" Git repository available to all my team members over the Internet.
So I should use HTTP or HTTPS.
But I cannot use Apache because of IIS already hooking up listening so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Designers and developers working together The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project.
Does anyone out there have any tips and experience (from both points of view) on mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: File Descriptor Assignment in C When sockets are created or files are opened/created in C, is the file descriptor that's assigned to the socket/file guaranteed to be the lowest-valued descriptor available? What does the C spec say about file descriptor assignment in this regard, if anything?
A: It's not guaranteed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.