text stringlengths 8 267k | meta dict |
|---|---|
Q: cacerts issue in JAVA and OPEN JDK 6 how can i build cacerts automatically in java , instead of using the Jre/lib/security/cacerts because openJDK didn't contain the cacerts file.
A: You can create your own keystore using the keytool. Then you must import all CAs (Certificate Authorities) you need and either place ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the difference between SubscribeOn and ObserveOn I just discovered SubscribeOn, which makes me wonder if I should be using that instead of ObserveOn. Google took me here and here, but neither have helped me grok the difference: it seems incredibly subtle.
(In my context, I've got events 'coming up' on a non-g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: How to launch android application when volume key is pressed android i want to launch my application when the volume turned to very low..
Edit:
Or my application should run in background and it should listen to the volume changes.. I think it sounds good...
Is it possible to do that?
A: Use registerMediaButtonEvent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C Typed Stack: Linked-List Implementation I have a computer science exam coming up and a large portion is going to be on programming in ansi C. I'm new to C and as a review I tried to implement a stack using a linked-list. My code compiles but it doesn't run as expected.
I believe there is an error with my push() fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Problem while updating table in android I created a table in the database that has the data like this:
Now i have written a query that updates the contact field by concatinating name and email fields:
UPDATE MyContacts SET contact=(SELECT name||'--'||email FROM MyContacts);
Here the problem is after executing the qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Agile Requirements Up-front I understand that it is better to discover requirements through iterative approaches in Agile, however I often hear of people rejecting projects on the basis that they are given up-front requirements.
Why is this the case? Why can't up-front requirements just be taken as-is, e.g. just add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: .Net 4: How to reference a dynamic object with property named "return" I'm retrieving json from a public api and converting it into a dynamic object using JsonFx.
JsonFx.Json.JsonReader reader = new JsonFx.Json.JsonReader();
dynamic response = reader.Read(jsonAsString);
The json contains a property named return. e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to access/reference DLL in CodeIgniter? Is it possible to reference a DLL (made from C# or C++) in PHP using CodeIgniter Framework? If yes, how? I'm gathering info, I've also asked the CodeIgniter forums. :D
A: No, it's not possible. You are trying to access "application" written in different language.
Maybe yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery simulate click, check boxes and call function I have set up a workspace area which represents a blank PDF page where users can select paper size using radio buttons, orientation of landscape or portrait using radio buttons and personal motivation and goal statements using checkboxes. The user checks / uncheck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: displaying time when page is refreshed In my xslt file, is it possible to display the time (with the help of a label) whenever the browser detects a page refresh? How is it done?
A: You can emit javascript that writes out the local time.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7579256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Subscribers model in rails Consider a model for keeping user id's of subscribers on a particular comment thread, such that
thread has_many subscribers
where subscribers is of type user.
I feel like generating a new a table for subscribers is overkill. In principle, I'd like to access thread.subscribers to get a list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get HiddenField Value from ascx.cs page to aspx.cs page my ascx code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Demo.ascx.cs" Inherits="Demo" %>
<asp:HiddenField ID="hidden1" runat="server" Value=""/>
<asp:Label ID="lbl1" runat="server" Text="Hiii"></asp:Label>
my ascx.cs code :
protected vo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery banner with random quotes in random positions I'm looking for a jquery script that will load various quotes randomly and into random positions over an image (banner). I know this is a vague question but I don't know how it can be achieved and I'm looking for something to begin with.
A: Maybe a daft idea, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Ajax.BeginForm does not pass form values? I'm trying to show a partial view via calling Ajax.BeginForm, but I can't receive the values of my form(I need to get the value of hidden input, bookId, in controller, e.g 5).
// View
@using (Ajax.BeginForm("Detail", "Books", new AjaxOptions { HttpMethod = "GET", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Re-creating tables in SQLite While implementing the save-/loadfunction of my database, I dropped the tables to see if my app can handle the creation of the tables if necessary - well it can't
So in the onCreate of my testactivity, I create an instance of DB which creates in it's constructor an instance of DBOpenHelp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Verify Digital Signature with SignedCms I get the CryptographicException "The hash value is not correct." I tried verifyCms.CheckSignature(true); (same error)
I tried to add in ContentInfo the whole mail (Sender , Subject , Body, HTML Sectione ...) (same error)
public static bool Verify(byte[] signature, X509Certifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate Help required I tried to look around for information regarding returning a list using Hibnerate but couldn't find something that matches what I'm looking for and thus needs some advise.
I have the following classes
BPDataPK:
public class BPDataPK implements Serializable {
private String id;
priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting at javascript values where a range is the index in an array I'm probably going about this in entirely the wrong way, but pseudocode-wise, this is what I'd like to do:
ranges = new Array([0 - 400] = 'dog',
[401 - 1000] = 'cat',
[1001 - 1233] = 'rat');
alert(ranges[243]);
and ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using 16-Bit textures WP7 textures are supported in the Reach-Profile that WP7 devices falls into.
But XNA converts all my ressources upon adding them to a project to RGBA8, that's insane,
the displays of WP7 devices are 16 Bit!
Information: WP7 SDK 7.1 (XNA 4), Visual Studio 2010
Question part 1: How can I add a RG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: GUI/view doesn't notice about changes in the viewmodel. Who should notify? I'm rather new to Silverlight and have a question about the notifying-mechanism. My solution is an MVVM-application stacked like this:
VIEW Contains a RadGridView bound to a collection in the viewmodel, the data is an entitycollection. The Gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SPDH protocol documentation I seem not to be able to find any documentation on SPDH protocol for POS terminals. It would be very helpful if anyone could point me to some.... Thank you
EDIT: forgot to mention that i did look at this question, but the link to the documentation does not work... An analyzer for SPDH fra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Increasing height of a div while dynamically loading content (it's height is 100%) I have a div(InnerDiv) which contains a grid with paging enabled...
After some user actions , data inside that grid will load and we will have a big grid!
The problem is when grid's data loads , overflow the div's bottom portion(Inner... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to serve static resource (CSS, Images) with XDV in Plone I have tried several ways to serve my static resources from Plone with XDV:
*
*Putting the CSS and images in the Custom folder - files are 404 not found
*Serving them from Apache and setting the Absolute URL Prefix in the XDV config - works, but a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pick an html 'a' tag using php, especially by POST or GET technique? Suppose I have a code like this in my page
<a href="some_url" name="" value=""> Jokes</a>
<a href="some_url" name="" value=""> Quotes</a>
Now If I click on one of these links, say I clicked the 'Jokes' link, I want to pick up the 'Jokes' c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Running migration file before ./manage.py migrate component I have update our project from svn. There was a migration file in update. I have run this migration file before ./manage.py migrate component . Now I have this error:
raise ImportError("Settings cannot be imported, because environment variable %s is undefin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: image positions on jquery Hello Friends I have a website. In this I want the logo image will be like same on home page but in other pages it will be go towards the up and only the name will be seen not the whole logo image. So how to do that in jQuery? Any advice will be highly appreciable.
A: You don't need to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check a form is available or not by using its id - jquery Is it possible to check weather a form is available or not using jquery.
For example :
1. I am having a form ID called form1
2. I need to check in the page weather the id contains a form or not.
3. How can i achieve it using jquery.
Thanks in advance..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System Design Document template for firmware development on Atmel UC3 platfrom Do any body have or know any site where I can get a template for System Design Document for my firmware develop project for Atmel UC3 platform?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7579312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Show All Local Variables in Eclipse I think I already know the answer to this question is "No", but I ask anyway just in case I missed something in the dox.
I adore the Eclipse "Quick Outline" feature where I can easily see all the member variables and methods for the class my cursor is currently located in by typi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Object null-ness check in Java Which one is recommended and to be used to check the Object null-ness?
null != Object
or
Object != null
and other way
null == Object
or
Object == null
...and is there any difference between them?
A: (In)equality is commutative, so there is no difference.
Historically the former s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery - AJAX request using both native XHR and flXHR (Flash) fallback - how to minimize code duplication? I need to retrieve data via cross-domain XMLHttpRequest. To make this work in (almost) all browsers, I use native XHR first and, if that fails, flXHR.
The (working) code I currently have for this is as follows:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ComboBox text longer than the combo visible at the end instead of start My problem is ComboBox, with the text of the first item longer than the combo - I don't see the text from the start, I see the end of the text. I wanna see text from the start. I've tried 'SelectionStart' property set to 0, but it has nothing to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect that file is located on SD card? Is there any durable way to detect that is file located somewhere on external (detachable/dismountable) storage?
For sure there's a way to parse file path and extract file:///sdcard string, but as we know on some devices this path can be different, e.g. file:///mount/sd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Curve a bitmap in android I am developing a game and I want to give a smoke effect at the tail of the objects moving freely on the screen. I just created a bitmap and attached it at the end of object but the problem is that this doesn't look good because when the objects turns towards a new angle the effect d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting the last answer id for the questions In M.C.Q test, when user come back to the same question again how can I track the last answer given for the question?,
following is the table structure
Method: 1
temptblUserAnswer
id uid qid ansid
1 1 1 5
2 1 2 6
Should I upd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: kernel module for htc flyer I have to compile a kernel module for htc flyer,I got the kernel source for htc flyer from http://htcdev.com/devcenter/downloads
I have compiled the same module for htc hero in the past(by pulling out the /proc/config.gz file from the device). I didn't have a htc flyer with me . can some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uploadify in Zend Framework I use uplodify to upload files in zend.
<link href="/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/uploadify/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/uploadify/jquery.uploadify.min.js"></script>
<script type="t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple attachments per model with paperclip I'm trying to integrate paperclip into a simple comment thread so users can attach files to their comments.
I understand that following the instructions that come with paperclip will end up with me being able to attach one file to one comment.
I would like to be able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ContextMenuOpening event not trigered I have a button with a context menu, but I just can get the ContextMenuOpening event to triger.
<Button Name="a_button"
ContextMenu="{StaticResource MyContextMenu}"
ContextMenuOpening="MyContextMenu_Opening" >
</Button>
private void MyContextMenu_Opening(object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to resolve ANR in android Wen i install my apk file on android device and after installation wen i hit the open button my application does not start and shows force close.
The logcat output of my application is shown below :
09-28 12:14:57.651: INFO/ActivityManager(124): Starting activity: Intent { act=an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use ctags for autocomplete in vim I try to develop android project in vim.But find it a bit of boring to look up in ctags for one method.Is there a way to show up a auto-complete list in vim using ctags?
thanks
it's my ctags's version below:
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: asp.net MVC 3 folders purpose I am working on an asp.net MVC 3 project as a team member. This project has some folders like repositories, infrastructure, Datalayer, services, providers and ViewModels. When I create an asp.net MVC 3 application, It has only 5 folders views, models, controllers, contents and scripts. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Routing error after call to RDF::RDFa::Reader I've posted a question relating to this before but it was unclear. I've simplified the code so I can copy it here and have it be as straightforward as possible. I'm still not sure what the best way to debug this may be but here it goes:
My 'new' action (could be any real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I get implicit declaration of function strncmp I get "implicit declaration of function 'strncmp' isinvalid in C99" when use strncmp (xcode 4/ gcc version 4.2.1)
How to avoid this ?
A: Did you forget to #include <string.h>?
A: From the strncmp(3) man page:
#include <string.h>
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7579370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: inheritance and "invalid covariant return type" error on operator overloading I have the following class representing numerical arrays
class Array {
protected :
double *data; // this will hold the data of the array
int n; // number of elements in the array
public :
virtual Array operator+ ( ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Translating php code to jsp $postdata = http_build_query(array('name' => $album_name,'message' => $album_description));
$opts = array('http' =>array( 'method'=> 'POST',
'header'=>'Content-type: application/x-www-form-urlencoded',
'content' => $postdata));
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Millennial Media PHP Request not returning anything So I can't figure out what it is about my code that isn't working. Basically, I'm trying to get a Flash actionscript method of getting Millennial Media ads into an app I've been making. But I'm a little stuck because I can't seem to get a response from Millennial M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Directory Size in Objective C Since NSFileManager has no capabilities of returning the size of a directory, what would be a suitable & fast method for obtaining directory size?
A: There is no fast method: you have to recursively request size of every file in the directory hierarchy.
Don't forget to handle special c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android how to call layout events in other class? I have main.xml, mainActivity.java class file and Book.java class file, I want to use button click event (which is from main.xml) in Book class file. How can I do this?
A: Well i'm a little short on info here. But it seems you have to copy/paste the code in your onC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Spring security doesn't work on Glassfish v3 I have a java web application that use spring security for log in users, restriction access etc. , and it is working without problems on Glassfish 2.1, Tomcat, jetty, but on glassfish v3 doesn't work, when I try to login, and press button login, I'm getting login box fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is bit twiddling a good test for embedded engineer I am questioning candidates for embedded software engineers (in our company we use mostly C, sometimes C++).
I usually give to the candidate a bit twiddling question. I do not mention that it can be solved with bit twiddling, when it is not obvious. I also accept so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: glassfish and hibernate
i saw that my glassfish server has a number of updates available, and i`ve noticed that hibernate 3.5 was one among them. I was wondering why would glassfish use hibernate. Then i have searched a little and i found that glassfish's default persistence implementention is toplink, and some guy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show Calendar in IPhone app source as iCal (.ics)file I am planning to create an iPhone application which displays tasks in calendar view with sort options Day, Week and Month view.
Those tasks comes from .ics file which will be in web site (server).
is it, We have to read that .ics file using our code and co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c++ code using libnet not compiling I'm trying to compile my libnet script and am getting this error:
[root@whyme]# gcc -Wall `libnet-config --defines` mysocket.cc -o mysocket `libnet-config --libs` -lpcap -lnet
/tmp/ccUPbuVg.o: In function `main':
mysocket.cc:(.text+0x1e): undefined reference to `net_init'
mysocket... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: trigger rowcommand event from commandfrield Edit button I have a query regarding GridView Control : I added a commandfield inside my Gridview and set ShowEditButton="True" (By default it trigger RowEditing Event). Can i Trigger RowCommand Event Instead of RowEditing Event.
I know i can do it via other way but just g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using auto generated id of Hibernate entity object in the equals and hashcode methods Lovely equals and hashcode, all the theory is here and also here
I have taken the decision to use the auto-generated id within equals() and hashcode() in a number of my hibernate entity/domain objects.
However, a number of websi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: URL routing not working with ASP.NET web forms? I've recently started a web application and decided to use url routing in it (basically just to get some practice with it).
The app is .NET4, and I'm using VS2010 SP1 and IIS Express (integrated pipeline).
The thing is, when I run the app, routing works fine as long as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome : No data received, Safari : Can't open the page I have a web page which allow users to compose news articles. It has a rich text editor too. So someone can copy and paste text from the web. When I put some copied content from wiki to that and once I POST, it throws "No Data Received" error on Chrome. When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem while reading contacts with ContactsContract.Contacts.CONTENT_URI I need to search a particular name from ma contacts... for that i gave the selection criteria like this
ContactsContract.Contacts.DISPLAY_NAME + " LIKE '"+constraint+"%'"
But for apostrophe(')... means ...when i gave apostrophe as constraint... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIScrollView + change orientation = messed up subviews (iPad) I want to use a UIScrollView as my main container in the app, enabling me to swipe back and forth between subviews. To achieve this, I created a UIViewController subclass with a UIScrollView IBOutlet:
In the viewDidLoad method I construct the sub-pages:
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can FoneMonkey be used for testing preinstalled apps or apps for which we dont have source code? Can we use fonemonkey to test preinstalled apps in iphone.
if so, can you guide me.
or
If it is possible to test an app for which i dont have sourcecode, pls guide me.
Thank you.
A: No, FoneMonkey needs to be compiled ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: automatic paste value from clipboard (web base php and javascript) i've browse and search the solution with my problem, but i (still) can't fix my problem from the resource and article that i've search before.
I've copy the (text) value into clipboard from (c# form apllication) that i've build before.
QUESTION : how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: my mapView.apk file execute properly on simuletor application start also but map is not show on the simulator while the application execute only the mapView back ground and the logo at the given location is appear. the map is not able to visible.
A: Have You created map API key for your PC? If not get the Map API k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort a subItems in ListView Can you help me sorting a subitems in listview?
I know only on how to sort the 1st column.
Here's the code
lstVItem.Sorting = SortOrder.Ascending;
A: This Microsoft link gives you all the infos you need.
And this one can help you too.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7579419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MySQL update multiple records I have a web page that needs to update multiple records. This page gets all the information and then begins a transaction sending multiple UPDATE queries to the data base.
foreach row
{
Prepare the query
Hashtable Item = new Hashtable();
Item.Add("Id", Id);
Item.Add("Field1",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby Parallel/Multithread Programming to read huge database I have a ruby script reading a huge table (~20m rows), doing some processing and feeding it over to Solr for indexing purposes. This has been a big bottleneck in our process. I am planning to speed things in here and I'd like to achieve some kind of paralle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to add logic to delete() on Grails domain class? I need to make changes to other domain classes when an instance of a particular domain class is deleted. What is the best way to do this? I don't want to wait until commit or flush so I don't think the "beforeDelete" callback will help. I would li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access Full Set View from client Couchbase Server 2.0 issue When i go in the couchbase console it shows a partial subset by default,
u can show the fullset by clicking on it, this happens trough a link. (Developer view)
The weird thing is after publishing the view(Production view), and checking the link there i do g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A brief guide to extensions, namespaces and assemblies in V1 of Reactive Extensions (Rx) Exploring the latest release of Reactive Extensions, I discover that the different types and extension methods have been split across namespaces and assemblies.
I know that I can go looking one by one on MSDN, but what I'd like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to execute a script when xfce session ends Is it possible to run a script/command when the xfce session stops ?
A: See http://mail.xfce.org/pipermail/xfce/2012-November/031694.html - There, Erik Habicht suggested creating a wrapper script in /usr/local/bin/xfce4-session (or another dir that precedes the dir whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to skip an activity's result for another activity than the subsequent activity in a sequential workflow? I'm with a sequential workflow, say with three activities
1. Get Images
2. Rotate Images
3. Flip Images
Now I want something like this, that for the 3rd activity, the input doesn't come from 2nd activity but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a fully customized Alert Dialog? Is there a solution to create an Alert Dialog with no borders around? If I create a layout and attach it to the Alert Dialog, I have my layout shown, but it's surrounded by the default dialog borders. Any way to cut them off? Thanks in advance.
A: Here is one way (if y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show super.view - iPhone I've created ViewControllers ABC and XYZ. XYZ inherits from ABC.
In the AppDelegate, I add XYZ.view as subView.
Now at the click of a button in XYZ I want to display ABC.view on a small portion of screen. I've tried some combinations of the following but nothing works.
*
*[self.view bring... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resrtrict resolution in Android Manifest Can anyone simply explain how restrict small resolution for my app. For example, I want that my app will be appropriate for QVGA , WVGA and devices with more resolutions?
Thanks in advance.
A: Add this to your manifest file:
<supports-screens android:smallScreens="fal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delete characters from textfields,iphone I have textfield and having a number "1234567890"
now i have button, on tapping it, it should delete the the number from last.
like as in keyboard.
but one time tap, should delete one int at a time.
I dont want to delete whole number at once, it should just delete a single in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If statement with background colors Okay, I've been trying to get this for almost 4 hours now, and it just won't work.
I have a link:
<a id="togglecolor" href="#" onclick="ToggleCover();">
Click here to toggle DIV so you can see what I did.
</a>
And I have a div:
<div id="framecover" style="position:absolute; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: comparision of two columns within a single table i have a table alpha ,this contains two columns A And B. I need to find out how many A's are there for B.
A B
1 1
2 2
3 3
4 3
5 4
6 7
A: Try grouping :
SELECT `B`, COUNT(*) AS `Coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: while loop not iterating properly to remove table rows Just trying to remove a table but loop is not removing all rows.
I have used alert to be sure it's the right element by id.
It does remove some rows but not all, just chunks.
console reports: DOM Exception 1,DOM Exception 8
function removeThis(unsetElement)
{ u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: returning fuzzy match percentage in solr query result I've implemented solr/lucene fuzzy match for my system and its working perfectly.
I have requirement to display percentage fuzzy match after query sends response back.
As an example if my index data is "rushikupadhyay" and if my query is "rushikupadhya"~0.8, I sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: create file with FileStream and apply FileAttributes Is it possible while creating the file with FileStream also apply FileAttributes at the same time? I would like to create file for stream writing with FileAttributes.Temporary file attribute.
A: You can use FileOptions.DeleteOnClose as one of parameters. File wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add radioButton in ListView I need to add RadioButton in ListView and indeed I have tried, But the problem that I am getting is that when I click on radio button it get selected wonderfully... but the same time if wish not to select that particular button... it just remains selected. Here I am providing my code:
imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How main method called without calling it by classname.mainmethod() This is very basic question, many of us didn't know this answer. In java, to call static methods we have to follow this classname.method();. But when comming to main(), its not been called by classname.main() even though it is static.
A: The best w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Procedure returning multiple values I have a database which maintains interactions with my application, a log kinds.
I want to generate reports for total interactions per day in a month. What is the best possible way to write a procedure that would return up 30 values, each value representing the count for a day?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matlab- zero padding How to do this on matlab?
zero pad the face image with a five‐pixel
thick rim around the borders of the
image. show the resulting image.
Must be manual codes on script.
A: This sounds like homework, so I will just give you a hint:
In MATLAB it is very easy to put the content of one matrix into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Browse Directory option for sftp and ftp Currently I'm doing the functionality for sftp using jsch-0.1.44. I need to add option for the user to browse the directory. So how to get the list of files from the remote server. Is there any other open source exists for this functionality ? Please help me
A: This example ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deadlock in SQL Server 2008 I have two stored procedures, both insert rows into the same table.
Once stored procedure call regular time interval and another stored procedure call by user event. Sometimes both stored procedure are called together and at this time deadlock occurs.
How can I solve this problem?
A: Loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do i have possibility to develop iphone application in WindowsOS(Win7)?
Possible Duplicate:
How can I develop for iPhone using a Windows development machine?
I am new to iphone applications.
My doubt is, can i develop i phone applications in windows platform by installing iphone SDK, emulators etc..
A: Straight ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: tailable cursor in mongo db timing out I am trying to create an oplog watcher in ruby. So far ive come up with a small script below.
require 'rubygems'
require 'mongo'
db = Mongo::Connection.new("localhost", 5151).db("local")
coll = db.collection('oplog.$main')
loop do
cursor = Mongo::Cursor.new(coll, :tailable => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to use Google Book API in Android to download/search books I'm new to android and trying to build this application
*
*As a user, I will be entering some terms in application. Service will search for books relevant to those terms on the internet using Google Book API. It will fetch the information and store ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: inserting into an array in foreach I have the following code. I'm doing some work on websites, but sometimes they redirect, and if they do so I want to do the work on the redirected site. BUT I don't want to check all the sites for redirection before doing the work, as there are few of them. So how can I insert it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cross browser W3C compliant semi-transparent background color To set a semi-transparent background I use:
background-color: rgba(0, 120, 180, 0.8);
For IE, which doesn't support rgba I use a 1x1 png with the same color:
background-image: url(http://i53.tinypic.com/2mgtu9e.png);
(demo here)
Question 1
I know that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC Client-Side Validation with a JavaScript Loader Has anyone tried using MVC client-side validation with a JavaScript loader, specifically yepnope.js? I can't get it to work, and I believe it's because it registers the validation code before the necessary JS files have loaded.
I can get it working by loadi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting PDF to txt for right-to-left language I want convert a Persian language PDF file to text file or to a string type variable. I have read all questions on StackOverflow similar to this question, but not found an answer. An example Persian language PDF file is provided here
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7579525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does any one have a working script of LoadRunner Automation API? Currently I am writing Perl script that creates LoadRunner scenario, execute the test, collect the result, recover the environment and repeat the cycle again with different scenario variables.
I don't have a problem creating new scenario, adding genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need Linq Query for this SQL Query "select count(salary) from employee where employeeID = 10 group by salary" --- Its a SQL Query.
I need Linq Query which would retrieve me same output..?
Please Help me out i am new to Linq
A: You should also check :
Full aricle : SQL to LINQ ( Visual Representation )
from e ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Prevent Multiple entries stored in database? Consider am using java , struts, hibernate and oracle. How can i prevent duplicate entries stored in database. One way is to make field as Unique . For example i am entering country "USA" in jsp page,USA is already available means how can i prevent it. Please let ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebClient DownloadFileAsync Illegal characters in path I am using WebClient.DownloadFileAsync to download files asynchronously to my machine. Occasionally, I end up with URLs which has a double quote on it.
For example, see this:
http://upload.wikimedia.org/wikipedia/en/d/d3/"Baby"_Palace_Hotel_1906.jpg.
DownloadF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Catching MySQL errors I have a very simple development. I was using Pear DB to error catch a query with something along the lines of
if(DB::isError($create)) die($create->getMessage());
I'm wondering if there is something similar in mysql?
A: Pear DB is Database Abstraction Layer which works with MySQL.
MySQL:
$r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How create a views showing sponsored user profile field I created a profile field called Sponsor name, who sponsor or introduce him into the website. The sponsor must be a user in the website. A user can sponsor any number of users to the website. When a user wants to register, he must give the sponsor name. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why exec('java -jar file.jar') dont work on browser I am about to go insane.
for hours, trying the same and does not work I have the following code:
<?php
exec('java -jar /home/user/classname.jar --some arguments',$output,$result);
works if I run from the command line, but if you get on my server and I try to run j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7579546",
"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.