text stringlengths 8 267k | meta dict |
|---|---|
Q: Strings java null character with nextLine() System.out.println("-----------------------------------------------------------");
System.out.println("Please select a task");
System.out.println("1: List employees with details");
System.out.println("2: List of clients in state");
System.out.println("3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a jumplist clone to use it as ListView? Is there an easy possibility to create a Windows 7 Jumplist clone to use it as a ListView-Control? Especially the design should be 1:1 to the original.
important: I'm working with WPF if that helps.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7572371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript, looping a set of instructions (set timeouts) I want to loop an animation which is essentially changing the background-position ever 150 milliseconds. It does not fade or anything, it just has to happen over and over again. But I can not seem to find a solution that loops these set of instructions.
setTim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Eclipse projects in VCS What Eclipse specific files should I add to the VCS (Subversion, GIT, etc...) when sharing an Eclipse project?
What I have here:
.autotools
.cproject
.project
.settings/
A: Just stumbled upon this and had the same problem some time ago, so I will try to share my experience.
First it depends... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why are appengine database keys sorted differently than strings I found this interesting, and am curious to know why db keys are ordered differently than strings ..
If you test the following example in the Python development environment (true for server as well), you will see the following (somewhat unexpected) beh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript Captcha I found this great little code online but it doesn't seem to be comparing the two strings after removing the spaces correctly? I know some js but whatever wrong here is beyond my understanding. Hopefully someone will know the answer to this.
Note: it seems to also validate based on the number of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight not initializing controls I'm trying to add some values in several controls in my silverlight page (textboxes, datepickers...) but it seems like some of them are never initialize (until user sets any value manually).
I've tried it by been suscribed to the "Loaded" event in the page's code behind but it d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subsetting data frame using variable with same name as column I have a data frame and I'm trying to run a subset on it. In my data frame, I have a column called "start" and I'm trying to do this:
sub <- subset(data,data$start==14)
and I correctly get a subset of all the rows where start=14.
But, when I do this:
for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jquery ui slider with rounded corners - older borwser issues (.corner) I'm using this library to apply corners to a jquery ui slider element - https://github.com/malsup/corner
You can see a working example here - http://jsfiddle.net/FtkRQ/3/
I've applied the corners using css3 for modern browsers and am using the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Receiving function name in C I have a program like this,
void test(char* a)
{
printf("%s",a); // Trying to print the function name "add" here
return;
}
int add(int,int)
{
test(__FUNCTION__); // I need the function name add to be passed to the test function
...................
....................
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Python have C#/Java-style interfaces? I worked for a few months as a C# programmer, and got used to the idea of generics/templates interfaces, which I could pass to a library without caring how the object was created.
I'm about to start on a relatively large project, probably in python (I've written a lot of p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Beginning and end of the string in Emacs regexps What is the characters that indicate the beginning and the end of the string with newlines in it? I'm writing a trim function:
(defun trim (str)
(if (string-match "^[[:space:]]*\\(.+?\\)[[:space:]]*$" str)
(match-string 1 str)
str))
But with a string li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sitecore SIP active directory issues after authentication I've setup the active directory LDAP module in Sitecore's Intranet Portal 3.2 product and have had limited success. I receive the error "Unable to cast object of type 'System.Configuration.SettingsPropertyValue' to type 'LightLDAP.ADSettingsPropertyValue'." ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to verify Restful Client certificate authentication working with WCF? I have set up Restful webservice in WCF with client authentication using certificate authentication. I am also using SSL (on IIS) for Rest services. When I use fiddler to check whether SSL and certificate authentication are working then I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to vertical and horizontal align a div inside another div? How do I vertical and horizontal align a div inside another div?
Basically, I'm trying to align <div id="middle2"> inside <div id="middle">.
<div id="middle">
<div id="middle2">
<span id="sp1"class="ui-icon ui-icon-circle-triangle-w" style="f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any thing you can do if you can't pay for a SSL certificate Hello I am a hobbies developer and I don't make money of my app/website, I only have it to give out my work to FB users for free My APP
I can't afford to pay the £30-40-50 for a SSL certificate and I think it is a little unfair that FB will be forc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON returned from remote CFC function is out of order I have a remote CFC that returns a structure. It is called using cfajaxproxy. I want the JSON returned to be in order i.e. first into the structure first into the JSON object. However, the JSON that is returned is in a mixed up order.
Here's the remote function.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Web design agency using Git for development Background
Up until now we've been using Plastic SCM for version control. Recently we've been looking into Git and I've come up with a basic plan - Available here on Google Docs
My plan is to not allow developers to commit or FTP directly to the server, instead we would p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mac OSX : python packages failed to build because of gcc issues I am trying to install MySQL-python package with the following error:
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-long-double"
error: Setup script exited with error: command 'gcc' failed with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS Background Sizing Polyfill? Is there a polyfill to handle CSS Background Sizing in Safari 4 (iOS) and IE
A: could try this.
http://nooshu.com/jquery-plug-in-scalable-background-image
I'm in the process of looking as well.
A: Allegedly this is a polyfill on GitHUb that enables CSS3 Background Size to work, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to implement a concurrent circular ticker (counter) in Java? I want to implement a circular counter in Java.
The counter on each request should increment (atomically) and on reaching an upper limit should roll over to 0.
What would be the best way to implement this and are there any existing implementations?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Facebook like - showing cached version og:image, way to refresh or reindex it? Having an issue with Facebook like and a cached og:image.
Long story short:
Facebook has cached an older version of our like image. The meta content URL can't be changed. Is there anything I can do to refresh it?
Long story:
The site I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Pass array elements to settimeout function I don't understand why the fadeOut works but the remove doesn't. I found out it's a problem with the array. I tried some combinations, but I can't make it work.
for (var i=0;i<fieldsblock.length;i++){
$("#"+fieldsblock[i]+"_tr"+nid).fadeOut();
t=setTimeout(functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AddThis and ShareThis conflict with Facebook Connect SDK My iOS app uses the latest version of Facebook Connect as one method of allowing users to login.
I recently experienced a problem while adding an SDK that allows me to share posts via social networks, as well as obtain data for analytics on users' sharing acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to download a new version of Flash Player executable for opening SWF files and Flash IDE I would like to update the swf player that I specify into FDT and what Flash IDE uses to play files, namely from Flash 10 to Flash 11 for Stage3d preview. How does one do this?
A: One goes to the Adobe Flash Player Support ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filtering Guava HashMultimap keys by count I have created a hash multi map of following type: key as a pair of string, string and value as long.
HashMultimap<Pair<String, String>, Long> hm = HashMultimap.create();
I have inserted some values in the table using put function.
Now I want to find all those keys which h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Need PC Text editor/ IDE with the following features: I'm needing what seems like common sense tools for one source:
1) Sytax highlighting. (Specifically for PHP)
2) Integrated Terminal (Don't need to open Putty for ssh, it's integrated into IDE)
3) Search function that can search local directories. (Can select any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone equivalent of Timer and TimerTask for periodic tasks I'm trying to port an Android app to an iPhone. On Android I could easily process data every 60 seconds by using a Timer class with TimerTasks using scheduleAtFixedRate:
timer.scheduleAtFixedRate(task,15000, epochLengthMs);
Thank you!
Is there something sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's wrong with Jsch and Maven? I try to use Jsch 0.1.44 together with Maven.
I have the following dependency in my pom.xml.
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.44</version>
<scope>compile</scope>
</dependency>
If I run mvn compile maven looks nor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Downloading PDF File with AJAX/MVC 3 Basically the issue is this:
I have a pdf file that I am requesting from a server based on the currently logged in user's ID and the OID. In order to get the OID, I have to parse a value from a HTML table based on the button the user clicks on and then send it to the home control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Storing a password in SQL Server database. Do .Net functions suffice? My initial plan was to use the .NET built in hashing library (SHA512) and store the password along with a salt. I'm familiar with how this can be done.
It has been requested that we should be able to add users along with their passwords manually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any class like VBox, HBox etc. in Flash Pro CS5? Flex has great classes for manipulating with controls in multiscreen apps like VBox, HBox, VGroup etc. But my project is in Flash Proffesional CS5. Are there any way to use these features?
A: Out-of-the-box, no. You can't use the Flex framework without buil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: prevent html elements from squishing when resolution too small I see websites like Amazon and Google when you shrink the width of the web browser the elements only squish to a certain point and then it stops squishing even if you shrink the width even more.
What kind of techniques would allow this? Is there a specif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Communication between excel and silverlight I am developing an application where i need to get data from excel to my silverlight oob application and after manuplation send it back to excel.
I am able to do this using with com automation factory classes. But the problem is we have already developed some logics for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git add remote tracking branch to bare repo
*
*I have a bare repo that was cloned from git.drupal.org.
*I have cloned from this bare repo to various different websites.
*From each of these, I push a site-specific branch onto the bare repo.
E.g. if I have foo.org and bar.org, then my bare repo has drupal's bra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Azure Storage & Snapshots I have a VHD in a container which was mounted by an instance (a DotNetNuke accelerator). But now the instance is stopped so the VHD is not mounted anymore.
The problem is I can't rename this VHD with any UI client. "CloudBerry Explorer for Azure Blob Storage" shows an error when I try to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Google maps and raising marker I'm writing web app that uses google maps. I've got some points placed to the map as markers. When I drag the marker - it raises - and when I drop it - it falls back down. I want to avoid raising marker. Is there any way to drag it without raising?
A: This feature has probably been ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I mitigate duplicate row inserts based on a non-key column? I need to import data from one MySQL table into another. The old table has a different outdated structure (which isn't terribly relevant). That said, I'm appending a field to the new table called "imported_id" which saves the original id from the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Translating a QueryExpression into SQL: what's a Natural join? I am trying to translate a QueryExpression that is in some existing code into a T-SQL select statement.
I've run across the following statement and I'm having trouble understanding what they mean by a Natural Join:
linkEntity1.JoinOperator = JoinOperator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Security 3 RestTemplate POST to j_spring_security_check I am using Spring Security 3 with REST endpoints. I managed to get a basic Spring Security working.
Part of the security-context.xml
<security:http auto-config="true" use-expressions="true" access-denied-page="/rest/denied" >
<security:intercept-url pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Execute public String I have a public class EmailHelp.
In this class there is a public String called doIt.
How do i execute this public String DoIt from within let´s say a onClick event?
public class EmailHelp{
-----
public String DoIt {
------
public void crxExecute () {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Print out ranks virtually I have done something similar to this in php and cannot figure it out in mvc3. I want to pull the top 100 results from a table and append a number to each result to print it out like a Top Charts type of deal. I want to just add the rank number on the fly.
My Code:
var tracks = db.Query(@"S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can't fix this seemingly, simple, cast related, postgresql error So, I have this query:
SELECT count(*) AS count FROM table1 INNER JOIN "some query"
WHERE "some more query"
OR (table.smowid NOT LIKE (58)) OR "rest of query"
Sorry for the unclear code, the full query is quite big, but the problem is in the table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does managed code mean JIT or GC? I've seen several explanations on what "managed" code means, and some target the idea of managed code being compiled to an intermediate language and JITed and others talk about GC and memory management. Which actually makes a language managed, or is it both or neither?
The answer of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IntelliJ2-IDEA get Maven-2 to download source and documentation I have a spring mvc project setup using maven in IntelliJ.
While I was setting the project up, IntelliJ asked me if I wanted to download the source and documentation. In order to save time at that point I did not select this option. However now I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does Apple Store, Android Market accept Mobile Apps made using jQuery , jQueryMobile and Phone-Gap I am making an application for online blog I am using JqueryMobile features to design the application and Phone Gap to add features to it like GPS to check location and other features from Mobile.
<div id="index" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: disable automatic locking on iphone with iOS 4.3.3 I want to disable the auto lock on my iOS4.3.3 program. I found on the web the same answer several times for this and working for xcode3 but I cant find it to work with mine.. help pls? thks
A: This should work on iOS 4.3.3. If not then you're doing something wrong... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I use assets within Mailer? I have trouble using any form of the asset pipeline within mailer, wether the Mailer itself or the view.
The following produces and empty src image tag.
<%= image_tag "emails/header-general.png" %>
The empty image tag looks like this:
img alt="Header-general"
The following form o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to have case insensitive targets with GNU make? Is it possible to design a makefile so that
make program_name
produces the same result as
make PROGRAM_NAME
?
I know I can do the following in the makefile
program_name : PROGRAM_NAME
but I don't know if there is a way to streamline this for multipl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would anyone ever use the Java Thread no argument constructor? In what situation would anyone ever use the no-argument constructor of the Java Thread class?
The API says:
This constructor has the same effect as Thread(null, null, gname),
where gname is a newly generated name.
Correct me if I am wrong, but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Complexity of stl deque::insert() I learned the complexity of deque::insert() from the C++ standard 2003 (chapter 23.2.1.3) as follows:
In the worst case, inserting a single element into a deque takes time linear in the minimum of the distance from the insertion point to the beginning of the deque and the distance f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it possible to remove voice search for edits in Android I have a requirement to suppress voice recognition button in Android SoftKeyboard.
During my research I found the setInputMethodAndSubType which has mode parameter. But I cannot locate how it can be used.
Any inputs.
A: My previous answer was incorrect. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: modifying django model forms after post I would like to modify a user submitted form to automatically insert the project_id, but I keep getting the error that project_id in the Employee model cannot be null;
My model:
class Project(models.Model):
name = models.CharField(max_length=100)
date_started = models.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does getWritableDatabase crashes on some devices? (sqlite3_open_v2 ... Failed) My application uses a database and works pretty well on all Android devices.
Recently some users pointed that it crashes on HTC Tattoo. I decided to give a try and got one in loan.
So, the error come when I call: this.getWritableDatab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: htaccess - do not rewrite in this case My access file looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
But I have a directory called facebook that I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't understand ps | wc output differences I was trying to write a set of functions that could check to see if a process name was running when I encountered some unexpected output. I've condensed the issue in the following script names isRunning.sh which depends on a system ps command that can take the '-fC' argum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: after user clicks allow, the browser is redirected to my server, without facebook iframe im implementing my own php facebook sdk. it works fine, but i'm still fighting with the oauth flow.
what i have now:
check if user has allowed my application and permissions
if not - show the dialog to login and accept permissio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compute rounded in cobol I am confused with the rounded in the compute function in cobol.
Declaration:
VAR-A PIC S9(9)V99 COMP-3.
VAR-B PIC S9(9)V9(6) COMP-3.
Procedure.
MOVE +12.08 TO VAR-A.
MOVE +6.181657 TO VAR-B.
COMPUTE VAR-A ROUNDED = VAR-A + VAR-B.
Will the result of VAR-A be 18.27 or 18.26? W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Add count constraint to @XmlElement? So, I am back with another question for you fellas. I have a JAXB object which I am marshalling/de-marshalling from an XML file.
The code is something like:
@XmlAccessorType(XmlAccessType.FIELD)
public class Line {
@XmlElement(required = true)
@Min(1)
private int quantity... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Solution/Project name variable in TFS Build 2010 When creating a new build definition in TFS 2010 we specifiy a project or solution to build (Under the 'Required -> Items to Build' section in the 'Process' section of the definition.
Is there any way to get hold of the name of the solution being built in the Workflow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Knowing if a page is already liked on facebook
Possible Duplicate:
How to know if the user already like the page in Facebook Likebox?
Is there a way to know if a user likes the current page WITHOUT using asking the user for permissions?
The page has a like button and I am using the javascript to figure out when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multiline string literals and tests var multiply = function (a, b) {
//An internal comment
return a * b;
};
var stupid = "function (a, b) {
return a * b;
}"
expect(multiply.toString()).toBe(stupid);
The test passes, but firefox gives me this:
unterminated string literal
[Break On This Error] var stupid = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java JNDI lookup to Microsoft Active Directory (using Tomcat 6), authentication failing The idea is to perform an authentication (basic form with username + password) by configuring my Tomcat 6 container so that it connects (using JNDI Realm) to Microsoft Active Directory to check whether or not credentials are corr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Call a View Helper Method in JavaScript using Rails 3.1 I'm working on a simple app that needs to render a time. But the time must be formatted the way time_ago_in_words helper does. I'm getting the time data from a JSON object. Is it possible to trigger a view helper (time_ago_in_words) inside a JavaScript f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert list of objects to list of interfaces? I have some class that works with interfaces:
Here is the interface:
public interface Orderable
{
int getOrder()
void setOrder()
}
Here is the worker class:
public class Worker
{
private List<Orderable> workingList;
public void setList(List<Ordera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Integrating CakePHP and Sage Pay (Protx) I am needing to integrate Sage Pay on our website to accept online payments.
I have downloaded and tested the PHP kit provided by Sage and have run a few successful tests, however, I don't know where to start when it comes to integrating this with Cake PHP.
If anybody has som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional SQL SELECT - when return set is empty, execute another SELECT? I have webpage that has its "pages/articles" stored in a MySQL database. It also has a feature to show a different side menu for different pages. All that (menus, menu's items) is stored in DB.
Here's my SQL for getting all menu items for cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get the Image Width and Height? i have one image url(Online url), now i want this image height and width, how can i get this, it's greatly appreciate if anyone answer this
*
*i want to preview the image with 150px height and 150px width, so i set it up in aspx page height-150 and width-150 for img tag
*if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in in visual studio 2010 professional installation i try to install visual studio 2010 professional but i am getting error and it is log file.
>
[09/27/11,21:21:50] Microsoft Application Error Reporting: [2] Error: Installation failed for component Microsoft Application Error Reporting. MSI returned error code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL 2008 + IIS Application Pool: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path I´m having trouble connecting to SQL Server 2008 R2 Express with Northwind database using ApplicationPoolIdentity in IIS 7.5, resulting in the following error message:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: serialport responding to EventHandler, but not ReadExisting or ReadLine? i have a program that's reading from serial port in c#. i need to quickly write to a port, read from it, then close it. i cannot leave it open. i understand that serial ports read and write slowly, I've tried to set the ReadTimeout and Write... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: mysql, permissions for different users to access different tables I would like to understand how hard this is to implement.
In unix, there are unix groups where certain people with a group can access certain folders and files.
I would like to apply the same concept into MYSQL where people could only access, view cer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get the cursor in UITextView without keyboard? I am developing a program in which I have UITextView in that I need a cursor without the key board.In this cursor is show only with the keyboard if I hide the keyboard cursor will also get hide.How can I get the cursor without the key board ?
A: The cursor is di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change case of specified characters in a string I have all-one-case strings representing postal addresses stored in a database, but I want to capitalize US state abbreviations (e.g. " ca " to " CA ") when the abbreviation is separated from the rest of the string by a space on either side.
The lousy way I could do it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Envers query returns a lazy result instead of an eager one I have an Envers query that returns a lazy result although the field is defined in hibernate-mapping with lazy="false".
I have looked it up at the Hibernate-Envers forums and didn't find any useful information.
So this is what i have:
hibernate-mapping -
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android - alter Orange Gradient at top and bottom of scrollable Views? In Android 2.3.x (and maybe previous versions?) when working with any scrollable Views, like a ListView or ScrollLayout, etc, when you reach the top or bottom of the list, a orange gradient appears to indicate that you are at the top or bottom of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing POST parameters - no URL. Where are they exactly? I'm designing a simple web appliance that takes temperature and humidity readings and I want to post them to a remote server and have them added to a MySQL table of data.
I understand that GET is the wrong way to do this because of the idempotency problem. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Behaviour of generator in lambda safe against future changes? I have the following function:
| def line_reader_iter(file_object):
| while True:
| a_line = file_object.readline()
| if len(a_line)==0: raise StopIteration
| yield a_line[:-1]
and somewhere I say:
| line_reader ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I can not write in file i use tomcat5.32 + cpanel .
my code is :
<%
String path = application.getRealPath("");
path +="/as.txt" ;
FileOutputStream fos = new FileOutputStream(path);
fos.write("this is test ?".getBytes());
fos.flush();
fos.close();
%>
when requested get this error :
java.io.FileNotFoundException: /ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: LNK2038, iterator mismatch error, need to ignore I'm getting the linker error LNK2038 when trying to convert a VS2008 project to VS2010. This error occurs when two different projects are compiled in which one is using _DEBUG preprocessor macro, and the other is not. Basically I have a 3rd party library that only has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I know if two vectors are near parallel I am having some trouble finding parallel vectors because of floating point precision. How can I determine if the vectors are parallel with some tolerance?
I also need a check for orthogonality with tolerance.
A: If you have 3D vectors the answer is simple. Compute the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to do a "git checkout -b " from a remote tag I'm trying to create a branch from a remote tag, but it seems there's no way to do it. When I try
git checkout -b test origin/deploy
where origin is the remote and deploy is the tag I want to check out, but I get
fatal: git checkout: updating paths is incompatible wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Rails 3 skip validations and callbacks I have a particularly complex model with validations and callbacks defined. The business needs now calls for a particular scenario where adding a new record requires skipping the validations and callbacks. What's the best way to do this?
A: Use ActiveRecord::Persistence#update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Is it necessary to have Email field in ASP.NET CreateUserWizard Control? I had done the registration using ASP.NET CreateUserWizard Control. In here I want to use email address as the username. I had problem removing Email field from the control. In the web.config file I used requiresUniqueEmail="false".
I achieve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where's the bug in this BitTorrent client's piece verification process? I've been working on writing a BitTorrent client in C in my spare time. However -- seemingly at random -- my client will fail to verify that a received piece of a torrent is correct with the message:
Failed to verify piece: #4
Background: a .t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you manage and use "Many to many" core data relationships? I'm creating an app and trying to use core data, because it seems like it's the objective-C approved way to create a data storage system. The use case I have involves "many to many" relationships, like you'd normally see in a standard SQL system. I un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I delete a SQLite DB on my Android Emulator? I assume that this is the solution to the problem. The error I keep getting says in a raw query I pass that a certain table does not exist. I have since changed the name of this class and every instance of it in the code, but it only returns an error on one line on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to create a C# class from xml? Is it possible to create a C# class from xml?
suppose my xml is like,
<Person>
<Name>aaaa</Name>
<Email>bbb</Email>
</Person>
then Person would be the classname and name and email must be my properties. And how would it handle collections or potential sub objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: problem capturing delimiter with preg_split I have a pipe-delimited dump file from an SQL Server, and I want to import it into MySQL. The lines are delimited by \r\n, and that sequence also occurs in some fields! So I want to use a regular expression to find the actual lines and make an INSERT statement out of them.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Table annotation in jpa with portion of the table name dynamically in JPA annotation @Table(x+"_Name"),
I want the x to be fed by spring config file.
Is it possible in JPA? actually all our db tables name have prefix with application name, and I want to use that prefix at dynamically configure by passing to spring ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: time limit function execution in PHP or anything else I could say that my question is related to PHP, but what I'm more concerned is proper logic of programming in situation where function execution can go on indefinitely.
What is the proper way of monitoring time that it takes to execute some function and how to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: I can't see changes when updating css files for Magento 1.5 although I have cleared the cache I edited and uploaded a css file to my Magento 1.5 site. I refreshed the cache and also refreshed the browser cache but I could see any changes reflected to the site. What should I do?
A: Did you check that Magento is send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nsdateformatter format Aug 8, 2011 11:40 how do i format Aug 8, 2011 11:40 into nsdate using nsdatepicker?Im trying to use
[dateFormatter setDateFormat:@" MMM d, YYYY HH:mm"];
but it doesnt work
A: Try this
iPhone format strings are in Unicode format. Behind the link is a table explaining what all the letters above... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to close a blocking socket while it is waiting to receive data? I have a service that uses a blocking socket to receive data. The problem I have is that I do not know how to properly close the socket if it is still waiting for data. Below is a short snip of how I am opening and waiting for data: I do not want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: android layout problem with image length I have an image of a line and I want it to go from end to end (left to right). However thats not happening ! And I am not sure why - I have used fill_parent as the width. Any help ?
<ImageView
android:id="@+id/twsep1"
android:src="@drawable/separator"
android:layout_height=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort string items in a datatable as int using c# I have some numeric codes stored in a DataTable. When I try to sort it using DataView it sorts the column by string. What is the easiest way to sort the data as integer/number?
DataView view = dt.DefaultView();
view.Sort = "Code asc";
dt = view.ToTable();
Data in dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Question about using FacesValidator (JSF Validation) and Bean Validation on one Field i have an email field
which i want to validate that it's valid email, and validate that it doesn't exist in the database, so i used for valid email pattern the @Email from hibernate in the bean:
@NotBlank(message = "{email.required... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Equivalent of "sizeof() of C" in Java
Possible Duplicate:
In Java, what is the best way to determine the size of an object?
What is the technique to retrieve the # of bytes occupied by a class object/variable in Java?
Looking for an equivalent for SizeOf() operator in C.
A: I've used the SizeOf() project on Sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python datetime randomly breaking This isn't the first time this has happened to me so now I'm looking for an answer because I'm completely stumped.
I have code running in a production environment for over 3 months now and it worked absolutely fine, then out of no where I started to get errors in python.
'method_des... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery Disable Enter Key after Enter Key has been hit when Enter key has already been disabled I have disabled my enter key so that I can do an ajax submission, but I want to make sure that the form isn't submitted twice if the user hits enter twice before the response from the server comes back.
Here I have disable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572696",
"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.