text stringlengths 8 267k | meta dict |
|---|---|
Q: In Scala, why does getInstance fail to work with GregorianCalendar? java.util.GregorianCalendar.getInstance();
Works in Java
java.util.Calendar.getInstance();
Works in Scala
java.util.GregorianCalendar.getInstance();
Fails in Scala. getInstance is not a member of object java.util.GregorianCalendar
A: There are n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Solving linear equations during inverse iteration I am using OpenCL to calculate the eigenvectors of a matrix. AMD has an example of eigenvalue calculation so I decided to use inverse iteration to get the eigenvectors.
I was following the algorithm described here and I noticed that in order to solve step 4 I need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add phone logs programmatically in Android? I want to add phone logs programmatically from my custom application.
Using the following code for adding phone logs, I get a new phone log in phone log list,
but it only adds the phone number in the list, not "call type", "duration", and "Date".
What did I miss?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with Custom Button added to numpad Hi I am trying to dismiss a numpad-keyboard which has a custom DOne Button implemented. When I try to dismiss it the app it crashes giving the following error
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton key]: unrecognized s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSPredicate filter for many-to-many-to-many relationships I'm still fairly new to using NSPredicate, but I've got a somewhat complicated issue and I'm not quite sure the best way to go about a solution.
I'm attempting to build a filter for an entity called Instrument, which can be used with many Procedures. Procedu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle SQL Developer and PostgreSQL I'm trying to connect to a PostgreSQL 9.1 database using Oracle SQL Developer 3.0.04, but I'm not having any success so far.
First, if I add a third party driver on preferences, when adding a new connection there's no tab for PostgreSQL (it works fine for MySQL though). I'm using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Can a UITableViewCell know that it should be in grouped mode? Is there a way for a cell, if used in a grouped table view, detect that fact and modify its appearance as ro not overlap the rounded rect borders?
A: In a grouped table view, such a cell will always be the 1st or last of the section. You can easily ident... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extra and misaligned rows when importing data in SAS I am trying to import data in SAS like:
A B C D E
x y z h i
s1 s2 s3 s4 s5
where A B C D and E are column names.
I have 240 columns in my dataset and the code I am using is:
data INFO;
infile Attdata notab dlm='09'x dsd missover LRECL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSNumberFormatter Problem IN my App i have to share the amount among the event people for Example i have 3 people names like RAM, RAJ, RAGHU ,if RAM put amount of 10.00 in event than i am dividing the among three people like 10.00/3=3.333333, Then,
RAJ has to pay to RAM-------------3.33
RAGHU has to pay to RAM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with "Click Sound" on button click in iPhone i am working in the project in which i face the problem of playing the clicking sound on button click, i have done the following code on TouchDown Event of Buttons on every page
-(IBAction)ClickButtonSound:(id)sender
{
SystemSoundID theSound;
NSString ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight 4.0: Safari and XMLHttpRequest function releaseUser(user) {
if (user != null) {
var requestParams = "", url = "", number = 0, type = "";
/* Configure Parameters */
url = readCookie("endpointaddress");
requestParams = "<?xml version=\"1.0\" encoding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails simple_form attribute required mark (*) I am using Simple Form in my app and I'd like to remove the * to indicate an attribute is required on all of my forms (existing and those yet to be created).
I have tried to set in simple_form.rb:
# Whether attributes are required by default (or not). Default is true... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How to open a file name that looks like a URL after require open-uri? How to open a file name that seems like a URL after require 'open-uri'
require 'open-uri'
open("http://google.com")
in folder
- http://google.com
A: According to ruby-doc.org, open-uri creates an alias to the original open called open_uri_origi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Executing SQL statement in ASEISQL with UNIX scripts Since I am new to unix scripting. I am running a SQL statement in ASE ISQL, and if SQL statement gives some result then I need to mail that result to a particular users. And if SQL is not returning any result then mail should not be sent.
The Sample Script I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ribbon menu in IPad application I want to use ribbon menu(as on Microsoft Word 2007 or 10) in my IPad application. Anyone have any suggestions? If it impossible to implement, may be anyone have other ideas how to implement similar functionality? In IOS development i am newbie, so i can not imagine how to modulate Ri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you use the JSON data pulled from an external php file in your javascript/html? I was able to pull the JSON data and put it into my HTML file as a script in my head. How do I gain access to this data? (put it into usable variables)
external json.php file (populated with mySQL data):
names:
[
{"firstName"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pre-populate associative array keys in awk? I've written a munin plugin that uses slurm's sacct to monitor job states on a HPC cluster. I've written it in sh + awk (rather than my usual tool of choice, perl).
The script works, but it took me ages to figure out how to pre-populate the associative array of possible s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get my JavaScript to tile this table properly? var intervalID;
function autoUpdateFeed()
{
if( document.autoupdatefeedform.autoupdatefeed.checked == true )
{
intervalID = setInterval(updateFeed, 1000);
} else {
clearInterval(intervalID);
}
}
function updateFeed()
{
var o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between cleaned_data and cleaned_data.get in Django I've seen some samples codes like:
def clean_message(self):
message = self.cleaned_data['message']
num_words = len(message.split())
if num_words < 4:
raise forms.ValidationError("Not enough words!")
return message
and some exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how to bind the same event to checkboxes, dropdown select and multiple select components? there are checkboxes, dropdown select and multiple select components in my webform, I want that they bind the same event that will be triggered when items are check(unchecked) or selectd(unselected), show should do that? Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enterprise library 5.0 logging block in asp.net? I have download the Enterprise library 5.0 in my PC from microsoft. i installed it. now i want to use only logging application block with asp.net application. ao what steps i need to follow? Or do i need to add reference of logging dll from installation location (prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interactive "screen" for WCF hosted in service I have a WCF Service that I already mention in another question here. As I have read here host WCF in Windows service is the best solution for all reasons. So that's why I select this option. But windows service hosting doesn't allow any visual process communication (be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add limits to a custom scrolling element? I have a pretty huge image being displayed in a container, the image stretches with the view port as it gets resized, but as the image is so big I have added scroller buttons to the side of the page, up and down, the only problem I have now is that when I press up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regex pattern not matching at start of the line I have this pattern:
/([^>'"])(http|ftp)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/
when using this as a subject:
http://www.google.com <a href="http://www.google.com">http://www.google.com</a> http://www.google.com
It matches the last http://www.google.com but not the first ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: uncaught error NOT_FOUND_ERR DOM Exception 8 So I am deleting all the contents under a particular div and adding a message content. However, javascript throw the following error after the finish:
Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
Here is the code where it is executed
new Ajax.Request("profileThis.php"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: condition check for enter number would be betwen 0 to 9 0r decimal "." i have a edit text box in which i can enter alphanumeric charracter but when i click the summit button then a checking would be perform for either edit text contains values 0 to 9 and also it can contain "." and in other case it will show a messa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When embedding CPython in Java, why does this hang? I'm embedding CPython into a JVM using Jepp, but when I run
import numpy; numpy.finfo(float)
the process hangs. gdb says something's blocking a semaphore/lock acquisition, and the stack trace suggests something floating point-related:
$ LD_PRELOAD=/usr/lib/libpyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Qt C++ QTouchEvent & TouchPoint Confusion Just trying to wrap my head around QTouchEvent. Any help/advice is appreciated.
Specifically I'm a bit confused when a touch event is fired (for e.g. TouchBegin); does this represent only one unique touch point? If so why is there a list of touch points inside QTouchEvent?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to fetch the current Location in every 1 min of interval? I have implemented the Demo to show the current lat-long of the User.
Now I am able to see the lat-long of the current Position.
but I want to Set it to to be displayed in every 1 min of interval.
The code is as below:
public class MainActivity extends Ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why there are 2 () in a sub signature? Recently I asked a question and got a working answer. The code below is the working code. I have problem understand the Sub signature. Why there are two ()() for the sub. I mean I don't understand the first one (Of Algorithm As SymmetricAlgorithm). Obviously the second one is f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Var vs IEnumerable when it comes to Entity Framework If I were to use IEnumerable instead of var in the code example below, will the SQL be generated only during the execution of the foreach statement? Or will it execute as an when the Linq statements are evaluated?
var query = db.Customers.Where (c => c.Age > 18);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get a total count when also grouping in sql? I am attempting to get a COUNT for a mysql query. Its pretty simple:
SELECT COUNT(id) FROM table WHERE [insert rule here] GROUP BY grouper
The problem is because of that group by at the end, I end up getting a count of rows for each group, when I simply want a tot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tool that will remove duplicate lines from a file? Is there a mac file comparison tool that can detect duplicates within a file? This is very close to what I'm looking for except it is for Windows: http://www.rlvision.com/dupli/about.asp. Also, I need to compare duplicate content across two files. If nothing else... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I escape CoffeeScript reserved words? I'm trying to run some unit tests using QUnit written in CoffeeScript but there seems to be some reserved words that are causing problems, most notably "not". Is there a way to escape a CoffeeScript reserved word? Here's a simple test that demonstrates the problem:
module... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting a value to a dictionary's dictionary value The code:
>>> mydict = {}
>>> keylist = ['a','b','c']
>>> mydict=dict.fromkeys(keylist,{})
>>> mydict['a']['sample'] = 1
>>> mydict
{'a': {'sample': 1}, 'c': {'sample': 1}, 'b': {'sample': 1}}
I was expecting mydict['a']['sample'] = 1 would set the value just for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: grails fails to build war Anyone has seen this issue before? What's the cause here?
Error executing script War: loader constraint violation in interface
itable initialization: when resolving method
"groovy.util.XmlParser.setDocumentLocator(Lorg/xml/sax/Locator;)V"
the class loader (instance of
org/codehaus/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: if statement should print string values How do I print result from if statements in Java? This result should be assigned to some variable, that variable should print result in string. Currently, my code is like this. I want to store simple & extended into a single variable, so that i should able to call this variabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exporting sounds as WAV files I never worked too much with sounds in Mma.
I have
t = Sound[List["Violin",SoundNote[-6]]]
How could I Export t as a .WAV file?
When I try the obvious
Export["c:\\test.wav",t]
I get
In this old thread Szabolcs said that it can't be done. Perhaps things have improved since 2007!
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to validate edittext with integers in android? I want to have an edittext that only accepts numbers as input and when a button is clicked I want to check that the edittext has got a number inside and is not empty. Thanks.
A: try this in layout.xml
<EditText android:numeric="integer" ..../>
in Code
EditText mN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Objective C: Returning Objects from Methods I'm learning how to program, and starting off with Objective C. I'm trying to understand exactly what happens when an object is allocated from within a method.
-(Fraction *) add: (Fraction *) f
{ //'result' will store the result of the addition
Fraction *result = [[Fra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tab Page Error: The requested method GET is not allowed I have just set up a custom tab on my page for the first time. I have thoroughly followed the setup guide and seem to have everything on the Facebook side setup correctly.
However when I view my page it throws the following error:
Method Not Allowed The requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the proper DateTime format to get "both" date and time in MySQL and C# In a MySQL table, I need to have two fields "StartTime" and "EndTime". My requirements are:
*
*If I do StartTime - EndTime, I need to get the time elapsed (when I subtract them I need to get time in seconds or minutes or whatever).
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is pass-by-value a reasonable default in C++11? In traditional C++, passing by value into functions and methods is slow for large objects, and is generally frowned upon. Instead, C++ programmers tend to pass references around, which is faster, but which introduces all sorts of complicated questions around ownership ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "145"
} |
Q: Make jqZoom Evolution's zoom box follow my mouse cursor I am using jqZoom Evolution to implement zoom functionality on my site, the problem is that it does not have the functionality for the zoom box to follow my mouse pointer around as I hover over a image, I have tried using mousemove to make it follow the cursor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue converting JSON to HashMap in Android I have JSONArray and when I decode JSON to HashMap at that time HashMap take last value of JSONArray.
here my code:
QjArray = new JSONArray(Questionresult);
JSONObject json_data = new JSONObject();
for (int i = 0; i<QjArray.length(); i++) {
objJMap = new HashMap<Strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find all objects with ids from one number to another in Rails? What query should I use to find all the objects with an id from one number to another. For example, let's say I wanted to find all objects with a primary key from 10 to 20 (between 9 and 21). How would I do this in Rails?
Would this work? Object.w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can having many files in a folder affect performances? I've got an application that's going to generate about 20,000 files. To keep it simple, I'm thinking about putting all these files in the same folder. Am I likely to run into some performance issues doing so? My software is for Windows XP, Vista, Seven and Mac O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Form Validation - Cross Browser Compatibility So I have built this form validation using jQuery and it works perfectly in Chrome, and fails miserably in IE and FF. The page just continues to load upon submission in IE and FF.
I can't find a worthy explanation as to why, or how to fix it.
Any suggestions would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone:Add & Delete Row in UITableview with editing mode What I want to do is:
*
*Setting editing mode on NavigationBar in UITableView adds an edit button on the left side of the UINavigationBar. When I click this button, I'd like an add button to appear on the right side of the NavigationBar.
*When I click on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Entity CRUD w/ OneToMany and orphanRemoval I am building some CRUD forms for a web application. I have one entity, lets say Part, that has its own fields (sku, price, etc) as well as a link to other entities via @OneToMany. The way I have laid out my CRUD interface is that the part data points are edited on one form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android problem with thread I am working with a drawing application. ON A CANVAS i able to draw something as free hand.
What i am doing here, i just store the paths in a List<path> and drawing on canvas synchronized by a thread.
when i am starting to draw for 1st time it is so smooth and speed also, but as paths ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make the JS function get the data from the database everytime I call it? I am using a code look like this:
<script>
function getdata()
{
var employee =
<?php
//connect to database and get employee name
echo "'" . $row['empnm'] "'";
?>;
}
</script>
<a href="#" onclick="getdata();">print... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom ReferenceID property for buttons and menu classes For ASP controls - let us say we are using button, is it possible to derive from BUTTON, a derived control and create new property called, say , ReferenceID (type say integer) and use that property.
I would like to have a unique id for the control other than t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - How to finish button if using setVisibility I have buttons and they all finish to go to the next activity.
But I'm trying to finish an button that has setVisibility like example code below.
Button failfiveButton = (Button)findViewById(R.id.failfive);
failfiveButton.setOnClickListener(new OnClickListener()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reduce many similar correlated subqueries? This is part of a larger statement, but I'm wondering if CTE or another method would help make this more efficient or cleaner. I could write it as a table-valued function and include it in my from clause, but I'd like to avoid extra objects if there is another soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make 3.2 APDI slider emulator Hey i am making a app in which i want to make emulator that should be 320 X 480 i.e. APDI emulator .Can anyone help me out ...
Thanks.
A: The HVGA emulator is 320 X 480 only
A: HVGA emulator is one You are looking for ..
A: The HvGA is the emulator whose ewsolution is 320X480
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7592695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Count folder inside the folder Can you help me how to count the folders inside the folder.
How can i count the sub folders after the FolderBrowserDialog is popup and choose that main folder consist of 3 folders.
I'm using
FolderBrowserDialog fbdialog = new FolderBrowswerDialog();
A: Use System.IO.DirectoryInfo() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UISlider's value is not shown by UILabel In my app, I have a Settings view, where the user can use UISlider to set value from 50 to 1000. The selected value is then shown in a UILabel.
The problem is that the label does not display at all. The Action and the IBOutlets are connected in IB. The NSLog displays the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you deep clone a persistent entity in ColdFusion ORM? I have a persistent entity that I'm using as a template:
Company
Locations
Departments
Employees
In other words, a Company contains many Locations, which contains many Departments, which contains many Employees. I have one Company ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Converting a string to a defined constant in PHP Let's say I have defined the constant ERROR_0 as follows:
define("ERROR_0","An error occurred.")
Now, let's say I have the string "ERROR_0" but I want to convert that into the constant ERROR_0 such that I can get the string "An Error occurred." How can I do that?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: 2d array in C. Fixed width but unknown height? Is it possible to make an array with an unknown height but a set width?
So that It can be something like:
|----------8-----------|
[0][0][0][0][0][0][0][0] |
[1][1][1][1][1][1][1][1] |
[2][2][2][2][2][2][2][2] |
[3][3][3][3][3][3][3][3] \|/
So that it can be as big... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: use the toggle function to show hide a table row I would like to use the toggle function to show hide a table row BELOW
a dynamic row, so the table would look like this
row from database with data
row I want to show hide (defaults to hide)
I know how to do this when the table is static but how do I do it when
the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: non void method for binary tree inorder traversal I'm wondering if its possible to have an inorder tree traversal method in java actually RETURN something... I'm trying to traverse through the tree given a node and a value, return the node that matches the value:
/**
* Variable for storing found node from inorder s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Picasa Web Service in android Is it possible to get Picasa Album photos using gdata API ( Google Data API)
my imports :
"import com.google.gdata.client.photos.PicasawebService;
import com.google.gdata.data.photos.AlbumFeed;
import com.google.gdata.data.photos.PhotoEntry;"
my service creation :
PicasawebS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails Relational Drop Downs Second dependant on the First I have three different models that will be involved with this. I am trying to create a user who will belong to an owner. The owner has many partners and the partner has many clients. The problem with this and how it varies from other questions asked h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When should I set a custom class override default UIViewController for a xib file? When should I set a custom class to override default UIViewController for a xib file?
For example, I have a UIViewController subclass named SettingViewController, and a xib file namedSettingViewDetail.xib.
I found whether I set a cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate MD5 fingerprint hi i have to generate signing cartificate fingerprint so my first task is to generate keystore file using command.
C:\Program Files\Java\jdk1.7.0\bin>keytool -genkey -v -keystore myrelease.keystore -alias alias_name.
now i have to generate the finger prints(MD5) using this command:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android convert the ArrayList> mylist to stringarray I have create an android application program..I dont know how to convert the ArrayList<HashMap<String,String>> mylist to string array..pls tell some idea.Thanks in advance
A: Create a new ArrayList<String>, traverse the "mylist", append one after one element int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Has the response from FB.ui requests changed? It used to be that the response from a request gave us an array of request ids (as described here http://developers.facebook.com/docs/reference/dialogs/requests/) but it seems now the response variable returns two items insead 'to' and 'request'. To being a comma delimit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Technology behind the Facebook Search If you just start typing a person name in the Facebook search box(displayed in blue upper bar on your profile) then suddenly within a fraction of a second search results appear and they comes much more faster if that person already exist in your profile.
so i just want to know t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to deploy Excel 2010 add-in for Office 2007 .NET 3.5 target environment? Installing Excel 2010 add-in on the target machine with Office 2010 + .Net framework 4.0 is absolutely fine. However, I am not sure whether or not Excel 2010 add-in is compatible with Excel 2007 and .Net 3.5.
Would someone give me some ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to remove namespace and retain only some of the elements from the original XML document using XSL? Below is my XML. I wanted to parse this using XSL. What I want to achieve is to remove the namespace (xmlns) then just retain some of the elements and their attributes. I found a way to remove the namespace but whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Override text property of textbox How do I override the text property in a textbox in WPF?
I want this code in WPF:
public override string Text
{
get { return Text.Replace(",", ""); }
set { Text = value; }
}
A: If you are data binding against the TextBox.Text property then another possible appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Simple Xml - order of elements not preserved? I am using SimpleXml 2.6.1 in my android app. Eventhough the documentation (http://simple.sourceforge.net/download/stream/doc/javadoc/index.html?org/simpleframework/xml/Order.html) says the order of the elements in the xml are same as the way they have defined in the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to configure log4j for package level logging? I want to log in to multiple log files(flume and console). How to set log4j as package level?ie com.mypackage.myclass into flume and other packages into console..
A: First of all you need to configure log4j to have two named loggers, one that sends to the Console a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Anyone have a skeletonizer library or psuedo code I am already using the SkeletonFilter from jhlabs.com but it has a few issues. For example it seems to remove small details that are perpedicular to the longer line. An example is the serifs from a capital A when skeletonized are removed.
I have looked at some trace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert java arraylist to javascript array? How do we convert java array list of String objects to java script array?
This is what I am doing but I am looking for a better way to do it. I dont want to iterate over the array list.
var myArray = [
<c:forEach items="${myList}" var="item">
{itemName: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a sqlldr api for java I want to use sqlldr from a java program, but I dont want to invoke it using "Runtime.exec".
is there such api for sqlldr in java.
A: No, there is no native API to call SQL*Loader functionality from Java.
The only option you have is to use Runtime.exec() (or a ProcessBuilder).
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7592764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with setting Project Facets As said in the following IBM tutorial, http://public.dhe.ibm.com/software/dw/xml/x-springandroid/x-springandroid-pdf.pdf I have tried to create a JAX RS web services.
But I am not able to set the Project facets to JAX - RS as I don't get any such options. Also, I wanted to know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UISwitch performing action on value change-iphone sdk I have a UISwitch and I need to load the value in a string into an array when change the switch state change to OFF to ON. I have used the following code, but not working.
-(IBAction)toggleSwitch1:(id)sender {
if (addSwitch.on) {
[addSwitch addTarget:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In C, Save one char at a time I am processing a string in which each word is separated by spaces. The < indicates it is a input redirection, and > indicates it is a output redirection.
Ex:
< Hello > World
I want to save the words in different variables (char *in, char *out )
How can I do that? I've looked through t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Valums qq.FileUploader doesn't work when it's initialized after loading button by ajax I use Valums qq.FileUploader(ex-AjaxUpload) plugin for uploading in my Asp.net mvc 3 application...
I have some button in my page add-newimage, and by clicking in it I get modal window, and I load data into that window by loading ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android How to use and create temporary folder I develop an app which collects some data from internet. Then save it to a temporary folder. To build this app I need to create and access a folder ( just for the purpose of app, not for the user). How can I do it?
A: this code is to create folder:
File direct = new Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Different Focus on Dual Monitors I have installed dual monitor on my system. I am running a process which continuously takes focus of browser. This way, I am unable to work on some other application as other application loses focus again and again.
Is there any way by which i can set different focus for different mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: compatibility Android 3.* with android 4 I want to build Android application. My target devices is tablets (not smartphones). Today exist only 3.* version of android OS, aimed for tablets. Is it normal if i begin build application for tablets in 3.* API? The tablets which will be release with android 4.0 (ice cream ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get all unchecked radio buttons Ok, so I've got a jQuery code which constructs my radio inputs from XML data, like this:
var items = xml.children('item');
if (items.length > 0)
{
var ul = $('<ul/>',{
class: 'priceList'
});
items.each(function(){
var $this = $(this);
var li ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Serial Number (Record Count) in Razor? Could some one point out how to include a Serial Number while populating from a table on a Razor page view.
Here's my view
@foreach (var item in Model) {
<tr>
<td>
---- ??? HOW TO INCLUDE SERIAL NUMBER HERE ??? ----
</td>
<td>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET windows WPF LOCALIZATION I am new to localization ... ..I initially created a resource file(.resx file) then used resgen command to generate corresponding .resource file.. it got created.. then I used al.exe to generate corresponding satellite assembly.. it also got created .. but further when I tried to acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending parameters in Jquery Ajax call with quotes, double or single I am unable to send data through my ajax call if the user put quotes in the textarea. Is there a way to send text with quotes? I dont want to get rid of the quotes. I guess this is usually not a big problem, i found very little online about this si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stack versus Integer I've created a program to solve Cryptarithmetics for a class on Data Structures. The professor recommended that we utilize a stack consisting of linked nodes to keep track of which letters we replaced with which numbers, but I realized an integer could do the same trick. Instead of a stack {A, 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the advantages of pwrite and pread over fwrite and fread? Hey please don't mind if I am asking trivial question, but, please can somebody help me with this..
A: Current file position doesn't change after a call to pread/pwrite.
Also because you don't need to call lseek to change the current file position ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: JPA (hibernate) relation OneToMany with date I need to create hibernate relation one to many between Department and Person (one Department has many persons).
The problem is that I want to maintain time validity. Without ORM (hibernate) it is easy to select persons of particular department at specified date:
select *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cron not working with minutes (Update: apparently there are no seconds in cron jobs. However, my question now becomes: what explains the cron behaving this way? Thank you)
I have two cron triggers, one is supposed to come in just moments before the other one.
First I had task 1 come in every 59 seconds
*/59 * * * * ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Insert JSON data object to Spring MVC application (via controller) with Jquery I want to Insert JSON data object (User) to my Spring MVC application (via controller) with Jquery. if code is like follow how can I accomplish this? Thanks.
User Object
public class User {
private Integer usId;
private Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replace previous files in windows setup I have created a setup using VS2008 setup wizard. It works fine and installs my application well. But the problem is that when a user installs a new version of the app, the setup doesn't overwrite the previous Database.
For example in v1.1 I have a db with 2 tables but in 1.2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Correct way to get beans from applicationContext Spring I have a factory that creates instances:
public class myFactory {
public static getInstace() {
switch(someInt) {
case 1:
return new MySpringBean();
case 2:
return new MyOtherSpringBean();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating second graph in different window - VPython If I have a graph like this in VPython: graphX = gcurve(color = color.cyan), how can I make another graph (graphY = gcurve(color = color.red)) in a different window (different set of axes)?
A: use gdisplay() to create graph window:
from visual.graph import *
gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any API that tells whether an Android device is dual-core or not? I am doing dual core optimization by multi-threading, and it works like this:
If the device has dual-core processor, two threads are created to do the computation, and if the device has only one-core processor, only one thread is created to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: asp.net mvc keep object alive, information i have this code
[HttpPost]
public ActionResult Index(LoginModel loginModel)
{
if (ModelState.IsValid)
{
// some lines of code . bla bla bla
TempData["loginModel"] = loginModel;
return RedirectToAction("index", "premium");
}
...
}
an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Wordpress Theme Got 502 proxy error -The proxy server could not handle the request GET /check I just finished create my own wordpress theme. But when I checked the html validation through validator.w3.com, it got:
502 Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592847",
"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.