text string | meta dict |
|---|---|
Q: C# dictionaries ValueOrNull / ValueorDefault Currently I'm using
var x = dict.ContainsKey(key) ? dict[key] : defaultValue
I'd like some way to have dictionary[key] return null for nonexistant keys, so I could write something like
var x = dict[key] ?? defaultValue;
this also winds up being part of linq queries etc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: One gridview - two datasources? I am working on a co-workers website, and he mistakenly put up a gridview that shows a TypeID instead of the TypeName. I want to put the actual NAME of the type, instead of it's arbitrary ID number, like he has it. I see he has two "ObjectDataSource"'s on the page -- one for Type an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filter Extensions in HTML form upload I have a simple HTML upload form, and I want to specify a default extension ("*.drp" for example). I've read that the way to do this is through the ACCEPT attribute of the input tag, but I don't know how exactly.
<form enctype="multipart/form-data" action="uploader.php" method="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How can I get the active screen dimensions? What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea for the monitor that the window is currently on.
Clarification: The window in question is WPF, not WinForm.
A: You can use this to get desktop workspace bounds of the primary screen:
Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Access parent property in jQuery callback Unsure if I've phrased this correctly, but in the callback how do I reference the controls property of the base class?
This has been bugging me for some time and I usually work around it, but I'd be grateful if anybody can enlighten me on how I should do this properly.
var b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 'License expired' error when dynamically generating Excel docs in ASP.NET Anyone familiar with error below? When I run my webapp to generate a dynamic excel doc from my local machine it works fine but when the same piece of code is invoked on the server I get the below error. It seems like it's a permissions issues ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Preserve JTable selection across TableModel change We're seeing JTable selection get cleared when we do a fireTableDataChanged() or fireTableRowsUpdated() from the TableModel.
Is this expected, or are we doing something wrong? I didn't see any property on the JTable (or other related classes) about clearing/preserv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to determine database type for a given JDBC connection? I need to handle resultsets returning stored procedures/functions for three databases (Oracle, sybase, MS-Server). The procedures/functions are generally the same but the call is a little different in Oracle.
statement.registerOutParameter(1, oracle.jdbc.Or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: SVN Repository Search Is there any good software that will allow me to search through my SVN respository for code snippets? I found 'FishEye' but the cost is 1,200 and well outside my budget.
A: *
*Create git-svn mirror of that repository.
*Search for added or removed strings inside git: git log -S'my line of co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Joining two tables without returning unwanted row My table structure looks like this:
tbl.users tbl.issues
+--------+-----------+ +---------+------------+-----------+
| userid | real_name | | issueid | assignedid | creatorid |
+--------+-----------+ +---------+------------+---------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Crossplatform Bidirectional IPC I have a project that I thought was going to be relatively easy, but is turning out to be more of a pain that I had hoped. First, most of the code I'm interacting with is legacy code that I don't have control over, so I can't do big paradigm changes.
Here's a simplified explanation o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Global.asax called dozens of times/second by same IP I noticed in my custom application log that I had 600 requests to Global.asax within a few minutes, while no other users were using the application. They all came from an IP address of a known application user, so I don't think it's an attack of any kind. I genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help with SQL query (Joining views?) I have a table with columns
Index, Date
where an Index may have multiple Dates, and my goal is the following: select a list that looks like
Index, MinDate, MaxDate
where each Index is listed only once, and MinDate (MaxDate) represents the earliest (latest) date present in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP strptime format bug? I am wrestling with a php 5.2.6 problem. An api we use returns dates in this format DDMMYYYYHHMM. Exactly that format, fixed length, no delimiters. However, in my experimentation, this format seems to break strptime, which returns a false (fail) when I feed it a date in this format. It can r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to upload a folder to a website? I need an easy way to allow users to upload multiple files at once (ie I need to allow a user to upload a folder). I do not wish to put the burden of zipping on the user.
I would prefer to avoid Flash or variants if possible. I'm looking for a straight javasc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How To Find the Locale in Sybase? I have some servers in Europe and some in Asia.
I would like to be able to work out where the current server is by querying ... something.
Is there some global variable I can query or sp_xxx I can execute to find out the locale of the server?
A: sp_helpsort
http://infocenter.sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best .NET graphics library for 3D sphere drawing? I am going to be making an application that lets users input several parameters for a bowling ball layout, and then show what that layout would look like on the ball. I have found some good resources for sphere math, so if I have a sphere whose center is (0,0,0), I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why vim doesn't work correctly into a telnet session? I use vim (7.1) on OpenVMS V7.3-2.
I connect to VMS trough a telnet session with SmartTerm, a terminal emulator.
It works fine.
But when I start a telnet session from a VMS session (connected via SmartTerm) to another VMS session, some keys doesn't work properly.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should javac find methods outside of an anonymous class of the same name? This question is a follow up to:
Why can’t I call a method outside of an anonymous class of the same name
This previous question answer why, but now I want to know if javac should find run(int bar)? (See previous question to see why run(42) f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WCF Behavior Extension Elements Not Recognized in Visual Studio This question is related to the question posted here:
Why isn't my custom WCF behavior extension element type being found?
I'm using the WCF Behavior Extension with Custom Credentials demonstrated on MSDN here:
http://msdn.microsoft.com/en-us/library/ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LinQ ORM Data Objects and Inheritance I'm thinking about how to do this, but I have several different shapes of Data in my Database, Articles, NewsItems, etc.
They All have something in common, they all have IDs (in the DB they're named ArticleID, NewsID etc. )
They all have a Title
They all have BodyText.
They al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When can I dispose an IDisposable WPF control e.g. WindowsFormsHost? The WPF control WindowsFormsHost inherits from IDisposable.
If I have a complex WPF visual tree containing some of the above controls what event or method can I use to call IDispose during shutdown?
A: In the case of application shutdown there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C# Action lambda limitation Why does this lambda expression not compile?
Action a = () => throw new InvalidOperationException();
Conjecture is fine, but I would really appreciate references to the C# language specification or other documentation.
And yes, I know that the following is valid and will compile:
Action ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Would syntax for composition be a useful addition to Java? First off, I know next to nothing about language theory, and I barely know any other languages except Java, but I had an idea that I think would be cool, but I need you guys to tell me:
a: why it sucks
b: how language x has had that for years
c: how my mind ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Database table for grades I'm trying to define a table to store student grades for a online report card. I can't decide how to do it, though.
The grades are given by subject, in a trimestral period. Every trimester has a average grade, the total missed classes and a "recovering grade" (I don't know the right term in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Warning: Module 'ldap' & 'mysql' already loaded when running PHP at command line I am getting the following errors:
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
when running the following command at the command line:
php -c /etc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best practices for overriding isEqual: and hash How do you properly override isEqual: in Objective-C? The "catch" seems to be that if two objects are equal (as determined by the isEqual: method), they must have the same hash value.
The Introspection section of the Cocoa Fundamentals Guide does have an example on ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "272"
} |
Q: Call to a member function on a non-object I'm working through Practical Web 2.0 Appications currently and have hit a bit of a roadblock. I'm trying to get PHP, MySQL, Apache, Smarty and the Zend Framework all working correctly so I can begin to build the application. I have gotten the bootstrap file for Zend worki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a clean way of cleaning up duplicate entries in MySQL? In a table, I have three columns - id, name, and count. A good number of name columns are identical (due to the lack of a UNIQUE early on) and I want to fix this. However, the id column is used by other (4 or 5, I think - I would have to check the docs)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I determine the type of an HTML element in JavaScript? I need a way to determine the type of an HTML element in JavaScript. It has the ID, but the element itself could be a <div>, a <form> field, a <fieldset>, etc. How can I achieve this?
A: What about element.tagName?
See also tagName docs on MDN.
A: node... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "303"
} |
Q: Copying entities between multiple databases with NHibernate I have a desktop (winforms) application that uses a Firebird database as a data store (in embedded mode) and I use NHibernate for ORM. One of the functions we need to support is to be able to import / export groups of data to/from an external file. Curren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you pass commands to a Cygwin console in Windows using Inno Setup I've tried variations of this, but had no luck other than the ability to start a cygwin window. (wrapped on ; for clarity)
Filename: "c:\cygwin\bin\bash.exe";
Parameters: "-c c:/scripts/step1.sh paramX";
Flags: shellexec waituntilterminated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I extract URL and link text from HTML in Perl? I previously asked how to do this in Groovy. However, now I'm rewriting my app in Perl because of all the CPAN libraries.
If the page contained these links:
<a href="http://www.google.com">Google</a>
<a href="http://www.apple.com">Apple</a>
The output would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to work with objects using Dynamic WCF? We currently have developed an application using WCF. Our clients make connections to different WCF servicehosts located on the server, and the servicehosts return the data from the DB that the clients need. Standard model. However, this current design has all of our WCF d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I prevent exceptions from half-loaded pages' form submission while using asp.net event validation? I have a page with some dynamically added buttons. If you click a button before the page has fully loaded, it throws the classic exception:
Invalid postback or callback argument.
Event validation is enabled us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In Python, is there a concise way of comparing whether the contents of two text files are the same? I don't care what the differences are. I just want to know whether the contents are different.
A: The low level way:
from __future__ import with_statement
with open(filename1) as f1:
with open(filename2) as f2:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Map of collections I wanted to make Map of Collections in Java, so I can make something like
public void add(K key, V value) {
if (containsKey(key)) {
get(key).add(value);
} else {
Collection c = new Collection();
c.add(value);
put(key, value);
}
}
I've tried to make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UITableView issue when using separate delegate/dataSource General Description:
To start with what works, I have a UITableView which has been placed onto an Xcode-generated view using Interface Builder. The view's File Owner is set to an Xcode-generated subclass of UIViewController. To this subclass I have added wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: DBus-Server in Java? Is there a server implementation of DBus for Java? There's a lib for clients and services (not servers).
A: It seems like since you originally asked your question, the library has gained support for what you ask for, at least the DBusDaemon source contains a DBusServer class.
A: I'm not follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a bandwidth improvement from installing a 32-bit operating system on a 64-bit machine? Knuth recently objected to 64-bit systems, saying that for programs which fit in 4 gigs of memory, "they effectively throw away half of the cache" because the pointers are twice as big as on a 32-bit system.
My question ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add another CSS Style to Child Elements which are also Parents So my list looks something like this:
<div="list">
<ul>
<li class="page item">Parent 1
<ul>
<li class="page item">Child of Parent 1 and Parent of Grandchild
<ul>
<li class="page item">Grandchild</li>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I auto load a database jar in Groovy without using the -cp switch? I want to simplify my execution of a Groovy script that makes calls to an Oracle database. How do I add the ojdbc jar to the default classpath so that I can run:
groovy RunScript.groovy
instead of:
groovy -cp ojdbc5.jar RunScript.groovy
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you convert an image to black and white in PHP How does one go about converting an image to black and white in PHP?
Not just turning it into greyscale but every pixel made black or white?
A: You could shell out to imagemagick, assuming your host supports it. What function do you want to use for deciding if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Whatever happened to the 'entry' keyword? While cruising through my white book the other day, I noticed in the list of C keywords.
entry is one of the keywords on that list.
It is reserved for future use. Thinking back to my Fortran days, there was a function of some sort that used an entry statement to make a seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: What are these stray zero-byte files extracted from tarball? (OSX) I'm extracting a folder from a tarball, and I see these zero-byte files showing up in the result (where they are not in the source.) Setup (all on OS X):
On machine one, I have a directory /My/Stuff/Goes/Here/ containing several hundred files.
I bui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I include a newline character in a string in Delphi? I want to create a string that spans multiple lines to assign to a Label Caption property. How is this done in Delphi?
A: On the side, a trick that can be useful:
If you hold your multiple strings in a TStrings, you just have to use the Text property of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Storing video duration time in sql server What's the most appropriate type used to store the duration time information of a video in sql server?
A: It depends on how granular you need and if you have any constraints on a maximum time. For example, would you need to know down to the millisecond of time duration or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Deploying Test Resources in the iPhone Simulator I am working on an iPhone Application that stores images in the Applications 'Document' folder.
I am currently doing the majority of my testing using the iPhone Simulator. In order to aid development I want to have some test images pre-loaded into the Document folder ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Image uploading with Resizing I have an aspx page which will upload images to server harddisk from client pc
But now i need to change my program in such a way that it would allow me to resize the image while uploading.
Does anyone has any idea on this ? I couldnt not find such properties/methods with Input f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Thou shalt have only Autonomous Services One of the tenets of SOA is: "Services Are Autonomous".
I have 2 services. Service A depends on Service B. Service A cannot serve clients unless Service B is up and running. Do I violate the tenet here?
Or if autonomous must mean "decoupled", do I satisfy the tenet if I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LastAccess Time is incorrect every time i create a FileInfo object and access it's lastaccesstime property, it's always a few minutes off. the file property window remains constant, however the application shows that it is usually a few minutes after the property window time.
Also, i noticed that if i drag the file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HashSet.remove() and Iterator.remove() not working I'm having problems with Iterator.remove() called on a HashSet.
I've a Set of time stamped objects. Before adding a new item to the Set, I loop through the set, identify an old version of that data object and remove it (before adding the new object). the timestamp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: .net windows forms & picking Vista fonts I'm building a .net application with windows forms. I'm pondering on the following problem: If I specify fonts in my application that are available only in Vista and Office 07, what will happen when the application tries to run in a machine without these ?
I suppose the syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Schema, Owner for objects in MS SQL By default, objects (tables, stored procedures, etc) are set up with the dbo owner/schema (I think ms sql 2000 calls it owner, while ms sql 2005 calls it schema)
The owner/schema is really a role or user in the database. I've always left the default of dbo, but I've recently seen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: chroot + execvp + bash Update
Got it! See my solution (fifth comment)
Here is my problem:
I have created a small binary called "jail" and in /etc/password I have made it the default shell for a test user.
Here is the -- simplified -- source code:
#define HOME "/home/user"
#define SHELL "/bin/bash"
...
if(chdir(HOME)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .NET : How do you get the Type of a null object? I have a method with an out parameter that tries to do a type conversion. Basically:
public void GetParameterValue(out object destination)
{
object paramVal = "I want to return this. could be any type, not just string.";
destination = null; // default out par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: OpenId development while disconnected from Internet What solutions have people come up with to develop their web applications offline when they made the decision to use OpenId for site membership?
Couple of ideas:
*
*Create two login pages one for OpenId and one for ASP.NET Membership
*Create local OpenId provid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading scheme for icons What would be the best scheme for loading icons for an application?
A little bit of a background... I’m creating an FTP-like application that has 4 panes (local folder pane, local file pane, cloud folder pane, cloud file pane). In both file panes, one of the columns is filename, which I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: View output of 'print' statements using ADOConnection in Delphi Some of my MS SQL stored procedures produce messages using the 'print' command. In my Delphi 2007 application, which connects to MS SQL using TADOConnection, how can I view the output of those 'print' commands?
Key requirements:
1) I can't run the quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Any disadvantages to using spring to separate tests and data? I've been struggling coming up with a good solution to separate my testing data from unit
tests (hard coded values). Until it dawned on me that I could create beans with spring
and use those beans to hold my data.
Are there any draw backs to coding m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Do you get AnkhSVN to work with VisualSVN Server? I'm looking for the easiest free SVN implementation I can find.
I downloaded and installed VisualSVN Server - pretty easy.
Installed TortioseSVN - pretty easy - both work together.
Installed AnkhSVN, I can't get it to connect to the repository on the VisualSVN Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Server-side commenting in asp.net (HTML side) I need to leave some instructional comments for other developers on a page/user control. Is there a better way to do this besides the below?
<% /* DO NOT rename control IDs here, because blah blah blah... */ %>
A: <%-- Comment Here --%>
A: That is about it, barrin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enumerations on PHP I know that PHP doesn't yet have native Enumerations. But I have become accustomed to them from the Java world. I would love to use enums as a way to give predefined values which IDEs' auto-completion features could understand.
Constants do the trick, but there's the namespace collision problem a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1302"
} |
Q: Migrating MOSS 2007 from SQL 2000 to SQL 2005 We have an installation of MOSS 2007 that is using MS SQL 2000 as the backend database. The web front end for MOSS is on one server and the database on a separate server. We would like to move the database to a MS SQL 2005 server. Is there a recommended approach for d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does a GCC compiled static library contain? My application links against libsamplerate.a. I am doing this to make distributing the final binary easier.
I am worried that perhaps the code inside the .a file depends on some other libraries I also will need to distribute.
But if it doesn't I am worried I am bloati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Visual Studio designer error I'm getting this error on a compact framework form.
"code generation for property 'inputControl' failed. Error was: 'object reference not set to an instance of an object.'"
Anyone have any idea why? It just started and was never an issue before.
A: When a User Control won't load int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get my orderby to work using an anonymous type? What do I put in my order by?? I want to order by Name. I have moved the orderby after the distinct because I read that it needs to be done last.
var result = (from r in db.RecordDocs
where r.RecordID == recordID
selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is seven inner joins in a query too much? I have a query that has 7 inner joins (because a lot of the information is distributed in other tables), a few coworkers have been surprised. I was wondering if they should be surprised or is having 7 inner joins normal?
A: It's normal if your schema is in the 5th normal fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: msvcr71.dll file missing on Win Vista when trying to run my java swing application I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Improving a tooltip code I'm trying to build a hoverable Jquery tooltip.
This tooltip should appear when I hover over some element, and stay
put if I choose to hover over the tooltip itself too.
The tooltip should disappear only if I hover away from the original
element or from the tooltip body.
Based on an example ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you enumerate a collection in C# out of order? Is there a way to use a foreach loop to iterate through a collection backwards or in a completely random order?
A: Using System.Linq you could do...
// List<...> list;
foreach (var i in list.Reverse())
{
}
For a random order you'd have to sort it randomly using li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: LinkDataSource can't load DataContext I am trying to populate a dropdown list control on an web page using VS 2008 and keep getting an error that it can't load the DataContext. My backend is a SQLx server 2005 DB. I create a Link To SQL data context and have 1 table in it. My LinKDataSource is as follows -
asp:Li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: User Access Checking for Rights on Particular Database Objects or Records I'm having a friendly debate with a developer about a situation where users are logging in and accessing documents in a web application. When we load the document for the user to view, we have the userID in session and the documentID that may ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Semantic HTML markup for a copyright notice When a web site is licensed under Creative Commons, I use the rel-license microformat. When a web site is licensed under regular copyright, I have a boring paragraph element.
<p id="copyright">© 2008 Example Corporation</p>
That id attribute on there is just for CSS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Breaking up PHP Websites I am wondering how I can break up my index.php homepage to multiple php pages (i.e. header.php, footer.php) and build a working index.php page using those separate php pages. I know WordPress uses this with different functions like:
GetHeader();
GetFoodter();
But when I tried to use those ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tiny python executable? I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with built-in support for UPX and uses it to compress the executable but they are still really huge (about 2,7 mb).
Is there any way to create even smaller Python executables? For example using a shrink... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: jdbc: when can i close what currently i have jdbc code with the following basic stucture:
get Connection
(do the next 4 lines several times, never closing statement)
get statement
get result set
process result set
close result set
close connection
It occurred to me after writing this code that i need to close th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best Tools for Web Site Architecture Design Are there any tools you would recommend for site architecture design and analysis? I've checked out several such as Poseidon UML, Adalon and FuseBuilder for ColdFusion, Mindmapper and a few others but have yet to find anything that seems to strike the right balance betwee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is my iPhone app crashing? When I try to allocate a Texture2D the app just crashes. I've stepped through the code where the crash occurs... all I can tell is "EXC BAD ACCESS". Here is the line in the app delegate that makes it crash:
_textures[myTex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using ASP.Net ajax library for cross browser Xml manipulation I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible.
I am looking to get a javascript xml library to handle the cross b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does placing a @ in front of a C# variable name do? I've been working with some C# legacy code and I've been seeing a lot of @ symbols in front of variable names. What does this signify or do?
Currently I'm seeing it a lot in front of variables with common names that aren't reserved. E.g.:
MyProcedure(@step.Loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: T-SQL: How can I get user-defined data-type of the column by its ID? I have a query like this:
SELECT TABLE_NAME, COLUMN_NAME, IS_NULLABLE, DATA_TYPE
FROM MY_DB.INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME = 'OrderId'
ORDER BY TABLE_NAME
GO
The OrderId column is of user-defined data type. But DATA_TYPE in the query... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple Inheritance from two derived classes I have an abstract base class which acts as an interface.
I have two "sets" of derived classes, which implement half of the abstract class. ( one "set" defines the abstract virtual methods related to initialization, the other "set" defines those related to the actual "wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Why is it better to use readonly properties verses functions? I see little functional difference between using a property
public readonly property foo as string
get
return bar
end get
end property
or a function
public function foo() as string
return bar
end function
Why would I want to use one form over ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: weird Page.Response.Redirect problem I have a login page where I authenticate the user. When the authentication pass, I then redirect the user to another page via Response.Redirect with the url defined in login control's destinationpageurl.
It work fine in firefox but when i test it with IE. It just redirect the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: view values of variables from oracle PL/SQL I'm running a PL/SQL block that is supposed to be calling a stored procedure who's output parameters are supposed to be populating variables in the PL/SQL block.
The procedure compiles, and the PL/SQL block runs successfully. But I'd like to check the values of the variabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disable spell-checking on HTML textfields Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?
A: An IFrame WILL "trigger" the spell checker (if it has content-editable set to true) just as a textfield, at least in Chrome.
A: Update: As suggested by a commenter (additional credit to Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "317"
} |
Q: Easiest way to call a Windows macro from Autohotkey (or VB)? I have the following Macro I want to call from within an AutoHotkey script in order to set certain dates in my MonthCal object to be bold.
http://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx
How would I go about that?
Note that it's possible the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you use fonts after installing xna I've downloaded a tutorial that had fonts included in the source. When I try to build the project, I always get the following error message:
Error 1 The font family "Joystick"
could not be found. Please ensure the
requested font is installed, and is a
TrueType or O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: File Upload with Java (with progress bar) I'm extremely new to Java, and have mostly just been teaching myself as I go, so I've started building an applet. I'd like to make one that can select a file from the local disk and upload it as a multipart/form-data POST request but with a progress bar. Obviously the user h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How can i build a visual studio solution using xbuild (from Mono)? I recently downloaded Mono 2 for my new MacBook. I'm trying to figure out how to compile Visual Studio solutions with xbuild, which is included in Mono. Any ideas?
A: The last time I checked, solutions weren't supported by xbuild (they use a diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In Java, for a string x, what is the runtime cost of s.length()? Is it O(1) or O(n)? I've been told that code such as:
for (int i = 0; i < x.length(); i++) {
// blah
}
is actually O(n^2) because of the repeated calls to x.length(). Instead I should use:
int l = x.length();
for (int i = 0; i < l; i++) {
// b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to detect if IE access my site as a trusted site? Is it possible to determine whether my web site is being accessed as a trusted site? In another question we determined that, in general, it is not prudent to have visibility to client IE settings. Would this qualify as an exception?
The reason I'd like to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to cope with "disk full" scenarios? The vast majority of applications does not handle "disk full" scenarios properly.
Example: an installer doesn't see that the disk is full, ignores all errors, and finally happily announces "installation complete!", or an email program is unaware that the message it has just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: PostbackUrl vs NavigateUrl Can someone tell me the different between LinkButton.PostBackUrl and HyperLink.NavigateUrl? I've got a asp.net 2.0 application that uses both methods throughout the application and everything works fine. However if I connect to the application over the company vpn all of the links that u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JSP bean tag for property that might not exist In JSP I can reference a bean's property by using the tag
${object.property}
Is there some way to deal with properties that might not exist? I have a JSP page that needs to deal with different types. Example:
public class Person {
public String getName()
}
public cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the correct format to use for Date/Time in an XML file What format do I use for Date/Time when writing to an XML file using .NET? Do I simply use DateTime.ToString(), or do I have to use a specific format?
A: If you are manually assembling the XML string use var.ToUniversalTime().ToString("yyyy-MM-dd'T'HH:m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: How to be good in Data Structures and Analysis? I want to be good in Data Structures and Analysis esp. in Java. I often find myself very weak. What should I do to be good in it? Any good mental exercises?
A: For the analysis of the data structures, you need to study discrete mathematics (combinatorics) and statisti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Detecting jQuery UI autocomplete How can I detect whether or not an input box is currently a jQuery UI autocomplete? There doesn't seem to be a native method for this, but I'm hoping there is something simple like this:
if ($("#q").autocomplete)
{
//Do something
}
That conditional, however, seems to always retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I perform a nested Join, Add, and Group in LINQ? I have two objects, let's call them Input and Output
Input has properties Input_ID, Label, and Input_Amt
Output has properties Output_ID and Output_Amt
I want to perform the equivalent SQL statement in LINQ:
SELECT Label, Sum(Added_Amount) as Amount FROM
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |