text stringlengths 8 267k | meta dict |
|---|---|
Q: c# TempData equivalent in php I know I can explicitly set and unset a Session manually but I believe this is worth to ask. In c#, there is a dictionary called TempData which stores data until the first request. In other words, when TempData is called, it is automatically unset. For a better understanding here is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: uninitialized constant Spec::Rails (NameError) when running spec command I get the following error when trying to run a spec command on a model test.
The command is:
C:\Rspec Test\spec\models>spec bank_account_spec.rb
The error is :
c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-rails-1.3.0/lib/spec/rails/matchers/
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Zooming problem in UIScrollView I am using UIScrollView.In that scrollview I placing UIImageViews in serial order.Zooming is not working .This is my code
- (void)viewDidLoad
{
self.view.backgroundColor=[UIColor blackColor];
NSArray *imageArray=[[NSArray alloc]initWithObjects:[UIImage imageNamed:@"test1.png"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Property on static resource converter not bound I have a value converter with a property I would like to bind to, but the binding never happens, i.e. the dependency property in my value converter always is null.
Background: I want to bind an enum to a combo box but have control over the text that is being displayed.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP extending mysqli_result I have a problem with extending the mysqli_result class.
I am trying to extend the mysqli_result class with a custom class.
Here is my code:
class mysqli_result_extended extends mysqli_result {
public function GetJSON() {
blah blah...
return $json;
}
}
$db = new my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate the number of time i select a particular row in a tableview UITableViewDelegate has a method to identify which row i select in the tableView.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
But how can i know which row i have selected how many times?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serialize data using jQuery I'm looking to improve my jQuery code.
The piece of code is submitting data to another PHP page for processing.
At the moment I'm taking data submitted from a form, and taking data from a custom data attribute from the page.
Here's the code
// Add new comment to nit on comment.php page
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS3 transform an element but not its descendants I have an horizontal menu and I want to rotate 90° left or right some of its tabs.
Problem is that the transform property also rotates descendants.
It looks difficult to put them back in place, is there a solution?
P.S. I want to avoid using images or JS, they are ok... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: getting the error while creating the project in blackberry I am using the blackberry application and I am getting the error while creating the project in blackberry
Error:
InvalidRegex: Pattern value
'([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid regular
expression.
The reported error was:
''-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validate XML Schema in Android I need to validate some xml files in the resources of an Android application against an XML Schema. Although there is an available API to create instances of SchemaFactory, there seems to be no implementation for XML Schema, as stated by the answers to these questions: 1, 2 and 3.
Are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Easy to setup, multi-threaded server for my Django Piston API I am writing an API that reads from MySQL and Solr (which can give latencies of 150ms) to provide formatted output. I will be hosting this on a VPS, and I need to choose a web server for this application. It will be used only within localhost (and local L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Language Converter I have a script I'm using to convert English text to other spoken languages, and I have a php code handling it like so.
ini_set("max_execution_time", "300");
header('Content-Type: text/html; charset=utf-8');
require_once('googleTranslate.class.php');
$gt = new Google_Translate_API();
$title ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Very Basic question on Unit Testing I have a class like this -
public class MyClass : ISomeInterface
{
public MyClass(string connString)
{
// set conn string on a private member
}
// interface methods
public CreateDb(string dbName) {...}
public DropDb(strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error: unknown type name while compiling dbus i have a c-file containing some dbus stuff and implementing the dbus.h. this is working fine so far. now i intent to split my c-file in a c-file and a header-file. but now - the compile process failes with:
gcc -o dbus `pkg-config --cflags --libs dbus-1` dbus.c
In file i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem when default page is MainPage.aspx not Default.aspx I have very strange problem. I'm using IIS 7.0 Integrated mode for my application. (pool is ASP 2.0 integrated)
It's working fine when i type www.xyz.com/MainPage.aspx. But when i used simple www.xyz.com then its not working.
I always get this error
The re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to log off all users who are logged in to my site-php hi is there a way I can unset the sessions of all the users who are logged in to my site. I need this for my admin panel, wherein we might want to logout all the users loggedin while we put up the site for maintenance.
Edit: The Sessions are stored on the fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How may I get a DataVisualization.Charting Chart to render only the added points, for fast refresh? How may I get a Line-style DataVisualization.Charting.Chart holding many points to render only the points that have been added since the last render, in order to decrease the refresh time?
I have a real-time line Char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with reiterating BASE URL I somehow messed up my htaccess file which altered my website base URL. The htaccess file is in my public-html directory. My web site URL is supposed to be: http://voidnow.org
I was trying to redirect traffic from voidnow.org to voidnow.org/community, but, I obviously messed it up, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Array and ArrayList When I try to create an ArrayList myArrayList from an array, using Arrays.asList(myArray), I am not getting the List of elements in myArray. Instead I get list of Array.
The size of myArrayList is 1 . When I try to do myArrayList.toArray(), I am getting a two dimensional array. What to do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to setup capifony + amazonec2 I'm following the instructions to setup capifony. Now I'm in the step 4 to setup the production server. This is my configuration file:
# deploy.rb
set :application, "MyFirm"
set :deploy_to, "/var/www/myfirm.com"
set :domain, "dev.myfirm.com"
set :scm, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to edit EditText and TextView in UI simultaneously I'm implementing a simple chatting application which has a TextView for text messages and a EditText for input.
I update my TextView by following method:
private void addChatContent(String authorName, String content){
final String newLine = authorName+" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Difficulty using JAPE Grammar I have a document which contains sections such as Assessments, HPI, ROS, Vitals etc.
I want to extract notes in each section. I am using GATE for this purpose. I have made a JAPE file which will extract notes in the Assessment section. Following is the grammar,
Input: Token
Options: con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to set the id of h:selectBooleanCheckbox dynamically? I have
<wai:collectionIter value="#{listModel.listRows}" valueVar="listRow" odd="odd" even="even" styleVar="rowStyle">
<tr class="#{rowStyle}">
<td>
<h:selectBooleanCheckbox value="#{listRow.rowSelected}" disabled="#{detailModel.readOnly}">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ffmpeg - compilation problem with g++ I am trying to run a program which uses ffmpeg libraries to decode a mp3 file. I am using following options for compiling the program:
g++ -c play.cpp -o play.o
g++ -o play play.o -L/usr/local/lib -lavutil -lavcodec -lavformat -lavdevice \
-lavfilter -ldl -las... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a maximum for UIScrollView contentSize? I'm developing a small iPad-app with a Ganttchart which will show Events in the last 25 hours. I have 5 zoom levels each for 1 hour, 30 min, 15 min, 5 min and 1 min. My cells are 30 pix in width. Starting with the hourly Zoomlevel i have 25 * 30 pixels = 750 width for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to change image boarder to circle I have to use Image as Notification.For that Image boarder should be in elliptical shape.can any one help me to change my image boarder as a circle.
I have mentioned an sample image 10 should be an image component.how can i get circle shape for it.
Thanks in advance.
Yours Rake... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I use Error Handling Application Block for WPF Unhandled Exceptions? After I catch an unhandled exception via Application.DispatcherUnhandledException or AppDomain.CurrentDomain.UnhandledException, how should I use the Enterprise Library Error Handling Application Block to do the handling? Can anyone demonstr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to configure where NuGet.exe Command Tool line looks for packages We have successfully set up a couple of local package repositories using the NuGet.Server package and hosted them on a local IIS webserver. We are able to connect from the Package Manager and install no problem. So these are working fine.
In order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c++ serialization options I'm working in a project where I'm writing a plugin for a particular package.
This package implements a "new" method in one of its headers, and as such, I am unable to include <strstream> as it also implements "new".
The package sdk also includes a thinned out and very old version of boost,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I configure VIM so that files with extension .less are edited with zen-coding? How can I configure VIM so that files with extension .less are edited with zen-coding?
I can use within the zencoding notepad + + on windows normally. But now I want to use the same way inside vim.
A: ZenCoding is probably activa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to hide/show fragment defined in xml I have been trying to hide/show fragment and add another fragment.
This is xml
<FrameLayout
android:id="@+id/frag_content"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
class="com.tugce.MitsAc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Lua create array by code I've been trying to get me a array like this:
["Some String"] = true,
["Some other string"] = true
etc
by using code.
I havn't got any clue on how to create a array. i've tried:
local tempArray
tempArray = {}
tempArray["Some String"] = true
but this doesn't work, it sais tempArray = nil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get modifier keys, which have been pressed while starting an app / applescript I need to get a list of keys (e.g. the shift key, alt, command ...) which have been pressed when i started an app, especially an ApplesScript on Mac OS X.
A: See post #5 by StefanK at MacScripter / Tiger shiftKey detect error. He wrote a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Log4j: How to configure multiple appenders: one directed to the console and a file and the other strictly to a file? For my application, I have managed to configure log4j to generate multiple logs.
Both of the appenders output to the console and to a file. But since the first log is my main log, I feel that this lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange session behaviour in Google Chrome for Twitter OAuth for some strange reason in Google Chrome one of my scripts is having serious problems. I'm setting up a page that requires twitter/facebook connections. Basically what you are doing is:
*
*visit page (Facebook+Twitter class are started, some session set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does InetAddress.isSiteLocalAddress() in Java source code always returns false I was checking the source file of java.net.InetAddress Class and found that few methods always return false. For example
/**
* Utility routine to check if the InetAddress is a site local address.
*
* @return a <code>boolean</code>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using QApplication with command line arguments QApplication::QApplication ( int & argc, char ** argv )
Initializes the window system and constructs an application object
with argc command line arguments in argv.
Warning: The data referred to by argc and argv must stay valid for the
entire lifetime of the QAppl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to control conversion error with struts2 i've got a form with 3 fields, two String (one select and a text field) and an int. When i put a letter or something else than an int (52.4 or aaa) in the field i got an error that i cannot "catch", my select disapear and on the message box i ve got a message from my vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to Store Multiple Options selected by User in a Table So I want my users to be able to restrict who may contact them.
There are several factors they should be able to filter, including Age (e.g. Must be between 18 - 29), income (must earn between $25,000 - $60,000), what they're looking for (e.g. Friendship, Han... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP - converting XML to array in PHP - parsing a soap xml in php and storing it in database I want to convert a soap xml response and store it in a database. Here is the XML that I have.
<ENV:Envelope xmlns:ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://example.com/soap/example">
<ENV:Body>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scroll through tabellayout doesn't work in Android I'm trying to make my tablelayout which is nested in a relativeview scrollable.
Tried a couple of tutorials but nothing worked. Here is the xml and my java code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Model Between Silverlight Views Since the basic navigation mechanism in Silverlight only allows passing arguments in a querystring, when we want to pass complex data (e.g models) between our views, we use the IEventAggregator's pub\sub mechanism.
But the question is - is there a better way to pass complex ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload word file with cfinder integrated into ckeditor Is there a posibility to upload a file with ckfinder when integrated into ckeditor? I'm trying to upload a word document and insert the link into the text that is currently edited in ckeditor, but i can only upload images and flash files. Is there a way to brows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to attach a submit listener to all forms without jQuery I need to attach a submit listener to every form in an iframe but I can't use jQuery.
What's the best way of doing this? I'd rather not use window.onload because that requires waiting until the images have loaded which may take time. Obviously, $(document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java : How to draw graphic object? I am developing a small desktop application in Netbeans. The application is complete and working fine. A small description of application is as follow:
The application is basically an object manager, where user add new object, remove old objects and connect object with each other. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to take screenshot programmatically on Android? I want to take a fullscreen screenshot programmatically ,
for example, one of the android home screen or a menu.
How can I get a view of the home screen in my application?
I want to take it programmatically!!!
It doesn't matter if it requires root mode!
Help me ple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Creating 20 objects in a loop I need some newbie help.
So basically im trying create 20 individual objects (players). Each player has a name , age and height.
Instead of writing 'Person *player = [[Person alloc] init];' Twenty times, I have made a loop.
I think the loop has worked because the [myArray count] has 20 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to show html formatted content (without image) in a winform? I want to show html formatted string in my winform application. What control should I use?
A: If you just want "simple" HTML formatting (e.g. underline, bold, text color, etc) you could use this custom control from Oscar Londono on code project: http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: WARNING: builder-2.1.2 has an invalid nil value for @cert_chain How do I get rid of this warning or fix it?
gem install rails --version=3.0.10
Fetching: activesupport-3.0.10.gem (100%)
Fetching: builder-2.1.2.gem (100%)
WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
Fetching: i18n-0.5.0.gem (100%)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Remove in Jquery divs with draggables and resizables i have a question:
When you make a div as draggable and resizable and later when you want remove, i need destroy draggable and resizables? The same for droppables.
Example:
$("element").draggable("destroy").resizable("destroy").remove();
or only need?:
$("element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loop a XML in javascript and get values Im trying to print out the content of an xml string but can't get it to work. Anyone that can see my misstake?
XML string:
<row>
<text>Hello</text>
<value>1</value>
</row>
<row>
<text>Hello2</text>
<value>2</value>
</row>
<row>
<text>Hello3</text>
<valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transaction management for call to two service methods for a single unit of action We are refactoring a legacy application. The old code did something like this in a Controller method:
*
*Call DAO1.update()
*Call DAO2.update()
We’ve placed an in between a service layer, so the above code now looks like:
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Ado.net, Error: "There was an error parsing the query." I am writing a program in C# using Visual Studio 2010 and gets an error when retrieving data from a .sdf-file.
Here follow the code of the class retrieving data from the database:
//DataAccess.cs
using System;
using System.Collections.Generic;
using System.C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET VB Compare 3 Date In my ASP.Net (VB Code) that I had 3 variable to store 3 different date.
how can I compare 3 variable to find the last day between 3 date ?
e.g.
date1 = '21/01/2011'
date2 = '31/12/2011'
date3 = '19/09/2011'
the result should be '31/12/2011' after comparsion
Thanks
Joe
A: You can just c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why isn't my new payment method showing up on one-page-checkout in Magento? I have followed the tutorial located in the wiki:
http://www.magentocommerce.com/wiki/5_-_modules_and_development/payment/create-payment-method-module
The module is visible in the backend.
This means, the "Config->advanced->advanced", and "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does the delete[] operator work with dynamically allocated memory returned through a pointer? I'm wondering how the delete[] operators works with pointers returned by a function, rather then having the dynamic allocation in the same scope as the delete statement. Let's say I have a trivial function like this:
int *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how animate an UIBarButtonItem I want to animate an UIBarButtonItem like the TheElements example project does.
I'm pretty sure I've to use the customView property but I don't want to use an image to be able to do that because I need to change titles with some Localized strings (multi language).
So is it possible to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practice when validating input in MATLAB When is it better to use an inputParser than assert when validating input in a MATLAB function. Or is there other, even better tools available?
A: I personally found using the inputParser unnecessarily complicated. For Matlab, there are always 3 things to check - Prese... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Chaining two functions () -> Task and A->Task I don't know if I am thinking in the wrong way about TPL, but I have difficulty understanding how to obtain the following:
I have two functions
Task<A> getA() { ... }
Task<B> getB(A a) { ... }
This seems to occur often: I can asyncronously get an A. And given an A, I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: C++ Programm crashes only in debugger I've trouble with my application. Every time I launch it in the debugger it crashes when adding an item to a map. When I start it as standalone app it works properly.
The Objekt which has the map is deleted and recreated, and after the recreation the debugger crashes with an err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide the tool tip when mouse is out of the control Hi all i have written a code for Jquery in which both Click & Hover functions will work for the same control which works fine. But when i hover my mouse on a control tool tip showing fine, but if i move my mouse out of the control tool tip remains as it is so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loading on canvas in facebook doesn't work...? My server gives a pretty bad response time for facebook apps.
I want the show a loading image while it's still a blank page.
I tried via ajax but that didn't work, since I include a file that does the auth part, and redirects to the same page when auth is successful.
Tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: app submission to app store with xcode 4 How is app submission to app store with Xcode 4 different from previous xcode versions? What happens once we click the submit button of Archives-organiser.
A: First we need to click on validation, before that on itunesconnect we have to upload the binary and after that it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to split big switch statement I'm making an online game and when I receive data from a client, i receive several 'structures' ( say 'my position', 'use potion 23', 'attack player 45', 'talk bla bla', logout, etc.), those structures are read securely and put into structs, pushed on a list and (later on, when the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Maven: security problems by repository and pluginRepositories defined in pom? Imagine the current situation:
You are an developer and want to participate in a new (open source) project. The project can be build via different ways - one of them is Maven.
If you now download the source code repository and start the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What wrong with this php user defined function? I cant find that what i have missed in this function so its generating this ERROR some time not always ?
ERROR :-
Notice: Undefined offset: 13 in /home/chandrak/public_html/tmp/c/Crawler.php on line 131
Line number 131 is defined in the below code.
function cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Payment Module not appearing in frontend during checkout I'm having some issues with my custom payment module.
The problem is that whatever I try, I can't see the selection for my payment method in the frontend.
This might seem like a duplicate of similar questions, but I've already read them and the solution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compile CoreAudio PlayFile sample code for 64 bit? This is a newbie CoreAudio question. I downloaded Apple's PlayFile sample code. If I use the provided Xcode project, it builds it as 32 bit, passing -arch i386 to the compiler. If I build from the command line and and pass -arch i386 it still all works fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need clarification on timers in JMeter I studied that there are timers available in JMeter. In this constant delay timer, who sets constant time. Whether jmeter puts the delay time between the thread requests or user has to set the time. If the user sets, Where can he set the timer in tool. If anybody knows can you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send Partial Page as File Attachment via Email Asp.Net Is it possible to send a partial page, say content of an IFrame or Content of a Panel as an attachment in an Email?
I am dynamically creating manufacturing drawing pages with dynamic dimensioning. I'd like the user to be able to click an Email button and send i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Integer values are being reset to 0 when the sub in which they are assigned values is ended In the following code I have two class scoped variables intCompanyID and intEmployeeID. When I set them to a value in btnFetch_Click then try to read them later in btnSubmit_Click they are set to zero.
Why is this?
Option Exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Blackberry connection issue When connecting with a ConnectionFactory works on the simulator and doesn't work on a real device Torch 9800 works on Curve 9300 i ran the Network Diagnosis Tool on both showed an successful test with wifi on the curve but on the torch all tests fail, the strange part is that the browser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fetch Facebook friends list using java code is it possible to get facebook friends list without having the facebook api key user
can you explain
thank you
A: No. The user needs to approve your application which returns an access token before you can get any information about the user, including their friend list.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7514437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Solr : Getting Collations from a query response Im trying to configure SOLR spell checking. My request and response seem to be working fine. Only problem is how do i get the Collations from the response.
This is the part of my response that has the collations.
What methods in the API do i use to extract the 3 colla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a specific jQuery item from a list of items? I have this:
<ul>
<li>first</li>
<li>second</li>
<li>third</li>
<li>fourth</li>
</ul>
Then I select it all with jQuery: $('ul').find('li'); or $('ul li');
How can I, from those two jQuery selectors get the, for instance only second li, or third... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: exponential growth over time - how do I calculate the increase over a delta-time? This is probably a silly / stupid question, but I'm still gonna ask it :
if I have an initial start value at Time 0 (which is in my case always 1.0) and a rate of growth, how do I figure out the increase between Time1 and Time2 ?
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sorting an arraylist of my own type in Java I have a type in Java called Item which is defined as follows:
private Integer itemNo;
private String itemName;
private String itemDescription;
...
And I would like to be able to sort an arraylist of this type in descending order according to itemName.
From what I read, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows system login credentials i am developing a scheduler in which i want to match the username and password entered by the user with the system's login credentials in c#.Is there any way to do this.
A: Why don't you use the Windows Task Scheduler?
Just look http://www.codeproject.com/KB/cs/tsnewlib.aspx
BTW yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: With Watin, how do I wait until an element gets a certain CSS class? I want to use Watin's WaitUntil method to wait until an element gets a certain CSS class (JavaScript adds the class dynamically). How do I do this?
var element = browser.Div("my-div");
element.WaitUntil(...); // What to do here??
A: Try one of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to open the image in the Android's default gallery
Possible Duplicate:
How to open phones gallery through code
I have outputted a image in my app. Can I call the default Android's gallery to display the image instead of using ImageView to view the image.
Thank you very much!
A: try this for open gallery
Inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Joomla: mod_login parameters not showing up in administrator backend I am trying to change the Name/username parameter value to "Name" in the mod_login parameters. But for my Joomla installation (Joomla! 1.5.23), only a few parameters are shown (Caching + Encrypt Login Form).
Is there a way to display more parameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HttpValueCollection and NameValueCollection What is the difference between HttpValueCollection and NameValueCollection?
If possible please explain with example.
Thanks
A: One point that is not obvious in Darin's answer is that NameValueCollection does not override ToString() method, while HttpValueCollection overr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Help with PHP looping system Hey I have a set of results returned from the database, they are numbers which represent 1 - 18 which are the drivers_id, it could return any number of those dependant on how many drivers retired from a race. I am then matching them up to the users drivers and if they match then to -10 p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a Restful web service with input parameters? I am creating restful web service and i wanted to know how do we create a service with input parameters and also how to invoke it from a web browser.
For example
@Path("/todo")
public class TodoResource {
// This method is called if XMLis request
@PU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: IE7 Div width bug I ran into a very strange bug with IE7. Here is my HTML structure
<div id="tt_message_kudos_top">
<div id="tt_kudo_position">
<span> Kudos </span>
</div>
<div id="TT_kudos_reply">
<div class="lia-message-actions lia-component-actions">
<div class="lia-button-group">
<s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the fields that match the request? I need your help to get more information in my solR query's response.
i've got a simple input text which allows me to query several fields in the same query.
So my query looks like this
"q=email:martyn+OR+name:martynn+OR+commercial:martyn ..."
Is it possible in the resp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error in regex when first character is \ works fine with any other character For a project that I am doing I have to read a String. This String may contain one or more hexadecimal representations of unicode characters (e.g. "\u0161" for "š"). I want to convert these codes to the correct character representation.
To ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace preview of post with full content using jQuery / Javascript? In a php variable $preview I save about 4 lines of a post without any tags. In the $full I save full of the post with tags.
This is what I used to have, an expand/collapse toogle http://fiddle.jshell.net/r4F8Q/22/ when I was saving the entir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Styling normal html elements with UiBinder I have the following UiBinder code:
...
<div>
<g:Label>Hello,</g:Label>
<g:Button ui:field="button" />
</div>
...
Now I want to style the div element and lets say give it a red border. The clear way as far as I know is, to define a style attrinute l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP crypt() with sha256 in Zend Server CE 5.5 truncates the supplied salt During an upgrade from Zend Server CE 5.1 to Zend Server CE 5.5, PHP also got an upgrade from 5.3.5 to 5.3.8. After this transition the login function for a zend application I'm working on suddenly broke.
Trying to debug it, it looks likes the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: controlling mouse with pyusb I have to make a application, that do the followings:
*
*disable that the given usb mouse move the pointer in the screen (just the given, not all mouses).
*get the coordinates of the mouse pointer
*change the y coordinate of the mouse pointer
I've tried out pyusb, but i've never ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create pdf from ASP.Net web Form I have developed a ASP.Net application and I have developed a web Form with some entries. Now i want to convert this form into PDF file, is it possible ?
Any good and free library for this ?
A: To create pdf file you can use itextsharp or pdf sharp
A: You can use free librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: htaccess to redirect index.php without parameter I am looking for the Redirect for .htaccess:
www.mydomain.com/A/ and www.mydomain.com/A/index.php without a parameter must be redirected to "www.mydomain.com/B/".
www.mydomain.com/A/index.php with a parameter like www.mydomain.com/A/index.php?id=123 is OK and must not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there equivalent of onbeforedeactivate event for Firefox etc.? this works in IE
$('#blah').bind('beforedeactivate', fnBlah);
but I can not find equivalent for Firefox and other browsers
A: beforedeactivate is an IE-specific event handler. The closest you can get are the focusout and blur events.
Usage in JQuery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exception - instance error When you start catching exception and the exceptions autoloader controller error pops up:
Argument 1 passed to Controller_Exception:: __construct () must be an instance of Autoloader_Exception, string given, Called in 'source'
try {} catch (Autoloader_Exception $ e){ throw new Controller... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Zend Login Problem I am new in Zend Framwork. I write a action for login is given below :
public function authAction()
{
$request = $this->getRequest();
$registry = Zend_Registry::getInstance();
$auth = Zend_Auth::getInstance();
$DB = $registry['rdvs'];
$authAdapter = new Zend_Auth_Adapter_DbTab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC Validation input-validation-error CSS not working with the custom validation MVC Validation "input-validation-error" CSS not working with the custom validation, any help please ?
A: I used another methodology to solve this problems
is to create my own attribute that inherits from the .net built-in Attribute
for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: encount DOMException when remove node i encount DOMException.HIERARCHY_REQUEST_ERR when navigate the Document object to remove a pecific node, and after google this error code, It says:
"HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to convert an address stored in char array to actual address? I have following char array:
char hex[16] = "0x7fffa410c240"
How can i convert it into numerical address that can be assigned to another variable.
Important is that i have to keep the base of value remaining the same i.e. 16 (hexadecimal).
Thanks in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use footer in joomla 1.5 I am new in joomla 1.5 and I think it's not use footer menu but I want write some text on footer.So please tell me how this is possible.
A: its easy to implement .i have already done in my site.i have used this Module for that purpose.
Steps:-
1.Create your Article (write your te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7514550",
"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.