text stringlengths 8 267k | meta dict |
|---|---|
Q: Combining 2 functions I am trying to combine two functions because A) I think I can and B) I think I should. When I use the functions separately the script works fine. When I combine them the "new" variable is an empty string vice what it should be. Any help would be appreciated. If you need the full script that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC - References a master/layout page from another project? Is it possible to include/reference a master (layout) page from another project? I have a "common" project that houses the look and feel that can be reusable (and able to override/customize) across many projects, but not sure what would be the appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to apply jQuery UI theme to my regular html? I use jQuery UI for the various widgets like dialogs, buttons, etc. I want to continue using the theme for my other webpage elements like error/alert notices and highlight styles. So I went to the themeroller page to view what they use for the css around, for exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: eclim - cannot create new Projects I just set up eclim to be used inside (g)vim but it is not working. I can :PingEclim so there is no connection Problem but as soon as I try to set up a new Project via
:ProjectCreate /home/me/projectdir -n cpp" I get the strange error
org.eclipse.core.runtime.CoreException: Cannot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: modification of code to bulk process in r After being recommended to use adehabitat to calculate volume of intersection I have stumbled into a slight (hopefully simple) problem. In this library I am using the kerneloverlap command because I need to calculate the volume of intersection. I was wondering if you could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asynchronous CreateProcess? I have noticed that in my application, CreateProcessWithTokenW sometimes blocks for a very long time (up to 20 seconds) before returning. It is not acceptable to block my main thread for this long, so I'm considering moving the call onto a background thread. However, I'm wondering if ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does table size affect INSERT performance? This is a question just for the sake of asking:
Barring all intermediate to advanced topics or techniques (clustered indices, BULK INSERTS, export/import tricks, etc.), does an INSERT take longer the larger a table grows?
This assumes that there is only one auto-int column,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Server client-side alias is not working The legacy vb6 application uses hardcoded connection strings like
Provider=SQLOLEDB.1;User ID=USER_NAME;password=USER_PASSWORD;Initial Catalog=DB_NAME;Data Source=OLD_SERVER_NAME;Network Library=DBMSSOCN
The goal is to forward this application to the NEW_SERVER_NAME with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: method optimization - interface_si If I remove the html from the method arugments and put it into variables does this increase the memory overhead for the function as opposed to inserting it inline. Obviously the readabily is not as good with the html inserted inline. Which way is better?
Example 1
function interf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Template Inheritance Okay, this one is completely blowing my mind.
I have a very simple _base.html, whose code reads as follows:
<!DOCTYPE html />
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
{% load static %}
<title>Welcome!</title>
<!-- Includes jQuery UI -->
<script type='applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File not deleting with if statement even if it is true, but is deleting without if statement Whenever I add the:
if(lines[0].equalsIgnoreCase("owner: " + sender.getName()))
The file does not delete, but yet this:
System.out.println("Deleted message successfully!");
still runs, meaning the if statement is true.
Whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to have multiple Display name pointing on the same Application Site URL? We need to localize the Display Name of our application in different lauguages, but we would like to have all names pointing to the same application in order not to split the stats (MAU and others).
Any ideas?
BTW, It's the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: where is the RESOURCES folder in the new xCode4.2 I can't seem to find the Resources folder in the new xCode4.2 project navigator
where do i put the image resources for my app icon in this new xCode4.2?
Here is a screenshot:
A: It looks like many samples from Apple now use the Supporting Files folder instead. Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7507997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: program closed unexpected when i try getConnectionInfo I'm in the process of learning the android api. However, when I try to get info about wifi my program is closing unexpectedly:
here is the code:
package com.example.helloandroid;
import java.util.List;
import android.app.Activity;
import android.os.Bundle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Re-create an existing sql server database programatically? Is it possible to either copy and existing database, or generate the sql and then run it against a sql database to create a copy of an existing database?
I don't care about the data, just the schema.
I want to do this for unit testing. I know I can just us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: strtotime() doesn't warn of invalid dates I am using strtotime to parse a date that is like 10:24 AM 22-Sep I was then parseing this thru checkdate
$pickup_time = strtotime($pickupTime);
if (!checkdate(date(n,$pickup_time) ,date(j,$pickup_time), date(Y,$pickup_time)));
{
echo json_encode(array("msg"=>"Nice one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I show errors returned from the Javascript SDK I'm working on a script that combines both the PHP and Javascript SDKs.
It's a pretty basic script, and for the most part it works, but it's going to be used by others and I'm trying to make it a bit more bullet-proof.
The issue I have is that if anything like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning from a function while continuing to execute I am working on a Django application where I would like to populate several fields within my model when an object is first created. Currently I am able to do this in the save() routine of my model like so:
def save(self, *args, **kwargs):
file = fileinfo.getf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deprecation warning when using Cucumber with Rails 3.1: class_inheritable_attribute is deprecated This is a fresh project setup on Rails 3.1. When I run cucumber features I always get the same annoying deprecation warning twice. Any guidance would be appreciated.
DEPRECATION WARNING: class_inheritable_attribute is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: BrowserID without Javascript (preferably in Python) - is it possible? BrowserID currently uses a Javascript shim, while browsers are still (hopefully) developing support for it. Is it possible to use BrowserID for clients that don't run javascript?
I could read the 600 line JS shim, and figure out what navigator.id.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to replace characters in a string with other characters? I want to replace certain characters in a string with other characters. I´ve did my research and found that the best way is to use regular expressions...
But, something doesn´t work ...
Here´s what i did so far...
var alphabet = {
'á':'a',
'é':'e',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: gIntersects TopologyException in rgeos R I have a shapefile that represents ecoregions of the world. I am trying to determine which ecoregions are intersected by the distributions of my species of interest. I am using the latest version of R and the rgdal and rgeos packages.
I load in a list of species ranges call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Uploading files recursively with WebClient I am writing a .NET application in C# that needs to upload some files onto a server using FTP. I am looking at the UploadFileAsync method provided by he WebClient class:
http://msdn.microsoft.com/en-us/library/ms144232(v=vs.80).aspx
What I am curious about is what happens i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Diff of two directory trees to create file/folder level patch (incl. binary files) There's lots of solutions for creating a file level patch for text files and the like. What I'm looking for is an easy script/shell command that will compare oldversion/ newversion/ and give me a tree of files that I need to copy over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET MVC: Accessing ViewModel Attributes on the view Is there any way to access any attributes (be it data annotation attributes, validation attributes or custom attributes) on ViewModel properties from the view? One of the things I would like to add a little required indicator next to fields whose property has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Advice for website authentication system that queries facebook API I've built a website that authenticates users via facebook.
The way I've set it up is like this: The website uses the facebook JS SDK on the front end, and when the user authenticates with facebook their access_token is sent to my server via an ajax ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: JPA/Hibernate selective flush I guess I'll start with
The Question
Is there a way to ensure that only entities that have been explicitly 'marked' in some way are flushed to the database?
The Environment
We are using Java EE 5, Seam 2, JBoss AS 6 and Hibernate (although we try to keep direct Hibernate dependencies mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Fragment no view found for ID? I have a fragment I am trying to add into a view.
FragmentManager fragMgr=getSupportFragmentManager();
feed_parser_activity content = (feed_parser_activity)fragMgr
.findFragmentById(R.id.feedContentContainer);
FragmentTransaction xaction=frag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "345"
} |
Q: Open Source .NET Application Projects (not framework or tool projects) with lots of NUnit Tests I would like to get a list some reference or sample application projects in .NET/C#- with good test coverage.
The thing is, I want to see this in action for a true application project with any business logic in it. Ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: bt assembly instruction I have quesetion about bt assembly instruction. I have excerpted part of book to provide context. Please see last example, bt Testme, bx. Why does that copy TestMe+8? Shouldn't it copy TestMe+65?
Very much thank you for help!
6.6.4.2 The Bit Test Instructions: BT, BTS, BTR, and BTC
On an 803... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I get an integer index for a key in hadoop? Intuitively, hadoop is doing something like this to distribute keys to mappers, using python-esque pseudocode.
# data is a dict with many key-value pairs
keys = data.keys()
key_set_size = len(keys) / num_mappers
index = 0
mapper_keys = []
for i in range(num_mappers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Databind repeater using Linq with group by I need to bind a repeater with hierarchical data as follows:
Category1
- Item1
- Item2
Category2
- Item3
- Item4
I currently have a single dataset with the items as well as the category that each item belongs to.
I'm trying to learn Linq and was wondering if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I create a trigger that involves a cursor on a table that the trigger is not made for? For example if I have a trigger for table employee. I want to create a cursor loop from the table department. Then I want to take the attribute and insert it into the table company. I'm guessing the answer is no, because I ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I avoid overloading the JavaScript CallStack? The javascript below accomplishes the following (this is for a node.js COMET application):
*
*Request is made to the server and held until the server has something to
return.
*Once the request returns the data is processed and another
request is immediately ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating an xls or csv file from a Javascript variable I have an app that uses Javascript to perform some calculations and then plot the data, but I'd like to add the option for the user to be able to actually download the data into a csv or xls file.
Is there a way in Javascript (or some other method) to have the u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Excel multiple grouping on table for different pivot tables? I am using Excel 2007 and using several pivot charts which reference the same table of data. I change the data daily, copy and pasting the data from another source. Is it possible to change the grouping on the table so that I can view the data differently ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing Iframe Width/Height in Javascript Based on Anchor Point Ok, I deal with this all the time in flash but I'm kind of lost in how to accomplish this in Javascript and CSS. I have an iframe (which by definition doesn't have an overflow property) whose width/height i'm trying to modify. Is there an easy way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook API simple authorization failing javascript I have the following in my source code. I get the alert "No Response" and then the facebook page says
"An error occurred with MYAPP. Please try again later"
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js" charset="utf-8"></script>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Honeycomb: How to style right corner arrow in spinner on an ActionBar This is a pretty specific question. I have a spinner on an ActionBar that is added in the onCreate() method. I have been able to style the text white, but I can't get the underline and the triangle/arrow at the bottom right to appear as wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How did my SQL Server 2008 trigger get deleted? This is a very strange problem. I've asked about it before here:
How did my trigger get deleted?
I renamed my trigger and I thought it had stopped happening but the problem seems to have come back again.
I've added a trigger to a table in our database. The server is SQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: put jquery template in external file I use jQuery template on my site, I would like to put them all on a separate file. How do it do it?
Here is one example
<script type="text/template" id="request-template">......</script>
A: if you have a big application, i suggest you look into require.js
in combinat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with matchmaking in iOS with gamekit and game centre At the moment I'm trying to add online multiplayer to my iOS game (that uses UIKit) using gameKit/GameCenter for matchmaking. I'm trying to present game center's matchmaker interface but with varied success. I have two view controllers (with respective .xi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dealing with a multiple user environment This is my first time developing an application that will be used by 10-15 people concurentlyso I'm not exactly sure of a good way to minimize update collisions.
Essentially, my application works as follows. New items get inserted into the database via an external service as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Codeigniter CSRF question I'm just wondering of there is any option where i can turn off CSRF in a specific controller/method. I've got another site that pings my site, but getting blocked because of the CSRF.
Is there any way i can get around this?
A: Create a pre_system hook then put the following code inside you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: -webkit-tap-highlight-color in Windows Phone? Is there an equivalent to -webkit-tap-highlight-color for Windows Phone 7 (Mango)? I'm writing a mobile site, and I'd like it to display the same way across all browsers, if possible.
I've tried tap-highlight-color and -ms-tap-highlight-color, neither worked.
A: Unfortu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Change style of all elements with particular class apart from the first one? Let's say I have the HTML
<div class="ms-rtelong"></div>
<input type="text" name="fname"></input>
<input type="text" name="lname"></input>
<div class="ms-rtelong"></div>
<div class="ms-rtelong"></div>
<div class="ms-rtelong"></div>
With
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery ui tabs+dialog+form tab order I have a jquery dialog that pops up with a form. The form is split across multiple tabs within the dialog. I'm working on keyboard ease and would like for pushing the tab key on the last element of one tab to take me to the first element of the next tab. Right now the tab order i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding SQLite Parameters directly by Name I recently - very recently - started learning how to program for iOS, and have been stumped by what appears (to me) to be a blatant oversight in SQLite3. Let me qualify that by saying that prior to last week I had zero (practical) experience with Macs, Objective C, Xcode, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Use jQuery.validate to check that 3 dropdowns all have non-default options selected I want to use the jQuery.validate() plugin to check that the user has chosen an option from 3 dropdown lists - day, month and year for their DOB. I don't need to validate the actual date, just as long as they choose something. I just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Could not call install_name_tool Trying to use virutalenv version 1.6.4 (the latest at writing this post) on 10.7, Lion with yes Xcode 4 installed from mac app store, yet i'm getting the below error message:
New python executable in SUPENV/bin/python
Error [Errno 2] No such file or directory while executing command ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Appending node[index] in XML with jQuery How I got here:
I let my last question on pretty much this same subject gather dust. So, I thought I'd take what I learned and ask a more precise question.
I've got some information in an XML file that I would like to write to various DIVs on my web page, and something isn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XHTML validation Error
A: You are trying to validate <script type=\"text/javascript\">, which is invalid... the validation service highlights the slash character for you at column 14. You cannot have a slash character before the open quote starts in type=.
Update
Check the HTML source of your page which is what the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Valid Characters Between HTML Attributes This might be a silly thing to do; but I'm trying to allow 'some' HTML on a website (okay, it's probably a bad idea). But, for the sake of argument...
Is there ANY non-white space character you can place between an attribute and the '='s sign and still have a modern browser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Optional Arguments in Classic ASP for Stored Procedure I'm trying to run some stored queries in an Access database from an ASP page. I'd like to use an ADO Command object to run the procedure instead of simply sending a string to the database to execute. My trouble is occurring when I try to create the param... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Metro web service with SSL - Is this a secure conversation I have the following conversation log (from WCF Trace file). It shows a WCF client calling an SSL protected Metro web service. Does the conversation have applied security? How do I know this from the logs?
Message Source: ServiceLevelSendRequest
Message Type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linking dependencies of a shared library I was working with SFML, I compiled a little test program and added the linkage option -lsfml-audio. Then, I used ldd ./program to see the dynamic libraries it was linking to. Surprisingly, there were a lot, none of them had I manually selected in my makefile, nor using pkg-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: invoke command on remote machine is not working using powershell I ran the below commands on my machine to download data from one server to another server using the invoke command
Enable-PSRemoting -force
Enter-PSSession Server1
invoke-command -computername Server1 -credential:'dom\jack' {c:\temp.ps1 -server serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with a Linq to Entity query that contains a passed list of entities I have two entities
User { UserID, Name, UserTypeID }
StudentParent { StudentParentID, StudentID, ParentID }
// where
UserTypeID { 1=student, 2=parent }
Both StudentParent.StudentID and StudentParent.ParentID are foreign keys pointing to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does the hover pseudo-class override the active pseudo-class The title basically says it all.
Suppose I have an element which I want to change color on :hover, but while clicked, I want it to switch back to its original color. So, I've tried this:
a:link, a:visited, a:active {
background: red;
}
a:hover {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Random Code Overkill? I have some code I am using
function genCode ($entropy=1) {
$truCde = "";
$indx = 0;
$leng = 30*$entropy;
while ($indx < $leng) {
$code = "";
$length = 100*$entropy;
$index = 0;
while ($index < $length) {
$code .= rand();
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between XX:MaxDirectMemorySize, Xmx,XX:JavaMemMax The subject line pretty much sums up my question.
A: *
*XX:MaxDirectMemorySize:
This option specifies the maximum total size of java.nio (New I/O package) direct buffer allocations.
*Xmx:
The -Xmx option sets the maximum Java heap size.
*XX:JavaMe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails 3.1: how to run an initializer only for the web app (rails server/unicorn/etc) My webapp needs to encrypt its session data. What I setup is:
config/initializers/encryptor.rb:
require 'openssl'
require 'myapp/encryptor'
MyApp::Encryptor.config[ :random_key ] = OpenSSL::Random.random_bytes( 128 )
Session.delet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Error : String or Binary data would be truncated i have written a query as below. lets say i have data in @Test table as "New York and Texas have CCRxSM federraly approved". Word CCRxSM is a superscript word but it didnt loaded as superscript. SM should be on top like CCRx℠.
Declare @Test Table (Foo1 varchar(1023))
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't Android's onProviderEnabled() method being called? My Android app has two location listeners, one for fine and one for coarse listening. I want to be able to detect when the user turns their location services off and on.
Whenever I turn my phones GPS or network location services OFF the onProviderDisabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: AppWidget alarmmanager not updating So, I've got a widget, I want it to update every 60 seconds. When the widget is first added to the homescreen, it runs its update function just fine. Beyond that it's supposed to start an AlarmManager, which will rerun the update method every 60 seconds. That's the part that it do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Problem inflating custom view for AlertDialog in DialogFragment I'm trying to create a DialogFragment using a custom view in an AlertDialog. This view must be inflated from xml. In my DialogFragment class I have:
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
return new AlertDialog.Builder(g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How to send checked radios values? I have a list of items with checkboxes. I need to send that list (just as I would with a form), to a specific PHP file that erased those checked items, and returns the new list.
<table style="float:left;width:100%">
<tbody>
<?php foreach ($items as $item): ?>
<tr>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use a cell containing a date to reference for multiple Pivot Tables in Excel? I am using Excel 2007 & about 20 pivot charts/graphs which reference the same table of data in Excel. I change the data daily, copy and pasting the data from another source. Can I somehow create a reference cell that contains a date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to find a way to extract coordinates of shaded region from an image file I have an image file that has pizza shaped shaded regions in it:
I need a way to extract the coordinates of the shaded region so i can use them in html code to make the area clickable. This needs to be done dynamically as i have thousands... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Facebook TestConsole Can anybody tell me how I can put an Array into the testconsole for example here?
http://developers.facebook.com/docs/reference/rest/dashboard.multiAddNews/
the "uids" and "news" requests an array parameter. It´s really funny right now for me, because i tried many methods and i was searching aro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drag and Drop files from Applet to Desktop I was wondering how to drag and drop files from a java applet to the desktop. So far i've been able to display all the files with the right icon and name, but I have no clue on how to implement dragging and dropping. BTW I am a noob so it would be great if you could explain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS Interface Builder Custom Styles? Simple question. Does anyone know why Interface Builder doesn't allow for applying custom styles on UI elements? Why is it only possible to do this programmatically?
I can see how this might be difficult for custom UIView subclasses but the default controls definitely only have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Collection of Lines I have to draw a collection of lines in WPF with different colors. Each color part is a line.
For Example we have a line starting from (0,0) to (10,0) on xaxis.
I want red color from (0,0) to (3,0) and green from (3,0) to (7,0) and yellow from (7,0) to (10,0).
I want to treat this whole thing as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error after installing NPM for node.js After installing npm I get the following error report
info it worked if it ends with ok
verbose cli [ 'node', '/home/ash/local/bin/npm' ]
info using npm@1.0.30
info using node@v0.4.12
verbose config file /home/ash/.npmrc
verbose config file /home/ash/local/etc/npmrc
ERR! Error:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use a url as the InputSource for StringReader I apologize for the stupid question, but I am trying to use a xml file that is online in the following code.
String uri =
"http://www.myserver.com/xml?month=Jan";
URL url = new URL(uri);
HttpURLConnection connection =
(HttpURLConnecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to access 2d array values? do you have any idea why the "echo" in the following loop doesn't work?
while( $nl = mysql_fetch_array($Lresult) )
{
$clkword[$i] = $nl['Word'];
$relatedlinks[$i] = array(
$i => array(
"CWord" => $nl['Word'],
"RLinks" => $nl['Link_Add']
)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Telerik Reporting | Set Report Parameter Via Query String Problem:
I am trying to pass a Report Parameter value from the query string on the page to my report that already has the parameter defined. I just can't seem to get the value passed all the way to the report.
Telerik.Reporting.Report report = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Django model.save() not working with loaddata I have a model which is overriding save() to slugify a field:
class MyModel(models.Model):
name = models.CharField(max_length=200)
slug = models.SlugField(max_length=200)
def save(self, *args, **kwargs):
self.slug = slugify(self.name)
super(M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to wrap Class into an object? I need to store a Class in NSDictionary. Is there any other way than doing it with NSStringFromClass?
A: Use setObject: forKey:
A class is a valid item that can be passed to setObject which takes in id for argument.
A: @class MyClass;
MyClass* myObject;
[myDictionary setV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a column with a quartile rank? I have a table called tableOne in R like this:
idNum binaryVariable salePrice
2 1 55.56
4 0 88.33
15 0 4.45
87 1 35.77
... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Posting same form to different actions depending on button clicked I have a similar post on this on StackOverflow but perhaps my misunderstanding is more substantial.
I have an action Index() and an Index view its rendering.
From Index() view depending on the button clicked [HttpPost]Index() or [HttpPost]Search() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Android save certain values on rotation I have an activity that runs asynctasks among other things, I don't want everything to be reset when the layout changes.
I put this in the activity's manifest element android:configChanges="orientation" but unfortunately the activity doesn't even switch from the landscape to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find distance between 2 points in fastest way This code calculates the distance between 2 points by using distance formula, Math.sqrt ( (x1 – x2)^2 + (y1 – y2) ^2). My first point has mmx and mmy coordination and second one has ox and oy coordination. My question is simple, is there any FASTER way for calculate th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EF code-first: How to load related data (parent-child-grandchild)? I have this entity:
public class DynamicPage {
public int PageId { get; set; }
public int Order { get; set; }
public string MenuText { get; set; }
public string MenuHover { get; set; }
public int? ParentId { get; set; }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ItemCommand in Listview not firing in the usercontrol I have user control which has the linkbutton in the Item Template, I am trying to capture the Itemcommand event in the code behind, but the event is not getting fired.
I have gone through the other similar questions, but it didnot help me. Below is my code snipp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I run a process without blocking user interface in my iphone app I am accessing the photo library on the iphone and it takes a long time to import the pictures i select in my application, how do i run the process on a secondary thread , or what solution do i use to not block the user interface?
A: I did a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Key Bindings with Arrow Keys I'm creating a game that uses the arrow keys to move a sprite. I've added key bindings for the arrow keys and the letter n, but arrow keys aren't working. Here's my code:
public class MyPanel extends JPanel {
Sprite sprite = new Sprite();
Timer gameClock = new Timer(DELAY... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: color State list + shape on button? I have a state list like this:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@color/dark_green" />
<item android:drawable="@color/bright_green" />
</selector>
And a shape like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Handling PHP ^C CLI Script I have a php script that runs in the background 24/7. I have to occasionally terminate it, and the point of the script is to cache transaction data to memcahced from bitcoin RPC (if you don't know what that is, it is irrelevant). I want the script to execute a function when the program rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: rake_test_loader.rb - stack level too deep `--> rake test
Coverage report generated for Unit Tests to /home/chris-kun/code/thirsty/coverage. 0 / 0 LOC (0.0%) covered.
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9: stack level too deep (SystemStackError)
rake aborted!
Command failed with sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: requestmapping with Spring, automatically adding extension I am trying to map a function to two URIs: api/members/editPreferences.xml and api/members/editPreferences.json
when i test it in the browser, api/members/editPreferences.xml works, and api/members/editPreferences works, automatically redirecting to api/memb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Centering photo gallery on screen How do you center the photo gallery on the screen? I don't want users to have to scroll to find the gallery..
Javascript:
<!-- The JavaScript -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it worth using memcached on node.js Is there any particular reason to use memcached for fast access to cached data instead of just creating a global CACHE variable in the node program and using that?
Assume that the application will we running in one instance and not distributed across multiple machines.
The glob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get an ascii value of a NSString*, pointing to a character? When presented with an @"a", i'd like to be able to get it's ascii value of 97.
I thought this does it
NSString *c = [[NSString alloc] initWithString:@"a"];
NSLog(@"%d", [c intValue]); // Prints 0, expected 97
But ... you guessed it (or knew it :)) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Static variables in PHP I have found different information regarding static variables in PHP but nothing that actually explains what it is and how it really works.
I have read that when used within a class that a static property cannot be used by any object instantiated by that class and that a static method can be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Trouble adding cells to a tableView I have a page with a button on it. When the button is pressed, i want the table view on the next page to add a cell with a label that has the text of 1 and i want there to be a picture also, but i know how to do this. I just want to add a cell to a table view when a button is pres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can Servlets have multi-step interactions? Is there any way to start executing java Servlet code (specifically, in Websphere Application Server) (one session, one thread on the Servlet) and then pause to get more information from the calling client at various points? I require that the current session, and ongoing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a dynamic table for .NET code-behind C# I'm having trouble creating a table and putting data pulled from SQL into it. My solution at the moment is to create a table in Default.aspx, and then create the rows and cells in the C# code.
My aspx code:
<asp:Content ID="BodyContent" runat="server" ContentPlaceHol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: For a WPF AttachedProperty, can you validate the value based on the type you're attaching to? In short, we're creating an attached property that's only to be applied to FrameworkElement or one of its subclasses. What we want is to block the set if it's being applied to anything that's not.
Now we can't use the Vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# + MVC3 + Session state + Sql Azure I saw this post in StackOverflow that encouraged me to use Session State in my Azure application.
I followed this post and generated the tables, but my problem is I can't have an additional Database for that, I'd have additional costs too.
My question is: there's a way to make t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.