text stringlengths 8 267k | meta dict |
|---|---|
Q: window.close() javascript method doesnt work in phonegap for iOS Im trying to close a popup window that has been opened using window.open() in my phonegap app being developed on iOS. But the window.close method doesnt work when Im trying to close the newly opened popup window. Although it works fine in normal web br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why In App Purchase goes to SKPaymentTransactionStateFailed? I have implimented In App Purchase in my application. when i try to buy a product it goes to SKPaymentTransactionStateFailed and gives the error message Can't connect to the iTunes Store when i press a button to buy product then this code is called
MKSto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php compare/match range of values I have an array to which I need to compare data from mysql. Usually I'm doing a straight comparison so I can do an if ($array[$i]===$mysql[$i]), but I do have one instance where I need to match it against a range of numbers (ex. 18-19, 20-24, etc). I looked into preg_match & preg_gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: rand() function in c++ i am not quite sure how this function in c++ works:
int rand_0toN1(int n) {
return rand() % n;
}
Another tutorial on internet says to get a random number between a range you need to do something different however, with a being first number in range and n is number of terms in range:
int n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need a twin group by value I have a query something like this,
SELECT SOME_ID, COUNT(ANOTHER_ID) AS WITHOUT_FILTER
from SOME_TABLE GROUP BY SOME_ID
this returns me
+------------+------------------+
| SOME_ID | WITHOUT_FILTER |
+------------+------------------+
| 1 | 40 |
| 2 | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I insert a node before an other using dom4j? I have a org.dom4j.Document instance that is a DefaultDocument implementation to be specific. I would like to insert a new node just before an other one. I do not really understand the dom4j api, I am confused of the differences between Element and DOMElement and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jQuery disable scroll when mouse over an absolute div I'm trying to disable the window mouse scroll functionality when the mouse is hovering over the div - so that only div scrolling is enabled - and when mouse moves away from the div - scrolling to the window is applied again. The div is positioned absolutely.
I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Spring AOP Configuration (XML) I am experimenting with Spring AOP for the first time and get stuck in the XML configuration. I'm trying to get a mock version of AOP-based "logging" up and running, using a MethodInterceptor to wrap specific method calls and do some simple System.out.println statements before and afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do massively scalable sites like Facebook and Google implement sessions? Does anyone have any insight into their system architecture? Do they use Memcache? Surely every time I click on Facebook my HTTP requests aren't being channeled to the same server where my session is in memory?
A: A basic solution would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a collection in XAML and bind individual collection items I've created a custom control which, when bound to a custom collection of objects, displays the content of those objects.
Usually, I can use this control by simply going:
<local:CustomCollectionDisplayer DataContext="{Binding Source={x:Static Applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you develop for cross browser compatibility? How do you develop for cross browser compatibility?
How do you develop and ensure that end products are capable of running on most browsers?
JavaScript and DOM:
JQuery
EXT JS
CSS:
CSS Mastery (Book resource)
What other techniques do you employ?
A: There are a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Building with Build.exe and dirs/sources and Visual Studio 2010/11
*
*Is there any way to tell Visual Studio 2010 (or Visual Studio 11 Developer Preview) to use a sources file?
*Is there any tools for converting from nmake/dirs/sources to MSBuild?
I really want to use the Visual Studio 11 Developer Preview Code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regexp match any character except a particular string I am using the regexp,
/(\<\s*?string(-array)?\s*?.*?\s*?\>\s*?)(.*)(\s*?\<\/string(-array)?\>)/
... to match all content between or tags of the form:
<string-array name="saveArray">
<item>Téléphone</item>
<item>Carte mémoires</item>
</string-array>
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend clear Request Parameters I just wanted to ask why the following inside a Zend_Controller_Action action method:
$request = $this->getRequest();
$params = $request->getParams();
var_dump($params);
foreach ($params as $key => &$value) {
$value = null;
}
var_dump($params);
$request->setParams($params);
var_dump... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change img src in ASP.NET with Ajax I have a .aspx page with an <img> tag which has an src subject to change depending on some controls values on the page. Pratically I change src with a runtime built-in querystring that cause src change and and wait for server response (server is returning a byte[] of the image).
M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RubyGems Dependency Error My ruby version is => ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
and I'm using Ubuntu 10.10. I installed every stuff following this blogpost. It was working fine on bash but when I installed zsh shell and oh-my-zsh then it started raising following dependency error:
/home/manis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Installing windows service fails: service already exists I'm trying to reinstall a service I've written using C#.
The first time this worked. I used installutil to handle the install and the service showed up in the list of services and I could start it.
Then I made some updates to the code and uninstalled the servi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ie 7 and below issue, absolute positioning for some reason in ie 7 and lower there is a huge gap in the content. I think it has to do with some jQuery I have running. the menu seems to push the content down even though its absolute position and it shouldn't be in the flow?
http://www.tigerstudiodesign.com/company-o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I reset the values in javascript without using .animate, related with jquery I'm changing this div's (#logo)attributes like this
$('#logo').stop().animate({
left: 150,
height: 78,
marginTop: 45
}
After 2 seconds after animation is finished, I make it disappear with .hide('slow'), now while it is hidden I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: handle OnCompleted with cold observables in Rx, the following code does not seem to call my OnCompleted action?
No "Sequence Completed"
static void Main(string[] args)
{
var list = new List<int> { 1, 2, 3 };
var obs = list.ToObservable();
IDisposable subscription = obs.SubscribeOn(Sch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need ideas on how to protect .exe file from direct download on other sites We have our application stored on our server, it is an .exe file. The download page is only accessible from our site - using cookie authentication in PHP. I know there are better methods but there is a long story behind this...so I'm moving o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Evaluation of as.integer(max(factorize(15))) This appears quite bizarre to me and I would like an explanation. I
library(gmp)
factorize(15) # => "3" "5"
max(factorize(15)) # => "5"
as.integer("5") # => 5
as.integer(max(factorize(15))) # => 1 0 0 0 1 0 0 0 1 0 0 0 5 0 0 0
I can do what I want with:
max(as.numeric(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does Entity Framework store it's DbContext along with cached query plans? In my web application, we are using a per request DbContext. We create the DbContext in Application_BeginRequest(), store it in HttpContext.Items, and then call Dispose on it in Application_EndRequest().
We make the current context available ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use git rebase to transform my working tree exactly the way I want to? * 080dc7a (HEAD, origin/master, origin/HEAD, master)
* bfeee2f
|\
| * 16e94ff (origin/McLongNumber, McLongNumber)
| * f50319b
| |\
These are the last 4 commits of my working tree. I would like to rebase so that my working tree ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS responsive horizontal centering I was trying to horizontally center an image (logo) for every screen size doing something like this
#container {position:relative width:100%; height:100%;}
#logo {position:absolute; top:0; left:50% width:500px; height:100px;}
and it's not working. Do I maybe have to use a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to ignore some folders in HG? Starting here,
I'm wrestling with this right now. I've got two folders: Source and SQL. Source has multiple project folders. The project folders in Source and SQL have bin folders. I want to ignore all files in bin folders under Source, but not under SQL. I thought one of these migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I change an encryption key and still be able to decrypt old data? I would need to create a symmetric key in C# and use it to encrypt a string, which I would eventually store in a database. I would use the AES mechanism in .Net to achieve this. I would use the same key to decrypt the encrypted data.
Now my re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any add-ons in spring roo that can be used for Spring social? Is there any add-ons in spring roo that can be used for Spring social? Any help would be appreciated.
A: As for now, there doesn't seem to be any.
Please see the following discussion on the SpringSource forums.
http://forum.springsource.org/show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: maven super pom's profile properties inheritance at child poms at my project there is 2 profiles and each profile has one property.
But I could not use master's properties at child's resources.
Here is described clearly but it seems that there is only one pom file and the sample shown at there is not an multi-modul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Reporting services, how do I add an image from a string or cell in the table? What I'm trying to do is this: I have a string with the full path to the image. I tried to add an external image to my report and set the image source to my string. but every time I load the report, it doesn't load the image. How do I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LLVM complains about assembler error "Unexpected token in memory operand" I'm doing a study assignment to measure memory access time on my machine.
To determine the clock cycles on our machines, we have been given the following C snippet:
static inline void getcyclecount(uint64_t* cycles)
{
__asm __volatile(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Stop unBound service in Android I have a service that autoupdates a database in a given time interval. To do this it gets information from the Internet.
I need to have it unbound, so that It runs over all activities. But when the application is closed, it would be nice to terminate the service. To prevent battery d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use the Inversion of Control concept in Sitecore to get non-page items to display themselves? I have a number of non-page content items that are used as "callouts" on the side of pages throughout my website that I am building in Sitecore. Ideally I would like to be able to define the presentation informat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: E-mail all - Character limit issue Is there anyway to get around the maximum character limit on "mailto:"? the requirement is to have an option send email to all the persons returned by search criteria. So, on the controller side, after the person objects are gathered, I have iterated through them all to get a "To" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Class not found javax.persistence.EntityNotFoundException I have problem with creating executable jar file. I creating the jar file by Intellij idea X artifacts. But when I try to execute this jar, it gave me an error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/EntityNotFoundExcepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIDatePicker without "hour" label UIDatePicker in CountDownTimer mode shows the labels like this : 4 hours | 12 mins
How can you customize to look like this : 4 | 12 mins ?
Thanks
A: UIDatePicker does not allow this. You could conceivably create your own date picker using a specialized UIPickerView and do it that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open Graph Beta: define action, object, and publishing I'm trying to learn and test out the new open graph beta that allows you to define actions, objects, and publish them. I believe I'm following the tutorial and doing exactly what it says, but the defined actions are not publishing. I would greatly appreciate i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Sha1 Hash username and password not hashing correctly I have a little problem with hashing a username and password.I need to find a way to hash the data with java as the server did with mysql.Here is a mysql hashing :
and I'm trying to get the same result in Java like this :
String userName_input = t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to post an array of files in ASP.NET MVC 3? I would like to be able to post multiple files in one form. I would like to pass these files as an array of files. For example I would like to do this.
<input type="file" name="files[0]" />
<input type="file" name="files[1]" />
<input type="file" name="files[2]" />
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: CSS not appearing correctly in IE9 On my website the css is not appearing correctly only in IE9. IE8, Chrome and firefox appear just fine. Any help much appreciated!
Website: http://www.victoryit.com/
A: You are using cufon 1.09. There is a bug in this version which causes the fonts to disappear in IE9. Please upgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Showing/hiding content from FB fans on my own site So I'm adding the 'like' button to my site and I've got it to display "Thank you for liking example.com" and "You seemed to have unliked example.com" using edge.create;
FB.Event.subscribe('edge.create',
function(response) {
document.getElementById("demo"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to implode and keep value for each link? Say I have the following code:
$arr = array('id' => $tarr = array('1' => 'Fred', '2' => 'Wilma', 'c' => 'Bam Bam'));
echo '<a href="?tag='.$tarr.'">' . implode( '</a>, <a href="?tag='.$tarr.'">', $tarr) . '</a>';
This displays: Fred, Wilma, Bam Bam
but the href show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String.StartsWith does not work as I expect string word1 = ""; //see example
string word2 = "";
bool b1 = word1.StartsWith(word2);
bool b2 = word1.Substring(0, word2.Length) == word2;
for some Arabic strings b1 does not equal b2?
Could you explain this behavior?
Example:
word1 = ((char)0x0650).ToString()+ ((... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mocking NetworkStream with MemoryStream for Unit Testing I have a class that is wrapping a stream, with the intention of that stream likely being a NetworkStream. However in unit testing it is much easier to use a MemoryStream to verify functionality. However I have noticed that MemoryStream and NetworkStream don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to suppress SLF4J Warning about multiple bindings? My java project has dependencies with different SLF4J versions. How do I suppress the annoying warnings?
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:xyz234/lib/slf4j-
log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to stop repetition in my code?
*
*This code executes primes upto a given number. It works correctly as far as the prime generation is concerned but the output is painfully repetitive.
*The code is:
numP = 1
x = 3
y = int(input('Enter number of primes to be found: '))
while numP<=y:
for n in range(2, x):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with Encapsulation in C# (inaccesible due to protection level) I am very new to C# and am stumbling through. I understand the need for encapsulation but whenever I break a working application into diffrent classes I always have problems. I have written a simple program that allows a user to click checkboxes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Ajax and AddThis social bookmark application I am developing a website that has an AddThis Integration
Here's my situation right now,
Every time a user inputs an RSS Feed in a text input, it will display the results in the same page since I'm using an AJAX on fetching the data. Together with the result is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reveal text line by line - Xcode I have a simple app, I have a button that when pressed will display separate lines of text on the screen. I set an int = 0 and use an if statement that will add 1 at each line. The issue I have is that all lines are displayed after 1 button press, I want 1 button press one lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One-row subgrids not expanding I have a grid where each row has a subgrid.
It seems that when a subgrid has multiple rows, it is expandable. But when it has only one row, it is not expandable.
How can a row that contains a one-row subgrid be made to be expandable?
I am using the "grid as a sub-grid" method for displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending a parameter to the controller in ASP MVC 2 I am writing an area for administering several subsites, almost all of the functionality will be the same across each site (add/edit/remove pages etc) and my repository on instantiation takes the SiteIdentity so all the data access methods are agnostic in relation t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: On Android, How can I get a small .png to appear where I tapped with my finger with the camera active Thanks in advance for your time!
This has been bothering me for quite some time now. What I want is to display a small .png image on the screen where I tapped my finger, with the camera being active. I don't want an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error Nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException WebFlow I have a error like this working with webflow 2.3.0.RELEASE and richfaces 4.0.0.Final in jboss 7.0.1.FINAL:
12:16:46,989 INFO [stdout] (MSC service thread 1-7) 2011-09-20 12:16:46,987 [MSC service thread 1-7] ERROR (F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Template Arithmetic In my template, I am looping through a list, trying to make a two-column layout. Because of the desired two-column layout, the markup I need to write in the for loop is dependent on whether forloop.counter0 is even or odd. If I had the full power of Python in the template language, dete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding and finding classes that is dynamically added to body - jquery Is there any way to add classes or alter objects that is dynamically added to the body?
I am adding a range of objects to the body by javascript.
Fot instance Im adding some links that is dynamically generated and added to the body. When they are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Authentication in a multi layer architecture I am designing an N-Layer system in .NET that will consist of
*
*SQL Server 2008
*EF 4
*Repository Layer
*Service Layer(Business Logic)
On top of this I will have:
*
*ASP.NET MVC website
*external API to be consumed by other clients(built with WCF or ServceS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: move_Image_upload is showing error. I'm using the below code to upload member's profile picture. As I'm new to php, I not able to capture where is the problem.
When i try to uplaod a file error shows:
"move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\phpF574.tmp' to '/profilepic/lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create button in Excel to copy the file? I want to create a button in Excel 2010 that when clicked, it will save the currently opened Excel file and copy it to C:\temp.
Is this possible? Perhaps a macro should trigger an exe program, or can be all done within the macro?
A: With ActiveWorkbook
.Save
.SaveCopyAs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load all classes of a jar file at runtime? According to this question, it is possible to load a class from a jar file with:
ClassLoader loader = URLClassLoader.newInstance(
new URL[] { jarFileURL },
getClass().getClassLoader()
);
Class<?> clazz = Class.forName("mypackage.MyClass", true, loader);
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript parse float is ignoring the decimals after my comma Here's a simple scenario. I want to show the subtraction of two values show on my site:
//Value on my websites HTML is: "75,00"
var fullcost = parseFloat($("#fullcost").text());
//Value on my websites HTML is: "0,03"
var auctioncost = parseFloat($("#au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: div overriding positioning? Is there any way to prevent the main_wrapper from overlapping the footer? the footer has to maintain and position: absolute so that it stays flushed at the bottom of the browser.
#page_contain {
min-height: 100%;
position: relative;
}
#main_wrapper {
width: 950px;
height... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE8 ignores ajax response with rails 3.1 I'm using Rails 3.1 and AJAX for creating some models.
The view looks like:
<%= link_to 'Vote', votes_path, :method => :post, :remote => true %>
And the controller:
...
def create
...
respond_to do |format|
format.js { render :layout => false }
end
end
...
Finally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does your average web user understand the concept of the clipboard? I'm designing a web site where I would expect the intended audience to have limited computer skills.
An important part of my site's functionality will require the end user to copy an URL that my site generates and use it in emails, or social network... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: POSTed values will never be null? I am required for an assignment to check if certain html form fields (type="text") assigned to variables are null. I'm finding that is_null() is not detecting variables to which empty fields are assigned, but empty() does.
What is the reason why POSTed values are not null? Also, wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FBGraph and Ruby on Rails Hello and excuse me again
I have the next problem:
I am using fbgraph on ROR3. I understand that My application need permissions for to know about facebook user. So I need ask for permissions.
How could my application (facebook canvas) ask permissions from like button?
If need my code plea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Indexing SQL database i got questions about indexing SQL database:
*
*Is it better to index boolean column or rather not because there are only 2 options? i know if the table is small then indexing will not change anything, but im asking about table with 1mln records.
*If i got two dates ValidFrom and ValidTo is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: make dropdown list of person i have a model :
public class person
{
public int id{get;set;}
public string name{get;set;}
}
how can i make a drop down list, from list of person in mvc3 razor by this syntax : @Html.DropDownListFor(...) ?
what type must be my persons list?
sorry I'm new in mvc3
thanks all
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Show Dialog is not showing the dialog box I am trying to find out reason why ShowDialog() is not showing the dialog box for me.
I have an application where I have a credential dialog box(A) for the user to enter credentials. And I have another dialog box(B) to display some custom msg based on the user's credential.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Distinct join query Possible silly question, but got me stumped. Compare 2 tables and return only distinct columns.
SELECT DISTINCT(DM.CLIENT_CODE) FROM DBO.DM_CLIENT DM
LEFT JOIN DBO.STG_DM_CLIENT STG
ON STG.CLIENT_CODE = DM.CLIENT_CODE
Aim of query is to return only new client_codes from D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP image resize function doesn't work properly I want to resize an image PNG with transparence plz help. Here is the code :
function createThumb($upfile, $dstfile, $max_width, $max_height){
$size = getimagesize($upfile);
$width = $size[0];
$height = $size[1];
$x_ratio = $max_width / $width;
$y_ratio ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fast user switching with Devise and ActiveAdmin I followed this article to create fast user switching in Devise:
http://pivotallabs.com/users/mbarinek/blog/articles/1387-fast-user-switching-with-devise
What I don't understand is that in the cucumber file, it says
"And I follow the "Sign in as" link for user: "bob""... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with jQuery add() issue I have a quick question. My brain is fried and I cannot think :(.
Why the following code is not adding tag to MyDivClass:
$("div.MyDivClass").add("<a href='' id='test'><span></span></a>");
$("div.MyDivClass a#test").attr("href","www.test.com");
$("div.MyDivClass a#test span").html("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: document.ready() function slowing my UIs performance I have a UI page in my application which is taking to much time to load.
In the HTML source, as you can see, I have a series of .click() jQuery event handlers in the document.ready() function as below:
$(document).ready(function() {
$("#selectAllCountry").click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to read an existing html file in the WebBrowser control in WP7? How to read an existing html file in the WebBrowser control in WP7?
I have tried:
*
*Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("abc.htm");
StreamReader reader = new StreamReader(stream);
string html = reader.ReadTo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gridview not updating i have a webform with a gridview. i have the UPDATE button next to each row. however when i press the button and edit the field and press UPDATE. it does not change anything. here's the code:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateCol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swipe to delete moves the UITableViewCell to the left I use custom code to create cells that get displayed on a UITableView. When a row is swiped, the delete button appears on the far right of the cell as expected. However it causes the contents of the cell to move to the left (partly off screen). This kind of behav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to put a toolbar directly beneath a tabpanel Here is my current code (with heights/widths omitted):
myapp.cards.addvehicle = new Ext.TabPanel({
scroll: 'vertical',
id: "home2",
layout:{
type:"vbox",
},
dockedItems: [{
xtype: 'toolbar',
dock: 'top'
}]
});
but it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fastest way to check if a value exists in a list What is the fastest way to check if a value exists in a very large list?
A: It sounds like your application might gain advantage from the use of a Bloom Filter data structure.
In short, a bloom filter look-up can tell you very quickly if a value is DEFINITELY NOT pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1198"
} |
Q: Using COPY FROM in postgres - absolute filename of local file I'm trying to import a csv file using the COPY FROM command with postgres.
The db is stored on a linux server, and my data is stored locally, i.e. C:\test.csv
I keep getting the error:
ERROR: could not open file "C:\test.csv" for reading: No such file or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Writing Escape Characters to a Csv File in Python I'm using the csv module in python and escape characters keep messing up my csv's. For example, if I had the following:
import csv
rowWriter = csv.writer(open('bike.csv', 'w'), delimiter = ",")
text1 = "I like to \n ride my bike"
text2 = "pumpkin sauce"
rowWriter.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: qtranslate plugin and ajax requests I'm trying to obtain the correct content for each language (I'm using qtranslate plugin in Wordpress environment) loaded by Ajax calls.
Every time, contents are shown up only in the default language.
I'm thinking about to pass the default-language-qtranslate variable into the ajax... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementing my own OnTouchListener I would like to create my own OnTouchListener. Then I would like to encapsulate it to a .jar file for making it reusable.
This is my specific OnTouchListener:
public class TouchableView extends View implements OnTouchListener{
myTouch t=null;
public TouchableView(Context... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In CSS, is there any way to keep the hover properties for links after overriding the normal state? I have default properties defined for my links like this:
a{
color: blue;
}
a:hover{
color: red;
}
The problem is that I lose the all the hover properties when I do something like this:
#header a{
color: g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you render a single instance of an object through a partial using collections? So for example, if I have a partial that works with @users as a collection, i.e.
<%= render :partial => 'dashboard/dashboard_pane', :collection => @users %>
where
@users = User.all
But DOESNT seem to work with a single instance
<%= ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resize/Crop image from specific area I am trying to find a PHP image library script that allow me to select specific area (x, y) from large image and then crop/resize to smaller image.
It must not distort the image (resize by stretching and skewing the pics). It may need to 'Zoom In' (or something?) if necessary to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: About animation in android widget I want move widget (such as button) with animation described in XML.
But after animation done, that widget return first position.
How can I stop widget where I want position.
A: The animation only describes the movement of the widget, and when the animation finishes the widget is r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inheritance and method scope in Java In the following example pseudocode:
public class MyPanel extends JPanel {
public void reset() {
this.clear();
clear();
}
public void clear() { System.out.println("FAIL"); }
};
public class MySpecialPanel extends MyPanel {
public void clear() { Sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: run one scheduler at a time I have two beans which is running the scheduler
<bean id="eventService" class="xxx.xxxx.xxxxx.EventSchedulerImpl">
</bean>
<bean id="UpdateService" class="xxx.xxxx.xxxxx.UpdateSchedulerImpl">
</bean>
I want to make sure only one scheduler is running at time
when EventSchedulerImpl is ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: taking a screenshot of some element in the html So I was wondering, if I have a div which contains a maps of google maps rendered with some makers and I want to take a picture of that element how can I do this?.I found this solutions it's a approach of what I need but the problem it's that sending a url doesn't help... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatic non-RESTful routes in Rails 3? We have an app with a large number of non-RESTful, verb-oriented controllers. I remember that long ago, before Rails got the REST religion, you could get automatic routes and helpers for those. Is there any way to still do this? It's a pain to keep adding GETs every time we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC file locations and function locations. PHP Zend I just got a job where i would be working with MVC and they knew i didn't know it but would help me learn. I am fairly confident with my PHP or i was until now and had some questions about MVC but figured i would catch on quickly but this is looking like its more i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails domain ID column validation issue I have a simple domain object
class MyDomain
{
String id
String name
static constraints =
{
id unique:true
name nullable:true
}
static mapping =
{
table 'schema.MyDomain'
id column:'MY_ID', type:'string', generator:'assigned'
}
}
The issue I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I return a list of records and true or false if a joined record exists using SQL? I have three tables.
Table A:
TableA_ID, Description
Table B:
TableB_ID, TableA_ID, TableC_ID
Table C:
TableC_ID, Various Other columns
Table B may contain zero or more records linking a record from Table C to a record in tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using a constructor on a JavaScript static instance I'm writing a JavaScript library in which I want some methods and properties public and other private. The following seems a great way of doing this whilst wrapping everything up into a single object.
(function (window) {
var Thing = function() {
// privat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vim Pre-Exit (Esc Key) Command? Right now in Vim when I go to a new line (or press 'p' or 'o' in normal mode) I get a lovely automatic indent, that also disappears if I exit insert mode without adding anything to it.
Is there a way to bind something to before I exit insert mode, such as inserting a phantom character... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I somehow save circular data structures with JSON or something similar? When trying to save some data about the game world in a file using JSON, I get that good ol' JSON circular reference error. Is there a way to save circular data types? Also, I'm running this with node.js, not inside a browser.
Basically, ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple values IN Normally IN is used with one value:
SELECT * FROM data WHERE f1 IN (<subquery>)
It is possible to use it with multiple values:
SELECT * FROM data WHERE f1 IN (<subquery>) OR f2 IN (<subquery>);
But can I remove duplication, something like:
SELECT * FROM data WHERE ANY(f1, f1) IN (<subquery>)
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSTL : Find the total of size of two lists I have two lists on a page and showing combined size of these two lists.
Here is my code
<c:set var="totalAvailableVehicles" value="${fn:length(searchResult.availableVehicleList)}"/>
<c:set var="totalUvailableVehicles" value="${fn:length(searchResult.unavailableVehicleList)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity Framework - Load entities with child entity What I am trying is to load all the A entities in the database together with B entities. The relationship between them is Every A entitiy has one B entitiy.
The project I am working on has a repository pattern and it has an All() method as below.
public class EF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multiple Security Token Services in Windows Identity Framework I have an asp.net mvc 3 web app that needs to support SSO from multiple STSs based on the subdomain the user requests.
So requests for https://weylandyutani.mydomain.com should trust the Weyland-Yutani STS and https://tyrell.mycomain.com should trust the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571704",
"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.