text stringlengths 8 267k | meta dict |
|---|---|
Q: Wordpress: Parameter for Shortcode function I am trying to create a shortcode in Wordpress, in which the function that is called with the shortcode tag gets the shortcode tag as parameter.
So say I have
<?php
var $shortcode = 'my_shortcode_tag';
add_shortcode( $shortcode, 'my_shortcode_function');
?>
then I want 'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate a Webservice Client in IntelliJ IDEA? I have to set up a connection to a webservice that I don't own, all I have is a link to the WSDL file. The webservice has only one method, and I need access to it. I'm trying to use the standard "Generate Java Code from Wsdl or Wadl" (or create New->Web Service... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cognos like cubes What are the various options to have a cube designer in Java other than Cognos?
Basically I need to see a multi-dimensional cube and the user must be able to select the columns to filter by.
A: You probably want to take a look at Pentaho
It's a very comprehensive BI solution, open source, Java bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: error: requestFeature() must be called before adding content - Still won't work I know that similar questions have been asked in the past but I can't seem to get this working at all even with the suggestions.
I get the above abend on the "show()" command.
public void onCreate(Bundle savedInstanceState) {
try{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how can i pass perl variable in sql file in perl script here i have 3 variable in perl and i m passing those variable in one db.sql file in sql query line then executing that db.sql file in same perl file but it's not fetching those variable.
$patch_name="CS2.001_PROD_TEST_37987_spyy";
$svn_url="$/S/B";
$ftp_loc="/R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable scrolling the webview
Possible Duplicate:
Disable UIWebView default scrolling behavior using objective-c
I want to disable my webview scrolling, I have checked all property but I could not find any property which is useful for me , if this is possible please help me.
Thanks.
A: Check this code which ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check if data is being sent to a Port with C# UdpClient I have a program whereby Data is being sent from one computer to another via UDP. The problem is that data may not always be sent by the sending program and I want my receiving program's receive functionality to be enabled ONLY when something is being se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Visitors counter I am creating a counter for my webpage. What wan't to achieve is that every time user visits my asp.net application, it stores his data into database. I am using Global.asax and event Application_Start. Here is my code .
protected void Application_Start()
{
AreaRegistration.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AutoTab to Next TabPage in TabControl C# .Net fw 3.5, in winform in TabControl,
when the user tab out of the last control on a TabPage, then focus should moves to the next page, and focuses the first control in that page, how can i do it?
this is necessary for me because, in a master entry form, there is some compu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does (array) do in php? Does this code do anything? Somehow I made a mistake and wrote this code. However, this mistake turned out to be a boon. This solved my problem :D
$arr_centres = (array) $centres_array[0];
But I want to know what this does. The centres_array is like this:
stdClass Object (
[ExampleCent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharing layout information between Jade and Javascript I have a Node.js/Jade-based site and I'm trying to add some interactivity with some simple bits of Javascript.
In particular, I'm trying to set up a button that adds a new row to a table.
The table rendering is currently done in Jade, and I'm planning on using J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access id of control from ascx page to cs page This is my ascx Code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Demo.ascx.cs"
Inherits="Demo" %>
<asp:HiddenField ID="hidden" runat="server" Value="" />
And the aspx:
<%@ Register TagName="Hidden" TagPrefix="CRS" Src="~/Demo.ascx" %... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: hOW can i add external jars in my build.xml hOW can i add external jars in my build.xml.
i am getting compilation error while running my build.xml.some jars are missing.how can i add them in my build.xml.
my build.xml looks like this
<project name="HUDSONSTATUSWS" default="dist" basedir=".">
<description>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get DateTimePicker checkstate value of DataGridView? I have a DataGridview in which there is a DataTimePickerColumn, and it's DateTimePickerCell contain checkstate. How do I get the checkstate value after editing the checkstate?
A: Create a control inheriting from DateTimePicker and handle the DTN_DATETIMECH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Having a GPS location and my GPS location, ¿how to calculate the direction (0-360º from north) to the location from my location? I tried to do with BearingTo(), but i don't know how to use it. myLocation.bearingTo(BuildingLocation) gives me 0º if i am facing the Building and North direction, gives me 90º if i am fac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to parse SOAP XML in ruby? <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://extranet.mcs.be/DEV_QUALITY_API/modules/quality/services/soap/quality.php"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Questions about Sencha Touch I have done some project using Sencha Touch -> www.estof.net/sencha (php + sencha). I want to ask you guys some questions:
a) I want to create app using sencha and upload to iPad. My app will work only if i connected to wifi or whatever internet?
b) For example i did some application, dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Codeigniter Signup Controller code review I just started using a MVC framework, especially Codeigniter and i am having some trouble maintaining my code and where to place my functions(controller or model).
For now i am building a sign up system and i have a controller with the name signup.php
This is my code:
<?php ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RESTful route add new post method My routes file looks like this one with my new restful post action:
resources :projects do
post 'addpartner'
end
And in my view:
<%= link_to '[Add]', project_addpartner_url(@project,partner) ,
confirm: 'Are you sure?',
method: :post %>
Now the problem is project_add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: storing records in mysql db in sorting order of date I want to store some records in mysql database. records have a date column. i want to store them in sorting order of that date column.
For example, record having date 27/sep/2011 get stored as first row on the top of record having date 26/sep/2011 as:
id_1,name_1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Horizontal navigation does not appear in a horizontal line in another machine Hello I have a django app which has a horizontal navigation. What happen recently, I decide to connect from my windows machine to use my app. This is what my horizontal nav looked like below.
For some reason, backup data and help are mov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple collisions not working I am experimenting collision detection using onTriggerEnter. On collision with other object(tower) direction changes and object moves. I have created one more similar object (tower) and placed both far from each other. Now for the first collision it is working fine, but at other colli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hide div on clientside click Trying to get this div to disappear, does not seem to doing what I expect it to do, where am I going wrong?
It does not disappear.
Javascript:
<script type="text/javascript">
function Show_Hide_Display() {
var div1 = document.getElementById("checkAvailability");
if (div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to efficiently filter datetime column for extracting data? I am usng sqlite to log data every 5 minutes to a column that is time stamped with and integer in Unix time. The user interface uses php code to extract data in various user selectable time frames which is then plotted using javascript. Charts typically ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the syntax enabling patterns in C#? There are several pattern-features of C# language, i.e. classes need not derive from a specific interface; but rather implement a certain pattern in order to partake in some C# syntax/features.
Let's consider an example:
public class MyCollection : IEnumerable
{
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Displaying image in MFC method that is not ONPaint I am trying to display an image in a dialog dynamically, it works no problem if I put the code in the on paint method and use the dc from there, I can't do this though I need to display after the window is shown, the code I am using is as follows, I am getting the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to release property of static class i have a static class witch has two property,like below ...
@interface Global : NSObject
{
BarcodeScanner* scanner;
NSInteger warehouseID;
}
@property(assign) BarcodeScanner* scanner;
@property(assign) NSInteger warehouseID;
+(Global ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a Spring form:checkbox to readonly using javascript I want to make spring form:checkbox tag to readonly using java script. I can make it to disable using
document.getElementById('id').disabled = true;
But then it doesn't set value to command object.
A: A disabled form input field is indeed not submitt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Restoring animation where it left off when app resumes from background I have an endlessly looping CABasicAnimation of a repeating image tile in my view:
a = [CABasicAnimation animationWithKeyPath:@"position"];
a.timingFunction = [CAMediaTimingFunction
functionWithName:kCAMediaTimingFunction... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Cannot validate xml against a xsd. Error "cvc-elt.1: Cannot find the declaration of element 'systems'" I am having trouble validating an XML using an XSD via code. I can't figure out what I'm missing
XML:
<?xml version="1.0" encoding="UTF-8"?>
<systems xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transfer Resources to fresh installation I have live website running on MODx Revolution 2.1.3pl. Some days back I had to restore my entire site from backup. This messed up some file ownerships (for packages installed and images uploaded etc.) because in my server PHP runs as 'nobody' user which is different from my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse+FindBugs - exclude filter files doesn't work I'm using Windows and Eclipse 3.7 Classic with ADT plugin for Android development.
I've just installed FindBugs and it have found a bug in auto-generated R.java class.
I want to exclude this class from FindBugs checks.
I've found that I can define exclude filters ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to run background service on web application - DotNetNuke I made dnn scheduler and set to run it on every 1 min. It works when I do something on site. But I need to run some actions when I am not on the site. For example insert record to database with currenct time. Is this possible?
A: In Host Settings, use Sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Map View on Tab Bar project I've got a tab-bar project in Xcode 4 and I'm trying to implement a map view on one of the tabs.
I've followed this tutorial: http://www.youtube.com/watch?v=ZrePrrHgXYA but I'm getting an error: Program received signal: "SIGBART" whenever I click the tab.
How come? Is it because the tutor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP unsetting all variables with 'tmp' at the front I'm simply looking to loop through all current session variables and if the session variable name begins with 'tmp' then I want to unset the variable.
I would do it as follows:
foreach($session as $sv){
if(substr($sv,0,3)=='tmp'){
unset($sv);
}
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Splitviewcontroller with two tableviews, delegate problem I have, what seems to be a basic requirment. I am making a splitview iPad app using xcode 4's template. I want my root view controller to be a table view populated with languages and my detail view to be another tableview that gets re-populated every time the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Different DataTemplates in one TreeView? is it possible to use two different DataTemplates in one WPF TreeView?
Maybe the first and second flat with yellow Background and the thirt flat with red Background.
Where is the right place for the distinction - in Code or in XAML?
Thanks for your ideas.
A: Different temp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loading Dialog Box for Webview This things sending me crazy. My app loads webview and shows a loading dialog on the initial load. I want the loading dialog to appear each time a link is clicked or each time webview is loading. This is not happening.
Eclipse tells me onPageStarted() is not used locally, although onPa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Join columns with certain values (and replace) Consider a table that looks like this:
**************************
* Col1 *** Col2 *** Col3 *
--------------------------
* 0 *** 1 *** 0 *
* 0 *** 0 *** 0 *
* 1 *** 1 *** 0 *
* 1 *** 1 *** 1 *
**************************
How could I j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How is new application launched on Mac? I am looking for process & a system call which is responsible for starting every new process on Mac.
I believe it should be something like CreateProcess() and which returns process id of newly created process.(This is a guess)
I am interested in internal details like a flow r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the cheapest way to build an Erlang server farm (for a hobby project)? Let's say we have an 'intrinsically parallel' problem to solve with our Erlang software. We have a lot of parallel processes and each of them executes sequential code (not number crunching) and the more CPUs we throw at them the better.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Boost PropertyTree: check if child exists I'm trying to write an XML parser, parsing the XML file to a boost::property_tree and came upon this problem. How can I check (quickly) if a child of a certain property exists?
Obviously I could iterate over all children using BOOST_FOREACH - however, isn't there a better so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Micro-benchmark comparing Scala mutable, immutable collections with java.util.concurrent.* collections Are there any published micro-benchmarks that compare the Scala mutable and immutable collections with each other and the collections in java.util.concurrent, in multi-threaded environments? I am particularly inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: initialisation of const member of base class into derive class public:
const int x;
base():x(5){}
};
class der : public base {
public:
der():x(10){}
};
der d;
My aim is when instance of base class is created it will initialise x as 5 and when instance of der class is created it will initialise x as 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to Get Correct co-ordinates after zooming? im using finger paint turtorial with
class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {
@Override
public boolean onScale(ScaleGestureDetector detector) {
mScaleFactor = detector.getScaleFactor();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to merge two excel files into one with their sheet names? For merging of two excel sheet, I am using below code.
using System;
using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
namespace MergeWorkBooks
{
class Program
{
static void Main(string[] args)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cast List to List I'm writing a piece of code in java and would like to encapsulate my object and only return interfaces.
Now in short this is my problem I have a class containing a list, and I have a getter which returns a List. How can I return a list of the interface ?
Without getting this error warning :
List is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Django, can I exclude a field in ModelForm sub-subclass? I have a “generic” InternForm that inherits from ModelForm and defines common messages, widgets, etc.
I defined a subclass called ApplyInternForm for application form that is accessible to everyone and I want to hide some of the “advanced” fields.
How can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to implement unscrollable header for UISplitViewController RootViewController? What it did in RootviewController of UISplitViewController -
UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 0)];
[searchBar setPlaceholder:@"Search with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gridview Dynamic linkButton event not fired I'm creating a GridView with dynamic controls(including itemtemplates).
Here is the html code.
<asp:GridView ID="gvItems" runat="server"
AutoGenerateColumns="False" CellPadding="4"
GridLines="None"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TextBox Column In DataGridView I have added TextBox control inside the grid: I want my DataGridView TextBox column to hold numbers without any decimal values. How can I do it?
A: From: http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/919b059c-dba9-40d2-bac7-608a9b120336
You can handle the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Start windows service automatically when system reboots I have installed a windows service in a server with automatic mode.But when system reboots its not starting automatically.It is still in start state only. Manually i am starting the service. Please suggest me how can the service get started when system reboots.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass generic parameters to multiple delegates. 2 Delegates with generic parameters I have a method which accepts two delegates as parameters.
method1(Delegate delegate1,Delegate delegate2,params Object[] parameters)
{
// There is lot of other code, I haven't put here. To make it clear.
string key = d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Python String Formatting with Lists I construct a string s in Python 2.6.5 which will have a varying number of %s tokens, which match the number of entries in list x. I need to write out a formatted string. The following doesn't work, but indicates what I'm trying to do. In this example, there are three %s tok... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "139"
} |
Q: Using Maven, how do I run specific tests? I have thousands of unit tests in my project, and I'd like to choose one or a couple of them to run from the command line. What's the command to do that?
A: Please read this piece of the maven surefire plugin manual. Basically you can do the following:
mvn -Dtest=*Performan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: My custom javascript is conflict with sharepoint javascript (sharepoint 2010) I am using custom javascript file([mootools-1.2-core.js][1]) in custom application page in sharepoint(2010).I get type mismatch error in wpadder.js(Sharepoint Javascript file which resides in 14/layouts).Could anyone provide a solution fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i test www to non-www forwarding? I'm using html5 boilerplate and I'm trying to test if my htaccess is working properly. When I type in www.domain.com into chrome or firefox it does not redirect. I'm thinking maybe this is just some browser gimmick though, similar to how Chrome hides the http:// even though i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a UIView from NIB I have created a custom class that subclasses UIView. I want to do my layout in IB, so have set outlets. The problem is how do I initialise my view so that I get it from the NIB? Any help would be greatly appreciated.
A: Something like this:
UIView *info = [[[NSBundle mainBundle] loadNibNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Oracle group data I have table, MyTable, in Oracle 11GR2:
COL1 VARCHAR2
COL2 VARCHAR2
COL3 VARCHAR2
COL4 NUMBER
with data
COL1 COL2 COL3 COL4
A B C 1
A D E 2
F G H 3
F I J 4
K L M 8
How do I get results with SQL:
COL1 COL2 COL3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Deleting local commit when is calling git pull I've made a commit with an error (program isn't compiled) and after made: git push (I).
My colleague done: git pull (She)
and got uncompiled state of repository. After that added some commits (about project documentation - for the compiling wasn't critical) and done aga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery animate slider onClick event I am creating a slider using jquery animate function. The first image is moving to left and is working fine.But the next image is not quickly following the first image. It displays a blank screen for a while. This is what I have tried so far:
$('.next').live('click',function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: observer design pattern question i am creating a oop system in php and would like to implement more observer patterns into it as i have heavy coupling between my classes that i wish to reduce.
my question is this.
in relation to best practice in design for this pattern is it ok for one class to add an observer to an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way of coding DWR based classes? What is the best way to code DWR (Direct Web Remoting - Ajax for Java) based logic in a web application?
I have listed 3 types of disciplines.
*
*Use of single class to code DWR based implementations
eg: For all scenarios use DWRUtil.java (contains all logic r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android toast class parameter I had doubt in android Toast class. We have a static method in android called makeText
and have to use it as
Toast.makeText(Context context , CharSequence text, int duration);
and we can use getBaseContext() as one of the options among getBaseContext() , getParent() and getApplicationC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Image/Text Pulsating Glow Effect (Graphics) How would I make an Image have a pulsating effect to it? I already know how to draw an Image to the screen, so I just need to know how I can add a pulsating glow effect. Would I need to use tons of threads?
Also, how would I make some text have the same pulsating glow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery DatePicker Some Display Changes I am using the jquery datepicker. I have to change some display showing the calendar.
I don't have enough reputation to post an image so i have posted in jquery forum. Kindly look over it and guide me and how to implement this.
A: IF you simply want to show the current month p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting value from JS to PHP
Possible Duplicate:
How to pass value from Javascript to PHP and get return of PHP back to Javascript
how to get value from
JS:
var vars="";
and add it into PHP
$vars="";
Vars contains only digits.
A: You'll have to send that variable with ajax or another kind of request to your se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Eclipse+Vaadin: Could not start XULRunner (version 1.9 or higher required) When I am trying to open java file with Vaadin Editor, I am getting the following error:
Could not start XULRunner (version 1.9 or higher required)
OS: Windows 7 Prof x64
Eclipse: Indigo
XULRunner: 6.0, it is just unpacked into some folder, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can one change the name of a tag? I have made a tag in mercurial:
hg tag release_123
Later on I found out that the name was wrong, it should be release_124. Is it possible to simply rename the tag or do I have to create a new one?
A: You should be able to edit regular tags in the .hgtags file (and commit it)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how to add dynamic button to push notification alert box and redirect to the desired UIView in iphone? I have a task to create application with push notification when the notification send at that time it redirect user to the different user page without login in the application.
I have to work with the local notific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Missing dlls on 64 bit Win I have a .net application that uses some vc++ compiled Win32 dlls. It works great on a 32 bit Win, but on 64 bit there is a problem: "Unable to load DLL 'xyz': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Using dependency walker I found it misses the follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Problems using URL Rewrite in IIS7 for friendly URLs I'm trying to make some rewrite rules in my IIS7 server using URL Rewrite.
For example, I have the url mydomain.com/data.php?id=1 and I want to convert it to mydomain.com/archive/1
Currently I have:
<rule name="Ugly to friendly" stopProcessing="true">
<matc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding Listbox/CheckedListBox's SelectedValue using ObjectDataSource when Multiselect is enabled I do not have code at the moment for explaining my question in the best way. So there might be some syntax mistakes, might leave some datasource related binding.
Scenario.
I have a class as Customer that contains some o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to send a Int[] to an Oracle Stored Procedure using OleDb Is it possible to send an int[] from a c# application using OleDb to an Oracle Stored Procedure?
I was wondering if there is a specific way of setting up both c# OleDbType and the type in the Oracle stored procedure. At the moment I am using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Editable Console Output Here is a portion of some code I am trying to write:
//Choice Based Menu
#include <iostream.h>
#include <conio.h>
int main()
{
char choice;
cout<<"Menu"<<endl<<endl;
cout<<"A. Option A"<<endl;
cout<<"B. Option B"<<endl;
cout<<"C. Option C"<<endl;
cout<<"Q. Quit"<<endl;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Stored procedure reading xml, any way better to do it? SQL SERVER 2008 I do something like this:
CREATE PROCEDURE [dbo].[InsertStudents]
(
@students nvarchar(max)
)
AS
DECLARE @studentstable TABLE
(
RowIndex int,
FirstName nvarchar(50),
LastName nvarchar(50),
Number nvarchar(20),
IdSchool int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get the document id of all documents in couchdb database I have a simple question, How should I retrieve the document ids of all documents from a given database in couchdb.
I have written this code which retrieves all the documents-
docs=CouchRest.get("http://localhost:5984/competency1/_all_docs?include_docs=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I maintain focus on text box being validated without locking other text boxes? Here is an example of a validation method I am using:
if(currentFieldCategory=='e')
{
var atpos=currentFieldValue.indexOf("@");
var dotpos=currentFieldValue.lastIndexOf(".");
if (atpos<1 || dotpos<atpo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What broadcast / multicast method should we use? We are creating a mobile App that will benefit from knowing the ID of another entity on the same network (presuming the two mobile phones are on the same WiFi network).
We would like the “master” App to send out an ID that the “slave” App’s can pick up and store. Rega... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running Android application on device via ethernet I have a problem concerning my Android device. I use a ethernet cable to connect my Android tablet to my PC. I don't see any new devices detected by my PC. Is there some configuration which needs doing? Additionally, how can I run my app on device itself using Ecli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: saving images in documents folder with high resolution in iphone I want to save image which is draw on iphone screen in the documents folder with high resolution. Here I am able to save images in documents folder but the resolution is very low .
Can anyone tell me how to achieve this task.
Here is my Code
UIIma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Type error in application I'm trying to get this piece of haskell code to work, however I keep getting this error message:
> ERROR file:.\4.hs:9 - Type error in application
> Expression : fact n div (fact m * fact (n - m))
> Term : fact
> Type : Int -> Int
> Does not match : a -> b -> c -> d
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the advantage and use of prepared statements in PHP
Possible Duplicate:
PHP PDO prepared statements
prepared statements - are they necessary*
Recently, heard about php prepared statements. Nearly all hi-rep php developers use php prepared statements. Can anyone explain me what's the main advantage and use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to count the number of rows when using SQL joins and group by I have the following query:
SELECT a.HotelID,a.Hotelname,GROUP_CONCAT(DISTINCT b.OperatorName) AS Operators
FROM hotels AS a
INNER JOIN operators AS b
ON a.HotelID = b.HotelID
GROUP BY a.HotelID
ORDER BY a.HotelID
LIMIT 100
I need this query for a si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use Log4Perl across modules in Perl? I'm planning to use Log4Perl in my modules for logging.
My code structure goes like this
I have Start.PL which validates some parameters. I have several modules (PM) file which are interlinked (used across these PL and PM files)
I have a Logger.PM in which I have a met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can the expect script continue to execute other command after "interact"? I am writing a script to run ssh so as to login a remote host, after all the operation is done, I type exit and log off. But I want the script to continue running and write log on the local host. The script is something like:
#!/usr/bin/expect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Slicing an Array I am having trouble finding a matlab function to slice an element out of an array.
For example:
A = [1, 2, 3, 4]
I want to take out on element of this array, say the element 3:
B = [1, 2, 4]
Is there a matlab function for this or would I have to code the algorithm to construct a new array with all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP output in the textfield/text i have a little problem about PHP
there is two input for num1 and num2
and another input answer,,can the output in the php be putted in the input text answer??
<input type="text" name ="num1">
<input type="text" name ="num2">
<input type="text" name ="answer">
A: <?php
//get the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2010 settings file location I've got a small problem concerning my settings and a virtual machine. Recently I setup a VM so that I can perform clean checkouts and builds of the code once every week or so. However, my documents folder lives on the company network (thanks IT department!) so my settings... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Compare NSString with Chinese letters ios Does anyone know if it works well to compare NSStrings with chinese letters?
A: Yes, it works well.
NSString *chnString = @"中文, 汉语";
if ([chnString isEqualToString:@"中文, 汉语"]){
NSLog(@"Equal");}
else
NSLog(@"NOT Equal");
if ([chnString isEqualToString:@"中文, 汉"])
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Insert if there are available rooms using mySQL If in a mysql table RESERVATIONS there are ROOM_NUMBER, DATE_ARRIVAL and DATE_DEPARTED
With this I find the today free rooms
SELECT RPOM_NUMBER
FROM RESERVATIONS
WHERE (CURRENT_DATE() < DATE_ARRIVAL) OR (CURRENT_DATE() > DATE_DEPARTED)
How do I insert a record in R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between @Inject and @Autowired i am just wondering what is the difference between @Inject & @Autowired
when to use each one ?, or they are doing the same thing ?
and if i have a spring bean which have a scope:
@Service
@Scope("singleton")
can i make dependency injection for it with both with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Some problem with NumberFormatter -(void)textFieldDidEndEditing:(UITextField *)textField
{
if(textField == self.nameField)
{
self.movie.name = self.nameField.text;
}
else if(textField == self.summaryField)
{
self.movie.summary = self.summaryField.text;
}
else if(textField... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress: Strange whitespace under Admin bar I'm creating a Wordpress theme from scratch, and so far everything's going well (it's my first time). However, underneath the admin bar I have 18 pixels of whitespace that wasn't in my static HTML page before Wordpress-ing it up. See below for a screenshot:
The blue par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is this setTimeout not working & related question inside I have this script on a page of mine and the setTimeout function never fires. It's just an alert right now but i'm just testing it out. I'm doing a meta refresh on the page just after it if that's any clue, but i've also given that a 10 sec delay so the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Escape strings by array of chars I have a js simple array.
array('p','(',')','?');
According to that array values i need to escape strings in js, how can i do that?
for example string is = 'hey?' and in escape array i have '?'
A: Something like this should work:
//for old browsers...
Array.prototype.indexOf = Arr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSF Primefaces:redirect to specific page on p:tab click I would like to utilize p:tabView for horizontal site menu.
When tab is clicked,that user should be redirected in non-ajax style to the specific page.
Is it possible to inject to each tab (e.g. inside p:tab tag) href link ?
Or there is already some alternative ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Benchmarking symmetric and asymmetric cryptography In order to integrity protect a byte stream one can conceptually either use symmetric cryptography (e.g. an HMAC with SHA-1) or asymmetric cryptography (e.g. digital signature with RSA).
It is common sense that asymmetric cryptography is much more expensive than usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I extend clojure.contribs json writer to serialize other classes I need to create JSON objects from clojure maps that store things like clojure vars. The base implementation throws this kind of error when it sees them:
java.lang.Exception: Don't know how to write JSON of class clojure.lang.Var
Can anybody po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data manipulating environment I am looking for something* to aid me in manipulating and interpreting data.
Data of the names, addresses and that sorts.
Currently, I am making heavy use of Python to find whether one piece of information relate to another, but I am noticing that a lot of my code could easily be substi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7568783",
"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.