text stringlengths 8 267k | meta dict |
|---|---|
Q: How to change the size of view according to mainframe in SDI framework? I want to set the size of view according to the size of the mainframe in a SDI framework. That is to say when I change the size of mainframe, the size of view changes accordingly, so does the client area. How can I do this?
Thank you
A: Just ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatic Signing of Native Windows Mobile Apps Is there any certificate authority that allows for programmatic signing of windows mobile applications? At the moment my team uses Geotrust. Our build procedure looks like this:
*
*Build app
*"pre-sign" app with multi-step tool (
*fill out form and upload "pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VIM Ctrl-V Conflict with Windows Paste I am using VIM in Windows. The problem is that I want to use CtrlV as a visual mode. However, this key has conflict with Windows paste. How can I reset this key back to VIM visual mode instead of pasting. I prefer to set this in my _vimrc configuration file.
A: I'm not sure th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Are scripts "open source" by definition? The other day, I tweaked a script for a friend's World of Warcraft addon. He was surprised that you could edit the addons—that they were "open source." (Word of Warcraft addons are written in the Lua scripting language) I found myself wanting to say "Sure you can—all scripts ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can C++ template do this for conditions to improve code? I want do this:
func(conditionA ? pa1 : pa2, conditionB ? pb1 : pb2, conditionC ? pc1 : pc2);
In C style function, there is no problem. But if func() is a template function, compiler will report errors.
Here pa1 and pa2, ... are different class and have a stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which is more efficient in Haskell; pattern matching or nested if/case statements? I'm just curious about the efficiency of pattern matching in Haskell. What is a simple case of where pattern matching would be better than nested if/case statements and then the converse?
Thanks for your help.
A: I didn't confirm t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Replace tabs with spaces in vim I would like to convert tab to spaces in gVim. I added the following line to my _vimrc:
set tabstop=2
It works to stop at two spaces but it still looks like one tab key is inserted (I tried to use the h key to count spaces afterwards).
I'm not sure what should I do to make gVim conve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "444"
} |
Q: How do I change the icon of my Shoes App? I was wondering if it was possible to change the my Shoes app's icon? I imagine its style-oriented, but I haven't been able to find anything on it.
Is this possible?
A: You can do it in Green Shoes, but you have to go under the hood a bit. Here's some very simple code I wro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create NSColor instances that exactly match those in a Photoshop UI mockup? My UI designer gives me great UI mockups created in Photoshop. I want to exactly match the colors in the mockup, but every time I create a color using the -colorWithCalibratedRed:green:blue:alpha: method of NSColor, the colors do no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: LISP very simple list question Im learning lisp and im pretty new at this so i was wondering...
if i do this:
(defparameter *list-1* (list 1 2))
(defparameter *list-2* (list 2 3))
(defparameter *list-3* (append *list-1* *list-2*))
And then
(setf (first *list-2*) 1)
*list-3*
I will get (1 2 1 4)
I know this is beca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Primer for X.509 certificates on Windows I am presently studying the topic of encrypting and signing SOAP messages via WSE 3.0 or WCF. Since I have not participated in distributed application development involving the public Internet, I find my knowledge on X.509 ceritificates lacking and how it works in the Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/426994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: The key 'UserID' does not exist in the appSettings configuration section All of a sudden I start getting this error while trying to open 2 of some 10+ forms in my Window Forms application in designer.
To prevent possible data loss before loading the designer, the following errors must be resolved:
The key 'UserID' d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide a primary key field in a Django form I'd prefer my primary key field weren't visible in my edit page. If I make it an AutoField, it isn't rendered in the HTML form. But then the primary key value isn't in my POST data either. Is there a simple way to render the AutoField as a hidden field?
A: If you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: VMR-9 Renderless mode: SelectAtPosition() crashes How to solve the SelectAtPosition() crash when using VMR-9 in renderless mode?
A: The SelectAtPosition() crashing problem when renderless mode is used can be solved by implementing IVMRWindowlessControl9 interface in your custom-allocator.
*
*In addition to IVMR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to dynamically inject the attribute using IoC like Ninject or other IoC? I am extending my Object Property Value Diff but I realized if an object has too many properties I may not want to diff them all. So I came up with the
public class IgnorePropertyDiffAttribute : System.Attribute
{
}
so that I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine width of a string when printed? I'm creating a custom control, part of which is using the Graphics class to draw text to the form. Currently I'm using the following code to display it:
private float _lineHeight { get { return this.Font.Size + 5; } }
private void Control_Paint(object sender, PaintEve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can you set the value for the selecteddatakey of a gridview from codebehind? Currently I am highlighting the rows on my gridview through code behind. The problem is when I inserted a new data through formview, I put the highlight on the new data but if you click edit or delete if would go for either the first data o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Set Client Time Zone Equal to Server Time Zone Window App .Net C# My Client Application Receives data through WebService from a Remote Server. The Application is basically written in 1.1 Framework Windows Form.
All I want to do is to set my Client App TimeZone equal to Server TimeZone so that any Date Time re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scaffolding for PHP Is there any thing in PHP to create basic scaffold, like in Rails?
EDIT: I need something to prototype quickly..
A: Some frameworks like Symfony, CakePHP, Akelos, CodeIgniter and others have support for scaffolding.
However if you don't want to use a framework you can try phpScaffold which gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Implementing Java's getResponseCode() in C? If it's any help, there is also a similar class in C#'s WebRequest. Although I do not want it in java or .NET, i am wondering how to implement this in native C/C++ code (for windows).
for reference:
try {
URL url=new URL("http://google.ca");
HttpURLConnection con=(HttpURL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scripting LMMS from Python Recently I asked about scripting FruityLoops or Reason from Python, which didn't turn up much.
Today I found LMMS, a free-software FruityLoops clone. So, similarly. Has anyone tried scripting this from Python (or similar)? Is there an API or wrapper for accessing its resources from outside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Justify Text in a HTML/XHTML TextArea I am currently trying to justify text in a textarea, unfortunately the CSS:
text-align: justify;
Doesn't work on the text like center, left and right do. I've tried this in both Firefox 3 and IE 7 with no luck.
Is there any way around this?
A: I dealt with same issue and found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Any reason I couldn't create a language supporting infix, postfix, and prefix functions, and more? I've been mulling over creating a language that would be extremely well suited to creation of DSLs, by allowing definitions of functions that are infix, postfix, prefix, or even consist of multiple words. For example,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java SSL socket based client/server application For two way verification is it necessary to import certicate from both sides?
A: The short answer is no, you don't need it.
Instead of importing each side's certificate, what should be imported in both client and server is CA certificate, so when server or client cert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to set the Principal in an ASP.Net app I am writing a web app for a client. Users will have a one-time key that they will use to initially identify themselves to the app. Once the app verifies that the key is valid it will take them to a page where they can create a normal account to use for all subsequent login... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to format a string of HTML programatically I've got unformatted html in a string.
I am trying to format it nicely and output the formatted html back into a string.
I've been trying to use The System.Web.UI.HtmlTextWriter to no avail:
System.IO.StringWriter wString = new System.IO.StringWriter();
System.Web.UI.Ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why can I write to a particular directory off of Program Files with UAC on? This is a strange one to me. Let me list the setup:
*
*Application with a manifest (ie: wont get pushed to virtual store)
*UAC is turned on (can't write to other program files directories, or other areas, and uac prompt appears)
*Can w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.StackOverflowException was unhandled (MVC Model BINDING) I started getting this error when posting the form back with Model Binder. To test the problem I reduced the postback to one string property of the model but i still get the overflow error. Can anyone suggest what would cause this?
UPDATE
The problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does each row in a silverlight dataGrid have to have the same "RowDetailsTemplate"? I'm defining a datagrid's RowDetailsTemplate in the following way:
RowDetailsTemplate="{StaticResource defaultTemplate}"
where
<UserControl.Resources>
<DataTemplate x:Key="defaultTemplate">
<StackPanel>
<TextB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are functional languages and programming models like MVC just the next big fad? Of late, I've been hearing many good things about functional programming languages such as F#. Additionally [and unrelated], I'm also noticing MVC is starting to get a lot of exposure - perhaps since the introduction of Silverlight/WPF.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to suppress a prompt window to continue further As per my application requirement I need to open each form in Access DB to count Activex controls using vb.net. My problem is, one form in the DB is prompting for user input and because of that my application stops until user intervention.
Is there any way to igno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does anyone know of a Python equivalent of FMPP? Does anyone know of a Python equivalent for FMPP the text file preprocessor?
Follow up: I am reading the docs and looking at the examples for the suggestions given. Just to expand. My usage of FMPP is to read in a data file (csv) and use multiple templates depending o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Binding ASP.Net Menu Control to a Collection i am trying to use this code to bind my asp.net menu control to a collection..
but its giving me an error that my collection is now IHierarchyEnumerable.. which I understand why too..
StringCollection sc = pos.getAllmembers();
Menu1.DataSource = pos.getAllmembe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a "slug" in Django? When I read Django code I often see in models what is called a "slug". I am not quite sure what this is, but I do know it has something to do with URLs. How and when is this slug-thing supposed to be used?
(I have read its definition in this glossary.)
Slug
A short label for something, c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "750"
} |
Q: Algorithms for Simulating Fluid Flow I've got a game idea that requires some semi-realistic simulation of a fluid flowing around various objects. Think of a pool of mercury on an irregular surface that is being tilted in various directions.
This is for a game, so 100% physical realism is not necessary. What is mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I timestamp simultaneous function calls in Python? I have a read function in a module.
If I perform that function simultaneously I need to timestamp it.
How do I do this?
A: I'll offer a slightly different approach:
import time
def timestampit(func):
def decorate(*args, **kwargs):
decorate.times... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Waiting for messages in Managed Code This is closely related to an earlier question.
In the managed world:
*
*How do I check if the current thread
has messages in its message queue?
*How do I yield to the OS and wait
for a message in the current thread
(like GetMessage or WaitMessage)?
I am looking for the man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: During Installation, where do the Various File Types go on Vista Installing my software on Windows XP was always easy. Everything went in the "c:\Program Files\myprogram" directory. This included:
*
*The executable program itself and any dlls.
*Readme.txt and License.txt
*The help files (.hlp or .chm or .pdf)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing "insertion point" cursor in WPF I need to create a "command line" look-and-feel in a WPF app. In WPF, text boxes use a blinking vertical line as the insertion-point cursor. In the command-line world, the insertion-point cursor is a grey rectangle.
Is there a way to change the look-and-feel of the insert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing a string as an argument to a controller I know this is probably really obvious, but I cannot figure out why I cannot pass a string argument to a controller like one would an int.
e.g.
//controller/action/2
public ActionResult Action(int someInt)
{
//somenumber != null
}
but when i pass a string in like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a GUID/UUID using iOS I want to be able to create a GUID/UUID on the iPhone and iPad.
The intention is to be able to create keys for distributed data that are all unique. Is there a way to do this with the iOS SDK?
A: In iOS 6 you can easily use:
NSUUID *UUID = [NSUUID UUID];
NSString* stringUUID = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |
Q: Preload images for jQuery Cycle Plugin I’m quite new to jquery and trying to figure out how to preload images for the jQuery Cycle Plugin.
I have 5+ large size images and I need those to be preloaded before starting the slideshow with Cycle plugin. Also I need to display a loading gif wile it preloads the images.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a good reference for Joomla 1.5 development? I've been hacking together some basic Joomla 1.5 components and modules recently and always every time I get into it, I end up tearing my hair out because I simply do not understand how the MVC pattern works. Some examples of the problems I run into:
*
*How do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I determine if a URL redirects in PHP? I saw someone ask a question about detecting if a URL redirects from groovy and perl but couldn't find anything on PHP.
Anyone know of somewhere I could find that code that does this?
A: Actually, I found this works best:
function GetURL($URL)
{
$ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Can Git hook scripts be managed along with the repository? We'd like to make a few basic hook scripts that we can all share -- for things like pre-formatting commit messages. Git has hook scripts for that that are normally stored under <project>/.git/hooks/. However, those scripts are not propagated when people do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "480"
} |
Q: Is it possible to predict a stack overflow in C on Linux? There are certain conditions that can cause stack overflows on an x86 Linux system:
*
*struct my_big_object[HUGE_NUMBER] on the stack. Walking through it eventually causes SIGSEGV.
*The alloca() routine (like malloc(), but uses the stack, automatically f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: NSNumberFormatter for rounding up float values I have a CGFloat value which I want to round to 3 digits after the decimal point. How should I do this?
Thanks.
A: If you want to go the NSDecimalNumber route, you can use the following:
NSDecimalNumber *testNumber = [NSDecimalNumber numberWithDouble:theFloat];
NSDecim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper Variable Declaration in C# I noticed some people declare a private variable and then a public variable with the get and set statements:
private string myvariable = string.Empty;
public string MyVariable
{
get { return myvariable; }
set { myvariable = value ?? string.Empty; }
}
and then some people ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I make a "limited-fixed" div using HTML and JavaScript? Given the existence of other divs on a page, how would one create a div that acts as if it's fixed-width within a certain domain of a web page? Example: the commenting system on Slashdot, which acts like a fixed-width div for purposes of scrolling along ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you nest C preprocessor directives? For instance, is the following possible:
#define definer(x) #define #x?
A: No, you can't do that.
The pound (#) symbol has a different meaning while in a definition. it means - if this is an argument, make it a string by quoting it.
A: You cannot nest C preprocessor directi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Better (non-linear) binning The last question I asked concerned how to bin data by x co-ordinate. The solution was simple and elegant, and I'm ashamed I didn't see it. This question may be harder (or I may just be blind).
I started out with about 140000 data points and split them into 70 groups equally spaced alon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lambda ForEach() Index Position This is somewhat asp.net MVC related only for example purposes but I was hoping to achieve something like this:
new SelectList(ViewData.Model.Formats.ToList().ForEach(x => index + " - " + x.Name), "ID", "Name");
Basically trying to be smart and return "index" as a number 1 - n where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to outsource a periodic task (i.e., in the 'cloud')? Say a client is happy with the work you've done creating a script to accomplish a task that gathers some information and outputs a hefty database file. Then, they're interested in having the task run periodically (approximately monthly) without human intervent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript Drag and Drop Grid I'm looking for a script that would allow me to have a grid of draggable divs (used to organize image thumbnails). So when one div is dragged over another, the divs would shift to create an empty spot to drop the div.
I know jQuery has a drag and drop lib, but it doesn't seem to allow f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Use Single Row Query with MySQL and PHP say I have this
$result = mysql_query('SELECT views FROM post ORDER BY views ASC');
and I want to use the value at index 30 I assumed I would use
mysql_data_seek($result, 30);
$useableResult = mysql_fetch_row($result);
echo $useableResult . '<br/>';
But that is returning my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to have an Ant INCLUDE fileset take priority over an EXCLUDE If I have a fileset like this:
<fileset dir=".">
<exclude name="classes/*"/>
<include name="**/zar.class"/>
</fileset>
The exclude takes precedence over the include and I don't end up with any classes. [since for this hypothetical example, zar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can I just make up attributes on my HTML tags? Am I allowed to add whatever attributes I want to HTML tags such that I can retrieve their value later on using javascript? For example:
<a href="something.html" hastooltip="yes" tipcolour="yellow">...</a>
If that's not going to work, how would you store arbitrary piec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: ASP.Net Session Timeout detection: Is Session.IsNewSession and SessionCookie detection the best way to do this? When my ASP.Net session times out (and forms authentication as well) and I try to hit a page, I am automatically redirected to my default login.aspx page.
Before the page loads I need to determine whether... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why does std::auto_ptr operator = trash objects? Seem to be having an issue with std::auto_ptr and assignment, such that the object referenced seems to get trashed for some reason.
std::auto_ptr<AClass> someVar = new AClass(); // should work, but mangles content
std::auto_ptr<AClass> someVar( new AClass() ); // wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to know if I am in a postback? I've read in JSF docs that ResponseStateManager has a isPostBack() method. How (and where) can I have an instance of ResponseStateManager?
A: Indeed, before jsf1.2, isPostBack was obtained through the requestScope of the current instance of FaceContext.
Since JSF1.2, The ResponseS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How Do I Get External LIbrary Like Html Agility To Work In My C# Project? How do I use a free library, such as Html Agility in my Visual Studio Express C# programs? Obviously I have downloaded it. What I need to know is how do I set it up so I can simply use a "using" statement to link up with the classes. Html A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is There Something Wrong with IE's CSS Top And Left? The following jQuery code works just fine for me with Safari, Opera, FF2, and FF3. It positions a busy DIV (with an animated busy GIF) on top of a FORM element on my web page. The problem is that in IE6 and IE7, it gets width and height properly, but doesn't seem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ninject on asp.net Session state I'm working with Ninject on a web application, using the BasePage and BaseMaster from the frameworks's integrations. What I would like to do is have an object injected and have a new instance created on each session. I've looked at the OnePerRequest behavior and it's close, but not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access a COM Interface method C++ Both:
*
*CLSID
*IID
Having specified the above, and using:
*
*CoCreateInstance()
To returning a single uninitialised object of the class specified by the CLSID above.
How can I then access an Interface's method from C++?
Without:
*
*ATL
*MFC
*Just plain C++
Afterward... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to import a very large query over phpmyadmin? if my host does not allow me to upload a file directly to my mysql folder
and i can only do so throught phpmyadmin? are there any alternatives aside from its native import feature so that my connection would not time out while uploading a query that's around 8mb?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Block without spinning in Java? Certain methods in Java will block until they can do something, like ServerSocket.accept() and InputStream.read(), but how it does this is not easy for me to find. The closest thing I can think of is a while() loop with a Thread.sleep() each time through, but the longer the sleep peri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: HttpListener Server Header c# I am trying to write a C# http server for a personal project, i am wondering how i can change the returned server header from Microsoft-HTTPAPI/2.0, to something else?
public class HttpWebServer
{
private HttpListener Listener;
public void Start()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Reading from 2 sockets in 2 threads causes data loss I have a multi-threaded Windows C++ app written in Visual Studio 6.
Within the app 2 threads are running each trying to read UDP packets on different ports. If I protect the reading from the socket with a critical section then all the date read is fine. Without ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asdf-installing libraries from the command-line Coming from a Perl background, I have to say I prefer cpan Foo::Bar to the having to start sbcl, (require :asdf-install) and finally (asdf-install:install :foo-bar). Is there anything more convenient than this around?
A: There is clbuild:
http://common-lisp.net/proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to wait for a thread to finish its work I have a console application. A class (let's say Worker) does some work in a separate thread and throws an event when it finishes. But this never happens because the execution ends instantly. How can I wait for the thread to finish and handle the event after it throws?
sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Can I Get C# To Distinguish Between Ambiguous Class Names? How can I get C# to distinguish between ambiguous class types without having to specify the full HtmlAgilityPack.HtmlDocument name every time (it is ambiguous compared to System.Windows.Forms.HtmlDocument)?
Is there a way to make C# know that I am ALWAYS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using Me (VB.NET) keyword is it required or not? I'm currently working on a web application (ASP.NET) and some of the pages that are included were created by other programmers, what I noticed is, they are not using "Me(VB.NET)" keyword to access controls, while on my side I used it in every page that I've created. J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Text in PDF render of Reporting Services report "overprints" A report I have been working on some time ago started mis-rendering around Christmas. Some of the text boxes on it suddenly started rendering each character in their text content on top of each other, as if the printing of each character no longer "advance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Persisting Money into the database. Design decision I need a table to store the state of a financial transaction.
The state of this transaction can be roughly modelled by this class.
class FinancialTransaction
{
Integer txId,
Money oldLimit,
Money newLimit,
Money oldBalance,
Money newBalance,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Garbage collection behavior with isolated cyclic references? If I have two objects on the heap referring to each other but they are not linking to any reference variable then are those objects eligible for garbage collection?
A: Check this out: How does Java Garbage Collector Handle Self References.
You may want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Delphi 2009, DbExpress with Oracle : Unable to load oci.dll i've setup a demo to test datasnap 2009, and i've got a problem with dbexpress.
The dbexpress error message, (same at design time or runtime) :
"Cannot load oci.dll library (Error code 127). The OCI.dll library may be missing from the system path."
I'm usin... | {
"language": "fr",
"url": "https://stackoverflow.com/questions/427383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get jQuery to pass custom arguments to asynchronous AJAX callback functions? My page deals with many "Store" objects, each of them has a field called 'data'. However, this data is fetched via AJAX requests which may be parallely going on.
function Store(id){
this.id = id;
this.queryparam = 'blah';
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Deploying Django at Dreamhost I'm trying to get the Poll tutorial working at my Dreamhost account (I don't have any prior experience of deploying Django). I downloaded the script I found here (http://gabrielfalcao.com/2008/12/02/hosting-and-deploying-django-apps-on-dreamhost/) at my home directory and executed it. N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unit testing and mocking email sender in Python with Google AppEngine I'm a newbie to python and the app engine.
I have this code that sends an email based on request params after some auth logic. in my Unit tests (i'm using GAEUnit), how do I confirm an email with specific contents were sent? - i.e. how do I mock t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the benefit of update instead of doing delete and then Insert in the same table I have a table say example "ABC", I have a row that needs to be stored in to this "ABC" table. I plan to update it instead of doing delete from the table and then insert. What is the impact that this will make on database? In, ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Console window display by argument I have a C# project building "winexe" that startup without console window.
However, I want to dispaly the console window and write stdout/stderr by giving a cmd line parameter. If it close, the application shutdown. For example: eclipse.exe -debug
How can it be done?
PS. I am using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to prevent to open a MS Access Database while reading data from forms To count Activex controls from MS-Access forms using vb.net I am using the connection as follws..
oDBEngine = oAccess.DBEngine
oDB = oDBEngine.OpenDatabase(Name:=strFullFileName, Options:=False, ReadOnly:=False, Connect:="")
and Openning the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataSet.Locale what it does? Can someone plz tell me what's the Use of DataSet.Locale and can it be used to solve this issue.
My Server is located in US and I am running a query against it. The Data contained in the table both at Remote Server(U.S) and Local are same.
The Problem is when I am retrieving the DataSet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Default.aspx being served when debugging locally Any ideas why the built in asp.net webserver insists on serving "/default.aspx" whenever you browse to the root "/"?
Even if you force the global.asax to redirect to "/" whenever "/default.aspx" is detected it will see "/" as a request to "/default.aspx" and an infini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there such thing CASE expression in JPQL? Let say there is a table:
TableA:Field1, Field2, Field3
and associated JPA entity class
@Entity
@Table(name="TableA")
public class TableA{
@Id
@Column(name="Field1")
private Long id;
@Column(name="Field2")
private Long field2;
@Column(name="Field3")
priva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Grouping SQL results by continuous time intervals (oracle sql) Hi I have following data in the table:
ID-----startDate----endDate
5549 2008-05-01 4712-12-31
5567 2008-04-17 2008-04-30 1
5567 2008-05-01 2008-07-31 1
5567 2008-09-01 4712-12-31 2
5569 2008-05-01 2008-08-31
5569 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can Window application continue to run despite computer going to standby mode? I am developing a Windows application using C#.net. This will accept the login details, validate the login and then keep running unattended till the time the computer is on.
This computer won't do anything else and go to standby mode afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to output names of ruby unit tests I have a unit test (example is modified Test::Unit documentation)
require 'test/unit'
class TC_MyTest < Test::Unit::TestCase
def test_something
assert(true)
end
end
When I execute it, I get:
Loaded suite C:/test
Started
.
Finished in 0.0 seconds.
1 tests, 1 assertion... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: EJB Transactions in local method-calls In the following setup, does method B run in a (new) transaction?
An EJB, having two methods, method A and method B
public class MyEJB implements SessionBean
public void methodA() {
doImportantStuff();
methodB();
doMoreImportantStuff();
}
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How can I get the source code of a Python function? Suppose I have a Python function as defined below:
def foo(arg1,arg2):
#do something with args
a = arg1 + arg2
return a
I can get the name of the function using foo.func_name. How can I programmatically get its source code, as I typed above?
A: dis is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "595"
} |
Q: Line completion with custom commands my Python program can be launched with a range of different options (or subcommands) like:
$ myProgram doSomething
$ myProgram doSomethingElse
$ myProgram nowDoSomethingDifferent
I want it to use auto-completion with so that if i type "myProgram d" it returns "myProgram doSomet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Fastest way to clamp a real (fixed/floating point) value? Is there a more efficient way to clamp real numbers than using if statements or ternary operators?
I want to do this both for doubles and for a 32-bit fixpoint implementation (16.16). I'm not asking for code that can handle both cases; they will be handled in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Programmatically open new pages on Tabs I'm trying to "force" Safari or IE7 to open a new page using a new tab.
Programmatically I mean something like:
window.open('page.html','newtaborsomething');
A: Have you already tried like
var open_link = window.open('','_blank');
open_link.location="somepage.html";
A: Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: java.awt.Color error I have this simple Jsp page:
<%@ page language="java" import="java.awt.Color"%> <%
Color background = Color.white;
%>
Which fails with following error:
java.lang.NoClassDefFoundError
at _text__jsp._jspService(/text.jsp:3)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to enumerate threads in .NET using the Name property? Suppose I start two threads like this:
// Start first thread
Thread loaderThread1 = new Thread(loader.Load);
loaderThread1.Name = "Rope";
loaderThread1.Start();
// Start second thread
Thread loaderThread2 = new Thread(loader.Load);
loaderThread2.Name = "Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Want VBA in excel to read very large CSV and create output file of a small subset of the CSV I have a csv file of 1.2 million records of text. The alphanumeric fields are wrapped in quotation marks, the date/time or numeric fields are not.
For example
"Fred","Smith",01/07/1967,2,"7, The High Street","Anytown","Anyc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it possible to hyperlink mail text to an Exe residing at a remote system in through C# windows application (mail sent through SMTP server)? Sending a mail through my windows application to a person "asking him to log on to another windows application that is installed in a remote server to work on it". In the mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: CompositeScript - Invalid Viewstate error I'm using the new CompositeScript feature that's available in the ASP.NET 3.5 SP1 for the ScriptManager.
When I test this with the ASP.NET Development Server it works fine but when I publish the site to my IIS webserver the combined files cannot be downloaded, I always get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding an interface name from an IP address I need to get the interface name by providing an IP address. There is no system call to get this.
I need an implementation for this in C or C++
Already the reverse of this is available on Stack Overflow, Finding an IP address from an interface name.
A: Sometimes, ip rout... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it possible to restore only the schema and stored procedures from a MS SQL database backup? I have a full MS SQL Backup file that I would like to extract the stored procedures and schema from. Is there a way to restore only the schema definitions and stored procedures without restoring the data/table rows?
A: I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/427526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.