text stringlengths 8 267k | meta dict |
|---|---|
Q: Python: Using CVXOPT for quadratic programming I'm using CVXOPT to do quadratic programming to compute the optimal weights of a potfolio using mean-variance optimization. There is a great example at http://abel.ee.ucla.edu/cvxopt/userguide/coneprog.html#quadratic-programming. However, the arguments are in a regulari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Switching back to Objective-C from MonoTouch I know I'm not the first and probably many people ask similar questions here regularly and this question probably another candidate for closing votes. I'm not trying to start another round of endless holywars and I'm not asking which language is better. It's not the quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Multiple marker using android and google map In my application i want to add more than two markers in a Google map. Simply I can add one marker But i don't know how can i add multiple marker. Please tell me how can i do that.
A: This is a matter of having your ItemizedOverlay handle more than one marker, in your si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Separate "namespaces" in HTML I'm having problems with my application due the ID collision. The application basically uses AJAX to load code snippets on user demand. These snippets are very different, but sometimes, a code snippet uses the same ID than another in a HTML tag.
Imagine user asks for snippet 1 and gets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get a backgroundworker to report more than just an int? I want the backgroundworker to send back some custom information to the ProgressChanged event handler, but it seems that all it can send is an int.
Is there a way around this?
Thanks
A: Use the UserState parameter.
A: The ReportProgress has an overlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.NET RegEx to parse valid Paths from a text file Good day,
I'm attempting to parse a text file containing several Windows paths; I'd like to use regular expressions if possible, and I'm using VB.NET.
The file is formatted somewhat like so:
M - Network Mode
C:\Client\System\ - System Path
C:\Client\Products\ - Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: No block given error when executing rails and rake commands I went to generate a new controller for my rails app today, and I was confronted with a rather disturbing error. When I run rails generate controller Matches I get the following error:
rails generate controller Matches
/Library/Ruby/Gems/1.8/gems/actionpack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wait for an NSURLConnection I have code that sends away a HTTP POST connection. I want the method to wait until I get a response from the server for it to continue. The reason I am doing it this way is because I am integrating new code (asynchronous post vs the old synchronous post) into our application and I am loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which image class should I use from .net to make a library more generic as possible? I'm building a library that I would like to make it as generic as possible. Specifically, I would like that it will work both on Winform and WPF (ok WPF is more important by the way).
This image class must support 4 byte colors (ARG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use perl or awk to search for numbers in a file and increase them by constant amount from the command line I have a file that has a bunch of 3-digit numbers that I need to increase by a certain amount (actually, I need to increase all numbers that are greater than a certain value by a constant amount). How can I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java: JAXB: Marshelling of JAXBElement to xs:date not correct I have a problem using JAXB. I've created my Java Classes via xjc (using an xsd-schema) and has a global binding for the XML-Datatypes xs:date xs:dateTime and xs:time to java.util.Calendar with parse and print method.
Everything works fine until I marked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SVG2PDF compilation problems I'm trying to compile this and having no success (Win32) using CYGWIN... make gives me a load of unreferenced functions which appear to be part of the Cairo dependency (I have the source for this and still the errors persist)
Is there a binary available that I can download?
Thanks
Martin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return @@Identity or Scope_Identity into C#
Possible Duplicate:
Retrieving the value of RETURN @@IDENTITY in C#
I have a class with different methods and constructors. In SaveDB() I select @@IDENTITY but I'm not sure how to return it into C#. I see there are some other posts about this on Stack, but I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Accessing Returned Javascript Variable in another Script I've got script (a) that is a javascript script in which I've go this function:
function csf_viewport_bounds() {
var bounds = map.getBounds();
var ne = bounds.getNorthEast();
var sw = bounds.getSouthWest();
var maxLat = ne.lat();
var maxL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I get jQuery or Javascript to change css based on the current url? I have a navigation area in a separate file from my content, and I pull together the two using a php include. I want the navigation area links to change color based on whatever page is active, i.e. the current URL. So I want jQuery or Javascr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Modify the bytes read by an InputStream while reading, not later I need to make a simple sort of encryption so that the normal end user can't access some files easily.
The files that are read by an FileInputStream are html files, pngs, jpegs and different simple text files (javascript, xml, ...)
What I currently do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: DirectShowLib Capture Device in .NET 4 error While using videocaptureelement in WPFMediaKit, I cannot run it with .net 4 VS2010 application, however the application runs fine in .NET 3.5 VS2010 environment.
The application just pop out without error (Although i catch exception in domain and application). Debugging ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rhino JS NativeArray types I've been experimenting with the Rhino -> Java interoperability and have run across something that I can't quite explain.
I'm invoking a script from Java, coercing the result into a Java object, then retrieving the results.
In my JS:
this.objectmap.put("list", [1,1,2,3,5]);
Setting a brea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maximum number of queries by a single Facebook app Is there any limitations on the number of queries that a single Facebook app can make?
A: It depends on the query and the access_token used. There are no documented limits and even if there were, it'd likely change depending on Facebook's need.
Essentially you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoid overlap between multiple draggable canvas with jQuery I'm trying to make three canvas to be draggable and at the same time to avoid them from overlapping each other. I looked for similar questions about the topic and I found out about the library "jquery-ui-draggable-collision". These is the code that I have:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change the class of an anchor class when clicked with the mouse? This is my website. http://www.sarahjanetrading.com/js/j/index.html
All the code+images+css is there with access to anyone
I want the "listen" anchor class button to change(toggle) into the "stop listening" anchor class button when I(or someone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force Tomcat 3.3 compiler to compile JSPs as Java 1.5 I have a web application running on a (very old, I know, but I can't upgrade) Tomcat 3.3.2 Final servlet container and I had recently upgraded the VM that it's running on to Java 6. This went smoothly so then I tried to use a Java 5 feature (specifically generic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TripleDES algorithm generates different outcome when called from android I have a simple java web application which is built by apache wicket. When I am registering users in the web app, I encrypt the password that they enter using tripledes and save it to the db. In the login page when they enter the same password,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I include the generated assemblies of Maven modules in a multi module build? I have a multimodule project, and I'm starting with just one child module:
<modules>
<module>x</module>
</modules>
When module x builds it too uses the assembly plugin to put together some of its artifacts into a tar.gz. However... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Type null character in terminal Is there a way to type the null character in the terminal?
I would like to do something like:
this is a sentence (null) test123
A: Apparently you can type this character with ^@ on some character sets. This wikipedia article on the null character may be helpful.
A: As with the abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Proper way to use an url in the action attribute of a form in wordpress I have a custom form in one of my wordpress pages(this page uses a custom template)-
<form action="www.mysite.com/custom-page-2" method="post">
.
.
.
</form>
Now the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PrincipalContext not connecting I am attempting to use PrincipalContext for a webservice that I am developing. I have already been using forms authentication on the web server in a different application and it works fine.
The error that I am recieving is :
System.DirectoryServices.AccountManagement.PrincipalServerD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Replace all selected content with html in jQuery I have a set of selected elements using:
$(selector).nextUntil('tr.some_class');
And I want to be able to replace the entire contents with new HTML.
jQuery has replaceWith and replaceAll methods, which will replace each element with the selected html, but I'm not try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: foreach with jquery element I would like each "p" element to show upon clicking the button. But it is not not working please help.
<script>
$(document).ready(function(){
$("p").hide();
$("button").click(function(){
$('p').each(function() {
//alert($(this).text());
var a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sencha Touch: Passing data from the 'listeners' to the detail view panel I am using the
onItemDisclosure: function(record, btn, index) {...
but I require the whole list to be clicked, so now I am using the
listeners: {
itemtap: function (list, index, element, event) {...
to goto my detailed view.
BUT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: InvalidCastException when casting FrameworkElement.ToolTip to System.Windows.Controls.ToolTip I need to makes some changes to a ToolTip programmatically. That sounds simple enough. Well, apparently not really. :/
I have a ToolTip on a WindowsFormsHost object and I make the following cast to get to the IsOpen prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set Foreign key value in EF1 (asp.net 3.5) I have to down grade my app from .net 4 to 3.5 to get it to run on our server. :(
Anyway EF "Independent Association" - http://blogs.msdn.com/b/efdesign/archive/2009/03/16/foreign-keys-in-the-entity-framework.aspx
...but now I can't figure out how to set the value of a fore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento (CE 1.3) - Filter productCollection where stock quantity is 0 Magento 1.3
I'm trying to filter out of stock items from the productCollection. Using:
->addAttributeToFilter('status',array('neq' => Mage_Catalog_Model_Product_Status::STATUS_DISABLED))
I can filter by status, but in this store , enabled produ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do I need any Rules Engine to build a service like ifttt.com ( if this then that )? I'm trying to build a web service like ifttt.com .
Because I find that more than a half of the channels provided by ifttt is not available in China. So I decide to make a local one.
I'm learning the Logs of ifttt trying to understa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implement a method on a specific instance? So I've got this javascript class called Car and I've defined an instance of it, a Prius.
Car =
function Car ()
{
var mileage = 10;
var maker = "Basic";
var model = "Model";
return {
'sellSelf' : function() { return "I am a "+ model+ " from " ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows: What would be involved with creating our own firewall for distribution with our product? I am charged with determining what would be involved with creating our own firewall.
Something that can intercept each and every connection, and decide whether to permit it based on which exe is initiating the connectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optimizing a MySQL query with several joins One of the queries used by a web app we're running is as follows:
SELECT
p.id, r.id AS report_id, tr.result_id,
r.report_date, r.department, r.reportStatus, rs.specimen,
tr.name, tr.value, tr.flag, tr.unit, tr.reference_range
FROM patients AS p
INNER J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nokogiri Chokes on Document with unicode char (i think) in title attribute I have a document that looks similar to this (note the title):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.face... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between glOrthof and glViewPort On OpenGL-ES i'm confused on what the difference is between setting
glOrthof()
glViewPort()
GLU.gluOrtho2D()
with it's respective parameters. Since I believe it's all setting the part you can see to the specified coordinates (width, height). Which should I use?
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to create x number of files with perl? I want to create a specified number of files ranging from 1..10000000, containing "some text", how do you do this in perl?
Thanks in advance!
A: You do this the same way you'd do it in any other language. Break down the job into a series of small steps that you can implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Changing a macro at runtime in C I have a macro defined. But I need to change this value at run time depending on a condition.
How can I implement this?
A: You can't.
As a macro is resolved by the preprocessor before the compilation itself, its content is directly copied where you use it.
You can still use paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: axis2 webservice EPR issue So, i've been been trying to deploy a very simple service, following this tutorial using maven3 and Java EE eclilpse
http://maksim.sorokin.dk/it/2011/01/13/axis2-maven-servlets-tomcat/
But receive this exception.
org.apache.axis2.AxisFault: The service cannot be found for the endpoint r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Built-In Windows Firewall: Lock outgoing connections? By default, the Windows Firewall seems to block incoming (locally created listen sockets) connections by default. They can then be permitted per exe file.
Is it possible to configure something similar for outgoing connections? So Windows would ask whether to allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby, need to read the content of a file and split it on smaller new files I have a long file with tons of hostnames with options..
something like
hostname {
option 1
option 2
option 3
}
the file has approximately 2000 hostnames. what I want to do in ruby is to:
open the file
start reading
when I get to a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: php paypal express checkout problem I'm trying to integrate paypal express checkout on my website. I was trying to check using sandbox. When I submit data from my site token is generated with no error but when redirected to paypal it's not showing payment amount.
btw I'm using the code from paypal express checkout w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: display an Image i am a total c++ and opencv beginner, and i want to learn it. i am working with visual 2008.as a lesson i tried to display a .jpg picture but the program wont compile. when debugging, i get this error:
1>main.cpp 1>c:\users\ralf\documents\visual studio
2008\projects\3)\3)\main.cpp(1) : fatal erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: webkit-transform alternative for Firefox Is there any alternative to -webkit-transform CSS rules in Firefox?
A: Yes, it's called -moz-transform. Check out this article
http://www.zachstronaut.com/posts/2009/02/17/animate-css-transforms-firefox-webkit.html
Here is the official documentation: https://developer.mozill... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best pratice to map a mixin in a Script# import library What's the raccomended way to map a Javascript Mixin in a Script# import library?
For an example: this qooxdoo api
http://demo.qooxdoo.org/1.5.x/apiviewer/#qx.core.Object
Implements this mixin
http://demo.qooxdoo.org/1.5.x/apiviewer/#qx.data.MBinding
How shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Firefox - Load texture cross-domain (WebGL) I'm having a problem loading images cross-domain in Firefox for WebGL and it works fine in Chrome.
I've implemented CORS on the server that has "Access-Control-Allow-Origin: *" in the response header.
The "Access-Control-Allow-Origin: *" response made Chrome satisfied wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python/html- Combine multiple html's into one I've written a python script to convert a text file to html file. But that is kind of useless if I can't put them all together. What I'm supposed to do is display all the reports onto the website (the server part is not my problem). Now I can convert each file to an html... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parsing Web URL in iPhone Development I am trying to parse a HTML string in a iPhone app.
Example:
The URL is http://www.apple.com/developer
I want to delete the "developer" part so all I have will be http://www.apple.com
How could I do this?
A: You can also bring it in to an NSURL and get the parts you want:
NSURL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculating Min/Max Y-Axis values for a line chart I am attempting to replicate how 'right' Excel feels with regards to calculating the Y-Axis boundaries for a line chart.
As an example, lets assume I currently have a chart with three datapoints on it. (0, 100), (1,500), (2,930).
The simplistic code I currently have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get list of properties of an entity I'm using entity framework.
I would like to get the property list of an entity when the EntityState of the object is "Added", and loop throught them.
here is a sample code of what I'm doing.
var newEntities = ObjectStateManager.GetObjectStateEntries(EntityState.Added);
foreach (v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a template expanding to multiple elements? I'd like to write a knockout.js template which should expand into a set of table cells. In other words, something like:
<tr>
<td>Cell one</td>
<td>Cell two</td>
<div data-bind="template: ..."></div>
<td>Cell six</td>
</tr>
<script id="..." type=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Measure the time spent in each layer of a Web Service I have a WCF REST Web Service (.NET 4) which is design based on multitier architecture (i.e. presentation, logic, data access, etc.). At runtime and without instrumentation, I would like to measure how much time a single request takes for each layer (e.g. Present... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to write a JSP which renders a list of JSP fragments, without IF switching code I have a JSP which composes a List of Objects, then renders JSP fragments depending on the Class of each of the objects in the List.
At the moment, this is done with a huge chain of if statements inside the 'parent' JSP:
if( bean.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: save the html once we call html through ajax I want to call one html through ajax. once i get the response, i need to save that response as html on the spefied location
how can i do that?
I am calling ajax function using jquery as like below.
$.ajax({
type: "POST",
url: "../../../project/html/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to filter AD with a concatenated variable in Powershell I'm using PowerShell v2 and Microsoft's AD module to search our AD for accounts whose EmployeeID match a particular ID. The ID is usually stored in AD as "00000123456" but the value i have to search with is only the "123456" part. problem is i cannot figu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Launch shell scripts from Jenkins I'm a complete newbie to Jenkins.
I'm trying to get Jenkins to monitor the execution of my shell script so i that i don't have to launch them manually each time but i can't figure out how to do it.
I found out about the "monitor external job" option but i can't configure it correctl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to align div vertically in the center? Is there a way to align a div vertically in the center of my browser only with CSS usage?
A: Here's one way to do it:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
html {
display: table;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling multiple requests over a single connection using httpcomponents? I want to use a single connection to communicate with a client device.
I am having problems keeping the connection alive. I'm using DefaultConnectionReuseStrategy() which returns false for keepAlive() after each request so the connection is al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I re-create Actionscript's ColorTransform with php gd image library to colorize an image? I'm using a template of sorts, as you can see here: http://i.imgur.com/TtOHa.png
In the game itself, you can choose any color to apply to that, and using actionscript's ColorTransform for red (255, 0, 0) you will get thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hg Merge specific commit from another branch I have two branches Dev and Feature1. I was working on Feature1, creating said feature, and committed it. I then wrote the code for Feature2 but committed it under Feature1 branch instead of a new branch (Feature2). So now i have two features in Feature1 branch as two sep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery pull currency without dollar sign I have a tag that has a price in it (ie. $150.00). I want to use jQuery to pull only the text values without the dollar sign ($).
<div>
$150.00
</div>
I want to output the above as 150.00
A: Use of replace is better but I can suggest that you can remove any currency symb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: QueryOver and ProjectionLists We are trying to use QueryOver and projects. Basically it works fine. But we are currently struggling with a projection which should contain multiple items. The problem is that we have pallets which can contain pallet items. Pallet items are the base classes for various subclasses. We n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return one attribute with XPath given multiple conditions I'm trying to retrieve one (and only one) occurrence of the element
/Document/docOf/serviceEvent/effectiveTime/@value
when the
/Document/docOf/tempId/@root="1.3.5"
The docOf elements can occur in any order, there is no guarantee that the ones with the so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MPMusicPlayerController and setNowPlayingItem I'm using MPMusicPlayerController, specifically with setNowPlayingItem protocol and it's for cydia. But I have some issues and theos' warning when i make. It seems that some of the protocols and methods are not working and I receive some warning like this:
Tweak.xm:177: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Make a general solver for the problem: undefined index in array for this program I'm making a program in a team of programmers and it has been decided that for a specific system we'll be using an array.
In the majority of the uses, all indexes in the array will be properly set still, undefined indexes can happen. Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what is the automatic variable name of an auto-implemented properties I'm trying to do this:
public string LangofUser
{
get
{
return string.IsNullOrEmpty("how to get value?") ? "English" : "how to get value?";
}
set;
}
do I have to do this?
string _LangofUser
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Indexing PDF file by SOLR I'm using Solrj to index PDF files whith SOLR, but some files can't index and make an exception
GRAVE: Error: Could not parse predefined CMAP file for 'Adobe-Identity-UCS'
java.lang.NoSuchMethodError: org.apache.fontbox.cmap.CMap.lookup(II)Ljava/lang/String;
can you tell me what's the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java.lang.ClassCastException: org.jersey.webservice.Login cannot be cast to javax.servlet.Servlet I already done a lot of search and I can't fix this.
I'm bulding a Web Service with Tomcatv7.0, Jersey and Eclipse.
This is the root cause:
java.lang.ClassCastException: org.jersey.webservice.Login cannot be cast to ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Configuring SELinux permissions on (SVS-V) IPC Semaphores I have a bunch of programs which use IPC Semaphores to interact (semget).
One of the programs is an Apache module, which runs in (some sort of) restricted SELinux context (which I don't understand too well).
The module is capable of interacting with any regu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Seeking an elegant, CSS-only method for hiding/showing auto-height content (with transitions) I'd like a method that uses only CSS transitions, to effectively (and attractively) hide/show content on hover.
The caveat being that I wish to keep dynamic (auto) height.
It seems that the optimal route would be to transit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Trouble styling data-bound WPF ComboBoxItem I have a ComboBox, bound to a DataTable. I'm trying to add an extra ComboBoxItem to the top of the list, where I can put a link to customize the list. Currently I am just inserting a dummy row to the top of my DataTable, and then using a DataTrigger on the ComboBox to make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 2 UITableViewControllers vs 1 UIViewController that swaps two UITableViews I have a navigation controller that works with two UITableViewControllers. The first UITableViewController shows the user a list of their picture libraries, and when they tap a cell, the second UITableViewController gets pushed on the stack a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matplotlib: Using a colorbar in conjunction with the extent keyword produces off-center images in figure window I'm using matplotlib to do some plotting. I'd like to be able to use the extent keyword to control the aspect ratio of my plots as well as display the size of the image along the axis tick marks.
My probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get WinForms to stop silently ignoring unhandled exceptions? This is getting extremely irritating. Right now I have a winforms application, and things were not working right, but no exceptions were being thrown as far as I could tell. After stepping through almost all pieces of relevant code, it turns ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to make jQuery objects from an array? anArray = ['thing1','thing2','thing3'];
$.each(anArray, function (i,el) {
var object = 'name.space.' + el;
var selector = 'node-' + el;
var object = $('#' + selector);//need object here to be interpreted as it's value
//as if: var name.space.thing1 = $('#' + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Read Excel data from C# I'm trying to read data from an Excel sheet using Office.Interoperability.Excel namespace. I'd like to get the first row of the sheet as the first row contains the headers, without specifying the start and end cells. Because I wouldn't know if a new column is added to the sheet.
Microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My Rails application is only giving me a blank screen, with no HTML at all I have an app that I haven't worked with in a month or so. I just tried to pull it up, and it is giving me only a blank screen. I am running in dev mode, and monitoring the log. The log shows that everything is OK, in that it is processing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I update a table with rails using data from a form I have a table in a database with two columns, Name and ID. I have a rails model for it named FakeTable.
I have a controller for the model:
class FakeTablesController < ApplicationController
def index
@data = FakeTable.find(:all)
end
de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Read a cell (or range of cells) directly from an open workbook in Excel using C#?
Possible Duplicate:
Reading Excel files from C#
Is there a way to read a cell (or range of cells) directly from an open Excel or OpenOffice worksheet? I have a graphing app that can read .csv files but would like to read straight fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to block a part of the level plot in R made using lattice package? I have made a level plot in R of a variable using the lattice package. This grid corresponds to South Asia. I am only interested in viewing the values of this variable (aerosol optical depth) for certain countries in South Asia. I have a dummy va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VWD Express 2010 CommandType I just converted a website from Foxpro to asp.Net with VB. I'm now trying to convert to C# and maybe try a few new techniques. I've not used parameters with datareader before - I found some code that looks similar to what I want to do; however, Intellisense doesn't recognize the comman... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC error - The model item passed into the dictionary is of type 'System.Collections.Generic.List` I can't figure out what's going on with this error:
The model item passed into the dictionary is of type 'System.Collections.Generic.List1[RepositoryExample.Employee]', but this dictionary requires a model item of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What are some good resources for learning algorithm optimization? I've been tinkering around with code (Basic, Python, C++, PHP, JavaScript) on and off for almost two decades, but have only recently begun to get more "serious" about it (using Java). I can write code to do what I want, but now I want to learn to opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Work with authenticity token? Or disable it? My mini-web-appliance will submit data samples to a RoR app, which will add them to a MySQL table.
I figured out how to form the POST data packet, but what I don't get is how to avoid the authenticity-token problem.
Is there a way for my little dumb client to grab the rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: implementing big5 over telnet protocol? I've implemented a telnet client and one of the feature requests is to support big5 encoding. How is Big5 implemented over telnet, when only 7-bit character codes are supported? The Big5 "lead bytes" (0x81 to 0xfe) are all in the range above 0x7f reserved by the telnet protoco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When I use update() with tkinter my Label writes another line instead of rewriting the same text When I call the update() method using tkinter instead of rewriting the label it just writes the label under the previous call. I would like for this to rewrite over the previous line.
For Example:
root=Tk()
while True:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: future.get returning before finally executed in Callable on cancel I'm have a test that is failing intermittently where a future.get call is returning before the finally block is executed in the Callable, when the future is canceled. Here's the basic workflow:
future.cancel(true);
I see the InterrupedException thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Identifying and removing "NA"s and other errors
Possible Duplicate:
Test for NA and select values based on result
Suppose you have a vector -- you do a calculation on the vector -- many of the elements return "NA" -- how do you identify these "NA"s and change them to some usable integer
A: Assuming that your da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IF Statement not working correctly I have these controls:
chck1_amt through chck5_amt (1 though 5 check Amounts)
And chckX is from chcknum1 through chcknum5 (1 through 5 check numbers
What we are trying to do is if a checkX_amt box has is not blank or it has a value other than a 0 AND check number box (chc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse PDT: Syntax Errors with valid PHP Namespace Syntax I'm using Eclipse 3.6 (Helios) with PDT 2.2, and I'm getting syntax errors when trying to "use" namespaces.
Is there something I can do to fix this?
Example:
use Tables\Exceptions\Exception as Exception;
The PHP Parser recognizes "Tables" as a syntax error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Implement equals with Set I have this class:
private static class ClassA{
int id;
String name;
public ClassA(int id, String name){
this.id= id;
this.name = name;
}
@Override
public boolean equals(Object o) {
return ((ClassA)o).name.equals(this.name);
}
}
Why this main is printing 2 elements if I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any existing RSS feed url validators? Before I dive into writing a validator to check if a URL is actually pointing to an RSS feed, I did a bit of searching for some validators that may exist out there but had little luck with any reliable ones.
I just wanted to ask the community if any of you know of an RSS validat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to have ruby 1.87 and ruby 1.9 installed and switch between them for different apps? How I'm using different books to learn rails and they're all using different versions of ruby and rails. I've got instructions on how to load/use different versions of rails, but I don't know how to do it with ruby.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django - Limit select field to queryset of foreign table? I have two models as follows:
System_Contact
first_name
last_name
isOwner = CharField ('Y'/'N')
isMainContact = CharField ('Y'/'N')
System
mainContact = ForeignKey(System_Contact)
owner = ForeignKey(System_Contact)
billTo = Foreig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fortran: Read one value at a time from a line I am using FORTRAN to read in data from an ASCII text file. The file contains multiple data values per line but the number of values per line is not constant.
101.5 201.6 21.4 2145.5
45.6 21.2
478.5
...
Normally after a read statement, Fortran would go to the next line.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't the Objective-c runtime set dealloc'd object instances to nil? Sometimes I set objects to nil after releasing them to avoid crashes due to unexpected messages sent to dealloc'd objects.
Why doesn't the Objective-c runtime do this automatically when an object is finally dealloc'd?
A: Because pointers a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Page navigation with fixed header I have a horizontal fixed header on top of my site and when I use page navigation to scroll to an ID, it puts the content I'm trying to scroll to underneath the header.
Is there a way I can offset where the page navigation shows up by 80 pixels (down)?
Edit: I was actually able to f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.