text stringlengths 8 267k | meta dict |
|---|---|
Q: JBoss AS7 + RestEasy : How to enable a custom MessageBodyReader using @Provider did nothing I have a wierd problem. I'm using @Provider to annote my Mapper Exception and it's work fine, but when I'm using it to annote the class below it won't work at all.
@Consumes("application/x-java-serialized-object")
@Provider
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to write jQuery inside XUL file? I want to use jQuery for my XUL files. Generally I use XUL Explorer to create and text each page individually & it's really to use script blocks inside the XUL files like this:
We can write scripts inside script blocks in XUL file itself.
<script type="application/x-j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python module with a dash, or hyphen (-) in its name I have an existing python module with a dash in its name, foo-bar.py
Changing the module name is something I would prefer to avoid as the module is shared, and I would have to chase down all the places it is used so that my special case will work.
Is there a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: What is the best way to edit XML file data? I have some xml files from an external client and i would like to edit the data within them NOT the xml parts.
Does anyone one know the best (preferably free) way to achieve this?
I have tried excel but I do not have the xslt style sheet and it will not let me save the fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Loop through all elements with class name 'blah' in jquery and use the contents of the element in a function This is what i'm trying to do in pseudo code
Find all <td> Elements with Class name 'OSGridRef'
For each <td> element pass the text of that <td> element into a function called ConvertToLatLong
Update an <td> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex to replace file extension I would like a regex to replace the .html file extension with a / so www.example.com/page.html becomes www.example.com/page/. I want to also exclude a folder from this rule so anything within www.example.com/specialdir/ should be excluded.
EDIT: This will be used in php
A: Better to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to free Generic list object memory in C# In my Silverlight application I have created a generic list object with a custom class. I have approximately 3lacs (300,000) records in it. I have to bind different data to the same list frequently, but sometimes I get a out of memory error.
How do I free the memory of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: examples of web services I had made numerous web applications in java..
I read a lot about web services
But don't know how to make working example in web services?
Also, don't have any idea about ejb,jmx,etc.
Is it necessary to put web application on some server in order to implement web services?
A: Depending on h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with python 2.4 and 2.4.4 in struct.unpack and win/lin i'm coding on a Linux debian machine with python 2.4.
My neighbour with Windows XP and python 2.4.4
He can run this code:
w1, w2, w3 = unpack("LLL", pack("LLHH", localtime, ipddr, counter, aid))
But when i try this code i become this error:
w1, w2, w3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to get the size of a file in .NET using a static method? I know the normal way of getting the size of a file would be to use a FileInfo instance:
using System.IO;
class SizeGetter
{
public static long GetFileSize(string filename)
{
FileInfo fi = new FileInfo(filename);
return fi.Length;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to get the Map view zoomlevel with solo abject in robotium for android implementing apk file only I am working on robotium to test an android apk file.this apk file implementing robotium testcases .in mapview one button is inbuild buttons zoom in and zoom out buttons I would like to get the map view zoom level o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with For Loop and Array The below method code is a FOR loop which builds 26 arrays (one for each letter of the alphabet) from an SQLite database.
The problem is that the return array called MultipleArray is only returning 16 arrays, and not 25 as it should. Can anyone spot why it is not returning the full 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Div problems using html, css, Javascript In an HTML document, I have created a div. In it, I created another div, and in this inner div I put a cross sign. I want to build an event function that closes the parent div when the user clicks on the cross sign.
An example:
<!doctype html>
<html>
<head><title>Div problems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Is it possible to mock android services under unit tests? I'm trying to write unit tests for my android application and I want to mock my service class. I want to test some error behaviors in the service, such as connection errors or file not found.
To simplify my question, I started a new Android Project and create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Winforms application shows differently on different computers when using Infragistics components and resizing routines I am developing a GUI using Winforms. Everything looks fine on the majority of testing computers (as in, the UI is displayed in the same way and accordingly to the pc on which the GUI was developed)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# Excel Interop: How to format cells to store values as text I'm writing numbers to an Excel spreadsheet from a DataTable and all of these numbers are 5 digits long with preceding 0s if the number itself is less than 5 digits long (so 395 would be stored as 00395, for example).
When entering these numbers into Exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: I need to change a tables unique ID column Not sure the best way to do this or if there is even a single best answer but here is the problem:
I have a SQL Server 2000 database that consists of at least 13 tables. Some of the tables have a unique id (SysName) so that there can only be one unique SysName value (alpha0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Including .cpp at end of template header file I was reading an older data-structures book and it said that when you're doing template class programming you should include the .cpp at the end of the .h file.
As far as I know you have to do full function implementations in your .h file for any template class member fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: gwt-unit cache does not exist I am facing this error when i try to commit my SVN .
svn: 'C:\Users\wageeha junaid\workspace\Copy of HOLS\gwt-unitCache\gwt-unitCache- 00000132A65F0D8B' does not exist
A: you should not commit the unitCache to the versioning system. use svn:ignore for that purpose.
A: Easy fix if you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass parameters / arguments using jQuery? <script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function chooseLocationType(location, title, demand){
alert(demand);
}
<body>
<input
name="tempstaff_location"
class="q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pass a variable into chrome.tabs.onUpdated.addListener() - Chrome extension I need to access the tab.Id of a window that my Chrome extension has created.
Here's the code I'm using to create a window:
chrome.windows.create({
url: fullUrl,
width: w,
height: h,
type: 'normal'
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modal FormPanel & DatePicker & MessageBox, how to manage masks I'm having some problems with the following scenario :
*
*I have a nested list which has a detailCard.
*When I click the detailCard I pop a FormPanel, now the detailCard is masked.
*FormPanel has a DatePicker, so after selecting a value with the pic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NetBeans: How to create a web service client that consumes a SSL protected Metro service? I am trying to add a web service reference to my application in NetBeans 7.0.1. The Metro webservice is protected with SSL and is hosted on the same computer that I want to run the client on. I am using the 'New Web Service Cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: recognize swipe gesture on UITableviews inside a UIScrollView with paging enabled Edit: I've begun implementing since I had first asked the question, so I'll rephrase the question with updated.
I've set up a UIScrollView with a UIPageControl and a series of UITableviews as subviews. It works except for one problem:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: soapUI vs rest-assured for REST API testing What's better for testing a REST API in built in Spring 3.1, soapUI or rest-assured? oAuth 2.0 is used for authentication.
A: It depends on who is going to create and maintain the tests. If it is going to be the QA then soapUI is the right tool. If it is going to be the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Chrome td border-bottom overlap In chrome and safari td border overlap over other.
I'm using css
.basketTable tr td {
background-color: #FFFFFF;
border-top: 1px dotted #666666;
color: #333333;
padding: 18px 9px 5px 0;
text-align: left;
vertical-align: top;
}
Totally clueless. I'm sure som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a formal definition of session integrity regarding servlets? This question is related to another existing SO question. HttpServletRequest's getSession(boolean) method mentions session integrity, but it does not define the concept.
I could not find an offical definition. Is there any? Does anyone know what r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google map using intent I have 2 tabs in my application and one of that is for location Map.
So i have set that tab to start an activity to show the map.
code:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Switch elements position with CSS3? With CSS3, is it possible to switch 2 elements position? I think I remember someone showing me this with items in a list but I can't seem to find the style by googeling it.
The reason I need this is im mobile optimising a site with media queries. On mobile devices my site has a 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting foreground window size wrong all the time I am writing a program on c# that implements mouse and keyboard hooks and once a specified key clicked it will go and grab foreground window and save it's x,y, height and width into xml file.
I am not sure what is wrong, but I keep getting wrong sizes and wrong param... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL : How can I use sub query in a query with group by section? How can I use sub query in a query with group by section?
I use SQL Server 2008 R2 AND Delphi 2010
I receive this error:
Cannot perform an aggregate function on an expression
containing an aggregate or a sub query.
Like this query :
select
t1.sen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring spec code related at the end I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I would like to refactor the following sample code in a my spec file:
describe "Making things" do
it "should make a thing" do
# Make the thing
...
# This is the same statement as that present in the "sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to update the EntitySet - because it has a DefiningQuery and no element exist I am using Entity Framework 1 with .net 3.5.
I am doing something simple like this:
var roomDetails = context.Rooms.ToList();
foreach (var room in roomDetails)
{
room.LastUpdated = DateTime.Now;
}
I am getting this err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "590"
} |
Q: How can I prevent HTML encoding on a FormView? I am trying to display a property (land) size in the ItemTemplate of a FormView control, and the size value is a string that is sometimes square metres and sometimes hectares, so I can't hardcode a <sup> tag suffix, but I need to display the unit as m<sup>2</sup> when a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running a process asynchronously with feedback from ASP.NET via WCF (C#) (Environment .NET 4.0 C# WCF and ASP.NET)
So this is the flow I'd like to have happen:
*
*User visits page.
*User uploads file via a control.
*User clicks "Commit".
*Page tells WCF service to begin "processing" this file (where a lot of b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Websocket server for Python3 outside HTTP server I am searching for a websocket server implementation for Python3.
There are some projects on the web, but they all run in HTTP-context.
I need a server that is started on command line, not by an HTTP-server (No HTTP-Handler object available)
Ideally, the code should n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: easy way to save the state of Silverlight Is there an easy way to save the state of a Silverlight application and retrieve it at the next reboot?
I know Silverlight can save and read data locally on the client, but what I seek is a method which behave similarly to what the Eclipse IDE do respect the perspectives and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what does ?body=1 do in rails 3.1 asset pipeline? In development, all my javascript assets are being appended with the body=1 get variable. What is this actually doing?
http://localhost:3000/assets/application.js?body=1
A: Trawling through the Sprocket source code we find:
# Returns a 200 OK response tuple
de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How can I move my broken Plone content to a new contenttype? The "old" content type is: collective.fhdirectory
The "new" content type is: collective.teamdirectory
All the "old" content on my website is now broken…
A: There is a products that specifically do this job:
Products.contentmigration.
Here a good howto on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: View Autocad Drawings inside Delphi application Is there a way ( ole or component ) to view Atocad 2004-2011 drawings inside Delphi application ?
A: I don't know for sure, but if you have AutoCad installed on your PC, try importing the ActiveX. It's in the Delphi IDE under Component | Import Component... | Import A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use DataTrigger from code in Silverlight? I have found a few examples that relate to WPF, but none for Silverlight.
So, what is a working example of setting up a Microsoft.Expression.Interactivity.Core.DataTrigger in code?
Here is the code I currently have, though it doesn't work (no exceptions, but nothing h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to programately record HDMI video? I am looking for a device that can be used, via an API, to record HDMI video.
I found several devices on the web but I am looking for one that does have an API that I could call and schedule recordings, that could be analysed lately.
Please specify if you were successful doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# WinForms Drawing without viewing A friend of nine gave me an idea for buffering: to view the drawing after the drawing process is completed. He told me to draw on a graphic (a panel in this case) which is invisible for the user. But when the drawing process is complete, the drawing gets applied on the panel. With... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Quartz.NET trigger a misfire if the Windows service was stopped? I'm using the Quartz.NET dll with AdoJobStore inside a Windows service. I noticed that the tutorial isn't very clear about misfires.
The question: Is a misfire supposed to be triggered if the Windows service was stopped when the job should have b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: send_mass_emails with EmailMultiAlternatives I try to build a newsletter application and want to send 50 emails with one connection. send_mass_mail() looks perfect but I can't figure out how I call this in combination with EmailMultiAlternatives.
This is my code that sends only one email with one connection:
html_co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Using a stored procedure inside of a stored procedure I have a stored procedure that queries some results. I have another stored procedure that needs to return the results of the first stored procedure and the results of a query to a table. Currently, the body of this stored procedure looks something like this:
EXEC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User input of program feature request in TFS2010 Is there any way that users can enter feature requests, so that they will appear in TFS2010?
We would like to keep an overview of all incoming requests and only create our own User Stories after verifying these requests.
A: At first, if I read this correctly, you 'd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: InkCanvas slows down when we have multiple strokes I am using InkCanvas for creating paint like application. When i use to draw multiple strokes on canvas it works very slow.
I have machine with very good configuration as : Intel(R) Core(TM) 2 Quad CPU Q6600 @ 2.40GHz (4CPUs),~2.4GHz and 2GB RAM.
When i have more th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jsf2 Richfaces render Question I am using richfaces4 and i have a question about rerendering components.
When i rerender my "link_panel" every row of the datatable will rerender its "link_panel". How can i change this behavior? I would like to rerender just tze current output panel and not for the complete datatabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to increase packet size for reading webresponse I am reading response from a web url (in our own network), using httpWebResponse. While reading the response using StreamReader ReadToEnd(), It fetching data in packets and each packet having size of approx 500 bytes.
How can I increase this packet size to approx 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing wxPython from source under linux I am trying to install wxPython from source under linux. The steps I followed were:
*
*Download wxPython from http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.12.1.tar.bz2
*Run ./configure --prefix=$HOME/Local
At the end of the configure process the output wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Check last Database backup date in C# - SQL Server 2008 I have a C# windows Forms application and when the start-up Form loads, i want to check the last time a backup was performed on the database the application connects to.
A: you could create a store procedure that does the work for you. then you can execute i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simplify a piece of php code, too many repetitions Cant really figure out how to simplify this. What i want is to get contents of these few pages and display them on my site. Is the right way just to repeat the file_get_contents for every page i want or can i do this in another way (maybe all the web sites in one fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert a .eps file to a high quality 1024x1024 .jpg? I have a .eps file that I can look at in Photoshop, and it has a very high resolution, sharp edges, etc. at even larger than 1024x1024.
With ImageMagick I want to convert this .eps to a 1024x1024 .jpg with very high resolution.
However, with the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Using POST requests to Solr from SolrNet Is it possible to send data to Solr using POST instead of GET? I use SolrNet and a Windsor container.
A: Yes, it's possible. You have to write a decorator around ISolrConnection that POSTs instead of GETs.
Installing the decorator is very easy in Windsor:
var container = ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: videoinput with C# I have a video capture (usb-webcam) application that currently uses very old VFW with p-Invoke hookup to C#. I'm trying to replace it and I stumbled on the VideoInput library, and later found VideoInputSharp. I managed to get VideoInputSharp into my application and it gives me the frame rate and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VS Windows Form App, Controlling Hover State (not Blue) some of my button states in my Windows Form Application are defaulting to a blue Hover state. I am pretty new to VS and I am mainly using the GUI to modify the design, but I don't see anywhere where I can control just the color of the hover state of the button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing parameter from one class to another Problem: I have a function that gets passed data and a size.
But I want another function dedicated to "getting the size" so i can call it and find out what it is.
Is there any way to point to what is passed into my function (the one passed data and size) and bring the siz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JmDNS 3.4.1, does it support IPv6? Does JmDNS 3.4.1 support IPv6? when I register a service with an IPv4 I can see it on other machines, but if I use an interface with an IPv6 address, I don't :(
Also, I get
No support for IPv6 in jSLP yet (see https://bugs.eclipse.org/328074), skipping interface...
does JmDNS us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error Reading string into array I'm in the process of creating a tile based game. This game requires a method to load a text file and write the numbers between the delimiter "-", to a multidimensional array. However, an error message "object not set to an instance occurs.
'Load map
Public Sub LoadMap(ByVal URI As S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: reorder columns of a csv file containing float, integer and text data? I would like to do a similar process to a csv file as detailed in this question, but I get an error message saying:
TypeError: list indices must be integers
The csv file that I want to rearrange has a combination of float, text, and integer d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: True and False for && logic and || Logic table Table true/false for C Language
I have heard of a table true false for C Language for and && or || is kind of the mathematics one for which they say if true+true=true and false+true=false
I'm just kind of confuse on this and I tried to do the research but couldn't find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Problem with Jquery UI Buttons - first one not loading? I am trying to use the Jquery UI to use radio inputs as buttons. This is the code I've got so far:
<div id="time-buttons"
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: T4 template for an MVC Controller with Entity Framework - member properties of the host (MvcTextTemplateHost)? Does anyone have a full reference of the members of the Host object I can use in the T4 template ControllerWithContext.tt that comes with MVC 3?
I've tried every google search I could think of, but the only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Resharper 6 create auto property by default When I write code and need new property, i simply write propery name as it would exist already and choose action from menu:
Problem is, that it generates code like this:
protected int SomeNewProperty
{
get { throw new System.NotImplementedException(); }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Monkey patching 'datetime' produces strange results I'm trying to make one of my libraries compatible with Python 2.6. It uses the method datetime.timedelta.total_seconds which was added in 2.7, so to make it work with 2.6, I wanted to monkey patch it into timedelta like this:
import datetime
if not hasattr(datetim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Difference to how declare instance variables If I have this class:
class G
{
Texture a, b, c;
}
and
class F
{
Texture a;
Texture b;
Texture c;
}
is there a difference in what access modifier is assigned or both are equivalent and thus how write them is only a style-preference?
A: There is no function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Injecting a named String using CDI I want to have a configuration parameter injected this way:
public class MyManagedBean {
@Inject
public MyManagedBean(@Named("user") String user){
....
}
}
So I tried to implement a producer method this way:
@ApplicationScoped
public class MyConfiguration {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to generate a random number for each page? I'm using node.js and express, and I'd like to generate a random five-figure number in app.js and return it to the client.
I'd like to do this on the server rather than the client, because I want to be certain that the number is different for every user who is currentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Function name in stack trace of SpiderMonkey I'm using the SpiderMonkey engine 1.8 and I'm unhappy with the way it creates the stack trace. We occasionally receive auto-generated function names in JavaScript-files from the server, which aren't really readable. On the client side I have access to other functionalitie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XAML vs. controls created at runtime In Windows Phone, what is better from performance point of view, to define controls in XAML or creating them dynamically at runtime? What are cons/pros for XAML and runtime controls?
A: I remember reading that Xaml loading is more efficient than the equivalent creation in code, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: insert string into middle of antoher string at an specific, but unknown point - objective c i have been struggling with this one for a couple of days
i have a block of string which is html , which i am loading into a web view as html text. what i would like to do is insert an image aprox halfway into the string, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Google plus-one button on a page that is refreshed with AJAX Is anyone aware of some code for Google's plus-one button that will work on a page that is refreshed with AJAX? It was very simple with Facebook, but I can't find any documentaion about this for Google.
Thanks.
A: I was searching for this too and found th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why is this an invalid column in SQL stored proc? I have the following SQL stored procedure that when I try to save it, it complains about "Invalid column name 'Goal'" in the last select statement.
Can someone tell me why this is an invalid comlumn name? I am doing basically the same thing for NetSales and it doesn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: grouping controller in subdirectories for nested resources I would like to organize my controllers in subdirectories. Here is an example:
routes.rb:
resources :locations do
resources :users
end
I would like to put my controller in the appropriate subdirectory:
app/controllers/locations/users_controller.rb
and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Upgrade page layout with sharepoint feature I use sharepoint 2010. I have a feature which contains some pages layout. When the feature is activated, page layout are applied. But when I deploy a new version of this feature with a new version of pages layout, page layout aren't take into considerations because they ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Environment info in Tornado I've been trying to use Tornado for some part of my application. For that, I want to find out the environment information of the user, that is, the browser and OS of the user.
In pylons, I can do that but I am not getting how to do that in Tornado/
A: All that information is stored in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: issue in openfeint when i call setHighScore function I am integrating openfient SDK in my app.
When I want to submit user's score and called a function as below it is giving error
'OFDelegate' was not declared in this scope
[OFHighScoreService setHighScore:scores forLeaderboard:@"112033" onSuccess:OFDelegate() onF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: T-SQL: Disable default FLOAT rounding when using Table with its View Good day!
Here is the problem of float rounding when I want insert data into Table using its View.
Data NEED to store as varchar in Table.
Table:
CREATE TABLE [dbo].[TestTableFloat_E]
(
[id] [int] IDENTITY(1,1) NOT NULL,
[FloatField] [varchar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get photos from camera roll? I tried to use ALAssetLibrary to get albums and photos. This is my code:
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
if(result != NULL) {
NSLog(@"See Asset: %@", result);
}
};
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Post form and return xml result I have a form which submits to a external url and the url returns a xml result whether the action did go well or not. I want the form to be posted and the xml result to returned so the user can see the xml result instead of the external url being opened in blank window without any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Different Size arrays when reading from a stream When writing characters to an array from a stream, is there a way to make the length of the array the exact number of characters if the size of the stream is unknown at compile? For example when reading text input into an array and the size of text can be any length.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML empty tag being converted to open and closing tag pair I have a large XML master configuration file that contains details for a a number of inter connected applications. Much of the configuration is common to all applications but some pieces differ, such as IP addresses, database connection strings etc.
I've en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android, getting an exception that is crashing my app I am a noob learning android by making a simple game:
There are a few buttons that the user can press
I show some questions on the screen and he has to press one of the buttons as the answer
when he presses the button I play a sound.
3 wrong answers and the game ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fade out on the parent not its children I have a page with a back ground image and a slider. Both of them are fadout and fadding in at the same time. The problem is that when i apply fadeout to the div containing the background image its children div also fadeout. Is there a way to avoid that.
<div id="background">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: problem in retrieving string I have array which has string like..
"Turn left onto <b>Sri Krishna Nagar Rd</b><div class=\"google_note\">Pass by <b landmarkid=\"0x39ed58475c24020f:0x170a2130a5880d5a\" class=\"dir-landmark\">California Academy of Visual Effects</b> <div class=\"dirseg-sub\">(on the left)</div>\n</div>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When not to use a gridview I Remember reading an article by Marcus Egger a while back about when to and when not to use a gridview style control. I can't find it now...
I have a member on my team who has just found some jquery grids and is determined to use them for everything...
I mean everything from lists of dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find Last 10 authors for a certain file in Git What is the best (from performance point of view) way to find in Git the last 10 users who changed a certain file ?
For example I want to know the last 10 committers (not the last 10 commits) of file foo.txt
A: I'd try something like this in *nix systems (w/ bash)
git ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bash: --help feature Is it posseble to have a --help argument with getopts?
I'm currently using this to code the help feature:
#!/bin/bash
PROGNAME=${0##*/}
PROGVERSION=1.0
usage()
{
cat << EO
Prog description goes here.
Usage: $PROGNAME
Options:
EO
cat <<EO | column -s\& -t
-h|--help & show this output
-v|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to show loading image in telerik grid using asp.net mvc razor Can you please show me a sample code of loading image during data binding using telerik grid asp.net mvc Razor.
Thanks in advance.
A: Check out the client events for OnDataBinding and OnDataBound. I would show a loading spinner when the OnDataBinding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a web view to the split view based application How to add a web view to the root view controller in the split view based application.
The following is the code which i am using,
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"rightview"ofTy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to taken push view object into next view in flex My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a trigger on aspnet_membership makes login fail I'm doing some maintance on an older web application where we have 2 DB's. One for the WWW frontend (DotNetNuke) and another for the admin backend. Both of the applications use aspnet_membership for users, and we want to sync logins between the app's. I though... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating REST API for existing MVC based website I have a website developed using ASP.NET MVC3.
I now want to expose a REST API for others to use which will expose the same features as the website.
In the website, once a user has logged in and credentials validated against a DB, the session manages the logged-in sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: sprintf with C++ string class I really liked the answer given in sprintf in c++? but it still isn't quite what I'm looking for.
I want to create a constant string with placeholders, like
const std::string LOGIN_URL = "%s://%s/chronicle/spring/api/logout";
and then build the string with replaceable parameters like:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: BibTex grammar for ANTLR I'm looking for a bibtex grammar in ANTLR to use in a hobby project. I don't want to spend my time for writing ANTLR grammar (this may take some time for me because it will involve a learning curve). So I'd appreciate for any pointers.
Note: I've found bibtex grammars for bison and yacc but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are things/points to keep in mind while developing a reusable custom control? Windows Form (in C#) - I need to create a custom listbox control for the following requirement:
There is a listbox with a long list of items. I want the user to be able to click in the list, and then start typing and have it automat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Question about weird pointer I study C. Digging in some C source code where I found that line. I have read about pointers, but I did not see such an example.
char *uppercase (char *s);
What that mean ?
A: It's a declaration of a function that takes a char pointer and returns a char pointer.
A: char *uppercase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing a C# string to VBscript I am using a windows form and am trying to pass a string to a vbscript. The program is asking the user to select a folder, I am trying to take the folder selection and pass it through to the vbscript.
C# Code:
String SelectedFolder = @"C:\Users";
folderBrowserDialog1.Selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mapping to a nested class I am getting the following error when my application runs:
System.InvalidOperationException: The type
'ContactModels+Contact' was not mapped. Check that the
type has not been explicitly excluded by using the Ignore method or
NotMappedAttribute data annotation. Verify that the type wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.