text stringlengths 8 267k | meta dict |
|---|---|
Q: What is a boolean flag I'm taking a course in Visual Basic 2010 and I'm trying to get a grasp on this new term called a flag. I kind of understand that it has something to do with a boolean condition. I don't quite understand what a flag is. I see references to it using the term flag. I understand it has something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to test for nth-child using Modernizr? I'm trying to use modernizr to test for :nth-child browser support but I'm not sure how to do it, I found this one http://jsfiddle.net/laustdeleuran/3rEVe/ which tests for :last-child but I don't know how to change it to detect :nth-child (I was also thinking about using it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: OnTouch locations tablets vs. phone I made a particle system that was designed for a tablet.. particles follow finger movement etc. anyways.. I implemented the gyroscope so when you tilt the tablet whatever direction.. all the particles fall to that direction. In the manifest I locked it down to landscape view.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL View - Combine multiple rows into 1 row I am trying to make a new view using in MSSql 2008 from three tables:
Table 1 has customer id and transaction id
Table 1
CustomerID TransactionID
1 1
1 2
Table 2 has Purchases Transaction and Products ID
TransactionID ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find links in page and run it through custom function function link_it($text)
{
$text= preg_replace("/(^|[\n ])([\w]*?)((ht|f)tp(s)?:\/\/[\w]+[^ \,\"\n\r\t<]*)/is", "$1$2<a href=\"$3\" target=\"_blank\">$3</a>", $text);
$text= preg_replace("/(^|[\n ])([\w]*?)((www|ftp)\.[^ \,\"\t\n\r<]*)/is", "$1$2<a href=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP-CLI Sudo Execution I am running a cli-script, that requires a exec('sudo ...'); call. I know it is not safe on the web, but how can it be done in cli? The script is executed by a user known as "btcdbit", who is in the sudoers file.
A: In my experience setting the NOPASSWD option doesn't always work and even if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# picturebox point to filesystem i have a picture box in my win forms app. the question is, how can i make the image load from a directory within that application,
for example, i have a program and it lies under Debug directory. Now i have an image located under Debug/source/images/logo.png. I dont want to make use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interface php results with jQuery I have quite some experience with php, but I am very new to using jQuery.
I am hoping someone can give me some example code (preferably) or point me in the right direction for which jQuery functions I need to use, essentially, what I want to do is for a user to submit a form in php ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Model.find(:all, :conditions ...) on one field for one key-value from a hash? I have a table of email messages like so:
create_table :emails do |t|
t.string :emailMessageId
t.datetime :date
t.string :subject
t.string :gmailMessageId
t.string :gmailThreadId
t.string :from_hash, :default => nil
t.text :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error applying image style dynamically, why? attrs.xml:
<declare-styleable name="AppTheme">
<attr name="actionbarCompatLogoStyle" format="reference" />
</declare-styleable>
styles.xml:
<style name="Theme.MyApp" parent="android:style/Theme.Light">
<item name="actionbarCompatLogoStyle">@style/ActionBarCompatL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Best way to show navigation details for more than one destination I am working on a navigation program for the Android, and one feature is to allow you to enter several destinations, and it will show directions on how to get from point A to point B to point C.
My difficulty is showing the details, as I am not certai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expression for summing all the entries of a logical matrices expressions in Matlab? To sum all the elements in a matrix you usually do
A = sum ( B(:) );
which is nice and short. However assume that we have a logical expression like this
B = B == 6
and we want to sum the elements of all the entries, then smartest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wxPython and windows 7 taskbar For brevity's sake: I'm trying to implement this with wxPython, but I'm struggling to fit that code into a script based on wxPython.
My simple PyQt test code works fine. Here it is:
from PyQt4 import QtGui
from threading import Thread
import time
import sys
import comtypes.client as cc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I make a picker appear to spin around multiple times? I am trying to make a picker appear to spin around multiple times before landing on a particular row. I have tried using for and do while loops. I have even tried calling multiple methods in succession, but each time, the picker only appears to reload once... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java using compareTo with an array of strings I was wondering if the compareTo method looks at just the length of the strings or if it looks at each character of the string?
and if it does just look at the length how would i be able to compare two elements in an array of strings to see which element is bigger.
What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom scroll bar behavior in Javascript? I'd like to reproduce an effect similar to this page: http://artofflightmovie.com/ where the vertical scrollbar controls the progression of the browser "viewport" over a pre-defined path.
I am thinking the easiest way of going about this is through the use of javascript to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: On a Group, how can I retrieve the dates on which a member was added and by whom? I'm able to read the stream from a group but I'm particularly looking for the posts where it's mentioned that so-and-so has been "added by" a member and on which date. Eg:
John Smith and 12 other members were added by Alexander John.
U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft OLE DB Provider for SQL Server error '80040e14' Stored procedure, and using ADO to connect, i'm having problems with the quotes however..
x = "text'"
If instr(x,"'") then x=replace(x,"'","''")
'x = "text''" at this point
Set Rs = Server.Createobject("adodb.recordset")
Rs.Open "Select... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom ActionResult to return View = Model is ReadOnly I've got a snippet of code in a custom ActionResult
VB.NET Version
Dim result As New ViewResult()
result.Model= data ## Property Model is ReadOnly
Return result
C# Version
ViewResult result = new ViewResult();
result.Model = data; // Property Model is ReadOn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: change struct-object state I would like to change the state of the objects andre and blastoise, adding a new property(attribute/state) to the object... the name of this new property I want to add is "tax". I tryed the code below but didnt work out... help me plz:
(def andre {:owner "Andre" :type "car" :cur-speed 101... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Many Booleans On Two Tables Using Rails 2.1 and Mysql.
I have a corporation model, which has_many companies
And of course the company model, which belongs_to corporation
I need to add quite a few boolean columns to these two tables, but this feels really wrong. Each table will have the same booleans, and we would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Callback at certain times during audio playback Is it possible to play an audio file from the user's ipod library and have a callback occur whenever the player reaches a certain time point ? I need it to be very accurate, so simply using methods like currentPlaybackTime might not be enough because float equality is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android, Handler's error This is a bit weird, but I have no idea where the problem is.
In my onCreate() I have this code:
GameRunningNotesTimer().start();
and then out of onCreate I have this code:
Thread GameRunningNotesTimer = new Thread(new Runnable() {
public void run() {
int sleepingTime;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VideoView with Cookies (or Headers) I am trying to use android.widget.VideoView to stream content.
I need to ensure that when using setVideoURI(Uri) that VideoView will include Cookies from prior HttpClient calls.
I see in the source that there is setVideoUri(Uri,Headers) but this has a @hide JavaDoc annotation and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to make code using Value[T : Numeric] more “flexible” like the “unboxed” counterparts? If I have code like 5 * 5.0 the result gets converted to the most accurate type, Double.
But this doesn't seem to work with code like
case class Value[T : Numeric](value: T) {
type This = Value[T]
def +(m: This) = Valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I implement a datatype, like a stack, in assembly? I need to implement a custom data structure in assembly. Preferably, it needs to be dynamic. Something like a linked list in C++/Java where each element points to the next element. Please note that the size of each element may vary.
How can I do this?
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Confused with fork() I am having a difficult time understanding what the fork() command does under different scenarios. Here is some sample code from my book:
int main() {
int a = 12;
int b = 9;
int fid = fork();
if (fid == 0) {
a++;
}
else {
wait(NULL);
b = b - 5;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UI Stress Testing on Android is there a way for me to do a sort of UI Stress test, similar to that of monkey runner.
I want my stress tester to click randomly on the screen until something is prompted.
however, i want to be able to detect if a dialog box comes up, then i want to put in some values, or if there is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert two matrices into a list using apply I have two matrix with the same number of columns, but with different number of rows:
a <- cbind(runif(5), runif(5))
b <- cbind(runif(8), runif(8))
I want to associate these in a same list, so that the first columns of a and b are associated with each other, and so on:
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to validate only show me geometric shapes smaller than a JFrame I can make a program to enter a series of values of geometric figures to show me in a JFrame.
It happens all the figures showing they want to see in the JFrame, but I have to validate that these figures appear to me entirely in the JFrame is not t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I install this service_wrapper for mongrel/rails on my windows server? I have been given the unpleasant task of installing a Rails 3 app I have written on Windows Server 2008 (definitely not my choice - was promised a linux server but I.T. pulled the rug out at the last minute so please don't suggest a change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: list / string in python I'm trying to parse tweets data.
My data shape is as follows:
59593936 3061025991 null null <d>2009-08-01 00:00:37</d> <s><a href="http://help.twitter.com/index.php?pg=kb.page&id=75" rel="nofollow">txt</a></s> <t>honda just recalled 440k accords...traffic around here is gonna ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Closing a prettyPhoto lightbox from inside iframe Would like to run some Javascript in the iFrame which changes the height and width of the prettyPhoto lightbox window that it is in.
This is an example of lightbox in action:
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
http://jsfid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I can not get rid of a underline text I got this code:
<div class="class1"><a href="http://nvm/">text</a></div>
CSS code of class1 is following:
.class1 {
text-decoration: none;
}
The output looks on, until I move the mouse over the div. The text is underlined then.
Sure, I've tried a lot of methods like:
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Indexing arrays in matlab from 0 For the math class I'm taking, I have to write a program to compute the FFT of a function. We have been given the code in class. I'm having problems entering the code in matlab because the index starts at 0. This is the code given in class:
Input: q,N,f(k)
Output: d(k)
sigma(0) = 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Program Crash - probably a memory retain misuse I have an array of Objective-C objects that is to be sorted on a field of the object. I use a simple selection sort since the array is small. The sort works and the correct data is in the array, but after adding about 3 or 4 objects to the array and resorting each ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explanation of JetBoy example for dev.android.com? I have developed many applications for desktop or web in java, but never for android.
What little I have practiced with was weird because I am used to SWING. Since it uses .xml files for applications I was wondering if you needed this also in games?
For example ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Action/Func vs Methods, what's the point? I know how to use Action and Func in .NET, but every single time I start to, the exact same solution can be achieved with a regular old Method that I call instead.
This excludes when an Action or Func is used as an argument for something I don't control, like LINQ's .Where... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: RESTful Web URI Design for Single/Multiple Resource GET
Possible Duplicate:
Rest URL design - multiple resources in one http call
I have looked for answers on this site and the net, but haven't quite figured out the best way to approach this problem.
As an example, say I have the following REST API
Single resource... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run Servlet Without POST or GET I am new to servlets, and would like to follow the Model2 paradigm by keeping all my "code" in servlets, and html/beans in jsp pages. But, is there a way to run a servlet when I access a jsp page without using a form submission. For example, I have a login page. If the user logs in an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: delphi standalone webservice returns http error when consumed through php I'm pretty new in WS programming.
I created WS (that I picked the base from http://www.digicoast.com/delphi_soap_standalone.html) using delphi-7
When I consumed it through XAMPP php nusoap that is installed to my PC, it worked well and I got t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Gstreamer be used server-side to stream audio to multiple clients on demand? I'm working on an audio mixing program (DAW) web app, and considering using Python and Python Gstreamer for the backend. I understand that I can contain the audio tracks of a single music project in a gst.Pipeline bin, but playback als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using a new path with execve to run ls command I am trying to use execve to run the ls command. Currently I'm running it with the following arguments:
execve(args[0], args, env_args)
//args looks like {"ls", "-l", "-a", NULL}
//env_args looks like {"PATH=/bin", "USER=me", NULL}
What I expected this to do was run th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multi-line button labels Is there an easy way to have two lines of button.text where you specify each line individually? Also, there seem to be large margins on the buttons so the text font needs to be quite small to fit. Is there a way to allow the text to use more of the button area?
A: The way I would do a two... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass List of class to List of Interface? I have a function like this:
DoSomething(List<IMyInterface>)
IMyInterface is an interface and MyClass is a class implementing this interface
Class MyClass:IMyInterface
I call DoSomething(List<MyClass>) and it looks it doesn't work.
How could I pass the list of a class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: RVM after_cd Hook I'm trying to use the RVM hooks to run a command after I cd into a directory with my rails app.
The contents of my ~/.rvm/hooks/after_cd is:
echo "Now using $rvm_ruby_string"
The contents of my ~/.rvm/hooks/after_use is:
echo "Now using $rvm_ruby_string"
When I do $rmv use 1.9.2 I see my echo, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ArrayList in java, only doing an action once For some reason, I'm drawing a blank on this one. I have an ArrayList that contains CDs (some of them identical in name) and I want to print a String that tells how many I have of each CD. For example, a string that says "You have: (1) AlbumOne, (2) AlbumTwo, (1) AlbumTh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3: adding a yes/no "recommended" option to user posts I'm new to rails and I'm working on a simple app where users create posts with content, hehehe. But since I'm real new I'm having some confusion. When users create a post I want them to have a 'recommended option' yes/no which defaults on the no. So if a us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Normalizing histograms? What is normalizing histograms? When and why would I use it? What are its advantages?
I don't understand the concept at all- when I try to apply it to my histogram, when I use back projection, I don't get any results.
Could someone give me a non-technical explanation of normalization?
I am us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inserting form values with spaces into mysql 4.1 I'm trying to insert form data into a MySQL 4.1 DB. The problem I'm having is form fields that include spaces get truncated before insertion. The POST variables are complete, spaces and all. Just being cut off somewhere. For instance, "South Lake Tahoe" is inserte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix syntax to nest functions in mathematica? I wanted to try to make a rule to do norm squared integrals. For example, instead of the following:
Integrate[ Conjugate[Exp[-\[Beta] Abs[x]]] Exp[-\[Beta] Abs[x]],
{x, -Infinity, Infinity}]
I tried creating a function to do so, but require the func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Git push everything to new origin I deleted my previous git origin, and created a new one. I did git add . and git commit. But it will update changes, how do i push everything into the new origin
A: (works with git 1.8.4)
If you want to push all branches at once:
git push <URL> --all
To push all the tags:
git pus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: how to use UITableViews for multiple datasets I am currently playing around with a navigational based app. Where I want to allow the user to construct a search query by selecting one of several different uitableview cells when touched leads them to a sub uitableview where I will display the data for the user to sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I find the minimum/maximum values to use with Root Solvers? I want to use the root solvers (ex: BrentSolver) in Commons Math to find roots for polynomial functions, but they all seem to require using an initial estimate for minimum/maximum, where the function has different signals.
So how do I go about doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to manage (create/delete) Email addresses programmatically? I am building a web application that will also allow my users to register/transfer a domain and manage email addresses through my application. However, I'm not exactly sure how to do that yet. I think there are services with APIs that will allow me to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning C++ & STL by doing game programming project? I've been coding with c++ for last 3 years, mostly my work revolved around using other libraries such as QT. I recently realized that for a guy who has been coding for 3+ years I dont really know much C++, cause I dont know much about Templates or STL or Boost.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Graph API search pages and applications using php-sdk I am looking for -
*
*Sample on how to use graph api search pages to get me started.
*Does the api include applications in the search?
*Do i need an access token to use this feature, i did not see in the docs?
A: this sample assumes you have php-sdk 3.1.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: keyboard event as3 not working This was something that had me banging my head for 2 hours before I figured it out.
I decided to post it here, to help others not pull their hair out :).
Essentially the bug was I was not receiving the keyboard event from within my flash builder environment (The same bug/issue is visib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: display tag sorting duplicate the last action performed on the page I have display tag like this.
<display:table class="displayTable" id="orgList"
name="${sessionScope.organisationArray}" requestURI="" pagesize="13"
defaultsort="1" sort="list">
<display:column property="org... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Odd behavior when binding a click to two elements in jQuery I have two images with the title "Show Options". I want to assign a click event to both of them and I want the clicks to print different statements.
console.log($('img[title*=\"Show\"]'));
$('img[title*=\"Show\"]').each(function(index, value){
switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java regex to find a sequence of characters in a string I would like to find out if my string has = & & sequence in it. If yes then I would like to encode second &. How using java regex can I find it?
My string is something like this:
a=cat&b=dog&cat&c=monkey
Thanks
Chaitanya
A: Like Mosty and Ted suggested, per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF http activation without IIS Is it possible to enable HTTP components for WCF without installing IIS. When i try to enable the HTTP components on windows server 2008 it forces me to enable the web server components.
Is there a workaround by not installing webserver.
(any solution other than self hosting or windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSONCPP Amalgamated link errors I am trying to use the amalgamated version of jsoncpp(the latest version), but it is producing unresolved external symbol link errors. The code I am using is
#include <json/json.h>
int main(){
Json::Value root;
return 0;
}
and it is giving me the error
1>main.obj : error LNK20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Convert string to long in excel macro How can I convert string to long in excel macro. CLng is giving me type mismatch error
Dim wStr As String
Dim w As Long
wStr = "=RAND() * 0.3 + 0.35"
w = CLng(wStr)
A: Try the formula for w below.
w = CLng(Evaluate(wStr))
Or forget trying to use an "Excel formula", and go st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Opening Window mobile 6 professional emulator I make a window mobile application using ms visual studio 2005 professional.
*
*Could I run this application in emulator without installing Visual
Studio?
*If I run this in visual studio 2008 or 2010, is there any
difference?
A: You can download the Microsoft Devi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django - Passing image objects to a second view for processing and db saving Here's the use case:
My main page has an image upload form. When the form is submitted, a page loads with a 4x4 grid of the uploaded image with different photo filters applied. Clicking on an option saves the image with the chosen process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git Config excludesfile for just a branch I wanted to exclude a file called config/dbconfig.js in my public branch which I use to push to github but still be able to push from master to my noester.com git repo to push to production. I changed the config file to this:
[core]
repositoryformatversion = 0
filemode =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Core Data syncronization procedure with Web service I'm developing an application that needs to be syncronized with remote database. The database is connected to the a web-based application that user able to modify some records on the web page.(add/remove/modify) User also able to modify the same records in mobile a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I have it so images don't flicker when ajax is called? On this page: http://friendsconnect.org/chat/ you can see a very simple chat. How can I have it so the image doesn't flicker each time ajax is called?
Javascript:
function execute_check(){
$.ajax({
type:'GET',
url: 'chat.php',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Backbone.js view instance variables? I'm learning Backbone.js and am trying to figure out whether it's possible to have instance variables in Backbone views.
My goal is to load a view's templates from an external file when a view is being instantiated. Currently I'm storing them in a global variable in the Backbone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: C# reading from text file (which has different data types) to get sum of numerical values So I have a .txt file that reads as the following:
-9
5.23
b
99
Magic
1.333
aa
how would I then loop through it to get the sum of all numerical values, and leave the non-numerical values untouched?
A: Read text file using Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pagination, floating numbers I wan't to do something like:
If user is at first, second or third page then pagination numbers is: 1, 2, 3 (default, and I got this atm.).
I wan't it now, so I user is switching the page to the third page, then pagination number should look like this: 2, 3, 4 ... if user is at fourth pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any good example projects for the Kiwi testing library (offering more complexity than 2+2) I'm looking for a good example project/tutorial that show the Kiwi testing framework in action. I don't need any more examples of testing classes with the only purpose of adding 2 numbers together or something mundane like tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I find the language from a regular expression? How would I find the language for the following regular expressions over the alphabet {a, b}?
aUb*
(ab*Uc)
ab*Ubc*
a*bc*Uac
EDIT: Before i get downvoted like crazy, i'd appreciate it if someone could show me the steps towards solving these problems, not just the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Paramiko hangs while executing a large wget command Hi I am having problems executing a command that performs a wget of a 100mb file over a Ubuntu 10 server. Shorter commands work fine except for this. The below class contains how I use paramiko and my different tries of overcoming this problem (see the different ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: When using unix pipes (in C) does the OS balance every write() with a read() or does it balance the total number of bytes? for example, i want to get an array of 4 ints from child to parent. parent calls
read(apipe, buf, sizeof(int)*4);
child calls
for(int i=0; i<4;i++)
write(bpipe, &array[i], sizeof(int));
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: TempData Not Being Cleared I'm working on an ASP.NET MVC 3 web application, where i use TempData to store a model object, in the scenario where the user is not logged in.
Here's the flow:
*
*Use submits form.
*Code (special action filter) adds model to TempData , redirects to logon page.
*User redirected back t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Backbone events not firing I know other posts have been made regarding this, but so far the answers I've seen have not been helpful, and slightly different from my situation.
window.BotView = Backbone.View.extend
initialize: ->
_.bindAll @, 'alert', 'render'
@el # by calling this here, it initializes the j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to do integration testing in Rails 3? I tried using the code in the RailsGuides and some other code I found on Google, but nothing is working.
How do you do a simple integration test in Rails 3 using Test::Unit? How do you make the session persist across http requests?
The following code fails because Expected ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Mongo handle a tie when sorting? I have a number of documents where the timestamp happens to be the same, as a result of less than stellar process of creating test data.
When sorting by the timestamp (desc), what other factor does Mongo take into account to sort?
A: I do not think Mongo internally tries to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In C can I declare a constant character array? I am working on a character string to signify a change in sign. I have had success with the character string that's commented out below, but would prefer a simple if-else statement using constant character arrays UP = "up/0/0" and DOWN = "down".
Does anyone know a simpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript OnClick returning error Object is not a function I have a function where when an element is clicked, it makes that element the selected element in a an Object. Let me show you.
var elem = new Object();
elem = {
title:'',//string
num:null,//number
selected:null
}
function selected(elem){
el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scroll bar defaulted in the middle of a dialog box with long text Hello I use Jquery UI dialog box to put in some long text.
Once I open the dialog box, it shows like this in default (It should show the upper part of the dialog box):
I try to change the $('.ui-dialog').css("top", "0px");to push the scroll bar to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: msgrcv: Invalid argument Error I am getting an error that says:
msgrcv: Invalid argument
what could be causing this error? Here is my code
Bassically I'm passing a message from a parent to a child then I want to pass a message from the child to the parent and even though I'm using basically the same code for both, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Git warning of file overwriting due to (supposedly) untracked files Attempting to pull from git repo, but getting the following output. I think these files are tracked (As they should be), but its indicating that they are not. They are not in .gitignore. I am about 5-10 commits behind the branch.
git pull --rebase ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Access chrome extension from a web app I wonder if anybody can lay out the general logic of what I should do to achieve the following:
I have an extension for Chrome, that gets a list of user's bookmarks.
When user visits web page, the information that was retrieved by extension is accessed and displayed on web pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting a 3D object's orientation and aligning it parallel to a Vector3D in WPF I have a WPF project in which I have imported code that represents a 3D scene created in 3D Max Studio and then converted using a tool to XAML code that I can use in WPF.
So, I have a Viewport3D and inside it a GeometryModel3D object th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Routes Url JQuery Routes Plugin. http://routesjs.com/
sample url : ../support/overview
No problem
$.routes({
"/support/overview": function(){}
});
** In this way, the url does not work **
/support/overview/?id=1&cid=1
$.routes({
"/support/overview": function(){}
});
What am I doing w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: model-view-controller architecture best practices from scratch I need to understand the best practices of MVC architecture implementation. I'm a Java and C# programmer. I know the basic of MVC. But i'm sorta confused on how to implement it. I know how to make a simple MVC based calculator. But here's the thing.
I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disable the toolbar from aquamacs in my init file I want to permanently disable the GUI toolbar (the little buttons for "New" "Open", etc.) from aquamacs in my .emacs file. I have seen suggestions that you disable it in the gui and the go to Options >> Appearance >> Adopt Face and Frame as Default and then set that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Regular expression replace but keep part of the string So, if I want to replace b[anything here] in a string with f[same thing here] how would I do that? Example:
What is a regular expression that would make foobarfoo to foofarfoo, and foobanfoo to foofanfoo?
A: The basic principle here is a "capture group":
String... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Construct a Turing-Machine to decide ww^Rw w^R is the reverse of w and w is {0, 1}* . So the TM needs to decide a word followed by the reverse of this word followed by the word.
I don't want the answer, I just want a lead to start and to get on the right track.
A: Since some time has passed and the answer probably ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: linq expression error:cant display column name I am using LinqPad 4(nutshell database) and I am trying to display the (Customer) Name which is a column in the Customer table.
How can i display the Name in this query because now I am getting an error: does not contain a definition for 'Name'?
from p in Purchases
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between a primed cache and empty cache? What is the difference between a primed cache and empty cache?
For example the statistics result of YSlow provides a graphical data of an empty cached vs. primed cache. What are the difference between them?
A: This was asked 3 years before, but I bumpe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: issue with iframe height I know this topic has been asked about and answered multiple times but please believe that I have spend many hours searching for help and answers that work and/or I can actually understand.
It's the same ol' issue:
I have figured out how to add a custom tab and even a custom icon for it (and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP: Export DB Table to CSV FILE I've got a custom table in WordPress and I'd like to be able to export the data in that table as a FILE in CSV (semi-colon seperated) format.
I've got the data coming out properly, but how do I then save it as an attachment?
Keep in mind that when using WordPress, headers have alread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook php Oauth is not working I'm new to facebook apps and php in general, and I have a bit of a problem. I cannot get OAuth to work correctly with my application. When you go the application itself, it does not redirect to the oAuth dialog. It merely displays a blank page that does nothing. If anyone can help m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would I get an error to display with this controller/model setup? I have a create method that calls a method in a model that pings some third-party APIs.
What I need to do is if the API sends back a certain message, then I'd display an error.
Below is my current controller and model setup, so how would I get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I programmatically set the time zone in Java? I know I can feed VM arguments as follows
-Duser.timezone="Australia/Sydney"
Is there a programmatic way to do the equivalent? I would like the setting to be applied across the entire virtual machine.
A: java.util.TimeZone.setDefault() can be used to set a defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: JOGL Texture problems I'm in the process of trying to learn JOGL bindings. The tutorials seem to be outdated, so I'm always trying to piece together what is valid from each one.
I'm having problems trying to apply a simple texture to a square plane.
I have an image that is 204 X 204 called box.png.
In my init() I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7630754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.