text stringlengths 8 267k | meta dict |
|---|---|
Q: how can I disable output to log4j.rootLogger? I want to disable the output to the console when logging to file. See config-file below:
log4j.rootLogger=info,stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Hibernate wont write correctly floating point numbers to a MS SQL 2005 database Here is the case, I have a java double property mapped to a ms sql server decimal(18,3), it was float before I changed it to decimal but the outcome is the same. When I persist the java floating point number the floating point is lost. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to pass values to a html file in android I have a HTML formatted file saved in SD card. I want to retrieve it , pass values to it and save it again from an android activity. Please let me know how to do it.
A: Use
Html.fromHtml()
Returns displayable styled text from the provided HTML string. Any tags in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: STL thrust multiple vector transform? I was wondering if there was a more efficient way of writing a = a + b + c?
thrust::transform(b.begin(), b.end(), c.begin(), b.begin(), thrust::plus<int>());
thrust::transform(a.begin(), a.end(), b.begin(), a.begin(), thrust::plus<int>());
This works but is there a way to get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: QtService does not pass the start parameters from Service Manager window How to get the Start parameters that are passed from the Windows Service Manager dialog. I was hoping I would get them as command line args passed to the main function.
If I pass the arguments to binPath when creating the service then I get th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ compiling Issue I have been having an issue with an error that has been given to me when I try to compile. The error says, error: no matching function for call to 'Invoice::Invoice(const char [10], double, int)'
It is giving me the error on
//create an invoice using constructor with parameters
Invoice duc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Strange sharepoint error at UserProfile Application this is a new sharepoint installation, and I have this problem when I navigate to the newly installed site.
Any help please
A: Your User Profile service application is corrupt. Delete and recreate UPSA.
A: Check permissions of application pool account and UPA ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem related to spring/resources.xml while deploying Grails applicatoin war in tomcat I have developed an application (named CBR) in Grails 1.3.7. When i run it with "grails run-app" or "grails run-app prod" it works fine. However when i create a war using "grails war" command and then deploy this war in Tomcat 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android game loop, how to control speed I have created my game loop through Surfaceview.
Animations in the game run faster on powerful devices with high configuration and slower on low configuration devices.
So I tried to count FPS and if FPS is high then there should be delay, otherwise no delay for myThreadSurface... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Map Overlay Issues Is there any way i can implement a zoom listener that can trigger events as soon as the zoom level changes. So far, i have managed with the onUserinteraction method manually checking for changing zoom-level.
Another thing is i to want add/remove overlays dynamically. what i,ve done so far ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Commands Firing despite having Focus in WinForms TextBox Given:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.CommandBindings>
<CommandBinding Command="Cut"
Executed="Comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache Camel - problem with error handling I have a problem with error handling. If an exception occurs in the jrnRoute, it is processed by the exceptionHandler processor. This is OK. But the message which caused the exception still stays in the jrnQueue, is processed again and causes the error over and over again. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A simple way to serialise a double? I am using ksoap and I want to send location information gathered by my android to ksoap. I want to try and avoid making a marshall class etc, is there a simple way to serialise and send the double to my soap xml? I've tried using String.valueof however it throws an error so i ass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle SQL Query to to run a column value as sql query I have the following row in the table
TEMP_ID HTML_LABEL HTML_NAME OPTIONS_TYPE OPTION_VALUES HTML_CODE
----------------------------------------------------------------------------------------------
2 RULE_NO : RULE_NO_7_32 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: When increasing the size of VARCHAR column on a large table could there be any problems? I'm using SQL Server 2008 and I need to make a VARCHAR field bigger, from (200 to 1200) on a table with about 500k rows. What I need to know is if there are any issues I have not considered.
I will be using this TSQL statement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Designating columns based on element order in XML My XML is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<JobListing>
<ColumnOrder>
<columnId>4</columnId>
<columnId>2</columnId>
<columnId>5</columnId>
<columnId>1</columnId>
<columnId>3</columnId>
</ColumnOrder>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Iterate through JSON object I have a json object defined like this -
"Content" : [ "Value1",
"Value2",
{"key": "value"},
{"key": "value"}
]
I can get the length of contents since it is an array.
How do I iterate through the object, so that I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get will_paginate to define a custom offset on the first page i'm building a news section on my rails website and it uses will_paginate for pagination. now i was wondering how i can specify a custom offset for the first page with will_paginate. something like this:
@featured_news = Post.first
@news = Post.offset(1).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I'm forced to redirect to logo page in Facebook App IFRAME I want to login to facebook in IFRAME(Facebook Apps).
Go http://apps.facebook.com/oauthtwosample/ with logoff and click "login" link.
Response header have Location Header when redirect permissions request dialog page.
Chrome screenshot below:
http://gyazo.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Abstracting the accountcontroller MVC How would I go about abstracting the membership information in MVC3 c#
Currently the membership data is kept on a localhost SQL server and is linked to MVC via the Entity Framework.
As I want to perform some extensions, I need to abstract it, creating an interface and class for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery accordion and slider not working together We have the following code:
http://jsfiddle.net/c5cpk/
Which should show an accordion with content in each pane along with a jquery slider.
At the moment it doesn't it just show's the controls.
If you edit the CSS line:
#accordion .pane { display:none; height:705px;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java annotation execute a method within the annotation declaration(usage for android) I'm fairly new to the annotation terms.
I have read some sources and came to the conclusion that non answered my question.
Perhaps I googled using the wrong search. Perhaps I overlook, or mayhbe im just clueless..
Anyway here is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Long running PHP scraper returns 500 Internal Error mostly I find the answers on my questions on google, but now i'm stuck.
I'm working on a scraper script, which first scrapes some usernames of a website, then gets every single details of the user. there are two scrapers involved, the first goes through the main pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does Enumerate work in MonoTouch? In MonoTouch I need to process each object in an NSSet. My attempt, using Enumerate, is as follows:
public override void ReturnResults ( BarcodePickerController picker, NSSet results )
{
var n = results.Count; // Debugging - value is 3
results.Enumerate( delegate( NSObj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to correctly refresh the ribbon's MFC default recent documents list? How to correctly refresh the ribbon's MFC default recent documents list?
The list in not updating correclty.
I enabled it using this:
In the ribbon XML, inside the CATEGORY_MAIN tag i've created this
<RECENT_FILE_LIST>
<ENABLE>TRUE</ENAB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HttpWebRequest.Timeout behaviour different in .Net / .Net CF? During some tests on multipart upload (using Ethernet) i have found something interesting:
I set a short (17sec) HttpWebRequest.Timeout and simulate a long upload using Thread.Sleep in the loop, where the byte-blocks are written to the server.
On a PC i g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Current running page in WPF navigation NavigationWindow I m new in WPF,
i am developing a navigation application of WPF,
<NavigationWindow x:Class="KioskTraffic.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Passing a const double[][] array as argument to a double** interface I have a 2-dim const double matrix which needs to be passed as argument to a function that takes a (non-const) double** parameter.
[CEqParams.h] // < given as is - can't do a thing about it
class CEqParams
{
public:
void operator=(const CEqParam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Auto-login in python using mechanize I have an almost working code to connect to a server and do a search. But there is some issue here with the code. This is what I do now with the following python script. I login to the site. Construct a url for the search result and access the search page and open it in a browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why PhantomReference does not work? Demo code:
import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue;
public class Main {
public static void main(String[] args) throws InterruptedException {
Object test = new Object();
ReferenceQueue<Object> q = new ReferenceQueue<Object>();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why it show last pin's type of call out annotation in my mapview I am designing a map view in which i am dropping no. of pins. I have also add a custom view on every pin. Now problem is that when my map view add all pins then on map it don't show my last pin. Instead of last pin it will show only custom view which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get sequence of user interaction with android device? After many sites searched and googling,
I can't find anything for my problem.
I want to capture the sequence of user interactions on android device. Starting from when the device is powered ON. And one more thing is that I'm not talking about the user e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to identify logged user? I was looking for the efficient way to track the logged users when using asp.net login control
if (!IsPostBack)
{
if (Membership.GetUser() != null)
{
var user = Membership.GetUser();
Session["user"] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Appending inner contents of a container without losing binding in jQuery I'm trying to append the contents of a container from one to the other without losing any sort of binding and I'm scratching my head wondering why it's so difficult :D
<div class="container">
<div class="field">
<label>Password</la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Size in bytes of a structure containing unordered_map Need to find the exact size in bytes, occupied by a tree data structure that I have implemented. Node Structure is as follows
struct Node
{
int word;
int count;
unordered_map<int, Node*> map;
}node;
What I have been doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check whether a method is static in PHP? I need to know whether the method is declared as static given its name and the name of the class containing it. method_exists provides true for both static and non-static methods.
A: use ReflectionMethod::isStatic
A: Here's a little more clear way on how to use Refl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: flickering jquery animations Hey guys I'm in the process of making this website here: http://craigmarkdrums.com (bare in mind that it's still very early days, so no judging, yeh hehe) and take a look at the menu. In firefox it works fine, but in chrome and safari you can see a flickering in the right hand corner. i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ vector push_back with class object I've been using this site for a while and so far never needed to ask a new question (found all answers I've needed until now).
I need to push_back multiple objects into a vector but VS throws an error (This may be due to a corruption of the heap, which indicates a bug in PVSS00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove ¶ (pilcrow) sign from database records My aim is to remove ¶ (pilcrow) sign from the database records. There are thousands of records so I cannot do it manually. Is there any script available to remove ¶ (pilcrow) sign from MySQL database column?
A: UPDATE table1 SET myfield = REPLACE(myfield,'¶','') ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET C# GridView - variable number of columns and image thumbnail Using GridView1.DataBind(); and AutoGenerateColumns="true" how can I find specific column and instead of URL display the thumbnail of image from that URL?
GridView is generated as result of SQL Query that might return between 2 and 10 columns (one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DevExpress LookupEdit - setting the selected DataRow by code I am aware that there other questions like this, but their solutions do not work for me.
I have the following code:
lueSizes.Properties.DataSource = new BindingSource(PS.PaperSizes, null);
lueSizes.Properties.Columns.Add(new LookUpColumnInfo("Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read contents of structure via RFC in SAP Is it possible to read contents of SAP structures via RFCs from the outside? I know that RFC_READ_TABLE can be used to read table data, but is there something similar for structures?
Or are structures only type definitions and don't contain any data?
A: Yes, structures are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get a unix timestamp in .NET C#
Possible Duplicate:
How to convert UNIX timestamp to DateTime and vice versa?
I need simple one line piece of code how to do it. Can't find it on Internet.
Thanks a lot
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7513612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Auto generate random alphanumerical characters?
Possible Duplicate:
How to get random string with spaces and mixed case?
How do I auto generate random alphanumercial characters
Valid characters: Uppercase (A-Z), Lowercase (a-z), and digits (0-9)
Size: 6
A: try this:
string def = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Have text in row overflow into right column I have a view with multiple columns that's showing documents with response documents underneath.
I have a field on the parent document that is long that i'm putting in the first column.
I've got another column that has a field specific to my response document.
I want to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i make press event with Javascript (jquery, dojo)? In the touch screen.
*
*if i keep press in the center of a screen for 20 seconds, i want to show alert("This is a secret window");
*If i pressed for 5 seconds each corners in the touch screen as: top/left top/right bottom/right bottom/left it will show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get all the pages validated, not just the current one, when submitting a form? First I created a form in Orbeon Forms with Form Builder. Next I made it a multi-page form as described in Create a wizard or multi-page form with Form Builder.
The problem I'm facing is that when submitting the form, validation on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Twisted under windows Twisted located at C:\Python26\Lib\site-packages\Twisted-11.0.0-py2.6-win32.egg\twisted
but
C:\projects\webmorda>twistd -n morda_server
Traceback (most recent call last):
File "C:\Python26\Scripts\twistd.py", line 4, in <module>
import pkg_resources
File "C:\Python27\lib\site-packages\p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Chrome Issue Google Map Api Jquery Is not Loading I have implemented Simple Google Map Direction Api Javascript in my webpage. When my Destinaion loaded from database, it will draw a map directly from this google api. But here in google chrome map cant be loaded, it is showing me some error kind of Resource interpre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mathematica: Thread::tdlen: Objects of unequal length in {Null} {} cannot be combined. >> I have aproblem:
Thread::tdlen: Objects of unequal length in {Null} {} cannot be combined. >>
It seems to occur in the while test which makes no sense at all since I am onlu comparing numbers...?
The program is a program to sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to SQL atomic set of operations I would like to ensure that var a has not changed between retrieving it and performing the update on var b.
var a = from item in....
if (a > 100) {
var b = from item in...
b.something = 100;
db.SubmitChanges()
}
How would I go about doing this? Do I just wrap the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom Authentication with WCF and NHibernate I'm attaching an NHibernate session to the operation context in my WCF webservice which allows me to access the session object during the processing of each operation (the service instance context is per call).
The service implements custom authentication using UserNameP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: form expand/reduce handling with jquery I have a comment form with a textarea, input text and input radio. first, you'll see the textarea. if you click in it, the whole form expand. When you click outside the form and the fields have no values, the form should reduce to the textarea again. This works as well.
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why i can not use Sensor.TYPE_ORIENTATION_VECTOR. Type is not recognised The problem is, that this sensors should be available:
*
*int TYPE_ACCELEROMETER
*int TYPE_ALL
*int TYPE_GRAVITY
*int TYPE_GYROSCOPE
*int TYPE_LIGHT
*int *TYPE_LINEAR_ACCELERATION*
*int TYPE_MAGNETIC_FIELD
*int TYPE_ORIENTATION
*int ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TFS API - Why is the AllowedFieldValues for 'Reasons' empty? I'm trying to retrieve the list of valid Reasons for a WorkItem (MS Agile 5 template), which works correctly for a new work item.
However for editing existing work items, the AllowedValues is always empty, whatever the state.
WorkItem item = GetItem(...)
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i expose function from anonymous self invoking function? (function(){
var a = function () {
alert("hey now!! ");
};
return {"hi":function(){return a;}};
})();
hi();
This code doesn' t work. How do i expose a function??
A: The self invoking function returns an object with the property hi, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: iOS Searching an array for a string and adding it if missing I'm trying to go through a mutable array searching for a given string. If the string does not exist in the array, I want to add it ONCE. The issue I'm having right now is that the string gets added a number of times.
Here's the code I'm using
NSMutableArr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: lighttpd: 404 page does not return 404 status I'm using a lighttpd 404 error handler, with a static 404 page. The entire conf file looks like this:
server.document-root = "/home/www/local/www/mysite/html"
url.rewrite = (
"^(.*)/($|\?.*)" => "$1/index.html",
"^(.*)/([^.?]+)($|\?.*)$" => "$1/$2.html"
)
server.err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: subclass of a serializable class needs to be serializable? If I have 3 classes say A and It Implements java.io.Serializable . And I have B ,which is subclass of A. If I want to serialize B , B also implements java.io.Serializable. If not Why HttpServlet implements java.io.Serializable as GenericServlet already imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Div not auto expanding due to dynamically loaded content I have a bit of an issue...
Ive made a div, and normally, it expands to suit the height of its contents fine, however... Now i have a problem.
My content is being returned from a Sql statment, and its not expanding to suit its height, a working non dynamic ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically Suppressing Graphs in Crystal Reports I'm using Crystal Reports to create some graphs. I'm linking students in a report showing a graph of results for each subject
Student
Ian Smoth UREL5 U TU
Course
UREL5 5 9 23 33 23 6 1
LREL5 10 13 23 27 20 7
Dependent on whether the the course i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems with UDP Received and Sent UDP Packages? I am trying to write a simple program about UDP Connections to learn about them. I have implemented some basic things but when I try to send and get back what I sent but I face some problems like,
When I do this ;
send a string
"asd" to server I get back asdxxxxxxxx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Alert using WMI Event ERROR I want to execute a job when ever a file is dropped into a particular folder.
I found some articles that showed me how I can do it on SQL Server.
I created a alert type: WMI Event Alert
For the name space its the SQL instance which comes automatically as \\.\root\Microsoft\Sql... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get values for same column name from two different tables in SQL How to get values for same column name from two different tables in SQL?
column name is emp_id loacated in these two tables: company,employee.
A: If you want data in seperate columns from two tables then try :
SELECT c.emp_id, emp.emp_id
FROM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse-Marketplace Error Message in Linux machine Eclipse Indigo :
once i go into eclipse market place option i got this message :
Unexpected exception
java.lang.reflect.InvocationTargetException
this is in mu linux machine can i know why am i getting this message.
A: I had the same issue happen to me... I couldn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Any ideas why my blueimp jQuery file upload script is not working? I'm using blueimp JQuery file upload script to fancy the uploading of files. You can download it here: https://github.com/blueimp/jQuery-File-Upload/zipball/master (ZIP).
Here is a snippet of the JavaScript code:
$(function () {
'use strict';
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mocking out nHibernate QueryOver with Moq The following line fails with a null reference, when testing:
var awards = _session.QueryOver<Body>().Where(x => x.BusinessId == (int)business).List();
My test is like so:
var mockQueryOver = new Mock<IQueryOver<Body, Body>>();
mockQueryOver.Setup(q => q.List()).Returns(new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to generate mysql query to insert the 2000 records at a time? Here is my scenario,
I have table
ID(PK) TYPE(PK)
01 3
02 3
03 3
04 3
now i have to insert ID upto 1000 with type 3...
is there any option to do that automatically???
A: Use a stored procedure
DELIMITER $$
CREATE PROCEDURE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MFC Serial Port WriteFile() Crash I am trying to write to a serial port using the WriteFile() function and when I put some breakpoints to check whether it is writing or not, it doesn't. I am trying to pass a string of data through my COMM port.
BOOL bWriteRC = false;
DWORD iBytesWritten = 0;
//String data: "$ABCEFG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# managed code reference type question I have a class that contains some properties, consisting of lists. These lists can be populated with some Sharepoint objects that can be fairly memory intensive.
I pass this class with its list properties through to my function like this:
public void InsertFixedLineItems(Cach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Application wait for Windows profile to be created I have a WPF VB.NET 3.5 application which we have set to run at login via GPO (Windows 7, AD 2003/2008), when this application runs on user login I finding that it is failing when the user has not logged into the PC before and the profile needs to be created.
In our... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to isolate unit tests We have a batch processing project that utilizes a cache (that relies on static data). The unit tests for this project unfortunately mess up other unit tests within the same solution (because of the static data), so I need to isolate the batch processing unit tests from all other unit tests... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most efficient way to find 1s in a binary word? I am unsure what something like this would be called, (hence the clumsy title) but I need something like this for something I'm working on. I can't describe it well in words, but I hope this drawing explains for me:
What would be the fastest way of getting the number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to Show data in GridView TextBox, and/or DropDownListBoxs in asp.net My client has given one requirement like below:
He wants to Insert, Update, Delete record inside the GridView only. He wants all the data to be present in TextBoxes and DropDownList controls (i.e. not in the label controls). If he wants to upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assignments in C Can you write something like this in C with multiple assignment operations?
int a = 0, b = 0, c = 0, d = 0;
(((a = b) = c) = d);
I've read somewhere that C standard states that the result of this won't be lvalue? is this undefined?
A: You can do
a = b = c = d;
which is the same as
a = (b = (c = d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Regex for special ucwords I want to do an ucwords() in JavaScript on a string of the form: test1_test2_test3 and it should return Test1_Test2_Test3.
I already found an ucwords function on SO, but it only takes space as new word delimiters. Here is the function:
function ucwords(str) {
return (str + '').replace(/^([a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android keyboard does not open when using media queries I have a mobile site that includes a search box at the bottom. I also use media queries to hide content in portrait mode and display it in landscape mode.
However in Android devices when I click on the search field the keyboard opens then immediately closes, m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SOAP client application exception I wrote a client application that consumes a SOAP web service. I developed the code using Eclips and it works fine there. Now, I'm trying to run the same application from the terminal by using wsrunclient.sh so it gets the input but after that it crashes and gives this exception:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Chosen breaks in firefox What's wrong with firefox's calculations while using the Chosen plugin? Other browsers work well.
Example. Be patient, it takes some time to load the less stylesheets (not precompiled while testing).
A:
What's wrong with firefox's calculations while using the Chosen plugin?
Calcula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What means "No such channel"-Exception in Apache ODE? I have multiple BPEL-processes which runs fine on WSO2 (version 2.0.1). But after some time, there appears following exception in the log. I have no clue, what they means nor how to get rid of them.
Here is a snippet of the stacktrace:
[2011-10-05 11:28:26,541] E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby - remove_const :File What is this piece of code doing?
class Object
remove_const :File
end
Is it completely deleting[1] the class? When I call File.instance_methods after that piece of code, it's just showing the methods that are inherited from Object/Kernel.
Is it possible to revert this to original state... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hash invert in Ruby? I've got a hash of the format:
{key1 => [a, b, c], key2 => [d, e, f]}
and I want to end up with:
{ a => key1, b => key1, c => key1, d => key2 ... }
What's the easiest way of achieving this?
I'm using Ruby on Rails.
UPDATE
OK I managed to extract the real object from the server log, it is being... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to calculate number of views in my viewcontroller Currently i am generating "n" number of custom views in my DeatilViewController screen.So i want to calculate the number of views present in my DeatilViewController.xib and they belongs to which class.
How can i do this?
A: Try NSArray *subViews = [DeatilViewCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Progress getting incorrect value from backgroundworker I'm new in c# and i'm still working way through and learning it all.
I have made this code for a progress bar when downloading a file from ftp, and it actually working just fine. But progress value is all wrong. It looks like it is byte value somehow. But the we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CakePHP/Croogo: A veeery complex association When I was working on my current project, I ran into a rather complex issue. I'll point out my problem much more detailed right now:
There are three Models: User, UsersExtendedField and UsersExtended.
UsersExtendedField contains custom fields that can be managed manually.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MediaPlayer.Volume control I have a slider where I get a value from 0 to 100 to adjust the volume. The MediaPlayer.Volume expects a value between 0.0 and 1.0 while 0=-96db and 1=-0db. Currently I use the following code to adjust the linear values from my slider:
float newVolume = (float)(Math.Sqrt(sliderValue) / 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Plugins in dropins-catalog are not found What could cause Eclipse to ignore plugins in the dropins catalog?
I've created a dummyplugin based on the Eclipse wizard, exported it to a jar. When dropping it into the drop-ins catalog of a fresh Eclipse installation, it works fine.
When I do the same thing but on a custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DevExpress RowUpdating old values returning text value I have a DevExpress ASPXGridView which has been bound with a dataset.
I'm using the edit row command to edit the data in the row and return it to the database.
When the edit button is clicked, the row opens up and there is an ASPXComboBox that is bound to anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: adding new pair in dictionary why the last added 'mynewkey': 'mynewvalue' came first in dictionary >>> d = {'key':'value'}
>>> print d
{'key': 'value'}
>>> d['mynewkey'] = 'mynewvalue'
>>> print d
{'mynewkey': 'mynewvalue', 'key': 'value'}
why the last added 'mynewkey': 'mynewvalue' came first in dictionary
A: Pyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to make list blob request (windows azure)? Unable to make list blob request using following URI with replacing myaccount with my storage account
http://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list
A: Are you sure that your blob is public?
You can check is using CloudBerry Explorer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display only right page using booklet plugin? Is it possible to display only the right page using booklet ? I like the effect with flipping page, but I can only have displayed in page.
Thanks in advance
A: Yes. I got this working simply by modifying the css.
I think it was a combination of position: absolut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hide the iframes whose content get blocked by proxy I have a webpage with iframes.
These iframes are for showing some external website data.
But problem arise when those external servers get blocked in a network it gives a error that "The proxy server is refusing connections".
It does not look good to me.
I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How we can Find cause of CTS Error? I found some CTS errors which are given below:
Compatibility Test Case: CtsAppTestCases
Package Name: android.app.cts.DialogTest
Error:
-- testContextMenu fail junit.framework.AssertionFailedError
at android.app.cts.DialogTes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.net flash muti-file uploaders - Is MultiPowUpload ok, or which is the best and easiest? I am considering using the MultiPowUpload control from element-it on a project, as well as perhaps on a second. Does anyone have any feedback on that particular control? Does it actually work as advertised, handle errors we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C#: BindingSource CancelEdit for all objects and there child objects from EF Let's say i have two objects from EF with INotifyPropertyChanged.
Object1 has many Object2 and the BindingSource1 has many Object1.
If I change some Properties of BindingSource1.Current (Object1) I'm able to restore them by calling BindigSo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mimicking WP7 Unlock Page Animation In my app, i need to create wp7 page unloak animation(ie sliding up the picture and unloak the device) how i can implement that in my app either with the help of xaml or with the help of C# code.
A: These are the steps to achieve wp7 page unlock animation
1.Create the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django Forms - Processing GET Requests We have an existing Django form that accepts GET requests to allow users to bookmark their resulting query parameters. The form contains many fields, most of which are required. The form uses semi-standard boilerplate for handling the request, substituting GET for POST:
if requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android query to extract first word from a field So I've been dragging with this one for some time now and simply can't find the solutions
Let's say I have a table called NAME with values like
John Doe
Jane Doe
etc.
I just want to pull the first word.... so everything after the first space ' ' will not show
I'm pul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force the screen orientation to portrait before starting an App? I am using the following line of code for each of my activities in order to force the screen orientation to portrait mode:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
It works ok unless I put the device in landscape mode ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove style one click event? How can i remove the style class applied to a textbox on the click event? I'm calling the textbox element using getElementsByName(). Here's my code:
<input id="userNameExists" name="popUpText" class="pop-upText" onclick="clearText(this);" />
function clearText(element)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513787",
"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.