text stringlengths 8 267k | meta dict |
|---|---|
Q: How to integrate l7-filter option with linux iptables in Debian Squeeze? I did :
mkdir /usr/local/iptables_l7
cd /usr/local/iptables_l7
Download following packages from Debian source:
linux-2.6-2.6.32-amd64
netfilter-layer7-v2.22
l7-protocols-2009-05-28
iptables-1.4.8
Now i patch up kernel linux-2.6-2.6.32-amd64 wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Other Open Graph og:type not being parsed correctly by Facebook linter As per Open Graph's documentation at http://developers.facebook.com/docs/opengraph , we can specify our own og:types.
If your object does not fit into one of the types above, you can
specify your own type. This will be represented as type othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to close popup and redirect a page My site using php and i create an online quiz and the quiz show in pop up mode.
Currently when i want to redirect my page using the script below. it goes to my homepage BUT it still at the pop up mode. I want it to close the pop up and go to homepage after I click finish.
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: LINQ to remove elements from one collection that don't match elements in another collection based on a field I have 2 Lists of different objects eg List and List. I want to remove all objects in first list whos value of a field doesn't match on a value of a field in the second list.
Eg I want to remove all Type1 ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving All Payments From Sage Line 50 Database I'm trying to retrieve a list of all payments received/entered into a Sage Line 50 database. The company I work for are members of the Sage developer program, so I have access to the SDK, help files and the like but I have been unable to find any specific informati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ssl certificate for several domains, one IP AFAIK, SSL is assigned to a single domain name (maybe several subdomains via wildcard).
On the other hand i heard that the webserver does not see the domain before it serves the ssl?
If I have multiple domains running as vhosts on one IP address:
Q1: Can the webserver serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jquery mobile orientation change returns opposite value I am currently working on a mobile website using jquery mobile and I encountered problem in detecting orientation change. My mobile website detects the orientation as "landscape" when in portrait mode and vice versa when testing on my Samsung Galaxy. However, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to use command line for load testing a web URL (single web page) using jmeter without creating test plan Is there a way to use command line for load testing a web URL (single web page) using jmeter without creating test plan file. (i.e. *.jmx)
Thanks,
Yugal
A: Yes, it is called Apache Benchmark tool.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add to Timeline's button mode broken? Though I've embedded the Add to Timeline social plugin in button mode:
<div class="fb-add-to-timeline" data-show-faces="false" data-mode="button"></div>
it keeps showing up as the full plugin including a preview of how Timeline items will look like. Is this a known issue?
I gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to view email source in Yahoo! mail I'm getting CSS rendering issues in Yahoo! mail in IE8. How can I view the email source? I've tried installing the IE dev toolbar but the message body is within an iframe which doesn't provide any useful information.
In case it's a common issue, has anyone else had problems wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can I get pay with tweet button in dutch language? I am going to use pay with tweet button in wordpress site,but my site is in Dutch Language,
So if anyone know can I get pay with tweet button in Dutch Language please tell.
Thanks
A: From http://www.paywithatweet.com/faq.html as of time of this writing
Q: Can I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: problem in fetching values,JSF-data table I'm using JSF 2.0 and trying to display a list of data using a datatable. After my data is fetched I have button in each row, on this button it has to take some of the fields as input parameters and then save it.
<h:dataTable id="dt1" value="#{vendorApp.editQtnList}" var="qL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to update global variable in titanium? i'm having some problem in updating my array which is global by the way.
here is my code:
Ti.App.dinercolor=["#FF5A00","#007EFF","#dccdc0","#C2FF95","#A700FD","#dccdc0","#dccdc0","#5F9EA0","#dccdc0","#dccdc0","#22A000","#DCCDC0","#dccdc0","#FF003C","#dccdc0","#FF003C","#dcc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django: following the reverse direction of the one-to-one relationship I have a question about the way Django models the one-to-one-relationship.
Suppose we have 2 models: A and B:
class B(models.Model):
bAtt = models.CharField()
class A(models.Model):
b = models.OneToOneField(B)
In the created table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert an ERD to Code First classes? I have the following ERD and want to convert it EF 4.1 Code First classes. For the sake of simplicity, I will concentrate on the first two Entities only.
Author > Quote.
Which is the correct way of having my code for the Entities, this:
public class Quote
{
public in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resizing the NSTableView programmatically How to implement the feature of resizing NSTableView created programmatically ? Interface builder should not be used. It should be like click and drag to change the size of the NSTableView. Is it possible? If yes, please help. . . .
A: I am afraid you need to write a bit o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do i need to delete dom fragments or will the garbage collector remove them? This maybe a bit of a silly question. I'm assuming that the garbage collector disposes of any dangling variables after a function ends execution, but I was wondering if this also applies to DOM fragments.
If I create a DOM fragment or any u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to translate a NSString object to NSDate quickly? I try to get NSDate objects from NSString which I get from sqlite, but there is a time problem. I takes me 130ms every time. And it's insufferable for i have two hundred objects to deal with. So can somebody tell me what i should do. Thanks.
A: Assuming you're u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What would it take to create a C# compilation error, when you use custom methods where Expression is expected? What would it take to create a C# compilation error, when you use custom methods where Expression is expected?
Its true that Lambda expressions that contain invocations to custom methods are also, technical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting ComboBox variable to store in MySQL I have an html page that gets data from 'hs_hr_employee' table and lays the info in a table on a web page. Then I have another table 'rights' which gets info from 4 columns from the 'hs_hr_employee' table and stores them in columns. In addition to those 4, the 'rights' tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble initializing NSViewController - UI Objects not retained I'm having some issues with understanding how to work with NSViewControllers on Mac. I'm trying to create custom table cells for NSTableView. In one of the delegates of the NSTableView, it can return a view, instead of a cell.
I have a subclass of NSVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: synchronize sharepoint documents with another system Is it possible for the documents (inside the sharepoint document library)
to be accessible from another system library (implemented in J2ee), and both
should be synchronized together ?
Is this possible using "Microsoft Sync Framework for SharePoint" , then
using "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to properly format unusual date string using Java SimpleDateFormat? I've got date in following format:
Pon Cze 07, 2011 9:42 pm
It's Polish equivalent of English date:
Mon Jun 07, 2011 9:42 pm
I'm using following SimpleDateFormat matcher:
SimpleDateFormat("EEE MMM dd, yyyy H:mm a", new Locale("pl", "PL"))
But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing schemas in mongoDB/mongoose I am getting started with mongoDB and mongoose. I was wondering how people manage evolving schemas. For example if i started with a schema like this:
user_ID : 123,
user_firstName : 'bob',
user_lastName : 'smith'
And evolved it to something like this:
user_ID: 123,
user_name: [f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: PHP Memory Error(No File Name specified) I am getting php error like this:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted
(tried to allocate 7077994 bytes) in Unknown on line 0, referer:REFERER
I have checked my code there is no infinite loop or code which will take such high memory.
I conce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A PHP platform to post messages on specific date I am planning to write my first PHP server side code. It includes a scheduler that will email a message to a user on a specific date. The front end of the application is fairly simple.
PHP produces an HTML page where you can select a date in the future to post the mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Silverlight ProgressBar with custom image Bricks I need a progressbar style which uses an image as each of its progress bricks.
Any idea?
A: EDIT: my answer is for a Slider control, it could be adapted quite easily to a ProgressBar control, using as said in the original post either DataBinding or ElementBinding + a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASPxComboBox 'specified cast is not valid' error when data binding I have a Dev Express ASPxComboBox:
<dx:ASPxComboBox runat="server" ID="DropDownListTemplates"
DataSourceID="SqlDataSourceTemplates" ValueField="template_id" TextField="name"
ValueType="System.Int32" Enabled="false" Width="100%" SelectedIndex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SSRS 2008 reexecute report when parameters changed I have a report with many parameters, some dropdown lists some textual and some dates.
After the report viewer is loaded, user choosed parameters and pressed the 'View Report' button the report is loaded perfect.
Now user wish to change on of the many parameters ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I pull the facebook pages that my fans like Based on this this article, let's say that I manage FB page "A". When I'm logged into Facebook as "Page A" I'm seeing on the right sidebar under Recommended Pages, a few Pages that my fans like. Because this info is very useful, I want to pull all the pages that my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: predicate to many-to-many relationship core-data I have two entities in a Core Data Model like these: A <<--->> B.
Entity B has an attribute name which is a string object and a relationship AObjects to A; instead, entity A has got a relationship BObjects to B.
Now I want to get a list of all BObjects connected with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i end session when user was inactive Hi all i have seen several examples regarding the session. But i would like to know whether the following work as per my requirement or not. My requirement i will have some pages that user can access. If user visits a page and if he didn't perform any operations for 5 min... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a comprehensive description for log4j.properties options? I have Googled till my finger bleed if I could not find a comprehensive description of the option usable for log4j.properties. All I find a general overview and samples from existing projects.
Among my questions are:
*
*Which % place-holder are av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any way to show vxml content into Google Chrome? I am searching for VXML 2.1 help. I know vxml can be tested on tellme.com server. But I am searching, if there is any way to test vxml in Google Chrome. That is, can vxml content be shown on Google Chrome?
A: To view the VXML generated in a Chrome browser yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JiBX Code-Gen Error: Duplicate name on format element at I am trying to generate code (with customizations applied) for OTA schema available at [OTA2003B] ( http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B ) using JiBX Code Gen tool.Following is the code I have written to achieve the same.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails notification system I need to create a facebook-like notification system for an app I am working on. I was wondering what suggestions any of you have for how to go about doing this? If possible, I would like to avoid using the database for the notifications, if this is feasible I'd love to know how.
Thanks in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails3:how to register scss template handler I'm interested how can I register a .scss template handler in Rails 3.1 . I know that I already can use .scss files in the app/assets directory, however I need to have access to the application environment and instance variables.
I'm trying to do something like this (the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: securityinspector for org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean Can anybody help me out wheather Spring provide security inspector for org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean (purpose i have RPC/ENCODED secure webService)
A: Spring Does not support RPC style. Its only sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate sequence with step value I have following inputs:
double zmin;
double zmax;
int count;
int N; //Total number of element in result array
I want to generate a sequence of double array with zmin as first and zmax as last value. But from second value until last but one it should be steзped by (zmax-zmin)/count... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Autoconf subdirectories with subpackages depending on each other? I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to list all the elements found in a long listing format? I use often ls -l to list files in a long listing format, and find -name ... to find elements...
Does anyone know how to list the return of find -name ... in a long listing format?
Thank you!
A: Sure - just use the -ls option:
$ find . -name ... -ls
See:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Problem loading MORE than one custom font blackberry I tried to load a custom font, which works. Now I have got the problem Iam not able to use more than one custom font in an application. If i add three labelFields each with a different font, only the last custom font is used for all labels.
If i delete the last se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Output row in text file with max value in specified column to new file I have a fairly simple task I need to automate for an analysis. I have found similar questions on this forum but not applied to a plain text file, and as I am a python newbie I am not sure how to convert these solutions directly to my needs. So I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FancyBox navigation on certain links Hi there good people of StackOverfow, i need help with visibility of the FancyBox navigation arrows. I need them to be always visible (not only on hover) on image groups, but invisible on videos that open in FancyBox window.
the code that I have for images is:
$("a[rel=images]").... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Transaction and Rollback in Spring with JPA Hi friends of StackOverflow,
I do not understand how to roll back I read the documentation of Spring, but I still do not understand. Basically I'm going to persist an object in the db (with primary key manually) all the way here all right, the object is inserted into the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help with a SQL querying speed and performance issue I've got a classified listing website for cars which I'm in the process of developing built in PHP. The user enters the details of the car they are looking for using drop down option boxes on the homepage. When they click submit they are taken through to the resul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring MVC invalid Date Format error message not showing I'm having trouble regarding Date validation in Spring MVC 3
ClientForm.java
public class ClientForm
{
private Date bday = new Date();
//Getters and setters
}
In my Controller
@RequestMapping(value = "/save", method = RequestMethod.POST)
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Internationalization of custom validation error messages I need to have custom validation messages in my ActiveRecord models internationalized. Currently, I'm using something like this, which works:
validates_uniqueness_of :name, :message => lambda { I18n.t(:family_name_in_use) }
I know Rails has validation message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jqueryUi autocomplete combobox going up instead of down Is there a way to show the combobox ending instead of starting in the autocomplete form if the autocomplete is near the bottom of a page (pageview).
The problem with this widget is that if it's near the bottom, the combobox will not be visible; as it's going do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you use Dijkstra's algorithm if there is a negative weight so long as there are no cycles? Update: I really botched the original question. My original title was "Why do we first do a topological sort for acyclic weighted digraph shortest path problems?" but my question content was about Dijkstra's algorithm. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: passing correlation token to WCF service? Having a lot of similar calls, maybe in parallel, to some web services, I'm wondering what is the best way to implement a correlation token mechanism.
The idea is to have, from the client to the server, the ability to log information for a single request with an identifier t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Split html body in two parts Is it possible to split the body tag in my web site into two parts. For example having the first 50% (in height) in the background-color in white and the rest 50% in black?
Does anyone know how I can do that?
Thanks
A: If it's enough to work with CSS3, then the following do the trick:
b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rotate TextView without cut off text i'm trying to rotate a TextView, but my text gets cut off by the bounds. But the text is rotated.
I'm not using this for an animation or some sort. It's just static, design-wise :)
I have a RotatedTextView where i do this:
public class RotatedTextView extends TextView
@Override
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to extend the "New" context menu? Is it possible to add menu item in "New" context menu(package explorer)? I tried something like this, but the the menu item isn't placed in the context menu, but above it.
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.eclipse.ui.artic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: see if content element is a reference or not Hi I need to find out if an content element is a reference or not.
I tried to see if $this->destPointer was set but then I realized that this was set for all elements...
I cant find where the references are saved in the database either.
Someone got any idea?
A: Reference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: Find and use the id number from a diff controller I want to extract the id number of a unique record, that resides in a different controller as an integer, so I can save it as part of a new record in a new controller.
I can't seem to get the id to shed it's 'Array' attribute.
I've been using this:
class Mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can we use pom.xml into ANT I know that, we can very well use ANT and Maven together to build the project.We can run ANT scripts through Maven's POM.xml. But my question is can we run pom.xml through ANT's build.xml ?
i.e. can we create maven build from build.xml
A: Yes, using maven ant tasks.
The page lists out mu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Most efficient way to clamp values in an OpenCv Mat I have an OpenCv Mat that I'm going to use for per-pixel remapping, called remap, that has CV_32FC2 elements.
Some of these elements might be outside of the allowed range for the remap. So I need to clamp them between Point2f(0, 0) and Point2f(w, h). What is the sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: JAVA :: RESTful Web Service to consume a XML file Is there any other way that we can send an XML file to a RESTful Web Service other than as a FORMPARAM?
My requirement is to develop a webservice which Consumes a XML file, stores it in my local machine and returns a statement saying that the file was downloaded/save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to show on focusable item in listview In my application i have used list view and custom cell which contain product name , image ,quantity and price now i want to implement that if use click on the product name then it should open a new quick action showing delete /edit .
But problem is that when i m touching ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: where to put log4j.properties- for use in java desktop app I am trying to use log4j logging framework in a java desktop application.
When I run the code I am getting a message
log4j: log4j:WARN No appenders could be found for logger
I googled for the above error and found that it occurs when the log4j.properties ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: QImage definition this command line:
QImage:: QImage (uchar * data, int width, int height, int bytesPerLine, Format format)
Would use is it so?
QImage image = new QImage (buffer, 600, 400, jpg)
the bytesPerLine not they mean well, will the photo occupies kb?
thanks
A: If you do not want to use the bytesPerLine para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS sprite position problem I trying to create a fixed border to the site that dynamically change size with the browser window from this sprite (it isn't perfect I know.): http://fc07.deviantart.net/fs70/f/2011/269/7/0/bordersprite_by_nakos-d4ayzne.png
DEMO on jSFiddle
My problem as you can see is the vertical wall ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# setting property/field to value of none I have what I presume must be a common problem. Lets say I have a typical Person Class and I have a Car Class, which has a field/property owner of type Person:
public class Car
{
Person owner;
}
But sometimes I want the car to have no owner. What's the recommen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python equivalent of Perl's idiom do this or that, usually known as "or die"? IN Perl it's quite common to do things like function() || alternative(). If the first returns false it will run the second one.
How can this be easily implemented in Python?
Update
Examples (pseudocode):
x = func() or raise exeption
x = fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How should I try to fix java.lang.IllegalStateException in JBoss "is already registered"? I have a web application. When I try to deploy it via Netbeans, the JBoss server throws the following error:
DEPLOYMENTS IN ERROR:
Deployment "vfs:///path/to/my/Application.ear" is in error due to the following reason(s): jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET href CSS not being applied CSS isn't being applied in aspx page. It works when the css is defined in the same page (href references a.classname) but when it is put into a stylesheet it is not applied. When element is inspected, Chrome says user agent stylesheet is being applied.
It says that a:-webkit-any-li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.1: javascripts not served correctly from vendor/assets directory? I have organized my javascript files in a couple of directories and I have found the following strange behavior. Given the following tree:
+ app
+ assets
+ javascripts
+ common
+ public
+ common
+ home
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Limit product quantity to 1 per customer in magento I need to limit the quantity of a product purchased by a customer to 1 per day. We are going to have something like deal and day and targeting consumers. We do not want some one to buy high quantities. Could some one guide me as to what the general approach should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the quick way to make my change of firefox plugin take affect in windows? Now I have to restart whenever I modified a single line...
Is there a way to make it refresh without restarting the firefox?
A: Yes, you use plain directories in your extension instead of a JAR file, add <em:unpack>true</em:unpack> to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cobol dashes are confusing me
Possible Duplicate:
cobol difference with Picture having a dash (-) and a having a X
I'm tying to get to grips with Cobol and can't understand the dashes when formatting a number. I have this example:
--9
Am I correct with the following?
The first dash - If number is a negative put ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remove plugins rss results Joomla I wonder how you can remove plugins syntax of the return results RSS joomla.
When viewing a feed section of Joomla, all items listed in that section in RSS format. If such articles contain a plugin, it displays the syntax of the plugin. I want to know is what is the way that syntax ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is the expression in this while loop causing an infinite loop? New to oop and was just wondering why this causes an infinite loop:
while ($row=$dbh->query("SELECT * FROM animal")->fetch(PDO::FETCH_ASSOC)){
printf("A(n) %s is a type of %s<br />", $row['name'], $row['species']);
}
However this does not cause ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do I get the message: 'module' object has no attribute 'load_source' I have function:
def load_from_file(filepath, expected_class):
mod_name, file_ext = os.path.splitext(os.path.split(filepath)[-1])
py_mod = imp.load_source(mod_name, filepath)
in templatetags file and it is ok.
But when i copy/paste th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Application's package can't find in Device? I've successfully written a simple android database application, but I can't see and find my package on the device.
When, I'm using this application on my Device it doesn't show the database in my device's file manager.
What am I doing wrong? Also, what do I need to do to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome interpreting jpg resource as Document Consider the following image at:
http://znood.com/images/801/130x130.jpg
I have a controller rendering this image and transferring it with image/jpeg MIME.
Chrome is throwing the warning:
Resource interpreted as Document but transferred with MIME type
image/jpeg.
Why ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to pass intent extras to broadcast reciever? I've been trying to get an android application to install an APK on the sdcard programmatically and to delete the apk once it's installed.
This is how I'm doing it:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType("ApkFilePath...","application/vnd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to install features depending on the value of property I have a registry key that can be equal to one of two values: special value or null. And two features.
When my registry key equals to special value the installer has to install first feature. if registry key is not found by registry search the installer has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is best way to share class instance (create and share singleton)? I know 2 ways. What is better? And anything better than 2 ways?
+ (MyClass *)shared {
/*
static MyClass *sharedInstance = nil;
@synchronized(self) {
if (sharedInstance == nil) {
sharedInstance = [[self alloc] init... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ListView onitemclick is not working I have a ListView containing a checkbox, an imageview, two textviews and a button. The problem is after adding the checkbox and the button the onitemclick event of the ListView is not responding. Will anybody suggest a work around for the problem?
A: You can set both android:focu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto avoid copying when casting a vector to a vector Is there a way to avoid copying large vectors, when a function expects a vector with (pointer to) baseclass objects as input but I only have a vector of (pointers to) derived objects?
class Base {};
class Derived : public Base {};
void doStuff(vector<Base*> &ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Empty excel cell using java "getNamedRange("SOME_VARIABLE")" I am project i have to modify the excel file using java codings.
My requirement is to empty the cell completely which has the string value "SOME_VARIABLE".
book.getNamedRange("SOME_VARIABLE").remove();
Is the above code a right one. I tried with this but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first This is my code:
Frame.gameController.test();
setContentView(Frame.world.getScreen());
Frame.world.setRunning(true);
On the second line I am getting the following error:
ERROR/AndroidRun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: CGContextConcatCTM vs CALayer affineTransform I'm trying to change the affine transform of a CALayer so what's drawn in it gets deformed.
First I was doing this without CALayers, just redrawing with a different CGAffineTransform passed to CGContextConcactCTM.
That worked, but it wasn't fast enough, so I decided to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java: How to reproduce Legen...dary ClassNotFoundException in Singleton? On my last interview I was asked a standard question about all Singleton implementations in java. And how bad they all are.
And I was told that even the static initialization is bad because of the probability of unchecked exception in construct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Example of chained exceptions stack I do not know much about these technologies, and was not very successful at finding how an exception stack is displayed.
Therefore, several basic questions:
*
*how are 2 independent successive exceptions shown?
*how are several chained exceptions displayed?
*is the root cause... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sending a file via POST using raw HTTP (PuTTY) If I set up an HTML page with the following form:
<html>
<body>
<form action="upload_file.php"
method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: File Download using HTML 5 , Javascript and File API Can we integrate the FileAccess API of HTML with normal download of Files using javascript.
We typically download a file by the below way:
var fileUrl='../File.doc';
window.open(fileUrl,'Downloading');
Now I believe that the file would be downloaded to temp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is accessing volatile local variables not accessed from outside the function observable behavior in C++? In C++03 Standard observable behavior (1.9/6) includes reading and writing volatile data. Now I have this code:
int main()
{
const volatile int value = 0;
if( value ) {
}
return 0;
}
which formal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java: How to view icon overlapping each other JLabel l1 = new JLabel( new ImageIcon( ... ) ) ;
JLabel l2 = new JLabel( new ImageIcon( ... ) ) ;
l1.setBounds( 0, 0, 50, 50 ) ;
l2.setBounds( 10, 10, 50, 50 ) ;
That occupy some of the place of l1. If I want to view all the l1 ignoring l2, what should I write ?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a ready made roles/membership framework for ASP.NET Web Forms? There were few questions related to this but none answered the question in my head. Suggestions included Asp.net Membership system, a search on codeplex foundation or role out your own. Rolling out my own would be last resort as it would involve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: admob ads not displaying when request.setTesting(false) When i place my pub id
AdView adView = new AdView(this, AdSize.BANNER, Publisher ID);
and
layout.addView(adView);
AdRequest request = new AdRequest();
request.setTesting(true);
adView.loadAd(request);
iam getting the ads but when i set it to
requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to set screen brightness on android phone I am trying to set the screen brightness but when I try and get the current window with this.getWindow() I get null. Why is this? I will post all of my code in my setBrightness() method.
System.putInt(getContentResolver(), System.SCREEN_BRIGHTNESS,
brightn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Write non ASCII char with PhoneGap Javascript Image Here is what I'm doing :
In javascript I ask for an image with AJAX.
The server php execute the following code :
readfile($pathfile);
Then the javascript receive the data, and with Phonegap I try to write it to a file :
var writer = new FileWriter();
writer.fileNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook Javascript SDK window location reload not working on Firefox I'm building a website with Facebook Connect and therefore using the Facebook Javascript SDK.
Problem: when using Firefox, the page doesn't reload properly once logged in or logged out.
FB.Event.subscribe(
'{% if current_user %}auth.logout{% ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: sugarcrm report In Sugarcrm Reports , How to Show opportunity amount in the user entered /actual currency, rather user preference currency. Struggling to find solution, any hint or help would be great helpful
A: Please tell whether you are using Sugarcrm Edition Or Professional. and if You are using edition then wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: COleDateTime alternative for linux Good Day.
I have to make a C++ project Linux compatible. In the existing Project some old MFC functions were used. I am searching for a substitute for the COleDateTime wrapper. Does a alternative object exist for Linux or do I have to implement my own wrapper? (examples would be ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Press and release a key with Linux I'm trying to make a little program that types for a user, using c++. I've found the method keybd_press(...) but it seems as though that only works with the Windows header. Any way to achieve this in Linux? Basically what I want it to do is emulate a key being pressed for me, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to connect Database Thanks for previous replies
How to connect mysql to zend framework. i created table in mysql. i used
$config = array(host' => 'localhost',username' => 'userName','password' => 'sqlpass',
'dbname' => 'databasename',$db = Zend_Db::factory('PDO_MYSQL', $config);
print_r($db->fetchAll(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kohana 2 ORM: ->with() for has_many relations We have a table for articles, and a table for locale data for articles.
class Article_Model extends ORM {
protected $has_many = array('article_translations');
[...]
class Article_Translation_Model extends ORM {
[...]
'articles_translations' table contain 'article_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7553063",
"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.