text stringlengths 8 267k | meta dict |
|---|---|
Q: I want to store void pointers to functions along with the type of them I am trying to make a vector hold void pointers to functions, which will later be called secuentially.
So, lets say that I have got three functions. int a(), void b();, bool c();
My vector is vector<void *> vec;
And my function that stores point... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Lift prevent HTTP response splitting? When I manually add a header to a response in Lift with S.setHeader, do I have to check for newlines manually or is that done by the framework? This is needed to prevent http response splitting.
A: You should test it. Tamper Data for Firefox allows you to modify http requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SAP adapter: disasembler problem "Unexpected end of stream while looking for:..." Use WCF-SAP binding in WCF-Custom adapter, ReceiveIDOCFormat is set to 'String', in the pipeline component, we wrap and call a flat file disassembler to disassemble the SAP request to XML and process it later. We also have a log compne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: when is C++ std::foreach useful
Possible Duplicate:
Should I use std::for_each?
I've come from a predominantly C# background, and have used a fairly large number of languages aside from that with foreach loop capabilities. It seems to me that the need of a function object to provide the functionality to the fore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: `.button()` space behaviour This is my code (http://jsfiddle.net/UXdLQ/3/):
$('input').button();
One bizarre behaviour is when I hit the space bar, the background color changes to white, which is not consistent with the fact that typing letters does not change the background.
How can I disable this behaviour?
A: Q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Printing named tuples In Python 2.7.1 I can create a named tuple:
from collections import namedtuple
Test = namedtuple('Test', ['this', 'that'])
I can populate it:
my_test = Test(this=1, that=2)
And I can print it like this:
print(my_test)
Test(this=1, that=2)
but why can't I print it like this?
print("my_tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is there a thin vertical line in my table cell in IE9 only? Here is my test code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
table
{
border-collapse: collapse;
}
td
{
background-color: gray;
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java - Array brackets after variable name
Possible Duplicate:
Difference between int[] array and int array[]
I saw this example in a java tutorial:
private int puzzle[];
This is different to the 'normal' declaration type I'm familiar with:
private int[] puzzle;
eclipse accepts both. Is there a difference betwee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Notifying other page database item has changed, best practice for MVVM WP7.5? First of all, I'm using MVVM for this and I would like to continue using it and ofc using the best practices as well.
I have a Mainpage which will display a list of items. On another page you can add such items. The items will be saved in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to combine these tables? In sql server 2005, how do I get the result set in table3 below? table3 is created by combining table1 and table2 like this:
table1.empid
table1.ticket
table2.identid
And update against table1 joined to table2 doesn't work because empid isn't unique. If need to increment to the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Android: Always getting GET on the server eventhough POST was sent I am trying to send data using POST method from my android apps. However in
the server it is always recognized as GET. I am using Rails apps as the web
service. Here is the snippet of my Android code:
URI uri = new URI(hostName);
HttpPost httpRequ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inconsistent Behaviour Between 2 Players of Game I've been making a game for an English presentation (I know right?) and I've been having a few weird problems recently.
At this stage, there are two squares for the players that can fire bullets. When the bullets hit the side of the screen or the middle border, they s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to connect to another DB with an already existing EF (4.1) DbContext? I'm pretty new to EF and use to old school SqlConnection....
Question: I have an existing mvc3/EF database context object that already hits a local sql server 2008 instance. I want to add a new connection string in the web config and have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploying using enterprise certificate has UI discrepancy Deploying an iOS application using an Enterprise certificate has UI elements missing, and/or attribute differences compared to deploying with a regular development certificate. Would anyone happen to know why this occurs? I have confirmed some images are not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Workaround for logging objects to console in Chrome If you execute this code:
var foo = {bar: 'baz'};
window.console.log(foo);
foo.bar = 'bla';
The console shows this after expanding the object:
(when logging objects and arrays, it's not the run-time value that's recorded)
This bug was documented over a year ago:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Sending name array in PHP Mail I'm using PHP's Mail function to send emails to individuals. I wanted an easy way to customize the greeting name in the email, so i created a form where there is a comma separated list of emails and a comma separated list of names, and they get posted and mailed via PHP.
However, every... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to open an HTML JavaScript page in a wx.Python or other python gui window? Is there any way to open a browser based editor (such as CKEdit, tinymce, or any other HTML + JavaScript editor) in a Python window (perhaps wx.Python) rather than in a browser?
Thank you in advance.
A: I suggest you try using Webkit pyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: creating a class that pops up an advertisement image I have a tab bar controller and some nav controllers containing view controllers. In those view controllers I want to be able to have a timed banner that will animate up from the bottom of the view.
I started making a subclass of UIViewController with the images, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attach function (not event) to dynamically created object To attach a date picker to an input element, I'm using a date-picker plugin like so:
$('.foo').simpleDatePicker();
How would I attach this function to dynamically created $('.foo')s, so that if I append another $('.foo') element to the page, the simpleDatePi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to export data from Chrome developer tool?
Network analysis by Chrome when page loads
I would like to export this data to Microsoft Excel so that I will have a list of similar data when loaded at different times. Loading a page one time doesn't really tell me much especially if I want to compare pages.
A: from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "174"
} |
Q: How can I implement an opacity gradient across multiple selectable images in a grid/carousel? long time listener, first time caller.
I have a matrix of icons that can be navigated horizontally in a carousel, and vertically as categories (which are rows of icons) that are detached/appended as the app cycles through ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bind to an ItemsControl's Templated Parent from inside the ItemsControl.ItemTemplate What is the proper way to bind to the Parent of an ItemsControl from within the ItemsControl.ItemTemplate?
Non working attempt:
<ControlTemplate TargetType="{x:Type local:ParentUserControl}">
<ItemsControl ItemsSource="{Bind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: excel data filter I have a csv file open in excel. I want to create two line graphs by choosing two rows. The problem is that these rows are in one row. How is this possible? One row contains many values from which a set of values needs to be plotted against set of values in the same row. The power of the two sets a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help with jquery-ui-autocomplete select menu height I am working with jQuery and the ui-autocomplete in a Rails project. Right now when the autocomplete renders, it will open a drop down and display suggestions, but the drop down menu goes below the footer.
I saw this:
http://www.filamentgroup.com/lab/jquery_ui_sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Sort a PHP Simple XML Tree by Date I'm navgating through an XML Tree like this:
$notesXML = simplexml_load_string(XMLSTRING);
foreach($notesXML as $thenote){
$noteAttr = $thenote->attributes();
echo $noteAttr['modified'];
}
As you can see there is an attribute called "modified" as a part of the XML tree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting up Associations with DataMapper & Sinatra Ok, so this is driving me crazy. I have read the Associations article and example and been trying to work this out for the las three days and I'm tired of this making me feel dumb, so...
How does one set up associations with DataMapper?
(I am using DM with Sinatra ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Disable textboxes on check changed I have a checkbox that disables 2 textboxes when checked. When it is unchecked it enables the checkboxes. Here is the JavaScript:
function enableField() {
prePracticeCodeTextBox = document.getElementById('prePracticeCodeTextBox');
preContactTextBox = document.getElementById... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does this string represent as a Javascript object? Given the following data being fed into a javascript engine (like rhino):
{
hello=66.66,
whygod=sun.org.mozilla.javascript.internal.NativeArray@7ba28183,
sku=[2490748],
world=sun.org.mozilla.javascript.internal.NativeArray@69e4fede,
price=[]
}
1) Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Phonegap app performance vs native app performance we are looking at getting a barcode scanning application built. We are considering using PhoneGap but our only worry is speed.
All the application will do is just scan a barcode and check a server to see if it's valid or not. The application uses the camera very int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Returning an array from a Java method I am trying to return two numbers from this method. I thought this was correct. Where am I going wrong?
public int[] getDimension() {
int shapeWidth = 0;
int shapeHeight = 0;
// .....
int[] result = new int[] {shapeWidth, shapeHeight};
return result;
}
And then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the benefit of using java.util.properties while connecting to database? I was reading Oreilly Java Programming With Oracle JDBC edition and I notice that there was one example using java.util.properties object like below;
public class Connector {
Connection con = null;
private Properties info = new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Skipping the rest of the current `for` iteration and beginning a new one. Consider this C++ code
for(int i=0; i<=N; ++i)
{
if(/* Some condition 1 */) {/*Blah Blah*/}
if(/* Some condition 2 */){/*Yadda Yadda*/}
}
Is there any keyword/command so that if condition 1 evaluates to true and execution of /*Blah ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Rhino Mocks: How to tell if object is mocked or real? Given an object o, how can I tell if it's a mocked or a real object?
The only way I can see doing this looks a bit hacky:
public bool IsMockedObject(object o)
{
try
{
o.GetMockRepository();
return true;
}
catch(InvalidOperationException)
{
r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Excel macro to prepare query string based on rows I have one excel Sheet having below records
id Empname state
1 steve NJ
2 karl NYC
I have to write one macro to prepare sql update stement like below and insert into new sheet within the same workbook.
UPDATE emp SET state='NJ' WHERE id=1
UPDATE emp SE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Packaging symlinks via rpmbuild? Is it possible to make rpmbuild to preserve symlinks on packaging?
The current behavior is to create copies of files, which I would like to avoid.
A: I know this Q is old, but here's how I do it.
In the %install section, simply touch the file that will be the symlink.
touch %{buildr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Play Vimeo Videos in Windows 7 phone I am trying to get Vimeo videos to play in a windows 7 phone app. I used the answer here: How can I find download links for vimeo videos? to get a Vimeo URL that looks like this:
http://vimeo.com/moogaloop/play/clip:29415171/f44f7a1dc39fb9b6ebede558e459274e/1310792258
The probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to display live data from Telnet connection I've searched for a couple days I haven't found a solution for my problem.
I need to have a script connect to a telnet server send data to log in then display the output in a web page as the server sends is until the user leaves the page.
My experience is basic pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using JSON with XQuery page So I am using a jQuery plugin (jsonp) to make a cross-domain call to an api and getting JSON data back. I need to somehow get this data into my XQuery page. I'm using Marklogic server to store all my XML data and I know it has some XDMP functions to handle JSON data, it is getting the J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tomcat: Wrong Image I have a pretty bad example of a heisenbug:
Every now and then tomcat delivers a wrong image. Instead of an asteriks it delifers some image a user uploaded.
In the rendered HTML file the img-src points to the correct url.
Does anybody have pointer where to start looking?
A: Yes - could be a race... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Menu Dropdowns are all appearing under the same (left most) parent item I have tried moving the position:relative; setting around, but to my understanding it is where it is supposed to be... Please correct me, because my understanding is clearly wrong!
<ul id="menu">
<li><a href="/products/">A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery $(function () is not working on Web UI I am a new bee in jquery and trying to find out what's going wrong with my code :
<script type="text/javascript">
$(function () {
$("#BtnSubmit").click(function () {
alert(" I am here");
$("#BtnSubmit").attr("disabled", "disabled").addClass("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with PHP looping through members I am having a problem with my updation script, basically if I keep the line as mysql_fetch_row then it only seems to want to insert every other member into the database, but if I change it to mysql_fetch_array then it inserts each member twice, but still not all the users fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7521993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js: Available/Creating Web Proxies I'm trying to create a web proxy alot like Proxify without th options that allows users to surf third-party websites instead of an iframe for maximum usability (Circumventing Iframe issues.).
How would I be able to achieve this?
Also, I've googled around and found some Node.j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Game Timers Slowing Down Overall Performance I'm working on an iPhone App where I rely heavily on timers and animations, but I've realized my game is really slowing down and lagging on certain aspects of the game. I'm not quite sure how to improve this without removing any animations or anything.
Essentially what I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I implement a choose folder option in Uploadify? Uploadify works great, and I love it. However, I just can't figure out how to make a dropdown list to select what upload folder to choose. I want my user to be able to select a folder to upload the file to. Anyone know a good way to do this? Preferably sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Slider refuses to center photos, forces left justified This is a really great slider but it has just one annoying fault. If I have different widths of images, the ones that are too small for the default width, are left justified. I've tried every which way to do it with the html/css but it's somewhere in the js I th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django and MongoDB in E-commerce? sorry for this silly questions,
*
*can someone share experience about combining Django in e-commerce when used with NoSql, if it's not MongoDB, so what about CouchDB or other Non-Document nosql?
*which webserver to use when using e-commerce, cherrypy seems to have SSL? so Tornad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: User authentication using MySQL and GRANT or custom software solution? I'm a long time programmer but have done very little database design. So I'm seeking some feedback on a solution I'm developing.
Description
I will have several (10 to 20) customers storing sensitive data on my remote server. A customer is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete stuff printed to console by System.out.println()? In a Java application I'm using some calls to System.out.println(). Now I want to find a way to programmatically delete this stuff.
I couldn't find any solution with google, so are there any hints?
A: I am using blueJ for java programming. There is a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: How do I add a custom CHECK constraint on a MySQL table? I am having trouble with this table
CREATE TABLE `Participants` (
`meetid` int(11) NOT NULL,
`pid` varchar(15) NOT NULL,
`status` char(1) DEFAULT NULL,
PRIMARY KEY (`meetid`,`pid`),
CONSTRAINT `participants_ibfk_1` FOREIGN KEY (`meetid`) REFERENCES `... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Node.js/Express form post req.body not working I'm using express and having trouble getting form data from the bodyParser. No matter what I do it always comes up as an empty object. Here is my express generated app.js code (the only thing I added was the app.post route at the bottom):
var express = require('expres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can I send email asynchronously from a MVC 3 application? In my MVC 3 Razor application, an ActionResult Create() method in the Controller handles a user HttpPost. At that point:
*
*Data is saved to a database.
*Emails are sent to interested parties using another project in the solution.
*A Confirmation pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Google Custom Search - Refinements I have a Google Custom Search I'm using for a site I'm working on (the search is restricted to this one site). As part of the results you can specify "refinements". These refinements appear as tabs but I want them to appear as links. I do not see anyway to control this nor do I fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Viewing the updated HTML in ie6 I am working with ie6 (unfortunately) and i am having a javascript error. Its wondrous error message gives me a line in the html source, but unfortunately the javascript that does run changes the code for the page(dramatically). So the error that its pointing me to is a closing div ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: invalid validators in Symfony - sfForkedApplyPlugin
public function configure()
{
parent::configure();
$email = $this->getWidget('email');
$class = get_class($email);
$this->setWidget('email2',
new $class( array(), array('maxlength' =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unique jQuery click issue - stops firing after first click on same element I'm experiencing a fairly unique problem that I have not see any information on... anywhere.
It seems that the click event breaks down on an element after the first click (not always on the second, there doesn't seem to be any consistency – o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternative to jQuery append() When adding text to an element, jQuery's append() function adds quotation marks around text. I want to change that, and instead separate values by comma or whatever I come up with. Is there an alternative to append() that will do that ?
To give it some context, I'm using jQuery to dyna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access Repeater FooterTemplate TextBox?
*
*What I am trying to do is to access the value from the TextBox1 to display back on the screen.
*I tried to access it from the Page_Load() and the OnItemDataBound and they both failed.
*It seem like the code is able to access the control but it return nothing ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting a java ProcessBuilder environment with a bash script I've been using ProcessBuilder to successfully invoke a process with various environment variables using env.put("VAR","value").
Now I'd like to source some bash scripts to set a whole bunch of environment variables that are not predetermined within java.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When not to use MPI This is not a question on specific technical coding aspect of MPI. I am NEW to MPI, and not wanting to make a fool of myself of using the library in a wrong way, thus posting the question here.
As far as I understand, MPI is a environment for building parallel application on a distributed memory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LongClickListener on ListView I have a ListView and want to get the long-click events on the ListView itself, not on the individual items in the ListView. I believe it should be as straight forward as just called ListView.setOnLongClickListener(View.OnLongClickListener). However, for me, it seems to do nothing at al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django: Shopping site similar to eBay I need to build a site similar to ebay. I've found some "e-commerce" packages for Django but those are not related to the "C2C" model from eBay.
I've tried these:
https://www.django-shop.org/
http://www.satchmoproject.com/
Do you know any app (package, framework) that can deal w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Xcode code documentation Are there any guidelines/standards about how to document the code written in XCode? I mean, is there a way to document the code if you want to make it easily understandable to others? Does XCode provide an instrument that can be used to automatically produce documentation like the API refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Variable not available outside FOR loop I need to get the first and last date of the previous week. I use the code below and it works fine UNTIL I try to read the variable outside of the loop.
<?php
$current_week = date(W);
$previous_week = $current_week - 1;
$year = date(o);
for($day=1; $day<=7; $day++) {
$temp =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: Unable to restart an ListActivity First post, so please go easy.
I have an app with a handful of tabs, the first is opened on running the app.
One of the tabs is 'My Account' (a ListActivity) showing account options. I switch to this and if the user is not logged in, it, in turn, runs a UserLogon activity u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prawnto won't display pdf inline I'm trying to use prawn and prawnto (both installed via gems) in order to generate pdf's for my app. I want the pdf to display in the browser, but it won't, it automatically downloads instead.
I have the following prawnto options in my controller:
prawnto :inline => true, :filename =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do i need to release NSMutableDictionary in this case? Do I need to release dictCellCollectionIndividual in this case?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
... ...
... ...
... ...
// Local declaration of dictCellCollectionIndividual
NSMuta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: com.sun.java.accessibility.util package doesnt exists I am trying to import com.sun.java.accessibility.util.*; but Netbeans IDE says package doesn't exist.
I have a folder with .class files which I add to the netbeans library and still doesn't work. I try to look for this package online but I am not able to find it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save a json-object in an array? is there a possibility to convert a json-object to a array or something?
i like to have a function, which is retrieving data from a sqldatabase via json:
jQuery.getJSON("file.php", function(data) {
...
});
this data should be stored in an array, so that i can use it on seve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PHP web service, send response before end of script execution I have a web service written in PHP to which an iPhone app connects to. When the app calls the service, a series of notification messages are sent to Apple's APNs server so it can then send Push Notifications to other users of the app.
This process can be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET, C#, IIS, Start Up I am a total Noob to to .NET. I have all my files, folders, master pages, and code behind pages in my directory... I have been building it on a local development environment that was set up by the person who was here before me. I do not know much about what the specs of the environment are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Change Gridview column width dynamically I am trying to change the size of the items within my GridView. Currently the items are arranged by style (GridView_words_small) in an xml:
numColumns: auto_fit
stetchMode: 'spacingWidth'
ColumnWidth: width of the items being added (resource).
Now, through a settings change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Creating search query in MSACCESS I created three table in MSAccess (PCH Info, Attorney zip-county, Medical-zip code-county). Each table have similar field of zip code, city and county. My Goal is to search for either of the zip code, city and county in the 3 table and return result meeting either one or 2 of the se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring AOP and AspectJ. Need advice/comments on Around Advice I posted this on another forum and wanted to see if I can reach more people.
I am working on an application that consists of different Spring web apps.
Say we have:
*
*ComponentA.jar
*ComponentB.jar
And WAR files:
*
*Foo.war (contains ComponentA)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Emacs C-c } command and parentheses-match checking I am working in Emacs 23, editing LaTeX via AUCTeX. I noticed in emacs that when I press C-c }, I receive the minibuffer message
Scan error: "Unbalanced parentheses", 16026, 16440
Question 1. What exactly is this command doing?
Question(s) 2. More generally, how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementing Select List Lookup ViewModel Attribute I'm trying to implement a more customisable version of using ViewModel attributes and a Model Enricher to populate viewmodels lists like in this this question and associated blog post.
I would like to be able to specify the method on my select list interface from t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing an object in every Django page I have an object called Groups that is used in every single page on my website. However, Django only passes in Python objects to html through render_to_response and I can't render to response everytime something happens to the groups object.
How do I maintain this object(as in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php mod_rewrite cannot get second parameter from rewritecond I have a server that I am setting up to rewrite subdomains as get parameters
So,
subdomain.example.com/blog/test
would actually point to:
example.com/index.php?website=subdomain&request=blog/test
I have setup the domain with an A record with a value of *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ListPreference keeps repeating rows I am trying to display a list with checkboxes using a preference activity. The list is supplied with 121 entries and by debugging I have confirmed that the complete list is passed into the ListPreference. However the scrollable list ends up with the first 4 entries repeated to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EF Code First: Object with One-to-Many and M-T-M of same classes fails to generate M-T-M in db I have the following classes (shortened)
Game
{
public int id {get;set;}
public virtual ICollection<Player> Players {get;set;}
public virtual Player Owner {get;set;}
public virtual ICollection<Character> Characters {get;s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange apostrophe issue in web form > SQL Server We look after a site for a client on which they have a page with a HTML form text area that gets written to a SQL Server ntext field.
One of their customers was updatng their profile using this form and mentioned that when they entered the word "don't" into the for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: obtain an Image with Jquery and Php I want to obtain images from the server.
The html code :
<div id='container'></div>
Here is my code in jquery :
$.post('php/Image.php', function(data) {
$('#container').html(data);
});
And the php code :
header('Content-Type: image/png');
$img = imagecreatefrompng("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regex for scheme kind of input I am writing a java program which would act upon the input which would be in scheme kind
of language.
Something like
(+ (+ a b))
Say I now want to check the syntax like if there are 2 brackets which have been opened, there have to be 2 other closing brackets. I am not sure how to ach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What design pattern is this? It has to do with threads Forgive me if I've missed an obvious answer, but I have looked around for this and I cannot find it. I am trying to build a multi-threaded program that uses mutexes as little as possible. The following is the basic design. I want to know if I'm recreating the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can gnuplot split data? I have some data in the following format:
10.0 1 a 2
10.2 2 b 2
10.4 3 a 2
10.6 4 b 2
10.8 4 c 10
11.0 4 c 20
... where the third column basically indicates belonging to a 'separate' dataset; and so I would like to show, say, those samples belonging to 'a' in red, those belonging to 'b' in b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Curl - Cookies problem I am trying to grab my amazon associates stats automatically via cUrl. However I am falling down at the first hurdle; logging in.
When I use the following code:
$url = 'https://affiliate-program.amazon.com/gp/flex/sign-in/select.html';
$post_data = "action=sign-in&email=$username&p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Dropdown option that include all values, saving to database as FK Let's say I have a table "Products" with 3 products ID: 1, 2 and 3.
Then in my asp.net app, I have a dropdown to select the product with these options:
*
*Product 1 (with value 1)
*Product 2 (with value 2)
*Product 3 (with value 3)
*Any product ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I collect client-side information on errors in my PHP application? I'm putting together an enterprise application using PHP and Yii. I want an easy way for the users to report a problem or bug if one occurs however I'm having a difficult time deciding the best way to capture/record the state of the system to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Add rulers to a CDockablePane in a MFC Application How should I add rulers to o CDockablePane? (rulers like these or these)
I found two implementations of rulers controlers on the web, but both are made with CView derived classes and, since I need the rulers to be in a dockable pane, I couldn't use neither of them.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: resizing UIImage the fastest and efficient way I wanted to resize a UIImage to a certain width and height keeping the proportion in place. The simplest way to do this is:
CGSize newSize = CGSizeMake(726, 521);
UIGraphicsBeginImageContext(newSize);
[image drawInRect:CGRectMake(0, 0, newSize.width, newSize.he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Web services response in client language - how to? I am developing a SOAP web service in Java using metro.
I want to deliver the response in in the client language.
My idea is to return all the string fields translates. This is not the main purpose for the web service, but is a needed convenience.
The ResourceBundle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is $facebook->getUser() returning 0? I have read all the other similar questions, but none are the situation that I am experiencing. I have a server side script which does:
$this->facebook = new Facebook(array(
'appId' => FACEBOOK_APP_ID,
'secret' => FACEBOOK_SECRET,
));
$user =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to "override" just the workflow from a product? I have mynamespace.myproduct and mynamespace.myproduct2.
mynamespace.myproduct2 is defined as a dependency in mynamespace.myproduct's metadata.xml. mynamespace.myproduct2 has some workflows that I would like to override, without having to customize mynam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WebSharper Interface Generator - Records How do I go about defining a record that would be serialized to a JSON object... I've been trying to build the oConfig parameter for YUI2 constructor, something like:
type TreeParameter =
{
Type : string
Label : string
Expanded : bool
Child... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql command with the -H flag is translating column values to HTML safe strings There seems to be a feature that has been added in mysql's client command line v14.12 which causes the output columns to be converted to web safe output when the -H flag is being used. This is clearly a safety feature but in my case I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How would I Evaluate a certain formula? I have a multidimension arrayList and I ask the user for a formula and than I evaluate it. The problem is that I get user input like this:
((a1+a2)/12)*a3
the problem is that a1 and a2 and a3 refer to columns and I have to evaluate it to a certain value to it and I am tota... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Practical (Django) Caching Strategy & Implementation? Cache long, Invalidate cache upon data change I have a Django app that gets near-realtime data (tweets and votes), although updates occur only every minute or two on average. However we want to show the data by updating the site and api results right when it com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: General Ledger Account Code Format I have added a general ledger account table to my database to store account codes and their descriptions.
I have asked three potential clients, two use a 4 digit numeric code the other a 3 digit numeric code.
I have been unsuccessful in finding any standards for the account code, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding a custom page dynamically (at runtime) I'm writing an install script utilizing the NSIS installer scripting language. I have a few custom pages that I am able to load without hassle, but I was wondering if it would be possible to insert pages dynamically. What I want to do is have a page with additional con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Undefined Index errror with $code = $_REQUEST["code"]; for Facebook auth Every time I go to the canvas page of my facebook app it briefly shows an error saying undefined index on the line with $code = $_REQUEST["code"]; at line 9. After this code shows it looks like it does a quick redirect and everything works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7522189",
"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.