text stringlengths 8 267k | meta dict |
|---|---|
Q: Performing Wifi scanning at regular interval, using AsyncTask/Handler in android I wish to perform Wifi scanning at regular interval between 0-10sec as the time can be set by user. However, i am not sure whether to use AsyncTask or Handler to do so or even combining both to achieved the task. And also, while the tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does this keep recreating my database? I am using fluent nhibernate and have this line
private static void BuidSchema(NHibernate.Cfg.Configuration config)
{
new SchemaExport(config).Execute(false,true,false);
}
now this keeps on recreating my database. Am I misunderstanding the parameters?
docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to init slug mongoid_slug for generated model in Rails 3? I have a project and everything is near complete! I've just used mongoid_slug for my project to make readable link! In my model, i have 2 more lines: "include Mongoid:slug" and "slug :title" and in my controller I call *.find_by_slug(params[:id]) but the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I save the previous text in textarea I am using a button to input text from a text input and displaying it in a text area using following code.
public function sendMessage():void
{
mytextarea.text = textinput.text;
textinput.text = "";
}
The problem I am facing is , whenever I add new line or others... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Search By Seconds Not Minutes I have a batch file that works pretty well. I originaly set it up to search for files that are a minute or less old. I need to go down further and search for files that are 15 seconds old. I hope thats quick enough, I might have to adjust it later. In any case can anyone help me get it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Testing EJB with embedded container. How can I log in? I'm trying to test my EJBs with the embedded container.
container = EJBContainer.createEJBContainer();
But I have some of my methods that are restricted to some roles. So, my question is. How can I log into the container so I can test these methods simulating t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: html5 canvas images dont show or image not loaded i remove the link for copyright reason !.. sorry !
When you are in Firefox, the images at the left (all the mockup) is loaded, after a few refresh, in chrome and safari, it NEVER show
I think it's a image not loaded in memory problem, but i cant know when image are a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: why "Single-quoted string preferred over double-quoted string." in js? While using gjslint, I got a hint: "Single-quoted string preferred over double-quoted string".
So why? I'm a little confused with this. Why single-quoted preferred?
Hope to get some help. Thanks all.
A: It's just somebody's opinion.
Lots of peop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Parent div to match tallest child div's height? I'm making a website with a "page" div, and inside that contains the left div "navigation" and the right div "content". I want to make the height of the "page" div (so the background matches) equal to the height of the tallest div, either "navigation" or "content".
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby Time.zone.now.zone bug What I mean is that there are different timezones with the same name, like CST (-06:00 in US and +09:30 in Australia). Accordingly conversion to utc gives wrong results for Adelaide.
Any elegant way to solve this?
A: an easy way would be that you use the other nomenclature of naming time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make derived class function be executed? We have a base class: Filter. DistrFilter and ReportFilter inherit from Filter.
In another class, FilterService.cs, we have two functions that accept these three class types. FilterService operates on Filter objects but it does not inherit from anything.
public class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: d3 + Backbone: updating elements for which data has changed I'm using d3 with Backbone.js models. When the model attributes change, an event is fired and the model is marked with a hasChanged() flag and it returns a changedAttributes() hash. I understand how to use d3's enter() and exit() to handle models that have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I combine my code into some kind of "global activity"? Is there any global activity on Android such that I put my code in that one activity, and it affects all activities in my project? This occurs to me because the same code is written in multiple activities like KeyEvent.KEYCODE_BACK
For example here I use:
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What mechanism do async tasks use in ASP.Net MVC 4.0? What is the mechanism behind async tasks in MVC 4? How is it related to normal threading? Please provide detail.
A: If you are interested in async and await keywords, you might find this Channel 9 interview with Anders Hejlsberg interesting.
Also, take a look at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: separating string of characters and int from a input string in c++ I am trying to sort integers and strings from an input string.
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
int main(){
char x[10];
int y;
printf("string: ");
scanf("%s",x);
y=atoi(x);
printf("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In cmd can I dir /s but only to n sub directories? In the Windows command shell, cmd, is there a way to C:> dir /s but only to n sub directories?
Seems to me that I have made this work in the past, though I may have corrupted that sector in my brain with certain cell damaging liquids... :P
I guess I could redirect t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Android support slow-motion video playback? I need to make video player on Android that is able to play in slow motion and with different playback speeds. I still cannot find a native API or some code to do this. Does Android 2.2 - 2.3 support to video slow-motion and can we control the video playback speed?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Inserting the elements in grid column wise and creating different controls I am new to Asp.net and C#.I am working in a project where I need to create GridView.Now I wanted to bind this column wise with the data.Like the column1 in the grid is "Category" in the table of database and so on. I also want to create the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to parse the xml using nsxmlparser with same names of multiple nodes in iphone programming? How can I parse using NSXMLParser if I need all the images,
<title>Title</title>
<description>my description is here </description>
<images>
<image>http://www.sosmoths.com/mothImages/800px-Tineola.bisselliella.7218.jpg<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Secure a Cocoa Touch Library with Remote Server, Local Script, and License-Key Background
I want to create a Cocoa Touch library where others will be limited to a finite number deployment builds using said library. However, there should be no limitations on the number of development builds.
I was considering a remot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone:Convert NSMutableArray to NSData with stored & retrieved issue I am facing a problem, that is to convert NSMutableArray into NSData and stored & retrieved that array into rootviewcontroller so please give me idea. Here is the code I'm working with:
appDelegate = (FindNearMeAppDelegate *)[[UIApplication shared... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript is cached in development mode with asset pipeline I recently upgraded my application to rails 3.1 and generally everything seems to be working but one thing is driving me insane.
I have 2 main js files, we'll call them, application.js and main.js.
application.js has my manifest stuff in it and is loadin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: php script now receiving errors under php 5.3? I am getting the following response in ssh when trying to run this php script... it worked fine under php 5.2 and now with 5.3 installed I am running into trouble. I cannot see what is wrong.
The errors :
line 1: ?php: No such file or directory
line 2: syntax error nea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: send SMS- pending intent/put extras? i'm using the code
private void sendSms(String phoneNo, String message){
PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, MainScreen.class), 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNo, null, message, pi, null);
}
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Freeze last frame of animation new code? I'm trying to freeze the last frame of an animation. The following code used to work, however after an update to iOS it no longer works. How can I write this code so that the last image stays on the screen?
animation.animationImages = [NSArray arrayWithObjects:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: troubleshooting "pseudo-hashes are deprecated" while using xml module I am just learning how to use perl hashes and ran into this message in perl. I am using XML::Simple to parse xml output and using exists to check on the hash keys.
Message:
Pseudo-hashes are deprecated at ./h2.pl line 53.
Argument "\x{2f}\x{70}.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to add a Ymail/Gmail share button in android app? hi friends i have a custom list coming from server and i want to add two share buttons for Gmail and Ymail resp. in that , its like when i click the Ymail share button it asks for username and password and then redirects me into the compose message section with m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: :dependency => :destroy not working as planned? I currently have a School model, and a Student model. On Student, I have belongs_to :school, :dependent => destroy.
However, upon deleting a school, the students whose ID is associated with that school are not deleted. In School, I also have has_many :students.
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Difference between nice and setpriority in unix I'm trying to implement a different flavor of the 'nice' command of unix in C. I have seen the definitions of nice() system call and setpriority() call. The nice() call only increments/decrements the priority of the process. If I want to set the priority of a process t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Nested attributes with polymorphic has_many model I am trying to figure out what is the best way to go about creating a model like "Article" and another model that is a polymorphic model called "comment". The reason I want to do this is so I don't have duplicate models for comments. So at this point I have the polym... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error Code 1005 in mysql while applying Foreign key to a table I am having two tables tbluserlogindetail and tblRoles.
tbluserlogindetail is as follows
CREATE TABLE `tbluserlogindetail` (
`LoginID` varchar(45) NOT NULL,
`Name` varchar(45) DEFAULT NULL,
`Password` varchar(45) DEFAULT NULL,
PRIMARY KEY (`LoginID`),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding cookies in jQuery .slideToggle I have a simple .slideToggle function in my project, which is:
$(document).ready(function() {
$('.example5').show().before('<a class="blocks-hide">Show/Hide</a>');
$('div.blocks-hide').click(function() {
$('.example5').slideToggle(250);
$('div.blocks-hide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Database transactions in Zend Framework: Are they isolated? Using Zend Framework, I need to (1) read a record from a MySQL database, and (2) immediately write back to that record to indicate that it has been read. I don't want other processes or queries to be able to read from or write to the same record in between ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I get public/private key pair from a key container in smartcard? Can I get the public/private key pair from a key container inside a smartcard using PKCS #11 or CryptoAPI?
A: I'm no expert in this, but I think the whole point of a smartcard is that you can't extract the private key. You send the data to the ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How might I add an attribute with TextBoxWatermarkExtender? How might I approach adding an attribute with a text box which is associated with TextBoxWatermarkExtender (Ajax toolkit) in ASP.NET?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7618302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need suggestion in creating android string matching patterns to validate my text fields I have 4 text fields in my android app. Those are Name, email, phone number and password.
I want to validate the input fields after user enters the details in text fields.
Can anybody help me in writing the string matching patter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving Object to IsolatedStorage in WP7 with XNA 4.0 How can I go about saving an object of type GameSettings to IsolatedStorage on a Windows Phone 7 application made with XNA 4.0?
From what I can tell, you can't flag a class as serializable and ByteFormatter isn't available. I haven't come across a good way to conv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript change input type dynamically doesnt work on IE8 i have a input field for entering password in a webpage:
<input name="txtPassword" type="text" class="input2" id="txtPassword" value="Password" onfocus="txtOnFocus2('txtPassword','Password');" onblur="txtOnBlur2('txtPassword','Password');" />
in the initia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drag and drop in QML How can I develop drag and drop functionality in QML? I want to drag and drop one image to another.
A: At this point in time, you will probably need to use C++, especially if you want to accept drops from outside the QML application (e.g. the user drags a file from a file manager to your app). ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a object's field in another Object to display it in jsp I am getting a UserList by following
List<User> UserList=usersService.findUsers();
than am iterating over this list and based on id getting another object UserActivity, and want UserActivity object's field LastSeen_time.
Iterator<User> iterator = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trac plugin to send email number of new and closed tickets and their details based on define schedule I am looking for a way or a plugin so that trac sends me email about the number of new or closed tickets (and some information about these tickets also ) for a specific duration lets say for the last three days.
Bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq self-join query I need some help with Linq self-join.
I have the following classs:
public class Owner
{
public string OwnerId {get;set;}
public string Name {get;set;}
public string Area {get;set;}
public string City {get;set;}
public string Sex {get;set;}
public List<Dog> dog {get;set;}
}
And table....
ID Own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery - how to listen for the mouse leaving an area of the screen In the application I'm working on, I use span tags in long paragraphs to provide both:
*
*A clickable link, handled with Javascript, and
*On mouseover, an "edit this" button displayed to the side of the link (with different functionality from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enabling button of one form another forms button click I have form1 and form2 running at the same time .
The flow is as below
1) Click form1 button
2) disable form1 button
3) show form2 ( form 1 is not closed)
4) click form 2 button
5) close form 2
6) enable form1 button
I have done till 5th step . Couldn't do 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fastest way of getting a character inside a string given the index (PHP) I know of several ways to get a character off a string given the index.
<?php
$string = 'abcd';
echo $string[2];
echo $string{2};
echo substr($string, 2, 1);
?>
I don't know if there are any more ways, if you know of any please don't hesitate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to implement code for get the xml data and save inot xml file? How to implement code for below xml file
<root>
<keys>
<key>
<Question>Is the color of the car</Question>
<Ans>black?</Ans>
</key>
<key>
<Question>Is the color of the car</Question>
<Ans>black?</Ans>
</key>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: asyncsocket accepts socket but doesn't connect to host I've just started running (what I thought was) a basic asyncsocket in my objective-c app and I'm getting the didAcceptNewSocket: message when connecting with telnet, but then I'm abruptly disconnected ("Connection closed by foreign host") without reaching the di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to figure out regex pattern I have a string with some custom formula like FVAL("A")+FVAL(B). I want to figure out all string inside FVAL() which does not have quotes around it.
So basically I want to extract out B because it does not have quotes around it.
A: Use
FVAL\(([^")]*)\)
This matches FVAL(, followe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make a JTable row to an "unselected" state after selected any row in that table? I'm developing a Java Swing application which contains a JTable. By default, while launching the application for the first time, the call to the method jtable.getSelectedRow() or jtable.getSelectedColumn() returns -1, which means... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: jQueryUI range slider showing progress I have a range: true slider and want to show progress like the progress bar between the two handles of the slider. Kind of like this, http://jsfiddle.net/cG8qB/, except this will be happening in between the two handles of my slider instead of the whole slider like in that examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to override superclass' s NSNotificationCenter listener method? Say I have superclass which listens to a notification:
@implementation SuperClass
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(foo:) name:@"ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PhoneGap Android Plugin: ContactView error I'm using PhoneGap + jQuery Mobile for a new mobile app.
This plugin is used to call native contact view of Android so you don't have to inject contacts in HTML.
https://github.com/phonegap/phonegap-plugins/tree/master/Android/ContactView
I've followed the instructions prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get height and Width attribute with php? <img src="......" width="....." height="...."/>
If I have a function generating the above code, how can I get the width and height attributes with php?
A: You can use getimagesize()
<?php
list($width, $height, $type, $attr) = getimagesize("http://example.com/image.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: dynamically loading different layouts of choice into another layout I'll get to the point.
I have this class in its own file, DynamicMapLoader.java:
public class DynamicMapLoader extends Activity{
public void Load(int mapInt) {
int mapArr[] = {
R.id.map1,
R.id.map2
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting exercises that include the same muscles as the specified exercise (two tables) two tables:
Exercises
---------
Exercise ID
1
ExerciseTargettedMuscles
------------------------
exerciseID muscleID
1 10
1 20
1 30
I need to grab exercis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't load xml within jquery submit function with Firefox, Ok with Chrome The following works on Chrome but not Firefox ...
$('#foo').submit(function () {
$.get('externals/xml/college.xml', function(d){
With firebug I can see the Get but it does not return any response and is highlighted red with a red X. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with ModalPopup in asp.net/C# I have used modalpopup control in my web application and after open it when i click on ok button i have make call to WCF function to deal with some functional requirement.
Currently the behavior like , when i will click on OK button ModalPopup remained open until my WCF operation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bresenham's circle algorithm I have the following code for drawing a circle :
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
void main()
{
int xc, yc, x, y, p[100], r, k;
int gdriver=DETECT, gmode, errorcode;
printf("\nEnter the center point(xc,yc): ");
scanf("%d%d", &xc,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Initializing array of pointers I have a Deck object (deck of cards) which is a double-ended queue implemented as a doubly-linked list. I would like to be able to shuffle the queue at will, but the way I would go about it is beyond me. So instead I've opted to pre-shuffle an array a pointers to the cards and enqueu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested curly brackets {{ }} in WPF/XAML What is the meaning of nested curly brackets in attribute values in WPF/XAML markup? As in the following example:
<ListBox ItemsSource="{Binding Source={StaticResource pictures}}">
A: That binds the ItemsSource of the list box to a StaticResource called pictures. It's simpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How am I able to pass a var into MeCab for Python? The code is:
import MeCab
m = MeCab.Tagger("-O wakati")
text = raw_input("Enter Japanese here: ")
print m.parse(text)
The problem is that after entering the string into the raw_input it gives an error in IDLE:
Traceback (most recent call last):
File "C:\Users\--... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I prevent focus stealing, but still get focus when returning to my app using Alt+Tab? Following MS guidelines, my WPF application's App constructor includes the following code for proper focus behavior:
HwndSource.DefaultAcquireHwndFocusInMenuMode = false;
Keyboard.DefaultRestoreFocusMode = RestoreFocusMode.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how to stop infinite loop threads from android service? i am working with threads in sample application.In my application i have used 3 threads are running in infinite loop.These 3 threads are used in android service class.when i am starting these threads then the threads are running and UI is not allowing until com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to: Override Metadata for a Dependency Property how to override default dependency property metadata.
for example ;Text property for textbox.
i use this code
class UCTextBox : TextBox
{
public UCTextBox()
{
var defaultMetadata = TextBox.TextProperty.GetMetadata(typeof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: java.lang.UnsatisfiedLinkError in HDFView Whenever HDFView opens an hdf file which is created by a user or by an application, it shows the following error (I am using Red Hat linux).
java.lang.UnsatisfiedLinkError: /dwr2/com/lib/libjhdf.so: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /dwr2/com/lib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Comments Moderation I've successfully added a comment box as described at the social plugins page:
I also included the following metatags:
<meta content='XXX' property='fb:app_id'/>
<meta content='YYY' property='fb:admins'/>
<meta content="YYY" property="fb:moderator"/>
Nothing seems to make a difference!
EDIT: ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: set list view adapter in a fragment in android I want a custom row, so I am using a List View in an xml and inflating into a fragment. I am very confused of how to set the adapter for the list View.
I created a new adapter which extends Base Adapter. In the getView method, I really don't know what context to pass w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: An array for data of dropdown menu There are some ideas for creating a dropdown menu from data populated from xml or json. But how can I do this purely with php? A possible method is to create a multi-level array. But what is the best way to create it from mysql data (having parent id for sub-menus), and how to effe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Object-Oriented JS - without global variables? I am taking an object-oriented approach to building a Javascript app.
For starters, I am creating a Game object and a Timer object.
Here's my current implementation:
The Timer object has the following methods:
setTimerValue()
start()
stop()
getTimeLeft()
timeEx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to update Java constructors,equals,hash,etc. in eclipse? I wanted to know if anyone knows about a good way to update,constructors, equals,hash,to string, etc. generated by eclipse in Java.
Lot's of time, after I use the auto-generated code-stubs, I add a member variable to the class, and then I need to delete th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How we can set the font for all applications according to selected font type in one application Suppose I have an "apk" file. In this app, we can set the font. My question is how we can set that selected font for all applications.
A: You can't. What would be the point of me being able to define fonts in my applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unexpected result from "stringWithFormat:" What would be the expected result from the following Objective C code?
int intValue = 1;
NSString *string = [NSString stringWithFormat:@"%+02d", intValue];
I thought the value of string would be "+01", it turns out to be "+1". Somehow "0" in format string "+01" is ignored.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ActivityManager.getRecentTasks() returns 0 results update I've tried this on a 1.6 AVD and a real Droid Incredible. Both have the same issue.
I need to get a list of recent tasks, but ActivityManager.getRecentTasks() always returns 0 results and can't figure out why.
ActivityManager result = (ActivityManager)context... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scan multiple file headers I have a java program in a certain directory. I would like to make it find a list of all files that end with .dat or .DAT in the same directory as the program. Then I need to look at the first couple of lines of each file and parse a title string. The program should return an array of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i logout from android application I am new to android. I want code for logout from my application .I use shared preferences in my application. I want to put logout facility in my appplication.
A: Yuu can clear the SharedPreference on Logout which you have set during login.
OnClick of Logout:
SharedPreferenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Java: How to merge the keys of two maps? I am working in Java, and have declared two maps as follow:
private Map<MyCustomClass, Integer> map1, map2;
map1 = new HashMap<MyCustomClass, Integer>();
map2 = new HashMap<MyCustomClass, Integer>();
//adding some key value pair into map1
//adding some key value pair into ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to select an element by distance when it isn't a parent or child I'm working on editing a tooltip plugin (TooltipsY) to use a div instead of the title element for the content of the tooltip. I'm doing this for a multitude of reasons, the primary one being so I can have HTML in my tooltips without causing validat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can i know whether i am using a snapshot version or not I have created my own repository under my hard disk
using Apache Server and provided username and password under settings.xml file
under the M2_HOME
And when i am running mvn deploy under command prompt its displaying BUILD ERROR
saying this
<distribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Break the linked list into smaller linked lists I need to break a singly linked list into smaller linked lists after every 2 nodes . The approach I thought was,
*
*create an array containign head pointers of n/2 objects
*Link hop the linked list and store the address in the array after
every 2 nodes are encounte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically add subdir in a Qt Project File? I need to dynamically add folders into $SUBDIRS , just scan for some folders , and:
for file in plugin_dir
if folder name ~ "^plugin-[A-Z]+$"
SUBDIRS += $name
fi
But how can i implement this in a .pro file ?
A: We do this by using qmake's system command.
Whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you make this batch file work in vista? Oo so I have created a batch file. it works fine in windows 7 but when i tested in vista it still works but it skips the :DELETE label it will go straight to :BEGIN label
help please?
, thanks for your time.
:: Batch file Created By Ookami
::
:: Copyright (c) 2011 Near... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I setup nhibernate to handle this? I currently have this code.
tableB = new TableB
{
TableA = tableA,
};
List<TableC> tableC = locations.Select(location => new TableC
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get data from database. Ok, I am able to connect to the mysql database from my iPhone app, I have set it up in a tableview. So when I call the didSelectRow method it stores the users Id number, not the indexRow number. My question is how can I use that stored id to retrieve the rest of the information, so when the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I access sessions in background thread? How can i access my project sessions in background thread in my c#.net webapplication?
it gives me session value = null.
Any idea?
A: Threads in the thread pool are managed by the system. These threads are not bound to the current request. Therefore, Session is not availa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to "link" to an already open Excel.Application with Interop c# I can create an instance of Excel using:
Microsoft.Office.Interop.Excel.Application gXlApp = new Microsoft.Office.Interop.Excel.Application();
gXlWb= gXlApp.Workbooks.Add(Missing.Value);
gXlApp.Visible = true;
gXlApp.DisplayAl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to refer objects on the stage? I have an object created visually. How should I refer to it from classes of other objects? MovieClip(this.root).someObj or stage.someObj or MovieClip(this.root).stage.someObj? And moreover, if I want to see which frame is current on the main timeline, why I cannot just check stage.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find Duplicates in an array in O(N) time Is there a way to find all the duplicate elements in an array of N elements in O(N) time?
Example:
Input: 11, 29, 81, 14, 43, 43, 81, 29
Output: 29, 81, 43
Sorting the input and doing a linear scan to detect duplicates destroys the order and gives the output: 29,43,81.
Sortin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Keeping Track of Dynamic Programming Steps I'm teaching myself basic programming principles, and I'm stuck on a dynamic programming problem. Let's take the infamous Knapsack Problem:
Given a set of items, each with a weight and a value, determine the count of each item to include in a collection so that the total we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MKCoordinateregion's center changes when span changed - iphone I have a MKCoordinateregion called region. I want to change span of this region without changing it's center. I am using following method to change zoom.
-(void) changeZoom
{
NSLog(@"before zoom span, center are %f, %f,%f,%f", region.span.la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Including a file from included file. Referencing issue Here's a sample file structure:
page.php
db.php
folder1/subpage.php
folder2/fn.php
page.php
require_once('folder2/fn.php');
folder1/subpage.php
require_once('../folder2/fn.php');
folder2/fn.php - requires database connection
require_once('../db.php');
/* t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I run an arbitrary java file with Eclipse? I need to run some example java code. I like using eclipse because it shows the methods, properties, constructors and so on. The problem I'd like to solve is that unless I create a new project I can't compile and run the example code I'm using! Is there a way around ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alignment of objects in Android In any layout i am not able to align the objects like textview, edittext ot button as per my wish.
I m New to android, please somebody help me, I wanted to design form like in .net windows programing.
Thanks in advance
A: You can do it.Take RelativeLayout and take all your widgets in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: My python interpreter does not recognize strings Newbie disclaimer: I am new to Python and just started using IDLE to play around with Python.
My problem is the interpreter does not recognize strings, whether enclosed in ¨¨ or ´´.
I configured IDLE to use UTF-8. but it does not seem to be an IDLE issue. What I tried... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: If I close one of my forms, they all close I am new to win forms (C#). The current form that I'm making has the option to create a new (blank) instance of itself, but if I ever close that first instance, all the others close as well. This is not what I want to happen. (Closing any form opened up from the first d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala Object Serialization I am having trouble opening multiple objects that were serialized into a single .bin file. Right now, I can only get one object to be read in when I attempt to open the file. After the first object is read, the error message is displayed (and no further objects are read). My code looks l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing an app with .ipa file and make push notifications to work If I share an ipa file to test my iOS app on colleague devices, are push notifications going to work ?
Do I need to register any new colleague profile / submit the devices on which the app is going to be installed ?
thanks
A: You need to sign the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Solr(Lucene) is indexing only the first document after adding a custom TokenFilter I created a custom token filter which concatenates all the tokens in the stream. This is my incrementToken() function
public boolean incrementToken() throws IOException {
if (finished) { ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I want to pass three different strings to my main method in java. How do I do this? I want people to enter there first name then middle name then last name inside of a method. I then want to pass all three variables into my main method.
Is there anyway I can do this?
And how would I get the different data stored in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I guarantee uniqueness of a table value only within a subset of the table rows? I have a table of projects belonging to various users:
project_id, owner_user_id, project_name
I do not need the project_names to be globally unique to the table, so making project_name UNIQUE does not help. I would just like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom cell code showing leaks in iPhone this may be a simple question but i can't figure the solution.Im creating a custom cell for a table view.When I'm testing the app instruments is showing leaks in code used for creating custom cell.I don't understand where i have to release the stuff for removing the leaks.Can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7618526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.