text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I use XPATH to add data of subtree to main tree in Python/Django I'm using etree to parse an external xml file and trying to get the listing data from a tree from the below external xml file and add the subtree agancy data to it. I am able to pull the data for isting and agancy just fine seperately, but do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression for remove html links
Possible Duplicate:
Regular expression for parsing links from a webpage?
RegEx match open tags except XHTML self-contained tags
i need a regular expression to strip html <a> tags , here is sample:
<a href="xxxx" class="yyy" title="zzz" ...> link </a>
should be converted t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery UI autocomplete on select input box I have JSON data feeding id, label and value as keys for values.
When I select data I select the label/value values onto the textbox #id_emp_name. I want to be able to insert the id of the label/value that was selected into the hidden textbox #id_emp_id.
My current javascri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a function to print string as is in escaped mode? That is, prt("a \t\n") should print "a \t\n" literally,
is there any available function that does this?
A: I am assuming you want to escape special characters; that is, you want to print \n instead of a newline character.
Not in the standard library, as far... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Tomcat 7, can I use regular expressions in ? Does Tomcat 7 have such a facility? Although I could write a filter to parse regular expression in url, it would make another project. I think such a facility should be provided in mainstream servlet containers.
A: The Servlet API specification does not specify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: add alt attribute to href depending on the class the default state is:
<a href="./" class="dynamic dynamic-children menu-item"><span class="additional-background"><span class="menu-item-text">Présentation</span></span></a>
so if class = rfr-opened add alt="open"
<a alt="open" href="./" class="dynamic dynamic-chil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: rubymine only able to run model tests one by one I am able to right-click on any of my 3 spec/models but when I right click the spec/models folder and select 'run all tests in models' I get 'Unable to attach test reporter to test framework'.
The first line of my model tests is: require 'spec_helper.rb'
A: I posted ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding global maximum in matlab Can any body know how to find the global maximum of a signal in matlab.
Any help will be highly appreciated.
Thanks
A: assuming your signal is a vector x, just do
[max_value, index_number] = max(x)
max_value will be the biggest value and index_number will be the index number of you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Sending binary data to a servlet I am trying send a file to a servlet.
function sendToServlet(){
var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\Documents and Settings\\me\\Meus documentos\\Downloads\\music.mp3"); ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I apply XACML rules to every child URI? I'm working with XACML policies and I have a rule that includes a resource target similar to the following:
<Resources>
<Resource>
<ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ext JS - A start Folks,
I am starting off to learn ExtJS. I had a look through Sencha's website. I went through some of the questions also already asked here.
But had some doubts,
*
*What is the difference between ExtJS designer and Aptana ? Do we require both ?
*How to start building your own 1st applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java DNS suffix When I do ipconfig /all I see DNS Suffix Search List. I need to retrieve that value from java.
Does anyone knows how to get it or where does it come from?
A: The DNS suffix list is read from
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList
A: You could use the Runtime class to ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validation Layer in a PHP Class I need help understanding the logic to deal with validating user inputs.
my current state of validating user data is at worst, i feel pretty awkward using these messy lines of codes, have a look at my typical function which i uses it to get input from the user and process it to databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add an Image pre-loader into a JS function I have this JS function, which will call the next image:
function showNextManifest() {
var currentManifest = jQuery('#selectedManifestId').val();
jQuery.ajax({
url: "${createLink(action:'nextManifest')}?currentManifest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Must NSManagedObject subclasses by passed to the controller or should these objects remain only in the model The reason I ask is because I have separate domain objects which I map from the NSManagedObject subclasses so as to keep my data access logic separate.
But I think its going to be a problem for updating.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running compiled python (py2app) as administrator in Mac After looking at Running compiled python (py2exe) as administrator in Vista I was wondering if there's an easy way to get the Mac Authentication dialog in Python (specifically py2app)
I know mac has the built in Authentication services too http://developer.app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why does key equivalent work with escape but not with return? I have a button on my window that is set in interface builder to have the key equivalent of enter, but after switching a content view from using IKImageBrowserView to NSCollectionView, the keyEquivalent is being ignored.
From what it says in the docs:
htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AJAX and FormsAuthentication, how prevent FormsAuthentication overrides HTTP 401? In one application configured with FormsAuthentication, when a user access without the auth cookie or with an outdated one to a protected page, ASP.NET issue a HTTP 401 Unauthorized, then the FormsAuthentication module intercepts this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Ajax jQuery picture upload - newbie question whats the best way to handle this? I have a page with a form on it that the user visits to fill in some info before he signs up for a profile. Underneath the form is a preview of what the profile will look like. I have some javascript so that as the user types into the bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error in matplotlib library in python while using csv2rec I am working in Ipython, trying to load a csv file.
from matplotlib import *
data=matplotlib.mlab.csv2rec('helix.csv',delimiter='\t')
Here is the error message
IOError Traceback (most recent call last)
/mnt/hgfs/docs/python/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django/Apache freezing with mod_wsgi I have a Django application that is running behind 2 load balanced mod_wsgi/Apache servers behind Nginx (static files, reverse proxy/load balance).
Every few days, my site becomes completely unresponsive. My guess is that a bunch of clients are requesting URLs that are blocking.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c++ win32 efficient context menus and submenus I would like to add a right click context menu/sub menus to my win32 application (c++) when the user right clicks on the notifiyicon data (tray icon). I can make a simple 1 level menu, but can't find a example for multiple level menus.
I would like to a create a menu wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Printing with javascript problems.....div comes as a null string I am using a javascript function to print a page. I keep getting the string as a null value and im not sure how.....here is the code. The div i have is called divSheet and its set to visible false to begin...when you load information it creates a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way of writing box-box ray collision detection in three.js? The objects in this experiment are moving around randomly: http://deeplogic.info/project/webGL/
What is the best way of writing a box-box ray collision detection for this using the three.js library?
A: If you're using raytracing:
For both ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which format should the version constant of my project have Ive seen lots of stuff
Foo::VERSION::STRING
Foo::VERSION
Foo::Version
any suggestions what the best/most-common default is ?
A: First of all, Foo::Version seems wrong to me. That implicates that version is a Class or a Module, but should be a constant, as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it necessary to Dispose() when using a custom ServiceHostFactory? Is it necessary to Dispose() when using a custom ServiceHostFactory?
In my WCF .svc file I have defined a custom Factory as:
<%@ ServiceHost Factory="Service.ServiceHostFactory" %>
It appears that a Dispose() is not being called since the overridde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does Int32.Parse do exactly? I am just beginning to learn C#. I am reading a book and one of the examples is this:
using System;
public class Example
{
public static void Main()
{
string myInput;
int myInt;
Console.Write("Please enter a number: ");
myInput = Console.Rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript to jQuery Conversion for an xml ajax call I have the following script
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else { // code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET", "/getSelectedPr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django + javascript Application framework (not Jquery)? Step up from the Django + jQuery / Prototype question...
Can anyone tell me about their experience with a UI application framework like YUI or spoutcore, but that works best with django?
A: I've found that jQuery (or jQuery UI if you like) is always a solid c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert a byte array to uint64 and back in C#? I have been trying this for long. I have a byte array, which I want to convert to ulong and return the value to another function and that function should get the byte values back.
I tried bitshifting, but it was unsuccessfull in few cases. Is there any alternate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to tell if my unbound service is running? I have read the other threads about checking if a service is running but this is not working for me.
My situation is that am creating a background web server service but not binding to it because I want it to continue running after the activity ends. The service creates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: skip copying to tmp table on disk mysql I have a question for large mysql queries. Is it possible to skip the copying to tmp table on disk step that mysql takes for large queries or is it possible to make it go faster? because this step is taking way too long to get the results of my queries back. I read on the MySQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: SSRS 2008 huge pdf report, blank pages We are having an issue while generating a huge PDF Report. We are using SSRS 2008 and a particular report generates more than 1000 pages. If I export to PDF format, the data is populated upto page no. 465 and rest of the pages till 1000 are totally blank. I have Adobe Reader 9.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run Adobe AIR Application on Apple iPad? I am Adobe Flash Designer\Developer and i ended AIR Application for desktop and need to know how to launch this app on iPad?
A: You will need to port the Application to an AIR Mobile app to get it to run on the iPad. Ttis can be easier said than done depending on wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In an external assets folder the best place to put libraries for CodeIgniter 2.x? when I last used CodeIgniter it was version 1.x and I read an external assets folder for css, js, and images was the best way to handle things. I wanted to know if that is the correct way to do things in 2.x. I found this on SO but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cross domain iframe resizer using postMessage I've read all the cross domain iframe posts here (my thanks to all of you!) and elsewhere.
The postMessage script at cross-domain iframe resizer? works beautifully in Firefox 5 and up. It resizes the iframe every time a page is clicked within the iframe perfectly.
But i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: foreach with cycle/alternate options I am looking for a fastest(performance) way to cycle/alternative 2 values inside of a foreach loop. Exactly the same as the smarty works: http://www.smarty.net/docsv2/en/language.function.cycle
A: Cycling is easy with the modulo operator.
$cycle = $iteration % $cycles;
If $cycl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One button firing another buttons click event I'd like two submit buttons on a form i have my team building, one above the fold, and one below. I'm getting complaints from my tech team about adding it because it requires some server side coding to make sure the user doesn't click it more than once. Apparently they h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: How to consume posted file via HttpHandler? I have constructed a method that takes a local file and posts it to a remote site taken from the 2nd answer here.
On the remote site, I have my HttpHandler but do not know where the file bytes are so I can save it somewhere on the remote machine.
Can someone help me on how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UITableViewCell load Images I have 16 locally stored pre-rendered 40x40 px images that I want to use as my UITableViewCell images. I can get it to display them fine using [UIImage imageNamed:]; but I have noticed this slows down the table view scrolling.
I have looked through the apple example for lazy loading etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need to group and summarize flat arraycollection data. Data cannot be grouped out side of app and must return arraycollection I have flat data in my app which I will need to group, summarize, and count as I normally would with a sql query. For this project though, it must be done in the flex app. I need to figur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to get data out of Open Graph? I was wondering if facebooks open graph allows you to somehow get the data out of it. For example if you need to find all the movies people have marked up using facebooks open graph is there anyway you can get that.
A: Yes, you need to get permission from the individual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: any better way of Sorting my dropdownlist After I retrieve the country names in English, I convert the country names to localized versions, I need to sort those names again, so I used SortDropDownList. Here, after I sort my DropDownList Items, I am losing the PrivacyOption attribute I set.
Can someone suggest soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add a menuItem to a context menu which has a set ItemsSource and ItemContainerStyle in XAML I have the following XAML code. The contents in the ItemsSource are displayed as MenuItems.
<controls:DropDownButton x:Name="btnOwner"
DockPanel.Dock="Left"
Style="{StaticResource btnS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which one to learn Python 3.x or Python 2.x? I wanted to learn the python programming but I don't know which one to learn, I mean I think there are some difference between the two languages and I wanted to know which one is going to be used in the future. It does make sense if I learn Python 2.x and it is stopped be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I delete the committed files from Github? My project is here [the link is not for marketing thing as many might think], I am entirely new to Git and Github and I Use Git Extensions with Visual Studio 2008. I committed the file, directory Plug.Sln and Samples into Github, now
*
*How the heck do I remove it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: simple jquery each loop making browser hang so i'm calling a function in jquery that's looping over a table and determining whether to hide a row based on a hidden form element within each row.
when i run this script, toggling the rows either way, the browser hangs for at least 5 seconds even though there are fewer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return a list of links from a webpage in R I'm trying to write a function in r that, given an address, will return a list of links on that webpage.
For example:
getLinks("http://prog21.dadgum.com/109.html")
Would return:
"http://prog21.dadgum.com/prog21.css"
"http://prog21.dadgum.com/atom.xml"
"http://prog21.dadgum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What interesting open source software is written in Lisp? I was looking looking for the sources of real-life applications that are written in Lisp. For example a Pacman clone or a word processor would qualify as such.
A: How about a
*
*web server?
*text editor?
*a type setter?
*an interactive musical score e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Preg_replace domain problem I'm Stuck try to get domain using preg_replace,
i have some list url
*
*download.adwarebot.com/setup.exe
*athena.vistapages.com/suspended.page/
*prosearchs.com/se/tds/in.cgi?4&group=5¶meter=mail
*freeserials.spb.ru/key/68703.htm
what i want is
*
*adwarebot.com
*vistapages.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: to develop facebook app with Rails 3 Which is the best way for to develop a facebook app (Fan page) with Ruby on Rails 3?
A: Not sure what you mean by "best way". I use Koala and the FB JS API.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7532357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drawable on simple button
*
*How can a button (Button) receive a drawable and center it on the button without the text?
*If you can not do this, how then do to the background does not "stretch" button at all?
The problem is that for some button have icon and text, for others only the icon and the third type onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Embeddable PK Object not populating after persist and flush I have an embedded PK object that doesn't populate the id field after persisting and flushing to the database. The ID is an auto-increment field in the database.
Now normally, I would just try a refresh, but it throws the following error:
"Entity no longer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert flv video to mp3 using ffmpeg programmatically? I need to create application on C++ for video conversion, and I can't use ffmpeg.exe.
I need to do it programmatically, but I don't know how can I do it, and I didn't find any examples on Internet.
May be somebody know something about my task? Thank you.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery looping through classes using each() - problem I am using this code to loop through each ".accessoryrow" and then select "dialog" + counter and ".see-details" + counter. So first time when loop goes by it selects dialog1 class and see-details1 class; second time dialog2, see-details2 and so on. I think I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why CUDA block size of 256 or 512 gives better performance as compared to others? I ve written few programs in CUDA C on windows 7. I did the experimentation with the block size. I found that in most of the cases block size of 256 or 512 gives better performance than other. Can any body tell me the exact technical r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace a SqlDataAdapter for SqlCommand in my C# Code My code is construct to read data in a datagridView named (dg) from my database.
Its actually work well whit a SqlDataAdapter.
First Is it a good idea to change my SqlDataAdapter for a SqlCommand ?
If YES
I want to use this for change my SqlDataAdapter.
//SqlCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I fade-in divs on page load and fade them out in the opposite when leaving I have 4 divs on a page, I need them to fade-in one after the other in a clockwise fashion, so not all at once. I also need them to fade out again in the opposite way they faded in when the user leaves the page however they need to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to search people by birthday? I've found this way, is there any other simplier?
ClienteAdapter cliente = Cache.CacheManager.Get<ClienteAdapter>();
DataTable dt = cliente.GetDataTable();
DateTime dta = DateTime.Today;
String dia = dta.Day.ToString();
if (dta.Day < 10)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is JavaScript identity compare really needed here? This is from Crockford's JavaScript: The Good Parts
var is_array = function (value) {
return Object.prototype.toString.apply(value) === '[object Array]';
};
Would this code have worked just as well if he had used a simple equality compare == instead of the ident... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to speed up this type of query? I have a table with words from a text (the table is called token), each word is a row in the table. I want to retrieve adjacent words in the result.
Example: My name is Renato must return:
My | name
name | is
is | Renato
The following query works, but is slow. The textblockid d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE8 inner html and tag object properties I have some kind of trouble in my code in IE8.
<script type="text/javascript" src="js/jquery.js"></script>
<div class="container">
<li></li>
</div>
<script>
var $container = $('.container');
$('li', $container).get(0).my_plugin_inited = true;
alert($container.html());
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make an image overwrite text within another div upon hover of first div? How do I make an image overwrite text within another div upon hover of first div? ? Any help greatly appreciated.
A: window.onload = function () { // ensure that we don't try to get div1 before it's loaded
document.getElementById(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: dismissing modalViewController from UITabBarController issue so in my app delegate I am trying to present a modalViewController from a UITabBarController, by doing the following:
self.tabBarController = [[UITabBarController alloc] init];
LoginViewController* loginViewController = [[LoginViewController alloc] init];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lucene searches on 2 field values as single Lucene document has field a with content hello and a with content world. If i'll search "hello world"~2 it will be founded =(. How can I fix it?
FastVectorHighlighter will highlight it like <b>helloworld</b> (without any space) (anyway it shouldn't highlight it)
A: a seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Updating a mercurial webserver I have a server running mercuial 1.7.2 and want to upgrade to the newest version. What is the best way to go about deploying a new version? Do I need to recopy the templates folder and mercurial folder for python?
A: Generally speaking, you can simply replace your installed Mercur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Load only first frame of Video I was just wondering if it is possible to just load the first frame of a video in AS3, so I can use it as a screenshot/preview type of thing?
Thanks in advance :)
Harry.
A: Load only the first frame wouldn't be possible without starting the process to load all video, then, it would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help with Mule Magento Connector I have been trying for a while to get working the Mule's Magento Cloud Connector. However I have had no success.
I am using magento 1.6.0, mule 3.1.2, and the Mule's Magento Cloud Connector 1.2.
My code and the error stack that I'm getting after trying to execute it is in here:
http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a natural way to map a hash or a XML file to a Mongo document? Is there a way to take a hash of data (or even better an XML document) could be mapped straight to a mongo document. So this hash:
@hash = {
"doc_id" => 3928,
"header" =>[
{"merchantId"=>["35701"],
"merchantNam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to integrate google plus' +1 to a Django Website? I wanted to add a +1 button on every post in my website. How do I do that? Any resources? I am also looking for Twitter's Tweet and Facebook's Like. Or Django does not handle that?
A: Check out the documents for Google Plus, it looks pretty straight f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: box-shadow - Is this possible? I need to make a shape like the one below and was trying to get it working with CSS.
The closest I could get was like this. I had to push the shadow on the bottom part down or else it would overlap with the shadow on the top.
Is it possible to actually make the top version with CSS?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: weird problem with .val on input and .append in jquery I have this code in jquery:
$(document).ready(function () {
$("#main-edit").click( function() {
var cursorExists = $("#cursor").length;
if (!cursorExists){
$("#cursor-start").append("<input type='text' id = 'cursor' />");
$("#cursor").markCursor();
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Image Change On Button Click In Android I'm new to android and am making a simple app. I'm trying to change the image (in an imageview) on a button click.
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
frown = (ImageView)findViewByI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF RIA Services / intercept or subscribe to a RaiseDataMemberChanging So I'm new to the concept of routed events, but I know that messages are flying everywhere when fields are changing via the RaiseDataMemberChanging / RaiseDataMemberChanged messages.
The quick question is how to I "listen" for those routed messag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use my web reference in Visual Studio 2008 I've got a sample project that has several web services and uses them during run time. The application works as intended. The web references are can be see in the Solution Explorer under a folder called "Web References" with the list of web services as single files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java generics problem with Map I have this which should not compile.
public boolean foo(final Map<String, String> map) {
map.get(1); // No error here?
}
A: As of Java 6 the line you have written is exactly equivalent to:
public boolean foo(final Map<String, String> map) {
map.get(Integer.valueOf(1)); /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Apache unable to access local DNS ip address I just set up a server in my house using private IP.
I can access my server using my domain from outside network/ outside from my house.
But I cannot access it from local network using my domain or my private IP address.
What can be the problem for this? is it the Apache ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make a jquery styleBox trigger when focused using tab? I have some styleBox elements that aren't triggering when I tab through the items. Does the change() also get triggered on focus?
A: From the jQuery documentation for .change():
For select boxes, checkboxes, and radio buttons, the event is fired
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: maven basic project templates i generally needs that kind of project.But most maven archetypes generating extra files,jars ... .How can i create simple template of that kind of projects .
1-jsf2 + JPA
2-jsf1.2 +JPA
3-spring +jsf2+JPA
A: This is a simple example by line command:
mvn archety... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to specify what value is passed using a choice form field in Symfony2 I have the following code which displays all the available main pages that can be used when adding sub pages in my project:
$builder->add('subtocontentid',
'entity',
array(
'class'=>'Shout\AdminBun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: As a user, I want a status bar (or similar) to notify me that a job is working when using a Wx.Python gui app Can someone recommend a straight forward way of adding some type of graphical notification (status bar, spinning clocks, etc...) to my wx.Python gui application? Currently, it searches logs on a server for u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a parameter to an Index view Pretty basic question here. How come I get a 404 error when I try to view
/Vendors/123
But I can see the page if I go to
/Vendors/Index/123
Is there any way for me to make it work the first way? I'm just using the default routes being registered in Global.asax.
A: Because t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to redirect python's subprocess.Call methods output to a file and not console? I am using python's Call method in subprocess module to execute a sqlldr command
from subprocess import call
retcode = call([self.COMMAND, self.CONNECTION_STRING, "control=" +self.CONTROL_FILE,
"log="+self.TEMP_LOG_FILE,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Dependency not working with Webservices I have exposed a service in application as Webservice, but it is not getting handal to a Dao which is injected through Dao, any one has any idaa?
Stack
Sep 23, 2011 6:48:58 PM com.sun.jersey.spi.container.ContainerResponse
mapMappableContainerException SEVERE: The Ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to save a .png image from AndroidPlot I have written a code which plots a Line Graph.
This graph is plotted by using Android Plot..
How can i save this graph as .png image??
A: xyPlot.setDrawingCacheEnabled(true);
int width = xyPlot.getWidth();
int height = xyPlot.getHeight();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to display data on a scroll in a Report Services report I am building a recipe book report (SQL Server Reporting Services 2008 R2) for client and they want the ingredients to look like they are on a scroll. But the scroll needs to adjust in length as different recipes have more or less ingredients.
The "ingredi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I set visiblity of GridColumn based off value of another GridColumn in the XtraGridControl designer? I can't seem to find an answer to this question that exists already.
My problem is that I have information on an Employee being displayed in a XtraGridControl with the view set to CardView. In my Employee cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JasperReport and text fields Good day boys and girls;
I wanted to know if possible, pass a text field iReport with another textfield containing. I'm trying but not working. When print the second field as a text and not interpreted as such
E.G.
"\"Name of the pet is :\" + $F{pet}.getName()"
A: I'm not sure what you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send mail using PHP as fast as possible for mobile device api? I'm trying to implement a fast way to send mails from a php script which is a mobile API for mobile devices which access the API via GPRS, Edge or 3G. It should be as fast as possible so that the user doesn't have to wait to long for the http resp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Solr to store data for retrieval Vs. MySQL I'm building a system where I use Solr for search over my content, and MySQL to store the content. The rationale is that MySQL is a good persistent storage solution, and I can join data with other tables and have more versatile queries. On the other hand, I'm looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a good SimpleSAMLphp SLO example? One of our clients is requesting that we implement Single Logout (SLO) through SAML. Their side of the SAML service is the Identity Provider, while ours is the Service Provider. Single-Signon (SSO) works by validating the user's credentials with the client's IdP, then red... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: htaccess redirect to mobile website. Keep the same trailing path I have my website automtically redirecting to a mobile version if the user has an iphone or ipod with .htaccess. But I would like to keep the same link structure.
For example:
http://www.domain.com/status/?variable=12345678
Currently redirects to:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unable to add a cookie included in JSP via jsp:include Cookies are not getting added to the browser when the code adding the cookie is part of a fragment of JSP (includes.jsp) included in the primary page (main.jsp) via JSP:INCLUDE.
The code works fine when it is part of the primary page (main.jsp). However, I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: facebook - user changes password and invalidates the access token Is any way to keep alive facebook access token also when user changes his password? Even with offline_access ?
A: Here's a how-to guide for handling this case:
https://developers.facebook.com/blog/post/500/
You should probably check the full Authenti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do i select a value from a column, based on a selection criteria on another column? How to select a value/name from a column, based on frequency(no. of repetitions) of a value in another column..in R?
This is what my sample data is..:
Col1 col2 Col3 Col4
Yuva 123 qwe XXYY
Arun 234 asd XYXY
Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to Entities Include() does not work The following LINQ to Entities query (using EF 4.1 Code-First), is supposed to create a list of viewmodels based on Campaigns and Users. I have eager-loaded Category property of each campaign so that each campaign should have its Category reference property filled with approp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Inheriting methods with contexts in an activity I have a base class which has a bunch of buttons that are going to be used on all my activities as a general navigation bar.
public abstract class GenericActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Colon separated values in database I have database results in the following format:
s:6:hobbit
the s is "string" and the value is the count of characters in the third section. What is this called? Colon separated values? Is the only way to deal with it, in PHP, through regex?
Specifically, I'm trying to get the val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails Mongrel server won't load anything anymore For a long time, I've been using Mongrel to run my rails app. Unfortunately, yesterday, it decided to stop working.
Here's what happens when I try to start up localhost to see my app:
root@whatever> RAILS_ENV=production script/server
This has always started the Mong... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# - Finding all permutations of the letters in a string with some letters repeated I am having problems calculating permutations for strings containing multiple instances of a letter (e.g. "HRWSOROE" where 'O' and 'R' are in the string twice. The algorithm I am using
public static class Extensions
{
public st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7532506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.