text stringlengths 8 267k | meta dict |
|---|---|
Q: How to call Html.Display for a custom object, not the whole Model? I have the following view-model for my MVC3 Razor view:
public class UserProfileModel
{
public Person[] Persons { get; set; }
//some other fields
}
I want to display all the persons in my Razor view like:
foreach (var person in Model.Pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can't get Spring to inject my dependencies I've been trying to get Spring to inject an @Autowired dependency into my application without avail. What am I doing wrong?
I created a bean called TimeService. Its job is to return the current time to anyone that asks.
package com.foxbomb.springtest.domain.time;
import ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select the first radio button of multiple radio buttons groups with jQuery I would like to automatically select the first radio button of multiple radio buttons groups.
<div class="element">
<input type="radio" name="group1" value="1">
<input type="radio" name="group1" value="2">
<input type="radio" name="group1" va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Amazon Web Service Usage Cost through Command Line I am working on Amazon Web Service (EC2, S3) to set up an instances given the following detail on the account. (I don't have administrative rights to the Amazon account through the web browser)
*
*Amazon Account Number
*Access Key ID
*Secret Access Key
Do any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Individual and not continuous JTable's cell selection Is there any clean way to allow a user to select multiple non continuos cells of a JTable?
Or I'm forced to implement my own ListSelectionModel?
I played around with setCellSelectionEnabled() and setSelectionModel() methods on JTable but I can only select groups ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: When a method depends on another method What is the best way to deal with the following situation in JavaScript.
I have three methods (m1, m2, m3) and the last one (m3) depends from the results of the others two (m1, m2).
In this way it works, but I am curious to know if there is a better way to write the code in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting iframes source? I have an iframe on my website that displays different site.
Is it possible to grab & store/save source of the iframed site?
A: The same-origin policy in the browser will prevent you from accessing the internal content of a div loaded from another domain.
A: You can always just $iframeSou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery cookie, save cookies in where? Maybe this is a basic question. but I still not sure jquery cookie, save cookies in where?
like this one: http://code.google.com/p/cookies/wiki/Documentation
the cookies save in server part or in custom browser part?
I guess save in custom browser part. jquery cookie just is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using database connection as a class: best practice? I have db class which initiates connection to the database and all the queries are run through it.
Now I am having troubles with the fact that I don't know how to use it within other objects and also how to use it within functions.
For example if there is an objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating Widgets from a Service via RemoteViews - OK on a phone, not working on the Emulator I've created a WidgetProvider and a Service which triggers on the system TIME_TICK - that part is working fine, Log messages show the Service is working AOK and it looks great on an actual phone.
To update my Widgets I use c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble with jScrollPane I have used jScrollPane on my site. I'm also using ajax to update the data on the same div where the jScrollPane is used. Now, when i append the returned data to the div, the scrollbar is not visible on the appended text. It may because the jQuery function is called when the document loads b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot use onItemSelectListener() with Spinner with One Item So I have a spinner (spinner2 here) which is populated via an ArrayAdapter from an SQLite table. On selecting an item I want it
*
*deleted from the DB
*deleted from the spinner
The code below actually works. Except when the spinner has only one item.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the behavioral difference between HTTP Keep-Alive and Websockets? I've been working with websockets lately in detail. Created my own server and there's a public demo. I don't have such detailed experience or knowledge re: http. (Although since websocket requests are upgraded http requests, I have some.)
On my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Understanding the "using" statement in asp.net 4.0 - C# Are there any difference between these 2 codes ? Which one should be used ?
asp.net 4.0 , c#
code 1 :
using System;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data;
public static class DbConnection
{
public static string srConnection... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: iPhone stack scroll view I have implemented stack scroll view in iphone using this blog.
but i am facing one problem
When user is clicking on details view i want show detailview on complete screen.
When user is clicking on it again i want show show it like default stack scroll view with menu option.
I am trying thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ec2, tomcat7 and 503 error I have Amazon's out of the box instance with Tomcat7 (ami-518e4c38), deployed a war file to it, but keep getting 503 error.
I've set the connector to listen on port 80 in server.xml, in the default security group I got 80 (HTTP) set to 0.0.0.0/0
I'm assuming that I don't have to start/sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to put programmatically iCarousel in View? I want four ScrollViews like iCarousel's CoverFlow in View programmatically. My Code is
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
[super viewDidLoad];
//set up data
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I avoid mirror effect of image in coverflow I have downloaded a coverflow sample from the link
http://www.macresearch.org/cocoa-tutorial-image-kit-cover-flow-and-quicklook-doing-things-we-shouldnt-are-too-fun-resist.
I need open flow effect but I dont need miror effect of images.Is it possible to do it.Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GWT - Convert Date formatting I have following method:
public static String formatDate(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
Calendar today = Calendar.getInstance();
Calendar yesterday = Calendar.getInstance();
yesterday.add(Calendar.DATE, -1);
Date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which compilation options should I use to link with Boost using cl.exe? I have a program which I would like compile using cl.exe on the command-line. This program depends on some boost libraries which I fail to link to.
The error I'm getting is:
cl /Fosamples\proxy\proxy.obj /c samples\proxy\proxy.cpp /TP /O2 /EHsc ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get link of all users videos uploaded by him? I am working on facebook api and i want to get a link of users uploaded videos. i got an access_token with the permission to access photos. now how can i fetch the videos of the user using fql or graph api.
A: You would just access /me/videos via the graph api.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MPMovieFinishReasonPlaybackError read error log - objective-c I'm using MPMoviePlayerController to play video files. Some movies are not playing. I just recieve MPMovieFinishReasonPlaybackError. But for some reasons I can't read error log.
Here is code:
case MPMovieFinishReasonPlaybackError:
{
NSLog(@"%@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get array item based on index I am trying to get an item from a char array based on the index that I have. I have used code earlier to get the index of a specified item but now I want the opposite, to get the item of the specified index. I have tried a few things but can't get it working.
I would like something like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I select URLs of a particular type with XPath & Scrapy I am trying to select only links of the type http://lyricsindia.net/songs/show/* from an HTML which contains links likes this:
<a href="http://lyricsindia.net/songs/show/550" class=l>LyricsIndia.net dhiimii </a>
<a href="http://smriti.com/hindi-songs/dhi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use PHP function parameter inside array? I am trying to declare a function parameter inside my array, but I'm having trouble getting it to work. I've trimmed it down for simplicity purposes, and I have something like:
function taken_value($value, $table, $row, $desc) {
$value = trim($value);
$respons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding grid-lines to jpgraph whilst also having an alternating background? Is it possible to add (white) grid lines to a graph made from jpgraph, whilst also having an alternating background with it? I have the alternating background but I have no idea how to add the grid lines.
A: Ended up using flot instead of jp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get the title of the current tab in Terminal using applescript? In the example below there are three tabs. Their titles are bash, less, and ssh.
How can I use applescript get the title of the currently selected tab? In this case I hope it would return less.
Picture.png http://img28.imageshack.us/img28/903/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Turn off keyboard navigation on jQuery prettyphoto We are using prettyPhoto:
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
For our portfolio. This allows us to show a video, image or SWF.
When we display a SWF game that uses the arrow keys, it conflicts with prettyPhoto navigation.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Anywhere in PHP, can't fetch result I am using SQL Anywhere in php, i use something like this:
sasql_connect ("Uid=".$uid.";Pwd=".$password.";ServerName=".$servername.";CommLinks=tcpip(host=".$ip.";port=".$port.")");
$result = sasql_query("SELECT * FROM cars");
When i use:
while($row = sasql_fetch_array($resu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery replace all HTML I'm trying to replace all the HTML (including the HTML tags) with another page. What I'm trying to do is having a website acting as an app even when navigating the another page.
Here is the code :
(function($) {
Drupal.behaviors.loadingPage = {
attach: function(context,settings) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Static variable variables in php 5.2 I'm trying to define the following function:
function set($key, $value, $default = null)
{
if ($value)
static $$key = $value;
else
static $$key = $default;
}
But when I call it, I get the error "Parse error: syntax error, unexpected '$', expecting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CodeIgniter SessionProblem I use CodeIgniter and save Sessions in my DB.
The following line of code will be executed if the users try to login and the login is successfull (found his data in the db):
$this -> session -> set_userdata($account_data); /login-page
After this i redirect the user to my dashboard. The das... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Activate render man in Maya 2012 For some reason my render window in Maya doesn't work. Is there any way I can activate it by using MEL script or Python? I think it's disabled. Thanks.
A: Maybe this helps: http://3dg.me/3d-graphics/maya/fix-for-maya-2012-error-setparent-object-renderview-not-found
You can delete (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery shuffle table rows I got a table with three columns:
1 A A
2 B B
3 C C
4 D D
What I want to do is to shuffle the table rows but only the second and third column, like the example below
1 C C
2 A A
3 D D
4 B B
I found a nifty plugin wich lets the table rows to be shuffled
http://www.yelotofu.com/2008/08/jquery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Obtaining persistent token for accessing users data under Google domain I am trying to implement a Google APPs Marketplace application. Some parts of the application are web-based and other parts simply need offline access to users data.
During installation, the Google domain administrator grants access to the data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get django redirect to work when using jquery mobile? I posted a question earlier about why django redirect was not working correctly, but quickly remove it because I discovered the when I took jquery mobile out of the equation, django is working fine.
I have a form which I am submiting and varifying in dj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: emulating iPad, iPhone on Windows Is there any emulator for doing this? I want to create some checks of how an HTML5 app is displayed on this devices but I don't have any.
A: The official iOS simulator is only available for OSX
A: Apple licenses doesn't allow you to use their software on a non-Apple machine. So yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get the column names from an Excel sheet? I have a database table. Is there a query that gets the names of the columns in a table?
Example:
Name || Age || Gender
Tom || 30 || male
Kate || 20 || Female
I want a query to get the column names: Name , Age, Gender
Thanks you
edit: Sorry about some missing i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cvpolyline color line I try to execute the following code:
CvScalar color = CV_RGB(255,0,0);
cvPolyLine( imageBin, &PointArray, &n, 1,1,color, 1, 8 );
The source image is a binary image. The points are valid and, nothing happens to my image, no red line is draw.
Thanks in advance.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7620692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Search NSMutableArray Hi what I want to do is search an NSMutable array for the string str or the header label in the view. If the word already exists in the array then I want to delete it. Otherwise I want to add it. Here's my code so far.
-(IBAction)add:(id)sender{
NSMutableArray *array=[[NSUserDefaults standard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Input view for textfields in table view I Have an UITableView with textfields in each row.
I want to access these textfields each in a different way like adding a picker view for one textfield, navigating to another view when clicked on one text field.
i know how to do it when these textfields are in a normalview bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find a reference of the CG shader language? I am new to shaders and I would like to find a list of all (or most/common) functions, variables, availeble to write CG shaders.
A: This should get you started: http://http.developer.nvidia.com/Cg/index.html
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7620697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing back an Image from OpenCV /C++ to .NET C# I have to write some code to read back an image in C# which is processed in OpenCV/C++. C# does not understand OpenCV image formats so I have to do some sort of conversions before I can write a wrapper in .NET. What would be the best approach to return the image fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I keep an instance of DbContext in a separate thread that performs periodic job I have a class Worker which sends emails periodically,I start in Global.asax.cs on App_start()
public static class Worker
{
public static void Start()
{
ThreadPool.QueueUserWorkItem(o => Work());
}
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: fluid image width, matching height I am trying (if it is at all possible) to use css to make an image 100% the width of a fluid div, but as the images are square (and will be distorted if not square) I want to be able to match the height to the width... for fluid width I am using:
.img{
max-width: 100%;
width: 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get Request id's per app From documentation:
If a user clicks 'Accept' on a request, they will be sent to the canvas URL of the application that sent the request. This URL will contain an additional parameter, request_ids, which is a comma delimited list of Request IDs that a user is trying to act upon:
http://ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataContractSerializer and Dictionary fails when reading I'm using DataContractSerializer to serialize an object that contains a Dictionary<string,object> member, which is marked with [DataMember()]. The idea is to have a flexible bag of object attributes, and I don't know what those attributes could be.
This works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Not able to access cookie in javascript at path / I am using jQuery to access/set the cookies. I have planted a cookie named CookieNo1 at path /.
I planted this using the url localhost:8080/audi.
The cookie value is stored, which I checked manually on the firefox cookies. Now when I try to access the same cookie, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LinqPad Can I connect/and query a runtime object I have a List with a lot of nested objects. And lines down a Linq Query very, very big.
I execute and put a breakpoint here and ask... Can I connect LinqPad to Visual Studio debugger or take the dll, exe, anything, for get this list, and after in LinqPad make simplifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Echo defined constant depending on variable without if() in PHP The title might be a bit confusing, but w/e.
Is it possible to do something like this?
define('test_1', 'test1');
define('test_2', 'test2');
define('test_3', 'test3');
$test='2';
echo test_$test;
I simply want to echo one of those defined constants (in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery:Sum values of checkbox on same row to textfield on same row I have some checkboxes with values which need sum up. When the checkboxes are checked the values get added in an array and displayed. Here is a demo link: http://jsfiddle.net/maxwellpayne/gKWmB/
However when I go to a new row it continues summing my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 3: Infinity sessions lifetime Now my rails session ends when i close browser. Its' not than i want. I need to create applciations where sessions never ends.
How can i do it?
Thanks.
A: Make a cookie that will login your user every time (s)he visits your site. If that's what you really want.
Know that when y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning how to actually draw with HTML5 canvas I'm trying to learn how to draw to canvas, I read alot of resources it all teachs you about the API and how to use it to draw etc and I found nice resources out there, the problem is now i know how to use the API methods to draw but still I can't figure out how to draw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which class owns methods and attributes Let's say we have this code:
class C(CC):
a = 1
b = 2
def __init__(self):
self.x = None
self.y = 1
How can I quickly find out in Python where is the attribute or method defined? If it belongs to ancestor class or if it's the method of class C. You can see attrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deferred object confusion The following snippet works as expected:
function boxAnimation() {
var dfd = $.Deferred();
$('div').fadeIn('slow', dfd.resolve);
return dfd.promise();
}
$(function () {
boxAnimation().done(
function () { $(this).animate({ 'mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: python SMTP header format The following piece of code is formatting my email script correctly. It is placing the to, from, subject, and body in the correct parts of the email. My problem is that I can't figure out why it needs two returns and two newlines ("\r\n\r\n") in my connect function to display the body in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do these 2 RegEx benchmarks differ so much? Why do these 2 RegEx benchmarks differ so much?
They use the same RegEx, one in-place and one stored via qr//
Results:
Rate rege1.FIND_AT_END rege2.FIND_AT_END
rege1.FIND_AT_END 661157/s -- -85%
rege2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How should i classify the nested class given in this example? I was going thru ThreadLocal class and found below example
public class UniqueThreadIdGenerator {
private static final AtomicInteger uniqueId = new AtomicInteger(0);
private static final ThreadLocal < Integer > uniqueNum =
new ThreadLocal < Inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: change text size of checkbox via c# code I create many checkboxes dynamically in c# ( windows forms ). I want to assign the sizes of the checkboxes' texts. But I couldn't find a way. I want something like that :
CheckBox[] chk = new CheckBox[ff.documentColumnCount];
chk[i].Font.Size = 8.5; // but of course this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Stopping Background Service Music package com.falling.inairproandmark;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
public class BackgroundSoundService extends Service {
private static final String TAG = null;
MediaPlayer player;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between defaultselenium.shutdownseleniumserver and seleniumserver.stop 1) What is the difference between defaultSelenium.shutDownSeleniumServer() and seleniumServer.stop() ?
I observe that when I just use
defaultSelenium.stop();
seleniumServer.stop();
the browser closes but the server does not shut down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ in a method to use in _Layout.cshtml I am simply trying to retrieve some data from a database, and display it on the _Layouts.cshtml file. And i wanna do this in the with a method in the models folder, right??
My following script down here works, but it's not pretty, take a look.
Here is my model:
namespace Mvc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GAE-Sessions: Where is settings.py? I'm using GAE-Sessions with Google App Engine. In the readme file it says "If you want to gae-sessions with Django, add 'gaesessions.DjangoSessionMiddleware' to your list of MIDDLEWARE_CLASSES in your settings.py file." Problem is I don't have a "settings.py" file, nor is one crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Executing code after clearInterval I have a setInterval calling a loop which displays an animation.
When I clearInterval in response to a user input, there are possibly one or more loop callbacks in queue. If I put a function call directly after the clearInterval statement, the function call finishes first (printing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Stupid thing on checks and sums - Python Which is more CPU intensive, to do an if(x==num): check, or to do a sum x+y?
A: Your question is somewhat incomplete because you are comparing two different operations. If you need to add two things together then testing x==y isn't going to get you anywhere. So presumably yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Comparing String with String Values
Possible Duplicate:
Java String.equals versus ==
I have a string called DomainType which usually holds values like "edu,com,org..etc" from a url. I used an if else statement to help check the data type and output a JOptionPane. For some reason whenever you type any domain type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sql query causes python to crash The following query causes python to crash ('python.exe has encountered a problem ...'
Process terminated with an exit code of -1073741819
The query is:
create temp table if not exists MM_lookup2 as
select lower(Album) || lower(SongTitle) as concat, ID
from MM.songs
where a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQLite/JDBC inner join I have found what appears to be a bug in the SQLite JDBC driver, but I thought I'd see if someone could spot any boneheaded errors on my part. I have the following query:
SELECT
SKU_ATTR_VALUE.*,
Product.ProductID
FROM
SKU_ATTR_VALUE
INNER JOIN SKU
ON SKU_ATTR_VALUE.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c++ linker error when method is defined out of header file
Possible Duplicate:
Where to define C++ class member template function and functors that instantiate it?
inclusion of header files in case of templates
I am using class templates. I have several methods in my my class and if I define them in the .cpp fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Weird imoperfection in Ruby blocks
Possible Duplicate:
What is the difference or value of these block coding styles in Ruby?
# This works
method :argument do
other_method
end
# This does not
method :argument {
other_method
}
Why?
It seems like the interpreter is confused and thinks that the { ... } is a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with Resources and User-defined Control Properties I am creating a custom control and it is a button. It may has a type and a specified image according to its type. Its type may be:
public enum ButtonType
{
PAUSE,
PLAY
}
Now I can change its appearance and Image with a method:
public ButtonType butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Zend_Cache memfs file vs APC I just wanted to ask if anybody has got any experience with PHP Caching, or even in particular Zend_Cache with respect to using as backend a file on memfs in contrast to using APC for data caching.
The advantage of using memfs would be the ability to using tags for cleaning from cache ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails design pattern: multiple "perspectives" of the same object I have a Project, which can bee seen by Manager, Contractor, Worker etc. Each of these roles can see some part of a project but not the other. Furthermore, some actions won't be available for past projects.
I currently have one view for each role and c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TextWrapping not working on horizontal StackPanel I have a panorama item
<controls:PanoramaItem Header="Stream" Margin="0,-16,0,0">
<ListBox Margin="0,-16,0,0" ItemsSource="{Binding Items}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Margin="6,0,0,10">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF 4 - TransportWithMessageCredential using X.509 certificates for transport and message security I'm trying to make a WCF4 service hosted on IIS which will use X.509 certificates for message security and SSL with required mutual authentication for transport security (project specification requires the use of WS-Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Program execution in cmd without using set path or system variables I'm trying to execute a simple java program ("HelloWorld") in command prompt without using the set path option or setting the system variable. Suppose the java program is in D:\My_Programs and the java executable files are in C:\Program Files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ListView Image Selection Mask I have a ListView in View = LargeIcons. I added an icon which I have done as PNG (black with white background, 32bit ARGB) and two icons I have done with System.Drawing.Graphics (white background, Pixelformat 32bppArgb).
When I selected the icons in the list, the PNG is masked/highlight... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenGL custom transformation trouble I am trying to cast a shadow with a projection transformation. But it seems that OpenGL doesn't like my matrix as it does not draw anything after glMultMatrix. After I pop my matrix everything's ok.
I'm also using JOGL, maybe the problem's with that, but I doubt it since my custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I convert MD5 hex strings to base-64 MD5 strings? I have a bunch of MD5-hashed passwords which I would like to convert to crypt-style MD5.
If I have the plaintext I can easily create both:
% echo -n 'testpass' | md5sum
179ad45c6ce2cb97cf1029e212046e81 -
% echo -n 'testpass' | openssl passwd -1 -stdin -salt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save Numbers in File into a 2D Array i have some numbers in my file like this:
22 33 44 55
11 45 23 14
54 65 87 98
and i want to save them(after i split) in a two dimension array like:
x[0][1]==33
how can i do that??
edit:
i wrote some parts of it,i put comment in code:
StreamReader sr = new StreamReader(@"C:\User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats the most efficient way to loop through an array and insert data I have an array in php which is populated via XML. this array holds roughly 21000 items.
I am currently looping through the array, checking if the name node exists in the database (mysql) if it does update it, else insert new data and store the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Server Client Program in Java I'm implementing a program where the controller(server) calls the agent(client) periodically and sends it IP address.
Controller.java
public class Controller {
static int discoveryInterval;
NetworkDiscovery n1;
Controller(){
discoveryInterval=6000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++ request for member `A' in `B', which is of non-class type `C' I get the error message request for member 'namn' in 'post', which is of non-class type 'telefonbok[10]', or similar versions of it.
I think it has to do with the following bit of code:
struct telefonbok
{
string namn;
string nummer;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS didSelectRow and setString I am created list of fonts via tableView , and when user tab any of cells the string of font should be change according to the cells , But I don't know why my code does not work !
my tableview opens with UIPopOverViewContoller : here is my code :
.h
@interface FontViewController : UIT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery blur function: Run second function after first. How? I am trying to get a second function to run based on the results of the first.
$('#email').blur(function () {
id = $(this).attr('id');
$(myObj).data(id,"");
is_email(id); // If it's a valid email, it does this: $(myObj).data(id,"ok");
// Now if it's a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android back button In my app I have a button that if the user clicks than a text box appears on the screen
(I use the setVisibility from GONE to VISIBILE).
the problem I have is when the user presses the BACK button on the device : it closes my app.
Is there any way that when the user presses the BACK button than m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where is the thread going when a future leaves scope? With threads I know that terminate() is called when the thread-variable leaves scope:
size_t fibrec(size_t n) {
return n<2 ? 1 : fibrec(n-2)+fibrec(n-1);
}
int main() {
std::thread th{ fibrec, 35 };
// no join here
} // ~th will call terminate().
ths ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Zend ACL class not being found by FrontController I think its a simple path issue here - but I've spent last 2 hours trying various combinations but not able to resolve this. The code is working fine on my windows system but when I upload it to my hosting site on linux OS - it doesn't find the ACL file.
This is how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery .css() not working in IE 6,7,8 and Firefox, but works in Chrome, Safari, Opera UPDATE: THIS HAS BEEN SOLVED.
I'm trying to change the default style of an Assistly site through JavaScript, because the stylesheet is not editable by me. It's working fine in Chrome, Safari, Opera, and IE9; but not in IE 6,7,8 or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to play a sound with JS?
Possible Duplicate:
Playing sound notifications using Javascript?
I'm making a game in JS, and I need a proper way to play a sound when something happens. How do you do that with JS/HTML5? I saw this article, but even with their example, it doesn't really work! Sometimes I do hear tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should one implement GetHashCode()?
Possible Duplicate:
Create a hashcode of two numbers
I have following class:
public struct Test
{
public string Prop1 { get; set; }
public string Prop2 { get; set; }
public override int GetHashCode()
{
return Prop1.GetHashCode() ^ Prop2.GetHashCode(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Understanding how to use CGI and POST I'm trying to understand how I can use Python and javascript so that I can use POST/GET commands. I have a button that sends a request to server-side python, and should return a value. I understand how to print out a response, but I want to pass a value to a javascript variable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while compiling Ethos framework I'm trying make Ethos framework on Mac OS Lion.
git://git.dronelabs.com/ethos
Here result of ./configure:
Ethos 0.2.3
Prefix...................: /usr/local
Debug level..............: minimum
Maintainer Compiler flags: no
Build API reference......: no
Enable test s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: log4j:ERROR Error occured while converting date I found this exception in my logs:
log4j:ERROR Error occured while converting date.
java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:328)
at java.lang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Array entry as references function argument Probably simple question, but I am always a little bit confused with references and arrays as arguments. Is the following valid in C++? That is, does array[0] have the value 10 after call of function1, if the snippet comiples at all?
void function1(int &data)
{
data = 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In-App Purchases: Crash when view disappear My application has a tabbar that contains 4 view controllers. The third view controller contains a "store in-app purchases". In this controller I use an object that manages in-app purchases (product request, purchase, transaction etc...) that allow me to get and show price... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery slideDown not fluid I am working on a jQuery menu for my friend. The menu is done, the only problem is that the slide down is not fluid and I can't find the problem here.
jQuery code:
$.fn.vmenu=function(settings)
{
vMenu={
init: function(elem) {
$(elem).find('li').each(function(){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need advice on designing an index to keep track of users that are not subscribed to a document in the system I have a table for Projects, a table for Documents (with a FK to Projects), and a table for users with a relationship to projects and documents. Users can be subscribers to a document and that is how they hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RegExp in preg_match function returning browser error The following function breaks with the regexp I've provided in the $pattern variable. If I change the regexp I'm fine, so I think that's the problem. I'm not seeing the problem, though, and I'm not receiving a standard PHP error even though they're turned on.
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What are some handy tricks for submitting Grails forms? Everybody's aware of passing parameters to a controller via a html form:
<g:form action="save">
<g:textField name="text1" />
</g:form>
And I'm vaguely aware of being able to structure these parameters into some sort of object notation in Grails:
<g:form acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7620912",
"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.