text stringlengths 8 267k | meta dict |
|---|---|
Q: Multiple RemoteObjects - Best Practices I have an application with about 20 models and controllers and am not using any particular framework. What is the best practice for using multiple remote objects in Flex performance-wise?
1) Method 1 - One per Component - Each component instantiates a RemoteObject for itself
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Result Capture in webpage output I have a PHP file.
Based on the PHP the server generates a output string for example say
111 success: id:12345678 |value:10000045
Is it possible to store this output in variable and use it? say
$input = 12345678
I also do not want to store the entire output generated by the server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net Membership Password recovery Current state of Application
We got a huge user base currently and we had requiresUniqueEmail="false" setting from day one bcse business required such.
So our password recovery was done via UserName.
Issue/Problem
Suddenly the business wants the password recovery to be done eithe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Matplotlib: align origin of right axis with specific left axis value When plotting several y axis in Matplotlib, is there a way to specify how to align the origin (and/or some ytick labels) of the right axis with a specific value of the left axis?
Here is my problem: I would like to plot two set of data as well as t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery DataTables - Slow initiation, "Normal" html table shown in the beginning I'm using jQuery DataTable plugin, but I got a concern where the scripts loading seems to take some time, so my web page is always displaying the ordinary html table first, and after all script done, the table will then become DataTable.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Delphi 2007 and XE2: Using NativeInt Since Delphi XE2, NativeInt has new meaning. At 32 bits runtime, NativeInt is 32 bits integer. At 64 bits runtime, NativeInt is 64 bits integer.
I have some source files that use third party DLL (both 32 and 64 bits). These DLL use 32 and 64 bits integer in both 32 and 64 plat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: why it shows "App Requests 1", but no requests listed in the app pages on facebook
just as the picture I attached, it shows 1 app requests, but there is no apps listed there.
the apprequests sent from the graph api using javascript sdk
A: Any App Reqeusts you set with you app will need to be deleted by your app. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone UDP broadcast and response I need to send out a UDP broadcast from an iPhone, and then listen for a UDP response with a timeout period. I have found Apple's UDPEcho example but I am not sure if it's what I need. Also found this example to send but not receive. Basically, I need to do something simple like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a UI framework to emulate the look of a Mac app? I've been looking around and havent been able to find any. I noticed that the wunderlist mac app was written in HTML/CSS/JS but I wasnt sure if they used an existing UI javascript framework.
Thanks!
A: Wunderlist was created using the Titanium framework (htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HDFS replication factor When I'm uploading a file to HDFS, if I set the replication factor to 1 then the file splits gonna reside on one single machine or the splits would be distributed to multiple machines across the network ?
hadoop fs -D dfs.replication=1 -copyFromLocal file.txt /user/ablimit
A: According to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: CSS HTML Strange White Space I am creating a website and there's a strange white space at the bottom of the page (only at IE). safari is fine. i am using ie8.
I want the white background ended after that black navigation links.
http://www.applezone.com.hk/newrx/
I can't figure out which part of the css causing that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Detect Email Size Issues In .NET We have an application which sends out automatic email notifications to our users.
Those emails come from a no reply address for instance 'no-reply@blah.com'.
The problem comes when the attachments added to the automatic emails go above the limit of the receiver email server, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: minGW and cpan modules I am trying to use the Finance::TickerSymbols module from perl(ActiveState perl) and since PPM didn't have it, I ran cpan on my minGW console to install it.
the installation went fine, however, minGW seems to install the modules in
C:\MinGW\msys\1.0\home\ar\.cpan\build\Finance-TickerSymbols-1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: Clicking a button with urllib or urllib2 I want to click a button with python, the info for the form is automatically filled by the webpage. the HTML code for sending a request to the button is:
INPUT type="submit" value="Place a Bid">
How would I go about doing this?
Is it possible to click the button with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Better way of coding a RAM in Verilog Which code is better in writing a RAM?
*
*assigning data_out inside always block:
module memory(
output reg [7:0] data_out,
input [7:0] address,
input [7:0] data_in,
input write_enable,
input clk
);
reg [7:0] memory [0:255];
always @(posedge clk)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What's wrong with my (attempted) implementation of iterateM? I would like to implement a function, iterateM, whose type would look like this:
iterateM :: Monad m => (a -> m a) -> a -> [m a]
However, my first go at writing this function:
iterateM f x = f x >>= (\x' -> return x' : iterateM f x')
Gives me the error:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I make my EditText five lines high without using android:inputType="textMultiLine"? I want to have a EditText view that is five lines high. I want it five lines high for visual appeal reasons only (so that it does not appear cramped). The code below does not work, the EditText appears only one line high. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: The actual result of name resolution in the class template is different from the c++ 03 standard I test the code in the c++ standard ISO/IEC 14882-03 14.6.1/9 on Xcode 4.1 and Visual Studio 2008. The outputs of the two compiler are both different from the expected result of the standard.
The code is pasted below.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: specs failing in Rails 3.1 - NoMethodError: private method 'rand' called for Array I'm getting a weird error all of a sudden when I run my spec, which is then causing my specs to fail. These specs worked find before - but recently we upgraded from Rails 3.0 -> Rails 3.1. It seems like machinist is having some proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UIViewController shouldAutorotateToInterfaceOrientation - would like to add hysteresis I would like to defer auto rotating the user interface until the device has settled on an orientation for a number of seconds, rather than driving the user insane and flicking willy nilly whenever they tilt the device a few degree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to block global JQuery Effect which causes UI Slider to disappear I'm using the following JQuery UI slider script to input values:
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery( "#slider-range-min" ).slider({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't export Play! app as war I'm trying to package a Play! app built against Java 7. I'm getting this error. Also, I cannot launch the app from the command line, but from Eclipse it works.
D:\Dropbox\eclipseProjectsClassic>play war MyApp -o MyApp.war --zip
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to avoid the blink image when save the image after rotate animation? I am confusing the translate animation and rotate animation. In my game I use this two animations, after completing the animation I am save my image. In translate animation it is fine, but after completing rotate animation my image is blink onc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Greenfoot actor gets removed after compile I create a new scenario, add new world subclass, add a new actor subclass, then compile. I drag that new actor to the scenario and press the compile button and that actor disappears. Am I missing something here? I hope I am. I'm running this from the usb using the standalon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RowVersion and Performance I was wondering if there was an performance implications of adding a rowversion column on a table in a Sql-Server database?
A: There are few performance implications, rowversion is just a new name for the old timestamp datatype. So your database will need to store the additional binary fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Make background position variable I'm using this code...
document.getElementById('a1').style.backgroundPosition = '0px 0px';
and it works fine but is there anyway to make the positioning variable with javascript?
like so...
document.getElementById('a1').style.backgroundPosition = '0px VariableHere';
A: Since th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cucumber "--format progress" doesn't work In my cucumber.yml I've tried to add this option (default: --drb --format progress), but it return an error :
Exception encountered: #<ArgumentError: wrong number of arguments (3 for 2)
Error creating formatter: progress>
When I take it in brackets default: --drb --"format ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: confused on how my code work and want to understand the logic in it Please dont discourage this question..I am very new to c++ and really want to understand the code I work on.
// bintodec.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Facebook Social Graph API: "Annoying or Abusive" Error Message I got the following exception from the Social Graph API:
(OAuthException) Block! You are engaging in behavior that may be
considered annoying or abusive by other users.: You have been blocked
from Body of an error/warning message. Title is: Block! Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GUI for single interface approach I've made a small application using MDI but I want to make another one where there is only one main window and the main container changes or updates. I'm sure this can be done without creating multiple panels but I've been doing a bit of reading and I can't seem to find how can I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does only one (the last) XML file is saved? I use this below to save me the contents of the XML addresses I have in array. However only one XML is saved, specifically the last one. What am I missing here?
$filenames = array('xml url','xml url','xml url');
foreach( $filenames as $filename) {
$xml = simplexml_loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jboss SLF4J Security exception when deploying I had to deploy applications at work and i tried to deploy a file called "ReportService.WAR", then i deploy it using Jboss 6.0.0 and got this error
Deployment "vfs:///apps/jboss/server/default/deploy/ReportServices.war" is in error due to the following reason(s): java.la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Possible to send automated email? The iOS SDK class MFMailComposeViewController can be used to let the user compose an email message.
What I'd like to do, is for the iOS app to send an email in the background, with no user interaction. Is this at all possible/allowed in the iOS SDK?
A: Nope. There isn't any API ava... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Segmentation fault when adding a vector. (C++) So I've got a pretty basic class that has a few methods and some class variables. Everythings working great up until I add a vector to the member variables in the header file:
std::vector <std::string> vectorofstuff;
If all I do is add this line then my program run per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Still confused about Pthreads I am using an old exam as a study guide and one of the questions is to use pthreads to fill in the following code:
#include <pthread.h>
#include <stdio.h>
typedef struct {
int a;
int b;
} local_data;
void *foo(void *arg);
int main() {
int a = 12;
int b = 9;
pt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Querying pages in WordPress by template name I have a template named "Foo" in "foo.php", I would like to be able to select all pages that are using that template. I have searched for awhile now but have not been able to find a successful way to do this... Can somebody enlighten me on the proper/only way to do this?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Android "best practice" for team collaboration and development? we would to pick the community brains on the best and efficient way to do team collaboration on Android mobile development.
*
*Does some members work on the modules and turn it into jars and other team members use it?
*How to split work between deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: program to store details of an employee in a structure This is a program to store details of an employee in a structure. Although the program runs it shows many errors, it does not give me a chance to enter address. Why is the program not running properly . Where am I going wrong ?
#include <stdio.h>
#include <coni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Object Oriented Design for iPhone So I've run into this a few times, and am new to OOD so not sure if there is a good way to do this or not.
But basically, I have a MainViewController, and then I push a new DetailViewController. In my MainViewController, I have a Reset method that basically resets everything to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Alter existing jQuery to make span placeholder I have some jQuery that provides a placeholder as long as my <label for=""> matches the input name and ID. However, that's not the case so I've decided to just use a <span> for the placeholder instead. Can someone help alter my jQuery to make the <span> class "holder" I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to grab the last line of wget? $ wget --output-document=/dev/null http://website.com/file.jpg
Resolving speedtest.sea01.softlayer.com... 67.228.112.250
Connecting to speedtest.sea01.softlayer.com|67.228.112.250|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1986284 (1.9M) [i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using FB.api("/me/apprequests") only returns one request. It used to return all. How do you get all with the Javascript API? Using
FB.api("/me/apprequests", function(response){
});
I am only getting one request no matter what. Also, the left sidebar is only ever showing a 1 next to my application.
Example: I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does -n in if [ -n "${TEMP_FILE_LIST}" ] do? What does -n in if [ -n "${TEMP_FILE_LIST}" ] do for this shell script?
A: -n tests for a non-zero-length string
A: if [ -n "${TEMP_FILE_LIST}" ]
tests if the argument "${TEMP_FILE_LIST}" does not have zero length.
You can also check
if [ ! -z "${TEMP_FILE_LIST}"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Why is NSArray empty at the time when UITableView Cell is selected? I have list of file with some name of friends. I am trying to understand UITableViewNavigation . I load the list from a file but when I select a cell the Data Array at that point seems empty and I can not work out why.
At this method I get this erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework 4.1 doesn't put data into database on SaveChanges() I have a problem when using the new Entity Framework 4.1. I started testing it a few days ago, and I am still new to the whole POCO concept and this new API.
Anyway, while doing some coding I created something like this:
public Tag GetTagWithName(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any way to get the frame of a UIObject from a different orientation? I have a piano UIView, made of Key subviews. The keys are assigned their frames relative to the frame of the piano. This works fine if I stay in portrait mode.
But if I start in landscape mode, the frame of the piano is landscape, but the keys set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A couple of questions regarding jQuery's $(document).ready and its use I have been writing some basic Javascripts, and I am finally giving in to try to learn jquery (less than 24hrs). I am having a problem with understanding syntax with simple lessons/codes that I am tweaking for my purpose.
Does everything has to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Single quotation and double issue In a PHP file i am assigning a XML file to an input variable
Example:
$xmlfile = '<?xml version="1.0" encoding="UTF-8"?>
<creators>
<creator>
<creatorName>Ganesh</creatorName>
</creator>
</creators>
<identifier identifierType="id">Dynamic input($input)</identifier>'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Migrating PHP/MySQL based website to cloud server I have a web site developed in PHP/MySQL and hosted in normal webserver, so far there is no issue except in rare cases hosting server getting down for few hours.
Now client wants to host the same site in cloud server. (My site is something similar to churpchurp.com)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Twig macros VS includes? I can't really understand the difference between macros and includes in Twig: both seems to do the same stuff, that is take some variables and output something.
What's the difference and why you use macro or include?
A: Even though this question has an accepted answer, I think it is importa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Cannot reset NSArray and NSMutableArray in Objective-C I create an NSMutableArray as follows (note that winner is an instance variable):
winner = [NSMutableArray arrayWithObjects:@"11", @"12", @"13", nil];
When I set winner to nil or remove its objects like
[self.winner removeAllObjects];
my program will automatic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS broken on Django admin on developer server I'm getting some really weird issues with the Django admin application. I'm running everything on the manage.py runserver development server, so I can't imagine what the issue would be, but I'm seeing something like this:
Obviously, this isn't ideal, so I'd like to ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I make the report always close at end of page in JasperReport? For what I know, JasperReport will always attach bands like Column Footer, Summary... right after the end of Detial band. So, when only few lines left in Detail band at last page, after all other band appended, report will remain lots of empty spa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you get an Idle Message in a UserControl class in C# / Silverlight? How do you get an Idle Message in a UserControl class in C# / Silverlight?
Back when I was programming in C++ and MFC there was an idle message for user intervace classes that one could overwrite and make use of. Is there something like that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is Azure Data out computed? I'm on a free trial of Windows Azure at the moment.
All I've done is deploy a standard MVC start up template, "My MVC Application", to the service.
However when reading the data out charges (zerod costed out while I'm on a trial account) I see
01/10/2011 Windows Azure Platform - Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to convert returns to prices? I am curious how I revert from log-returns to prices. Here's an example:
> a1 <- c(88.23, 88.44, 88.55, 88.77, 88.99)
> a1
[1] 88.23 88.44 88.55 88.77 88.99
> a2 <- diff(log(a1))
> a2
[1] 0.002377315 0.001243008 0.002481391 0.002475249
a1 is prices, a2 is returns. How would I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add datepicker into jQuery modal dialog box in Rails? I add a datepicker into my modal dialog box. but when I click on the date picker, it always display behind the modal dialog box. How can I load it inside the jQuery modal dialog box? Following is my code to load date picker...
<%= calendar_date_select_t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring techniques for Clojure I'm familiar with refactoring fairly large code bases in C# and Java but Clojure is something of a different beast, especially since it:
*
*Has a mix of macros and functions in typical code (i.e. you might want to refactor from a macro to a function or vice-versa?)
*Uses dynami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: JQuery function, wrapping and live binding I've written a nice function to wrap an input with increment/decrement buttons:
$.fn.qDecInc = function(){
return this.wrap('<span id="qButtons" />').after($('<span/>', { class: 'qIncButton' }).bind('click', function() {
var ov = 0;
if (isNaN($(this).val())){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery URL driven content management So I am very new to jquery and need some help on a little project. Perhaps there is a script already in existence that I could use, if not I am hoping to find some direction.
I have found a few URL parsing scripts that allow me to dig through the query string and capture the valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you default to show or hide using JQuery based on the value of a checkbox? I have the following JQuery:
$('#promotion_profile_offer').live('click', function(e) {
$('.nooffer').toggle();
});
which toggles the form, if it detects a click it will hide the form. This works great in the case that the user un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Spoofing" a 404 not found error with .htaccess I have .htaccess currently set up to rewrite anything without a period or slash to the equivalent with a .php extension (so "foo" internally pulls up "foo.php") via the following:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Update the Date without changing its Time Using SQL Server? I have One Column in the Mytable called StockDate and its DataType is DateTime.
So My Table contains record as follows
SID StockDate
----- ------------
1 2011-10-02 09:44:41.170
2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to tell BufferedReader to stop reading from System.in? I am using bufferedReader to read System.in from the user, The user will enter a domain address and source address separated by a space.
eg
auckland.ac.nz. 198.19.20.44
www.esc.auckland.ac. 173.27.28.93
stat.auckland.ac.nz. 52.159.152.105
student.auckland.a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to implement an Drop Down List for iphone I searched about UIPickerView and NSComboBox , I really don't understand the difference between these two !!! can anyone tell me what is the best way to show an Drop down list in xcode .
I saw the picker view but I think it is too much coding for a dropdown list !!!!
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to have ListView inside a dialog? Basically, I have this LazyList which originally created by [Fedor][1] , I am just wondering if there is anyway to put it inside a dialog. Please help me, I've been struggling for days trying to figure this out, I really need your help. Thanks in advance!
Here his cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Relational Algebra Query I'm stuck at the query below where i'll need to list out two attributes from different tables. Is there a simpler way to write the above query?
Tables:
Patient (PatientID, FamilyName, GivenName,Address)
Item (ItemNo, Info, Fee)
Account (AccountNo, PatientID, Date)
AccountLine (AccountNo, It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Native way to add SimilarResults to model via SOLRNET I am using SOLRNET and am using SOLR's MoreLikeThis functionality to get similar documents to those that are being returned. My code looks a little something like this (in this case I am doing a lookup on ID as I already know the specific document I would like to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What will be the default speed to play the mp3 file through NAudio What will be the default Speed set to play the MP3 files through NAudio waveout.
Is there any way to set the speed according to the User setting in NAudio waveout.
Thank's in Advance.
A: The default will be normal playback speed. There is a Windows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make the image bounce horizontally? I have an image("ball.gif") that moves horizontally, the problem is how could I make the ball bounce when it reach the end of the size of the panel? I know this is not really difficult but I'm just a little bit confuse on how to do it.
Could someone help me about this matt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I read data from an HID USB device in a Cocoa Application? I am trying to implement an HID USB application in Mac OS X. The application needs to read data from the HID USB device. I found some information about reading from an HID USB device, which mentioned the creation of a HID manager kext. My question is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: securing a REST API accessible from Android We're building a game for Android, which needs access to web services - so we wrote a RESTful API in PHP that runs on our own server. What the API offers is: creating user, logging in, downloading games, retrieving game list, submitting score... etc. Now I'm thinking, if s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: nested content_tags only showing the last of the chilldren rails view helper I am trying to do a little reusable helper to insert into a page of some descriptions with the content tag
def spec_description(name, overview, detail)
content_tag :dl do
content_tag :dt do
content_tag(:strong, name)
end
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retaining parent slugs in CakePHP I'm experimenting with SEO friendly URL's in CakePHP as efficiently as I can, I've managed to use the current format, each example uses function view($slug) except for the first example which uses function index().
/categories/
/categories/books/
/categories/books/it-and-computing/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using <% asp tags in javascript not working? I can't get the following to work:
var percent = <% Model.Percent; %>
I am sending a Model to the view from the controller...I'm getting the error:
Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Am I being extremely stup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: asp.net - Multiple select box selection + Quantity Design advice I have a listbox that allows a user to have multiple selection and a button to transfer these selected items to another listbox, now theres a new requirement which I also need to indicate the quantity for each respective items. I can't think of a good ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't progressbar update when exceeds maximum or minimum value? <ProgressBar Value="{Binding Player1PointsLife}" Minimum="0" Maximum="8000"/>
Why when value exceeds maximum or minimun, it doens't update the UI anymore? How can I fix it?
Thanks in advance.
UPDATE:
Maybe I was not very clear. I mean, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sources, APIs and techniques for academic data-mining So I'm gonna do a historical trends analysis for one of my education literature review class. I'm considering use the abstracts and keywords from the peer-reviewed journals since 1970s, I know Springer has an API which might be useful, what other sources/APIs are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging App Engine with --backends I can debug my application in Eclipse without running any backends just fine. Now I want to debug my application with the backends enabled.
I start the dev_appserver via Eclipse with the --backends. But the execution doesn't stop at the breakpoints I set. I tried setting the appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP / Google Maps API - Easiest method to verify a street address and standardize / prevent duplicates? What is the easiest way to do this? I've read Google Map API can't legally be used as an address verification service. What are some practical alternatives and/or respected premium/pay-per-request services?
Addres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Connect By Prior Equivalent for MySQL All,
I have three fields in a table that define a parent child relationship present in a MySQL database version 5.0 . The table name is tb_Tree and it has the following data:
Table Name: tb_Tree
Id | ParentId | Name
--------------------
1 | 0 | Fruits
2 | 0 | Ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Any possibility to use Graphics.DrawString on a 1bpp Bitmap? The question is quite self explicative, I would like to use a 1bpp Bitmap because will help me (a lot) talking with a device that accept 1bbp bitmaps (well, 160x43 byte array that is a 160x43 bitmap image with 1bpp format).
While C# allows me to create 1bp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sub-packaging my static meta-model classes on Eclipse Indigo I'm currently using Eclipse Indigo and I'd like to have my meta-model classes to be automatically generated in a sub-package instead of having them in the same package of my entities.
I've followed the instructions in the JPA User Guide for Canonical Model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Return an Array of Strings in C? For example, I have in the main file
1) char ** array[NUMBER];
2) array = build_array();
and in an imported file
char ** build_array()
{
char ** array[NUMBER];
strings[0] = "A";
strings[1] = "B";
return (char *) strings;
}
However, at line 2 in the main file, I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to remove the subdirectory name from the url in asp.net mvc? I have hosted my website in a subdomain, say test.mystie.com and points to a folder called test. when i access my website test is getting added to the url.
expected url: http://test.mystie.com/gallery/image
actual url: http://test.mystie.com/test/gall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: converting rails db from postgres -> mysql I converted a DB using this:
https://github.com/maxlapshin/mysql2postgres
At a glance it looks like it worked. Tables/columns/indices are in place inside of postgres... Great.
However, db:migrate wants to run all of my migrations. It's as if the schema_migrations table di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extract partial duplicates from a list of lists; return single match with record of origin of each duplicate; Python I have a list in the following format:
L = ['apples oranges x',
'bananas apples y',
'apples oranges z']
For every item in L, if item.split()[0:2] matches another item.split()[0:2] (i.e.,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading an array in unmanaged c++ I have a managed C++ class, with a method whose constructor signature is:
tools_package_net::PackageInfo::PackageInfo(array<Byte>^ bytes)
Within the constructor I wish to call a method on an unmanaged class with the signature:
bool PackageInformation::ReadProject(const unsigned cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why declare an array this way I'm looking at code written by someone else and it declares an array this way (which I think is still a string, can someone confirm).
$array = "Label 1" . "~/" . "Label 2" . "~/" . "Label 3" . "~/" . "Label4";
Then later in the code, it does this
split('~/', $array);
Is there a vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC3 Postback brings up new TAB net MVC View. At the end of the view I have the following Buttons
<div style="clear: both; padding-top: 40px; width: 720px;">
<button name="buttonHelp" value="Help" onclick="window.open('Help.htm',target='_blank');return false;">
Help</button>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: struts tag questions I have two related struts jsp files.
I am new to this and a little confused.
*
*in #1, for td, where are those value from, i mean firstname, lastname, department.name? are those from fields of the java action or hibernate class?
*in #2, on line 10, what is employee? is employee.employee.id ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error installing psycopg2 in cygwin I'm trying to install psycopg2 in cygwin but have not succeeded yet.
The error is:-
Gaurav@gauravpc ~/FieldAgentWeb/FieldAgentWeb
$ easy_install psycopg2
Searching for psycopg2
Reading http://pypi.python.org/simple/psycopg2/
Reading http://initd.org/psycopg/
Reading http://initd.o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to disable JButton without hiding its label? I'm developing a project in Java using netbeans IDE and I need to disable a particular JButton. I use the following code for that.
IssuBtn.setEnabled(false);
But after it is disabled it doesn't show the text on the JButton. How can I keep that text on the JButton?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to move 20dip margin left from center? i want to move a seekbar 20dip margin left from center.
android:progressDrawable="@drawable/progress_vertical"
android:thumb="@drawable/seek_thumb" android:layout_height="80dip"
android:layout_width="20dip" android:layout_marginBottom="50dip"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: A view controller is in landscape mode, but I'm getting the frame from portrait mode? I have a settings view controller with a table view. The table view is supposed to set its frame to be the frame of the view controller. My app only supports landscape mode, so that's the orientation I'm always in.
However, when th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it safe to have a lock() inside of a BeginInvoke call? I have a form with a control on it to display some custom objects. In the form I subscribe to an event AddObject that adds objects to a ToAdd List as they come in from the server. I setup a timer to run every 10 seconds to copy the objects from the ToAdd List... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I parse XML of having multiple Nodes with same name and show in different controller? See the XML below
http://sosmoths.com/.xml/moths.xml
This XML having multiple images name, I have to show the different title(There are four title) in their respective Controller.
I have 4 controller, and have to show each ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access denied error on window.moveTo() I have a window that is composed of a frameset. When I launch it, I have to
resize it, thus:
<script language="javascript"> window.onload = function(){window.moveTo(0,0); window.resizeTo(400,500); }</script>
but then when I ran it in IE 8, it gives me the "Access denied" erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you have to use Urban Airship to build push notifications using PhoneGap? Do you have to use Urban Airship to build push notifications into a PhoneGap app?
Everything I've found so far mentions Urban Airship....
A: No you don't have to use Urban Airship for this. Urban Airship is actually a third party 'framewor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I parse a query string with "&" in the value using C#? I have a C# custom webpart on a sharepoint 2007 page. When clicking on a link in an SSRS report on another page, it sends the user to my custom webpart page with a query string like the following:
?tax4Elem=Docks%20&%20Chargers&ss=EU%20MOVEX&Phase=1&tax3E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.