text stringlengths 8 267k | meta dict |
|---|---|
Q: jQuery - attribute vs. property
Possible Duplicate:
.prop() vs .attr()
Is there a difference between an attribute and a property in the jQuery terminology? Is there an example that can clarify this point?
A:
Is there a difference between an attribute and a property in the jQuery terminology?
Yes, there is a di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Graph API save login information I am using the Graph API for Facebook on my iPhone application. The problem is, I don't want the user to have to re enter their email address each time they want to login to integrate Facebook with my app. Is there a way to save and auto fill the login information using the Graph API... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a digital clock with custom images for hours and seconds in iPhone? I am having 10 images from 0-10 for setting the hour and minutes of my digital clock. I am getting confused on how to set a custom image to digital clock so that it will start working.
This is my code:
- (void)viewDidLoad {
//timer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Troubleshooting ui.item in jQuery I'm currently using the jQuery sortable plugin and one of the things I can do is on change I can run a function:
$( "#listA, #listB" ).sortable({
connectWith: ".connected_sortable",
delay: 100,
receive: function(event, ui) {
alert(ui.item.text());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS :first-letter not working I'm trying to apply CSS styles to some HTML snippets that were generated from a Microsoft Word document. The HTML that Word generated is fairly atrocious, and includes a lot of inline styles. It goes something like this:
<html>
<head></head>
<body>
<center>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: Javascript : How do I achieve this execution order? I have something like this.
function a() {
ajax(callback_function);
}
callback_function() {
// done!, called after ajax is finished
}
function b() {
a();
c(); // make sure c is executed AFTER a is finished.
}
function c() {
// called after a()!
}
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Better Exception Handling in JPA I used EJB3/JPA when persisting my entities and I am happy on how it is able to manage my DB related
task.
My only concern is on the exception handling. My sample code when saving entity always comes in this flavor.
Most of the tutorials that I read on the net comes in this flavor a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How can I tell the debugger to break on auto_refcount_underflow_error I am writing my first OS X (10.6) Application with Xcode 4 and encounter this message:
malloc: reference count underflow for 0x2000b9540, break on auto_refcount_underflow_error to debug
I understand that I have a problem with my memory management,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: reading txt file into perl's hash Hej sharp minds!
I need to load text file into hash. One line is the key, next line is the value. And that repeats several million times. Any suggestions how to do it in the best way?
And how much memory the hash table would need if let's say key is 15 characters and value is 50 cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When using Java classes from Jython, do you bother to use the getters and setters? Should you? It's well known that Python classes cannot have truly private members. The not-as-obvious implication of this is that Java classes' privates are made public to Jython. (Hide thy nakedness, Java!)
So, when using Jython, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Windows phone 7 web browser control user agent The present user agent for the browser control that i see in the emulator is Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Microsoft; XDeviceEmulator) and i want to change that to Mozilla/5.0 Windows NT 6.1 AppleWebKit/535.1 KHTML, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to add installed Glassfish 3.1 to Netbeans 7.0 I recently migrated to Netbeans 7.0(with glassfish 3.1) from 6.9(with glassfish 3.0). After that glassfish server ran just for the first time and when I restarted netbeans, since then, it doesnt show glassfish in the servers list.
Now when I am trying to add my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: convert memo field in Access database from double byte to Unicode I am using Access database for one system, and SQL server for another system. The data gets synced between these two systems.
The problem is that one of the fields in a table in Access database is a Memo field which is in double-byte format. When I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should views set model data? I'm just trying to figure out a probably simple question.
Should views set model data directly or only call model methods that change their own data?
A: like everything else in software development, "it depends".
if you're using form inputs in your views and you just need to get the da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to add more than one List in Android? How to assign more than one List in Android?
List<String> inc = dh.selectInct1();
ArrayAdapter<String> inc1 = new ArrayAdapter<String>(this,R.layout.list,R.id.textViewx,inc);
lvinc.setAdapter(inc1);
lvinc.setOnItemClickListener(this);
Here dh.selectInct1(); returns ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to connect sql server using JTDS driver in Android i am new in android..
i want to connect sql server using JTDS driver.
can any one tell me..
thnx in advance...
A: Getting error "ClassNotFoundException" while using JTDS on ANDROID to direct access SQLSERVER?
After 3 hours RND, for finding solution for the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Store password in encrypted file with read & write access Is there a way to store a password in a secured file in unix system?
That file can be readable and writtable by Unix shell script.
I dont want to use any external libraries.
Help to give some idea or code snippet for native Unix encryptions.
Thanks!
A: By as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Google Map in iPhone application I am beginner to iPhone application.
I want to know the way of using Goole Map.
Please help me.
A: Google maps are built-in in standard API provided by Apple. Have a look at MapKit framework that provides access to maps.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7631765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: White screen to load cocos2d scene I am new in cocos 2d game development and developing a game where I need to reload scenes from view controller many times.For this i remove the scene and run it again.After 2 or more times the scene loads but white screen occurs and in console the error "OpenGL error 0x0506 in -[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSIS package is not terminating I have a SSIS package which will execute a set of sql commands and some sps. there is one main sp in the package which will execute some sps in loop. But when i scheduled it as job in sql server, sps will be executed but it never comes out from the execution. It will stuck in that sat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are complexities of BigInteger.pow and BigInteger.isProbablePrime? What are complexities of Java 7's methods pow and isProbablePrime in the BigInteger class?
I know that simple implementation of Rabin's test is of O(k(log(n))^3) complexity and that can be reduced by incorporating the Schönhage-Strassen algorith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to set action in multiple buttons in navigation bar this is my code
- (void)viewDidLoad
{
[super viewDidLoad];
NSArray *segmentTextContent = [NSArray arrayWithObjects:
NSLocalizedString(@"button1", @""),
NSLocalizedString(@"button2", @""),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot find symbol method d(java.lang.String,java.lang.String) When I compile the code below error occurs:
canot find symbol
location: interface org.apache.commons.logging.Log Log.d(TAG,"JSON parsing error - fix it:" + e.getMessage());`
This is my code:
//convertJSONtoArray
private void convertJSONtoArray(Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I resolve "Item has already been added. Key in dictionary:" errors? I have an application which got hung up when I tried to add items to it. When I checked the trace file I got this entry:
for (int i=0; i<objects.Count; i++)
{
DataModelObject dmo = (DataModelObject)objects.GetAt(i);
sl.Add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Check with textbox I have this question. I have a input type text and a button. Like this html:
<form id="browser-form">
<div class="filebrowser">
<input type="text" id="browser-filepath">
</div>
<div class="upload submit">
<a href="#" id="browser-submit" class="button">Uploaden</a>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: This code should give output as the given format This is code in java for string.
int a=6;
int b=7;
System.out.println(a+"\"+b);
I want to comes the output is 6\7.
A: write this code:
System.out.println(a+"\\"+b);
A: In literal Java strings the backslash is an escape character. The literal string "\\" is a sing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I think I'm doing it wrong (PHP Class creation & signs and more) Currently I have a class called user that I want to create with different variables, but I think I'm doing it wrong.
Currently I have a class "Unit" with these two functions
public function __construct($table, $id) {
require_once('database.php');
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquerymobile: mutli selection dropdown My jquerymobile form has a optgrouped multi section dropdown. Upon form loading I have to set some default options. I have tried like
$('#myselect')[0].selectedIndex = 2;
$('#myselect')[0].selectedIndex = 3;
$('#myselect')[0].selectedIndex = 5;
$('#myselect').selectmenu("refre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does correlation coefficient actually represent What does correlation coefficient intuitively mean? If I have a series of X and then a series of Y, and if I input these two into Weka multilayer perceptron treating Y as the output and X as input, I get a correlation coefficient as 0.76. What does this intuitivel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I make a column editable only to a few users in SharePoint? I want to create a couple of columns in a doc library, which should be editable only for a few users. These users can be part of a single group. However currently, this is editable by all users and does not serve my purpose.
My SP site is created u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Split string into 2 strings based on a delimiter Does anybody know if there is a solid library based method to achieve the following.
Say I have the string
"name1, name2, name3, name4"
and I want to parse it into 2 strings based on the comma delimiter.
I would like the strings to look like this:
string1 = "name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Usecase Diagram I'm new to UML.I have a question.consider we have a user that can change user specification(change user password,Grant Access,...) for Use Case diagram which of these two picture is correct:
1)
2)
if No.1 is correct in what diagram we sould show details?thanks
A: I tend to say diagram #1 is correc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting input language Will be accepting input mainly in two languages (English & Arabic).
What would be the simplest way to detect which language was used?
A: This pear package may help, but I didn't use it:
http://pear.php.net/package/Text_LanguageDetect
A: Look at this post Checking browser's language by PHP?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Libreoffice Impress Export as Images extension does not work Libreoffice Impress Export as Images extension does not work. "Export as Images" Menu is not being added to File Menu.
Link- http://extensions-test.libreoffice.org/extension-center/export-as-images
I am using Libreoffice 3.4. Any suggestions would be helpf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How integrate Paypal in android Application? I try to integrate paypal with Android app using sandbox. I'm getting successfully longing with paypal but when I am doing payment then Screen will get invisible directly without Response.
How can I get the response for the above question?
This is my code.
private void in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Python: How to get the created date and time of a folder?
Possible Duplicate:
How to get file creation & modification date/times in Python?
I would like to get the created date and time of a folder. Are there anyways to do that in python?
Thank you
A: You might use os.stat to retrieve this information.
os.stat(p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: String seen as a Monoid Given a signature like this one or that one:
def foo[A, F[_]](implicit mon: Monoid[F[A]], pr: Pure[F]): F[A]
Assuming A is Char, is there a way to get a String instead of a List[Char]?
String does not take a type parameter, so I assume it's not possible. What's the next best option? Right no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting old Dao Object in ormlite I am using ormlite for sqlite database in my android application. It's a login based application and I have database in SD card. For user abc, the requirement is when user login with different user like xyz then application authenticate the user from the server and server replace ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: callback for add-to-timeline plugin? When a user comes to my website and tries to allow publish_action permission, he will click on the 'add-to-timeline' plugin button.
Then a popup dialog appears and user will allow the required permission.
What I want to find out is that if we can specify any callback function to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone-Development - EXC_BAD_ACCESS after UIView beginAnimations -> didStopSelector [UIView beginAnimations:nil context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(scrollViewScrolled)];
[scrollView setContentOffset:scrollToPosition];
[UIView commitAnimations];
////////... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to retrive Image data from Image view in android I have two Image view I have to compare them. I don't know on which format I have to take them.I want to retrieve Image Data.
A: Here you are :)
imageView.getDrawable();
Then just compare two Drawables from both :)
A: (not sure but) i think first you need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF - Referencing multiple resources Experts,
In XAML I would like to create a many-to-many relationship between entities.
Basically I would like for multiple "Manager" objects to be able to manage multiple "Items". The following XAML should describe what I'm looking for:
<Grid>
<Grid.Resources>
<cc:Mana... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: search bar not working? i have a SQL file where 5 different type of data is stored. I am adding this data in a dictionary specified with keys. and then i am adding this dictionary to tableData array as a dataSource for table and searchBar. But it is not searching anything.
adding code below
- (void)viewDidLoad {
[s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fullcalendar in ASP.NET and JSON response I am fetching my events with webservice:
Public Function webGetCalendarEvents(ByVal startDate As String, ByVal endDate As String) As String
Dim sDate As DateTime = ToUnixTimeSpan(startDate)
Dim eDate As DateTime = ToUnixTimeSpan(endDate)
Dim DS A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble using java class within jruby I'm trying to use Java Opencl from within jruby, but am encountering a problem which I can't solve, even with much google searching.
require 'java'
require 'JOCL-0.1.7.jar'
platforms = org.jocl.cl_platform_id.new
puts platforms.class
org.jocl.CL.clGetPlatformIDs(1, platforms, n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C# Merging 2 dictionaries and adding values between them I am learning C# and needed to merge two dictionaries so I could add values found in both.
The first dictionary is payePlusNssf that holds a value for each key (key represents employee ID). So far I have employees 1,2,3,4 and 5
Dictionary<int, decimal> payePlu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GHC/Haskell profiling: function consumes time without being called I have compiled a Haskell program with GHC with enabled profiling.
$ ./server +RTS -M6m -p -RTS
I get a profile like:
individual inherited
COST CENTRE MODULE no. entries %time %... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Memcache: multiple set / serializing I have a question about setting and retrieving memcached variables. Say, I have 5-10 objects with 10 attributes and I want to save those attribute in memcached - what is considered to be more efficient - saving object through serialization or multiple set for each attribute?
Obvi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uploading the video through iPhone App programmatically How can we upload the video through iPhone App programmatically, can any one please provide me some sample code for the same.
Got a sample from:
http://urinieto.com/2010/10/upload-videos-to-youtube-with-iphone-custom-app/
But always getting "NoLinkedYouTubeAcco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to add a context to whole controller in zendFramework there are posibility to add for example json context to specific action:
$this->_helper->ajaxContext()
->addActionContext('index', 'json')
->initContext();
but how about if I want to add jsonContext to two or all action in current controller;
I tryed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opengl rotation at a point I want to rotate a shape in opengl, but I want to rotate it at a point. Namely I have a cylinder and I want to rotate it so it looks like it is spinning at the bottom and the spin 'size' increases until the object falls to the ground. How would I do this kind of rotation in opengl?
A: *
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FSCK shows different results when checked as system and non-system disk I have a problem with UBUNTU 10.04 filesystem, which reports different results when a drive is mounted and checked with FSCK as the system drive and when it is checked by another system drive:
sudo fsck /dev/sdb1
fsck from util-linux-ng 2.17.2
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Bluetooth HFP connection with Iphone, Droid We are developing a Bluetooth hands-free module in windows CE. We are able to establish successful hands-free connection with a number of phones (Samsung, LG, nokia) and able to receive ‘RING’ message on call alert.
But for Iphone (iphone4), after establishing a successfu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to return result of transaction in JPA Just a background since I am used to using JDBC since I worked on an old project.
When saving into database, I always set the value to -1 for any unsuccessful insert
public class StudentDao{
//This dao method returns -1 if unsuccessful in saving
public int save(Stud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: timeout value for ios facebook sdk request hey guys does the ios facebook sdk asynchronous request delegate allow developer to specify some sort of timeoutInterval value? i know that the nsURLRequest has a timeoutInterval value that u can set.
Thanks for your help.
scenario:
i make an async request call. the conne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate Fluent group by I have this nhibernate criteria:
criteria.Add(Subqueries.PropertyIn("Id", DetachedCriteria.For<ReconItemReconSide>()
.SetProjection(Projections.ProjectionList()
.Add(Projections.GroupProperty("ReconItemFk"))
.Add(Projections.Min("ReconciliationSid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RadioButton style that crash ( ? ) I wrote RadioButton style - and the code crash and i don't find any reason to having this crash.
<Style x:Key="RadioButtonStyle2" TargetType="RadioButton">
<Setter Property="Foreground" Value="#5DFFC8" />
<Setter Property="Template">
<Setter.Val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send mail in asp.net through proxy server i am trying to send mail through asp.net using the code mentioned below.
it works fine without proxy environment. but now i am working with proxy servers and use proxy settings to connect to internet.
it gives error 'Failure Sending Mail'
Please anyone help ?
MailMess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Library for logging Call Stack at runtime (Windows/Linux) I need a way to record the function stack trace in a debug log to help me diagnose a defect. The problem is that I need to implement this on Windows and Linux using C++.
After a little research, I have found that:
*
*For the Windows implementation, I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: how to reload the activity without refreshing? i switch to next screen and then comes back to the original and wants to pick up where i left off , save and restore data.In Activity 1:i have more than 10 buttons i can select and unselect button,if go to next screen and if i come back it should not reload,it should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How many swaping & comparsions in each sorting algorithm? class Sort
{
int[] arr;
int counter=0;
//Constructor
public Sort()
{
arr = new int[10000];
}
string address;
public void SwitchCase(int Case)
{
switch (Case)
{
case 1:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: Scan for devices I'm looking for a way to scan for android devices in my area.
It should work without internetaccess nor gps.
Just knowing the mac-address is enough for this app.
The first way I was thinking of was to use bluetooth.
It's possible to scan for bluetooth devices, but it isn't possible to make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In .Net MVC3 how to handle server side error in JqGrid? I am using JqGrid with MVC 3.
Some errors are handled in the server side code when I am trying to delete a row.
How can I pass this error message to JqGrid?
For example, In the action method:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Delete(int id) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create readonly viewer for Word, Excel and PDF-documents? We need to set up a page to make some highly confidential documents (PDF, Excel, Word) available for viewing only.
The page/documents needs to be as secure as possible (no save, no print etc). We recon that we can't stop print-screen, but hopefully we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate drop down from non-direct-link database table I got 3 tables in database, FOOD, FOODTYPE and FOODUNIT. FOOD is link with FOODTYPE with foreign key FoodTypeID, while FOODTYPE is in turn link with FOODUNIT with foreign key FoodTypeID as well.
Currently i got my strongly-typed view (FOOD) which display all foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: emoticons in message on Android I am developing a chat application(like Simple Gtalk) for android mobiles. I am facing few issues in display emoji's/emoticons.
I need to replace the special character to a emojis image. How can i do this?
*
*I select Image from grid.
*Display corresponding special character of im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to copy and paste changed some lines in (command mode) in Vim I has such code:
def foo
puts "foo"
end
and as result I need:
def foo
puts "foo"
end
def bar
puts "bar"
end
I would like to perform this in command mode (could you also refer some help?) but other solutions are also welcome.
A: To copy / pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Dictionary DataStructure which method d[] or d.get()? While Using Python Dictionary DataStructure (which contains key-value pair) if i want to retrieve some value from my Dictionary i have two options d[''] and g.get('key') so i am confused now which is better and Why ?? I understand both some way but when it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How to make checkboxes grey in a cxGrid column In cxGrid I have a column with property Options.Editing:=False; Properties:=CheckBox. So, user can not change state of the checkboxes. But the checkboxes still have custom color and user does't see that he can not edit them.
How do I make checkboxes grey in a cxGrid col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to give limit in mongoexport in mongodb I want to take backup of only 100 records from a collection how can i give limit in query -q.
here what i tried giving limit but after giving limit in -q it is not inserting any record.
mongoexport --host localhost --db test --collection foo -q "{"limit":"1"}" > a.json
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: multithreading and reading from one file (perl) Hej sharp minds!
I need your expert guidance in making some choices.
Situation is like this:
1. I have approx. 500 flat files containing from 100 to 50000 records that have to be processed.
2. Each record in the files mentioned above has to be replaced using value from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FileWriter API: use blob to write data i have a blob url like blob:blahblah that points to a file. I want to write the file behind this blob to local filesystem. The writer.write() documentation says it accepts a file object (from input-type-file) and a blob. But it throws a type mismatch error when try this
fileEn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails Active Record Validation condition base class Material < ActiveRecord::Base
belongs_to :material_type
belongs_to :product_review
validates :url, :presence => true, :if => :url_presence?
validates :video, :presence => true, :if => :video_presence?
def url_presence?
if !self.title.blank? and self.m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-resources-plugin:2.4.3.. error in opening zip file I was using maven to build and compile a spring project and here's what I got an error about "error in opening zip file.". I attached the settings.xml here to show that I configured the proxy right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Take screenshot from a view of AVFoundation programmatically I am running a video stream by using AVFoundation class, and I am placing an imageview on that to simulate some thing. So is it possible to take screen shot of the simulation. What's happening by using the earlier specified methods is I am getting only a v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the Loop Invariant in the following code What is the Loop Invariant(s) in this sample code.
This is an excerpt code implemented in C programming language:
//pre-condition m,n >= 0
x=m;
y=n;
z=0;
while(x!=0){
if(x%2==0){
x=x/2;
y=2*y;
}
else{
x=x-1;
z=z+y;
}
}//post-condition z=mn
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine the blackberry processor programmatically? I want to determine the processor speed of the blackberry device programmatically.
Based on the processor speed i want to display few things on the app.
Please tell me how do i determine this programmatically.
Thanks
A: There's no way to do that. But you can det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to dump a certain range of variant into the sheet? I have a variant like these
var = sheet1.Range("A1:P3600").Value
I have done some operarions and pushed the unwanted rows to the top in the variant. Now I have to copy the var variant to the other sheet from a certain range.
sheet1.range("A3444:P" & ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Data Hog Notification I just like to ask how can you know that a certain application is using too much network? I wanted to create an android application that can notify the user if it is hogging your data. Thanks!
A: Yes, NetCounter has done something similar.
The data usage rates are polled using
// Reads the v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tomcat : Bypass basic Authentication for Specified IP Address I have configured tomcat for basic authentication.
I do not want anyone to have access to my web application but the app is serving web services.
So I want to bypass a specific ip address from basic authentication.( that ip should not require authenticati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Android image view gravity How can I dynamically set the gravity ?
Bitmap bmp;
im = new ImageView (this);
bmp=getbmp(img);
im.setImageBitmap(bmp);
Now I would like to put the image in the top . Ho can I do this without android:gravity in main.xml ?
EDIT :
main.xml
<?xml version="1.0" encoding="utf-8"?>
<Scroll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Getting and ordering rows with value greater than zero then rows with value zero I have a table like this
id title display_order
1 t1 3
2 t2 1
3 t3 5
4 t4 4
5 t5 2
6 t6 0
7 t7 7
8 t8 6
9 t9 0
10 t10 0
What I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Part of the screen disabled in landscape mode on view-based iPad app I am developing an iPad application with view-based template in landscape mode as it has to share a toolbar to all its views and provide the functionality similar to tabbar.
The problem is that any control added to a portion of the screen on the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proper way to put a String into a List in java|groovy I have a code which executes a command in Linux box (ls - latr /home/ars | awk '{if(NR>1)print}') which gives me list of directories along with its information. How do I put it into some array or list so that depending on each line I can get filename, permissions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: adding datetime on video while video recording in iPhone i am new in iPhone sdk. I want to develop a project in which i need to record current date and time along while i am recording video. i am not getting how to do that. please help me out here.
please provide a sample if possible.
Thank You
A: NSDate datewill r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: defining a method inside a class in python I'm taking my first steps in python programming, I have a class named node which holds a list of nodes (I think that legal) named sons. I tried to create a function that returns the length of the list but it fails. Here is my code:
class node:
name="temp"
ID=-1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Joining results of two different aggregate functions on the same table I'm trying to combine two queries in order to determine which aircraft will be at a particular point (point ABCD) just before a particular time (2011-09-19 04:00:00.000). So far, I generate the last time an aircraft arrived at this point, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Android - creating word document I want to create word(.doc) and excel(.xls) files on the android platform.
For excel I am able to use jexel jar, but I am unable to find any API for word files.
Can you tell me if there are any opensource/free API for writing word files on the android platform?
People have suggested ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Remove an element from a vector by value - C++ If I have
vector<T> list
Where each element in the list is unique, what's the easiest way of deleting an element provided that I don't know if it's in the list or not? I don't know the index of the element and I don't care if it's not on the list.
A: You could use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How can I implement CBC-MAC with DES? I should implement a MAC-CBC generation method in C# with some information about the cryptography algorithm. Here's what I have:
*
*I should use DES.
*The key is byte[] {11, 11, 11, 11, 11, 11, 11, 11}
*The data (16 bytes) should be encrypted in 8-byte parts. First 8 bytes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7631998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fill ImageAdapter with Int[] What I've Done
I have created a GridView in my layout. This GridView I'd like to fill over my ImageAdapter I've created of the Google Documentations: Hello GridView
The picturepath to my pictures, did i save into my datbase and I'd like to fill it over it. Because in my Datbase everythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: parsing for xml values I have a simple xml string defined in the following way in a c code:
char xmlstr[] = "<root><str1>Welcome</str1><str2>to</str2><str3>wonderland</str3></root>";
I want to parse the xmlstr to fetch all the values assigned to str1,str2,str3 tags.
I am using libxml2 library. As I am less experien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: why is my apache / php is not running under the right user i used
echo exec("whoami");
and i got
authority\system
and in my httpd.conf
it says
User daemon
Group daemon
why is it not running on the right user ?
also i checked and created the user and restarted apache but still it's running under system
A: U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Center jQuery info alert How can I center the text and icon in the standard jQuery info alert?
http://jsfiddle.net/3kHWa/
Thank you!
A: I have looked at the snippet and have it centered with this snippet http://jsfiddle.net/3kHWa/2/
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="paddi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FTP Connection Error 550 I can able see the root directory of the server unable to create folder and files. I am getting FTP error 550
A: FTP error 500 means invalid port, are you sure that you are using the right ports? Normally, it should be 21, sometimes 20... never heard of something else but it should be possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can find header controls in gridview? In a web application, how can I find the controls in header, and how can I bind the value dynamically to those controls? This is what my gridview looks like...
----------------------------------------------
| October | November |
product|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sort vector of struct element i am trying to sort vector of struct's elements,but i can't construct vector itself here is code
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
struct student_t{
string name;
int age,score;
} ;
bool compare(student_t const &lhs,student_t con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: ExtJS 4 - Data in the grid not visible
I have a simple grid with the following code (along with the code of store and model).
var containerDetailsGrid = Ext.create('Ext.grid.Panel', {
store: storeVarContainerDetails,
tbar:[
{
xtype:'tbtext',
text:'Container Details'
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Memory managment and JVM setting for solr I have a large Data storage(About 500GB pdf and video files) and my machine have a 4GB of RAM capacity, i want to index these file with solrj API's , what is the necessary setting for solrconfig and JVM to ignore heap size problem and other memory crash down during indexing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Controlling placement of footer sections on page in Crystal Reports I use CrystalReport in Visual Studio 2005 and make a bill report ... this bill
I use the header - Details- and footer in this report ..
in details section I limit the record to 10 for every page
so if there is a bill contains 15 record ..
first 10 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7632046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.