text stringlengths 8 267k | meta dict |
|---|---|
Q: Loop over folder string and parse out last folder name I need to grab the folder name of a currently executing batch file. I have been trying to loop over the current directory using the following syntax (which is wrong at present):
set mydir = %~p0
for /F "delims=\" %i IN (%mydir%) DO @echo %i
Couple of issues in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/280969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I make an InfoPath textfield within an repeating table auto increment? Within my InfoPath form (which has to be loaded within a SharePoint Portal by the browser)I have a repeating table containing multiple fields. Now I would like to make the first textfield autoincrement starting by 1. How exactly can I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/280971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Protecting Javascript Code in a FF extension I am looking to protect the code of my Firefox extension because it has server calls in it that no would be a security risk if someone could make them outside of the extension. Any suggestions on how to encrypt it?
A: This is basically impossible. You want to give execut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/280980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RegEx to replace value including new lines I have a snippet looking something like the below.
string bodyTypeAssemblyQualifiedName = "XXX.XX.XI.CustomerPayment.Schemas.r1.CustomerPayments_v01, XXX.XX.XI.CustomerPaym" +
"ent.Schemas.r1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ac564f277cd4488"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/280990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sharing session between WCF services I have been working on splitting up the app tier and web tier of a web application. In the app tier, I managed to separate the business logic into a bunch of services exposed using WCF proxies. The problem is that these services talk to another legacy application that uses a larg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/280991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Sending Email alert in SQL Server 2000 Hi would like to send an email alert after checking the result of a query which will return the numbers of rows in a table. Does anyone have any ideas how I could do this in SQL Server 2000 in 2005 I would use a maintenence plan but not sure how in 2000?
A: I did this a few ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "StartTag: invalid element name" in default.aspx (Warning - asp newbie) I have an aspx file with the tag
<%@ Page Language=VB ... %>
right at the beginning of the file.
When calling this from my IIS server (http://localhost/myservice/default.aspx), this gives me the error
This page contains the following
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a good HttpClient library for J2ME/MIDP? I want to call some RESTful web services from a J2ME client running on a MIDP enabled mobile device. I read the MIDP api for HTTPConnections and thought this is just crying out for a simple wrapper to hide all those unpleasant byte arrays and such like. Before I writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How To Format A Block of Code Within a Presentation? I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets.
Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Offic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Visual Studio - Prevent stopping debugging from closing Internet Explorer Under visual studio if you run a web project by pressing the Go button on the Debugging toolbar, then stop it by pressing the Stop button on the debugging toolbar, Internet Explorer is opened and closed by the IDE.
Is there a way to prevent th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Are "out" parameters a bad thing in .NET? Are "out" parameters a bad thing in .NET? Any good articles/discussions on this topic?
A: For most circumstances I would recommend against using Out parameters. They basically add side-effects to your code and could be a nightmare when it comes to debugging.
There's an arti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: parasoft C++ unit test question I work on a project that was just told we had to incorporate Parasoft C++ unit testing tool into any code changes going forward. The problem I face is that we have methods with very small changes and now it seems we are forced to unit test the whole method. Many of these methods are h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regular expression to find all table names in a query I am not that hot at regular expressions and it has made my little mind melt some what.
I am trying to find all the tables names in a query. So say I have the query:
SELECT one, two, three FROM table1, table2 WHERE X=Y
I would like to pull out "table1, table2" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Do class/struct members always get created in memory in the order they were declared? This is a question that was sparked by Rob Walker's answer here.
Suppose I declare a class/struct like so:
struct
{
char A;
int B;
char C;
int D;
};
Is it safe to assume that these members will be declared in exac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Win32 WriteProcessMemory() magical offset value I'm trying to read the data in a Win32 ListView owned by another process. Unfortunately, my WriteProcessMemory() call fails with the error "This function is not supported on this system." when I specify "NULL" for the base address in my VirtualAlloc() call. If, however... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery tooltip not working in IE I am using the jquery tooltip and here is the code for it
Javascript:
this.tooltip = function()
{
var xOffset = -10;
var yOffset = -175;
$("a.tooltip").hover(function(e)
{
this.t = this.title;
this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What encryption algorithm does the .net membership provider use? I'm looking at the source code for the .net membership provider, and it sqlmembershipprovider.cs there are calls to EncryptPassword and DecryptPassword but I don't see the method anywhere in the source.
What algorithm are they using? Isn't the source ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Converting projects that use Png images to D2009 Anyone that used the (not anymore) freely available TPngImage by by Gustavo Daud tried porting their projects to Delphi 2009?
In my case, it seems that all TImage png images that displayed just fine in D2007 are now blank when opening the form in D2009 (if I re-add th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Making a Windows Mobile device emulate a Bluetooth HID device I'm looking for a way to connect a Windows Mobile device to a PC via Bluetooth and have it show up on the PC as a HID device (i.e. Keyboard or Mouse). I imagine this would mostly be a matter of modifying the available Bluetooth profiles on the Windows Mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NHibernate: accessing configuration properties (Sql dialect) at runtime I would like to retrieve at runtime the values for the "dialect" and "connection.driver_class" properties specified in the configuration file.
Do you know how to do that?
Many thanks,
Nicola
A: When you build the Configuration object and load t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MySQL And C applications When building a application that accesses a MySQL database on linux using C/C++ i have to dynamically link into the mysql client library. Is there a way in which i can statically link the application so that the mysql client libraries are no longer required?
What is the best practice, with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Applescript application read from file I have a compiled AppleScript application which I have moved to my windows server. I'd like to then insert a text file into the application (which looks like a zip file on windows):
myapplescript.app/Contents/Resources/MyNewDir/MyTxtFile.txt
So, I've precompiled the AppleScrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I replace text from one file with text from another file using vbscript? How do I replace text from one file with text from another file using vbscript?
The text being replaced is somewhere in the middle of the file.
A: filea.txt:
hello cruel world
fileb.txt:
cruel
filec.txt:
happy
will make sResult = "hell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ObservableQueue? Has anyone written a version of .Net's generic Queue that implements INotifyCollectionChanged, or is there one hidden deep in the .Net framework somewhere already?
A: A quick search didn't show any results. But the interface is simple and it would be almost trivial to extend the Queue class and ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to make eclipse generate hashCode and equals with HashCodeBuilder and EqualsBuilder The default generated hashCode and equals implementations are ugly at best.
Is it possible to make eclipse generate ones from HashCodeBuilder and EqualsBuilder, and perhaps even a toString with ToStringBuilder?
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Rails: getting data from a table for each iteraction of a loop I have a loop (for item in @dataset) and I want, in each iteration, to get different data from another table and make some operations that will be printed in the view. I cant't get this data from the dataset used in the loop.
How can I do this according ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Java volatile reference vs. AtomicReference Is there any difference between a volatile Object reference and AtomicReference in case I would just use get() and set()-methods from AtomicReference?
A: JDK source code is one of the best ways to answers confusions like this. If you look at the code in AtomicReference, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: How to control the mouse in Mac using Python? What would be the easiest way to move the mouse around (and possibly click) using Python on OS X?
This is just for rapid prototyping, it doesn't have to be elegant.
A: I dug through the source code of Synergy to find the call that generates mouse events:
#include <App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Can someone explain Encoding.Unicode.GetBytes("hello") for me? My code:
string input1;
input1 = Console.ReadLine();
Console.WriteLine("byte output");
byte[] bInput1 = Encoding.Unicode.GetBytes(input1);
for (int x = 0; x < bInput1.Length; x++)
Console.WriteLine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating an object in shared memory inside a Shared Lib (so) in C++ Is it possible to share a single 'god' instance among everyone that links to this code, to be placed in a shared object?
god* _god = NULL;
extern "C"
{
int set_log_level(int level)
{
if(_god == NULL) return -1;
_stb->log_level(level);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I keep a Windows Mobile Professional Device in the Unattended Power State I have a .net 3.5 application running on windows mobile professional that uses sql server ce 3.5 and merge replication with sql server 2005 sp2, it not yet a 1.0 product. Every couple of minutes or so it starts a merge replication usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.Net MVC framework and databinding I am having some trouble grasping some concepts behind the MVC framework. I am doing a very simple application which categorizes products.
The Creation screen will simply use a dropdown list showing the list of categories, the name of the product and submit.
On a normal .Net app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET hostingEnvironment / shadowCopyBinAssemblies Today I stumpled upon the shadowCopyBinAssemblies option in the hostingEnvironment tag.
Appearently this attribute it is a web.config (system.web) configuration Boolean option indicating whether the assemblies of an application in the Bin directory are shadow copi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to validate XML using T-SQL? I'm in the process of converting a varchar(8000) field to an xml field in MSSQL 2005.
Many of the XML docs have small issues (example: degree symbol not encoded). Is there a better way to validate the XML than a Try/Catch process?
Maybe I could write a .NET Stored Procedur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RijndaelManaged supports 128-256 bit key, what key size the default constructor generator? For new RijndaelManaged(), the documentation says it supports keys of 128 bits and up to 256 bits.
When you instantiate new RijndaelManaged(), it creates the Key and IV for you.
What size does it default to, 128 bits?
A: The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Slow SQL Code on local server in MS Access I've got a particular SQL statement which takes about 30 seconds to perform, and I'm wondering if anyone can see a problem with it, or where I need additional indexing.
The code is on a subform in Access, which shows results dependent on the content of five fields in the ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unpacking MSI in .Net I have an installer that deploys web services to IIS. After this has finshed a custom action fires that updates the database with the scripts required by the webservices. The scripts are currently deploying to IIS aswell because they are part of the .net project. How can I configure the inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ClickOnce .appref-ms more than a link to .application file? I have a ClickOnce environment like this:
\\Fileserver\ClickOnceApps\App1.application
C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms
My understanding is the .apppref-ms file is a glorified link to the app.application file. Does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Commenting code that is removed Is it a good practice to comment code that is removed? For example:
// Code to do {task} was removed by Ajahn on 10/10/08 because {reason}.
Someone in my developer group during a peer review made a note that we should comment the lines of code to be removed. I thought this was a terr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is it possible to use/access scalar functions with LINQ to SQL? We have scalar functions in our database for returning things like "number of tasks for a customer" or "total invoice amount for a customer".
We are experimenting and looking to try to do this w/o stored procedures ... normally we would just call this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to store the AES Rijndael generated Key to the database? When creating the instance, the KEY and IV are generated for me.
RijndaelManaged myRijndael = new RijndaelManaged();
How can I store the Key in my database or web.config file?
And in what format?
Because I will have to load the key when trying to decrypt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I dynamically add an tag with JavaScript in IE? I have to add either an embed tag for Firefox or an object tag for Internet Explorer with JavaScript to address the appropriate ActiveX / Plugin depending on the browser. The plugin could be missing and needs to get downloaded in this case. The dynamically add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NHibernate: One base class, several mappings I'm relatively new to NHibernate, but have been using it for the last few programs and I'm in love. I've come to a situation where I need to aggregate data from 4-5 databases into a single database. Specifically it is serial number data. Each database will have its own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it OK to overload ShowDialog() so that a child form returns information as an out parameter? In an earlier question about how to return a string from a dialog window, yapiskan suggested overloading the child form's ShowDialog() method to include an out parameter.
My question is whether or not this is a good appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I dynamically create the source for a frame using javascript? Suppose I have one html page with frames. The left frame is simply a list of links, which will be displayed in the right frame. Is it possible, using javascript, to generate the contents of the left frame when the page loads?
A: Sure. You can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RGB back buffer in Win32 I have an array of RGB values, whose size I can guarantee to match the client area of a window on screen.
Using the Win32 API, what are the easiest and fastest ways to get the contents of my array on the screen in response to a WM_PAINT message?
If it makes it simpler/faster, we can assume i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove empty elements from an array in Javascript How do I remove empty elements from an array in JavaScript?
Is there a straightforward way, or do I need to loop through it and remove them manually?
A: You may find it easier to loop over your array and build a new array out of the items you want to keep from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1561"
} |
Q: Is there a way in .NET to make your overload of a method appear first in the Intellisense dropdown? In a form, I added an overload of ShowDialog(). In Visual Studio, this overload shows up in Intellisense as the third version. How can I make my overloaded function appear as #1 (i.e. the default)?
A: You should us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to merge multiple STL containers, removing duplicate elements? I have two STL containers that I want to merge, removing any elements that appear more than once. For example:
typedef std::list<int> container;
container c1;
container c2;
c1.push_back(1);
c1.push_back(2);
c1.push_back(3);
c2.push_back(2);
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Accelerator key for a date stamp Here's an open ended question. I work on a lot of mssql files, and I like to have a date stamp on each. This is so I can know just by looking at the source of a stored procedure whether it's up to date or not.
I'd like to have a shortcut autocomplete key, that, if i type say, d-tab-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there anyway to grab Google Analytics via some kind of API? Basically I have an admin CP I've coded for all my sites and I'd love to integrate the information gathered by Google Analytics on it to avoid having to look at both sites every morning.
BTW I'm using PHP, but I would assume if something like this exists... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to make CVS comments compulsory for commits? I guess I'm really after an aid to help people who forget, Cruise Control sends out the details of commits to everyone, so people are keen to add a meaningful comment, but sometimes forget.
A: You will also want a human monitoring the comments that people ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read-only DataGridView and IEditableObject Good evening
I've got a little problem with my DataGridView in a .NET Windows Forms project. The grid is read-only and bound to a sortable BindingList<T> which contains custom business objects. My business object class does implement IEditableObject.
Now the BeginEdit and E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most elegant UI for categorizing items? I have a collection of items that the user needs to group/categorize in several ways. For the sake of an example, let's say it's a collection of cars and the user wants to categorize them in the following ways:
*
*Color (red, silver, blue, black, etc.)
*Body shape (hatch, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SELECT INTO with an additional column I am attempting to insert a copy of a row from one table into another table with the same schema, with the addition of one column (a timestamp) to provide a "history" of the first table in MS Sql Server 2005.
So, my query, without the additional column would be:
"SELECT INTO [We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generically typed expression weirdness The code below gives an error: Property 'Int32 Key' is not defined for type 'ConsoleApplication1.IKeyed`1[TKey]' when the expression e is created but is fine when func f is created, can anyone explain why and if there is a way to fix it?
Module Module1
Sub Main()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List Items turned into float:left blocks look strange in IE6 I have a UL that looks like this:
<ul class="popular-pages">
<li><a href="region/us/california/">California</a></li>
<li><a href="region/us/michigan/">Michigan</a></li>
<li><a href="region/us/missouri/">Missouri</a></li>
<li><a href="region... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Confirm before delete/update in SQL Management Studio? So for the second day in a row, someone has wiped out an entire table of data as opposed to the one row they were trying to delete because they didn't have the qualified where clause.
I've been all up and down the mgmt studio options, but can't find a confirm op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Castor compilation of schema produces different class hierarchy depending on elements in schema While maintaining a castor based system, I amend the source schema to produce a new set of classes and find that introducing a new element produces a different class hierarchy. This is true of any element type.
Briefly, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which Java GUI framework to choose now? Which GUI framework/library would you choose if you were to start your new project now or in the near future?
It has to be free for commercial use and cross platform.
I have been a happy swing user, but Sun seems like pushing swing to deprecation, while pushing Javafx, which i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: release configuration management Our windows deliverable has different sets of config files and binary assets for different customers. Right now the configuring is done by hand before packaging and its error prone. What do you think of using branches for each customer, and having the package build/script automerge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does the filterpriority tag in an XML comment do? I have seen this in a lot of XML comments for classes in the .NET Framework BCL but have never been able to find documentation that explains what it does.
As an example, looking at System.Object reveals the following comments:
namespace System
{
/// <summ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: ASP.NET Treeview and XML arrays I am binding a TreeView to an XMLDataSource, the databindings are being generated automatically and the XML looks like this:-
<Passengers>
<Passenger>
<PassengerName>Name1</PassengerName>
</Passenger>
<Passenger>
<PassengerName>Name2</PassengerName>
</Passenger>
<Pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Class to automatically pull database fields into .NET Controls I'm building a class that automatically loads a DB record, looks at each DB column name, and fills the associated textbox/label/literal/etc, if it has the same name. I got this idea from Rails, in case that helps clarify what I'm trying to do.
public st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing File Type Once Added to CVSNT I am using WinCVS as client and CVSNT as my source control server. Some of the files I wanted to add to my CVS repo, were added as Unicode files. Now, I want to recommit the same as ANSI (aka ASCII) files. However, despite deleting the old files from the repo, every time I add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does myVector.erase(myPtr) delete the object pointed by myPtr? If I have the following code,
Foo *f = new Foo();
vector<Foo*> vect;
vect.push_back(f);
// do stuff
vect.erase(f);
Did I create a memory leak?
I guess so, but the word erase gives the feeling that it is deleting it.
Writing this, I am wondering if it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best .Net library to edit WMA tags? I have found a few libraries to edit MP3 tags (UltraID3Lib is great) but none that will edit tags for WMA files.
Can anyone recommend a .net library for editing WMA tags / metadata ?
Thanks
MATT
A: TagLib# http://www.taglibsharp.com
Doh! How did I miss this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/281369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Executing Shell Scripts from the OS X Dock? How do I set up a shell script to execute from the Mac OSX dock? It seems that simply creating a shortcut will open the file in my editor. Is there a flag I need to set somewhere to tell it to run instead of opening it for editing?
A: As long as your script is executable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Sharepoint: SQL to find all documents created/edited by a user I am looking for a query that will work on Sharepoint 2003 to show me all the documents created/touched by a given userID.
I have found tables with the documents (Docs) and tables for users (UserInfo, UserData)
but the relationship between seems a bit od... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Format Date with fmt:formatDate JSP I am trying to format a date with:
<fmt:formatDate value="${newsletter.createdOn}" pattern="MM/dd/yyyy"/>
newsletter is an object with a createdOn property which is java.util.Date.
When I invoke the previous sentence I get:
According to the TLD, the attribute value does not acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Maintaining JavaScript Code in the after ASP.Net Postback. As the title suggests, I am having trouble maintaining my code on postback. I have a bunch of jQuery code in the Head section and this works fine until a postback occurs after which it ceases to function!
How can I fix this? Does the head not get read on p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to know when the UIViewController above me in the stack has been popped? I have a UIViewController that manages the display of some data. When the user wants to edit this data I push an edit UIViewController onto the stack. When the user is finished editing the top view controller is popped off ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can SQL procedures from the Master database help db developers? There are a lot of procedures and functions in the master database of SQL Server that provide handy tools for the database developer. For instance, sp_help [database object] will provide several results sets with useful attributes of the specified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Weighted Mean I have an existing web app that allows users to "rate" items based on their difficulty. (0 through 15). Currently, I'm simply taking the average of each user's opinion and presenting the average straight from MySQL. However, it's becoming clear to me (and my users) that weighting the numbers would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to reorder ToolStrip items in code How do you programatically reorder items on a ToolStrip in C#.
Thanks.
A: I have found a way around this by using the Insert() method of the Items collection and specifying the index i want the item at.
i.e.
toolStrip1.Items.Insert(0, myButton);
| {
"language": "en",
"url": "https://stackoverflow.com/questions/281403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Pattern for progress status reporting I am implementing long running processes that require to a process bar - or progress percentage - to be displayed. The overall logic of the long running process is complex (various paged data retrieval), and as a result, I end up hardcoding lots of percentages in various places ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WaitCursor on sort in DataGridView I am using the standard .Net 2.0 DataGridView with sort mode of automatic on the column. It is very very slow (which should probably be another question on how to speed it up) but I can't seem to find an event or combination of events that will maintain a WaitCursor while this sor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reporting Services Images do not display after report is is deployed I have a SSRS 2005 report that has a number of images in it. The way that I have the images included is I have an image object with the URL set in the value property. The actual images are hosted by an IIS virtual directory on the same server. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How well does jQuery support backward compatibility? We have had issues with Mootools not being very backward compatible specifically in the area of drag and drop functionality. I was wondering if anyone has had any similar problems with jQuery not being backward compatible. We are starting to use it quite heavily a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Is there an ORM for Perl?
create table person
(
name varchar(15),
attr1 varchar(15),
attr2 varchar(1),
attr3 char(1),
attr4 int
)
How I can use basic ORM in Perl by taking a simple table like the one above and mapping it to Perl objects? Next I'd like to perform basic operations like select re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Inconsistent Whitespace Text Nodes in Internet Explorer The following source code alerts the following results:
Internet Explorer 7: 29
Firefox 3.0.3: 37 (correct)
Safari 3.0.4 (523.12.9): 38
Google Chrome 0.3.154.9: 38
Please ignore the following facts:
*
*Webkit (Safari/Chrome) browsers insert an extra text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Namespacing (static) member variables I would like to be able to achieve something like this:
class Zot
{
namespace A
{
static int x;
static int y;
}
}
I am working with a legacy system that uses code generation heavily off a DB schema, and certain fields are exposed as methods/varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Entity Framework: Working with FK's (why do they get hidden?) First of all, let's define a few tables:
Users table will store information about a user:
Users
- UserID (int, PK)
- ...
UserTasks is a table that stores a task associated with a user:
UserTasks
- userID (int, FK to Users table)
- taskName (varchar)
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java to C# Conversion I need to convert several Java classes to C#, but I have faced few problems.
In Java I have following class hierarchy:
public abstract class AbstractObject {
public String getId() {
return id;
}
}
public class ConcreteObject extends AbstractObject {
public void setId(Strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing Keyboard Input language in Java Is there a way to set/change the keyboard input language in Java (eg from English to German)?
Example Use Case: Script to be used for playback is recorded (typed in) on a German keyboard. The automated playback is done on a English keyboard...fails if keyboard is not set to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I want the simplest ajax form application I want ajax application to process a simple form with textinput and submit button only , and without validation , i want to add this with a php script .
I ask this because i don't know how to program with ajax or javascript .
A: I would highly recommend using jQuery -- ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wicket, page stack, and memory usage A Wicket application serializes and caches all pages to support stateful components, as well as for supporting the back button, among other possible reasons. I have an application which uses setResponsePage to navigate from screen to screen. Over a pretty short amount of time the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jlabel HTML formatting I have a JLabel which has an e-mail address in it. I used HTML formatting on the JLabel, so it appears as a link. However, you are not able to click the link. In fact, you cannot select any of the text in the label. Is there a property that I can set on the JLabel to allow the user to at least... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I override loginwindow on Tiger? My software authorizes the user prior to booting Mac OS X (Tiger and Leopard.) I want to use SFAuthorizationPluginView to create a plugin to attempt to use our pre-boot authorization (cached securely) for user login to Mac OS X for single-sign-on capability. I have not yet vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to best sort a portion of a circular buffer? I have a circular, statically allocated buffer in C, which I'm using as a queue for a depth breadth first search. I'd like have the top N elements in the queue sorted. It would be easy to just use a regular qsort() - except it's a circular buffer, and the top N elemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What do I need to write Java-based web applications and test them on my personal computer? I currently have Apache HTTP Server, but I'm guessing I'll need Tomcat (and then have to configure it in a way that makes it not open to the public), a Java JDK (which I already have, but should probably update), and an IDE (I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error: Failed to generate a user instance of SQL Server I'm trying to connect to an MDF. I've even gone to the lengths of re-installing sql server express entirely (it is now the only flavor of SQL installed on my box, where previously I had 05 dev and express). I've verified that the paths are all correct, and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: JPA mapping interfaces I am having trouble creating a mapping when the List type is an interface. It looks like I need to create an abstract class and use the discriminator column is this the case? I would rather not have to as the abstract class will just contain an abstract method and I would rather just keep the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the server requirements for Silverlight 2? Can a Silverlight 2 enabled web page be managed from an Apache server? (I'm not actually interested in doing this but trying to understand Silverlight 2 a bit more.)
Assuming that I have IIS6 and Server 2003 what are the .NET version requirements to host a web site... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio variable declaration I have a project that has the following line in the additional includes section:
"$(SOMEPATH_SHORTNAME)\include"
Can someone tell me where I can find $(SOMEPATH) defined? I can't find it by simply searching in Visual Studio
A: If it's not an environment variable, the place to look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Tiff compression using Java ImageIO I am having issues converting a png to tiff. The conversion goes fine, but the image is huge. I think the issue is that I am not doing the compression correctly? Anyone have any suggestions??
Here is the code sample
public static void test() throws IOException {
// String ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to customize the background color of a UITableViewCell? I would like to customize the background (and maybe the border too) of all of the UITableViewCells within my UITableView. So far I have not been able to customize this stuff, so I have a bunch of white background cells which is the default.
Is there a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "190"
} |
Q: Can't connect to mobile device I've been developing an application for a second generation Workabout Pro from PSION Teklogix.
Recently my company underwent an upgrade re: operating systems and Visual Studio versions, so I'm stuck with Windows Vista (and Visual Studio 2008).
I've connected the same Workabout Pro unit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Slow DELETE statement in SQL Server need help reading execution plan and fixing I have a delete statement that's going against one of my core application tables. The delete statement is using the table's primary key but is still taking around 30 seconds. As far as I can tell the execution plan needs to do about 12... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Defrag a virtual hard disk (.vhd)? Like any other hard disk, virtual hard discs (*.vhd) will suffer from fragmentation.
So to keep good performance i guess i have to defrag first the virtual hard disc from within the virtual machine and also the (physical) hard disc the .vhd is stored on.
First, are these assumptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/281527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.