text stringlengths 8 267k | meta dict |
|---|---|
Q: jQuery draggable: limiting drag for an irregular area I have an image-based map. I want to drag a div within a specified area of the map. Is it possible using jQuery?
A: here is useful info:
http://jqueryui.com/demos/draggable/
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7580231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find index based on sorted elements among siblings.? <div id="container">
<div class="aa"></div>
<div class="bb"></div>
<div class="aa"></div>
<div class="bb"></div>
<div class="bb"></div>
<div class="bb"></div>
<div class="bb"></div>
</div>
i just need to find the index of element based on par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: simple login implementation using php. (clearing a session so that hitting 'back' doesn't work when you logout) I've got a simple login system going with php sessions. The issue I'm having is even after hitting "logout", I can still go back to the previous page by hitting the back button.
The way I'm logging out is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding the nearest quantity based on price and amount to get I've got a small maths problem in which I need to determine a quantity based on a cost price and a final amount.
Now this is easy in theory as it's simply final amount/actual cost = quantity, except in my case the actual cost changes based on the quantity... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I parse non-English dates with DateTime strptime in Ruby? I am trying to parse dates exported from a CMS. Unfortunately with a Swedish locale set. The month names are abbreviated to three characters which makes a difference when it comes to the months May and October ("maj" vs. "May", and, "okt" vs. "Oct").
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Transfer always empty in php curl I've never worked with curl before so I'm trying to just set up something basic: query google.com and write it. This is what I have:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.google.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETUR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node JS - Express JS -- TypeError: Object # has no method 'compile' I created a test code for using node(0.5.7), express(2.3.9) and ejs(1.0). Here is the sample code
core.js
var express = require('express');
var http = require('http');
var ejs = require('ejs');
var app = express.createServer();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting Twitter Follower's names iPhone SDK
Possible Duplicate:
Get twitter Follower in IOS 5
Is there a direct API for just getting followers' names?
I was looking through and found out "friends/ids" will return ids? But, I just want screen_name?
Am I supposed to parse ids first and then send to "users/lookup" t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Return results in Robot Framework keyword? How can I return the results after running a keyword?
Example:
mykey word [Arguments] input
${results}= getme input
But I want to use these results:
${results} = mykey word newinput
A: The Robot Framework user's guide describes how to return a value from a keyword.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: @ validation for email in BlackBerry I am developing a form where the user needs to enter a valid email. He/she will use it as a loginid to play the game.I want to know how can I validate the username containing @, similar to string.contains function. I learnt we can use string.indexOf() but it is not supporting "@"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: pattern matching using regex in groovy I have the below groovy code
import java.util.regex.Matcher;
import java.util.regex.Pattern;
String myInput="License_All (12313)"
String myRegex="\\(\\d+\\)"
String ResultString
Pattern regex
Matcher regexMatcher
regex = Pattern.compile(myRegex, Pattern.DOTALL);
regexMatch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error : An exception occured during a webclient request(FTP) - Powershell 2.0 I tried using this sample i got from a post here like :
I'm using powershell 2.0
$File = "D:\28.csv"
$ftp = "ftp://username:Pwd@IPAddress/in/28.csv"
"ftp url: $ftp"
$webclient = New-Object System.Net.WebClient
$uri = New-Object System.Ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with authenticating Username and password in my midlet I have modified the login in and implemented this instead.
public void login() {
HttpConnection c = null;
InputStream is = null;
StringBuffer str = new StringBuffer();
String url = "http://101.00.00.000/...../... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Removing a line inside a from the DOM When I remove a line from a <pre> tag the rest of the lines below it don't move up like they would if using a standard <div> or any other element.
You can see an example of this at http://jsfiddle.net/NN6LC/
Has anybody encountered this issue before or knows how to resolve th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: System.OutOfMemoryException I'm appending string variable text, after appending a line throws System.OutOfMemoryException?
Can any one explain why it is throwing error.
str+="something Text"
str+="something Text"
and lastly I assign it to a lable text
When I assign the value of str it throws exception.....
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check that installed application is mine? I want to publish a donation stab application (as Minimalistic Text does). As I understand I can check in my main free application that this donation application is installed through PackageManager:
try
{
ApplicationInfo info = getPackageManager()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to obtain HTML-free contents for non-div tags I want to find the HTML-free content of all the tags except for tags inside <div id="nav">
For example, with the following HTML:
<div id="nav">
<h1>Navigate!</h1>
<nav role="navigation">
<h2 class="structural">Main navigation</h2>
<ul>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to set key font size in gnuplot? How to set key(legend) font size in gnuplot?
I read the gnuplot introduction file and find no related configuration about this property. I can set font type and size for labels, tics, but only key can not be set the font?
A: The font for the key can be set in gnuplot 4.4. For e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How can I get tab notifications in chrome extension, so that the extension can show desktop alert each time when new notification arrives Is it possible to read the tab notifications (facebook, twitter, gmail etc shows a notification count) through a google chrome extension. So that I can display an desktop alert wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why use the params keyword? I know this is a basic question, but I couldn't find an answer.
Why use it? if you write a function or a method that's using it, when you remove it the code will still work perfectly, 100% as without it. E.g:
With params:
static public int addTwoEach(params int[] args)
{
int sum = 0;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "361"
} |
Q: How to move Activity to mapActivity in android application I have one application. I need to display map view when we click on button. Actually this button is in one class and google map is in another class. Now when i click on that button , In android Emulator it displays message android application stopped unexpec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Log 4j referencing input I would like to reference input on my log 4j properties file such that when it recieves an input command externally it looks it up on a list and acts accordingly.
This is how it looks like:
log4j.appender.R.File=/home/oracle/conf/ATL_${log_file_name}/ATL_${log_file_name}.dlg
where ${log_fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Readonly textbox for WPF with visible cursor (.NET 3.5) I need my textbox to be read-only. However, when I set the IsReadOnly to true, then the user can no longer interact with the textbox using the keyboard since the cursor no longer appears.
In .NET 4 there is a IsReadOnlyCaretVisible property, however, I am force... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to determine whether T is a value type or reference class in generic? I have a generic method behavior of which depends on T is reference type or value type. It looks so:
T SomeGenericMethod <T> (T obj)
{
if (T is class) //What condition I must write in the brackets?
//to do one stuff
else //if T is a val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: mac os x lion configuration problem with gitosis I'm trying to setup gitosis on my mac mini with mac os x lion (clean install).
Basically a followed this guide
I also looked at this question
If I try to clone the gitosis-admin.git repo i get the following error:
git clone git@127.0.0.1:gitosis-admin.git
Cloning into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: radio buttons and php and thanks in advance for offering your time for reading this.
I am newbie with PHP and i am doing a project for the university.
Until now for adding boolean values i have used checkboxes. For example in my db i have a boolean record called DB_FOR_SALE that i am updating using this piece of co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to combine two NSString? I have the following two NSString:
NSString *latitudeString, *longitudeString;
latitudeString = @"50.1338";
and
longitudeString = @"8.91583";
What I want to obtain is a NSString that looks like this: 50.1338,8.91583.
How do I obtain that?Thanks
IMPORTANT: The values I showed are only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to monitor a group of twitter accounts Here's what I'm trying to do. I have a list of twitter users (2-3000) whose tweets I need to monitor for keywords.
I thought of two solutions to implement that but don't think any is optimal.
1- Create a private list on twitter, add all the accounts i want to monitor and us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.Management.ManagementClass.GetInstances() throws exception On different machines, we see different exceptions.
One machine reports
System.Runtime.InteropServices.COMException (The RPC server is
unavailable. (Exception from HRESULT: 0x800706BA))
Another reports
System.BadImageFormatException ( An attemp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Django: configuring multiple domains for a website? how can i manage in django multiple domains? Our website will be configured like this
jobs.site.com
cars.site.com
homes.site.com
jobs.site.co.uk
cars.site.co.uk
....
and so on. basically, we will have three third level domains (jobs,cars,homes) and some country sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to disable data connections(3g/gprs) on android
Possible Duplicate:
How to disable Mobile Data on Android
I know that this is possible in version 2.2 and below but since 2.3 it is not possible, unless you have a application that has a certificate supplied by google that specifies it as a secure application or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create database in Android without context? I know how to create database with context,but how to create it without context?
It's fine Like this:
SQLiteDatabase db = SQLiteDatabase.create(null);
but it creates a database in memory while I need create the database in file.
So I use
SQLiteDatabase.openOrCreat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split Result from SQL Query For example this SQL statement returns 1k rows
SELECT * FROM tableName WHERE someCondition
my question is: is it possible by using WHERE
1) Split Resultset to the 10 partial resultsets, then
*
*1st. would be returns 0% - 10%,
*2nd. 10% - 20%,
*etc..
2) cuts range between 50 - 150... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Django Try Except Not Working I have this code,
try:
print "what"
newClassName = CourseNameAndCodeAssociation.objects.get(departmentCode__iexact = nameAndNumberStore[0])
print newClassName
except:
print "HAHA"
This always prints "HAHA", despite the fact that I've r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regular expression - only digits, dots,commas and first character should be $ I would like to have a regex for the following expression
$123,456,789
$1.23
$123
what i have done so far is if use enter 123456789 i will convert this to dollar format as follows $123,456,789.00
But i would like to valid the above values... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Local variable or a pointer Given a class in a any random C++ framework, how do you know if you have to create a simple object on stack or a pointer to an object on heap?
Assume a function which accepts argument in the form of a reference(&) variable. The caller can pass a local variable to it or a pointer too(*ptr)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where to place Unix Domain (AF_UNIX) sockets' end points (files)? Is there a convention where to place the 'files' representing the end points to Unix Domain Sockets?
I tend to put them to /tmp/some-application-specific-subdir-name/, but I wonder if there is a more common place.
The background is, that POSIX is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: XSD date types with minOccurs set to 0 now has a value of "Forgive me in advance if I don't provide enough information, this is an issue I am seeing and tasked with fixing but I did not personally write this code originally (the person who did has moved on).
We are using Apache XMLBeans to generate some Java classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LinkedIn auth request page in iFrame? Has anyone any experience with LinkedIn? I'm trying to put their auth request (the allow this application to access my...) page in an iFrame and load it into my page.
However, immediately after loading - it reloads itself into the entire window. Does anyone know if this is delib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Float comparison gives different results Look at the following two codes, and tell me the reason why answers vary a lot.
#include<stdio.h>
int main() {
float a = 0.9;
if(a<0.9)
printf("hi"); // This will be the answer
else
printf("bye");
return 0;
}
And if we change 0.9 to 0.8, then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Existing engine for bouncing balls? I'm looking at creating a game which involves many bouncing balls on the screen, and the user can sortof select one of those balls and take it out...
The balls should be able to bounce of eachother and the walls.
I've tried implementing this from scratch, following the tutorials a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get random object from Array I want to get random object from array, is there any way how can I find random object from mutable array?
A: id obj;
int r = arc4random() % [yourArray count];
if(r<[yourArray count])
obj=[yourArray objectAtIndex:r];
else
{
//error message
}
A: id randomObje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Javascript - Can't determine if JSON object contains true I have a JSON object I'm retrieving from a server, sometimes its really simple such as:
{ "urls": ["http://google.com", "http://bing.com"] }
However I need to check if urls['tasks']['ipv6'] contains true, the code I'm using is:
if (urls['tasks']['ipv6'] ===... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking a list of objects against another list of objects I have a user profile that contains a manytomany field which points to a set of favorite objects.
I have a queryset that returns an set of those types of objects, independent of the favorites (though it may contain favorites).
What I want to do is this:
{% ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how can i use local storage for storing values of multiple variables? How can i use local storage for storing values of multiple variables ? is there any limit for local storage. which all browsers currently support local storage ?
A: Here is a good discussion regarding HTML5 Local storage limits
HTML5 localStorage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UTF-8 not supported message from logging subsystem, Fuse ESB 4.4 I've upgraded my ServiceMix to Fuse ESB 4.4 compilation. I got, however, errors from logging system, which I can't find how to handle.
The error message is:
Warning: encoding "UTF-8" not supported, using UTF-8
The encoding UTF-8 is NOT used. Files are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: simple object-oriented JavaScript example I'm learning OO JavaScript (again). I've written this simple object
function circle(){
this.radius = 4;
}
circle.prototype.area = function(){
this.radius * this.radius * 3.14;
};
var c = new circle();
c.area();
The value returned by c.area() is undefined. I guess this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: css() function call failing silently? I am having a strange problem with the css() function. Here's my code snippet.
console.log('' + $(this).css('left') + ':' + $(this).css('top'));
console.log('Desired position - ' + return_to_left + ':' + return_to_top);
$(this).css('top', return_to_top + 'px');
$(this).css('left... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically adding input controls with validators to a view I have a registration page, which asks for some data from the user, e.g. email address. Administrators should be able to customize the form. For example, he may be interested in the birthplace of the user, in which case an additional textbox should appear i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Performing CUDA in LabVIEW I want to perform CUDA operation in LabVIEW to transfer multiple files in GPU in parallel and then perform arithmetic operations on GPU and then save the data in new file. I learnt that in order to perform operations in GPU, we need to create a DLL file and then import it to LabVIEW but I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to map multiple OBJECTS to one object using AutoMapper - asp.net mvc 3 Hi All / very new to Auto-Mapper. i can map one to one objects but was wondering is it possible to map multiple objects to one object or multiple objects to multiple objects?
consider i have a following scenario...
User Model
public class U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Content Based Routing in Apache HTTP Server I am have a requirement wherein I need to route between two platforms based on the element value of the incoming xml requests.
If the text for the element is like: <name>Websphere</name> then I need to route the message to host1.
If the text for the element is like: <name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Embedded FTP Server I'm searching a library which allows me to embed a FTP Server in a C# application.
I've only very basic needs:
*
*Have the possibility to have at least one user/password
*Have an event on which I can register when someone has sent a file
*Need to configure the port/directory
*I need it t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing complex XML in PHP5 Hello this is my first post.
i'm trying to parse an xml using php, but i'm stuck with it
example of my xml :
<xml xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>
<s:Schema id='RowsetSchema'>
<s:ElementT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How i can use the SQLDATE in codeigniter php? Can you explain below line? pls give some example.
strtotime(SQLDATE." +1 month")
A: This is not specific to CodeIgniter, it's a generic PHP function:
From the docs:
The function expects to be given a string containing an English date format and will try to parse that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Add weighted average line to flot point chart? I have a scatter (point) chart in jQuery's Flot.
I'd like to add a weighted average line to the point chart, as you can do in Excel charts. (Or a logarithmic or similar "line of best fit" would be acceptable, actually.)
Is this possible in Flot?
I can't see anything ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Please explain Zeromq eventloop How is different from multiplexing several sockets via a POLLIN?
while True:
socks = dict(poller.poll())
if socks.get(control_receiver) == zmq.POLLIN:
...
if socks.get(work_receiver) == zmq.POLLIN:
...
How can it make listener threads more reliable and e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generics using constructor with overload?
Possible Duplicate:
Generics constructor with parameter constraint?
In my venture into Generics, I've now come to a dead end where I hope someone can point me to the hidden door :-)
Given this type
type
TMyClass = class
private
FMyString: String;
FMyStringList... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to overcome endless problems with web.config when working with team? I'm in a team of people working from various places and on different machines. Everyone has it's own connection string, nhibernate setting (schema etc.) and wcf endpoints.
What drives me crazy is that every now and then when someone adds new ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to set HTTP proxy in ChromeDriver of Selenium 2? how do I set a HTTP proxy for Selenium 2's ChromeDriver in Java? I know how to do it for the FirefoxDriver using a FirefoxProfile, but there doesn't seem to be a ChromeProfile.
A: You could simply set the chrome proxy prefs at the chrome level. Unlike the firefox... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - Post Video with additional data to the server I would like to ask you how to upload video to the server with additional data (Multipart)
For example :
The user should send his name, Email, Phone number and video from gallery.....
Thank you..
A: Try this
Upload video from Android to server?
http://vikaska... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tomcat, open a socket - doesn't work My web-app needs to talk to a device in my local network via a soket. I am trying to open a ServerSocket on port > 45000 and listen to it for incoming connections. The class that implements this worked perfectly well while i was developing it and running it as a stand-alone thing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I achieve a better performance of my website Hy there!
I'm running IIS7 on a Windows 2008 server.
On peek times we have following behaviour:
*
*CPU load is near idle
*Requests get queued (monitored with Resource Monitor)
*Exeuction time gets over 10sec
1-4) Please see previous versions and edits
5) Doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SimpleXML works on emulator, not on Android device I'm using Simple 2.6.1 on an Android project for serialize some complex xml files. I use Eclipse and followed the procedure described on the project site (Simple XML in Android 1.5 and Up):
1) created the "libs" folder on the project root
2) put simple-xml-2.6.1.jar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extjs4 iconCls can't display in symfony I have a project which use Extjs4 and symfony.
I put extJS source code in symonfy's web/js folder and web/css.
So i can load extjs like :
<?php
use_stylesheet('ext/resources/css/ext-all.css');
?>
I created a formpanel and config the iconCls: 'icon-add' but it doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically set PIN/Password used to unlock device Our software allows the users to lock their Windows mobile 6 devices using the following API call.
[DllImport("aygshell.dll")]
public static extern int SHDeviceLockAndPrompt();
When deploying our software our client would like to be able to set a unive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to zoom background together with graph using JUNG? It's easy to zoom in/out graph using GraphZoomScrollPane in JUNG. However, I cannot make the graph background image zooming together with the graph itself. How to do it?
A: If I can understand you correctly, try to see JUNG's StaticLayout example in WorldMapGra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to translate one language to another using java programming in my project, there is a content section. where user can view contents in four diff languages. Is there any way, that i put contents in one language, and according to user's choice my java program translate it to the selected language and now user can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make delivery task plan/schedule based on individual task estimates I am wondering, how "real" work day (7-8 hours) relates to "engineer hours" term used in estimation of the time necessary for completion of some task. I think that estimated effort in EH (if correctly estimated) cannot be simply translated in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: problem with break while using it to break nested loops in php When I execute this code:
$result = mysql_query("SELECT * FROM example_table");
$i = 0;
while ($row = mysql_fetch_array($result))
{
for ($j = 0; $j < $c; $j++)
{
if ($db_array[$j]['ID'] == $row['id'])
{
$del_counter =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .htaccess : what is wrong with this rule? may you please tell me where is my fault ?
RewriteRule ^project/([^.]+)/$ /wordpress/wp-content/plugins/pr/cp.php?id=$1 [QSA,L]
i get Internal Server Error everytime i apply it
Thank you
EDIT
127.0.0.1/wordpress/project/43928fdsf
redirects to
127.0.0.1/wordpress/wp-content/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create Folders and rules in exchange server 2003 I would like to know How to Create Folders and rules in exchange server 2003 as i am using webdav code in c#. I have tried with few examples but not able to get it.
A: To create a folder, just issue a MKCOL request on the target url.
This is a small sample (withouth ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extracting HTTP link(http://) for the string in VB.NET I have the following column values in my table
Sample values:
*
*Check out ABC Group Blog post about XYZ Today! http://blog.saedg.org/
*'Join ABC in urging the county to help create new jobs and economic opportunities for XYZCounty. http://starabcnet.com/new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a node value with XmlPullParser Im trying to get values from an XML with the XmlPullParser but can't reach the values I want.
The XML-structure is similar to the Android Strings.xml:
<string name="value"> 1 </string>
I can get "string", "name" & "value" from the XML but can't reach the actual value "1". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: eclipse plugin handler to invoke jax-ws webservice i have a jax-ws "hello world service" running in my tomcat.i am working on designing a eclipse plugin to invoke the web service.could anyone please guide me doing so.
A: you could start reading this tutorial: it's a comprehensive tutorial about developing eclipse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: group by join and aggregate (linq) I have a problem with a LINQ query and don't know how to solve it :/
I've got two tables. One is with attributes and the second are rows from attributes, but I need to sum hours from rows and get it to attributes; can't explain it very well ;) Here is my query that I tried to creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can i write a byte array to a file using a SaveFileDialog? Basically I have have a program that creates an array of bytes (manually entered via a richtextbox and I want to be able to create a new file and save the bytes in that file via a SaveFileDialog() method.
The code I have come up with is:
byte[] bytes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get month range from a given date range For example if i give the startdate as 15-mar-2009 and enddate as 15-mar-2010, I want to get the date range as given below,
Start Date End Date
15-mar-2009 15-Apr-2009
15-apr-2009 15-may-2009
...
15-mar-2010 15-apr-2010
Can anyone please help me i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Chrome to accept self-signed localhost certificate I have created a self-signed SSL certificate for the localhost CN. Firefox accepts this certificate after initially complaining about it, as expected. Chrome and IE, however, refuse to accept it, even after adding the certificate to the system certificate st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1663"
} |
Q: Linq vb.net: Find Item in DataRow[] gefundeneID = drTerminal.AsEnumerable().Single(Function(s) s("TerminalID") = RandomID)
Have an array of DataRow and want to look if the RandomID is in one of the rows.
What's wrong with this code?
EDIT:
Got this error: The operator = isn't defined for DBNull and Integer
A: Appar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java listening for http messages I have a java program that can ask client programs questions. I would like to add functionality by embedding the questions I might ask into a hyperlink so that they can be asked by clicking on that link (i.e. main use in powerpoint slides).
The generated link might look something li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create Bookmarklet for my website which requires user authentication I want to create a bookmarklet for my website. I just want to do same as Readitlater or as delicious.
Whenever you click on Read It Later or save on delicious bookmarklet if user is not logged in, it asks user to login to continue & then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with jquery and ajax I have two functions:
$(function() {
$(".deactivated").click(function() {
var Container = $(this).parent();
var id = $(this).attr("id");
var string = 'id='+ id ;
$.ajax({
url: "<?php echo site_ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why comparing 2 strings doesn't give desired result? Below is the code I've come up with and in all honesty tonight is my first attempt at coding at all. However I cannot seem to get my if statement to work properly. It just simply jumps to else even if I type Westley or westley or (space)Westley.
I want the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: eclipse rcp : custom drawing on composite which has a FillLayout not work I am trying to add a PaintListener to draw a top border on a Composite :
pageComposite.addPaintListener(new PaintListener(){
@Override
public void paintControl(PaintEvent e) {
e.gc.setForeground(SWTResou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I set the tab order for multiple controls in XAML Do I have to manually set the TabIndex property of each control on my page, or is there a way I can select multiple controls and get either Expression Blend or Visual Studio to apply the tab index in the order I selected them.
I know this is a feature of othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check whether a method exists in Python? In the function __getattr__(), if a referred variable is not found then it gives an error. How can I check to see if a variable or method exists as part of an object?
import string
import logging
class Dynamo:
def __init__(self,x):
print "In Init def"
self.x=x
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: Git: set branch to current ref Due to the use of submodules in my projects I'm finding myself often on "(no branch)". As I'm also adding code to those submodules I'm committing in there. When I then want to push those submodules I need to be on a branch of course. Hence my question:
Is there a way/shortcut in git (c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Respond with video file from local disk I'm trying to create controllers action that responds with local video file that is outside of the applications public directory. What I have now is
def video
render :text => File.read('D:/test.mp4'), :content_type => 'video/mp4'
end
browser recognizes that it should threat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Evaluate a JQUERY statement I use this kind of script to evaluate my javascript code that is injected in the DOM
function wilEval(source) {
if ('function' == typeof source) {
source = '(' + source + ')();'
}
var script = document.createElement('script');
script.setAttribute("type", "text/javascript");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSOperationQueue problem with 1 maxConcurrentOperations I am confused and need your support.
I am implementing synchron http requests in separate thread and therefore I want to
use NSOperationQueue .
But there is a one problem connected with following:
When current request failed,I am going to do another recovery re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add an Apache POI WorkBook as attachment to a Javamail's MimeMessage without writing in the filesystem I'm trying to figure out how to pass a WorkBook (from the Apache POI library) "directly" to a MimeMessage object (from the Javamail library) as an attachment, without having to write it directly in the filesystem.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Jquery, Add png data into src attr~ in php file,
...
...
header('Content-type: image/png');
imagepng($image1);
in html using jquery,(after loading, insert the image data)
$(document).ready(function(){
$.ajax({
"url": 'righturl/thephp.php',
"type": 'POST',
"data": {},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Causes for crash during garbage collection I've been struggling now for some time with a crash in a C# application that also uses a fair share of C++/CLI modules that are mostly wrappers around native libraries to access device drivers.
The crash is not always easily reproducible but I was able to collect half a doz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Python app crashes when emit signal from callback I use my c++ library from python application with QT. It uses callback to communicate with UI.
My library is 'ts'. The problem is that my program crashes sometimes.
As I understood it crashes when call to emit(), but it happens rarely.
The simplified version of my pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento Cron Tab Job Time zone Im trying to figure out if my module cron is running at the correct time.
The cron for my module is set at 1am (0 1 * * *), the time zone of the default store is Western Europe (Paris, Berlin etc GMT +2), the server time is EDT (Eastern Daylight Time).
So on which time zone is the 1am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Restrict density in API 7 How can I restrict density in Manifest in early version than API 9. As I know since this API there is a tag
<compatible-screens>
<screen android:screenSize=["small" | "normal" | "large" | "xlarge"]
android:screenDensity=["ldpi" | "mdpi" | "hdpi" | "xhdpi"] />
...
</comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Omniture SiteCatalyst WATS addon I have a Flex Application, and I need to track site catalyst data with Omniture site-catalyst.
For testing the data, I am using WATS addon on ForeFox. All is going very fine, except to get site data in Report Suite History Panel of WATS addon, which available on bottom of this addon.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change the content of fieldset html tag (or div, or whatever tag) dynamically. I'm creating a "Settings" web-page for a project (using asp.net framework 3.5 under VS 2010).
There is 2 fieldsets on the page:
the first) as menu with buttons that are named "Configuration", "Data output formats", etc
the second) for sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Like button causing error in Firefox I'm trying to use the Facebook 'Like' button on my site, but I cannot get it to work properly in Firefox. Using Firebug I can see that I am getting the error 'FB.provide is not a function', but I have no idea how to fix this.
It also appears that when I refresh the page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7580595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.