text stringlengths 8 267k | meta dict |
|---|---|
Q: Copy/paste menu translation into swedish content in UISearchBar
I am building an application for a Swedish client. We didnt do any changes to the project setup and developed the application in xcode. The client is right now coming back and pointing that the "copy / paste" dialog box that comes up in the UISearchBar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error in styles.xml I've placed a styles.xml file in res/values folder and it gives me this error.
error: Error retrieving parent for item: No resource found that matches the given name 'Widget'.
Here is my code;
<resources>
<style name="Widget.SeekBar">
<item name="android:indeterminateOnly">false</item>
<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is packet forwarding possible on Android? Our requirement is to develop an Android App &/or service that does the following. Listen to http (port 80) requests/packets sent from the device (by any app). forward them to a different server and not to the host that they are meant to go to.
Can someones please indicate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: fb:comments scrollable under a fixed footer on iOS? We are building a small web page that lives in a UIWebView in an iPad app. This webview has a fixed footer at the bottom and a scrollable div in the middle. Up until now we had a good solution for this, using iscroll4 to scroll the div. When that div contained only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can obj.__dict__ be inspected if the class has a __dict__ variable? I am interested in whether there is a way to introspect a Python instance infallibly to see its __dict__ despite any obstacles that the programmer might have thrown in the way, because that would help me debug problems like unintended reference loop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: iOS >> UILabel: How to Create Lines Separator Relating to Words Count I use a UILabel that is defined in IB as including 2 lines
The text itself is coming from the code:
[self.myUILabel setText:[someDictionaryThatHoldsNSStrings objectForKey:someDictionaryKey]];
There are always 4 words in the string; I want to mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Checksum function is depended on Unicode? if its in unicode so the results : ( notice the N )
select CHECKSUM(N'2Volvo Director 20') ---341465450
select CHECKSUM(N'3Volvo Director 30') ---341453853
select CHECKSUM(N'4Volvo Director 40') ---341455363
but if its regular :
select CHECKSUM('2Volvo Director 20') ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to sort my objects list by date which is returned from server by a ajax call I send an Ajax call to server, then server returns me the xml data which contain a list of objects. Each object in the list contain a "date" attribute.
In the success function of the Ajax call, I would like to populate each object in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSSavePanel, CGImageDestinationFinalize and OS X sandbox I'm using NSSavePanel to let user select image to save to in my app. Everything worked fine until I enabled app sandboxing and entitlements. The problem occurs with selection of an already existing file. My code is like this:
// Create a URL to our file destin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect j2me mobile device screen orientation at LWUIT? I want to know how to detect screen orientation like portrait or landscape mode at J2ME LWUIT. Can LWUIT detect screen orientation automatically or need to write code manually?
A: Shai Almog said this in the forum, talking about screen orientation
Shai A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to verify that code reviewed patch file is exactly what is committed into SVN repository We have a code review process in place where a developer sends out a patch file with his changes to the team. After reviewing it, he is instructed to commit or make changes and resend.
How can we ensure that what has been "c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: return product price using LINQ, what return type to use in function? I'm just getting started with LINQ and I'm trying to select and return a product price from database, like so:
public int GetPricePerKg(Product prod)
{
var result = from p in dc.Products
where p.pk_product_id == prod.pk_produc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQLite password is available in memory using ADO.Net I have a .net 4.0 app that connects to an encrypted SQLite database via the ADO driver.
Something I have noticed is that when connecting the connection string and thus database password is available to view in memory, meaning that users can in fact find out of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microsoft Access Does not return Values I have written a program to save attendance of employees.The database engine is MS Access. when I execute a query form the C# program using Data-Adapter it does not return values, but when I'm executing the same query in Access it gives results. I have used one table join in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create new project using appfuse i use following command in
http://appfuse.org/display/APF/AppFuse+QuickStart
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts-archetype -DarchetypeVersion=2.1.0 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to trim few bytes of a byte array? I have a long byte array. I need to eliminate the initial 16 bytes. Is there a shortcut do it?
A: Check out Array.Copy
For example:
var array = //initialization
int bytesToEliminate = 16;
int newLength = array.Length - bytesToEliminate; //you may need to check if this positi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Call to iterating object from iterator How can I call for iterating object from iterating block?
# "self" is an Object, and not an iterating object I need.
MyClass.some.method.chain.inject{|mean, i| (mean+=i)/self.size}
I mean I need to do this:
@my_object = MyClass.some.method.chain
@my_object.inject{|mean, i| (me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with "NOT IN" in a simple SQL query I need to find all id's from the OldTable that doesn't exist in the NewTable
Why won't this query find the id?
SELECT old_id FROM OldTable WHERE old_id NOT IN (
SELECT id FROM NewTable)
By them selves they return this
--Returns the id 18571
SELECT old_id FROM OldTable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting ArrayList to String and converted String back to ArrayList I am in a situation where I need to send the arraylist in the network but I need to convert it in the form of string.
Now at the destination I want to convert this String to ArrayList to access the individual elements.
Please tell me how I can con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS one month free, than subscription only I am developing news reader app, and client wants to have monthly subscription. This is easy enough, but he wishes to have one month of free trial for each user. So after user downloads app for the first time, he has one month of free use and after that period, he has to pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Setting a button's size according to a dynamic custom view's size
*
*CalendarBackground is a custom view which implements onDraw() and onMeasure(). Its size is dynamic, calculated in onMeasure().
*CalendarView is another custom view which extends the following RelativeLayout.
<?xml version="1.0" encoding="utf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++ advanced feature for non-cpu hardware in the blog of renderscript
http://android-developers.blogspot.com/2011/03/renderscript.html
it has mentioned that
The advanced C++ features are very difficult to run on non-cpu hardware.
so I would like to ask
what are the 'advanced features' that this paragraph refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with date('Y-m-d H:i:s',$usr_profile->getCreatedAt()) getting error? i am trying to parse my MYSQL date in to the format Y-m-d H:i:s and get error:
//theses lines ok
echo $now = date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME'])."<br/>";
echo $nowday = date('d',$_SERVER['REQUEST_TIME'])."<br/>";
echo $nowmonth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'Using' must end with a matching 'End Using' i am trying to use a Html.RenderPartial but getting an error:
'Using' must end with a matching 'End Using'.
View:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<mvc2Test.Models.Employee>" %>
<asp:Content ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is best practice for global error/exception handling in ASP.NET MVC? I've seen two methods of implementing global error handling in an ASP.NET MVC 3 application. One method is via the Application_Error method in Global.asax.cs.
For example (Error Handling in global.asax):
public class SomeWebApplication : Syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Issue with toggling dd Currently I’m using dt and dd to display some data. What I’m doing here is initially set the dd to display: none and when the dt is clicked display the associate dd.
My HTML markup is
<dt >
<h1>click here</h1>
</dt>
<dd style="display: none;">
<h1> DD Data </h1>
</dd>
<dt >
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Join between different data types In a particular scenario I have a lookup table with MachineNumber (Varchar) and its MachineID (Int). In my transaction table I refer to the Machine number using lookup table's MachineID.
Requirement: Can I have the MachineID field type set as Varchar in the transaction table whereas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange warning behavior with gcc and signed/unsigned comparisons I have the following code :
unsigned int a;
if (a > numeric_limits<int>::max())
do_stuff();
When compiling, gcc complains about
warning: "comparison between signed and unsigned"
OK, I understand
But, with the following code :
unsigned int a;
if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to call derived class virtual method? I created these classes:
public abstract class Node
{
public virtual NodeModel CreateModel()
{
throw new NotImplementedException();
}
}
public class Folder : Node
{
public virtual FolderModel CreateModel()
{
// Implementation
}
}
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: clojure/lein: How do I include a java file in my project? I have a java file with a single class and I want to include it in my lein project. Where do I put it and how do I import it? (I tried putting it in the src directory under the package path but it tells me ClassNotFound)
So the java file has this package de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Echo '
*' PHP When I do this:
echo '<li></li>';
in php inside a <ul>, it breaks the rest of the php and results in '; ?> showing up on my site.
I'm trying to list journal entries and I've done it many times before, but it just doesn't seem to work now, which is very strange.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kerberos constrained delegation with protocol transition in java on linux I am not able to find any examples of how constrained delegation with protocol transition is done using JAAS/GSS api's on linux. Appreciate any pointers on this.
A: I guess, there is only support for credential delegation. You cannot specify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access non static cloned arrayList for use in static method in Java As part of an assignment Im trying to access a cloned array list from another class so I can utilize it. But when attempting to do so I get the following error "non-static method getConnections() cannot be refrenced from a static context".
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: same random sorting in javascript I have got "slides" div and "slidecontrols" div. slidecontrols div contains thumbnail and title of slides and it's displaying title and raising opacity when activate one slide.
slides and slidecontrols are in array on javascript and appending to page with jquery.
I need to randomiz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Runtime error when using vector iterator I'm having a problem with the following code:
for(int j = 0; j < ensembleTemp.size(); j++)
{
ensemble[ensembleTemp[j]].clear();
ensemble[ensembleTemp[j]].insert(ensemble[j].begin(),
ensembleTemp.begin(), ens... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fatal error: Uncaught CurlException SSL connection timeout in facebook api 3.0.0 in base.facebook.php i am getting same ssl error for all version of php-sdk i have increased timeout value but strill same problem but when i tried same sample code on different server it working well. i think there is might be somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problems with FrameLayout i'm adding programatically 3 textviews into a framelayout that haves a camera view.
The three textviews are writting in the same position, but i want to put each textview bottom to another (using framelayout)
I dont know how to do it, i can't find any examples or info about doing this with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple technique to upsample/interpolate video features? I'm trying to analyse audio and visual features in tandem. My audio speech features are mel-frequency cepstrum co-efficients sampled at 100fps using the Hidden Markov Model Toolkit. My visual features come from a lip-tracking programme I built and are sampled ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing copied and pasted code/text detection? I've a bunch of legacy javascript files looking really similar. I'd like to implement a copied/pasted code detection tool, but I was unable to find a description of an algorithm...
I'm already using sonar with the javascript plugin to detect this kind of code, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert JSON string to array What I want to do is the following:
*
*taking JSON as input from text area in php
*use this input and convert it to JSON and pass it to php curl to send request.
this m getting at php from get of api this json string i want to pass to json but it is not converting to array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "161"
} |
Q: Report Builder 1.0 recommended system requirements I can't seem to find this on MSDN but can anyone tell me the recommended system requirements for running Report Builder 1.0?
A: From MSDN:
The client computer must have the Microsoft .NET Framework 3.5 installed. The .NET Framework provides the infrastructure for r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I don't understand 'closest()' still... Please clarify I am struggling with jQuery's closest() selector.
I've made a jsfiddle of what I think should work... but it clearly doesn't. Why not?
the HTML
<div class="button">button</div>
<div class="return_window"></div>
and the incredibly complex JS
$('.button').click(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: java get property only exist in child class class Parent {
}
class Child extends parent {
String something;
//get and set
}
Parent parent = getChildObject();
//without casing getChildObject() to Child object. i cannot do child.getSomething(); Can i do something like parent.getProperty("something"); to get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check the state of 3G in my app: Actually i had used the following code to check the wifi is active or not (its working fine).
I just want to confirm that can i use the same code to check the 3G active state:
public boolean checkwifi()
{
ConnectivityManager connec = (ConnectivityManager) this.get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to expose read-only collection another type of private collection? Here is my problem: there is a class that contains a inner collection (or list, or array, or something like this) of some some class and It must expose a public read-only collection of items, which are properties (or fields) of relative items in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: what is the best way to change a gem locally and then revert changes I want to write some puts statements to gem files, but I am afraid that I may forget to revert my changes. But I still want the ability to change gems locally and then restore their original versions. I am using bundler and gemsets for different ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Duplicate: XPath expressions with default namespace I'm currently writing a C# class that allows me to construct entities from an OData feed.
Don't ask why, I just need it at the moment :)
The snippet of the XML looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xml:base="http://demo.ten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Phone 7 - Playing streaming video On WP7 platform (using C# and Silverlight) I try to play an online stream into a MediaElement...
Here is the C# code:
(...)
WebClient wc = new WebClient();
wc.OpenReadCompleted += (s, e) =>
{
try
{
mediaElement.SetSource(e.Result);
}
catch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generate a code from user e-mail to generate a link and then send I am developing an app that enables existing users to invite their friends via e-mail. During the invitation process I generate a code to use in a link that the invited person clicks on to register.
Currently I am using the default hashcode generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Location or Alternatives for Zends getRequest()->isPost() i was wondering about where Zends functionality comes from when inside of a controller i call
$this->getRequest()->isPost()
It works, but i do not find where this "isPost()" function comes from.
I just noticed it because i don't have intellisense for that.
Qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get real path of application from pid? How can I get the process details like name of application & real path of application from process id?
I am using Mac OS X.
A: If the PID is the PID of a "user application", then you can get the NSRunningApplication of the app like that:
NSRunningApplication * app = [NSRunning... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: converting variable like string content to real variable in python I have string variable which contains "variable" like content as shown below.
str1="type=gene; loc=scaffold_12875; ID=FBgn0207418; name=Dvir\GJ20278;MD5=4c62b751ec045ac93306ce7c08d254f9; length=2088; release=r1.2; species=Dvir;"
I need to make varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Extracting table from html into htmltable in asp.net vb (htmlagilitypack) I am trying to grab a html table from a remote page and display the contents of this table in a htmltable on my site. I am using htmlagility pack. So far here is my code:
Imports HtmlAgilityPack
Partial Class ContentGrabExperiment
Inherits... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to access server using cmd( \\Server\Volume\File) I need to get folder names in my server, as you know when you start cmd.exe it has default path name like "C:\Documents and ....". I can get folder names which are in my "C:/" by typing dir *.* /b /o:n > index.txt.
so I have this;
C:\Documents and Settings\Name>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: namespaces in application settings I am migrating an old application to a newer .NET-version. The current application stores arrays with user settings into the registry.
In the new application I want to change this mechanism into .NET Application settings (app.config), but I have only figured out so far how to stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ellipse representing horizontal and vertical error bars with R In R, how to use ellipses to represent error bars (standard deviation) for x and y variables if only summary data, i.e. mean and SD for different data sets, are available. Any feedback is appreciated.
A: You can write your own function like this one:
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Displays only the last row in foreach statement if($query->num_rows()>0)
{
foreach($query->result() as $row)
{
$slNo = $row->sl_no;
//echo "</br>";
$sql1 = "SELECT * FROM main_stock_outward WHERE product_id='$slNo' AND request_id='$requestId'";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find dom elements containing text and other dom elements inside I'm trying to apply a class to all elements which contain text or which contain text and other dom elements inside. At least there must be some sort of text inside the element.
This div should get the class:
<div class="theClass">Some text</div>
This d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to link a soap request and response in mule 3 I need to send a file to a external web service. When the response is 1, the file should be deleted, else the file should be kept.
I use the file connector to send the file, and insert a record into Oracle. When the file is sent out, the key is the message id of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Return a concrete implementation in a list I know this doesnt compile but why shouldnt it?
public interface IReportService {
IList<IReport> GetAvailableReports();
IReport GetReport(int id);
}
public class ReportService : IReportService {
IList<IReport> GetAvailableReports() {
return new List<ConcreteReport>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display issue on HTC Flyer I have developed an application and created the xml files in different layout :
*
*layout-large
*layout-large-1024x600
*layout-normal
*layout-normal-480x320
*layout-normal-640x360
*layout-normal-640x480
*layout-normal-800x480
*layout-small
*layout-small-320x240
*layout-small... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access Session information on service layer? Is there a way I can share Http/Wicket Session information to the service layer without introducing servlet api/Wicket dependency?
I'll provide some context to why am I asking this question, just in case I'm missing something and asking the wrong question.
I've got... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the differences of that iterations? What are the differences of that iterations:
var recordId;
for(recordId in deleteIds){
...
}
and
for(var recordId in deleteIds){
...
}
It says implicit definition(what is it), is there a performance difference between them?
A: An "implicit declaration" is a variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to pre-load an existing form with a data from db? i have a problem here,so here's my code
<div id="educmaininfo">
<?php
foreach($cv->getEducation($_GET['cvid']) as $r){
echo "<a href='#' id='editeducation'>Edit</a> | ";
echo "<input type='hidden' name='... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Type Erasure and Overloading? Can anyone explain in simple terms why in the below class, when I pass in a String, Integer or UUID, only the method overload taking Object as a parameter is used?
public final class SkuHydratingConverter implements Converter<Object, Sku> {
@Autowired
private SkuService sku... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is the Secure Canvas URL required for Localhost apps in development I am developing an application in my local machine.
I let users invite their Facebook friends with a Facebook request Dialogue.
The friends then click the link in their Facebook and are directed to the canvas page and then redirected out of Facebook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: itk x and y component of the gradient of an image I would like to calculate the x and y component of the gradient of a 2D image. As in MATLAB is calculated with [dT2,dT1] = gradient(T);
ReaderType::Pointer T_g // image
FilterType::Pointer gradientFilter = FilterType::New();
gradientFilter->SetInput( T_g->GetOut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I convert this "array of bytes" to PDF in ROR (Ruby)? Over the web service, I am returned an array of bytes. Part of which looks like the following... How do I get this back to a file? (It started as a pdf)
rg1uje94ppbarWm6azwlDCJeHFFJuXlMN532v46qiyi2u/WNVHCgl10DFe64oZVSFKHN7pZ6qaulNHULZJjix33PWhzPLBVwcbptx5H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I disable a horizontal mouse scroll with JS? I am building a one page site that uses javascript to navigate vertically and horizontally across the page to see different content.
I want the user to be able to scroll up and down but not horizontally (currently the user can scroll horizontally in FireFox and see c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Assembly Language: Memory Bytes and Offsets I am confused as to how memory is stored when declaring variables in assembly language. I have this block of sample code:
val1 db 1,2
val2 dw 1,2
val3 db '12'
From my study guide, it says that the total number of bytes required in memory to store the data declared b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Service Stack Hello World tutorial: exception EndpointHost.Config is null I am following the service stack "Hello World" tutorial from http://www.servicestack.net/ServiceStack.Hello/ . But when I am trying to start the asp.net application it says "Value can't be null. Parameter Name: EndpointHost.Config".
The full ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: sorting in XPath using Java I am using XML in my project for data to be Insert/Update/Delete & Searching.
currently i am using XPath for doing the above operations from my JAVA application.
How can i sort the data[ascending/descending] while reading from XML file using XPath.
Can anyone tell me the best way to full... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Winforms - Notifying/Publishing events in a control hierarchy I have a hierarchy of controls like -
MainForm (has menus / toolbars)
|____TabContainer
|_____TabPages
|_____TreeView...etc.
Now, after the data has been loaded in the TreeView and user selects a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scroll to certain position for 'single' pages In my WordPress site, on single pages, I'd like the scroll bar to automatically scroll to a certain position (say, 400px from the top). The reason is because I have a video player under the header that shows on every page. When the user clicks on a post from the home pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate help document (or chm) from dotnet comments I was reading some technical material of dotnet and then i came to know that there is a way by which we can generate good help document from dotnet comments
Can anyone please help me to know that how to generate help document from comment in dotnet. whethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLite3 Database file - Corrupted/Encrypted only on Linux I am currently writing a Python script to interact with an SQLite database but it kept returning that the database was "Encrypted or Corrupted".
The database is definitely not encrypted and so I tried to open it using the sqlite3 library at the command line (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pythonic way to replace text with xml nodes I'm wondering if anyone can come up with a more 'pythonic' solution to the problem I'm currently trying to solve.
I've got a source XML file that I'm writing an XSLT generator for. The relevant part of the source XML looks like this:
...
<Notes>
<Note>
<Code>AB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery tabs...collapsible when out of focus I'm using jquery tabs (http://jqueryui.com/demos/tabs/mouseover.html) as dropdown menu for my work. First Tab, I use for 'Home' and make the content to be hide.
My question is, how i can make the content of the tab collapsible when lost focus on tabs content, right now whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert hash into hash in Perl I have a simple hash defined somewhere in the main file
our %translations = (
"phrase 1" => "translation 1",
# ... and so on
);
In another file I want to add some more translations. That is, I want to do something like this:
push our %translations, (
"phrase N" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: display lines in AS3 I am baffled by this function, which is called prior to this with parameters 22 and 58 for xVal ad yVal respectively. It doesn't display anything when the swf is compiled and tested, and it's error free. The code is in the document class:
private function mLine(xVal : int, yVal : int) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access the properties on a XML Node via linq? I read through this post.
I have this XML:
<?xml version="1.0" encoding="utf-8" ?>
<Export version="" srcSys="" dstSys="" srcDatabase="" timeStamp="">
</Export>
This is what i tried, but with no luck:
var xml = XElement.Parse(BuyingModule.Properties.Reso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective-C – ShareKit customize Twitter navigation bar Does anyone know how to customize the Twitter navigation bar in ShareKit? (change colors and add image)
Cheers,
Peter
A: In SHKTwitterForm.m add the line given below inside - (void)viewDidAppear:(BOOL)animated
self.navigationController.navigationBar.tintColor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Too many timeouts in android? i have an Http client in my android app that changes messages with a server.
lately 2 out of every 3 ( approx) messages i send to the server get timed out
is that normal?
Thanks in advance!
Omri
A: Try finding the source for the timeout.
It's definitely not normal to get a timeout on a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sql Server Reporting Services Web Service access problem from a Silverlight Application I hope you can help me with this one... :)
I have a .net application which holds a Silverlight component.
I also have Sql Server 2008 R2 with Reporting Services installed.
The SSRS has been added to the Silverlight App as a Web S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tabs problem in Tablet fragment Like for list view there is ListFragment.So is there anyway to so that i can put tabs inside one fragment like TabActivity?
A: You can use a TabHost inside a fragment, see the Google IO app, it does this for the session details fragment:
http://code.google.com/p/iosched/source/brows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ActiveMQ with C# and Apache NMS - Count messages in queue I'm using ActiveMQ to send and receive messages using a C# app. However I'm having some difficulty just getting a count of the messages in the queue.. Here's my code:
public int GetMessageCount()
{
int messageCount = 0;
Uri connecturi ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Auto expand the element height, if content is bigger in multiple elements css I have this:
http://jsfiddle.net/UHrLH/1/
I set the height on the box element to auto, but min-height is 200px;
Now if i try to make more content in the first box, the height expands but it creates a big white space under it. I do not want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: add class to parent if child exists hi im using codeigniter to generate a form the form error only shows if there is an error for that field i to use twitter-bootstrap for styling so i need a way to add a class of error to both the div (with class="clear fix") and the input if (span class="help-inline") exists as ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Php Contact Form Subject Field I have this on my contact.php file:
'.JText::_('PLG_LABEL_NAME').'
<input type="text" name="name" id="name" value="'.$_POST['name'].'" />
<br />
<br />
'.JText::_('PLG_LABEL_EMAIL').'
<input type="text" name="email" id="email" value="'.$_POST['email'].'" /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save images into Database I'd like to know if there's a way to save Images (of the type .gif) to the sqllite-database. If yes how should my DatabaseAdapter look like.
Also is there a performance issue?
A: There's nothing special in storing image to SQLite. Just create table with BLOB record type and do smth ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: custom webdav implementation in IIS, gives 405 on PROPFIND I have created a custom webdav implementation with a HttpHandler, to serve files in a database via webdav protocol to a client.
On Cassini, my VS Development server I can access this without problems.
Now I am trying to debug this site in IIS, and that does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java EE Servlet/filter/phase listener difference and order of processing I want to know what the order of processing requests is and what's the difference between servlet (@WebServlet), filter (@WebFilter), phase listeners etc.
These methods have very similar headers (doGet/doFiler).
A: The processing of a reques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Stored Procedures To Run Automatically I have an asp.NET framework 4 web form website with user login capabilities etc etc... Im using visual studio 2010.
Each user has 3 login attempts once the log in attempts has passed 3, their account is locked. The only way to unlock these accounts is via the admin panel.
h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL find name doubles and sum values I have one table records with the columns:
|rec.id|rec.name|user.name|hours|
and the values respectively:
|1 |google |Admin | 12 |
|2 |yahoo |Admin | 1 |
|3 |bing |Manager | 4 |
What i want to do is take all of the records with the same user.id and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF Channel construct performance issue I have a strange situation, and I hope someone has experienced this scenario, and can help me.
I have a WCF service hosted on IIS.
From one client (Windows XP Pro SP3), a simple call takes less than a second, but from another client (also win xp pro sp3 but must be with anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using LINQ query syntax with custom Maybe monad implementation I am trying to write a simple Maybe monad in C#. I want to be able to use the LINQ query syntax with it. This is what I have come up with so far:
using System;
using System.Collections.Generic;
abstract class Maybe<A> {
public abstract Maybe<B> Selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to send the data from a TextField/TextView to another view? I have 3 TextFields and 1 TextView in my first view (proj1) now i want to show the data from these Fields to the next view on the click of a button-"Done!". How do i do this?
I know its a very basic question, but i've just started off with iphone app de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically grouping/nesting flat data in a TreeView I would like to take a flat list of objects and present them in a TreeView using custom groups.
public enum DocumentType { Current, Inactive, Transition, Checkpack, TechLog, Delivery }
public enum Status { Approved, Rejected, Pending }
public class Document
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding the background colour of a control using a trigger in WPF/XAML Okay, first off I have no experience of WPF whatsoever so please bear with me and apologies if my terminology is a little wayward... ;)
The following code snippet is part of a WPF application that I have inherited. The trigger governs whether man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExtJS drag/drop a CompositeSprite I want to set draggable on a CompositeSprite using Ext JS 4.0. There are examples on how I can set draggable a single sprite (draggable: true), but it doesn't work for CompositeSprite. If I write:
compositeSprite.setAttributes({
draggable: true
});
the result is each sprite in co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.