text stringlengths 8 267k | meta dict |
|---|---|
Q: Function to know that a variable is string or number on foxpro I am having a difficult time telling that a variable is string or number on foxpro 6 or other version. I am new in this languages.
A: You can use the VARTYPE or TYPE functions - these are slightly different and you should review the documentation before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using .live() to make jQuery plugin affect new element added via Ajax I am building a stream (similar to Facebook wall) that inserts new posts via Ajax.
I also use the jQuery plugin Linkify to transform any link strings into a clickable element.
When a user enters a link, the post is immediately shown on the page (v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to show a marker with Google Maps API v3 + my own map tiles I've used the Google maps API v3 to display a map of the Rice Eccles Stadium floor plan at the University of Utah (where we hold our district science fair called Salt Lake Valley Science & Engineering Fair), I'd like to show a marker for a given table n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding span tag in Rails link_to I've looked on SO about how to add a <span> tag but I didn't see an example that placed the <span> where I want using Rails 3 link_to:
<a href="#" class="button white"><span id="span">My span </span>My data</a>
I tried something like:
<%= link_to(content_tag{:span => "My span&n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Where do I download Android kernel source code (2.2 froyo) I have downloaded Android source code (2.2 froyo) but it doesn't have the kernel source. Where do I download Android 2.2 froyo kernel source code?
Thanks in advance.
A: Here :
git clone git://android.git.kernel.org/kernel/common.git
A: Here is a direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I filter on composite keys? I need filter this view:
function (doc) {
if (doc.doc_type == 'asd'){
emit([doc.date, doc.string_key_0, doc.string_key_1], doc.list_field);
};
}
I do:
key_filter_0 = ['START_TIME', 'STRING0', 'STRING1']
key_filter_1 = ['END_TIME', 'STRING0', 'STRING1']
VIEW[key_fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to change the color and strike out the clicked listview item? I am using listview in my program that extends activity. I need to change the color of the clicked list item and strike out the clicked list item. How to do it? any help is really appreciated and thanks in advance...
A: You'll need to create your cus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my app filtered for Android 1.5 and 1.6 devices? Our last update for our application caused it to be filtered out for Android 1.5 and Android 1.6 devices. We did not change anything in our manifest (aside from the updated version code).
These similar questions did not help:
Android App no longer visible by A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server 2008 problem I have table in following structure...
ReturnID SumbitID Status
1 1 1
1 NULL 2
2 2 3
3 3 1
3 3 1
I want this output.....
RetunrID TotalAttempt Success
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Knockout.js and mapping plugin not deep translating I use a json object to handle my menus and breadcrumbs. Now below you can see that the first two "Navigation" nodes are observable, but the last one isn't. It is just a regular array for some reason. Does the mapping plugin not deep clone the object?
Firebug outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ninject and private constructors We're using Ninject for IOC.
All of our Repository objects can (and should be) mocked for unit testing. I'd like to enforce that all developers code only to interfaces when interacting with Repositories. For this, I'd like to make the constructors private and create static accessor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Corrupted Git Branch after suspected hard disk issue So I was having a problem with my hard disk (I think). Everytime I ran git log commands (when running Windows through VMWare Fusion for Mac) it would throw a fatal error causing VMWare to crash (something about unable to reach disk drive). Even if I booted to Bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery understanding `wrap` I'm having some syntax understanding issues.
I'm trying to take a div, clone it, wrap the clone in two new generated divs, and then stick it all into the DOM right before the closing BODY tag. This is what I have:
$('.myDiv').click(function(){
var $myDiv = $(this).clone();
var $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Handle to HWND Another basic problem - I can't convert a Process.MainWindowHandle to an HWND. I've tried using Process->MainWindowHandle.ToPointer() and passing that through, but still no love.
Here is a function that gets an HWND from a Point, and then passes that though, and it works perfectly.
void echoMouse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Backbone.js: get current route Using Backbone, is it possible for me to get the name of the current route? I know how to bind to route change events, but I'd like to be able to determine the current route at other times, in between changes.
A: If you use the root setting for the Router, you can also include it to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "140"
} |
Q: How to set Grouped UITableview Section names without a NSFetchedResultsController in play I have used a number of grouped tables tied to core data managed objects, where the sectionNameKeyPath value is used to identify the attribute in the data that should be used to denote sections for the table.
But how do I ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm thrilled that this scala snippet uses all of my processors to find the (correct) answer faster but... why does it do that? So I was messing around with some easy problems to get better at scala and I wrote the following program to calculate primes using an Eratosthenes's sieve. When I bump up the number of prim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Twitter suggestions returning 404? Running Twitter gem version 1.7.2, OSX Lion, Ruby 1.9.2.
In Rails console.. if you put:
client = Twitter::Client.new(:oauth_token => actual_token_here, :oauth_token_secret => actual_secret_here)
client.suggestions('entertainment')
It retrieves results from Twitter's API. But:
clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IEditableCollectionView loses selection on CommitEdit I have CollectionViewSource in which dates grouped by years and months. Dates are displayed in TreeView (accurately in RadTreeView).
The target is to change selected date without recreating the view (do not call Refresh method).
To do this I implemented IEditable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Array and if-else statement issue I have two forms, if $_POST['submit'] of the first form is click the second form is loaded and an array is assigned with $POST data of first form , else if the $_POST['submit'] of the second form is pressed the same array needs to have additional elements this time from $POST of se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery ui autocomplete: clicking on list does nothing i use jquery ui autocomplete and took the example from this link .
this is my modification:
$(function() {
$(".autocomplete").live('keyup.autocomplete', function() {
$(".autocomplete").autocomplete({
source: function(request, response) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xcode 4.1 — how to clone an app to make n distinct copies I have an Xcode project that builds a tiny experimental C ocoa application, call it "foo.app", just as I want it. For evaluation purposes, I'd like to create 10 completely distinct copies, foo1.app, foo2.app, foo3.app ... foo10.app.
If I make two copies of fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compare string or int type? if($_GET['choice'] == (int))
or
if($_GET['choice'] == (string))
I got an error.
A: All GET parameters are strings. If you want to be certain that it's an integer in the string then you should sanitize it.
A: To check if the string $_GET['choice'] may be represented as an integ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I auto-increment a unique version number using ActiveRecord? I have a model License that needs to have a version number (an Integer) but I don't want that to be confused at all with the actual id.
I have a field version_number. What is the simplest way to tell ActiveRecord to automatically increment it on cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't g++ tail call optimizing while gcc is? I wanted to check whether g++ supports tail calling so I wrote this simple program to check it: http://ideone.com/hnXHv
using namespace std;
size_t st;
void PrintStackTop(const std::string &type)
{
int stack_top;
if(st == 0) st = (size_t) &stack_top;
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Nodejs throwing TypeError('first argument must be a string, Array, or Buffer'); I am following a nodejs book which is online: http://nodebeginner.org/ and stuck at one of the section. In that section (http://nodebeginner.org/#head22), it requires me to create the following 4 files:
**index.js**:
var server = requir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How Does WordPress Handle Upgrades? Can anyone describe the pseudocode for how WordPress handles its upgrades? As in, you go into WordPress admin and choose to upgrade the version of WordPress.
I mean, does it use FTP APIs locally? Does it send credentials to another host which reconnects back with FTP APIs? Does it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to cache history.back like Safari in other browsers? I want
history.back()
to be cached like Safari naturally does.
But this does not happen in other browsers
How can I implement safari like cache of history.back() in other browsers?
A: Your can cache the page resources in 'localStorage', but most modern bro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem with nivo-slider in simpleModal The nivo-slider displays and works fine, the problem I'm having is that if you close the modal window, and then re-open it, the nivo-slider is then broken. It stays stuck on the first picture and all the buttons related to nivo-slider are unresponsive.
Is there a way I can app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What MySQL my.ini parameters should I change for a large table join and update? I have the following:
*
*TableA - 20M rows
*TableB - 500K rows
And many queries, in particular the following, take forever.
UPDATE
TableA AS A
INNER JOIN
TableB AS B
ON B.Value IS NOT NULL AND A.Key=B.Key
SET
A.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how does the compile() work in python? I have two code which really confused me.
def get_context():
__gc = globals()
__lc = locals()
def precompiler(code):
exec code in __lc
def compiler(script, scope):
return compile(script, scope, 'eval')
def executor(expr):
return ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get SENT headers in an XMLHttpRequest Trying to get the Request headers from the XHR object, but with no luck, is there a hidden method or property of that object that will expose the headers sent by the browser?
I already know how to set custom request headers and view the response headers, I'm looking to get a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Can I use an NSDictionaryController for a dictionary of dictionaries? I have a plist file that holds information I need to display in an app organised as a dictionary of dictionaries. I've just started programming Cocoa so am not sure the best way to go about this. Obviously I can do it all manually, and code up t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is a memory warning received on the main thread in iOS? I have seen some unusual behavior when my app responds to memory warnings - data getting out of sync primarily.
If my app receives a memory warning, will the warning pass control to the main thread?
If not, I assume I must do some data protection if the memo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot convert uint* to uint[] I have this code which doesn't compile:
public struct MyStruct
{
private fixed uint myUints[32];
public uint[] MyUints
{
get
{
return this.myUints;
}
set
{
this.myUints = value;
}
}
}
Now, I know w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: To shard or not to shard? GAE/java/jdo I'm currently porting some work from MySQL to Google App Engine/Java. I'm using JDO, as well as the lower level java API where required.
I read through the optimization guide about sharding counters: http://code.google.com/appengine/articles/sharding_counters.html
I'm still b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RVM doesn't seem to play well with ruby-1.9.3-preview1 I installed the ruby-1.9.3-preview1 after updating my rvm by following the steps below:
» rvm get head
» rvm reload
» rvm install ruby-1.9.3-preview1
Then I create a gem set for my project and try to use it.
» rvm --create ruby-1.9.3@myproject
» rvm use ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maps, Facebook, Email, Youtube Errors in Android Eclipse Simulator I am getting the errors within the simulator (1.6 version) when I click and try and access the information.
I have created a screen capture of all the errors in the simulator.
I looked into some of the coding and a lot of the features say:
//sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android HttpPost with Gzip and NameValuePair Is it possible to set 2 entities for a HttpPost? Like:
HttpPost post = new HttpPost("http://www.abc.com");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("A",
a));
nameValuePa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why don't Funcs accept more than 16 arguments? Since Javascript is the language that I am the most proficient at, I am familiar with using functions as first-class objects. I had thought that C# lacked this feature, but then I heard about Func and Action and delegate, which I think are pretty awesomesauce.
For examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Testing and design fee for MFi devices We want to obtain MFi certificate and make products work with iPhone/iPad.
@Brad Larson gave a very good answer to MFi application. But I need some more specific answer.
Looking for experiences on the Apple MFi program registration process
*
*How much is the testing fee pai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Difference between char* and char[] I know this is a very basic question. I am confused as to why and how are the following different.
char str[] = "Test";
char *str = "Test";
A: One is pointer and one is array. They are different type of data.
int main ()
{
char str1[] = "Test";
char *str2 = "Test";
cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: How are integration tests written for interacting with external API? First up, where my knowledge is at:
Unit Tests are those which test a small piece of code (single methods, mostly).
Integration Tests are those which test the interaction between multiple areas of code (which hopefully already have their own Unit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: jQuery - hiding/collapsing a row I want table rows to disappear (by animating their height to 0px and opacity to 0). I'm using the following
$('#somecellelement').closest('tr').children('td').css('overflow','hidden');
$('#somecellelement').closest('tr').children('td').animate({
height: '0px',
opacity: 0
},5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Lucene document score appears to be lost after search In lucene 3.1 i have a large boolean query, that i execute like so:
IndexSearcher is = new IndexSearcher(myDir);
is.search(query, 10);
I get 10 results just fine, but they are sorted by docId, and contain no score information. All documentation i can find, says t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TextfieldShouldReturn breakpoint not being visited after return key hit In the .h
@interface WordListTableController : UITableViewController <UITextFieldDelegate>
In the .m
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to update WSDL_Imp.exe in Delphi 7 I have downloaded the updated version of WSDL_Imp.exe from http://cc.embarcadero.com/item/24535. I followed the intructions to update the existing WSDLImporter.exe. However, I see no effect. Strangely, if I remove WSDL_Imp.exe from the bin folder, the WSDL importer from the D7 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to send messages to Socket.IO clients from various back-ends My Setup:
I have an existing python script that is using Tweepy to access the Twitter Streaming API. I also have a website that shows aggregate real-time information from other sources from various back-ends.
My Ideal Scenario:
I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does WinRT/Metro support multiple monitors? I want to create an application that has multiple touch surfaces, preferably using the Metro/WinRT APIs. However, much of what I've read indicates that Metro is confined to a single (primary?) monitor. Is that true?
A: I have tested Win8 with multiple monitors. The metro ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why does my fork/join deadlock? Consider the following snipped of code, which calculates the size of all paths given.
def pathSizes = []
paths.each { rootPath ->
pathSizes.addAll(
withPool { pool ->
runForkJoin(rootPath) { path ->
def headSizes = [:]
println path
def lines = ["ls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: error: 'int main(int, char**)' previously defined here in C++ I'm implementing gtest now, and it gives me an error : main previously defined here.
Here's utest.cpp
// Bring in my package's API, which is what I'm testing
#include "../src/test.cpp"
// Bring in gtest
#include <gtest/gtest.h>
// Declare a test
TEST(Tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic form handler script? I've been given the task to turn a couple of forms for a charity into online forms to fill out (stuff to sign up for different programs in the charity). The forms I have been give all just have text input fields and I can make the html version.
I was wondering if someone knows of a PHP s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to differentate between page refresh and close using the below method? I want to open a popup window on closing the page and not during refresh of the page,
So what i am thinking to do is.
Clent
Send ajax request to server every x seconds.
Server
var timeout=0
var sec=0
while (sec>timeout)
{
o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: emacs 23.2.1: character-by-character copying from the previous line seems broken After upgrading to emacs 23.2.1 with Fedora 15 one of my emacs functions is broken and I just can't seem to find the problem. Something has to have changed, but I sure can't find it in the elisp documentation.
I'd really appreciate any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Expanded List has same children for all parents Two issues here. Following a tutorial and I need a little help adapting it to my project.
1)The children are the same for each group. For example the Arraylist dining contain the children of the group "Dining Commons" I need to make two more arraylists containing acade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert link in notification using C#? I am developing an application to watch file changes in folder and display notification to users.This function is OK.But I have a difficult to insert link(file directory) in notification.As this link is need to open watched folder.
Can anyone suggest how this could be imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to restore a text file? I want to restore the following data from the text file. The problem is only one string/line I can restore, I can't restore the rest of the data.
Here's the code :
public static String restore(String filename) throws IOException, ClassNotFoundException
{
FileInputStream fn = new FileI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Panels creation at runtime can't see them My problem is i am trying to make a panel. My button in in Main.mxml whereas the panel functions are defined in panel_Create.mxml. the code works fine. In panel_Create their are functions to create panels at runtime. The problem i am facing is when i run the program it wont ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Update DB column per row in per second using timer in c# I have a MySql Db table.In db column there are some same type of data.I want to assign timer for different type of data.Here same type of data have same timer.For example 100,100,100 have timer1, 102,102,102 have timer2 etc.And I also want to update specific ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Live method overrride I'm pretty new to Java and I'm finishing my first project using it. Basically I read Head First Java and the API documentation for the classes I've used so far. That's my Java background.
This little piece of code rose a big little doubt on me, basically, what does this statement mean?
DataSour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delay when issuing any rails commands on windows vista Everytime I run any rails command on my windows vista dev box there is always something like a 30 second delay before the command does anything. I don't have the firewall enabled and the virus protection is disabled. Any thoughts on what could be causing this?
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there any better way to access twitter streaming api through python? I need to fetch twitter historical data for a given set of keywords. Twitter Search API returns tweets that are not more than 9 days old, so that will not do. I'm currently using Tweepy Library (http://code.google.com/p/tweepy/) to call Streamin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell iterate over a list I know you suppose to think differently in Haskell, but can someone give me a quick answer on how to iterate over a list or nested list and print out a character based on the value of the list element.
list1 = [[1 0 0][0 1 0][0 0 1]]
By iterate through this nested list, it should print o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET Workflow Scheduling, best practices, and is it the right solution I'm working on a project where I need to schedule processes. I'm thinking WF would be great tool to use. But since this will be my first dive into WF I got a few questions.
Here is the project:
Based on time (every week, month, day, etc...) syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Missing Template Arguments This is part of a homework assignment, but I've reduced the problem as far as possible. The code presented doesn't really do anything, just create some objects, so I am down to pure language issues.
I think my question is: Is it possible for a template class to create another class of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Antipatterns of IoC container usage. Why IoC containers are so complex and used so "fancy" way? I'm seriously start thinking that usage of IoC container provokes to create overdesigned solutions (at least it provokes me to try to use various unnecessary features:).
It's the time to synchronize my "IoC" antipatterns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JPA Nullable JoinColumn I have an entity:
public class Foo {
@Id
@GeneratedValue
private Long id;
private String username;
@ManyToOne(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY, optional = true)
@JoinColumn(name = "ParentID", nullable = true)
private Foo parent;
// other field... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java gzip can't keep original file's extension name I'm using GZIPOutputStream to gzip one xml file to gz file, but after zipping I find the extension name of the xml file (.xml) is missing in the gz file hierarchy. I need to keep the extension name because the zipped gz file will be used by third party system which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any tool to automatically fix simple JSLint issues? I've run JSLint for the first time on a rather lengthy file, and I have a lot of errors like expected exactly 1 space between "function" and "(" or unexpected ' '. I didn't realize this was important at all anywhere I learned about javascript and now fixing each on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: jQuery form throws "missing ) after argument list" error if optional inputs are not filled in I have a form that submits to a jQuery plugin I've written and used on several projects, and I'm trying to expand its functionality. I've never had any issues with it until now, when I decided to add optional fields to my f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is PhoneGap secure? How much has phonegap been hardened against attackers? Especially XSS flaws in our own pages, where the PhoneGap API is exposed to an unknown attacker.
For example, is the PhoneGap.exec() command secure on the iPhone?
From JavaScript, the PhoneGap.exec command worries me e.g. PhoneGap.exec(succes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: General knowledge question regarding classes and class instances in C++ I'll start with my problem:
My problem is that I'm getting a segmentation fault when I try to access a public function within an instance within a class.
Suppose I have a class A that has a bunch of class instances in it like so:
class A {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stack not returning empty even though it has no objects This is seriously confusing and frustrating me. I already asked one question regarding this same program here. Going off of that code, I'm having yet another problem with Stack. Here is a method that is using the array of stacks, called blocks, from the previou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: tell java to accept a self-signed certificate (to some extent a repeated question) Alright, so when I attempt to access the file manager through webmin it fails and throws an error to the tune of:
failed to get language list : javax.net.ssl.SSLHandshakeException : java.sucurity.cert.CertificateException: Java couldn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot monitor word docs using FileSystemWatcher I have a folder that contains multiple word documents. I need to monitor this folder for any changes in these word documents. I am facing the following problems:
*
*FileSystemWatcher never reports the exact name of file being changed. For example for file abc.doc, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Google Places Autocomplete in ASP.NET Any one have wrapper in ASP.NET for Google Places Autocomplete API?
http://code.google.com/apis/maps/documentation/places/autocomplete.html
Samples or approach is highly appreciated.
Thanks
A: Here is the link of demo... for google places autocomplete...
http://code.google.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: An If statement within an If statement I'm checking to see if a check box has been checked on a search form. If that box has been checked, the value it outputs will be "No".
So if the value is "No", then I want to use an If statement to echo some PHP. The problem is, the PHP that I want to echo is an actual If state... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jQuery FadeOut not working function fadeInSubheader() {
$('#sub1').fadeIn().delay(1000).queue(function() {
$('#sub2').fadeIn().delay(1000).queue(function() {
$('#sub3').fadeIn().delay(5000).queue(function() {
fadeOutSubheader();
});
});
});
}
function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any differences if I'm retrieving data in a DataSet instead of a DataTable
Possible Duplicate:
Datatable vs Dataset
I want to know the difference in terms of memory, efficiency if I'm using DataSet instead of DataTable to fill data.
I want to explain this to a third party so strong reason needed.
A: Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run j2me game to all screen resolution like andengine I am developing a game in j2me and android . In android using andengine to develop the game and its support all screen resolution. But in j2me, need to workout for porting. Its any tool like andeninge for j2me . Any tools for j2me ?
A: AndEngine gets scal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When a SqlConnection is kept open, does it update? In my ASP.NET project, I create/open a SqlConnection when necessary, and close it at Application_EndRequest
Nevermind that, I am just wondering what would happen if, while a connection (say Connection A) is opened, the database is updated from another request (say C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anyone can give me a summary of "single quote mark" usage in Ada? I've just read "Ada Programming" but I'm a bit confused about how to use ' (single quote mark) in Ada.
I can understand that ' is used for reference attribute. AAA'Image(..), BBB'Value(..)
However, considering this piece of code:
type Plain_Vector ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the easiest way to turn an array of RGB values in C++ into an image file? I've been looking all over the net for a good, quick solution to this, and haven't found anything that has satisfied me yet. It seems like it should be trivial--just one or two calls to a function in some library and that's it--but tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: For each loop not working I've some master categories and user groups, user groups are assigned to master categories. I am using the following code but it only display the last record in the table while I need to display all matching records.
Function in controller:
function listdesignation($id) {
$res = $this->... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create complex data from Strings in Scala I have defined a number of case classes such as
abstract class Foo
case class Bar(s: String) extends Foo
case class Baz(f: Foo) extends Foo
case class FooBar(l: Foo, r:Foo)
that allow me to create complex data, e.g.,
val x = FooBar(Bar("1"), Baz(Bar("2")))
I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way for a spinner option to open another spinner? I want it where when someone clicks an option in a Spinner, it opens another spinner with more options. Also, is there a way for an "Other" option to open an EditText where someone can input their selection if theirs isn't available in the Spinner?
Example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: How can I resize an image to be automatically fitted with the View I have png floor map images. I am using the below code to set the default image size to fit with the view.
imageView is the view inside my ImageSwitcher:
imageView.setImageMatrix(createDefaultMatrix());
private Matrix createDefaultMatrix() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving Emails to Public Folder using Dynamic Paths In our Corporate environment we have a Mailbox (not the default inbox) with many sub folders. We also have a Public Folder which is an exact mirror of the Mailbox folder structure.
I am trying to detect the path of a selected email and move that email to its mirrore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optimize the SVG output from Gnuplot I've been trying to plot a dataset containing about 500,000 values using gnuplot. Although the plotting went well, the SVG file it produced was too large (about 25 MB) and takes ages to render. Is there some way I can improve the file size?
I have vague understanding of the SVG ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails Devise Help Can someone give me an example of how to do something like this.
I have a user setup with devise, according to the way in this tutorial
https://github.com/fortuity/rails3-subdomain-devise/wiki/Tutorial-%28Walkthrough%29 (I skipped the stuff related to subdomain)
now say if I wanted to have a user m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: New MVC project I just need some guidance. I'm fairly new to MVC3 and to web development in general. I want to create my own project that will involve data storage/access (SQL server db) and user log in functionality. I'm not sure were to start, there seem to be so many ways for this and following tutorials doesn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: writing to SD card in android public void initCache(Context context)
{
this.context = context;
//Find the dir to save cached images
if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))
cacheDir=new File(android.os.Environment.getExternalStorageDirecto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AS3 not passing number by value, rather by reference? I have this:
for (var i:int = 0; i < 3; i++) {
var newChoice:MainButton = new MainButton(function(){
trace(this["func" + i])} );
}
public function func0 ...
public function func1 ...
public function func2 ...
(When clicked, MainButton calls the functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make a Buttonistener in a second layout How would I implement a Buttonlistener for a second layout which is still be called in the main Acitivity?
I already tried it by a named Button listener and via an anonymous. But still get nullpointer Exceptions.
Code:
back = (Button) findViewById(R.id.backToMain);
if(back !=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend DB Select version of a simple Mysql Left Join I have a simple Left query on mysql
SELECT sp. * , p.name, p.date_created
FROM subpages sp
LEFT JOIN pages p ON p.id = sp.page_id
I dont know how to execuite this query from zend framework.
I have a Mapper Page, which access a DbTable page which is extending Zend_D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Administrate facebook application via graph api I was wondering if it is possible to change your site url or canvas url using the graph api. I have admin rights to my application and I can change it via the gui but I would prefer to be changing it via a curl.
Thanks
A: You need to use the old REST method admin.SetA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3 array - add items with category then list items in category As part of my Rails 3 app, I want the User to be able to click on links on other profiles/pages and have the string value of the link be added to an array belonging to that User's profile.
Specifically, what I am looking to do is populate a list of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using let in .hs file I'm using Notepad++ and WinGHCi to do some homework and I have to define a little "database". The format is arbitrary and I don't think that's where I'm going wrong. Anyway, here's what I'm using in a *.hs file:
let studentDB = [
("sally", ["cpsc110", "cpsc312", "cpsc204"]),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Prompt alternatives for SQL Server 2005? I'm trying to wean myself from SQL Prompt from Redgate because I'm now on a low low budget and I can't afford to go from 4 to 5. I haven't found anything nearly as good for SQL Server 2005.
Should I just save up, or has someone found a better tool or a way to exist withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DotNetOpenAuth setting the popup to do a post instead of a get I was able to get the DotNetOpenAuth set up in my MVC3 project. (Took a long time, but finally was able to get all the missing pieces.)
However, now I'm getting a 414 error from Google that the request URL is too long. I found that google is saying in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.