text stringlengths 8 267k | meta dict |
|---|---|
Q: PHP upload errors I have an upload script that's causing me some problems and I can't for the life of me figure out why. Here's the php code:
mysql_connect('localhost', 'root', '');
mysql_select_db('uploads');
if (isset($_FILES["file"]["type"]) && isset($_FILES["file"]["size"])) {
if (($_FILES["file"]["type"] == "i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data-bound WPF ComboBox not displaying selected value I have a ComboBox, bound to a DataTable. The ComboBox displays a list of values, pulled from the "wellId" column of the DataTable. The ComboBox is also styled so that I can insert a custom item into the list simply by adding a dummy row to the DataTable with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way in either sql or web developer to all deleting say from a gridview all but the last row? I have a web portal set up where customers can add company contacts, etc to a sql database thru gridviews and detail views i created with microsoft Web Developer. I need to have it set up, where although customer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Android XML parsing, can't connect to website? Been stuck all day long with this problem, been trying to retrieve XML from this website:
http://www.teamliquid.net/video/streams/?xml=1&filter=live
But I just can't connect, I can find connect to it via google etc, but when I try to connect via the emulator using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache mod-proxy ProxyErrorOverride for specific URL patterns I am using Apache 2.2 with mod-proxy and I have configured it with several ProxyPass statements to proxy from remote URL to local URL. I need to have custom error documents returned from Apache for these proxied URLs so I set "ProxyErrorOverride On" in m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: force absolute positioned div not to overlap I have a header bar that is positioned using position:absolute; and I cannot seem to get it to not overlap my content.
Here is the html i'm using for my example:
<div class="ui-page ui-page-active">
<div class="ui-header">
<div class="ui-title ui-title-h1">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: YouTube API: How to specify an API callback after an uploaded video has finished encoding? I am uploading videos using the YouTube/Gdata API (in python).
After a video has been uploaded via the API, I receive the a response with data about the video (Youtube link, id, etc). However, the video is not publicly availab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practice to limit event queue I am looking for advice and help regarding a specific use case of an application.
Here's the use case:
A user our our WPF application goes crazy and starts clicking all over, triggering a number of events before the first (or previous) event(s) have to finish.
Currently, WPF queues... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using tree node class in c# I have a tree node and the tree node can be checked. The thing is that I need to be able to gray out or disable a specific node programmatically. So for instance
[] Head Node
[sub Node]
[sub Node]
[] another node 1
[] another node 2
So lets say that I check "another nod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RAILS3: Set query parameters to post in functional tests? I have a Rails3 app that has Workflows, and they have many WorkAssignments. WorkAssignments have a field, work_sent_date, the date work was sent to the person. On the Workflow edit screen I display a work sent date field, but Workflow does not have an attribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing an iOS app for Enterprise in XCode 4.1 In articles like this: http://aaronparecki.com/How_to_Distribute_your_iOS_Apps_Over_the_Air as well as the official Apple Documentation: http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Specify the INSTALLLOCATION of packages in WiX inside the Burn managed bootstrapper I have a WiX 3.6 bundle (using Burn) and managed bootstrapper that install several MSI packages. Some of the packages install to a common location (C:\program files\MyApp).
I want to let the user choose the install location inside t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hex to Ascii conversion problem What is the ascii representation of this hex value: 0x80487d2 every converter gives me a different answer, hopefully someone can help.
Thanks
A: 0x80487d2 has no ASCII representation.
ASCII can only have characters in the range 0 and 127 (inclusive). The hex value 0x80487d2 is well ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: PDF files do not open in Internet Explorer with Adobe Reader 10.0 - users get an empty gray screen. How can I fix this for my users? There is a known issue with opening a PDF in Internet Explorer (v 6, 7, 8, 9) with Adobe Reader X (version 10.0.*). The browser window loads with an empty gray screen (and doesn't eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Telling git its ok to remove untracked files
Possible Duplicate:
How do you remove untracked files from your git working copy?
Is it possible to tell git to remove untracked files? Mainly something that is similar to a reset?
example:
git checkout -- index.php <-- revert my file
git checkout -- master <-- this wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Strange issues with texture mapping I am attempting to use texture coordinates from a pre-generated PNG file on a 3d world of quads loaded into Java with LWJGL's slick-util extension.
The texture file is 192x96pixels, and properly formatted. It's composed of 6x3 32x32 tiles.
The 3d quads are 1.5f wide and long. They... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convention For Gem with Common Name I recently authored a gem called 'setting' (found here). The extends ActiveRecord with a module named 'Setting'. I understand that gems are supposed to use the namespace they are named, however when testing this caused collisions with ActiveRecord models with the same name (a Sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Show contents in Modal Popup In SharePoint 2010 i've seen many people are using Modal Popup window to show list contents. How to achieve this in sharepoint 2010.
A: You want to look for information on the Dialog Framework.
This training module should help you get started: Module 10: Creating Dialogs and Ribbon Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete focus from toolbar item I have a toolbar with custom items. When i click on item, left item get a focus. How to delete focus from toolbar item?
A: It looks like you have "Full Keyboard Access" set to "All controls". You can press tab a few times until the focus goes away from the toolbar item.
If you want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: svn command line equivalent of 'git log -p'? Is there an equivalent of git log -p using the svn command line tool? svn log -v shows file names but not changes.
I would like to see the patches introduced by prior commits. If not possible, is there a way to get the patch (not compared to head, just the changeset) intr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What's RunDll32ShimW for in mscoree.dll? I was looking at the exports in mscoree and notice that it exports a function named RunDll32ShimW. The docs on MSDN here aren't particularly helpful. Anyone know what this was for?
I checked out the disassembly of it (it's not in the SSCLI) and it looks like it takes an ass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to rename some file of same pattern in shell scripting I want to write a code is shell scripting which will rename all the files of extension .txt in a current directory to extension .c .Suppose my current directory contains some 100 .txt file. This number is not fixed.
A: See man rename. You can rename multipl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Float an image between 2 columns of text I'd like to know if it's possible to reproduce in CSS/HTML the effect you see in this magazine, with an image floated between 2 columns of text and the text wrapping around it:
I know only modern browsers support 2-column layouts, so my questions are:
*
*Can this be done ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change URL using PHP e.g. i have page with url http://mysite.com?page=3&var=10 also there is form on page.
When form submitted there some actions in php but i need to remove this ?page=3&var=10 after form was submitted somehow is there way compatible with all browsers trough PHP without mod_rewrite?
A: This is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Silverlight 4 Assembly Caching for Project References I have several Silverlight utility and control projects that I re-use in several different applications with-in my web application. These are all worked on in the same solution. Each Silverlight application has it's own page.
Example Setup
*
*Utilities
*Comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the connection string associated with an nHibernate GenericADOException for logging purposes? I need to log the server name from the connection string that was in use when the nHibernate GenericADOException was thrown.
Anyone know how to do this? I've looked high and low on the web and haven't found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Command Argument in Runtime created imagebutton doesn't work? Hello i am creating new image button something like this ;
e.row.cells[0].text= string.empty; //clearing the cells
Imagebutton img1= new ImageButton();
img1.Id="imgInput";
img1.ImageUrl="~/sample.jpg";
img1.CommandArgument= varID; // fetching the ID
img1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to perform a somewhat complicated ActiveRecord scope query for a polymorphic association? So, I have a Notification model that is polymorphic, and I want to be able to filter out notifications that are of a notifiable_type Comment where comment.user == current_user. In other words, I want all notification recor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP Action each function preforms I have the following situation.
I have a class with a lot of functions. Each function starts with executing the same method. Is there a way that I can like implement this method into the function so that it is executed automatically?
Here is an example:
class test
{
static function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VIM loses syntax highlighting when using split command So I have created my own syntax highlighting file and it works well if there is only one file opened. However, if I do :split otherFile, the other buffer that gets opened does not have syntax highlighting. I have tried various things, like :syntax on etc. What c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Tool to convert an XPath to a jQuery selector? Firebug is able to display the xpath for any DOM element in the HTML view. I was wondering if there's a way to convert the xpath to a jQuery selector? (I prefer not to do this manually)
This will greatly save me time to find the correct selector for elements which don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: URL scheme to open Videos from a browser on iPad I can create an link to an iBooks document using the "itms-books://book-name" URL scheme, use that link in an html anchor tag accessible via a browser. When I click the link, it launches iBooks and opens the document.
How can I create a similar link to launch the Vide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: New to SAS - need help getting started My department maintains all sorts of jobs and reports based on SAS, in a mainframe/batch environment (ie ugly JCL green screens).
I have been enrolled in an expensive training program from the SAS Institute. One of the first parts of the training asks me to install files from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jQuery Hide / Show (div with modified id attr) I'm having truoble doing this:
<div id="show-menu">Show Menu</div>
<script type="text/javascript">
$(document).ready(function() {
$('#show-menu').click(function() {
$(this).animate({marginRight:'70px'}, 500);
$('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I host RavenDB inside my self-contained process? Is it possible to host RavenDB from within my own process? I do not want to use a separate IIS site or run a separate server .exe.
Looking for something pseudo-code like RavenDB.Server.Start(8080) (8080 being the port).
A: Yes...
var documentStore = new Embeddab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Setting up a service at start-up as non-root user I would like to have a service start at boot, as a non-root user on Fedora 15.
I have placed the script into /etc/init.d/, used chkconfig --add and chkconfig --level to get it all set up and it is working correctly.
What do I need to do to have it launched as non-roo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails: How to create a file from a controller and save it in the server? For some strange reason I need to save a file (normally downloaded directly) in the server. In my case I have a PDF file created with PDFKit that I need to keep.
# app/controllers/reports_controller.rb
def show
@report = Report.find(params[:i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does adding a NSObject into MainMenu.xib creates a singleton object? Let say I have a NSObject AppController:NSObject. Using IB, I drag an NSObject control into MainMenu.xib and points the class to AppController. Since MainMenu.xib is loaded once and objects inside MainMenu.xib are in memory for the life of the app,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switch statement in C++ Consider:
#include <iostream>
using namespace std;
int main()
{
int score;
char grade;
cout << "Enter your score: " << endl;
cin >> score;
if (score >= 90)
grade = 'a';
if (score >= 80)
grade = 'b';
if (score >= 70)
grade = 'c';
if (sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make AutoMapper create an instance of class I have the following source type:
public class Source
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address1 { get; set; }
public string Address2 { get; set; }
public string City { get; set; }
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SciPy LeastSq Goodness of Fit Estimator I have a data surface that I'm fitting using SciPy's leastsq function.
I would like to have some estimate of the quality of the fit after leastsq returns. I'd expected that this would be included as a return from the function, but, if so, it doesn't seem to be clearly document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: About Youtube views count I'm implementing an app that keeps track of how many times a post is viewed. But I'd like to keep a 'smart' way of keeping track. This means, I don't want to increase the view counter just because a user refreshes his browser.
So I decided to only increase the view counter if IP and user ag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: line break in ant mail message body how can I put a line break into an ant mail task section ? I've tried almost all possible things so far, like :
<property name="break" value="line break : ${line.separator} \\n\\n"/>
<echo message="${break}"/>
<mail mailhost="" mailport="25" subject="INSTALL BASE on WIND... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is possible to declare string type with restricted length that doesn't start from 0/1? In Delphi it is possible to declare subranges for integer values. For example:
type
myInt = 2..150
Which restricts values of myInt type to values from 2 to 150. But what if I want to restrict the length of a string?
If I write:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Select by "name" in JSoup I have multiple div's in a webpage URL that I have to parse which have the same class name but different names with no id's.
for eg.
<div class="answer" style="display: block;" name="yyy" oldblock="block" jQuery1317140119108="11">
and
<div class="answer" style="display: block;" name="xxx"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: adjusted bootstrap confidence intervals (BCa) with parametric bootstrap in boot package I am attempting to use boot.ci from R's boot package to calculate bias- and skew-corrected bootstrap confidence intervals from a parametric bootstrap. From my reading of the man pages and experimentation, I've concluded that I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Facebook Canvas/Tab app, fb_sig_profile_id, fb_sig_app_id With the changes for Facebook Apps coming on October 1st, I am having trouble confirming that our Canvas/Tab app will/will not work as expected.
When a user first loads the tab with the app, I'm expecting facebook to send me parameters of "fb_sig_profile_id" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCV PCA question I'm trying to create a PCA model in OpenCV to hold pixel coordinates. As an experiment I have two sets of pixel coordinates that maps out two approximate circles. Each set of coordiantes has 48 x,y pairs. I was experimenting with the following code which reads the coordinates from a file and stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Spring MVC a Replacement for Servlet/JSP/Beans MVC Model I apologize for the "noobness" of this question, but I've recently been studing JSP/Servlets that I will be using primarily to build web applications/dynamic websites. I really like the design model of using servlets to do the business logic (code), jsp to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add points in google maps v3 with jQuery callback? var url = 'http://tw.tranews.com/map/dStores.asp?x1=' + latlng.x1 + '&x2=' + latlng.x2 + '&y1=' + latlng.y1 + '&y2=' + latlng.y2;
$.get('proxy.php', {url: url}, function (resp) {
console.log(resp);
}, 'XML');
Excuse me guys, I want to add poi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a list of members in a Python module, or how should I create plugins? I'm writing a sort of dashboard-esque program in Python to make tasks that I do frequently here at work a little better/easier.
What I currently have set up is an actions module. actions contains an actionlist that is a list of classe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Invoke method of constructed delegate class is virtual? I've seen in CLR via C# and in codeproject article Delegate Behind the Scenes that when C# compiler sees this
public delegate void MyDelegate(int intValue);
it actually generates something like this
class MyDelegate : System.MulticastDelegate
{
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Ubuntu Netbeans 6.9 is ugly The fonts and everything is just ugly in Ubuntu 11.04. Do you know how to change it, to make it look like in Windows? Or maybe you know other good PHP editor?
A: Maby you could try Aptana as an editor: http://aptana.com/products/studio3/download
A: Manually edit the netbeans.conf file,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to skip pre header lines with csv.DictReader? I want to csv.DictReader to deduce the field names from the file. The docs say "If the fieldnames parameter is omitted, the values in the first row of the csvfile will be used as the fieldnames.", but in my case the first row containts a title and the 2nd row which c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: CSS-sprite menu and jQuery addClass() method I've created CSS sprite menu based on this tutorial:
http://buildinternet.com/2010/01/how-to-make-a-css-sprite-powered-menu/
Now I'd like to assign .selected class to the 'a' which was clicked as last one. I've added sipmle script:
<script>
$("a").click(function(){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to improve ESRI/ArcGIS database performance while maintaining normalization? I work with databases containing spatial data. Most of these databases are in a proprietary format created by ESRI for use with their ArcGIS software. We store our data in a normalized data model within these geodatabases.
We have fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing parameters to a4j:ajax method I am trying to use <a4j:ajax> to feed a method with a value just entered on the form;
<h:selectOneMenu id="aa" value="#{colorClass.color}">
<f:selectItems value="#{myChoices.colorOptions}"/>
<a4j:ajax event="change" render="colorCode"
execute="#{myChoices.getCol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating Java Spring MVC 3 based application with services, I am new to Spring MVC3 framework in java but I am familiar with java coding.
I want to write two application using this framework.
*
*First application recieves requests through a SOAP web services and sends response in form of SOAP XML Object.
*Secon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use eclipse CDT for jni debugging? How to use Eclipse CDT along with JDT to debug the jni code?
Using Eclipse, is there a way by which we can debug the native code without the use of visual studio?
Thanks.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7588446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select attribute values into a list I have the following xml:
<ListOfItems>
<item myval='123' />
<item myval='342' />
<item myval='233' />
<item myval='444' />
</ListOfItems>
I'm parsing/traversing it with jQuery. What is a selector that would give me a list of all values in the attribute 'myval' of '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue uploading images/non text files to Rackspace Cloudfiles (MisMatchedChecksumException) via PHP API I am having an issue uploading to Rackspace Cloudfiles.
I am able to upload anything that is text based (text/html, text/plain etc) but anything else I try fails with the MisMatchedChecksumException which, as I un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIActivityindicatorView in MPMoviePlayerController I am downloading videos and playing with MPMoviePlayercontroller, i want to display uiactivityindicatorview in mpmovieplayercontroller while video is being downloaded as in YouTube app.
How can i achieve that?
A: Something like this?:
UIActivityIndicatorView *acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linux USB Application using libusb I am trying to write an application to read and write to a connected USB device. I am using libusb. It seems after I find the device, configuration fails. I am following the developers guide for libusb at http://libusb.sourceforge.net/doc/index.html. Which states that:
usb_set_co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: need help converting label to string to output in another label box for summary: C# strFirstName = txtFirstName.Text;
strLastName = txtLastName.Text;
lblSummary = "FirstName:" + strFirstName + Environment.NewLine +
"Last Name:" + strLastName + Environment.NewLine +
"Gross Income:" + decGrossIncome.ToString("c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript Image Object - Handle onload Event I'm trying to preload image on click event:
// new image object
var imgObject = new Image();
// assign the path to the image to the src property
imgObject.src = document.URL + 'image/image.jpg';
// check if image has loaded
if (imgObject.complete) {
But the complete c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a method like onrotate() or something with a similar functionality in Android? I call a method based on a boolean value. I try setting that value in onRetainNonConfigurationInstance() to handle screen rotation but somehow it does not call the function correctly. What is the best method to call that will all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Quick Recursive search of all indexes within an array Ok, so say I have an array as follows:
$buttons = array(
'mlist' => array(
'title' => 'Members',
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it considered good practice to change the protection level of a method? In other words if I have a class
class A
{
public:
A() { .. }
virtual void somemethod() { .. }
};
is it ok to write
class B : public A
{
public:
B() { .. }
protected:
virtual void somemethod() { .. }
};
or are there some drawbac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maven dependency resolution and scope overriding Disclaimer
(I originally asked the question in a very detailed manner over here. I've excerpted it here as the maven-users mailing list has gone quiet on this question.) (not just another newbie question)
Reference
My reference material is
http://maven.apache.org/gui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Expand/Collapse set height divs with same class using jQuery
Possible Duplicate:
jQuery div content partial hide, show all
I know this has been done and I have seen in peoples websites but I can't find it. So I am here.
I need to set up or list multiple divs (4 or 5) on a page with the same class and set each div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to write a c function which creates an empty queue? I am new to C. I have no idea about how to write a C function which creates an empty queue and return a void pointer.
void* queue_open(void)
I also want to know how to write a C function which puts an element at end of a queue.
void queue_put(void *p, void *e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Namespaces in web.config file not working
Possible Duplicate:
How to add namespaces in web.config file?
I am trying to add namespace in web.config file, so that I can use it in all web pages (in code behind). But it is not working.
Has anybody tried it ? I have asked this before but not get any suitable answer.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Format a datetime into a string with milliseconds How can I format a datetime object as a string with milliseconds?
A: To get a date string with milliseconds, use [:-3] to trim the last three digits of %f (microseconds):
>>> from datetime import datetime
>>> datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "329"
} |
Q: Get latitude / longitude / Reverse Geocoding without displaying maps Using a website, I am trying to capture user's latitude / longitude point and based on that grab his current address.
I am able to do this using Google Maps API: geolocation and Reverse GeoCoding. But, my requirement is to get this information with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tumblr API Blog methods return 401 "Not Authorized", but User methods works perfect So, there is a code that uses xAuth authentication to call tumblr API methods:
import urllib
import urlparse
import oauth2 as oauth
consumer_key = "..."
consumer_secret = "..."
consumer = oauth.Consumer(consumer_key, consumer_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I capture and print stderr and/or stdout correctly on Windows? Thanks to hammar I have the beginnings of a job management server running on windows. The intent is that a unix-side daemon will be sending commands to and receiving stderr/stdout from windows-side. Problem is, I can't get the windows-side server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove duplicates (1 to many) or write a subquery that solves my problem Referring to the diagram below the records table has unique Records. Each record is updated, via comments through an Update Table. When I join the two I get lots of duplicates.
*
*How to remove duplicates? Group By does not work for me as I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Datatables doesn't process page changes I must be doing something wrong, but my code is very basic, hardly even deviating from their example on the web.
I'm using server-side paging, and what I'm experiencing is that on the immediate page load it's pulling in the data from the server and rendering the table just fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: centering jquery-ui button Strange thing. I center a div inside another div, and all is fine until the inner div is changed to .button. Then it is not centered any more.
html:
<div style='width:100%;'>
<div id='bt_click_me' class='button'>Click</div>
</div>
css:
#bt_click_me
{
width:100px;
margin: 0 auto ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Vim: Set Color/Theme based off time of day I have one of those super glossy monitors, so during the day I can see my own reflection better than my code on Dark themes. So I thought it'd be great if I could have a simple if switch in my vimrc to set either a dark theme or a light theme based on the time of day.
Alas,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: how to preserve the orgianl backgroundColor when hovering? below is the code that works fine but the only problem i have is : its overriding the alternative row with backgroundColor='white' how can i have my orginal alternative color when onmouseout ?
<AlternatingRowStyle BackColor="#DEEEE9" Font-Size="8pt" />
if (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Used normal text in combination with normal text in plot UPDATE: I actually found the solution myself, see below.
In R I want to add a label to a plot containing both subscript and normal text. To be more precise, I would like to use mtext() (or any other method that does the trick) to add a text below a plot. The t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to produce X values of a stretched graph? I'm trying to "normalize" monthly data in a way.
What I mean by that is, I need to take daily values and check the data from each month against the data in another month.
The only problem with this is that some months are longer than others. So I have come up with a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails way to generate site navigation Navigation for most websites takes the form of an html unordered list with anchors inside of the list elements. Typing out all of these item tags doesn't seem like the rails DRY way to create a list for navigation.
I ask how you create a list for navigation the rails way and if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Finding Next Active Day of Week I've got a C# class I'm working with representing a profile that includes some scheduling information indicating how many updates during the day, and which days to update with boolean values for each day of the week. I've seen some posts here and on other sites to find the next in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tracking nested items in CSS I'm going out of my mind trying to figure out where these 4 <br> tags are coming from.
The CMS is doing this:
<div style="width:100%; border: solid 1px;">
<br>
<br>
<br>
<br>
<table style="display:block; width: 99%; height: auto; margin: 0px; vertical-align: top; bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically adding and selecting a menuitem in XUL I'm using a Javascript object containing a list of phone codes to generate a dropdown menu in XUL. My object has this form:
var CountryCodes = {
"Afghanistan":"+93",
"Albania":"+355",
"Algeria":"+213"
}
The code for populating the menupopup looks like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How show or appears the TitleBar? (I'd set NoTitleBar in Manifest.xml) I'm looking for to set the default titlebar in one layout into my app. But I'd set the Theme of the app to NoTitleBar.
How can I add by code to set/appear the titlebar?
Thx.
A: You can specify the theme for each activity in your AndroidManifest.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entering app debug/test mode - best practices We've delivered the app to the customer. Part of the app's functionality involves talking over HTTP to a set of production URLs. The customer would like the ability for the app to enter a debug or test mode, in which the app connects to parallel test servers rather tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to run WEBrick for Rails application, but keep getting error: "Only one usage of each socket..." Info: Rails 3.0.9; Ruby 1.8.7; Windows 7
I just switched from mysql to postgresql in my Rails environment, and I cannot for the life of me get around this error when trying to run rails s on port 3000:
WARN TCPSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: spim simulator pcspim : error setting value at an address Hi I am using spim simulator pcspim and I am trying to set a value at an address using the set value option under the simulator menu.
When I try to set a value which has an msb of 1 for ex. oxb1234567 the value at that address is defaulted to 7fffffff, can an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help making an eraser for a paint program in java Making a very basic paint program for a class and one of the requirements is that we must make an eraser. Not sure how to do that, We are using a bufferedimage that is then getting pasted to our jframe. Any ideas on how this could be done/ any code examples? Someone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Establishing month length and first day Is there a simple way of, given a month and a year, establishing:
*
*How many days there are in that month (factoring in leap years) Done
*What day of the week the first day fall upon?
A: See http://php.net/manual/en/function.cal-days-in-month.php
$num = cal_days_in_mont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exporting an array to Excel I'm trying to export an array of arrays to excel. I have it set up to be a header variable, and a data variable that basically builds a giant string to be executed in the export. However, only the header variable is going through. Let me show some code:
This is setting the parameters:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the limitations of SqlDependency? I am using a table as a message queue and "signing up" for updates by using a SqlDependency. Everywhere I read, people are saying "look out for the limitations of it" but not specifically saying what they are. From what I've gathered, you will have problems when the table h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Convert letters to lower case I use the following with respect to letters from any language:
text = regex.sub("[^\p{alpha}\d]+"," ",text
Can I use p{alpha} to convert letters to their lower case equivalent if such an equivalency exists? How would this regex look?
A: As oxtopus suggested, you can simply convert let... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Ignore Unicode Error When I run a loop over a bunch of URLs to find all links (in certain Divs) on those pages I get back this error:
Traceback (most recent call last):
File "file_location", line 38, in <module>
out.writerow(tag['href'])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Drag with mootools on mobile Is there a way to make to work the mootools class "Drag" on Safari mobile?
Please don't link me to other frameworks.
A: I've fixed it myself. It is as easy as maping the mouse events to touch events.
So the solution is to search & replace:
mousedown -> touchstart
mouseup -> touchend
mou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: facebook apps settings opengraph dashboard not updating I asked a similar question earlier, but it was one of a bunch of questions, most of which I later solved. So I figured I would create a new question only about this.
In developers.facebook => $MY_APP => app settings => open graph => dashboard, you have options... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What nodejs library is most like jQuery's deferreds? I've become a skilled user of jQuery's new and amazing Deferred module, and as I'm easing into using more of Node.js, I find myself wanting something exactly like it in much of my Node.js programming: callbacks that block until a collection of promises devolves to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7588581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.