text stringlengths 8 267k | meta dict |
|---|---|
Q: Change the class of an object at runtime I'm working with a CMS, Joomla, and there's a core class which renders a set of parameters to a form, JParameter. Basically it has a render() function which outputs some table-laden HTML which is not consistent with the rest of my site.
For issues of maintainability, and beca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Satellite Assemblies? Do I need to link default culture resource We would like to employ satellite assemblies to contain various locale dependent resource files.
Question is ... do we need to link the default culture?
We have a separate project which will contain all of our different culture resource files. As i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET client/browser URL I'm wondering how I can get the URL from the browser in ASP.NET.
I have a page that I use with globalization/localization, and I am redirecting (via server not code) from www.spanishversion.com to www.englishversion.com, but the URL is masked to still say www.spanishversion.com. I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I access query parameters in the request content body in javascript? If I use a GET to request a page, then I can access any query parameters from javascript using window.location.search. Is there a similar way to access query parameters which are in the request content body rather than the request location,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone: How to Programmatically Respond to SMS Messages After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to detect leaks under WinCE C/C+ runtime library? I know the possibilities of basic leak detection for Win32 using the crtdbg.h header, but this header is unavailable in the CE CRT library headers (i'm using the lastest SDK v6.1).
Anyone knows how I can automatically detect leaks in a WinCE/ARMV4I configuration... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is it considered bad to expose List? According to FXCop, List should not be exposed in an API object model. Why is this considered bad practice?
A: It's only considered bad practice if you are writing an API that will be used by thousands or millions of developers.
The .NET framework design guidelines are mean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: UIEvent passed into -[UIView hitTest:] I'm overriding the -hitTest: method in a custom UIWebView subclass. The UIEvent that gets passed to this method always has an empty set of touches ( [[event allTouches] count] is == 0 ). Shouldn't there be touch information in the UIEvent object or is this a bug?
I've tried oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Google street view URL Hi I have the address of a property and my application can launch a browser to go to http://maps.google.com?q=searchStringHere. If a good match is found it will take it directly there. Is there any thing I can append to the url to make it switch to streetview without having the exact coordinat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: REST returning an object graph I am new to the REST architecural design, however I think I have the basics of it covered.
I have a problem with returning objects from a RESTful call. If I make a request such as http://localhost/{type A}/{id} I will return an instance of A from the database with the specified id.
My ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why does jQuery wrap itself in a function? I was reading the jQuery source and I was wondering why the entire source file was wrapped in an anonomous function.
(function(){
...
})();
Is this something which helps not to pollute the global namespace? Why is it there and how does it work?
A: You're right that it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Starting and stopping a forked process Is it possible for a parent process to start and stop a child (forked) process in Unix?
I want to implement a task scheduler (see here) which is able to run multiple processes at the same time which I believe requires either separate processes or threads.
How can I stop the exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSString property: copy or retain? Let's say I have a class called SomeClass with a string property name:
@interface SomeClass : NSObject
{
NSString* name;
}
@property (nonatomic, retain) NSString* name;
@end
I understand that name may be assigned a NSMutableString in which case this may lead to errant behavi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "335"
} |
Q: Unable to Connect to SQL Server 2005 Db From Vista x64 Windows Service I'm trying to connect to a remote SQL Server 2005 db from a .NET Windows service running in Vista Home Premium x64. I can access the remote db from a console app with no problem. I can connect to a local db from the Windows service with no proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you implement the ? help, where user clicks ? and then clicks a control for more help? I don't even know what this is called. But some Windows apps used to have a "?" near the X in upper right corner. You could click that and then click on something on the screen and get help.
Anyone know what that's called o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: printing a list of persons with more than one home, each home with more than one phone number I have a class Person which can have several Homes, each one with one or many Phone numbers.
I have defined the classes, but now i am trying to create a view wich list every person, with all its homes and all the phone numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database operation that can be applied repeatedly and produce the same results? I'm drawing a blank, or as some would say, having a senior moment. I know there’s a formal definition and a name for the concept where a db operation (stored procedure) that runs in a database will yield the same results if run repeatedl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Spinning Background Tasks in Rails What is the preferred way to create a background task for a Rails application? I've heard of Starling/Workling and the good ol' script/runner, but I am curious which is becoming the defacto way to manage this need?
Thanks!
Clarification: I like the idea of Rake in Background, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: deploying resource files from xcode How does one copy resource files (config/data/image) files to an applictions home directory on the iPhone.
A related question Loading Data Files on iPhone?, received an answer "just add them to your project; Xcode will copy them to the .app bundle when it builds your application".... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Different spellings of Chanukah Regex Hannuka, Chanukah, Hanukkah...Due to transliteration from another language and character set, there are many ways to spell the name of this holiday. How many legitimate spellings can you come up with?
Now, write a regular expression that will recognise all of them.
A: Call me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: ArcGIS Server - snap a point to a line If I have a point, and a road network, how do I find the nearest point ON the road? i.e. this is like snapping the point to a line/road.
I am using ArcGis server 9.3 with Java 5 and Oracle 10g. I am using the ST functions and NetworkAnalyst via the java api.
Thanks.
A: The pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Clojure - Side Effects Happening Out Of Order While dabbling in Clojure I've written a very basic program to echo whatever the user types into it. However, it doesn't run in a way that I'm perceiving to be natural. Here's the code:
(defn goo []
(print "echo> ")
(def resp (read-line))
(print resp)
)
I would ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ArcGIS Server - compare routes I've got a list of points, and a route that an external provider has generated through those points.
I would like to generate a route using those same point with my own road network.
Then I want to be able to detect if there is any significant difference between the two routes.
One ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Barebones Linux Server Install Whats the simplest way to get a barebones linux server installed?
barebones = just enough to get ssh and package manager.
Current I've been using CentOS with server install and removing any packages that I know i do not want installed.
But is there a better way? I just want a simple ss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to gracefully deal with failed future feature (__future__) imports due to old interpreter version? How do you gracefully handle failed future feature imports? If a user is running using Python 2.5 and the first statement in my module is:
from __future__ import print_function
Compiling this module for Python 2.5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Fast eclipse mode for PHP Does anybody know of a fast PHP mode for eclipse? I have tried the Aptana PHP mode, and PDT, but neither can place a character in under a second, which is no way to write code.
Its probably due to my editing on a network drive, but it seems silly that an editor would depend so heavily on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does Func and Action Delegates only take 4 arguments? Why 4? I know its in the documentation as 4, but that just seems strange.
A: I'll go out on a limb and say it's because someone needed an Action or Func delegate somewhere in the framework with 4 arguments and no one has yet needed one with 5. Alternativel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I set a default sort order for an NSTableView? I've got a cocoa app that's got a TableView with bindings to a model through an NSArrayController.
The app works as I want, but the default sort order of the table is wrong.
buildwatch http://public.west.spy.net/BuildWatch.png
I typically start the program and cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WPF ListBox DataTemplate and Image Question I have a ListBox with a StackPanel that contains an image and label.
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" IsItemsHost="True" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some recommended Common Lisp Web Servers options? So far I've only tried Hunchentoot and heard about AllegroServe, ABCLweb, though I wouldn't know how they compare in performance. I was wondering, what is currently the best option for deploying a Common Lisp web app in a production environment?
A: There is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Round Robin Assignment implementation (database) I'm currently in the process of implementing a number of different assignment algorithms for a SalesLead <--> SalesPerson situation. The general idea is quite simple:
*
*A SalesLead signs up on a public website
*The code automatically assigns the SalesLead to a Sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: 64-bit Support in C++ Builder I'm looking at upgrading the Borland/Codegear/Embarcadero C++ builder suite we use for some of our code. I would like to see 64-bit support but that doesn't seem to be a feature in the 2009 edition. I swear I saw a roadmap suggesting that there would be a new release in mid-2009 which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scale image in flash to match size defined in html I have a flash movie that loads images dynamically from an xml file. I want to re-use this .swf file on different pages, however the images on page1 are all 400 x 200 and the images on page2 are all 745 x 422. When i try to reuse this on another page, the loaded i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a .NET implementation of an XRI resolver? In order to avoid delegating XRI resolution to an XRI resolver proxy like xri.net, is there an open source .NET implementation of an XRI resolver?
There is an xri4j library that might be ported to .NET, and in fact I started on that effort, but it looked like there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Steve Sanderson's "Partial Request" I have followed the blog post written by Steve Sanderson at blog.codeville.net/2008/10/14/partial-requests-in-aspnet-mvc. It all work fine when follow it exactly but I was hoping that someone may have looked at it and be able to assist me in adapting it slightly.
I basically have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: clear sql server replication files We're doing a full backup of each of our production databases every night.
We also have an hour replication occuring during the day to a report database.
It looks like the unc share ran out of space today. Is there an automated delete feature for the replication files? Or do I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: flush a buffer before program termination via a finalizer I keep a cache of transactions to flush (to persistent storage) on the event of a watermark or object finalization. Since __del__ is no longer guaranteed to be called on every object, is the appropriate approach to hook a similar function (or __del__ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP and Zend framework How can I easily implement queries in Zend framework?
A: Check this document:
Zend Framework Database Quick Start (PDF)
A: You can use doctrine2
Doctrine project.
There is a module compatibile with ZF3
DoctrineModule.
You can use QueryBuilder that brings creation of query to object manipula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Scientific libraries for Lua? Are there any scientific packages for Lua comparable to Scipy?
A: One can always use Lunatic Python and access scipy inside lua.
> require("python")
> numpy = python.import("numpy")
> numpy.array ... etc ..
A: You have some options:
*
*Numeric Lua - C module for Lua 5.1/5.2, provi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Tidier way of trying to import a module from multiple locations? Is there a way to tidy-up the following code, rather than a series of nested try/except statements?
try:
import simplejson as json
except ImportError:
try:
import json
except ImportError:
try:
from django.utils i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to make an image center (vertically & horizontally) inside a bigger div I have a div 200 x 200 px. I want to place a 50 x 50 px image right in the middle of the div.
How can it be done?
I am able to get it centered horizontally by using text-align: center for the div. But vertical alignment is the issue..
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "434"
} |
Q: What's the best way to make a deep copy of a data structure in Perl? Given a data structure (e.g. a hash of hashes), what's the clean/recommended way to make a deep copy for immediate use? Assume reasonable cases, where the data's not particularly large, no complicated cycles exist, and readability/maintainability/e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: What has made Adobe Flex more “acceptable” than its predecessors? I have been building enterprise software for the last 10 years. In this time we have seen enterprise applications move from client server to thin clients. We have also seen the move to hosted solutions, albeit under a few names (asp, SaaS, cloud com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSSound on the iphone I've been looking for a while how to play sound on the iphone, and I think it's something along the lines of:
[[NSSound soundNamed:@"cat.mp3"] play];
But the NSSound is on the AppKit ... any suggestions ? I know there is a really simple answer to this, but today my searches are not rendering a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Architectural Suggestions in a Linux App I've done quite a bit of programming on Windows but now I have to write my first Linux app.
I need to talk to a hardware device using UDP. I have to send 60 packets a second with a size of 40 bytes. If I send less than 60 packets within 1 second, bad things will happen.
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I prevent GD from running out of memory? I'm not sure if memory is the culprit here. I am trying to instantiate a GD image from data in memory (it previously came from a database). I try a call like this:
my $image = GD::Image->new($image_data);
$image comes back as undef. The POD for GD says that the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JPA cascade options at runtime I'm trying to make an application that keeps an object model in sync with a database by observing all changes and then immediately persisting the objects in questions. Many of the object in the model have children in large lists or trees.
When I load an object from the database, I rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tomcat 6 Default Buffer Size Is there a way to set the default buffer size for JSPs in Tomcat? I know I can set them on every page, but am hoping there's a global option somewhere.
A: Short answer: No.
Long answer: Perhaps, with some hacking...
*
*You'd have to build Tomcat yourself after editing this class: Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: implement listener <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<title>YUI Calendar Control Example</title>
<link rel="stylesheet"
type="text/css"
href="yui/build/calendar/assets/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE not wrapping text around images I have a page with this HTML:
<p>
<img src="images/ih01.jpg" width="80" height="110" align="left" />
This course overs basic human anatomy and physiology, including the major
body systems and their functions. When you have completed this course you
will be able to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF ListBox Image Selected the saga continues Ok in my ListBox scrolling images w/ text, etc. the saga continues. When I click one of the items, to select it, that runs a process to open a web browser and go to a specific URL. The problem I'm having now is that when the WPF app loses focus, and the web browser opens... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can i create a lookup in Django? I have a Question model & Form, one of the fields in this model is userid=ForeignKey(User), this Works perfectly well on the Question Model, am able to pick the user from a drop down.
But kind a tricky when i want to list the question from the model, which is the best way to loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Getting the Value of a UITextField as keystrokes are entered? Let's say I have the following code:
IBOutlet UITextField* nameTextField;
IBOutlet UILabel* greetingLabel;
I'd like the greetingLabel to read "Hello [nameTextField]" as soon as the user presses any key.
What I need basically is the iPhone equivalent of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: How to disable Response.Buffer this seems so silly - i must be missing something obvious. I have the following code (just as a test):
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
void ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The Definitive C++ Book Guide and List This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year.
Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without study... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4230"
} |
Q: C++ 2D Arrays of an Object Constructor In my Dev C++, I am trying to create a 2D Array class that acts like a Grid.
But one of the problem is I am unsure what do for the constructor.
When I try to compile, I get the following errors:
In constructor 'Grid::Grid(int,int)':
'sqaures' is not a type
'yPos' cannot appear ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting up a Mac for programmers I recently switched over to a MacBook Pro so I'm still really new at Mac software ecosystem. What is the best guide or what tips do you have to quickly get adept at using Mac for developing on both Mac/Unix and MS platforms (*.NET, SharePoint, SQL Server, etc) using VMWare Fusion? Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to change Visual Studio Auto Format Is there any way to change Visual Studio Auto formatting options? Like VS by default uses close bracket format for Javascripts.
A: Tools -> Options -> Text Editor -> JavaScript
A: For Visual Studio 2013:
Tools -> Options -> Text Editor -> JavaScript
There you can can cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Free Ajax Framework for ASP.Net Easy to use and code I would like to know is there any Free Ajax Framework other than AjaxPro and Microsoft Ajax Framework for ASP.Net 2.0. The feature that I am looking for is ease of use as provided by Microsoft Ajax Framework and speed as provided by AjaxPro.
A: If by "Ajax framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any programming languages with functions with variable arguments not at the end? Python, C++, Scheme, and others all let you define functions that take a variable number of arguments at the end of the argument list...
def function(a, b, *args):
#etc...
...that can be called as followed:
function(1, 2)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone Simulator Default Hardware Version I have been playing around with the iPhone SDK recently.
At first I wasn't taking advantage of anything that required version SDK version 2.2.
However, I recently started using some features that were added or modified in 2.1 and 2.2.
I installed the new 2.2 SDK and changed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to implement eigenvalue calculation with MapReduce/Hadoop? It is possible because PageRank was a form of eigenvalue and that is why MapReduce introduced. But there seems problems in actual implementation, such as every slave computer have to maintain a copy of the matrix?
A: PageRank solves the dominant eigenve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What's wrong with Copy Constructors? Why use Cloneable interface? When programming C++ we used to create copy constructors when needed (or so we were taught). When switching to Java a few years ago, I noticed that the Cloneable interface is now being used instead. C# followed the same route defining the ICloneable i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ASP.NET TreeView javascript before postback I'm trying to code what I think is a fairly routine AJAX pattern using TreeViews and UpdatePanels. My situation is this:
I have a TreeView within an UpdatePanel. I have a Literal within another UpdatePanel. When the user clicks on a node within the TreeView, the contents o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is Map/Reduce? I hear a lot about map/reduce, especially in the context of Google's massively parallel compute system. What exactly is it?
A: From the abstract of Google's MapReduce research publication page:
MapReduce is a programming model and
an associated implementation for
processing and generating l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: javascript cannot call an element in array Ok, let me explain more... the goal is to make the checkbox checked if there's a change on select. The actual code was:
function checkit(date)
{
document.forms[0].date.checked = true;
}
<input type="checkbox" name="date[]" value="2008-08-14">Aug 14, 2008<br>
<select n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I determine what target is calling my current target in Nant? I am modifying a Nant build script to run some unit tests. I have different targets for locally run tests and tests to be run on team city.
<target name="run-unit-tests">
<property name="test.executable" value="tools\nunit\nunit-console.exe"/>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validating Kana Input I am working on an application that allows users to input Japanese language characters. I am trying to come up with a way to determine whether the user's input is a Japanese kana (hiragana, katakana, or kanji).
There are certain fields in the application where entering Latin text would be inapp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Castle Windsor are there any downsides? I have been looking into the Castle project and specifically Windsor. I have been so impressed with what is possible with this technology and the benefits of having a such a loosely coupled system are definitely apparent. The only thing I am unsure of is if using this method h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: What is the best way of including a JS file from JS code? What is the recommended way of including a Javascript file from another Javascript file?
A: Most people add the JavaScript file to the head of the document:
<script type="text/javascript">
var newfile=document.createElement('script');
newfile.setAttribut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using relative path for a static image in a Jfree report template I have a JfreeReport Application which run under Tomcat inside a jar. In the report template (which exists outside the jar) I have the following:
file:///var/lib/tomcat5.5/webapps/Reports/images/logo.gif
But then I get exception:
org.jfree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HInclude Caching problem on Internet Explorer I've been using HInclude (http://www.mnot.net/javascript/hinclude/) for sometime now and its working great, but there is one problem though. The part of my site which is fetched using HInclude doesn't get refreshed everytime I hit the back button in Internet Exploer (6.x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does git have an equivalent for the bazaar automv plugin? The only distributed revision control system I've used on my projects is bazaar. I don't know much about git and mercurial except how to do checkouts. The reason I like bazaar is the automv plugin. It detects when I've moved/deleted files manualy (from comman... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I POST LF with curl command line tool? I'm trying to POST to the HTTP gateway of an SMS provider (Sybase 365) using CURL from a Linux shell script.
I need to pass the following data (note the [ ] and LF characters)
[MSISDN]
List=+12345678
[MESSAGE]
Text=Hello
[END]
If I submit a file using the -F parameter, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Initializing DataSets in VB.NET Is it necessary to use "Nothing" keyword to initialize a DataSet in VB.NET?
A: Well if you set the variable to "Nothing" then you're not initialising an actual DataSet object at all - you're just setting the value of the variable to a null reference.
For an instance or static variabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to post with update panel and re-rout its response data I implemented a save-draft trick using an update panel whereby I handle the updatepanel's asynch postback on the server side and then to avoid resending the same html data I throw an exception with the current datetime as message and then capture it on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where to download and install Oracle Directory Manager? Would someone please tell me specifically where can I download Oracle Directory Manager component? I know it's in one of the Oracle 10g discs but which one? Database, Client or Companion CD.
A: If you search for odm or oidadmin you get a few pointers, such as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uniquely identify an instance of a JSR-168 portlet I am writing a JSR-168 portlet that can be added to a container multiple times. Each container (Liferay, JBoss, etc.) has its own internal way of differentiating between multiple instantiations of the same portlet.
I, however, would like to uniquely identify my port... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delphi - Displaying All Image Format Im a newbie programmer in Delphi. I need help, I have a small project which I need to display all kind of image format.
Please suggest what should I do or any component in delphi that support all image format? thanks for the help in advance.
A: Have a look at the GraphicEx libra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: show the value of the graph when cursor is placed on the graph I am using jfreechart to draw the graphs. I need to show the value when the cursor is placed on the graph.
A: Use the ToolTipManager. If you can register the graph as a component, you can assign a specific tooltip to it which will be displayed automatic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I speed up this linq to sql function? I have a function (called "powersearch", the irony!) that searches for a set of strings across a bunch(~ 5) of fields.
The words come in as one string and are separated by spaces.
Some fields can have exact matches, others should have "contains".
(Snipped for brevety)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: linux fcntl - unsetting flag How do i unset a already set flag using fcntl?
For e.g. I can set the socket to nonblocking mode using
fcntl(sockfd, F_SETFL, flags | O_NONBLOCK)
Now, i want to unset the O_NONBLOCK flag.
I tried fcntl(sockfd, F_SETFL, flags | ~O_NONBLOCK). It gave me error EINVAL
A: int oldfl;
oldfl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: jQuery Ajax: return value to caller? I have some jQuery code. I have called an Ajax function file, file.php, that has some fields, like:
<input type="radio" value="plz">Milk</input>.
Will I assign into again jQuery function? If so, how do I do it? I attached a sample file:
<html>
<head>
<LINK REL=StyleS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is Java's Cloneable Interface Not Generic? Java 5 introduced generics, and they were added to many interfaces in the java.lang package. However, Cloneable did not get generics. I wonder why?
Edit: In reply to the answers of @Jon and @litb, and the comment of @Earwicker, I was thinking Cloneable might be:
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Unable to implement the listener YAHOO.namespace("yuibook.calendar");
//define the lauchCal function which creates the calendar
YAHOO.yuibook.calendar.launchCal = function() {
//create the calendar object, specifying the container
var myCal = new YAHOO.widget.Calendar("mycal");
//draw the calenda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Can you run EJB 2.1 beans in OSGi? I have a J2EE 1.3 app that uses EJB 2.1 session and entity beans. Currently this app runs as an EAR file on JBoss. I'd like to switch to the SpringSource dm Application Server because of all the benefits that OSGi provides.
Does anyone know if there's an OSGi bundle that can act as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I pad a String in Java? Is there some easy way to pad Strings in Java?
Seems like something that should be in some StringUtil-like API, but I can't find anything that does this.
A: In Guava, this is easy:
Strings.padStart("string", 10, ' ');
Strings.padEnd("string", 10, ' ');
A: Found this on Dzone
Pad wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "498"
} |
Q: What's the difference between the 'ref' and 'out' keywords? I'm creating a function where I need to pass an object so that it can be modified by the function. What is the difference between:
public void myFunction(ref MyClass someClass)
and
public void myFunction(out MyClass someClass)
Which should I use and why?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "999"
} |
Q: How to cast object from (object sender, ListViewItemEventArgs e) I am using the ListView Control with the following datasource List<MyObject>
On my listview control i have an OnItemDataBound
My question is how do get the current value of MyObject. Ie myObj[5].FirstName
protected void ItemsListViewDataBound(object s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Stacktrace information preserving paths of original source I am using C#.net for application development.
To log and debug exceptions, I use the stacktrace.
I executed my application on another machine, but when errors occur it refers to the path of my development machine.
Ex: D:\Projects\xyz.CS line no :12 _Error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you create a dropdownlist from an enum in ASP.NET MVC? I'm trying to use the Html.DropDownList extension method but can't figure out how to use it with an enumeration.
Let's say I have an enumeration like this:
public enum ItemTypes
{
Movie = 1,
Game = 2,
Book = 3
}
How do I go about creating a d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "731"
} |
Q: How to use unicode characters in Windows command line? We have a project in Team Foundation Server (TFS) that has a non-English character (š) in it. When trying to script a few build-related things we've stumbled upon a problem - we can't pass the š letter to the command-line tools. The command prompt or what not el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "352"
} |
Q: Firefox blurs an image when scaled through external CSS or inline style. When I visually scale an image, Firefox 3 blurs it. Firefox 2 and other browsers don't, which is the behavior I expect. This is especially lame for creating a web based game using png or gif sprites.
For example, when showing a 100x100 image in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Master Pages and Postback in ASP.NET How can we avoid Master Page from posting back the whole page?
A: Just to clarify - the update panel doesn't prevent a whole page postback or a full page lifecycle. It just causes that process to be completed in the background "unseen" to the user. The only difference is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to switch sql-2005 Select Case When T-sql Naming? select
(Case Remark01
When 'l1' then type1
when 'l2' then type2
end) AS [?] --Remark .....want to switch name in here
from mytable
Example ....
select
(Case level
When 'l1' then type1 ('l1' mean check constant string)
when 'l2' then type2(('l2' mean check cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying splash screen in Delphi when main thread is busy I'd like to display splash screen while the application is loading. However some 3rd party components block main thread during initilization for several seconds, which causes all forms not to update. Is it possible to have splash screen with own thread so i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Read .config file in another assembly Is there any possiblity to read a .config file in a dll assembly? At the moment I use OpenExeConfiguration on a Assembly.Location Property which seems to work. But I want to create separate .config files for different usages like ConfigModuleA.config, ConfigModuleB.config etc.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Starting Firefox using Process.Start: Firefox not starting when you set Usename and Password When I try to start Firefox using Process.Start and ProcessStartInfo (.NET) everything seems to work fine. But when I specify a username and password of another account (a member of Users), nothing seems to happen. The same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IntelliJ configuration directory Is there a way to configure the directory where all the configuration files are stored by IntelliJ IDEA (version 8.0.1)?
By default, these files are stored in %home%\.IntelliJIdea80... (or .IdeaIC12 etc.), but I want to define another location...
A: You can change this in you %idea ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: MVC where to render menu view here's what I'm trying to do :
On a page, I would have a LeftMenu that would be independent of the page, and a RightMenu that would depend on the page the user is currently on.
I want to use MVC from asp.net. I could use RenderPartial to render the menus but on the other hand, the View ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/388518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.