text stringlengths 8 267k | meta dict |
|---|---|
Q: How to generate EJB from WSDL I know how to use @WebService and @Stateless annotation to write an EJB and expose it into a WebService.
But because we're try to use other tools to generate WSDL first and then create Java code. I can use WebLogic's WSDLC to generate a service code from WSDL. But the problem is that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to insert and retrieve image from SQL Server? I have written code to insert an Image in SQL server but it throws an exception:
String or binary data would be truncated. The statement has been terminated.
Here is my Code for insert image:
FileStream imageStream = new FileStream(CvVariables.IMAGE_PATH, FileMode.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Package-private class within a .java file - why is it accessible? Consider the following code, where the HelloWorld class has default or package-private access:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
And assume that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTML DOM w3schools clarification just reading the W3schools HTML DOM tutorial. There's a paragraph that makes no sense to me.
The bit that doesn't make sense to me is:
A common error in DOM processing is to expect an element node to contain text.
However, the text of an element node is stored in a text node.
In th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: segfault when using mmap I'm trying to use mmap for the first time to store a tree object with a lot of data in it. The tree class basically contains a pointer to the root of class Node, and each Node instance has an array of pointers to it's children. I think mmap is doing what it is supposed to, because I can acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Eclipse doesn't recognize android SDK I set android SDK on centos(linux)
but then I get
when I'm trying to get to Android SDK and AVD Manager in Window menu.
Why??
I have the latest ADT plugin, I've tried android_sdk revision 13 and 12, both didn't work. WHY?
A: With Windows "X.X" OS, being any variant of the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Two-dimensional list inside Jquery Template Im having some trouble with Jquery Templates and can't seem to figure out what's wrong. It's probally the way I'm using an each inside an each (Couldn't find any good examples how to do this).
The error appers when running the .tmpl function.
$("#calendarListTemplate").tmp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: web2py: how to download image with SQLTABLE I'd like to know if it's possible use SQLTABLE to build up a list of images. Images are in a database table, but I don't want just a link to download.
A: You can do it in a number of ways:
First:
db.table.field.represent = lambda r, v: IMG(_src=URL('default',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OSMdroid : How to load offline map from zip archive - MapTileFileArchiveProvider I really need some help with the OSMdroid library. It is useful to have maps stored in sdcard as zip files. Also, maps can be unzipped and the image files may be used directly for faster rendering.
I managed to load tiles from my sdcard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to efficiently fetch one column using CoreData I have a Table with 50,000 records (table has 8 columns). I need to display only 1st column on the Table. I need an array which contains all data from Table only from 1st column. How to use NSFetchRequest to get all record from 1st column of the Table using Core Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: css query for selenium css=table#playlistTable tr:nth(0) span[class='playlistNumDisplay smallFont']
I am getting an error in this css above.
I want to basically go to the first 'tr' under 'PlaulistTable and then under the first 'tr' I want to select span[class='playlistNumDisplay smallFont']
what wrong am I doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting truncateToFit on Label in Tree I have a tree component sitting in a divided box. I want to display '...' on the node labels if the divided box is resized. I have a custom itemrenderer and have been looking at the labelFunction property as well as trying various approaches in the custom itemrenderer. Not havi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to use a namedtuple with SQLalchemy? I have been trying to get a namedtuple to work with SQLalchemy, but to no avail.. Web search hasn't been very illuminating and I'm new with Python and SQLalchemy so I'm not really sure if I'm chasing windmills :( The basic idea is that I have a namedtuple, ie:
Poin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how debug the vc++ Dll How to debug the vc++ Dll in visual studio 08.I also include breckpoint and pass the exe but still not succeed.The error message that
The breakpoint will not currently be hit.No symbols have been
loaded for this document.
A: The breakpoint will not currently be hit.No symbols have been l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The name of element in the #process callback (Drupal) I'm trying to create a new form element representing the bbcode editor, which is a compound object of the toolbar and native textarea element.
So my hook_element_info() looks like:
function bbeditor_element_info() {
$type['bbeditor'] = array(
'#input'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery Anchor Button doesn't apply css in ASP .net all, I follow the example of Jquery ui button and translated the html code to asp.net
as follows
enter code here
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is correct JDBC URL syntax if Oracle wallets are used? There are 2 URL syntax, old syntax which will only work with SID and the new one with Oracle service name.
Old syntax
jdbc:oracle:thin:@[HOST][:PORT]:SID
New syntax
jdbc:oracle:thin:@//[HOST][:PORT]/SERVICE
What is correct JDBC URL syntax if Oracle wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: DocX with filestream doesn't save So for a project I am creating Résumé's and i need to save them into a docx file.
It is a ASP.NET MVC application and for the docx generating I'm using the libray docx to create the document.
I can create the file but the filestream doesn't add the content i put into it.
Here is a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hashmap crashing eclipse I'm trying to load a hashmap by parsing a plist file in Android, using the plist parser from here: https://github.com/ZhouWeikuan/cocos2d.
This has been working fine in the past, but recently my program has been getting null-pointer exceptions when using this hashmap (after parsing).
When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cxf NullPointerException while deploying on glassfish I'm trying to deploy war on glassfish3 and i get exception:
SEVERE|glassfish3.1.1|org.apache.catalina.core.ContainerBase|_ThreadID=10;_ThreadName=Thread-2;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: org.springframework.beans.factory.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: update model from database not working I'm trying to generate my model from the database as usual, creating the model from the database using entity framework. I go through the wizard, add the connection string, test it, I select the tables I want to import, everything as usual.
However the model is not created, I t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JBoss6 with RestEasy client I want to consume a REST service in my web app (.war with 6.0.0.Final), and recently switched from jersey to resteasy (because of JBoss6 with REST client (jersey-client)).
My client code is this simple example (perfectly working when called from the console):
ResteasyProviderFactory provi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to synchronously repaint custom console using threads? I have a JScrollPane(packed with text area) that acts as a custom console for my swing application. Here is the code for my console
class InternalConsoleFrame{
static JTextArea outArea
static JScrollPane consoleHolder
static setUpStreams... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: issue with CustomView drawing in my application What is wrong in my code here.why it is not drawing my customview on screen.
class CustActivty extends Activty{
private ShapeDrawable mDrawable;;
Path path;
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: OAuth "nested" params The problem with the Ruby library OAuth (0.4.5) when I use a "nested" params in the query.
Example:
That does not work that request
current_user.myapp.client.post('/api/weights', {"weight[value]"=> 65})
I got
---! Ruby / object: Net:: HTTPUnauthorized
body:! str
str: Invalid OAuth Request
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Register RazorViewEngine only for C# (only for .cshtml files) I am only using RazorViewEngine on one of my ASP.NET MVC 3 applications and I cleared Web Forms view engine out with following code inside Application_Start method of my Global.asax.cs file
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: For Loop with Google Geocoding - High Error Rate - iPhone I am using the below code to fetch location information via Geocoding and then add a map pin to a Google Map View. The code uses a For loop to cycle through each place in my database. The problem is that the code fails to return location info for about 50% of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: browser alert about open / popup new window I have a link that when clicked, the browser will open a new window. This the code for the click event on that link:
var clickView = function(){
window.open('/client/item/show/' + itemID);
return false;
};
I als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: writing a compare point method im trying to write a compare point value eg does 1,0 equal 1,0 (true)
this is what i have so far.
any ideas?
class Point
attr_reader :x, :y
def initialize x,y
@x =x
@y =y
end
def compare_point(x,y , a,b) # used to compare points
if(x=a, y=b)
puts correct
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling SignalR hub clients from elsewhere in system I've set up a SignalR hub to communicate between the server and client. The hub server side code is stored in a class called Hooking.cs. What I want is to be able to call a method defined in Hooking.cs to allow me to broadcast messages to any connected clients fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: Finding User ID from Sessions My question is similar to this question. Though I have not been able to figure it out yet. I want to be able to find the user id from the session. I understand that this can only be done within the controller, though I need this for a model method called Activity.log...
In my controller... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Push Notification iphone (my device not receive notification) I am facing the problem that my iOS device does not receive any push notification(s).
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exporting Drupal 6 to Wordpress latest (3.2.1?) I have inherited a website in Drupal. Cut a long painful story short: I want desperately to move to sanity. WP 3.2.1 (latest as of this writing) is the choice.
Yet, it looks like the export process in Drupal requires a PhD in mechanical engineering. Googling for somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open swf file than works with socket Sorry for my bad English.
I have the following problem:
I have a .fla file, that works with Socket class. There is a server(written in Delphi XE, but it does not matter). I connect to it from my .fla.
When i execute my .fla from within Flash Professional CS5 everything works fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: concurrent requests to Active Directory I am using python-ldap to connect to a remote Active Directory.
Is there a way to find out/ tweak the number of concurrent connections supported by Active Directory?
A: According to this KB article, the limits are specified in cn=Query-Policies,cn=Directory Service,cn=Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Zend Lucene returns all hits if nothing is found? I have this query: +document_type:client name:something to search and if something to search is not found the Zend Lucene returns all documents containing +document_type:client and I would like to return empty set.
I've tried to add AND operator between terms, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java web service client not decoding base64 I'm currently trying to implement a WS client in java but I have the following problem:
The server is running in IIS 7.5 and was implemented with c#. It is sending a base64Binary string (which I believe it is supposed to since the original data was a byte array) but on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacing ggplot2 legend key for geom_line with symbol I have a line plot of prices for three stocks, which I normalise by taking the percentage change from the beginning of the period I am looking at. This seems to work fine, but instead of the coloured lines on a grey background that currently make up the legend k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Preload ASP.NET MVC views in IIS warmup step I recently began playing around with the ability of IIS to apply a warmup step step to my web application through use of the IProcessHostPreloadClient interface (look here for for guidance on how to set this up). This worked out great, or at least I thought it did, becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Finding out what Javascript will run and when What's the best way of finding out what Javascript will run and when? I've outgrown placing functions inside setTimeouts to delay running code to when I think the dependencies have already loaded, etc.
A: Assuming you're not interested in putting the code that needs tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SmartGWT: horizontally center an HTMLFlow I got an VLayout which occupies 100% of width on the screen.
It contains some HTMLFlow elements, they all are centered. There is one Flow that has the same width as the screen and I want to "split" it in 2
e.g. from
"Time remaining: 01:01:01"
to
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: R CMD roxygen - exec: 65: roxygen: not found Roxygen works fine from within R, but for some reason it craps out when I try to call it from the command line. Noticed a similar complaint from someone on windows (this thread: R CMD roxygen not recognized) but I'm on a nix box right now. Tried installing from source (i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: when to use Dependency Property in WP7 / Silverlight What is the speciality of Dependency property in Silverlight. I searched many sites but i won’t get a clear cut idea about this. Can any one let me know in what context this dependency property can be used in Silverlight.
A: Here is the simple rule of thumb. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass the linq returned xml data to another function? var serviceLine = from ServiceLine in DataXML.Descendants("Serviceline")
select new
{
ServiceLineName = ServiceLine.Attribute("Name").Value,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Game window application with additional console window My previous demo was an XNA project that had a game window, as well as a console window for debugging information, however, the option is either not there or moved in a C++ project. Does anyone know how to enable a console window that will run alongside a game w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add files to uploadify from code? I like uploadify but I need to incorporate a drag'n drop module for the browsers that support this feature.
Right now the only way to select files is via the browser dialog window. I'd like to have something like:
$("mySelector").uploadify("addFile",{src:...; name:...; etc:.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: custom templated listboxitem trigger bind to the listbox I have a class inherited from ListBox and a custom ControlTemplate for the ListBoxItems.
I want to change the ListBoxItems background if a condition is true. I tried to use DataTrigger for this. I don't want to check the condition in the ListBoxItems context o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to distribute a Python package that requires a minimal Python version I have a Python 2 project ('foo 0.1.7') that required Python 2.4 or later.
Now I ported it to Python 3 ('foo 0.2.0') in a way that it still is compatible with Python 2, but the requirements are now lifted to Python 2.6 or late... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: instead of ? I've inherited an existing website to maintain and upgrade.
One of the site's quirks is how it does buttons.
It has html like this:
<div class="btn">
<a id="dv_remCont" runat="server" href="#" onclick="removeContact();">remove contact</a>
</div>
and css like this:
div.btn a {
font-weight:b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.net Script Manager Memory Leak I am using asp.net script manager and the code is as given below:
<asp:ScriptReference Path="~/Scripts/jquery-1.5.1.min.js" />
<asp:ScriptReference Path="~/Scripts/Core.js" />
<asp:ScriptReference Path="~/Scripts/TomasCore.js" />
<asp:ScriptRefe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Host WCF in a Windows Service Using TCP I'm trying to host a wcf service (tcp) in a windows service on Windows 2008 x64.
I first made a normal program as host and that works fine.
I then made a windows service with the same config:
http://msdn.microsoft.com/en-us/library/ff649818.aspx
The server installed fine en s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Better way to build XML string via Javascript I currently have the below to build up a XML string which will get sent via a socket and was wondering if there was a better way to build it in terms of readability.
I thought I had read somewhere where you can have shortcut type ways of adding elements to the DOM but d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate time elapsed since an action without the danger of the user changes the time Hi i am developing an application and i want the user to be able to kill an enemy again after 12 hours have passed. How can i do this to avoid the possibility of the user changing the time in his phone and enabling again th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Start camera activity in a thread and it runs twice I am using a thread, (tested Runnable, Asynch) to implement a delay and then start camera activity, but the problem is after taking a pic and returing back camera is launched again, so my camera activity is lunched twice, what could be the sol. I have used Runnable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python generators: correct code recursing a tree class Node(object):
def __init__(self, lst):
if type(lst) == list:
self.value = lst[0]
self.children = lst[1:]
else:
self.value = lst
self.children = []
@property
def ChildElements(self):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how to detect touch on rotated sprite in cocos2d I have rotated sprite to 90. I checked the touch location of the rotated sprite as follows:
matchsprite.rotation=90;
CGRect r=CGRectMake(matchstick.position.x, matchstick.position.y, matchstick.contentSize.height,matchstick.contentSize.width);
if(CGRectContainsPoint(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do i pass an array function without using pointers I have been asked in an interview how do you pass an array to a function without using any pointers but it seems to be impossible or there is way to do this?
A: Put the array into a structure:
#include <stdio.h>
typedef struct
{
int Array[10];
} ArrayStruct;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: python regular expression exclude from match string I have 3 strings
a ="keep the your pass ABCDEFG other text"
b ="your pass: TESTVALUE other text"
c ="no pass required other text"
I want to get capital values after pass, like this
re.match(r'.*\spass:?\s([a-zA-Z]+).*',a,re.I).group(1)
re.match(r'.*\spass:?\s([a-z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Null is type object, so it's truthy? What's going on behind the scenes? I'm reading in my book, "Elegant JavaScript", that null == true evaluates as false. Using an interpreter, I have confirmed this to be TRUE. However, later in the chapter--in fact, on the same page--, it says that when null is given as the cond... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Keyboard hide event with BACK key I've noticed in the Android Market Application, when you click over the search button, it shows the keyboard, but when you click the back button, the search EditText becomes invisible and the keyboard is hidden. The problem is that I can't hide the EditText after the keyboard is hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why does my Timer come back null when I have inherited it? I have the interface:
public interface IProcess
{
void Step_One();
void Step_Two();
Timer ProcessTimer{get; set;}
}
the base class..
public class ProcessBase
{
protected Timer processTimer;
public Timer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery issue in ie7 and ie8 I have a problem in jQuery in IE7 and IE8. In all other browsers the script is working fine.
When I copy to clipword I found this error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.215... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disjoint union-find analysis In disjoint union suppose we have to merge two trees whose heights are respectively h1 and h2. Using this technique, the height of the resulted merged tree will be max(h1, h2) if h1 not equal to h2, or h1+1 if h1 == h2. Using this technique after an arbitrary sequence of merge operation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the simplest way to randomise the order of frames in AS3 without repeats? I have a scene in a flash project where I want the order of the frames to be randomised at run-time. I want each frame to be shown exactly once. I want the duration of each presentation to be constant.
I've been playing around with a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assembler instructions bne and br (NIOS II). How is their offset calculated? I have this assembler code, which I'm supposed to translate into machine code in binary form:
.text
.align 2
.global main
.equ val,0x4712
main:
movi r16,val
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: get webmethods available in webservice url I am using c# vs 2008.
I need to call a web service URL in c#.
I need to list the methods in a check box in windows application,
for eg. i am calling http://localhost:l222/Test.asmx
It has three methods.
GetUserDetails
GetCompanyName
GetCustomerDetails
I need to list the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grouped UITableView shows weird square border I am having a weird issue with a grouped UITableView. It shows a square border only on one of the views in the app, and only on the terminal that has iOS 3.1.3. Here you have an screenshot of the thing:
I am setting it up only through the Interface Builder, here are the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android.graphics.Matrix -> How does postScale work Good afternoon,
Lets say I have a Matrix. I have 2 values, .9 for zooming out and 1.1 for zooming in.
When I apply the matrix.postScale(0.9, 0.9); 3 times
Then I apply the matrix.postScale(1.1, 1.1); 3 times
I am not back where I started!!
for example, here are t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Encoding of tweets acquired through twitteR package I don't know how to tell searchTwitter() function to encode tweets like UTF-8. I want "šćčđž" or "шђжћч" characters in the list. Can anyone help?
A: Try looking at Tony Breyal's answer regarding RJSONIO and see if it helps:
encoding issue using twitteR R package f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I reference a variable in a Perl substitution script? I am writing a Perl script to change all URLs within several files in one directory from camel case to lowercase.
e.g. from
<a href="FooBar.html">
to
<a href="foobar.html">
This test substitution correctly renames all URLs to foobartest.html as ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wp7 app version change I want to submit update for wp7 app. My current version is 1.0. I want to give 1.1 for the update. For submitting update should I change the version attribute of the WMAppManifest file manually or will it be updated automatically based on version no that we give in product form in the app hub.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android Listview clicking on name and then it displays an image Hi I have a created a listview of different countries and want to display and image once the country has been clicked on. I am using the following method:
public void onItemClick(AdapterView<?> parent, View view,
int position, long id)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - center imagebutton in runtime I've got an imagebutton defined in an xml-file. During runtime, I want to make it visible (possible with setVisibility(), so it was no problem) but I also want to center it horizontally, like the XML attribute android:layout_gravity="center_horizontal". How do you do that duri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Access to MethodInfo in OperationInterceptor I created a couple of custom attributes that I attach to my methods in the handlers. The custom attributes are more than mere 'taggers' like e.g. 'RequiresAuthenticationAttribute'. A simplified example:
[EnforceParam("Account")]
In my interceptor, that gets called for me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting recent selection in multiple select box I want to populate content depending upon the multiple select box selection.
I can get all selected value of select box.
Using
$('select').change(function(){
console.info($(this).val()) // it gives me array
});
But i want only the recent selection/deselection user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: build vp8 on android I'm trying to build the vp8 codec for Android. I ran the configure.sh script and the makefile for armv6 with sourcery g++ which succesfully produced libvpx.so. After that I wrote a JNI wrapper and compiled it with ndk-build succesfully. When I run this on a Gingerbread smartphone I got a Unsatis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: automatic sms sending in android I want to develop a sms application which send automatic sms to the "sms sender" when receive a sms, with a predefind text.
First i created the broadcast receiver class
public class MyBroadCastReceiver extends BroadcastReceiver {
private final String MSG_BODY="Thank you for contact ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: id confirms to a protocol, But where will be the implementation? It's probably a naive question, But I am feeling kinda lost. I read iOS developer guide about protocols at Apple Documentation, But didn't quite make sense. Let me explain my dilemma in a shortest possible way.
Lets say I have protocol as below,
@proto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Implementing a binary counter using std::bitset I want to implement a binary counter in C++ using std::bitset. If I explicitly develop an addition function for bitset then the complexity of the algorithm would go up to O(n^2). Is there any way to do this O(n)?
Also are there any good descriptions of Horowitz and S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIImage with NSData without size I have this code:
...
NSData * dimage = [[NSData alloc]initWithData:[datosImagen objectForKey:@"Image"]];
UIImage * imagenAMostrar = [[UIImage alloc] initWithData:dimage];
UIImageView * imAMostrar = [[UIImageView alloc] initWithImage:imagenAMostrar];
...
I need resize my UIImageView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Refreshing data without reloading I want to refresh data in ASP.NET without reloading page.
If it is possible I don't want to use AJAX.
I am interesting in clearly .NET
A: Try PokeIn a Comet implementation for ASP.NET
You can also use SignalR which is officially supported by Microsoft.
A: If you don't want to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a nice "LOADING..." animation
Possible Duplicate:
Pretty alternative to JProgressBar?
I have a process which takes several seconds to load, and I want to create an animation in Java Swing until it finishes loading.
I'd like to avoid using a typical ProgressBar and use a nice modern infinite progress lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do i make a forever running service in asp.net? From my other question i learned that asp.net kills my threads because 'it feels like it'. These threads are my daemons that handle thumbnail generation, registration emails and other things.
I was told to use a 'Windows Service' but what i know of, its an app you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP + cURL not working Trying to get the content of the a certain URL using cURL and PHP.
The code is supposed to run on the sourceforge.net project web hosting server.
code:
<?php
function get_data($url)
{
$ch = curl_init();
$timeout = 10;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HttpURLConnection get uploaded path of server in android I am uploading a file to a server. Now I want to check whether the file is uploaded or not. So I want to get the path of the uploaded file on the server. Can anybody tell me how to do this?. If I get the path I will check in the browser.
Thanks
A: Actually it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get click event for Graphics in asp.net We are writing a text in an image using System.Drawing.Graphics.Drawstring. Below code is shown
Bitmap bitMapImage = new System.Drawing.Bitmap(@"D:\ABC\Chart1.png");
Graphics graphicImage = Graphics.FromImage(bitMapImage);
//Smooth graphics is nice.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not able to write to sys/class/uwb/scan file through JNI using android application define SCAN_FILE /sys/class/uwb_rc/uwb0/scan
My aim is to write to a SCAN_FILE in android as in
" echo 9 0 > /sys/class/uwb_rc/uwb0/scan "
I want to implement this using android application and file operations with JNI integration... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Checking for existing row using a DateTime column fails I'm trying to find a row using a DateTime value. If the row exists, return it; otherwise create a new row.
The problem I'm seeing is that the find sql uses a different datetime value to the insert. As there is a unique index on my datetime column I get a duplic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Doesn't std::piecewise_construct cause a ODR violation? std::piecewise_construct, defined in <utility>, has internal linkage since it is declared constexpr. I wonder if use of std::piecewise_construct in a header can violate ODR. For example:
a.hpp
#include <utility>
#include <tuple>
struct point
{
point(int x,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to store data with Facebook.JsonObject or Facebook.JsonArray I use the FB C# sdk 5.2.from http://facebooksdk.codeplex.com/
and develop with .net 3.5, so i cannot use the dynamic, and the var type is able to get the data, but the format is so ugly and hard to get the data i want.
I want to know how to store data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to subtract consecutive columns in a crosstab report in iReport I have developed a crosstab report in iReport. I want to subtract values from consecutive column values. How can I do that??
For e.g. If the cross tab report shows the following:
Jan Feb
Salary 10000 20000
Basic 5000 10000
But I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error in template: Iterator was not declared in the scope trying to make a template, but I have an error in gcc4 but not in VS2008. This is the code that fails:
#pragma once
#ifndef _ZELESTE_ZEL_GPX_GENERALMANAGER_H_
#define _ZELESTE_ZEL_GPX_GENERALMANAGER_H_
#include "../internal/cuCoreLib.h"
#include "boost/funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Listview Pagination - Index Out of range error? I am having trouble implementing pagination onto a list of products held within a List View. Currently my pagination set up works fine if I do not call the ItemDataBound method but once I do, I repeatedly get the error that an Index was out of range when I try to navig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change in website layout when reducing browser size When I reduce the browser window size, the top and bottom footers start to shrink, pushing the content that is inside the footers (navigation bar on the top and the bottom) off the footer and it starts to overlap with the main text body.
Does anyone know why this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tools to view partial data that arrived at the browser I'm using flushing technique to flush of my page from server to improve performance. Are there any tools available which let me look in to the partial data that has arrived at the browser end?
A: fiddler has an option to do it
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7634452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Comments Plugin styling I added the facebook comments plugin in my site, I wanted to add styling to the plugin according to my site style. The below code which I added in mysite.
<fb:comments href="<url>" num_posts="2" width="500"></fb:comments>
Please suggest me how to do this.
A: This is not possible to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Conditionally evaluated debug statements in Python Python has a few ways of printing "trace" output. print, import logging, stdout.write can be used to print debugging info, but they all have one drawback: even if the logger's threshold is too high or the stream is closed, Python will still evaluate the arguments to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is it possible to browse tasks in MyLyn same way as in Outlook? I'm trying to configure MyLyn and was hit by very strange problem. All issue control system I know use Outlook-like approach: filters to the left, issues at top right and issue description at bottom-right. Typical workflow while browsing issues is to cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running AJAX code in Objective C I am developing a native application for iPhone. I would like to know if I can able to execute AJAX code in Objective C.
Thanks!
Nilesh
A: As from word AJAX the meaning is Asynchronous JavaScript and XML
So you need asynchronous HTTP library to fetch JSON/XML from remote server.
Tak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fluentvalidation inject business object to validator I am using fluentvalidation and use structuremap to inject validators for actions in asp.net mvc3. I have problems to inject my business objects to validator objects. I get an error like this:
{"StructureMap Exception Code: 202\nNo Default Instance defined for Pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7634464",
"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.