text stringlengths 8 267k | meta dict |
|---|---|
Q: Surface extraction a fluid . At a given time-step I have a sampled a lot points from a fluid , and I want to extract the
points which lie at the surface of the fluid. Does any one know a good algorithm
and any available codes to do this?
I am aware of surface reconstruction, but the assumption there is that the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GWT
A: It is more idiomatic to call external functions using JSNI:
native void facebookComment(Document d, String s, String id) /*-{
fbc(d, s, id);
}-*/;
void myFunction() {
facebookComment(Document.get(), "script", "facebook-jssdk");
}
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7602055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Div height is adjusting to height of child div when child div is floating left, but not when it's floating right I'm working on my sister's website.
I have a problem with the DIV height not adjusting to 100% of the hight of all its child elements. What's weird is that for the child div in question, if I set the floa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SWT GTK 64 bit and UBUNTU 11.04 NPE I'm currently working in an SWT standalone application. We usually work with windows but I'd like to work in Ubuntu.I set up the following environment.
Ubuntu 11.04 64bit
Java 6 update 27 64 bit
Eclipse Java EE 3.5 Galileo 64 bit
I'm using SWT GTK 64 bit
I've got a few classes ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net calling Java Webservice, I need to convert an XMLSchema/long to anXMLSoap/long I am using C# with .net 4 and am trying to consume a java webservice. My code was autogenerated by adding a .net 2.0 style webservice reference. I believe there is an issue with the types .net is sending to the java webservice, her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript's `window.resizeTo` isn't working I'm trying to create a bookmarklet to do some very specific resizing to do browser size testing, and I can't seem to get the web browser to resize using window.resizeTo.
Overly simplified example that doesn't work:
javascript:window.resizeTo(1024,600);
I can understand t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to add a fade-in effect in jQuery text How to add a fade-in effect when the data is returned to the #results div?
$('#results').html(data);
I tried
$('#results').html(data).fadeIn('slow');
but it doesn't seem to work
My code
submitHandler: function(form) {
// do other stuff for a valid form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing XML in vb.net I have some XML that a vendor is supplying me and I can not parse it in VB.net no matter what I try. I am a novice at XML so please be understanding of that.
This is the xml that the vendor sent me:
<?xml version='1.0'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefau... | {
"language": "cs",
"url": "https://stackoverflow.com/questions/7602081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a Java Servlet Container to save files as an "owner / group" other than Tomcat? I have a java servlet. When it saves files, it saves them as tomcat:tomcat (in a linux environment). I actually need it to save it as sportsfan:tomcat as sportsfan is the FTP user and also needs access to create, modify or o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Examining associated objects in equals() Standard object modelling identifies attributes, aggregates and associations of objects. You must conform to several requirements when implementing the equals() method of a class. There is plenty of advice available on how to write this method, including pitfalls to avoid. Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: 7 Buttons, 3 AsyncTasks, 1 Activity, and a nightmare Just when I thought I had this one cinched, I realized that I can only use the buttons in the activity in the same sequence they are written in the Activity.java (Ex: Cannot execute button 5 press, until 1,2,3,and 4 have all been pressed!)
How do I fix this?
Activ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Setting up Flex / AIR project structure for a large number of images? We build prototypes and demo applications in Flex 4.5.1 and AIR 2.7 for mobile and desktop use. These tend to involve a large number of full-screen .PNG files. Lately we have been looking at ways to segment our code for flexibility and multi-scre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Counting number of associations across several Rails objects class Article
has_many :comments
end
class Comment
belongs_to :article
end
I'd like to be able to determine how many total comments exist for certain articles. For example: Article #20, #21 and #22 have a total of X comments between them.
Any pointe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: git remove file from repository but leave it on file system I try to remove unnecessary files from git repository. That files were initially added and now they are in several branches. What I want is simply stop tracking changes in that files, I don't care what changes should stay there, but I need that files to sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: jasper print loadObject with applet and servlet Why the applet is claiming for the Barbecue Renderer? By the way, my barbecue jar seems to be ok and included in the same folder.
network: Cache entry not found [url: http://localhost:8085/sg-fe/servlet/jasperprint, version: null]
network: Connecting http://localhost:8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Selecting date value without time in SQL Server 2005 I am facing a problem selecting the date in SQL Server 2005. The table name is Softskill and the column name is insertdate. The data is stored as 2011-09-22 08:50:28.000 in this format.
To select, I am passing values from the front end as '2011-09-22', I mean the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android: sensor data (ACCELEROMETER+MAGNETOMETER) TO image plane offset Here we go:
An android APP, I have extracted data from sensors(ACCELEROMETER & MAGNETROMETER) in my Desire HD, at the same time, I turn on the camera. what i am trying to do is to estimate the offset between two frames captured by the cam.
i hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Network Photo Application cache (Nimbus) In the Network Photo application sample from Nimbus, when I return to the table (to choose from where I want to download photos beging Facebook or Dribbble), the previous photos I saw and were in cache, are cleared from it. Is there a way to prevent this?
For instance:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parse Last.Fm XML from API in Java URL: http://ws.audioscrobbler.com/2.0/?method=chart.gethypedtracks&api_key=1732077d6772048ccc671c754061cb18&limit=10
From the above url I need to somehow remove the Artist name and the track name from the XML file produced from each Song given but I have no Idea how to work with an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sending keyboard interrupt programmatically An application that asks for a keyboard interrupt. How can I send for a keyboard interrupt programmatically? I need it for automation.
Like <C-c> or <C-x>
KeyboardInterrupt
A: Code running in a separate thread can cause a KeyboardInterrupt to be generated in the main th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Android dev: PhoneLookup._ID, Phone.CONTACT_ID, ContactsContract.Contacts._ID all the same? Do they all refer to the same unique contactId of a contact person?
A: They should, but it's not guaranteed if the contacts are synced or aggregated.
You might want to try using LOOKUP_KEY instead.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7602121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the tag of a shape when clicked Lets say I have created a canvas in a Tkinter app.
In the canvas, I have drawn several rectangles.
What I want in essence, is to know in which rectangle the user has clicked, that is my main concern, but this is what I have tried and what I think might be the solution.
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Show existing activity from AppWidget click I have a problem opening an activity from an appwidget. I have tried different Intent flags, PendingIntent and launch modes without any luck. I have read diffent examples here and many other places without finding the solution.
Right now when I click my button on my appwid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need Suggestions for ASP.Net or IIS Request URL Mangling Environment:
*
*Server 2008
*IIS 7, integrated mode
*.Net 4
*ASP.NET WebForms Routing (which uses the same .dll as MVC routing, though I'm not sure which version)
*Cookieless sessions (session ID travels around on the user's URL).
We have an applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery - What method can I use to get this code to run without clicking Ok this example code contains a button. Forget about the button, it does not exist, cannot be referenced and cannot be edited.
The buttons dont exist in this example - they merely represent another process. However the fields still need to be up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enhanced auth dialog on iOS doesn't complete login flow I have an iOS app that uses the Facebook SDK for authorization. The existing app does not ask for manage_actions permission. I'm using fairly standard code to start the login flow:
NSArray permissions = [NSArray arrayWithObjects: @"email", @"publish_stream",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why do I need to set style in js initially rather than use existing style? I'm learning how to drag-and-drop-move DIV's around the document in javascript. Here is a live demo:
http://jsfiddle.net/BBANc/
This works fine in Firefox and I'm not currently developing with any other browser. However, if you change set_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: phpmysql update set while uploading image I am really struggling trying to get something very simple achieved.
Essentially, I have an images table called galleryimages and a location on the server where images are stored. What I am trying to do is overwrite the source field for a given category in the table while t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spork, RSpec and database_cleaner destroying development database I have the following spec_helper.rb file in my Rails 3.1 application. I am using Spork to load the environment faster for testing. All my tests worked prior to adding Spork to the mix. After adding spork, the test database was not getting properly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I detect changes in zoom level? Open this page on Chrome or Safari and fiddle with the zoom level. You'll notice a cute easing effect on its elements when you change the zoom level.
Apparently this only works on Chrome and Safari (webkit?), but how is this done? And is there a cross-browser way to do this?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Confused -> Silverlight 4 not allowing me to consume a WCF service using BasicHttpBinding? OK I am totally confused and hopefully I am missing something here totally obvious. I am consuming a WCF service of mine (which is stable and working in ASP.NET) hosted in a Windows Service which uses a 'BasicHttpBinding' conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Layout hierarchical issue in an Access report I've been struggling the last hours on the following problem, I hope somebody will have an idea... This is a problem of report layout in Access.
Here is a simplification of my data model: A is the "father" of one or more B that is the father of one or more C.
What is rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Probability distribution values plot I have
probability values: 0.06,0.06,0.1,0.08,0.12,0.16,0.14,0.14,0.08,0.02,0.04 ,summing up to 1
the corresponding intervals where a stochastic variable may take its value with the corresponding probability from the above list:
126,162,233,304,375,446,517,588,659,730,801,839
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WIF - Federated Provider with multiple Identity Providers - store IP info in db? So despite the warnings, I think I need to build a custom STS. We will support an arbitrary number of customers who provide identity information via SAML.
What is the best practice to store details on each IP? Most examples seem to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening multiple types quickly with ReSharper There is an 'open type' feature that supports wild card searching, and it would be very convenient to be able to open several in the list at once rather than running the same command n times in order to get the desired behavior. I need something better than using the so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails 3 + Omniauth. When a user clicks "Don't Allow" for FB, how can I customize the response Right now if a user clicks "Don't Allow" the popup window goes back to the site with the error message: "Could not authorize you from Facebook because "The user denied your request."
Any ideas on how I can handle this failu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: bpython-like autocomplete and parameter description in Emacs Python Mode? I've been using bpython for a while now for all of my Python interpreting needs. It's delightful, particularly when you're using unfamiliar new libraries, or libraries with a multitude of functions. In any case, it's nice to have a bpython i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Getting current again with TextMate (bundles, tutorials) What would be the best way to get my TextMate bundles all up to date and learn all those great keyboard shortcuts that speed development? (especially rails, html, jquery, blogging)
I have circa 2008 textmate books; looking for up to date tutorials, bundles etc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (unicode error) 'unicodeescape' codec can't decode bytes - string with '\u' Writing my code for Python 2.6, but with Python 3 in mind, I thought it was a good idea to put
from __future__ import unicode_literals
at the top of some modules. In other words, I am asking for troubles (to avoid them in the future), but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Add custom methods to Rails 3.1 asset pipeline? How can I add my custom methods to my assets such as css files like Rails did with 'asset_path' helper?
With Rail's own helper, I can write this:
# some.css.erb:
<%= asset_path 'a_image.png' %>
# How can I write this:
<%= my_custom_method 'a_image.png' %>
I've trie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to only print lines with unique fields? For example... if I had a file like this:
A 16 chr11 36595888
A 0 chr1 155517200
B 16 chr1 43227072
C 0 chr20 55648508
D 0 chr2 52375454
D 16 chr2 73574214
D 0 chr3 93549403
E 16 chr3 3315671
I need to print only the lines... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: drupal 6 VIEWS - I'm stumped I've created a view (Drupal 6) that gets put on the users profile page.
The view is supposed to list all the images that the user has uploaded. However, the view is showing every uploaded image by all users.
(When a user uploads an image, it first gets approved by me, and then posted b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to apply color effects to an image? any one guide me is it possible to apply color effects to an image using php?
as mentioned in the screen shot i want to select Ice,Black,Crystal etc.. color effect from the top and it should be applied to image selected below?
or any useful solution?
any help would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TIFF format not working with CSS The image (logo.tiff) will not display when defined in the CSS file and called in the Index file.
However, when I save it in another format, such as gif or jpeg, it works just fine. Is there a reason or a workaround for this?
Thanks guys.
CSS file:
.logo{
float:left;
overflow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQuery - error with element non-focusable / how to force blur? I have an html form which uses jquery focus and blur in order to clear and restore some preset field text. However, the form is in a modal dialog which can be hidden and shown using jquery hide() and show(). However, when the form is hidden, it is throwi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Telerik Tab/MultiPage Page Size Results I have two pages with RadTabStrip/RadMultiPage controls. Both the multi pages having the RenderSelectedPageOnly="true" setting. Both pages share the same user control, which has the same data. The interesting issue I'm having is that the first page is around 300K, whereas t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expected constructor, destructor, or type conversion before '*' token Templated linked list My problem is really similar to this. However, my implementation differs in that I'm using a templated linked-list
Here's where I'm getting errors (second line). The purpose of this function is to return a pointer to a node a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php how to store and read json data via mysql? php how to store and read json data via mysql?
mysql_query("INSERT INTO text (data) VALUES (json_encode('id' => $uid, 'value' => yes))");
then, how to update data value? read out the data, then insert it with an json_encode and decode process, or only easy way update?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Springframework constructor-arg I have a MainClass which have 2 variables. I would like to pass those 2 values to a springframework bean class "Test". how do I define that in applicationContext.xml and also how do I pass those 2 variable values to the bean "Test".
Ex:
class MainClass {
public int var1;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unobstrusive javascript for Forgot Password Link I have a spring form that is used to log in to the website. Its a simple spring form with a username and password fields and a submit button. There is a forgot password link next to the submit button, which uses href="javascript:jump();" function as below:
function ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight and synchronous calls to WCF I already know that calls to WCF services via Silverlight are async. I also know that many people try to find ways to make them sync calls for a variety of silly reasons (blocking UI thread for example), and that such a thing should be avoided like the plague, generally.
I j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I check if a VHDL Integer is even or odd? What is the easiest or simplest way to check if an integer signal is even or odd in VHDL?
A: if (A mod 2) = 0 then
-- it's even
else
-- it's odd
end if;
A: As a side note if the signal is a vector, then you can do the following:
if (A(0)) then
-- it's odd
else
-- ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Extra space below rows that appears when scrolling to the bottom of a DataGrid? Ok, so I have a DataGrid (the standard WPF DataGrid, which comes with .Net 4.0, NOT the WPF Toolkit DataGrid) with the CanUserAddRows=false. It's bound to an ObservableCollection in the ViewModel. It has a MaxHeight set properly, so th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Moonlight, WebClient and "Exception has been thrown by the target of an invocation" I'm writing a little engine to download text from some .php files, I've done this engine in Visual c# and I haven't got problems.
I'm doing this:
[ ... ]
WebClient client = null;
try {
client = ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Powershell - Array Range from user input What would be the easiest way to get user input for an array range.
For example:
function MyArrayOfMachines {
[CmdletBinding()]
param(
[parameter(Mandatory=$true)][string]$Machine
# What should I assign the $Range variable as?
)
# Hardcoded range. User should be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the differences in the VisualStudio Add-ins for Mercurial? I'm evaluating Visual Studio Add-ins for Mercurial. Currently, I've identified 3 potential candidates :
*
*VisualHg http://visualhg.codeplex.com
*Mercurial Toolbar : http://mercurialtoolbar.codeplex.com
*HgSccPackage : http://www.newsupaplex.pp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Multiple flash ads changing the way they are stacked....only in Chrome? I have three flash files that are all stacked on top of each other. There is a background, a foreground, and a close button. When in Chrome, they will sometimes change which one has a higher z-index (although this is not confirmed the inspector)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenCV 2.1: facedetect.cpp crashes when it finds ugly face I am trying to compile the facedetect.cpp in the OpenCV\Samples\C folder, in Visual Studio 2010. The project compiles and begins just fine, shows a preview of my camera, and then seems to crash at cascade.detectMultiScale() as soon as it detects a face. I co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is Thread managed by the thread pool? I know that the CLR gives each AppDomain ThreadPool time slice to work , yet i wanted to know if by creating a new thread like so Thread t = new Thread(...);
Is it managed by the CLR or by the AppDomin ThreadPool ?
A: Thread t = new Thread(); will not be managed by the ThreadP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can't assign value to Variable: undefined method `[]' for nil:NilClass (NoMethodError) I am completely stumped on this one.
I have the following code:
puts block.at_xpath("*/img")["width"].to_i
but when I change it to
width = block.at_xpath("*/img")["width"].to_i
I get this error:
NokogiriTUT.rb:70:in `blockProce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Invalid Permissions When Running Julius Speech Recognition on a Wav File How do you use Julius to convert a Wav file containing spoken words into a text file containing those words? I've read the Julius Book and I've downloaded the Julius quickstart release on Voxforge. From the docs, I think I'm suppose to list the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JTextField key listener is one behind after pasting I am trying to check that the text in a JTextField matches a perticular pattern, and if it does / doesn't display a message the user. This is what I have so far:
public class input extends KeyListener{
// Some code here
final JTextField inputField = new JTextFiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Get remaining time for a sleeping thread wake up in C# In C#, how can I get the remaining time for a sleeping thread wake up?
A: You can't. You have to remember when you put the thread to sleep and do the calculation yourself.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7602269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get SUM function in MySQL to return '0' if no values are found? Say I have a simple function in MySQL:
SELECT SUM(Column_1)
FROM Table
WHERE Column_2 = 'Test'
If no entries in Column_2 contain the text 'Test' then this function returns NULL, while I would like it to return 0.
I'm aware that a similar ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: Sqlite3 INSERT trigger only fire on REPLACE statement even where record already exists? I'm trying out the Sqlite3 REPLACE (INSERT OR REPLACE) command. I like to keep a created datetime (creDT) and an update datetime (updDT). So I created a database and a trigger for INSERT (creDT & updDT) and one for UPDATE (updDT)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IE runs JavaScript only after pressing F12 I have a strange problem in Internet Explorer with JavaScript. In every browser I did the test the JavaScript is enabled, but it seems to run only after I press the F12, running it in debug mode. And what is more confusing, after starting the IE debugger everything is worki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Within DIV, Links Are Overlapping After Overflow To A New Line I'm still trying to get the whole jQuery concept down with CSS and such. I'm in the process of trying to make a simple navigation bar in which there's a hidden DIV. I would start with what looks like a start button, which when clicked would set off a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: #import does not protect against circular calls? I have two classes ClassA and Class B (they are viewControllers).
Class A is a delegate of classB.
ClassA "laucnhes" and instance of ClassB.
ClassB call methods on classA.
Let's say it's :
#import "ClassB.h"
@interface ClassA : NSObject {
ClassB* subController;
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cancel javascript onclick event in FF I have linkbutton with onclick event. I want cancel onclick event in FF dinamically, sometimes user can click, sometime cant click. I want cancel the onclick event in JS function fired from other control(dropdown, textbox). So, I want to write function, when sometimes cancel thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Class.getResource() returns null in my Eclipse Application? Can't configure classpath? I am trying to use Class.getResource("rsc/my_resource_file.txt") to load a file in an Eclipse application. However, no matter what I do in Eclipse the classpath always contains just one entry to the Eclipse Launcher:
.../eclipse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Integrating Artistic Style with Visual Studio 2010 Is it possible to integrate Artistic Style with Visual Studio 2010? It does a much better job of fixing mangled code indenting and styling than the include visual studio code formatter. Ideally a hotkey or something to apply it to the current file. I know how to app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Passing variables into a class to a function I have a class "Month" that has void member functions and void parameter passing. I need to overload the constructor (I think) but the compiler doesn't like my attempts.
class Month
{
public:
Month(char firstLetter, char secondLetter, char thirdLetter); //?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex to remove last / if it exists as the last character in the string I would like a regular expression or otherwise some method to remove the last character in a string if and only if that character is '/'. How can I do it?
A: string = string.replace(/\/$/, "");
$ marks the end of a string. \/ is a RegExp-esca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Traversing & changing child key in a multidimentional php array I have an multidimensional array that looks like this:
Array(
[135] => Array(
[150] => Array(
[151] => Array(
[1] => Array()
[153] => Array()
)
[1] => Array(
[1] => Array()
[2] => Array()
)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to store values in the database for a complex shopping cart I'm working on a shopping cart with a little bit complex way of storing products in cart.
For each product that a user can add in cart there is a table like this:
In this table the user enters the quantity for the specified size and color. What would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook settings for posting music to Timeline I'm working on an app to post music to the Facebook timeline, but having problems when I POST as recommended in the doc. I use OAuth 2 to successfully get the user's Facebook ID and a valid session_token, but then, when I post this...
POST https://graph.facebook.com/<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why can't I install plugin for android development in netbeans? I'm using netbeans 6.7.1.
I followed the instructions from here to install the plugin for android development.
I've riched into the step where I should choose 'Android' in “Availalble Plugins” tab,and then get into the installation,and get an error l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Name/UID on page tab without authentication? I had previously thought there was no way to get a user's information, specifically their userid, without first getting them to authenticate your app. I see that this page, however, does that on a custom page tab:
http://www.facebook.com/AutoCADWS?sk=app_4949752878
Not on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ninject working with WCF Web API Preview 5 Can anybody point me in the right direction to get Ninject working with WCF Web API Preview 5? I have it successfully up and running in my ASP.NET MVC 3 project and also in another internal WCF Service using the Ninject.Extensions.Wcf library. However I cannot get it to wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Get filtered result from BindingSource to table/dataset? I'm using a BindingSource connected to a DataGridView to filter the data shown.
I would like to know what is the best way to get the filtered result to some other thing than a GridView?
I ask this as I would like to use the filtered result for a few ComboBoxes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to remove jar from Maven Dependencies in eclipse I am trying to get rid of a jar from my Maven Dependencies folder which is automatically generated in eclipse. As this folder is not editable, I tried deleting the corresponding jar manually from .m2/repository and also removed the jar from my pom file and refresh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How (can) I access the Microphone on the iOS the way Google Voice does? Apple hasn't approved Google Voice as an App so Google created a web "app". So somehow they are accessing the microphone thru the browser. The browser doesn't have access to the Mic so I'm wondering how they (and thus I) did that.
Only thing I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JAX-B is marshalling everything I have a class with an @XmlRootElement(name="objectName",namespace="https:blahblah") and some attributes in the class all with @XmlElement(namespace="https:blahblah")
But now I have some element without an XmlElement annotation. Why is it also marshalled?
I only want to marshal annota... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does MASM change instructions behind your back? I was surprised by the following when reading the HLA faq:
MASM has a nasty habit of changing instructions behind your
back. HLA also seems to have this same problem.
I then searched the web but found nothing regarding this. Is it true or just a myth?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VC++ Project, want to compile within another IDE but something is missing I am fairly new to C++.
I want to write plugins for an application called Cinema 4D.
Maxon, the maker of C4D, provides an API for doing this. The header-files are located in a special folder.
The "cinema4dskd" is a Visual Studio project contai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails Delete Resource Identifier on Redirect I have a project using jQuery Mobile (uses resource identifier heavily) with Facebook authentication. Recently Facebook started adding #_=_ to callbacks (see here). This is killing jQuery Mobile.
Is it possible to do an automatic redirect for any routes matching #_=_ to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add custom fields to shopping cart display - Ubercart 3 I have Drupal 7 and UC 3 running with custom fields. I want to be able to display those fields in the shopping cart but can't seems to be able to do it. That's my first module creation attempt!
I try to use hook_form_alter(&$form, &$form_state, $form_id) {} in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: click events on nested list items each with their own click handler I have nested unordered lists and click handlers on each li element. When clicking on a nested li, it's firing both events. Is there anyway to prevent this behavior?
<ul>
<li>thundercats
<ul>
<li>panthero</li>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Batched queries with SQL Server Compact 4.0 and alternatives if unsupported? I'm trying to execute a query which contains "batched" commands, and supposedly this wasn't supported by Compact 3.5, however I want to avoid using SQL Express or a bigger solution that makes deployment on desktops cumbersome.
For example:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Events not passed to toolbar button when there is a popup over it - Firefox add-on I am having a toolbar button inside a box. And a panel as well inside the same box.
<box>
<panel />
<toolbarbutton />
</box>
When mouseover event is triggered for the toolbarbutton, I am showing the panel using openPopup method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending broadcast from service while bound Ok so I have a simple Android app that I want it to go through all of my pictures and set a random one to the background of an activity (linear layout). I have a service that give a url when a certain function (getUrl()) is called from the bound service class.
I would now l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find all the php files under current directory and add a line How do you do that in terminal or anywhere else?
echo "//test comment" > find . -type f -name "*.js"
doesn't work. I just want to add a line on top of each .js files. Thanks.
A: #!/bin/bash
echo "//test comment" > myline
for file in *.js; do
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create test plans using Microsoft Test Manager / Visual Studio 2010 Ultimate? They keep on being removed on creation One of my colleagues is facing an issue with creating a test plan using Microsoft Test Manager 2010. We are using TFS 2010 and Visual Studio Ultimate. He is able to successfully "create" the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Active Record accepts nested attributes for - creating record with overridden class_name When I save the form (last piece of code shown here) I get an error saying: unknown attribute: person
I'm thinking this is because I have overridden the class name of the administrator attribute.
Any ideas?
class Event < ActiveR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery mouseleave trigger on every pixel, when flash movie is below div I have a problem with a flash movie, that is initated below a div element with z-index: 2000;. I have a onMouseDown event, on the div - which is triggering fine, and I have $(divelement).hover(functionIn(),functionOut()) attached. (The onClick e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine two tables by column should be easy:
I have two tables:
table 1
ID NAME NEWID
1 DOG
2 CAT
3 HORSE
table 2
NAME ID
DOG 100
CAT 200
Horse 300
I need the result to be as follows:
ID NAME NEWID
1 DOG 100
2 CAT 200
3 HORSE 300
My thoughts are:
Update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Understanding android service From here,
It said Service is not a separate process and it is not a thread.
But how can it "A facility for the application to tell the system about something it wants to be doing in the background" ?
How can something being done in background without being a process or a thread?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: It's possible open multiple connections to multiple sites using only one thread? Update
I use a FixedThreadPool already. What happens is that each thread open one connection for one site. What I want to do is something asynchronous.
*
*Send request to a server
*Go to next request without need to wait the first r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android, change alpha on touch I set the alpha of my image view like so:
myImageView.setAlpha(0);
Then on touch:
myImageView.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
v.setAlpha(100);
But the alpha doesn't change when I touch the image, I know the touch is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping value in junction table to Entity I have a USER table and a COURSE table. A USER can have many COURSES, and a COURSE many USERS. The junction table contains a ROLE value that determines what role the user has in a COURSE (i.e. Instructor, Student, etc.). I need to some how associate this role with the COU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.