text stringlengths 8 267k | meta dict |
|---|---|
Q: Two DB tables vs one DB Table I have a table of music albums. I have a second table of album art. Unfortunately, not every album has some album art data. As such, i will need to do an OUTER JOIN between music and album art.
Assumption: both tables just contain ints and varchars .. no blobs, etc.
Question
*
*Is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is Aspect Oriented Programming? Duplicate:
What is aspect-oriented programming?
Every time I here a podcast or read a blog entry about it, even here, they make it sound like string theory or something. Is the best way to describe it OOP with Dependency Injection on steroids?
Every time someone tries to expla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Novice SQL query question for a movie ratings database I have a database with one table, like so:
UserID (int), MovieID (int), Rating (real)
The userIDs and movieIDs are large numbers, but my database only has a sample of the many possible values (4000 unique users, and 3000 unique movies)
I am going to do a matrix... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A strange problem with C++ exception handler I used standard exception handling methods in C++. Which is try{} and catch{} block. In my code, func1() would throw an exception, And func2 is like this:
bool func2()
{
try{
func1();
}
catch(myException& e)
{
cerr << "error!" << endl;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GetWindowLong vs GetWindowLongPtr in C# I was using GetWindowLong like this:
[DllImport("user32.dll")]
private static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex);
But according to the MSDN docs I am supposed to be using GetWindowLongPtr to be 64bit compatible.
http://msdn.microsoft.com/en-us/library/ms6335... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sorting structures in order of least change This came out being incomprehensible. I will rephrase
Is there an algorithm or approach that will allow sorting an array in such a way that it minimizes the differences between successive elements?
struct element
{
uint32 positions[8];
}
These records are order-insensi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: boolean operations with integers This is probably pretty basic... but I don't seem to get it:
How does
(2 & 1) = 0
(3 & 1) = 1
(4 & 1) = 0
etc..
This pattern above seems to help find even numbers
or
(0 | 1) = 1
(1 | 1) = 1
(2 | 1) = 3
(3 | 1) = 4
(4 | 1) = 5
(5 | 1) = 5
I know how boolean algebra works between b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Extending enum in Java public enum myEnum {
VAL1(10), VAL2(20), VAL3("hai") {
public Object getValue() {
return this.strVal;
}
public String showMsg() {
return "This is your msg!";
}
};
String strVal;
Integer intVal;
public Object getValue()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby on Rails and Active Record standalone scripts disagree on database values for :timestamps I posted a question earlier today when I'd not zeroed in quite so far on the problem. I'll be able to be more concise here.
I'm running RoR 2.1.2, on Windows, with MySQL. The SQL server's native time zone is UTC. My loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Paging using Lucene.net I'm working on a .Net application which uses Asp.net 3.5 and Lucene.Net I am showing search results given by Lucene.Net in an asp.net datagrid. I need to implement Paging (10 records on each page) for this aspx page.
How do I get this done using Lucene.Net?
A: Here is a way to build a simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Non-web Javascript frameworks Are there any good JavaScript frameworks out there which primary audience is not web programming? Especially frameworks/libraries which improves the object orientation?
The framework should be usable within an desktop application embedding a JavaScript engine (such as Spidermonkey or Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to use the Bridge pattern and how is it different from the Adapter pattern? Has anyone ever used the Bridge pattern in a real world application? If so, how did you use it? Is it me, or is it just the Adapter pattern with a little dependency injection thrown into the mix? Does it really deserve its own pattern?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "169"
} |
Q: Escaping Bracket [ in a CONTAINS() clause? How can I escape a bracket in a full-text SQL Server contains() query? I've tried all the following, none of which work:
CONTAINS(crev.RawText, 'arg[0]')
CONTAINS(crev.RawText, 'arg[[0]]')
CONTAINS(crev.RawText, 'arg\[0\]')
Using double quotes does work, but it forces the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Tips / techniques for high-performance C# server sockets I have a .NET 2.0 server that seems to be running into scaling problems, probably due to poor design of the socket-handling code, and I am looking for guidance on how I might redesign it to improve performance.
Usage scenario: 50 - 150 clients, high rate (up t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: GWT and IE7 -- getting the browser to remember passwords I using GWT and have created a login form. I've tried all sorts of ways to get IE7 to prompt to remember the login info but with no success. I thought that maybe this would have worked (but it didn't):
TextBox submit = new TextBox();
submit.getElemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does this produce a stretched Fractal? Here is pseudo-code of how I setup an array representing the MandelBrot set, yet it becomes horribly stretched when leaving an aspect ratio of 1:1.
xStep = (maxX - minX) / width;
yStep = (maxY - minY) / height;
for(i = 0; i < width; i++)
for(j = 0; j < height; j++)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Script & CSS Registration Helper in ASP.NET MVC? I have tried to use ASP.NET MVC for a while, then I face a problem that I don't want to include all of my js and css in master page. But how can I register it in head of master page from my specific view?
A: It doesn't look like there's a simple option 'built-in' to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: FTP Login using Windows Credentials We have a C# windows application that needs to be able to connect to a server on a network, download and save a file to a specified location.
We can not use a web service as we can not assume that our clients will have IIS on their server.
The way that I am considering doing it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF listview databinding - How do I force update to underlying object without tabbing out? I have a WPF ListView that is bound to a BindingList<T>. The binding works like a charm, but I have to tab out of the cell to get the bound property to update....this is an issue because most users don't tab out of the last c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I run client script after a postback? I'm looking for something like OnClientClick for a button, but I want it to happen after the postback (instead of before). I'm currently using the following, which works, but it adds the script block over and over again, which is not what I want. I simply want to execute ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - call function in object with set_error_handler() I am trying to use this in my page class. I only just started using objects in PHP so I'm still a little clueless (but learning as much as I can). This is in my page() function (so called when there is a new instance of page)
set_error_handler('$this->appendErro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Recursive Make - friend or foe? I'm using (GNU) Make in my project. I'm currently putting one makefile per directory and specify the subdirectories using SUBDIRS.
It's been suggested to me that this is not the ideal way of using make, that using a one toplevel make file (or several, split up using include). I've tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Accessing inner anonymous class members Is there any way other than using reflection to access the members of a anonymous inner class?
A: You can use local classes instead anonymous class. Look:
public class Test {
public static void main(String... args) {
class MyInner {
private int value =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do detect that transaction has already been started? I am using Zend_Db to insert some data inside a transaction. My function starts a transaction and then calls another method that also attempts to start a transaction and of course fails(I am using MySQL5). So, the question is - how do I detect that transaction... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: What's so great about Func<> delegate? Sorry if this is basic but I was trying to pick up on .Net 3.5.
Question: Is there anything great about Func<> and it's 5 overloads? From the looks of it, I can still create a similar delgate on my own say, MyFunc<> with the exact 5 overloads and even more.
eg: public delegate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: SQLite C/C++ API unsigned char * Why does the SQLite C/C++ API return unsigned char *s for text values as opposed to the more de-facto char * type?
This is somewhat related to the unsigned char question, except that the SQLite API's decision seems opposite of the conventional char * advice given for string-like valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to translate the SQL code "having" condition into LinqToSQL or LinqToEntites? Could you tell me how to translate the following SQL code to Linq To SQL or Linq To Entites?
The correct SQL code is:
select CollectId,url,userid,pubtime
from Collect group by
url,collectid,userid,pubtime having
pubtime >= (se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: escaping html inside comment tags escaping html is fine - it will remove <'s and >'s etc.
ive run into a problem where i am outputting a filename inside a comment tag eg. <!-- ${filename} -->
of course things can be bad if you dont escape, so it becomes:
<!-- <c:out value="${filename}"/> -->
the problem is that if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Autorun an MSI file on CD Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when the user inserts the CD.
I'm sure this can be done but I've been Googling around for ages and have not found any working solution.
UPDATE: I have an AUTORUN.INF similar to this but it won't launch t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Generate random enum in C# 2.0 Could someone please point me toward a cleaner method to generate a random enum member. This works but seems ugly.
Thanks!
public T RandomEnum<T>()
{
string[] items = Enum.GetNames(typeof( T ));
Random r = new Random();
string e = items[r.Next(0, items.Length - 1)];
return (T)E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: New asp.net charting controls - will they work with MVC (eventually)? Scott Gu just posted about a new set of charting controls being distributed by the .NET team. They look incredible: http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx
The mill... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Help on string handling in C In a program to find whether the given number is an Armstrong number, I stored the input no (3 digit) as string as follows.
char input[10];
scanf("%s",&input);
Now I have to calculate cube of each digit by using pow method of math.h as follows.
int a;
a = pow(input[0],3);
By coding lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I effectively find duplicate blob rows in MySQL? I have a table of the form
CREATE TABLE data
{
pk INT PRIMARY KEY AUTO_INCREMENT,
dt BLOB
};
It has about 160,000 rows and about 2GB of data in the blob column (avg. 14kb per blob). Another table has foreign keys into this table.
Something like 3000 of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: comparing products of builds in release I need to compare build outputs of VS2005 in order to be sure I can reproduce the exact same product.
when I do two builds one after the other in release and compare the produced files I get different files, doing text comparison it seems that more than just the datetime is di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to programmatically add a softkey shortcut to an application in Symbian Is it possible for a Symbian S60 application to automatically add itself to one of the softkeys. The best would be if it could be done at installation time but if there is some API that can be used to add a shortcut the first time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL: How to append IDs to the rows with duplicate values I have a table with some duplicate rows. I want to modify only the duplicate rows as follows.
Before:
id col1
------------
1 vvvv
2 vvvv
3 vvvv
After:
id col1
------------
1 vvvv
2 vvvv-2
3 vvvv-3
Col1 is appended with a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Know of SSO turnkey Appliance with ldap, radius, openid, etc? I'm helping a typical small company that started with a couple of outsourced systems (google apps, svn/trac). added an internal jabber server (ejabber for mostly iChat clients). subscribes to a couple of webservices (e.g. highrisehq). and has a vpn servic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTML last tag conditional match I have two strings
<EM>is <i>love</i></EM>,<PARTITION />
and
<EM>is <i>love</i>,<PARTITION />
I want a regex to match the second string completely but should not match the first one. Please help.
Note: Everything can change except the EM and PARTITION tags.
A: If you want to match... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integer division rounding with negatives in C++ Suppose a and b are both of type int, and b is nonzero. Consider the result of performing a/b in the following cases:
*
*a and b are both nonnegative.
*a and b are both negative.
*Exactly one of them is negative.
In Case 1 the result is rounded down to the near... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: popen equivalent in XPCOM? I'm trying to use XULRunner to add a GUI to a command line based program.
One solution would be to use something like popen from the XUL application to interact with the command line program.
My questions:
*
*Does XPCOM have popen?
*Does XPCOM have enough primitives to create popen?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to load a page with gravatar and jquery? I am using gravatar to load avatars for each user that posts a story on a page. I also am using jquery to round the corners of some span elements on the page. Unfortunately, it looks like grabbing the avatars from gravatar occurs before the jquery effects are applied (Wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simplest solution to replace a tiny file inside an MSI? Many of our customers have access to InstallShield, WISE or AdminStudio. These aren't a problem. I'm hoping there is some way I can provide our smaller customers without access to commercial repackaging tools a freely available set of tools and steps to do the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I skip processing the attachments of an email which is an attachment of a different email using jython
I have a situation where emails come in with different attachments. Certain file types I process others I ignore and dont write to file.
I am caught in a rather nasty situation, because sometimes people send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrate jQuery Intellisense in VS 2005 How to integrate JQuery Intellisense support in VS 2005
A: Doesn't seem like it's possible.
See answer 10 here.
A: I just submitted a request to DevExpress - Refactor Pro and CodeRush - to create an add on for VS 2005. If you and your associates go the DevExpress and make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to print the Nth column of a text file with AWK using argv Suppose I have a text file with data separated by whitespace into columns. I want to write a shell script which takes as input a filename and a number N and prints out only that column. With awk I can do the following:
awk < /tmp/in '{print $2}' > /tmp/o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: What should I teach a beginning Perl programmer? I am going to spend 30 minutes teaching Perl to an experienced programmer. The best way to learn Perl is by writing code. In addition to CPAN, what would you show a programmer so they would understand the expressiveness of Perl, the amount of functionality provided ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why doesn't url rewrite work? In asp.net 3.5, I'm rewriting the url
http://www.abc.com/archive/1108/harpersdecember
to the following
http://www.abc.com/article.aspx?docId=78
I'm using this code to do it:
Context.RewritePath("/article.aspx?docId=78");
It works fine locally but when I upload to the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to upload a file with django (python) and s3? I'm looking for a way to upload a file to s3. I am using django. I am currently using amazon's python library for uploading along with the following code:
View:
def submitpicture(request):
fuser = request.session["login"]
copied_data = request.POST.copy()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Difference between hard wrap and soft wrap? I am in the process of writing a text editor. After looking at other text editors I have noticed that a number of them refer to a "soft" versus "hard" wrap. What is the difference? I can't seem to find the answer by searching.
A: It's usual for text editors to auto-wra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: Connect to database using jsf How do I connect to the database(MYSQL) in connection bean using JSF to retrieve its contents. Also please let me know how do I configure the web.xml file?
A: To get connected to mysql:
public void open() {
try {
String databaseName = "custom";
String u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with ssOption control in VB6: Text background color changes from Win 98 to Win XP I'm using the ssOption control (Sheridan 3d Option control) in VB6.
In Windows 98 the text area background color is the same color as the background color around the Option Circle, and that color is the default form color. So t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OMAP SPI controller Does anyone ever develop some application to control the spi device on OMAP3? I can load the spi driver "mcspi", but I don't know how to use it.
A: Ok So first I need to apologize for my previous shoot from the hip answer.
I too have now started looking into trying to get the McSPI's working and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: create databases in ms-access, then delete a particular database. using any vb query or vb code i want to create a number of databases in ms-access using a code or any option of ms-access, but i want delete databases also.
Please help me
A: You could have an empty database named "db1.mdb", and then add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with getting connectionstring from objectcontext.Connection.ConnectionString I really appreciate it if you could ask my question.
After I call myObjectContext.myEntitySet.ToList() method in my entity framework context, the password part from connectionstring in myObjectContext.Connection.ConnectionString is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I solve the .NET CF exception "Can't find PInvoke DLL"? This is to all the C# gurus. I have been banging my head on this for some time already, tried all kinds of advice on the net with no avail. The action is happening in Windows Mobile 5.0.
I have a DLL named MyDll.dll. In the MyDll.h I have:
extern "C" __d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Troubleshooting: Can't find a referenced unmanaged dll when invoking custom code via a Word code-behind Context:
*
*I have a WPF App that uses certain unmanaged DLLs in the D:\WordAutomation\MyApp_Source\Executables\MyApp folder. I can double click the exe and everything runs.
*Next I have a Word 2007 code-be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vim as Visual Studio IDE I have spent lot of time doing research on VIM. I am Windows guy since last 6 yrs and was using VS.
Now started working on Linux. I want to make VIM as close as possible to VS.
I want features like
Project Navigation
Files in Different Tabs
Search in Project
AutoCompletion
I have found plug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to get first N elements of a list in C#? I would like to use Linq to query a bus schedule in my project, so that at any time I can get the next 5 bus arrival times. How can I limit my query to the first 5 results?
More generally, how can I take a slice of a list in C#? (In Python I would use mylist[:5] to get th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "504"
} |
Q: Database trigger that communicates with an external program I've got a SQLServer Database and an application (.NET) that configures data on that database. On the other hand, I've got an application (VC++) that reads that data from the database and must be 'informed' a soon as possible of any change in the data saved... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hexadecimal notation and signed integers This is a follow up question. So, Java store's integers in two's-complements and you can do the following:
int ALPHA_MASK = 0xff000000;
In C# this requires the use of an unsigned integer, uint, because it interprets this to be 4278190080 instead of -16777216.
My question, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/319993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Using a stackdump from Cygwin executable So I wrote buggy code that occasionally crash ... and creates a stackdump file.
Using addr2line I can figure out how the program got to the crash point by decoding the addresses from the stackdump one by one. Is there an alternative tool that can ease the debug using stack du... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Column names for a table formed by a UNION Given a couple of simple tables like so:
create table R(foo text);
create table S(bar text);
If I were to union them together in a query, what do I call the column?
select T.????
from (
select foo
from R
union
select bar
from S) as T;
Now, in mysql, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is this an OK Database design concept? EDIT1: Tried to clear the question up by renaming the tables AND their relationships.
EDIT2: Please don't look at the what TYPE of data i'm holding in the three DB tables. They were made up on the fly. They are NOT my real world scenarios (and no, I can't talk about my real wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you code a class function outside of a class in PHP? In C++, I code this way:
//foo.h
class cBar
{
void foobar();
}
//foo.cpp
void cBar::foobar()
{
//Code
}
I tried to do this on PHP but the parser would complain. PHP's documentation also doesn't help. Can this be done in PHP?
A: No. You need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Two-way binding in WPF I cannot get a two-way bind in WPF to work.
I have a string property in my app's main window that is bound to a TextBox (I set the mode to "TwoWay").
The only time that the value of the TextBox will update is when the window initializes.
When I type into the TextBox, the underlying string p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Gui - Best way to navigate between windows? I try to build a gui (Swing) for a simple java application. The application should have a start window like a menu. From there I would like to navigate to several other windows.
My question is what is the best-practice to achieve such a navigation? Should I build several ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get constraint details from the name in Informix? When programming a large transaction (lots of inserts, deletes, updates) and thereby violating a constraint in Informix (v10, but should apply to other versions too) I get a not very helpful message saying, for example, I violated constraint r190_710. How ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ordering a dictionary to maximize common letters between adjacent words This is intended to be a more concrete, easily expressable form of my earlier question.
Take a list of words from a dictionary with common letter length.
How to reorder this list tto keep as many letters as possible common between adjacent words... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use Struts 2 with Velocity and Tiles Has anyone been able to get velocity and tiles working with struts 2?
I am having some problem finding examples or tutorials online and from what I have gathered from mailing lists it seems it might not even be possible at all (but the mails were quite old).
A: https://st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you iterate over a tree? What is your preferred method of traversing a tree data structure, since recursive method calls can be pretty inefficient in some circumstances. I am simply using a generator like the one above. Do you have any hints to make it faster?
def children(self):
stack = [self.entities]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I run robocopy without copying extended attribute information? Greetings,
I've got a bat script which copies certain information from a computer onto a USB hard drive using Robocopy. The hard drive is FAT formatted and therefore doesn't support directories with extended attributes, leading me to robocopy err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Content type custom document information panel I have a custom content type with custom fields. I'm trying to create a custom document information panel using infopath. Whenever I try to do that infopath gives me this error
propertySchema0.xsd#/schema/element[1][@name = 'properties']/complexType[1]/sequence[1]/eleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding the "Clear" Button to an iPhone UITextField How do you add that little "X" button on the right side of a UITextField that clears the text? I can't find an attribute for adding this sub-control in Interface Builder in the iPhone OS 2.2 SDK.
Note: In Xcode 4.x and later (iPhone 3.0 SDK and later), you can do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "196"
} |
Q: anyone know of a shared To-do list plugin for eclipse Does anyone know of shared TODO list plugin for Eclipse that allows users in a a development team to all view and edit the same list of tasks?
A: Mylyn can be used to integrate issue tracking systems into the IDE.
It does this by making tasks a first class part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I bind a WPF DataGrid to a variable number of columns? My WPF application generates sets of data which may have a different number of columns each time. Included in the output is a description of each column that will be used to apply formatting. A simplified version of the output might be something like:
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Need an example for using Junit in Intellij Idea Maybe it's just me, but I cannot understand the documentation regarding Junit test integration in Intellij Idea. What I am looking for is a simple tutorial example, such as:
Here is a method calculating 2+2, and here is a test class testing it to be 4. This is the che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Django: How can I protect against concurrent modification of database entries If there a way to protect against concurrent modifications of the same data base entry by two or more users?
It would be acceptable to show an error message to the user performing the second commit/save operation, but data should not be si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Is there any web service to get the weather data for the cities all round the world [over a period of time like one year]? Any web service to get the monthly min/max temperatures for cities over a period of time?
A: See also https://stackoverflow.com/questions/202092/where-can-i-find-free-and-open-data - it's not s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Does the Facebook REST API allow you to get a friend's phone number? Using the Facebook API, is there a way of getting a friend's phone/cell number? I'm sure I saw an app a while ago that could sync Facebook with your Mac Address Book, but I haven't found anything in the API documentation that allows you to get a fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multilanguage OpenCalais like system? I was very impressed with the OpenCalais system. It's (is/has) a web service where you send your text, they analyze it, then you are provided with a series of categorized (RDF enabled) tags that your document belongs to.
But - at the moment - English is the only supported langua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio hotkey to switch between code behind and source file? I use the Shift + F7 often to switch between source and design view.
Does anyone know of a hotkey to switch between the source file and its code behind file, e.g. between (Default.aspx and Default.aspx.cs)?
A: In the VS2010 the following works:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Debugging an application in Linux I want to debug an application in Linux.
The application is created in C++. The GUI is created using QT.
The GUI is linked with a static library that can be treated as the back end of the application.
I want to debug the static library but am not sure how to do that.
I tried using g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Releasing Windows file share locks This problem crops up every now and then at work. Our build machine can have it's files accessed via a normal windows file share. If someone browses a folder remotely on the machine, and leaves the window open overnight, then the build fails (as it has done now). The explorer windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: ASP.NET MVC, JSON & non JavaScript clients I need to ensure that an application I am developing is accessable and also works with JavaScript turned off. I just need a pointer to assist with the following.
I had 3 'chained' select boxes and I wanted JavaScript enabled clients to have a nice Ajax experience. I can eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Design patterns vs Frameworks Can someone illustrate what really is the difference between the two?
A: A design pattern is a well-established design for tackling a problem. A framework is an actual package of code you use to make building applications easier. Note that a framework can and probably will, make use of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: XSD validation for unsorted and only one unbounded item I have a xml file like this:
<customer>
<field1 />
<field2 />
<field3>
<item1 />
</field3>
<field3>
<item1 />
</field3>
</customer>
field* can appear in any order and only field3 can appear more than once.
How can I create a XSD file to val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Library to draw routed lines avoiding obstacles I've created a workflow/flowchart style designer for something. At the moment it is using relatively simple Bezier curve lines to connect up the various end points of the "blocks" on the workflow.
However I would like something a bit more intuitive for the user. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Howto synchronize file access in a shared folder using Java (OR: ReadWriteLock on network level) I have multiple applications running in one virtual machine. I have multiple virtual machines running on one server. And I have multiple servers. They all share a file using a shared folder on linux. The file is read and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: email.retr retrieves strange =20 characters when the email body has chinese characters in it self.logger.info(msg)
popinstance=poplib.POP3(self.account[0])
self.logger.info(popinstance.getwelcome())
popinstance.user(self.account[1])
popinstance.pass_(self.account[2])
try:
(numMsgs, to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I divide an ordered list of integers into evenly sized sublists? Does anyone have a good algorithm for taking an ordered list of integers, i.e.:
[1, 3, 6, 7, 8, 10, 11, 13, 14, 17, 19, 23, 25, 27, 28]
into a given number of evenly sized ordered sublists, i.e. for 4 it will be:
[1, 3, 6] [7, 8, 10, 11] [13, 14... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the minimum classpath for an Axis2 client? I want to build an Axis2 client (I'm only accessing a remote web service, I'm not implementing one!) with Maven2 and I don't want to add 21MB of JARs to my project. What do I have to put in my pom.xml to compile the code when I've converted the WSDL with ADB?
A: Axi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to prevent long words from breaking my div? Ever since switching from TABLE-layout to DIV-layout, one common problem remains:
PROBLEM: you fill your DIV with dynamic text and inevitably there is a super-long word that extends over the edge of your div column and makes your site look unprofessional.
RETRO-WHINING... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Could we use with and without extension on different actions in MonoRail? I would like to build a web application on Castle MonoRail, I was wondering how can we use an action with extension and another action without extension? How can HTML helper generator url for us?
Ex:
*
*http://mysite.com/Products/list
*ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I change IE script debugger from MS Script Debugger to VS 2005 I have Microsoft Script debugger installed and selected (somwhere) as the script debugger of IE. I want to make VS the default script debugger. When I uninstall MS Script debugger IE just wouldn't start any debugger on a javascript error.
So how d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Support for foreign key constraint in Rails In Ruby on Rails, how to add foreign key constraint in migration?
A: This is an update to the matthuhiggins-foreigner gem: http://github.com/sparkfly/foreigner
Features:
*
*rspec coverage, tested against PostgreSQL 8.3.9 and MySQL 5.0.90
*Migration support
*schema.rb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Nhibernate ValueType Collection as delimited string in DB I have a legacy db that I am mapping with Nhibernate.
And in several locations a list och strigs or domain objects are mapped as a delimited string in the database. Either 'string|string|string' in the value type cases and like 'domainID|domainID|domainID' in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: need help in database integrity I need help executing a bat file from asp.net 2.0 and c++.
How to import runtime Sql Server2000 data into Oracle 9i?
How to manage project?
A: Oracle and SQL can talk replication/subscriptions. Otherwise you can use standard SSIS/ETL methods such as BCP, SQLLDR, etc.
A: That's a re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to access multiple JPanels inside JFrame? I have a JFrame that contains a "display" JPanel with JTextField and a "control" JPanel with buttons that should access the contents of the display JPanel. I think my problem is related on how to use the observer pattern, which in principle I understand. You need to plac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF Office 2007 Theme are there any additional WPF themes from microsoft except that default ones provided in
PersentationFrameWork.Aero,
PersentationFrameWork.Luna,
PersentationFrameWork.Royale &
PersentationFrameWork.Classic
i am specially interested in a Office 2007 Blue theme
A: If you happen to have Infragisti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a standard e-commerce database schema to apply the discounts/taxes/gift vouchers to products? A good and flexible database schema illustrating e-commerce products and their rates management is required.
A: I agree with Chris Roberts, OSCommerce is a good place to start as well as DatabaseAnswers.org.
Hope ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.