text stringlengths 8 267k | meta dict |
|---|---|
Q: How to get progress values from SeekBar created in ListAdapter? I'm curently working on my first Android app, which is my first pice of java code at all, i think I got pretty far already but now I'm stuck on the following topic:
I have a ListActivity which shows rowViews from a custom ListAdapter generated from json... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to CameraCaptureTask and PhotoChooserTask on the same screen? In my phone there is an app called PhotoFunia and it has a option to take picture. Whenever I take picture it shows me a page like given in below image:
I'm wondering which is this control which is giving Gallery and Camera on the same screen? I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Editing websites locally I think I read somewhere that you can edit the stylesheet of other websites locally on your computer. For example I'd like to edit the stylesheet of Facebook just for my own view. How can I do that? Is there anyway I can edit the original stylesheet CSS and tell my browser to read one locall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to catch the exception caused by an absence of an object in Java? I have a very simple method:
public int getScore() {
return game.gameWindow.userBestScore;
}
The problem is that it can happens that game object or gameWindow do not exist. I do not want to get the Null Pointer Exception. How can catch it in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I determine if a compiler uses early or late binding on a virtual function? I have the following code:
class Pet {
public:
virtual string speak() const { return ""; }
};
class Dog : public Pet {
public:
string speak() const { return "Bark!"; }
};
int main() {
Dog ralph;
Pet* p1 = &ralph;
Pet& p2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Intelligent point label placement in R
*
*Is there an R library/function that would implement INTELLIGENT label placement in R plot? I tried some but they are all problematic - many labels are overlapping either each other or other points (or other objects in the plot, but I see that this is much harder to handle)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Is there a way to convert word colors ("red", "blue", "green") into #123456 values? I've been stuck on this for a while. I keep trying to compare colors for elements but even if the colors are the same, the values representing them are not. One is #000 and the other is "black". How do I take "black" and turn it into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PIL - are there a any PIL solutions that will allow you to take a screenshot of a specified web page? Is there a way to take a screenshot using PIL of an specified HTML/Javascript page that resides on my server?
I want to write a script that will change some parameters on that HTML page and then have PIL take screen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I run multiple commands in SSH through Java? How do I run multiple commands in SSH using Java runtime?
the command: ssh user@127.0.0.1 'export MYVAR=this/dir/is/cool; /run/my/script
/myscript; echo $MYVAR'
@Test
public void testSSHcmd() throws Exception
{
StringBuilder cmd = new StringBuilder();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Machine config instead of app.config files for console apps Is it possible to use connection strings in a Console app's app.config file in a single machine config file instead? So all console apps on the server can use the same file?
A: You could, but that would mean that any .NET application could gain access to y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding .lib files in Microsoft Visual Studio 2010 I just downloaded Visual Studio 2010, and they changed a lot since Visual Studio 2008. These options were changed: the header includes, the lib directory to add, and all changed.
I followed a series of tutorials to do that, but in the other version I just had to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Recurring payments IPN Working on implementation of paypal's recurring payments, I've got encountered some problems. I have followed paypal's documentation from here:
PayPal Express Checkout: Recurring Payments Process Flow
It seems that everything works properly and I get ProfileID at the end (from result of Creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook - Is it possible to get hidden posts and comments in grey via Graph API or FQL? I have some comments in grey in my Facebook pages's wall and some comments in "Hidden posts" Page tab, not in the wall.
I know that Facebook anti-spam filter has put theses comments but i want to know if it's possible to get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does OpenFire or XMPP Protocol support Message Notification (Pending, Delivered, Read) like BBM (Blackberry Messenger) I am a beginner and need help.
I am currently involved in a project, where required to build a chat application (server side and client side).
After further explore, eventually I was interested in X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Schedule .bat isn't executing VBScript properly So I've got 2 things going on: a program that checks the status of some folders, then a VBScript that runs afterwards to email recipients of any errors going on in said folders. Even if there is none, it's supposed to send a "No Errors" email.
Both of them work perfect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Supress console output from chrome extensions When troubleshooting my own javascript, I see console messages from my installed chrome extensions. Is there any way to supress these messages? I'd prefer to not see them as they clutter up the console output.
A: Temporarily disabling the other extensions is a quick a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I have ColdFusion tags in a variable and have them evaluated? I've get a variable that can contain a CF custom tag. E.g.
<cfset a = '<model:sparkline id="1"/>'/>
And I'd like that to be evaluated into HTML and outputted. Not sure how/if I can do this.
A: Can you modify the custom tag? If so you can use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Combine syntax highlighting of different Eclipse editors I use Eclipse, StatET and the Sweave plugin to write my R and Latex code. The cool thing is that R and Latex code can be put together into one file, however you end up with a syntax highlighting problem.
I have loads of R code and I very much like the Eclipse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Segmentation fault when initialization array I have a structure called string
typedef struct {
char *s;
int len;
} string_t;
typedef struct {
uint32_t numb;
} msg_t;
where in the function
void myfunct()
{
msg_t msg;
memset(&msg, 0, sizeof(msg));
msg.numb = 1;
char *ClientSendBuf[sizeof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Starting multiple instances of the same Activity from Service I want to start multiple instance of the same Activity class from a Service. The reason I'm doing this, is because I have a Service that runs a "scan" daily, and if it finds any malfunctions it should display a popup for each malfunction.
The Activity tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio 2010 - Warnings only shown for active file i hope you can help me with my problem in Visual Studio 2010.
Normally in Visual Studio 2008, when i compile a project warnings for all files are shown. But not so in Visual Studio 2010. When i compile a project warnings are shown not until a file is active an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Changing font size with jquery I'm trying to change the font-size of the text in a textarea by using the .css attr but its not working, do you guys have any ideas?
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function crap () {
var text_input = $('#te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MySQL backslash apostrophe I'm having a MySQL issue.
I'm trying to select all rows in a table that start with a backslash and an apostrophe:
SELECT * FROM table WHERE name like '\\\'%'
But this is not working. An example of what I'm trying to select: \'S-GRAVENDEEL
How do I do this?
Thanks
p.s.
Yes, this was the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google App Engine: how to speed up database query on a short-string property? I have a quite simple database query:
Query q = new Query("person");
q.addFilter("name", Query.FilterOperator.EQUAL, req.getParameter("n"));
PreparedQuery pq = datastore.prepare(q);
for (Entity result : pq.asList(FetchOptions.Builder.withD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: is it ok to use StructureMap like this? asp.net MVC 3 i have a doubt that i am not using the best practice for using Structure-Map.
all working fine but just a confusion in mind.
my code look like this.
global.asax
IContainer container = new Container(
x => {
x.For<IUserRepo>().Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP/CHMOD Questions I am working on a PHP based website. In the admin there is a section that checks a form field and based on the field looks for a folder on the server. This folder will be in a sub-directory. If it does not exist it needs to be created. After that, previously existing or not, PHP will write fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Memory warnings in IPAD app with UITabbar of 8viewControllers My application which is a UITabbar app has eight tabs. one tab for playing Audio, one for Playing Videos, one for Books(Leavesview is used for opening jpg image pages),one for Gallery.....so on.
So, Once I open all tabs the app throws memory warnings and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SIGINT signal()/sigaction in C++ So here is my code:
void sigHandle(int sig)
{
signal(SIGINT, sigHandle); //Is this line necessairy?
cout<<"Signal: "<<sig<<endl;
}
int main(){
signal(SIGINT, sigHandle);
while(true){ //Supposed to loop until user exits.
//rest of my code
}
}
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Plus button fails to load. Uncaught gapi.load Everytime I launch my page containing a google plus icon I see the following error:
Uncaught gapi.load: Pending callback https://ssl.gstatic.com/webclient/js/gc/23980661-3686120e/googleapis.client__plusone.js plusone.js:16
Any idea where this is coming from? Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Remote Desktop logging I have a Windows 7 machine that several folks Remote Desktop into. I'm looking for a way to log who (IP address) has logged in locally (on the machine that has been logged into) and/or if there is a snazzy way to email myself a notification whenever someone logs in that would be even ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Getting a variable by name and concatention I am having this problem getting a variable by its name. What I am doing is including a path with connections and I want the connections are named in a certain way. I want to iterate through those conenctions and add them to a queue but the problem is, I cannot use '.'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Velocity template has implicit request object? I'm rephrasing my existing question to a more generic one. I want to know if Velocity has got implicit object references like JSP does.
I'm particularly interested in knowing about the request object.
In JSP we can get the attribute in the request scope like <%= re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I populate a cell based on 3 possible values in another cell selected from a drop down list? Below is the formula I've tried for D9 in my workbook and I get the error NAME?
=IF(C9=Yes,"PASS",IF(C9=No,"FAIL",IF(C9=Unclear/Insufficient,"QUERY","-")))
Help appreciated
ALSO....
Having solved that, how do I use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory leak when using TBXML in Objective-C I'm new to Objective C and am still not very clear about how to use retain and release.
In the following code, I want to use TBXML to parse an XML file and populate a TableView. The code works, but when I "Analyze" my app, Xcode says there are memory leaks in the variable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magnolia CMS's built-in Form: SMTP configuration overriding "From" input On the following page http://documentation.magnolia-cms.com/modules/mail.html#ConfiguringSMTP
In the section "Sending messages >> Plain text and HTML messages", we can read:
From:[...]Regardless of the address entered here, Magnolia CMS will us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert a coldfusion website into Native Mobile application I have a coldfusion website running in my server.I have to develop an Mobile application say for iPhone/Android.(I am not mentioning mobile website).
I dono much about the native mobile development however I guess there is a possibility to achieve us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get required folder URL using java swings? I am using Netbeans for java application. during my application at one point i want particular folder URL to store files. how can i achieve this. please can anyone help me..
Thanks in advance :)
A: Use a JFileChooser, with JFileChooser.DIRECTORIES_ONLY Take a look ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: not able to change background using CCLayerColor and initWithColor:cc4(255,255,255,255) i am working on very first tutorial on cocos2d understanding basic concept.I am trying to change background color from default(black) to white.here is my code:
#import <Foundation/Foundation.h>
#import "cocos2d.h"
@interface Gam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prefix.pch not included at compilation time I have defined many constants in GlobalVar.h and other .h files. I import these files in the Prefix.pch file like this :
//
// Prefix header for all source files of the 'XXX' target in the 'XXX' project
//
#import "GlobalVar.h"
[...]
#ifndef __IPHONE_3_0
#warning "This p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF 2.0, messages not displayed inside a dataTable I have a form with a dataTable which has various columns having links and outputTexts. There is one input field which is evaluated through an ajax request . A custom validator makes sure that only integers are added to the field. The form is below.
<form>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - Load simple Excel file into a datatable using FileUpload control I'm trying to figure out how to populate a datatable with data from and Excel file that's been uploaded using the FileUpload control. Does anyone know of a tutorial to do this?
I haven't been able to find anything on Google, maybe using wrong sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can a page post on another page's wall? Using FQL, I want to get the posts on a page's wall. Each one of these posts hasa an actor_id. Can I assume that all the actor_id's are either users or the owning page's id?
This assumption would be false if another page could post on this page's wall.
A: Yes, a page can post... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery CSS Selector background I've to do the following simple CSS selector using jQuery , but I can't :
"#test > *"
I've tried in many ways but I just can't do that!
$("#jqt > *")
or
$('*',$("#jqt")).css()
the last one seemed to work but I realized that it shoudnt!!
How should I do this simple selection to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python String to List with RegEx I would like to convert mystring into list.
Input : "(11,4) , (2, 4), (5,4), (2,3) "
Output: ['11', '4', '2', '4', '5', '4', '2', '3']
>>>mystring="(11,4) , (2, 4), (5,4), (2,3)"
>>>mystring=re.sub(r'\s', '', mystring) #remove all whilespaces
>>>print mystring
(11,4),(2,4),(5,4),... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening multiple files in Fortran 90 I would like to open 10,000 files with file names starting from abc25000 until abc35000 and copy some information into each file. The code I have written is as below:
PROGRAM puppy
IMPLICIT NONE
integer :: i
CHARACTER(len=3) :: n1
CHARACTER(len=5) :: cnum
CHARACTER(len=8) :: n2
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: alternative to Resharper "go to file" and "go to implementation" features Does anybody know a light plug-in that do (same as Resharper) go to implementation and the quick search for a file where you just insert few characters and it shows the matches? I just want to get rid of Resharper cause it slows me down a lot!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically created Binding does not work I want to bind TextBlocks to a Modell. But it does not work and I have no idea why.
class GameModel : INotifyPropertyChanged {
string[] _teamNames;
...
public string teamName(int team)
{
return _teamNames[team];
}
public void setTeamName(int team, string name)
{
_teamN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Express database replication/synchronization Situation:
Hi, I'm coding using Lightswitch (C#) and am thinking of deploying to multiple sites the same application and database.
The databases need to be synchronized/replicated to each other so each would have a merged database. However connectivity between... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Synchronize two multiselect box, select by value I am new to JS and Jquery and I am using Eric Hynds jquery-ui-multiselect-widget
Here's a very good demo:
http://jsfiddle.net/PKypd/11/
In this demo the second select box has its values checked by position depending on which option was selected on the first select bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating RSA keys in PKCS#1 format in Java When I generate an RSA key pair using the Java API, the public key is encoded in the X.509 format and the private key is encoded in the PKCS#8 format. I'm looking to encode both as PKCS#1. Is this possible? I've spent a considerable amount of time going through the Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Solving equations in .NET I'm trying to solve some simple equations in .NET. I came across Math.NET and evaluate it.
The Solver() methods seemed to be what I need but I can't figure out how to use side conditions with this method.
To illustrate my problem I will give you a sample:
Given:
0 <= a_i <= 100
0 <= b <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Reason behind deprecating the Thread's stop(), destroy(), resume() methods I read that the Thread class stop(),destroy(),resume() methods been depricated. As a reason it says:
"Because stopping a thread in this manner is unsafe and can leave your application and the VM in an unpredictable state"
Honestly I didn't un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's exactly the difference between using strand::post and io_service::post with strand::wrap? In my understanding, posting handlers to a strand object means:
*
*Only one of the posted handlers is executed at a time.
*The handlers are invoked in order.
Posting handlers directly to an io_service object and wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to use phonegap for just a part of the application? Is it possible to use Phonegap for only a part of an application ?
For instance on Android (but my question includes other OS as well), can an Activity use Phonegap components and native components (in the same screen) ?
Thank you.
A: The little exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maximum size of a varchar(max) variable At any time in the past, if someone had asked me the maximum size for a varchar(max), I'd have said 2GB, or looked up a more exact figure (2^31-1, or 2147483647).
However, in some recent testing, I discovered that varchar(max) variables can apparently exceed this size:
create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Passing ampersand from JavaScript to PHP/MySQL I have a textarea which I'm using JavaScript to retrieve the value of and send to a MySQL database via a PHP script (don't ask why - long story and an unavoidable resolution!).
The PHP script sanitizes the input, but for some reason ampersands aren't ever reaching the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error setting layout params to ImageView I'm having issues trying to set layoutparams to an ImageView created programmatically:
imageView.setLayoutParams(new LinearLayout.LayoutParams(gallerySize.x, gallerySize.y));
The imageView is inside an LinearLayout, and I think that should work, but I get this error:
09-30 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I put some space around td text? I have a demo here how can I put some space around the texts in side the table? also why not the css class is working in the demo?
css
.recomendationsTable{
width:100%;overflow:hidden;
}
.recomendationsTable tr{
border:#2F5882 1px solid;
}
.recomendationsTable tr th{
color ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the date of the next Sunday?
Possible Duplicate:
ASP.net get the next tuesday
Given a day of the month, how can I get the next sunday from that day?
So if I pass in Tuesday September 13th 2011, it will return Sept. 18th.
A: /// <summary>
/// Finds the next date whose day of the week equals the specifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Highchart datepicker I am trying to get jquery-ui datepicker to work with highcharts so that a user can select a date an example being
A user selects 10th October to 25th October
Once the user has selected the dates the highchart should redraw and show the hours for the projects that have done along with the task... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fill Form Fields From mySQL Search From some very sound guidance from this forum I've put together a php script that allows an administrator, via an html form, to search for member records using the email address as the search criteria and it works fine.
The problem I have is populating the first and surname fields ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: weird permission issue while deleting android bookmarks I'm facing some permission issue while deleting android bookmarks:
java.lang.SecurityException: Permission Denial: writing com.android.browser.provider.BrowserProvider2 uri content://browser/bookmarks from pid=8045, uid=10028 requires com.android.browser.permis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I run POCO C++ server pages? I'm a beginner in C++ server pages. I have tried C++ Server Pages by micronovae, but couldnt connect ODBC it used to give link error "undefined reference to SQLAllocHandle@12", I could not resolve it. Similar to micronovae,POCO also provides C++ Server Pages. so thought of try it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass PHP variable value to jquery function? i have this JQuery Script in Wordpress /js folder and i need to change some values that i store in the Database.
$( "#slider-range2" ).slider({
range: true,
min: 18,
max: 90,
values: [ 35, 50 ],
slide: function( event, ui ) {
$( "#amount2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why should I use Object instead of DataSet as the return type of my WCF Method? I heard some people saying Returning DataSet as a return type of your WCF method is not a good practice. What are the problems if I use DataSet as return type of my method? What are the advantages of using a List of Objects instead of Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Function Returns "No Solution" Instead Of "Nothing" I have a standard datatype representing formulae of predicate logic. A function representing a natural deduction elimination rule for disjunction might look like:
d_el p q =
if p =: (Dis r s) && q =: (Neg r) then Just s else
if q =: (Dis r s) && p =: (Neg r) th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: JNI build with MinGW I have a problem with building a dll with gcc (mingw).
From this site I read how to do it : http://www.mingw.org/node/41
and the problem is that the file jni.h cannot be found unless it is in current folder where is
the java file, the header c file and c file.
So my question is how to compile t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML performance (Asp.Net) I have a large HTML file (In ASP.NET) that has several smaller ... tags to control content based on users at the company I work for. In my current setup I load the entire page, but many of the panels are hidden until the user clicks on a link.button and then I have some JQuery that displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EXC_BAD_ACCESS in protocol? I am getting EXC_BAD_ACCESS at the following line, what can be possbile reason, can any one explain
if([self.delegate respondsToSelector:@selector(dealInfo:imageDidDownload:indexPath:)])//Here is EXC_BAD_ACCESS
[self.delegate dealInfo:self imageDidDownload:thumbImage indexPath:se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C#, check whether integer array has negative numbers in it I have a array int[] numArray . I want to know is there any straight forward way to just check whether array has negative numbers in it ?
If there is no direct method even linq will do . I am bit new to linq . Can anyone suggest ?
A: If you're open to using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AppMobi background issues basically I am trying to set a background color (or image). I am writing in HTML CSS and JQuery Mobile.
I'm trying to create a basic AppMobi app but I don't seem to be able to change my background in the following example:
<div data-role="page" id="page">
<div data-role="header" dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replacing a single line of a .txt file using php I am trying to use a php call through AJAX to replace a single line of a .txt file, in which I store user-specific information. The problem is that if I use fwrite once getting to the correct line, it leaves any previous information which is longer than the replaceme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between two methods of creating of 2d array What is the difference between two arrays definitions? Are they realized different in memory?
int var = 5;
int (*p4)[2] = new int [var][2]; // first 2d array
int** p5 = new int*[var]; // second 2d array
for(int i = 0; i < var; ++i){
p5[i] = new int[2]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check if relationship exists - Many to many relationship I need your help to figure out how to make a query.
My idea was to build a credit system to reward users.
The administrator enters the description of credits (e.g., user is subscribed to the newsletter, he had post at least 10 comments...).
I have 3 tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Removing trailing empty values from an array in ruby How to remove the trailing empty and nil values from an array in Ruby.
The "Compact" function is not fullfil my requirement. It is removing all the 'nil' values from an array. But I want to remove the trailing empty and nil values alone.
Please give me any suggest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which date time object is the smartest that will take leap years etc. into consideration? If I do this:
DateTime now = DateTime.Now;
And then:
DateTime dt = new DateTime(now.Year, now.Month, now.Year, ..).AddDays(1);
It will take into consideration leap years and anything else that might be an issue with dates :)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CAST to package type Is it possible to CAST to a type within a package? For example:
CAST(v_variable AS Mypackage.type)
I know CAST states the ability to cast to built-in types but I was wondering if this was possible. I'm interested in this approach because I prefer keeping my utilities in one package instead o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MSI installer cancel not working I have an MSI installer (set-up project) which actually calls a Windows Forms exe through system.diagnostic.process.
This form actually takes input from the user to restore a .bak file in sql server.
But if any exception occur, I am not able to cancel the setup. Even after clicking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android, setSelected() and state_selected I'm having trouble with View.setSelected(). Views are flagged as selected -- TextViews, for example, change their font color -- but my background selectors don't seem to register the change.
Example selector:
<selector xmlns:android="http://schemas.android.com/apk/res/androi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Weaving the same aspect into multiple jars I've been having problems weaving this project correctly with AspectJ (ajc). Here's the situation :
I'm using a benchmarking library called DaCapo Benchmarks, and in it I'm trying to intercept all calls to Iterator.HasNext() and Next() [academic research]. This seems to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is eval/alarm is executing? I'm writing a quick script to test the failures and interpreted traffic of a load balancer. I want it to keep trying to make connections after it can't connect to one host or another. My current script doesn't look like it's executing the eval block in the mkcnct sub, and I can't figure o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Eclipse python autocomplete adding the self parameter? I recently started to use PyDev and the method autocomplete seems to be stupid: I select the method name in the dropdown list, click enter and it completes the line adding the self parameter, but in Python you are not supposed to specify the self paramete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the background of a selected li in jquery? I have an unordered list with a bunch of list items. I am setting the background of the selected <li> in its click:
$(this).animate({
backgroundColor: '#0000FF'
}, 'fast');
When I click another <li>, I want to change its backgroundColor property,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: maven tomcat deploy plugin so that no rebuild is done I use jenkins to build my gwt app, now I want to run a tomcat:deploy on that built project so that it can deploy the built war to tomcat.
Problem is it insists on doing a package beforehand even though the package was just done.
This causes a gwt recompile - this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Android media player(android.media.MediaPlayer) two music concurrently Before open my application I played some of the music from default music player. With that background music I opened my application with the mediaplayer (android.media.MediaPlayer) to play the mp3 available in assets.
The default doesn't stop th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integrating CLI PHP with CakePHP I have a nice functioning CakePHP 1.3.11 site and I need a scheduled maintenance CLI script to run, so I'm writing it in PHP. Is there any way to make a cake-friendly script? Ideally I could use Cake's functions and Cake's Database models, the CLI requires database access and not muc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using cedet semantic wisent-ruby I'm just getting started setting up cedet following various guides including Alex Ott's.
Here is what I have so far in my init file.
(require 'cedet)
(semantic-load-enable-code-helpers)
;; imenu breaks if I don't enable this
(global-semantic-highlight-func-mode 1)
(global-semantic-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: c-ares specifying network interface for the DNS resolves Is there a way in which you can set the network interface to which the DNS requests can be bound to.
We have a project which requires to use a highpriority streaming session go through one interface and all the other requests channeled through the second one.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Project Template We are starting to build a large middle tier java application (webservices, etc.,). I want to create a template project, so it can used for any other future projects.
Here is what i am thinking of defining in the template project:
*
*Caching mechanism (for look up and other meta information... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ocamlfind, where to find/how to build? I know next to nothing about ocaml, but I want to install Coccinelle (on cygwin), which has a dependency to the binary ocamlfind.
However, installing either ocaml-3.11.0-win-mgw.exe or ocaml-3.11.0-win-msvc.exe
from http://caml.inria.fr/download.en.html, there are no such binar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why would an Overlapped call to recv return ERROR_NO_MORE_ITEMS(259)? I did a few tests with an I/O-Completion port and winsock sockets.
I encountered, that sometimes after I received data from a connection and then adjacently call WSARecv again on that socket it returns immediately with the error 259 (ERROR_NO_MORE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GetSchemaTable Columns Missing? I am using this code to get data from a dataReader into a DataTable which can then be serialised.
However, it looks like any column with a null value isnt being written to the xml.
I cant see the issue.
This is my entire class, and im calling this method
Process(IDataReader data, str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using ItextSharp I am getting Unbalanced begin/end text operators. But they are Matched I working on a app that uses ItextSharp to generate PDF files for students to print name tags and parking permits... However it keeps throwing: Unbalanced begin/end text operators. at the doc.close()
The blocks appear to be prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Application conversion into Java applet and passing Parameters from HTML I'm new to Java and tried to create an application which runs a system command when executed.
I accomplished just that with the following code:
package printtest;
import java.io.*;
import java.util.*;
public class PrintTest {
public stati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add new class and autoload in zend framework I am new on Zend framework and using first time it. I am looking for simple basic tutorials which I can read in very short time. I also stuck on if I want to add new class in Zend library. And it should also auto load when I make any new controller.
Please give you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Altering fake repository for unit testing when using dependency injection In my program I have a situation that I can simplify to the following:
*
*An IRepository of which I create a MemoryRepository and a SqlRepository implementation
*A Mapper that gets the IRepository constructor injected.
*A Mapper.Map() tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A guide to hacking IE8 into shape? I've finished making my website, but then I loaded it up in IE8. Big problems! For instance, a bunch of my div and span elements seem to be transparent (they should have coloured backgrounds), and floating elements don't work.
When I was developing my site, I had hoped I would just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google crawling, AJAX and HTML5 HTML5 allows us to update the current URL without refreshing the browser. I've created a small framework on top of HTML5 which allows me to leverage this transparently, so I can do all requests using AJAX while still having bookmarkable URLs without hashtags. So e.g. my navigation loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java how to avoid duplicate in recursion i'm trying to search synonym(which i declare as 'synset') recursively. Unfortunately, there are duplicate of synonym. For example: when i search the word student, the output will be like this:
Search word: student
Synset 0: pupil
Synset 0: student
Synset 0: pupil
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use of undeclared identifier in json for iOS I am getting a use of undeclared identifier error in my json but I am following the example from http://blog.zachwaugh.com/post/309924609/how-to-use-json-in-cocoaobjective-c
how do I fix this? Yes I am very new to objective-c \ ios :) Thanks
I am putting this code in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7611589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.