text stringlengths 8 267k | meta dict |
|---|---|
Q: git branches and running programs I am running a program in a git repository on a linux server. This program periodically calls another program in that repository. If I do a git checkout 'otherbranch' in the middle of execution will it suddenly start calling the version of that program in the other branch?
I'm new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In PHP, how do I make a mySQL select query that contains both quotation marks and apostrophes? I'm getting data into my database without any problem using mysql_real_escape_string.
So an entry in the database might be:
1/4" Steve's lugnuts
So that's perfectly in the database.
Now I want to search for that exact thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Extract MS Word document chapters to SQL database records? I have a 300+ page word document containing hundreds of "chapters" (as defined by heading formats) and currently indexed by word. Each chapter contains a medium amount of text (typically less than a page) and perhaps an associated graphic or two. I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I force a c++ class method to accept only a handful of integer literals? There is a class I'm refactoring which currently has a method:
void resize(size_t sz)
In the current codebase, sz is always 0,1,2,or 3.
The underlying class is changing from dynamic allocation to a preallocated array of maxsize==3.
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to quit or exit slave JWindow that was created from a master JWindow in Java? How can i exit only they new MainGame that i created from Main?
Where Main is having an original layer of game. And the MainGame was a dialog window (such as modal windows).
Main.java: (main code)
public class Main extends JWindow
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Continous animation after clicking the next button using Easyslider 1.7 Does anybody who has ever used this know how to get the slides to continue scrolling after clicking the next button? Currently if you click on 'next' button, they stay on that slide.
My jQuery skills are slightly below average and I can't figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Downloading website into string using C# WebClient or HttpWebRequest I am trying to download the contents of a website. However for a certain webpage the string returned contains jumbled data, containing many � characters.
Here is the code I was originally using.
HttpWebRequest req = (HttpWebRequest)HttpWebReques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Cgi-bin scripts get run without a user? I'm running a binary that requires a license key to reside in the user's home directory. I'm making a cgi script that calls upon this binary and everything is happy when I execute the script from the command line using sudo -u www-data binary. However, when I run the cgi scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calling an AJAX function declared as a VAR, using Applescript I am trying to run a javascript code inside a page using Applescript.
The AJAX function was declared in javascript using something like this
var myFunction = function () {
// bla bla... here goes the code...
}
I have tried this in Applescript:
do JavaS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with fill() method Here is my JavaScript code:
function Show(output, startX, startY){
var c = document.getElementById("myCanvas");
var context = c.getContext("2d");
context.arc(startX, startY, 3, 0, Math.PI*2, true);
context.fill();
context.arc(startX + 50, startY, 3, 0, Math.PI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java generics in inheritance in Android My intention is to set create a class with this type of inheritance:
public class BaseActivity<T> extends <T extends Activity>
but of course this inheritance syntax doesn't compile. Any alternative suggestion where I can arbitrarily select a Tab or Map Activity to be the bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 2.3.8 Redirecting: redirect_to back or default results in infinte log-in loop map.connect "/session", :controller => "sessions", :action => "new"
so, I decided to add the above line to my routes, because sometimes, the user may end up on /session somehow...
but when I did that, after I try logging in, the
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use the AsyncCTP with an TFS APM Method (Query.Begin/EndQuery)? Would like to try using AsyncCTP with TFS. Currently have a long running method that calls RunQuery on a TFS Query instance.
Query exposes the APM methods BeginQuery() and EndQuery(). As I understand it, the recommended approach to wrap the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to work with GXT Grid? I have a DTO object with fields:
public class EmpDTO extends BaseModel implements java.io.Serializable {
private short empno;
private EmpDTO emp;
private DeptDTO dept;
private String ename;
private String job;
I try output this class in the grid:
List<ColumnConfig> con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Choose sorting type in flash.net.FileReferenceList browse method It is possible in the open file dialog of
flash.net.FileReferenceList
to specify the file sorting order, ie the equivalent to make in Windows File Explorer "Arrange icons by"?
A: The short answer: No.
The FileReference.browse (to select a single fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SeekBar minHeight and maxHeight by code Does anybody know how to set the minimum and the maximum SeekBar's height by code? I want to reproduce the same behavior as the following XML's excerpt:
<SeekBar android:minHeight="6dip"
android:maxHeight="6dip" ... />
A: I do not know if there is a code for it. I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: iphone:UIWebview gradient background with CSS possible? I want to give gradient to UIwebview's background which I load as:
[self.webView loadHTMLString:customHtml baseURL:nil];
but this html line does not give the effect, anyone knows how to do this better or can fix this css?
[customHtml appendString:[NSS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript Date object always printed in America/New_York timezone? I have a time-stamp in milliseconds (Unix time / time from Epoch) sent from my server, which uses Joda-time and always the constant timezone "America/New_York". On my client, I also want to guarantee time is displayed according to the America/New_Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any relation between WCF and HttpWebRequest What is the specialty of WCF? Does WCF have any relation to HttpWebRequest, WebClient, etc? What is the main functionality of WCF?
If there is a relationship between WCF and HttpWebRequest, how can I use them together?
A: WCF is Windows Communication Foundation. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Regular Expression - Python - Remove Leading Whitespace I search a text file for the word Offering with a regular expression. I then use the start and end points from that search to look down the column and pull the integers. Some instances (column A) have leading white-space I do not want. I want to print just the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change the time interval of a Timer here is my question:
Is it possible to increase the scheduledTimerWithTimeInterval:2 for example of "3" after 10 seconds in ViewDidLoad for example.
E.g., from this:
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(createNewImage) userInfo:nil repeats:YES]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Perl: IPC::Shareable and SWIG'ed C++ object don't agree For a certain Perl project of mine I need several Perl processes to share some resources, located in a C++ library. (Don't ask, it's not the core of this question, just the context.)
Thus I am trying to delve my way into two "new" fields in this context: IPC::S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: reusing junit tests in Android I have a library whose Junit 3 tests I'd like to reuse on Android. The problem is that these tests depend on files being present (test data).
For Android this means that some setup code needs to call getContext().getAssets() and dump the asset files to the sdcard, where they will be p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Loading csv file to MySQL DB with blank "columns" with INSERT I'm trying to write a php script that will load a tab-delimited CSV file into a MySQL database table so that I can set up a cron job to automate the process.
PROBLEM: The problem is that the CSV file contains many blank "columns" including blank column t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSBUILD - block until a file exists on an ftp server? As part of a build process .. I would like to block the build until a file gets created (exists) remotely at an ftp location, after which I would continue the build. (Preferably with somekind of time out limit).
Suggestions?
Is this even possible using only the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePHP how to pass error data from the Model back to Controller In some special cases where just logging an error isn't enough I would like to pass an error array or a custom error string from a Model to the calling Controller in order to send that data to me in an email.
I thought about just sending an email from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Assign a different font size to some text in a div + vetical align in table? sorry to combine two questions into one but I'm having trouble finding and answer to two even when I think it should be simple.
When I set the font size for a table like this:
table.tablesorter {
font-family:arial;
font-size: 16px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a simple way (in Cocoa/iOS) to queue a method call to run once in the next run loop? UIView has a setNeedsDisplay method that one can call several times within the same event loop, safe in the knowledge that the redrawing work will happen soon, and only the once.
Is there a generic mechanism for this sort o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Making a $_GET search URL (containing a term) SEO safe without affecting search results? I have an existing PHP/MySQL search for my website (which is in production at the moment).
Visitors can search the website via a $_GET form (by entering the search term).
The $_GET URL looks like -> http://localhost/search/the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exclude repeated modulus values I have an event firing that shows progress in a video:
_currentPosition = 3.86 seconds
_currentPosition = 4.02 seconds
_currentPosition = 4.16 seconds
etc.
What I'm trying to do is to send a notification to the server every five seconds, to indicate progress. I can round the seconds d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XPath dealing with intermixed content How to extract the text of such an element via XPath:
<document>
some text
<subelement>subelement text</subelement>
postscript
</document>
The XPath expression:
/document
returns document node text and all its subnodes text:
some text subelement text posts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Twitter Authentications in C# web service? Here is my scenario:
I have a mobile application, which will call a method in C# webservice, which will have 2 parameters, TwitterUsername and TwitterPassword.
Now in that web service method, I have to authenticate the user with these username and password for twitter and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Segmentation Fault with Large Input I know segmentation fault means that the process has attempted to access certain memory that it's not allowed to.
I'm running some program written by others using C++. And when my input is large (around 1GB), there'll be a segmentation fault even though I requested 30GB memory; wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gwt XMLParser Failed to parse error not well formed I am using GWT and want to parse an xml file, but I get this 'Failed to parse error: not well formed'.
I am following the exact steps from:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsXML.html
I am using the same xml email message and has bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL: Selecting unique values from col1 of a table and summing the values in their respective col2s I have a list of multiple clip ids e.g. 1,2,3,3,3,3,4,4,4,5,5,5 and in the second column, i have a duration in frames - each clip only has one duration - what query can i write to add up all the durations for each un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why is my data moving around after a F5 refresh in Firefox? I have a webpage with 4 tables. Each row contains two text boxes with numeric values. The textboxes are populated with data from the server. But,something strange happens.
If I add data to a row, say row 1. Then Refresh the page...two values are moved do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: insert multiple rows same time A PHP script is generating the following table panel based on the data from a mysql DB. Each cell of the table contains a checkbox which sets the access to some 'areas'. The name of my checkboxes are following a certain rule: u[user_id]a[area_name] and I was thinking to get all the $_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there an option to turn a jQueryUI button into one that automatically disables itself when clicked? I want to prevent someone from clicking this button twice and triggering two form submissions which could result in duplicate payments on the server:
$("#SUBMIT_PAYMENT").button(
{
label: "SUBMIT PAYMENT",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One function to detect NaN, NA, Inf, -Inf, etc.? Is there a single function in R that determines if a value is NA, NaN, Inf, -Inf, or otherwise not a well-formed number?
A: You want is.finite
> is.finite(NA)
[1] FALSE
> is.finite(NaN)
[1] FALSE
> is.finite(Inf)
[1] FALSE
> is.finite(1L)
[1] TRUE
> is.finite(1.0)
[1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: viewing specific people who have shared/liked a page on facebook & retweeted I'm planning to run a promotion on my site that will require me to know EXACTLY who has "shared" specific pages on my site on facebook and retweeted the page on twitter.
The most I've been able to find so far is a way to get the count of p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Buttons in a listcell XUL Is there a way to get buttons in a listcell to work in XUL? I'm not sure what is stopping it from running. The XUL looks like :
<listitem id = "1">
<listcell label = "OK Computer"/>
<listcell label = "Radiohead"/>
<listcell label = "1997"/>
<listcell label = "Platinum"/>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: to launch a Dialog from a Service, should I use Activity or View? Say I'm running a service and need to pop out a dialog. As we know, it's impossible to launch a dialog directly from a service, therefor we need to launch and activity ( or view ) and then have it launch our dialog.
The dialog, as well as the activity... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting undefined via ajax JSON when I check the log from Console using chrome browser, I keep getting sideType is undefined. It is not returning data to sideType variable.
when I put console.log(sideType); in the sideGroupData() function - it work fine without problem.
Code:
function sideGroupData(GroupID) {
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python text search question I wonder, if you open a text file in Python. And then you'd like to search of words containing a number of letters.
Say you type in 6 different letters (a,b,c,d,e,f) you want to search.
You'd like to find words matching at least 3 letters.
Each letter can only appear once in a word.
And ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JAX-RS unrmashalling with @XmlIDREF I have been looking into this issue for hours now, probably simple but I don't get it anymore:
I have an entity (Param) which is rendered to json via jax-rs. The entity references another entity (Step).
When writing / reading json, I dont want to see the whole step-entity but mere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Web application account confirmation security flow I have a question about security flow of confirmation link.
I have a website on which you have to fill your email address and password after filing these information my app sends an email with a secure link to user email address. After clicking on confirmation ema... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to deploy an app to another ipad without usb connection? Is it possible to deploy an app on a friend's ipad for testing without the app being on the app store yet. My friend is far away so cannot connect to my mac via usb.
A: If the UDID of your friends iPad is added to your developer account and you compiled t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to represent a tree, where each child could be under multiple parents I'm looking for a best way to represent a set of structural data.
I'm designing a product picker. It will ask user some questions to narrow down to the set of products.
i.e.
1st question: "What's the product Group?"
Answer: Group1
In Group1, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MSI keeps installing older version when called with silent argument I am having a very annoying problem.
I have an application with a setup project included in the solution that builds a .msi. I use VS 2008.
I have incremented the version of the setup project - selected the project in solution explorer, pressed F4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parsing specific elements of a String in Java I want to read Object from string expression. eg:
I have following string:
(3:2,1)
or
(3:null,1)
now I want to read Object1=3; Object2=2; Object3=1 or
Object1=3; Object2=null; Object3=1.
How can I read it in Java.
A: Perhaps, this is what you want:
String s[] = inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with redirecting I have a problem with ASP.NET.
I have button on ex. index.aspx which redirect us to index2.aspx, but before that, first page - index.aspx - was reloaded. I don't need it because function in "load" is running again.
How to solve that problem?
A: Use a link instead of a button, if you want th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to Play sound when UIScrollView is scrolling in iphone sdk? I have a scroll view that can be scrolled to the sides (only up and down, not left and right). I want to play a short sound, whenever the scroll view is moved Y pixels to either side.
How can this be done? Code samples will be greatly appreciated...and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Correct storage for large relational data-set I need to store a large set of what is, in my mind (although I'm used to SQL), relational data. Basically consider storing a large subset of ClueWeb (4 TB). There are documents, sentences, and extractions--as well as properties of each. A major use case is running ful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I test "Rate my App" functionality? I've got a bit of code in my app, that after X number of days will check if the user has rated the app, and if not, prompt them to do so.
How can I feasibly JUnit test this in a painless manner? The emulator doesn't have the market application by default, but there are ple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to grab an image tag from html via jquery So I have a data set that is returning something like this in the variable entry.content:
<p style="float:right;margin:0 0 10px 15px;width:240px"> <img src="http://citysportsblog.com/wp-content/uploads/2011/09/RagnarNE.jpg" width="240"> </p><p>Have you heard of the epic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: framework to performance test javascript I am currently implementing a module observer pattern to a large scale web application that has a large dependency on javascript. I have introduced unit testing of each of the modules which I find very beneficial in capturing any issues with my javascript.
I would now also li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: AWK fast value search I need a fast way to match a value in AWK, I have 250k values to search.
I'm doing something like this:
#list with 250k numbers instead of four
number_list="9998532001 9998536052 9998543213 9998544904"
if ( index(number_list,substr($5,9)) )
{printf "Value: %s\n",$5;}
Any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery AJAX and webservices using onchange for dropdownlist I have a dropdownlist that I use jquery ajax to make a call to a webmethod. My intended solution is to update all the data fields on the cuurent page based on the dropdown selected index using ajax.
function getDBInfo()
{
var mySelectedIndex = $("#<%=db... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: New error in supervisord on Ubuntu This error seems to have shown up in the latest set of upgrades on ubuntu
Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 9, in <module>
load_entry_point('supervisor==3.0a10', 'console_scripts', 'supervisord')()
File "/usr/local/lib/python2.6/dist-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to redirect to a specific part of a page? I have this problem: my website have a big logo which full all the screen for common resolutions, which is hard to understand that the content is actually changing when the user clicks in a menu (because the content is to low on the page). My question is, is it possible ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Reuse DataGrid TemplateColumn DataTemplates I've build a datagrid which has a custom column:
<DataGridTemplateColumn
Header="{x:Static local:MainWindowResources.gasNameLabel}"
Width="*"
MinWidth="150">
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<TextBox
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ListActivity as StartActivity Hy.
My startactivity should be a ListActivity.
public class Main extends ListActivity
Layout:
<?xml version="1.0" encoding="utf-8"?>
<ListView android:id="@+id/listView1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Graphing and filling an area based on 4 or 5 coordinate points using JavaScript or Coldfusion Thanks for taking a look at my question. I'm trying to create a graph that will show the range of widths/heights that will fit within a container. The graphs will always be shaped in one of the two ways show below:
http://i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split Text in I have a very long text without space. For example,
<div style="width: 179px">
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
</div>
I want to split this text into lines with maximum width 179px. Do you know how to do that?
A: Use CSS.
word-wrap: break-word;
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: KSOAP2: How to use HttpsTransportSE? I am developing a android app to communicate with an web service that requires an SSL connection. To do that, I want to use HttpsTransportSE, but I can't find tutorials about how to use that class.
I am trying to build a new instance, but I don't know exactly the info I must pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Update with iBatis I need to update the following table:
TOPICS = where WORD_ID is a foreign key and both of them are the key of TOPICS.
I would like to query with iBatis:
UPDATE TOPICS
SET TOPIC = #newTopic#
WHERE WORD_ID = #wordId#
AND TOPIC = #oldTopic#;
What's the way of using multiple parameters which are no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: s3fs unable to mount bucket I apologize in advance for asking such a stupid question, but how do I mount a s3 bucket on my file system using s3fs?
I used the simple instructions given in:
https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon
I have it all installed and I put my credentials in the /etc/passwd-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a PHP SOAP web service consumsed by RPG need a WSDL? I have a very basic, beginners PHP web service:
<?php
function EchoText($text){
return "ECHO: ".$text;
}
$server = new SoapServer(null,
array('uri' => "urn://tyler/res"));
$server->addFunction('EchoText');
$server->handle();
?>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: adding array (list of values) to a json object I try to loop through some json (clustered twees from twitter) and count how often particular keywords (hashtags) are present so I can create an ordered list of frequent words.
this (19)
that (9)
hat (3)
this I've done by creating
var hashtags = [];
first time I ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TinyMCE: How to disable code rewriting? I'm trying to prevent TinyMCE (in Joomla) from rewriting code (adding, removing, moving tags and attributes, etc). I don't want to setup every tag, just simply stop TinyMCE from changing my code.
The TinyMCE configuration:
verify_html:false;
doesn't work for me and toggling ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: switching connection strings in c# Are there any standards for switching out connection strings for different environments in C# web apps? I'm currently evaluating which ways are the most secure including where to store them. I've seen people simply add them to the web config and switch them in code with if statemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Akamai CDN integration with Sitecore For our website, we want to use Akamai as CDN. The problem we have intercept all the html and change media URL's to akamai URL's.
for eg:
~/media/Marketing/Stages/EmailMarkeImg.ashx
http://media.akamai.com/~/Marketing/Stages/EmailMarkeImg.ashx
So, right now, i am intercepting thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE is still caching page content for a few seconds when META tags are applied. What to do? I have a scenario where the main website (which I have no control over) is loading my website from within an iframe. It's a GET with query string parameters chosen by the user on the main website. The issue is that IE caches... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with List box count in asp.net website <asp:ListBox ID="ListBoxMembers" runat="server" SelectionMode="Multiple"
DataValueField="FirstName"></asp:ListBox>
I have this list box inside a pop up, When the user selects multiple user and click save button this is executed
int countSelected = ListBoxMembers.Ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress Taxonomy - how does it know which object_id? I'm working on a project and would like to create a similar functionality that Wordpress has for taxonomy.
I'm not quite sure how it all works though.
They have 3 tables that are related:
wp_terms (
term_id,
name,
slug,
term_group
)
wp_term_taxono... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PHP: How to use params here? I am making a function so that I can post from Ajax using a general function where I just pass the params, to avoid having to create one php file for each Ajax function.
This is how my function looks right now in the PHP side after receiving, via post, the params that you can see in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a screenshot of a gtk.Window For testing and documentation purposes I would like to create a screenshot of a gtk.Window object. I'm following a basic pygtk sample at the moment. The example with my modifications looks like the following:
import gtk
def main():
button = gtk.Button("Hello")
scroll_wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I create an object from a string I have this object set:
Object A
Object AA: A
Object BB: A
Object CC: A
how do i create an object of type AA Given a string variable with "AA" in it? I've been looking at the Activator stuff but can't quite figure it out.
A: You need to get the Type instance for AA, then pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to dynamically adapt the layout by using only CSS Depending by the size of the app interface, I need to adapt dynamically the layout by using only CSS.
It will be possible?
If the width of my app is 500px, I'd like to display the 3 containers in this way:
| A B | // width 500px
| C ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Coldfusion: need help with outputing query on one row per system instead of multiple rows HISTORY: A system has passed through 1 - 19 or so statuses before being moved to production. I need to build a report showing the date the system passed through a status and NA if the system did not pass through a status.
REQU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Spring MVC support JSR 311 annotations? While helping out someone else, I noticed they were trying to do Spring development using the @GET, @Consumes, and @Path annotations. It is my understanding that these annotations come from the JSR-311 specification.
I simply suggested that they use the Spring @RequestMa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Jenkins/Hudson Build All Branches With Prioritization How do I configure Jenkins to build all branches while giving the master branch the highest priority?
My first idea was to create two jobs with one configured to build all branches and the other to just build master, then using the job priority plugin to configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concatenating a nested list with differing number of elements I am a newbie to R and have a concatenation problem that I haven't been able to solve.
I have a huge data frame of the form:
station POSIX date.str forec.time lead.time mean.ens obs
6019 2011-08-06 06:00 20110806 00 006 45 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I import a VS2005 Solution for C++ App into an IDE for debugging it on Linux? Can I import a VS2005 Solution for C++ app into some IDE that runs on Linux and allows me to debug the app? It is a working app and already has a makefile for Linux.
A: Codelite allows you to import Visual Studio projects
http://www.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Code cleaning in entity framework This is a question that is completely a matter of opinion. But it might also be a question about stupidity from my side. Its working fine both ways. But I want to find out what people think.
public IQueryable<User> Users {
get {
return context.Users;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling a copy constructor with instance being created I am not asking about the logic of such a call, rather I'm interested in a difference of support b/w Visual C++ and GCC / Clang. Visual C++ will not allow a new instance of an object to be used as the parameter for its own copy constructor. GCC and Clang allow t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to disable CKEditor dialog skin? I hope somebody can give me some idea on this.
I have a CKEditor 3.6 dialog which contains a single element of type html and loads an external page (or actually it's body html content). The style sheet for that page is loaded by MediaWiki 1.17 resource loader. My problem is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JQuery Username Validation with asp.net I am using the best tutorial of encosia website which was written by David ward and by his example given in his website for instant validation of username.
Here is the link of the original post:
http://encosia.com/aspnet-username-availability-checking-via-ajax/
So the problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove page/ of High Voltage for statics page rails Hello I am using High Voltage for my statics pages in rails but I see the next structure when I make my statics pages:
myserver.com/pages/about
myserver.com/pages/privacy
myserver.com/pages/terms
.
.
.
.
I don't want that "page" word appear. I want that appear this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing max_allowed_packet property with Hibernate configuration Is there a way to change max_allowed_packet with the Hibernate XML configuration file?
This is my Spring injection for Hibernate
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: YouTube Annotations via PHP Zend Framework Is it possible to add annotations to a YouTube video using the PHP Zend framework and the YouTube API?
A: It appears that the YouTube API does not support this functionality. It is currently a feature request here: http://code.google.com/p/gdata-issues/issues/detail?id=558... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to strip_tags all tags from 0 to 300 chars and from 301 to allow only some tags I was wondering how on a given post that contains HTML also, to
strip_tags($entry->description);
from char 0 to 300 and from 301 to end of post allow only <b><p><br>
strip_tags($entry->description, '<b><p><br>');
I am looking for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python function to break a message in n lines Hy everyone, i want to do something like this but my logic is not so goog. I have a message, that must be 80 chars in every line: I can do this like this:
msg = ''
msg_list = []
for i in dict['msg']:
if len(msg) >= 80 and i.isspace():
msg_list.append(msg)
ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do i access the non-final variable number inside an inner class in Java? This is my first time programming in Java so i can't understand why i can't access the variables outside of a function. I tried to change the variable to final but there's still an error:
The final local variable number cannot be assigned,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: printing UTF8String in XCode Debugger Console While printing contents of a NSTextField the debugger is displaying following character sequence \342\200\250 for newline. Can anyone tell me how to interpret this sequence, I expect it to be newline character since I entered newline after Headline news 1
print (Ptr)[[se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unexpected Error message from WCF service I have one wcf webservice deployed on server. In case of an exception the error message behaves like code is getting executed from local machine. For example the below error message indicates the local machine folder where actual code is stored. for example "C:\initpub...". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP set_time_limit limit QUESTION
Would it work fine if I use sleep(300); to do a whole day (24 hours) in 5-minute gaps?
This means, would set_time_limit (86400); work?
Then I can set my host's schedule to only be used once every 24 hours.
INFO
I found what I am doing now on this question and am now using it to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What makes admin button pop up on open graph? I have an open graph page:
http://www.pmctool.com/pmc-extravaganza.php
I have my fb_userID in the fb_admin og meta tag, but it never shows me the Admin button for the page. I created other pages with the same code, and I have an admin button that shows up, but this page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can PHP GD create image effects similar to fxCamera? I wonder whether PHP GD can produce these kinds of effect like those found in android's fxCamera
*
*ToyCam
*Polandroid
*Fisheye
*Warhol
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7518441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: x86 simple mov instruction This is a simple question but I can't find reliable answers on google.
What does this instruction mean:
movl %eax, (%esi, %ecx, 4)
Is it move the value at register eax to the value in memory that (%esi, %ecx, 4) is pointing too?
(%esi, %ecx, 4) is for an array. So it means Array[Xs + 4i] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7518448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.