text stringlengths 8 267k | meta dict |
|---|---|
Q: android Difference between handler.postAtTime and handler.postDelayed Please tell me the difference between handler.postAtTime and handler.postDelayed in android.And also please guide me when to use handler.postAtTime and when to use handler.postDelayed.
A: From documentation:
For postAtTime:
public final ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: backbone.js nested model's object not unique to instance I have a parent Model that has by default and nested Model. The nested Model itself has propertyA, which is an object with defaultValue and userValue. The idea is that every instance of parent Model comes with a nested Model that has a userValue of null, and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create function dynamically in a database HI i need to create a function dynamically in a database..My procedure accepts Database name as a parameter, then i need to create this function dynamically in that DATABASE.
But i am unable to execute this..please help me.Regards in advance
Create procedure [dbo].[Sp_Inser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django:How to let 3rd party sites access images on your server.(limited access i.e. only to that folder) I am working in Django.I am trying to connect my website to Facebook. What i want to do is
1)Send post_data
post_data = [('access_token',access_token), ('message', message), ('link', some_link),('picture',interna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serial Port Communication Project I'm doing a final year project on car park display system. What it does basically is to detect any cars in the parking lot, update the number of lots available and show whether it's full or not.
I'm having trouble writing a programme in C# using Microsoft Visual Studio 2008. I'm get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ebean and playframework In play 2.0 Ebean should become the default persistence layer. And
after a few days of hibernate frustration I started a look on Ebean. I
found the yabe example really impressive. However I had a bunch of
questions:
*
*Does anybody use the play-module in a commercial project?
*Does the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I ensure that two divs always have the same height? I am using jquery-mobile framework. I have two divs side by side (as columns), I am trying to keep their height same irrespective of how much data they contain.
This the html:
<ul class="datablock" id="Manufacturing_and_Qualification_Information" style=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LinQ query with multiple tables and extracting data I'm doing a query to inner join 4 tables and I have to extract data and convert into string and place it in an array for it.
var query = from a in context.as
join b in context.bs on a.prikey equals b.forkey
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Maven : wrong local POM and versioning issue I have 4 Modules (4 POM XML files ) and one parent XML file
I have this directory structure , please refer to the screen shot
http://postimage.org/image/1gjk3mdg/
Currently this error is occuring when i ran the Parent POM.xml file (which internally runs all the Module's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating large number of rows I have a large number of rows in a SQL Server table. I need to select all those rows and run an update query for each of those rows. I need to know what's the best option do it from the following
*
*run a select query and get a DataTable and use the following code in the application
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select default button in wpf dialog? I am creating a WPF dialog. It is like our normal messagebox with ok and cancel button. How to create such a dialog so that the Ok button is selected when the dialog is opened?
A: To set a Window's Default button
Set your default button's IsDefault property to true.
Note ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: ASP alternative to codepad.org Is there any alternative to http://codepad.org/ for use with ASP language? I would like to quickly check syntax online.
Thanks
A: How about http://ideone.com/ it supports C# & VB.NET, no mention of ASP specifically though.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7593242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fast way to sum Fourier series? I have generated the coefficients using FFTW, now I want to reconstruct the original data, but using only the first numCoefs coefficients rather than all of them. At the moment I'm using the below code, which is very slow:
for ( unsigned int i = 0; i < length; ++i )
{
double sum ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePhp form validation when having two models on two different database I've a not common problem to do a form validation.
First let me explain a part of the problem: I'm doing a cakePhp website, this website will be used to sell product to customer. To do this, we have two database: one database(database A) relati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone : How to fetch data from web service where web service uses "POST" method for JSON? I want to fetch data from web service using JSON in my app.
Web service is developed in C# and it uses POST method to pass data.
I found one example but its useful only for GET method?
So How can I fetch JSON data where web se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java config equivalent of echcache.xml Is there a sample Java Config for a standard ehcache XML config file (ehcache.xml) . I am using Spring 3.1.
A: Take a look at the provided documentation, there are some good code snippets, too: http://www.ehcache.org/documentation/user-guide/configuration
A: Specifically: "Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to format code in TextWrangler? I'm using TextWrangler on Mac OS X to do some web development. Is there a way to auto format code?
A: Yes, there is a possibility but not a simple one. Using Text Filters, if you can find a filter your choice you put it into Library/Application Support/TextWrangler/Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Spring ROO GWT Select by reference I created a GWT Spring ROO project with the following entities: Facture and ItemFacture.
ItemFacture contains a reference to a Facture.
@RooJavaBean
@RooToString
public class ItemFacture {
@ManyToOne
private Facture facture;
...
This is the code for Facture :
@RooJavaBean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RabbitMQ: Verify version of rabbitmq How can I verify which version of rabbitmq is running on a server?
Is there a command to verify that rabbitmq is running?
A: You can simply execute from the command line:
sudo rabbitmqctl status | grep rabbit
A: On debian systems, you can just run:
dpkg-query --showformat='${V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "171"
} |
Q: Can't break a long string/text, it exceeds the width of html div <div id="id_div_comments"><p>body4qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Linking problem when derived class calls a template function in base class I have a class Base in base.h, which has a template function
class Base {
template <typename T> void test(T a);
}
this template is supposed to read in int or double type, and I have class Derived, which is derived from class Base
I tried to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can synchronization be treated as an aspect in AOP I understand that in AOP any cross cutting concerns such as Logging, transaction etc can be treated as an aspect and most of the AOP frameworks very well support these kind of cross-cutting concerns.
My question is,
*
*Can Synchronization be treated as a crosscu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Objective C: Accessing properties of an IBOutlet If I have a UIImageView in an .xib file called MainViewController (which, of course, is linked with the respective MainViewController interface (.h) and implementation (.m) files), how can I change the image of the UIImageView from an entirely separate class?
I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A simple MySQL query help Been stuck with this fairly simple MySQL query for a day now! Can't believe how quickly I've forgotten the basics. I have 3 tables - user, post and favourite_post. The post table has a user_id that is a FK to user table.
The favourite_post table has
user_id REFERENCES user(id)
post_id RE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to bind hash table to gridview hi i have a hash table with following set of values
int ID 1
string Name ram
list date 2/3/2011
5/3/2011
Code:
<asp:TemplateField HeaderText="ID">
<ItemStyle Width="200px"> </ItemStyle>
<ItemTemplate>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate criteria with projection doesn't return the entity on which criteria is implemented I'm using spring-hibernate and using HibernateDAOSupport class.
I have two tables mapped to each other in one-to-many fashion.
I'm implementing the below criteria
DetachedCriteria criteria = getCriteria( "a" )
.se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Seeking a more elegant method to populate a WPF DataGrid with dynamic columns (one column for each object's property) I am trying to setup a WPF datagrid. The standard datagrid is setup to accept a list of objects which are displayed on different rows, with a column for each property. I actually need to do the inver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple markers at this line - Line breakpoint:HelloListView [line: 34] - onItemClick(AdapterView>, View, int, long) for the following code can any one help me how to resolve this.
Multiple markers at this line - Line breakpoint:HelloListView [line: 34] - onItemClick(AdapterView, View, int, long) for the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android weird lib.c crash I'm writing an Android app.
I totally have no idea why it happenes often.
Could someone tell me what reason might cause it happened?
Thanks!
09-29 13:58:00.540: INFO/DEBUG(4658): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-29 13:58:00.540: INFO/DEBUG(4658): Build fing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: VCF Vcard import c# iam trying to write a class which imports *.vcf files (Vcard), because i didn´t found a adequate .net class to solve that job.
So i decided to treat the *.vcf file like a *.txt file. I just import the whole file, line by line, with a StreamReader. Finally i save the line into a List object.
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Application crashes while displaying many images Please review following code
-(void)addScrollView{
[self selectData];
scrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(5, 00, 320, 480)];
int counter=5;
float y=40.0f;
int fullLength=[photoArray count];
int horizontal=320;
int vertical=(fullLength/4)*80;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transparent Panel on Form that has a backgroundimage I have a Form, that has a BackgroundImage, and the BackColor of form is set to red. Then, I try to add a panel on that form, set panel's Background to Transparent, but it inherits Form's BackColor and thus panel's background becomes red.
How do I "tell" the panel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fetching data in small units instead of fetching at a time I'm currently working on a Struts 2 application with Spring as backend with MySQL database.
Right now fetching 1000+ rows on page load.
I'm using tablesorter jquery plugin for displaying the results,sorting on click and pagination purpose.
But the page is ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: error in java basic test program $cat JarTest.java
package edu.testjava.simple;
public class JarTest
{
public static void main(String args[])
{
System.out.println("Hello World\n");
}
}
$javac JarTest.java
$java JarTest
I get error:
Exception in thread "main" java.lang.NoClassDefFoundError:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Confused about how fetchResultController works with MagicalRecord I have a NSOperation subclass,this is the main method:
(void)main
{
NSAutoreleasePool *Pool = [[NSAutoreleasePool alloc] init];
managedObjectContext = [NSManagedObjectContext contextThatNotifiesDefaultContextOnMainThread];
Message *messa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Wicket AJAX refresh paginated DataView I have a page that has a list of Hibernate entities that is loaded dynamically on display of the page. The list is used to create a DataView, which is used to display a paginated list of the entries in the list in a container. Each entry in the list has a delete icon on it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NotificationWindow in browser silverlight is there a way to have NotificationWindow in browser?
I need NotificationWindow in browser not in "out of browser".
A: Like AnthonyWJones said, in Silverlight 4 the NotificationWindow is restricted to Out Of Browser use.
However with Silverlight 5, apps will be able to run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Block/prevent Loaded SWF from accessing Loader's Stage I have two SWFs: a Loader SWF, and a Loaded SWF. I need to add the Loaded SWF to the display hierarchy, but I don't want to give it free access to the stage. It may, for instance, attempt to change the scaleMode, and I don't want that to happen.
What are some go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get all windows user account name?
Possible Duplicate:
Getting a list of user profiles on a computer in C++ Win32
I should get all windows user accounts including "SYSTEM" and logged-in user's name.
But I don't know how to access it.
I'm using C++. So I want to know the Windows API to get the information.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to call C++ from Java? I wanted to call a C++ method from Java. I read about JNI, but I am not getting how to get all the library files and where I should keep it in order to run the program from command line.
Is there any way to call a C++ method from Eclipse itself, because I am using it to run Java classes.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: how to parse html file in iphone i dont know how to work on it guide me on this
i have to fetch html file which is im my resource folder example.html in application i don’t know how to parsh this all file in iphone some one help me how can i parse this static html file in iphone please explane some one to me
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git "lost" my commit, sort of, log giving conflicting results Something really strange here I cannot figure out.
Last night I committed some files.
About lunch time today I realised that the files has "lost" all the changes I'd committed yesterday.
I went back through the git log results and sure enough the commit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Views in GAE DataStore The application is a simple task management system in which an employee can have multiple tasks and a task can be assigned to multiple employees. So the first Model is Employee, which has the following attributes:
Class Employee {
Long id; //primary key
String name;
String employeeCode;
St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: update code from github I have commit code from my desktop computer and now I am in another city and want to update my code in my laptop. What is the command to update a code. I was using svn and it is very easy to update a code like right click on svn local repo and click update but in github I don't know the prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ImageView image issue What does the following error mean?
And how can i avoid this?
ImageIO: JPEGNot a JPEG file: starts with 0xff 0xd9
Please advice,
Thank you.
A: You are trying to load not a JPEG file or corrupted FPEG file.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7593353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Program that uses while loops to calculate the first n Fibonacci numbers When I run it and input a number it just repeats it over non-stop. for example if i put a 3 it will do this
3
3
3
3
3
BUT NON STOP
int main()
{
int current=0, prev=1, prev2=1, fibnum;
cout << "Enter the number of Fibonacci numbers to compute: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tool to Generate Load using the Database Sample Data I wanted to generate a load on my web application to measure/test that how many requests my web app can handle. Currently I am using Apache Benchmark For POST request. The problem is Apache Benchmark only use static data which is in file. I want such a tool which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: undefined method `excluded?' for RailsAdmin::Config:Module I'm working through a rails_admin (on RoR 3.1.0) interface for my site (which is an teacher/event pairing site). There are a few basic models, the important ones are teacher, location, event, and image. Teachers "teach" events (habtm), events are at a loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get informed of new song info while retrieving metadata from shoutcast stream Background:
I'm streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html
Problem
I have three problems.
1- I already use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using nodejs and knox how do I see the files in an S3 Bucket I upload files in many different ways to my s3 bucket.
In python i could use boto like this:
from boto.s3.connection import S3Connection
conn = S3Connection('access-key','secret-access-key')
bucket = conn.get_bucket('bucket')
for key in bucket.list():
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Show the listview item clicked location on google map I have created an application which shows the multiple overlay as the result of search button click ,there is one more button result list ,which open a dialog box with list view having the details of those search result overlays...
I have created a button on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# compiler does not find dlls ; solution compiled in VS2010 I have a C# solution and some referenced dll-s. Even though when compiling in visual studio(vs2010) it appears as it succeeded, when using the C# compiler it fails: missing dll apparently..
csc /t:library /out:test.dll test.cs
test.cs(22,10): error CS024... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: keybd_event doesn't work in activex,postmessage does,but can't simulate VK_BACK I'm developing a browser plugin which would interact with javascript. I used the open-source framework firebreath to develop the plugin which would pack NPAPI(non-ie browsers) plugin and activex(used in ie) in one dll file.
The following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Microsoft Sync framework issue, Data not synced fully for a SqlDbType.Text field I have a table with one of its column ADDRESS with datatype Text . When I sync the data from client to sever all other column values sync properly but only first 16 characters get synced for ADDRESS column .
I checked in Data access la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scan tokens only within context using Flex? I want to create a parser of template engine using Flex & Bison. The thing is that I would like to parse only expressions within {{..}} and ${..}.
The template can be any arbitrary text with embedded tokens with code like this:
</table:table-row>
{{$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Aspnet_Compiler to publish all dlls other than modified In our continuous integration process we are using Aspnet compiler to publish the source. But while doing, it only publishes the modified dlls.
Our task is like
<AspNetCompiler
VirtualPath = "DeployTemp"
PhysicalPath = "Physical pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switch case in C# - a constant value is expected My code is as follows:
public static void Output<T>(IEnumerable<T> dataSource) where T : class
{
dataSourceName = (typeof(T).Name);
switch (dataSourceName)
{
case (string)typeof(CustomerDetails).Name.ToString(); :
var t = 123;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Android: Get intent and reroute it to another class My question is simple: if an intent object exists, I want to merely use that and add putExtra() and then startActivity to go back. However, I have no idea how to do this. Any help is appreciated.
Intent intent;
if(getIntent() != null) {
intent = getIntent();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get method names of un-managed components from Prog Ids using C# I want to get the method names of un-managed components. I would be doing using the prog-id
System.Type wiType = System.Type.GetTypeFromProgID("WindowsInstaller.Installer");
object objWI = System.Activator.CreateInstance(wiType);
//Type ty = objBLType... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Coalesce Function in DB2 I am using IBM DB2. I have a query which gives the output as:
NAME / AMOUNT
CST / -
VAT / 1400
ST / -
I am trying to write a coalesce function for AMOUNT. The datatype of AMOUNT is decimal(10,2)
COALESCE(AMOUNT,' ')
The purpose of me doing i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Know the lastVisbile row in wpf toolkit datagrid i have datagrid which has 200 rows of data. i need to display the records in 4 monitors.
monitor resolutions may be different. so, i need to display the records in such a way that suppose 40 records can fit in first monitor and the i need to take the remaining ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I am using form edit using JQ Grid. The data on the 2nd drop box will be populated dynamically based on the value on first Please help, I am a new developer and I am using form edit. There are two drop down boxes in the form using JQ Grid. The data on the second drop down will be populated dynamically based on the v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to stop proguard from obfuscating entire package? I need to prevent Proguard from obfuscating any classes from the package com.foo.*.
I have tried:
-keep com.foo.** {
<fields>;
<methods>;
<constructors>;
}
But proguard says :
Error: Unexpected keyword 'com.sun.foo.**' in line 32 of file
'obfuscat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What does this code segment in python mean? I'm trying to understand what is going on here, specifically how curids is getting set:
for idx in xrange(0, int(math.ceil(float(len(mids))/chunk))):
curids = mids[int(idx*chunk):int((idx*chunk)+chunk)]
I'm not sure what the syntax for mids[int(idx*chunk):int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Use 0755 as base-8 number Here is my code:
function myChmod($path, $permission, $log)
{
//this is to overcome umask limitations that mkdir adheres to
$result = chmod($path, octdec($permission));
if(!$result) {
$log->log("Error failed to chmod '$path' to '$permission'. Exiting.");
throw ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to start with phonegap development? Hi I have gone throught the site: phonegap
I have also read the documentation provided there, but is there any easy way tutorial available for that?
I have less idea about javascript coding and what I found is phonegap is entirely based on javascript. Can anyone guide me from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get the splitcontainer context in user control click event Sir,
I have a split container in which in right panel i have a usercontrol.In the user control i have few buttons like view,new,edit etc.Bottom of that user control a form will open based on what link is clicked on the left side navigation pane. now wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Formatting timedelta object python I wrote this little script to format a timedelta object according to my needs:
def due_format(self):
time_diff = abs((self.due - datetime.datetime.now()).total_seconds())
days = time_diff / 60 / 60 / 24
hours = time_diff / 60 / 60
minutes = time_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show fragment as a dialog or as a usual activity In my app I've got a fragment which is called "About". On handhelds I want this fragment to look like a usual activity but on tablets I want it to be a dialog. Which way is preferred to handle this situation?
A: Make a style for this in your styles.xml (two styles.xm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to Fetch Last string using jQuery? Let's say I have a string like this
Hello World, I am xyz, How are you ?
And I need all the characters in the string that comes after last comma. Which is here
How are you?
How can I do this ?
Note : Here space in the beginning should not come.
Also I need the remaining strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Codeigniter Image resize issue I can't re-size a large uploaded image into tow copies one in another size and the other is in another size.
I can only resize only one image.
What I want to ask is. I want to creat a thumbnail as well as slighter larger image of a user profile photo.
if(move_uploaded_file($_FILES['pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I wait for a callback in coffeescript (or javascript)? I'm working on a password manager webapp that uses Parvez Anandam's pbkdf2.js for key generation (that is, turning a text password into a suitable 256 bit key for AES). I'm using the project to learn coffeescript. I'm having trouble getting the data out o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: overflow: auto; is it supported for of a html table? There are long texts or string for html table <td>.
Now I want to break the line/texts/string.
overflow: auto; is it supported for <td> of a html table? I tried it it doesn't work.
How can I solve it ?
A: add a CSS attribute white-space
white-space:normal;
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Set subject from ActionMailer template in Rails 3? How do I set the subject from a Rails 3 ActionMailer template?
I'd like to keep the subject and body together.
In Rails 2 you can do the following:
<% controller.subject = 'Change of subject' %>
(from http://www.quirkey.com/blog/2008/08/29/actionmailer-changing-the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Django sqlclear purpose Can any one explain the use of sqlclear ?.I have read the docs
A: The way you would use this type of command is when you are doing initial prototyping of an application. During this phase, before any releases have been done, you're pretty free to iterate over the data model. manage.py give... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to extract metadata from video(m3u8) files? Is there any way to extract metadata from video(m3u8) files, If exist please help me with links or source code.
Thanks
A: m3u8 is the utf8 version of m3u instead c1252 charset.
m3u is a text file as a play list file with a content like:
#EXTM3U starts header and mus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where is "setTimeout" from JavaScript in Haxe? Is there an implementation of setTimeout() and clearTimeout() in Haxe?
It's of course possible to use the Timer class, but for a one-shot execution it's not the best way, I guess.
A: In case you're using the kha framework:
Kha modifies haxe.Timer to call kha.Scheduler,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to replace < and > from the xml response in client side I have a response that comes from server side in xml format (partial like below)
<list>
<Response>
<cfgId>903</cfgId>
<recommendations>
<Rule>
<name>Env SSA_RB_RESTART</name>
<cate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which one is better for social networking integration in iOS development? I have searched on net for social networking integration in iOS projects (For example: Facebook, Twitter, etc)
I found there are also SDKs available for particulars and some OpenSource projects/frameworks are also available for the same which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ipython and python are handling my string differently, why? In python (2.7.1):
>>> x = u'$€%'
>>> x.find('%')
2
>>> len(x)
3
Whereas in ipython:
>>> x = u'$€%'
>>> x.find('%')
4
>>> len(x)
5
What's going on here?
edit: including the additional info requested from the comments below
ipython
>>> import sys, locale
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert a .CATDrawing file to .pdf I want to convert a CATIA V5 file to a pdf file using vc++. How can I convert this. Am I use any third party software or dlls in my application for this operation. I am not familiar with CATIA.
A: You can do this if you have access to the Catia V5 api and likely and runnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add AdMob as item of ListView in Android ? I have a question about Google Admob (referenced libraries GoogleAdMobAdsSdk-4.1.1.jar) .
My question :
*
*I have a ListView about Football and now I want to add Admob as a item of my ListView
*For example:
*
*Item 1
*Item 2
*Item 3
*<---------------Banner A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java, regular expressions, String#matches(String) I'm used to regular expressions from Perl. Does anybody know why this doesn't work (eg. "yea" isn't printed)?
if ("zip".matches("ip"))
System.out.println("yea");
Thank you.
A: matches() is a complete match; the string has to match the pattern.
if ("zip".matches("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using git submodule update --init on a post hook I have this simple hook on /hooks/post-update inside a bare repository:
#!/bin/sh
git-update-server-info
GIT_WORK_TREE=/home/user/apps/application-site/dev git checkout -f develop
GIT_WORK_TREE=/home/user/apps/application-site/dev git submodule update --init
GIT_WOR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Trying to Create An Object in ZF but gives Application Error I am New To Zend Framework. However while go through several tutorials I created a model file user.php where I created a class user extends Zend_Db_Table_Abstract and when i create an object of that class in my controller file it gives the application erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting Char array to int/double/float Thx for the help but maybe I should clarify my problem. I want to read some addresses from a text file, for instance:
someFile::
0xc4fap4424ab1 0xac8374ce93ac ... etc
Now I want to take these addresses and convert them to decimal so that I can make address comparisons. So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Settings in ASPxGridView Skins Can you set settings in ASPxGridView skins?
For example:
<Settings ShowHeaderFilterBlankItems="false" ShowFilterBar="Visible" ShowFilterRow="True" />
This would be very helpfull because all the grids that are using this style would have filter bar and filter row enabled by default.
If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there some c++ library / source similar to boost program_options but for *keyboard shortcut auto-gen help* ? So, I have some c++ source with key bindings like:
switch( keypressed )
{
case 'c':
cam_handle->Yaw(min_angle );
break;
case 'd':
cam_handle->Yaw( -min_angle );
break;
case 's':
cam_handle->Pit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delete html tags in sed or similar I am trying to fetch contents of table from a wepage. I jsut need the contents but not the tags <tr></tr>. I don't even need "tr" or "td" just the content. for eg:
<td> I want only this </td>
<tr> and also this </tr>
<TABLE> only texts/numbers in between tags and not the tags. </T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Facebook Fan Page Id in associated Facebook App I am developing a facebook application which required to get below information while load.
*
*Facebook Fan Page URL / Id on which the application has been added.
*If the user who is accessing this application from specific page is admin of that page or not.
I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How avoid the screen move when focus the input box in mobile safari? Focus the input box in iPhone caused the viewport change.
How to avoid this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7593485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error in using ListView in ListActivity I am having trouble using ListActivity. If i change class extend from ListActivity to Activity it works fine. But then the trouble is how will i implement the onListItemClick. It muight be some small mistake i might have done but i am not able to trace it.
public class Wareho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A shell script to read a text file and then run a java program I have a java program that stops often due to errors which is logged in a .log file. What can be a simple shell script to detect a particular text line say
stream closed
and then run the following command
java -jar xyz.jar
A: Here's a bash script to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql load data infile permission issue I am using the following query to load into mysql:
LOAD DATA INFILE '/var/www/vhosts/httpdocs/xml/insert_feeds.csv'
INTO TABLE `deals_items`
FIELDS TERMINATED BY '@##!@#'
OPTIONALLY ENCLOSED BY ''
ESCAPED BY ''
LINES TERMINATED BY '@##%@#'
IGNORE 1 LINES
(@id,dealID,sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Comet WEb server implementation I recently asked one question :- Handle Web Server with multiple clients
I have gone through the basic techniques to implement comet server like streamhub,Maven/Jetty etc.
I have following questions for that :
*
*After that I found the issues like in case of Maven/Jetty internet
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: He!p with SimpleXML for $response in PHP I am sending a XML to a webserver using PHP, and the server returns an XML response. I need help parsing values from the response! I have read the SimpleXML instructions, but my understanding is that all those are only for when XML data is already created, but needs to be par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I install XCode in a different location than the default? For the life of me, I cannot figure this out. All the installer seems to let me do is choose between my two hard drives, and there is no option to select a directory on the hard drive.
I have seen the similar question here, but this doesn't help me: In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create, start, resume, pause, stop, destroy android activity during testing I wish to capture data from the views in the activity, then pause it, then resume it and ensure that the data has not changed. I tried calling Activity#onPause() in ActivityInstrumentationTestCase2#setUp() but I get an error.
A: pres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Efficient way to update column with arithmetic sequence of numbers after delete operation I have a PresentationSlide table:
PresentationSlide
PresentationSlideId
PresentationId
Content
Order
and example rows:
+---------------------+----------------+---------+-------+
| PresentationSlideId | Presenta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# failed to upload video This is my code to upload video on server
protected void Button1_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
string fileName = FileUpload1.FileName;
string fileExtension = Path.GetExtension(fileName);
if (fileExtension == ".flv")
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593514",
"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.