text stringlengths 8 267k | meta dict |
|---|---|
Q: receiving only the filename in a shell command I want to get only the filename (and no the full path) when running a shell command on some file extension (In the context menu of it)
It is probably done somehow in the registry, in the file extension under HKCR. Any of %1 %l %L gives the full path. I want only the fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kohana 3.2 Validation_Exception will not support errors() I am trying to add the error messages to my validation object.
It says that errors is not a method of Validation_Exception. That I know... The thing is that I though the $e variable would be the instance of the Validation Class in the model. My question is ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happens in C++ when I pass an object by reference and it goes out of scope? I think this question is best asked with a small code snippet I just wrote:
#include <iostream>
using namespace std;
class BasicClass
{
public:
BasicClass()
{
}
void print()
{
cout << "I'm printing" << endl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to remove Controller and function name from URL in CodeIgniter I am having a serious issue with one application developed in CI.
Currently my URLs look like this
http://www.example.com/content/index/mission/
I want to remove /content/index/ from URL So, It should look something like this.
http://www.example.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make functions for my pymongo/twitter script? I'm working on creating scripts using python, mongodb and the pymongo module to fetch certain aspects of the Twitter API and store them in a mongo database. I've written some scripts to do different things: access the search API, access the user_timeline, and more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to read Internet Explorer in java lets say I'm Using Internet Explorer to look at stackoverflow.com is there a way to get the informations I'm looking at stackoverflow.com or is this impossible
A: You should look into Selenium. It is a browser automation framework that allows you to control a browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How Can i read the preview frames from the actual opensource android Camera How can i read the preview frames from the actual camera source code? I am trying to modify the actual source code of camera application in android for reading the preview frames. Can anyone help me with this.
A: You shouldn't have to chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Marshalling error while using OPENSAML2 in a servlet environment (Tomcat web server) I am trying to setup my Service provider using OpenSAML2 libraries. I am trying to set up a servlet which would accept HttpRequest from user's browser and based on the request parameters I want to create a SAML Authentication reques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UITextField inside UIScrollView - I want to detect tap when it's focused As topic's title says I want to do something when user touches UITextField and do something else when he will do it again. I noticed that there's no UITextFieldDelegate method that is giving this kind of information. Anyone could help me with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nested exists clauses vs adjacent exists clauses Can someone please tell me which of this 2 querys is better than the other and why?
Should I use a join instead?
select * from grandChildTable gct
where exists(
select * from childTable ct
where some condition
and gct.parentId = ct.Id
and exists(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting buddypress user name in a javascript file From within my buddypress PHP templates I usually get the username of any given user by referencing the user ID like this:-
<?php echo bp_core_get_username( '{{userID}}' ) ?>
However I need to retrieve the username from within an external Javascript file.
The user I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: loop error when numbers entered why this loop executes 3 times when a number is entered? I only want 's' or 'm' to be accepted.. how could I fix this?
cout << "Are you married or single (m/s): ";
cin >> status;
status = tolower(status); //converting to lower case
//validating imput for marital status
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS hover menu positioning troubles I'm building a CSS hover menu for my site: http://test.fairfood.org.
I can't seem to figure out how to position each nested ul to display underneath it's parent li. They all show up at the same place.
The submenus also disappear behind the carrousel even though the nested ul's ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: shared_ptr release
Possible Duplicate:
How to release pointer from boost::shared_ptr?
Detach a pointer from a shared_ptr?
I'm attempting to release a shared_ptr (the way you can release a unique_ptr). I know this doesn't make sense when the shared_ptr isn't unique, but I have a shared_ptr which is guaranteed to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Better data structure or algorithm than iterative searching on multidimensional arrays to find corresponding values? For a site I am working on I use a library to get a list of states. It returns a numerically indexed array of states, each with three keys: stateCode, stateName, and stateSeg. It looks like this:
arr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use of PHP generated sites in SEO? I've got a site that is based around a contact form. This form is generated according to the variables passed in the URL, and the information passed is put in headers in the body, and also in the title. Additionally images are customized, so basically the whole content is changed a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Like Button Not Showing Counts This happens on any web browser. When I go to the page, I see the like button not showing any counts. Then I...
*
*Press on the Like button.
*I then see the box say +1.
*I refresh the page.
*I no longer see the +1 and I see the Like button as if it was never pressed.
I can re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I want to make a concealed "password" in Java In Java I want to make such that when I'm typing a String as input the letters of the string do not appear on the console screen. Is there anyway I can do that?
A: Maybe Java 6's Console.readPassword()?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7603890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php pdo prepare repetitive variables While writing a pdo statement, is it possible to repeat the value of a variable? I mean:
$query = "UPDATE users SET firstname = :name WHERE firstname = :name";
$stmt = $dbh -> prepare($query);
$stmt -> execute(array(":name" => "Jackie"));
Please note that I repeat the ":name" na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to remove validation from a jQuery script I found this script from a tutorial but I don't want the validation part, just the posting part.. I tried to delete the validation related commands but it doesn't work. Maybe I did it wrongly, but my thought is if all of these are needed to run the submitHandler.
Thank y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Could someone explain to me how I might go about using PostGIS (it's installed)? Assume I'm building a webapp for some enduser, and I'm already using postgres for the more mundane parts. One feature that might look cool (of dubious utility) is for them to map out their own property. I find some Google Maps API or so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modal UINavigationController Background Loading After Animation for PresentModalViewController I am having trouble with the background in my modal UIViewController displaying before the animation begins. I have a simple UINavigationController which loads a UIViewController. I then present the UINavigationController ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I properly implement git submodules using Gitolite? I would like to create submodules within my hosted repository using Gitolite. Submodules are easy enough in git outside of Gitolite. However, Gitolite seems to complicate things.
A: It's no different than having a second repository side by side. Once you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine key points in the change in frequency I have an application in which I am analyzing a system where there are a large number of interactions. And I need to make certain choices based on the frequency of the occurrences of unique items in the system. For example, if you had this list of letters:
A, B, F, G, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error during reading and writing test file in simple MPI code I have an MPI code where processes read a binary file and write it back again. The way the data is distributed is that process 0 reads (and then writes) the first half of the file whereas process 1 reads (and then writes) the second half of the file. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: stripping file.html out of the link So, I am writing a script that is suppose to illuminate different sections of the nav. each nav link is set up to be /directory/subdir/. It worked until I realized there needs to be more to this. if you are in a directory that is not the index file it doesn't work since it was dir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Override previously used functions I'm in the process of making an irc bot with PHP. While developing, I want to be able to dynamically load and unload classes/functions.
Mind you, the PHP is keep-alive.
ex:
Main File:
class stuff {
function stuff() { echo 'this'; }
function replaceFunction() {
rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jar protocol and php page I have a need to hide a locationbar in a child's page (html) for firefox,
but The parent page is (php).
I found article about that; http://kerneltrap.org/node/65367.
I have now HTML file and .JS file that hide the location bar after signed it.
But there is a php file, php's file that call t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can an X # of rows be generated without using stored procedures or functions? I have written the below VIEW using a UDF, but am wondering if there is a way to do this without needing a UDF. The only other option I could find is to SELECT UNION hardcoded values, but I don't like that. Any suggestions or should I just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Implementing a c# interface that has an event through COM to VB6 I have a VB6 class that needs to implement an interface which I created in C#. I have been able to succesfully implement all of the properties of the interface in my vb6 class over COM, but have not been able to implement the event that it has. If I un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to change Spark BorderContainer default height? How to create horizontal layout container like HGroup but with border and border radius?
In this example there is some default height:
<s:BorderContainer width="100%" borderWeight="2" cornerRadius="5">
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<s:Imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Load xml data from an url like this : /index.php/site/projects/ as a php variable I need to read xml data generated by a php file(of Expression Engine) on passing url like /index.php/site/projects/ into a php object. (note that it is not a physical file). How can I do that ?
Since I am not quite aware of php stuff p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: eglQuerySurface gives wrong size When I rotate my device and my app recieves APP_CMD_CONFIG_CHANGED, I attempt to update my OpenGL viewport with the following:
EGLint width;
EGLint height;
eglQuerySurface(display,surface,EGL_WIDTH,&width);
eglQuerySurface(display,surface,EGL_HEIGHT,&height);
glViewport(0,0,width,he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Extern variable in header file not linked properly to source file where it is defined Problem: A variable 'VarOriginal' is defined in source C file under pragma say 'parameterX' and declared as an extern variable in a header file under the same pragma 'parameterX'. There is a process using it in which it is known th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone - Animate 2 subviews at the same time I have 2 subviews that take the whole screen (excepted the status bar). Let's call this size "screen size".
I want to animated both :
*
*the first to zoom from a little bit larger than the screen size to the screen size, from alpha 0 to alpha 1.
*The second from scree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding facet titles and changing legend title in ggplot2 I wonder how to add facet titles in ggplot2
ggplot(diamonds, aes(cut)) + geom_bar() + facet_grid(color ~ clarity)
and change the legend title
ggplot(diamonds, aes(cut, fill=cut)) + geom_bar() + facet_grid(. ~ clarity)
Thanks for your help.
A: The facets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Summing integers the instructions are: Enter an integer (32 bit) and sum its digits, you may be given a negative or positive integer. When reading in a negative integer, sum the digits but ignore the - sign.
this is what I have. Somehow I can't get it to ignore the negative signs when the integer is negative.
import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.Net MVC Html Helper Extension What is the best way to extend Html Helper TextboxFor? Is there a way to reuse the defautl implementation?
A: You can create your extension methods (in a static class), for example:
public static MvcHtmlString MyTextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> helper, Expressi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Flex - how to make a tabbed panel My app has 3 categories of buttons, I want to have a tabbed panel I can use to switch between the 3 categories like in this example:
My app is a mobile app though so I can't use mx components. When I try searching for mobile tabbed navigation etc., I come up with only viewnavigator ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: qTip: prevent hiding the tip two times successively First of all sorry guys for posting the question here. The support forum seems to be almost dead.
So I've run into a bug in the qtip plugin or my code. When I call .qtip('hide') twice or more times consecutively, the tooltip will hide and never show again when call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure: Using PHP as WebRole and using c# as WorkRole? How to package the service pack? I'm trying to use PHP as the web role and use C# as the work role. But how to package them together into a service package? I use PHPAzure SDK for php development, which contains a package tool named "package". But it is used for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problems with memcpy of strings I am trying to
*
*take two strings (message1, message2),
*assign str1 to message1 if message1 and message2 are empty,
*assign str2 to message2 if it is empty and message1 is full,
*and save message 2 over message 1 and put message2 == message3 if both message1 and message2 w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross-Domain issues on mobile Safari on iPhone, iPod & iPad I have a chat built with node. This chat is running on port 3000 of example.com. I am using this chat within the page of the same domain by calling it with jQuery's ajax call. So I have chat running on example.com:3000 and website that is including this cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TextMate: Bundle to wrap selected text with php commenting I am new to TextMate, and so far I am loving it!
Prior to TextMate, I was using Dreamweaver.
Dreamweaver has a nice feature where you select your text, and wrap it with php commenting. <?php /* */?>. This was especially useful for temporarily wrapping large... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert a list item with html I have an unordered list, and I am trying to insert an element at the end
jQuery("<li>").text(" | Billed (14)").appendTo('.subsubsub')
However, I would like it to be formated with the following
| <a href=''>Billed <span class='count'>(14)</span></a>
But when I do:
jQuery("<li>").text(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java client build error: apache.cassandra not found I am trying to build a java client to talk with cassandra, when i ant release, i got error that module not found org.apache.cassandra#apacke.cassandra;0.85
I have installed cassandra 0.85 and put dependeny in ivy.xml file as below
I have even tried to tell ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ initialization lists for multiple variables I'm trying to learn how to initialize lists.
I have a simple class below and trying to initialize the list of variables. The first Month(int m): month(m) works. I'm trying to do something similar below that line with more than one variable. Is this possible in that for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Firebird + JDBC: Getting the generated key from an insert It looks like Firebird does NOT support getGeneratedKeys() after you perform an insert with an auto_increment column. So I would like to understand how I can get my hands on the generated key after an insert.
1) Do I have to use "insert into users(...) values... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery UI resizable: elem is undefined error in jQuery's acceptData function I'm using jQuery UI Resizable to resize a div. I'm getting "elem is undefined" error in console and I can't figure out what is wrong.
I've tried different jQuery versions.
You can see my app at:
http://klip.dev.xhtml.si
The arrows in the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to connect to a database with Oracle SQL Developer I need to connect to a database with Oracle SQL-Developer.
What I know from the DB is the Instance name and a Database Role.
How do I connect to the database or what more information do I need?
A: Oracle has excellent documentation on creating connections in S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ordering by grouped dates in database hi got a similar problem to this question
Tricky "grouped" ordering in SQL
but cant seem to make it work with dates
my table sort of
Car_ID Car_Brand Car_Model Car_launch_date
1 Ford Fiesta 12-12-2011
2 Ford Mustang 09-04-2008
3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Basic Scala hashmap - return types are ignored I'm trying out Scala, in particular the Hashmap - I've tried something along these lines (both with and without explicitly specifying types):
scala> var x = HashMap("a" -> 1, "b" -> 2)
x: scala.collection.immutable.HashMap[java.lang.String,Int] = Map(a -> 1, b -> 2)
sca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set Size of JComboBox PopupMenu i am programming a custom component which extends a JComboBox. My problem is, the PopupMenu won't actualise its size if i am adding or removing an item. So there are e.g. 2 items in the list, but if there were 4 before i had 2 "empty" items in the PopupMenu as well.
The only workaroun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Mobile and desktop web app with codeigniter I want to build two versions of my project for mobile and desktop.
Am working codeigniter 2.0.2, am looking for a way for the mobile and desktop versions of the project to share the same model, controllers, libraries, and helpers.
Also i have set up a sub-domain,m.xyz.com ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I get frequency data from PCM using FFT I have an array of audio data I am passing to a reader:
recorder.read(audioData,0,bufferSize);
The instantiation is as follows:
AudioRecord recorder;
short[] audioData;
int bufferSize;
int samplerate = 8000;
//get the buffer size to use with this audio record
buffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using a global_work_offset in clEnqueueNDRangeKernel I have a global work size of 1000 but i want only to execute the kernel from 200 to 1000.
size_t global_work_size = 1000;
size_t global_work_offset = 200;
clEnqueueNDRangeKernel(cpu_queue, kernel [0], 1, &global_work_offset, &global_work_size, NULL, 0, NULL, NULL)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delayed fade on hide of a jquery dialog box Clicking a button on my site opens a modal dialog box (that shows the word "Saving") and starts an Ajax command. When the command is finished, I want to change the text in the dialog box (to "Saved!"), wait 500 milliseconds, and have the dialog box fade out.
Opening and mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to access the dynamically created HTML control from code behind in asp.net i have a webpage, wherein i am using a simple foreach loop and creating table structure, wherein i am displaying an image in td, the requirement is i want to access the image created in td, from code-behind on page load.
but i am unable t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VsFTPd/LDAP - automatically create a directory for a new user I am trying to setup a FTP server. I am using VsFTPd on an Ubuntu server that will authenticate against an LDAP server.
My users should have access to their personal directory (read/write), to their public directory (read/write), to the public directory ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: broadcast receivers Issues In my app I listen for bootup receiver and once I receive it, I do some stuff
The problem I see is even when my broadcast receiver is done, app stays in the running processes.
This happens every time when the phone is started and I have customer complaining why my app stays in background e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload a PPT file and see it like a presentation The upload part is OK!
My problem is open that PPT file and show like a presentation.
I have no idea how can I do that. My server side language is PHP.
Thanks
A: *
*Your client needs to have MS-Powerpoint, or at least MS Powerpoint Viewer, installed
*Your browser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can an interface include a method that references the concrete implementation type of the interface in its signature or return type? Suppose I am designing something like the following interface:
public interface MyInterface{
public MyInterface method1();
public void method2(MyInterface mi);
}
However, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Save Data Between Screens I have an iPhone app with a form that has terms and conditions. When the user taps on the terms and conditions link, it brings them to another screen within the application that shows them.
Now, when they tap away and come back they lose all of the information they placed into the fields. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facade Pattern, is this ok? I have two servers that I will be connecting to from one client. For each server, I will be doing an ftp "put" and a "rm".
Should I build one facade, and have an interface like this:
void putFileOnServer1(String file)
void putFileOnServer2(String file)
void removeFromServer1(String file)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sanitize input with PHP and the sqlsrv driver? I'm working on a PHP MSSQL project that is using the sqlsrv driver.
What's the best way to stop SQL injection attacks? I need something like mysql_real_escape_string() but for sqlsrv driver.
A: If you use it like this, quoting is automatic:
$sql = "exec usp_cis_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to populate textbox value real time upon date start and end entry on a razor view? Q: How can I populate a text box value (number of days) realtime based on a user entering start and stop dates within an mvc3/razor view? Thx!
A: Either you would onblur, postback with Ajax and use server logic to fill the textb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking if a SoundCloud song is embeddable I'm trying to use the SoundCloud API to check if a song is embeddable, is this the same as streamable? My code looks like this:
$trackid = $track['id'];
$username = mysql_real_escape_string($track['user']['username']);
$title = mysql_real_escape_string($track['title']);
$d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Quoting a Python function in order to apply it later Given an object Foo, which has a set of methods Bar, Baz, Quux, and Close.
I want to wrap calls into Foo as follows
def wrapper(method_symbol, *args):
object = Foo()
apply(object.method_symbol, args)
object.Close()
So later on, I can call wrapper(Bar, My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: no such file to load -- sqlite3/sqlite3_native I am having trouble trying to run the following ruby script on OSX (Leopard).
require 'sqlite3'
database = SQLite3::Database.new( "new.database" )
database.execute( "create table sample_table (id INTEGER PRIMARY KEY, sample_text TEXT, sample_number NUMERIC)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Specifying directory with Japanese characters in build.xml for ant in windows I have a build.xml file that specify a directory with Japanese characters as an argument to a command.
<exec executable="${amxmlc_cmd}">
<arg line="${amxmlc_opt}" />
...
<arg line="-source-path+=Work/システム/_config_as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get text from the title attribute when is clicked? If I have the following HTML:
<th title="Title Description">Blah</th>
How do I select text from the title attribute when I click on <th>?
A: $(function() {
$('th').click(function() {
var title = $(this).attr('title');
});
});
A: $(functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connect to Mongo DB on a remote server behind LDAP using perl So I intend to connect to mongoDB which is on a remote server behind LDAP.
The mongoDB by itself has no username/password setup, but the server on which mongoDB is running is behind LDAP.
My question is how do I setup the server tunneling username/passwor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot bypass validation error 'You need to supply at least one attribute' in ActiveRecord? I've been following the Michael Hartl Tutorial, but took a shortcut to try and 'improve' on its example, and have create a tough bug...
Basically, this app revolves around a User model coupled with a sign-up feature using a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to modify external process using Python Beginner here. I am trying to figure out how to modify a running process on a linux system using Python.
Example: I have a python program that takes in as an argument a PID. My goal is to use this PID and get info about the running process with that PID.
(1) Find where it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multi-Coloured bars in matplotlib I have a graph in matplotlib (that displays correctly), but I was hoping to have a different colour for each bar (still the same bar graph though). Is this possible?
Thanks
A: If you color at graph creation time:
In [15]: x= range(5)
In [16]: y = [10, 23, 12, 45, 32]
In [17]: color... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Itextsharp seems to be corrupting a pdf form after filling it out; problems opening in Adobe Reader for WP7 I'm trying to dynamically generate a pdf form from an asp.net C# application. The form is generated and emailed to some users. People have been able to open it on Adobe Reader for months now.
Recently, there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TouchesMoved With 2 Fingers I am trying to make a simple landscape "split screen" app where two players can play at once (each player gets one half of the screen), but I am having trouble tracking both touches at the same time. This is the code I am trying to use:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql: exact match? I'm pulling some data from mysql and counting occurrences of matches (seemingly equivalent to WHERE foo='bar'). However, as I loop thru the data in PHP, my count is much lower than the count in mysql.
MYSQL> SELECT COUNT(foo) FROM database.table WHERE foo='bar';
# PHP
while ($response = mysql_fet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing WordPress's TinyMCE iFrame Using jQuery I'm trying to manipulate the WordPress content editor, which uses TinyMCE inside of an iframe. I can't seem to get the following code to work as intended:
jQuery(document).ready(function($) {
$('#content_ifr').ready(function() {
$('#content_ifr').contents().find(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delay Touch Response I have a variable called touchStatus that tracks the touch status in the program. The variable gets set to B in the touchesBegan method, E in touchesEnded and to M in touchesMoved.
However, my requirements are a little different. I was requested to program in a way so that there is one second o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery loading only first class dropdown menu when using .load Ok, here's my issue. I am loading dropdown data from a .txt file to an ID. This particular ID sits in 4 classes, broken by divs for layout purposes
$("#dropdown").load("ddData/data.txt");
<div class="Class1">
Dropdown: <select id="SHCC" value="Dropdow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making a DIV hide once FancyBox is opened I'm trying to make an Div disappear when you click the open FancyBox button.
My code is:
$(document).ready(function() {
$('#tag_100_not').fancybox({
'transitionIn' : 'elastic' ,
'transitionOut' : 'elastic' ,
'hideOnOverlayClick' : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple form_tag in rails application This is the code in my logins_form.html.erb
<%= form_for(@login) do |f| %>
// code here
<%end%>
<%= form_tag(:controller=>'posts', :action=>'index') %>
// code here
<%end> --1
<%= form_tag(:controller=>'logins', :action=>'create') %>
// code here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why won't My App Load in https on Facebook? My app https://apps.facebook.com/acroblast won't load past the loader bar on facebook. It plays just fine in https on a browser though.
https://carboncopygames.com/acroblast_flash/acroblast.html
So I guess my question is, since I have installed SSL certificate on my se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular expression not returning the .group() value I'm new with java and using regular expressions. The method seems to be OK, and it's finding results on the subject string, but when I try to get the actual string using .group(), it's empty. here's the code:
public String TestRegularExpression(){
try{
Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to SAVE data using proxy in ExtJS Proxy update on ExtJS is not loading my update API instead it loads URL which I use to display data on GRID.
<script type="text/javascript">
Ext.onReady(function () {
var CoventryItemListStore = new Ext.data.Store({
storeId: CoventryItemListStore,
autoSa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a best practice to manage the tombstone state in a Windows Phone 7 application When A WP7 app goes into tombstone state, it is my responsibility to save all the application and page state. That way when the page gets reloaded it can recover and reload the previous data without the user realizes that the ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery number counter with jquery mobile I have a peice of code that counts from 0 to a specified number and displays it while it is counting.
The problem is that I want to use the code in a web app that is made using jQuery mobile.
When the code is used with normal html i works fine, but when I use it with jQuery m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simplexml_load_string() removing a lot of content Simplexml_load_string is removing a lot of content that is passing into it.
var_dump($cleaned);
<item>
<title><![CDATA[Honda Motor Company: Motorcycles to the Civic and Accord]]></title>
<link>http://www.link.com/index.php?id=9987</link>
<description><![CDAT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linux, convert errno to name I am looking for an API to convert an errno integer to its name.
For example:
int fd;
if((fd = open(path, O_RDONLY)) == -1)
printf("error: %d %s %s\n", errno, strerror(errno), ERRNONAME(errno));
So, ERRNONAME would yield a name, such as "EINVAL", "EPERM", etc. Is this possible?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why does Application.Idle never fire when my form is hosted in a MFC application? I'm building a .net plugin for a MFC application. I created a form using WinForms and .net4. The form is shown after user clicks a button in the MFC application. One of my controls uses Application.Idle to do some task.
The problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Self-referential tables with polymorphism in SQLAlchemy So I'm having issues with my model right now. I came across these two (1) (2) questions which helped me a lot, but now I'm stuck. Here's my current code:
class Post(Base):
__tablename__ = 'post'
id = Column(Integer, primary_key=True)
type = Column('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do properties of attributes have to be readable? Consider the following attribute.
internal class NiceAttribute : Attribute
{
private string _stuff;
public string Stuff
{
set { _stuff = value; }
}
}
When I try to use the attribute [Nice(Stuff = "test")] the compiler gives the following error.
'Stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is it okay to store session id in localStorage? Is it secure to store user's session id in localStorage? On w3.org site, they say
User agents must raise a SECURITY_ERR exception whenever any of the
members of a Storage object originally returned by the localStorage
attribute are accessed by scripts whose effe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: delayed_job Won't Process My Queue? I am using the delayed_jobs gem but using it against 2 queues. I have mapped my models against the correct queues (dbs) to establish correct connections.
The jobs get entered in fine - however, delayed_jobs will process one queue fine but not the other. I am trying to manually f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery update div the moment a table is updated I'm trying to figure out a way to have jQuery update a div the moment a table in mysql is updated. I've spent a vigorous amount of hours searching online for an answer, and so far, nothing. Can anyone help me out with this problem?
A: Well the steps you should probabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ARM binary and hexedit I have an ARM binary file and want to change some text.
I remove couple of text-symbols from comment.
But the binary won't start, with log:
link_image[1710]: 3013 missing essential tables CANNOT LINK EXECUTABLE
Does anybody have an idea how to edit ARM binary files?
A:
I remove couple of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: <%= link_to_function "Back", "history.back()" %> does not work in new and edit.html.erb <%= link_to_function "Back", "history.back()" %>
The above does not work in new and edit.html.erb. The back link points to itself (/new# or /edit#) so it does not really go anywhere back. However the back button works in index.h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Storing data in arrays I have a data file that contains the following information for radius, density, acceleration, and pressure:
1.464e+22 1.403e-25 1.290e-08 6.325-10
1.539e+22 1.394e-25 1.680e-08 6.309-10
1.616e+22 1.384e-25 2.030e-08 6.289e-10
1.693e+22 1.373e-25 2.344e-08 6.266e-10
1.769e+22 1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BitmapFactory.decodeFileDescriptor returning null with a valid file descriptor I've got a problem where BitmapFactory.decodeFileDescriptor is returning a null bitmap.
The file descriptor provided is coming from:
AssetManager.openFd("test.png").getFileDescriptor();
The paths are correct, the file exists,no exception... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7604150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.