text stringlengths 8 267k | meta dict |
|---|---|
Q: delete shared preference data when i install same application means overriding application i use shared preference for saving data but when i install same application then my shared preference data not delete it remains as it is so how to delete shared preference data when i install same application without uninstal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scaling rounded images using CSS3 and animate() I'm trying to create a scale functionality for certain images when they are hovered, while maintaining a rounded image effect using CSS3. See code below:
$(".nodes a").hover(function() {
if (!$(this).hasClass('inactive')) {
$(this).css({'z-index' : '99'});
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to block php errors to be logged in codeigniter How to block the php errors like Severity: Notice —> Undefined variable
to be get logged in codeigniter , even by keeping the log threshold level at 3 at config settings.
this scenario occurs due to that all variables are not getting used each and every time.
thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Threads/Sockets limits in Linux First of all: sorry for my english.
Guys, I have a trouble with POSIX sockets and/or pthreads. I'm developing on embedded device(ARM9 CPU). On the device will work multithread tcp server. And it will be able to process a lot of incoming connections. Server gets connection from client ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Each element height if higher then function Good day, I'm trying to figure out how to do small thing.
I have several elements on page that needs to checked on height and if height is higher, for example > 100, then I need to call function for them.
So far I came up to this:
var filterHeight = $('div.class').height()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get subscribers UID of a user through Graph API A few weeks ago Facebook allowed to subscribe a user. Can we access the UID of these subscribers for one user through the Graph API or FQL?
A: Obviously the graph API path should be:
https://graph.facebook.com/_UID_/subscribers
the path is valid, not documented ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What 'possible data inconsistency' is entity framework worried about in a 'foreign key participating in multiple relationships' situation? Suppose the following database schema:
Table A: AId (PK)
Table B: BId (PK)
Table C: CId (PK)
Table AB: AId, BId (composite PK, FKs to A and B), Data
Table BC: BId, CId (compo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microdata itemprop causes W3C validator error After adding Microdata to my pages, I got many errors from W3C validator complaining the itemprop:
there is no attribute "itemprop"
From code like this:
<p itemprop="description">...</p>
This is my DOCTYPE and html tag
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MAC address randomly changes when bringing interface up Every time I start my network interface, I get a different MAC address! If I try to force the MAC address value using
ifconfig usb0 hw ether AA:BB:DD..:FF
it will be again different after issuing
ifconfig usb0 up
What make this MAC address change? How can I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using maxcpucount to parallelise unit testing in msbuild? In a particular SOA-styled application I'm working on we have a large number of unit tests in each service. The tests for each service run serially, and I want to test running the tests for each service in parallel.
In our msbuild file is the following:
<Targ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java :Can I observe value change on object by watching hashcode? I have a Model class DOModel :
package amarsoft.dbmp.credit.web.model;
import ejp.annotations.ConcreteTableInheritance;
import amarsoft.rcp.base.databinding.BindableModel;
@ConcreteTableInheritance
public class DOModel extends BindableModel {
/**... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working directory issue when importing msbuild file in another msbuild file I am trying to specify some additional targets/tasks to an msbuild file by extending an existing msbuild file (a web applicartion .csproj file). The idea is to put configuration specific tasks in this "extended ms build file" and use this fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read Text and Image Locations (x.y coordinates) using PDFBox I am doing a java program to read encrypted PDF files and extract the contents of the file page by page including the text, images and their positions(x,y coordinates) in the file. Now I'm using PDFBox for this purpose and I'm getting the text and images. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Replication master-slave in MySQL having more tables on the slave Question to database specialists:
is it possible to make replication master-slave in MySQL having more tables on the slave? I know only about different table definitions
http://dev.mysql.com/doc/refman/5.1/en/replication-features-differing-tables.htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GTK: how to get width and height of GTK_ICON_SIZE_BUTTON etc? I need to add my own images into GTK Icon Theme, so i need to somehow figure the size in pixels GTK uses to display icons of different predefined sizes: GTK_ICON_SIZE_BUTTON, GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_DIALOG etc. GTK manual states that sizes are a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drag and drop in preferences (reordering of items) I have few items like this
<ListPreference android:key="key1"
android:title="@string/title"
android:entries="@array/asd"
android:entryValues="@array/asd1"
android:defaultValue="109" android:dialogTitle="title"
android:negativeButtonText="@string/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Deploy EJB2 on Weblogic 10.3 I try to deploy ejb2 on weblogic 10.3 but I face a problem the deployed ear can't see new methods added to any ejb session bean. I added the method to remote interface and I added the implementation to bean class. I hope anyone can help. Thanks
A: I believe WebLogic 10.3 supports EJB3, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: add multiple languages to tinymce in asp.net? In our project we used tinymce from creating moxiecode tinymce dll.
I added fr.xml and fr.js files to related langs folder in tinymce folder.
And modified code like below in Language.aspx page which is in langs folder of imagemanager plugin in tinymce folder. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete reference of image file? I have used test images for my developing process and now I want to change my test images to another images. so I deleted the whole test image folder and change to new folder. But it still shows old images. How do I remove these reference from old images and use new images?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP load all extension dlls Would there be a performance hit if I loaded a large number of extensions compared with one or two extensions?
I'm using PHP 5.3.8 on IIS 6/FastCGI and if it makes a difference WinCache for PHP.
A: You'll find that there won't be any noticeable performance hit. On our shared hosting plat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Checking if the array has, for example, three values How would I check if an array(with three values) that was passed to a function from another file has all three values?
For example I want to get an error if someone puts in $ids=Api_Books_Book::getTest(array(1,2,)); (There is no value on the the third key/index)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Re: java.lang.OutOfMemoryError: requested 32756 bytes for ChunkP I have been working on java project functionality enhancements. After complete the project I can deploy this into production server. But I am getting this error in the log file while accessing the application in production. Am using tomcat 7, jdk 6upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android / XMPP: presence listener ignores/drops UNAVAILABLE presences I'm trying to establish a simple xmpp group chat on Android using the smack/asmack xmpp library. And basically everything is working, except: UNAVAILABLE presences, i.e., when a user leaves a chat room, seem to be ignored. Presences from users ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP Heredoc string rules Can someone here explore the intricacies of using heredoc in PHP using example PHP code snippets, based on what the manual says below?
The php.net manual says:
It is very important to note that the line with the closing identifier must contain no other characters, except possibly a semicolo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Page Jumping - Can't stop it I'm making mock ups for a flash app using HTML pages - I'm using HTML pages to demonstrate it inside a browser, plus it looks better pixel for pixel, and I'm using jQuery for rich animations on some pages.
I'm using normal <a> tags for my buttons which navigate through the HTML pages.
Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't read tables from firefox using Java sqlite jdbc I'm using the following code to connect and read moz_bookmarks from Java
String connection = "jdbc:sqlite:/" + Tracking.FILES_LOCATION + "places.sqlite";
Connection conn1 = DriverManager.getConnection("jdbc:sqlite:path_to_places.sqlite/");
Statement stat = con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make FastCodePatch work in Delphi XE2 Win64 platform? Unit FastCodePatch.pas works in Win32 platform. Delphi XE2 supports Win64 platform, any ideas how to make FastCodePatch works in Win64 platform?
unit FastcodePatch;
interface
function FastcodeGetAddress(AStub: Pointer): Pointer;
procedure FastcodeAddres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Can't add a HOME email has been specified yet to an existing ANDROID contacs I have a proplem when I make a app "contacts manager" for android.
I have processed creating and deleting a contact with name, and phone
but when I want to add more a home email info to an existing contacts but can't do that.
here my code:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatically find and change html on pages in my Plone site I want to search for all documents inside a fairly large Plone site that contain a specific snippet of html in the body (list items with headings inside them, urgh ...) and then change that html (drop the headings).
Pointers on how to do that are much ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: automatic method running on load with singleton javascript class I have a javascript class defined like this:
myClass = {
var1:0,
var2:0,
initVars: function() {},
method1: function() {},
method2: function() {}
}
Now this class is instantly instantiated upon load. ( I believe ) and there is only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to catch Ctrl+C on Windows and Linux with Qt I have Qt console server application. I wish when somebody presses Ctrl+C to quit my server correctly (calling destructors, etc.). I've read this, however I want this to work on both Linux and Windows. How to do it?
A: I use this class to catch signals in C++ console... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: gotoxy function with C ( linux/unix ) I am making a terminal software like GNU MC and I need gotoxy foo, but it has to be in C. It can be in macro or in C, but not in ASM code because I don`t know ASM. Any bit operators can be used too, but I had no idea how to pseudocode it or how to start doing this. Any advice wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Select the fields are duplicated in mysql Assuming that I have the below customer_offer table.
My question is:
How to select all the rows where the key(s) are duplicated in that table?
+---------+-------------+------------+----------+--------+---------------------+
| link_id | customer_id | partner_id | offer_id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with memory deallocation for non-dynamically created std::vectors storing normal (i.e. non-dynamically allocated) data Consider the following code, compiled with g++ problem.cpp -o problem:
#include <vector>
using namespace std;
int main()
{
while(1){}
return 0;
}
When this code is executed, the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EF 4.1 - DBContext SqlQuery and Include I want to execute a raw sql using DBContext SqlQuery and then include related entites. I've tried the following but it doesn't load the related entities:
string sql = "Select * from client where id in (select id from activeclient)";
var list = DbContext.Database.SqlQuery<Clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Adding live functionality to dynamically added element in jQuery I make an element in jQuery plugin:
this.addButton = $("<a>", {
text: "ADD",
"class": "addButton"
}).appendTo(this.element);
Then i add live functionality:
this.addButton.live("click", function() {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Low quality image after resizing Hello i'm using this function in order to resize/upload an image . There's any quick adjustment i could make in order to improve the resized image quality without changing the full function?
FileUpload FileUpload1 =(FileUpload)ListView1.InsertItem.FindControl("FileUpload1");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Invoking WCF no parameter method from Biztalk orchestration I'm new at Biztalk, I've been making some tutorials, now I have an issue I don`t' find the solution but think is kind of easy
I have a WCF Service method with no parameters that returns an XML file.
I want to call this method from biztalk orchestration, I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java - get element position in array I'm familiar with the ways I can get an element position in array, especially the ones showed here: Element position in array
But my problem is I can't figure out how to convert this code to fit my needs.
What I want to check is if a String has a match in an ArrayList and if so, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a simpler way to write the following cucumber test? I'm usisng cucmber to test a php app and it's working quite well actually.
I have a cucmber feature that uses the following step to check for the presence of a link in a page:
Then /^I should see a link that contains "(.+)"$/ do |link|
assert !!(respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Text scrolls outside of UITextView object I have some text in a UITextView object. The issue I'm having is that the text scrolls outside of the UITextField box. How would I go about fixing this?
thanks for any help
textBG.contentInset = UIEdgeInsetsZero;
where 'textBG' is the name of my UITextView
A: USE this in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC 3 refresh changes made to page doesnt work I am starting to learn MVC 3 (Razor engine) and I am having difficulty understanding why my changes don't get applied to page. Basically I have done this: I have imported my DAL and model projects, I have created one controller and one view (in their respective folders)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement fingure print as password for the screen in iphone Is there any way to implement fingerprint as password for the screen in iPhone?
IS it possible?
A: No, the iPhone screen can't read fingerprints. Try a retinal scanner using the camera and flash instead :)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7581384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add Jquery Mobile effects to dynamically added elements? While working with Jquery Mobile I am facing a strange issue. Jquery Mobile adds some default classes and css to every element based upon data-role etc. when i create new elements normal css get applied to all the new generated elements , but not Jquery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: URI-specific ExceptionMapper in JAX-RS I'm using Jersey, and Guice as my IOC-container. I'd like to know if it is possible to associate an ExceptionMapper with a specific URI. The reason for this is that I want to map the same exception differently based on what URI was visited. For example, suppose I've got the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Dynamically generate unevaluated expressions to create lagged data.frame? I have data.frame Z and I would like to select only a couple of variables stored in the character vector vars. This of course can easily be done by:
Z[,vars]
The problem is that I need als the lags 1 and 4 of these variables. I use lag(varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java iterate map from a certain index I have a map created from a json string that is sorted in the order I need to parse in.
If there is a key at index 6 (7th key), I want to be able to iterate from this key to the end of the map and do what processing I need with these key/value pairs.
Is there anyway to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Vaadin Compile widgets(addons) I need some help compiling the widgets of my vaadin project. I have downloaded an addon (FormSender) , because it an client-side component i have to Compile my wingets, when i click the Vaadin widgets compile button in eclipse, i get the following message :
Compiling widgetset com.exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Including a header file from another directory I have a main directory A with two sub directories B and C.
Directory B contains a header file structures.c:
#ifndef __STRUCTURES_H
#define __STRUCTURES_H
typedef struct __stud_ent__
{
char name[20];
int roll_num;
}stud;
#endif
Directory C contains main.c code:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Have eclipse "quick diff" reference source on a per project basis? I'm using Eclipse Indigo and was wondering if I can configure Quick diff, especially the Reference source, on a per project basis?
Not all of my projects use SVN or GIT, etc. and so I've to switch several times.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7581412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Intellij / Grails development what to set to avoid PermGen errors? i am using IntelliJ to develop Grails application but as our application grows i am hitting the Permgen errors when using the Tomcat plugin. I have tried several combination in settings permgen size but they seem not to have any effect.
Any solution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql .net update stored procedure cannot be found i am using mysql with .net framework 4.0 . i have stored procedures in my database. my stored procedure calling is:
public DataTable addProductMenu(int myid, string itemname)
{
MySqlConnection connection = new MySqlConnection(connectionString);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why this local variable can keep its value in the function
Possible Duplicate:
“Least Astonishment” in Python: The Mutable Default Argument
I recently met a problem in Python.
Code:
def f(a, L=[]):
L.append(a)
return L
print f(1)
print f(2)
print f(3)
the output would be
[1]
[1, 2]
[1, 2, 3]
but why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MPMoviePlayerController : orientation problem finally I have to post my problem here. Yes it could be duplicate question here as I have referred many answers regarding to this question.But I could not find any fix. (Also didn't find any question regarding to tab-bar app specific so...) And I don't want to use MPMovi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is setting multiple variables in 1 line valid in javascript? (var x=y='value';) This is valid in php:
$x=$y='value';
This will in esscence set both $x and $y to 'value'.
Is this valid in javascript?
var x=y='value';
I have tested it in chrome console and it worked as expected, but just wanted to double check befor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: cs0030:Unable to generate a temporary class I have a Web Service, when I try to generate the object of it I am getting below error.
"Unable to generate a temporary class (result=1).error CS0030: Cannot convert type 'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment[]' to 'ShortSell.ShortSellRQOriginDes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Visual studio 2010: limiting the number of editor tabs Visual studio doesn't appear to limit the number of opened editor tabs.
I'm using ReSharper and at a certain number of opened editor tabs things get really slow. So I have to keep track of opened tabs and periodically close old ones.
It would be cool if I could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android MediaPlayer custom control panel hide I have created a custom control panel for a video player. Now I want to give a effect like default MediaController where the panel becomes visible when the screen is touched and it becomes invisible again after the last touch time. I can use this type of code for that.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Process reuse - async BeginOutputReadLine problem I've encountered an interesting problem.
C# allows reusing process resource (according to MSDN) - so I call instance Start() method after process is finished:
Process p = new Process();
// init
p.Start();
And some time later:
p.Kill();
// not important
p.Start();
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cross domain xml read I want to get xml data from the foreign domain using ajax,But without using Proxi.
Is there any way to get xml data using ajax. Actually I want to do something like this:
enter code here
jQuery.getScript("http://m.jbv.no/mobile/stopmonitoring/xml/OSL",function(data, textStatus){
console.log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: image uploading is not working in php I am working on image uploader in cakephp. I have used this link "http://www.jquery4u.com/tutorials/thumbnail-image-upload-ajaxphp/#comment-10823" to display thumb images when user clicks the browse button . Everything is working fine in fire fox but not working in other browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NodeJS and Mongoose with Mongodb sharding issue I have been using NodeJS, MongooseJS with Mongodb. It is throwing the following error when i try to insert an record in mongodb using mongooseJS
"MongoError: right object doesn't have full shard key"
FYI: MongoDB Table having shard key
Please tell me how to resolve th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting Same Request.UrlReferrer I have one page Result.aspx.this is main page of my website.
There are many images of proudcts in this pages.
When i click on image of product, it is redirected to DetailResult.aspx
Image Code is here:
<td>
<a href="<%#Eval("DetailsURL")%>">
<asp:Image runat="server" ID="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rhodes or Titanium for Rails app in iphone? Hi i wanted to develop an iphone app with Ruby..
Is Rhodes or Titanium the best option?
i need to integrate GPS and google maps
A: Rhodes is the only way to actually write a mobile app in Ruby. It is not possible to do so with Titanium or any other framework. Rhodes (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how can i get set integer, string value from my Enum in Java? How can i pre-define any types of values in the Enum?
public enum Hardware
{
USB2(0) = "external low speed",
PCI(1) = "embedded",
USB3(2) = "external high speed
}
System.out.println( Hardware.USB2 ) // show me external low speed
A: You can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FOP failing to use data when used with JAXB I'm generating a document using FOP (0.95) by passing a source XML file created using JAXB (2.2.13), when I run it I get a virtually empty PDF (it looks like I'd expect if no data was supplied in the source XML) and the only log output is:
DEBUG [FOP] target-resolution set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how can i connect my blackberry app to my website rest API? I am trying to build my first app for blackberry mobile's but i am new @ mobile development and i am cant find the correct way to connect my app with my webiste rest API can anyone guide me where to start from?
Thanx in advance :D
A: HttpConnection con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wordpress simple google map I am use SGM plugin for wordpress and there are grey stripes
This is example from http://clarknikdelpowell.com/wordpress/simple-google-map/
[SGM lat="28.022827" lng="-81.73127" zoom="14" type="TERRAIN" directionsto="62 4th St NW, Winter Haven, FL 33881" content="Clark/Nikdel/Powell, Inc.6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twitter4J: Get more than 1 tweet from a user I'm trying to get a list of recent statuses from each user on a persons list of followers. I've got the following to get the users...
IDs list = twitter.getFriendsIDs(0);
for(long ID : list.getIDs()){
twitter4j.User TW_user = twitter.showUser(ID);
}
All I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can pickerview have date component to it? I need to add a date component to my PickerView. Any ideas on how to get the date component? One way is to manually maintain all the date related info, take current date add and subtract to get the reqd dates, but this is very tedious, any other methods?
EDIT:I have not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making HTTP POST request in Qt with Meego 1.2 Harmattan Here's the situation - I attach some file (JPEG image) to the HTTP POST request so it should be sent to the local server via Wi-Fi and server should return some result (simple text).
Here's the problem I faced doing this in my Qt-application for Nokia N9 (Meego... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: atebits Twitter fast scrolling I'm looking to implement the same technique used by atebits in the Twitter app to achieve very fast UITableView scrolling,
http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/
But, due to Tweetie being purchased by Twitter, atebits has ceased to exist and the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Resolving first time exception I am working on the nop ecommerce website, When i try to run the project, i am getting a continuous series of exceptions in the debug section of visual studio 2010 and the browser doesnt shows the website, on the bottom left of the browser , it displays waiting for localhost.
The excep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: A tooltip or something similar move with cursor in WPF Is it possible to move a Tooltip or something like that with cursor when mouse goes on a specific control?
I tried TextBlock, but Margin property not work.
private TextBlock tooltip = new TextBlock();
private void imgRoom_MouseEnter(object sender, MouseE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using redis with node.js (express) I am learning node.js (and express framework) & here is a basic newbie question about redis & node.js. How to pass redis data to templates? What should I correct in my script, so I could display the value of teststring in a template?
app.get('/', function(req, res){
res.render('i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why 3 rows deleted sql query puzzle? can anybody tell me the technical reason for this?
CREATE TABLE test (
id varchar(3) NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO test VALUES ('0'), ('1'), ('2'), ('ab'), ('bb');
select * from test;
DELETE FROM test WHERE id=0;
Which Deletes 3 rows from table test.
A: Bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trouble on testing a JavaScript redirection I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I would like to test a JavaScript redirection but I am some trouble on doing that.
In my controller file I have:
respond_to do |format|
format.js { render :js => "window.location.replace('#{users_url}');" }
end
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server - How to find if clustered index exists We got 500+ tables and want to identify which tables doesn't have primary keys. Because creating index on large table will help to improve performance.
Required Command - to identify table which are HEAPS (as they dont have clustered index)
Regards
A: SELECT OBJECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Social Networking Friends table - Explain Plan - Error Failed to enable constraints error I have a below table structure for friends table
TABLE STRUCTURE
CREATE TABLE `my_friends` (
`first_user_id` int(10) unsigned NOT NULL,
`second_user_id` int(10) unsigned NOT NULL,
`approved` tinyint(1) NOT NULL DEFAULT '0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Treeview vs nested Expanders Edit 2 :
This is what i want to do with only 1 treeview :
my treeview with outlook style http://img204.imageshack.us/img204/8218/sansreju.jpg
Edit :
I want to know how make a treeview with different expander styles in terms of the level. I currently use nested expanders.
Original questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are git branches just tags? I noticed the ability of git to checkout to a specific commit. After that, I began to understand how git really works.
But I want to be sure that this is correct:
When I create a branch, it is nothing more than a tag that points to the current commit. When I checkout this branch, I check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: LINQ query records based on date array I have a table (I am using Entity Model) and filtered that table using LINQ query which is working fine.
Now I want to filter the records on the basis of array of dates. I am not able to implement IN clause on array of dates
filteredList = leadsNewAndScheduled.Where(lead =>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to sort PHP multidimensional associative array with a selected key value How to sort following php array with its 'zindex' key value
$array = array('the-1'=> array('name'=>'lorem','pos'=>array('top'=>'90','left'=>'80'),'zindex'=>2),
'the-2'=> array('name'=>'ipsum','pos'=>array('top'=>'190','left'=>'180')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: -vf unrecognized with php exec() function I am using php to create a video with fade effects. But exec() function gives following output:
array(19) {
[0]=>
string(67) "FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers"
[1]=>
string(74) " built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Applying an aggregate function on an in-memory result set based on each row in it I need to generate a result set in two steps. The first step is simple and generates a base in-memory result set (let's call it B). In the second step, I need to add an additional column to B (let's call it c). For each row in B, c can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to use jquery scrollto plugin - getting error "targ is undefined..." I am using jquery 1.3.2 in my project. I selected the 1.3.x option from the scrollto download page ->
http://plugins.jquery.com/node/635/release?api_version[]=1266 and tried with both the available options there -
ScrollTo 1.4.2 and ScrollT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Escaping backslashes in php no matter how many \ in string I'm very new to PHP. Currently,I'm facing one issue to escape \ and store in mysql DB.
eg., If the string is like $str = \\aaaa\bbb\\\cccc$$ , I would like to save that string in DB . However, I don't know how to escape those backslashes. Please help me sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: IsNumeric check in linq The following linq
var subjectMarks = (from DataRow row in objDatatable.Rows
select Convert.ToDecimal(row["EXM_MARKS"])).Sum();
throws an exception since some row["EXM_MARKS"] has non numeric values like AB etc.
How can I get the sum of only numeric ones out of them?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Superfish IE7 z-index bug with Nivo slider or Photospace in wordpress I have a website with a superfish menu and I have two different plugins for slideshows, nivo slider in the main page: http://hermandaddelcalvario.org/wordpress/ and photospace in the gallery page: http://hermandaddelcalvario.org/wordpress/imagenes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery .remove not working as expected I have the following which is supposed to remove the element ".mycontainer" when I click on a close button. It's not removing the element though. When I use firebug. I can see that it is just moving it to outside of the html tags at the beginning on the code.
$('.closeButto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Images in OOXML (Office Open XML) standard documents are damaged. Where I can find a good one? We are working on a project to deal with OOXML format, specifically DOCX format. We downloaded PDFs from ISO site (http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html) but found all images in the PDF are bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to upgrade my custom android application which will not be released to the Android market? I tried several links but no one has given any appropriate answer. Scenario is something like :
I have my custom .apk file with version 1.0(let's say) which is already installed in android device(we are not using Android m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get an instance of a paused activity? Is there any way to get the instance of a paused Activity? I need to run a public method from another Activity when it is paused, and there is no way I can use a static method
A: That doesn't make sense from the Android perspective. If it's something that'll affect the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send post form with java? I would like to send a post form with java on a website. I came up with this, but I dont what to do next or if this is even the right way.
URL url = new URL("http://127.0.0.1");
URLConnection conn=url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Limiting file download based on access level on asp.net I have a web app made in asp.net mvc3. There is a facility to upload and download files using the application. Uploaded files will be stored in some folder under web root. I want allow downloading files to those who have access to the files only. No one should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to go back to TRY block after error? I want to check in my stored procedure, if a table contains specific columns. I want to raise an error if such a column exist, because they are not allowed. First I came up with the following idea, which obviously has a defect that I can understand.
BEGIN TRY
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bug with pagination when 2 variables in the url on CodeIgniter I am still learning with the CodeIgniter framework. Today, I find myself faced with the problem of pagination.
Indeed I would have access to data via an id which requires a variable in the url and another one for the pagination.
This is my foos_by_day fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Confusing Java Class concept New to java and a concept is confusing me a lot.
As a c++ programmer when we declare a class we can not have a property having an object of same class like lets say we have a class name Foo as belows
class Foo {
int age;
Foo someName;
}
the above code will give error. While in java i ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Import custom protocol into MS Excel / Access I have a standalone Java application capable of replaying a time series of data records. Communication with the server is performed using a bespoke binary wire protocol over TCP/IP.
We have a requirement to be able to easily import data records from this application int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# .NET and direct object collections Hey all is there a collection type like arrayList which i can add an object to using an ID?
effectively as the title of my post sugests a Direct object collection. so for example:
DirectCollection.addAt(23, someobject);
and
DirectCollection.getAt(23);
etc etc
i know arraylis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.