text stringlengths 8 267k | meta dict |
|---|---|
Q: Mongoengine unique_with I am using mongoengine with MongoDB. I have to make a Document in which the tuple (merchant_id, order_id, event_type) has to be a unique key.
Till now, I have always dealt with uniqueness being limited to two fields. So the following works-
merchant_id = StringField(required = True)
order_id ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: which eclipse sdk use for android honeycomb tablet application? i want to make a honeycomb tablate application.
For this which sdk version preferable in android app.
A: You may always use latest SDK version for development, as SDK comes with lot of development tools. You can develop application for any API level us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create application session in android My application require timeout of 10 min i.e. if there is no activity on the application from last 10 min, then either the application is terminated or login(Login credential in sqlite db) is shown.
I came up with the approach of using thread with maintain perform the task but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to migrate and process data in java with low memory and faster I have an application that receives files with a flat table in DBF, which normalize and convert and insert into a MySQL database, files that grow to between 250,000 to 270,000 records and now consumes about 1.5 - 2 Gb at all I must repeat the process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RESTful API Authentication I have found quite a few questions on this topic on SO, but couldn't find any answering this question:
Should I validate users with their username and password, or with an API key? And what are the pros and cons of each method.
I ask this because in my API, there are a couple of methods I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Get magento meta keywords dynamically? On the Product page of Magento, I want to get the product name, its category name, and sub category name in the meta keywords tag.
A: Since products already have an attached MetaKeyword value, you can use an observer to unobtrusively extend that value. This method doesn't inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Canvas Repaint After Downloading the Image Creating a J2ME application.
PROBLEM:how i repainting the displayed canvas without ant user event.
Trying to display canvas page,page contains text and image.first time we display text and local image in screen,after displaying it downloading the actuall image form internet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jTable beansbinding I insert data from a util.List into a JTable with beansbinding.I have wrapped an ArrayList into a ObservableList and Observable list assinged to uitl.List.I bound data in Netbeans and set up properties in 'Table Content' in Netbeans 'JTable Beanbinding options'. First time when the list is update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Thread.Sleep is not precise for long durations? I have a service written in C#. Service is active around the clock but one thread sleeps via Thread.Sleep till a predetermined time - typically 9PM - 11pm - to perform some housekeeping tasks. First time service starts, it calculates time span in mseconds till t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tk, how to make a layout with .pack? When I place two buttons in the 'top' part of a TkRoot they are below each other.
What are the parameters for '.pack' having them aligned horizontal?
(the solution should also apply for n-buttons)
Ruby code would be great but anything that works with tk is great. (if you are a py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Updating Recurring payment profile in rails I have implemented Recurring paypal billing in my rails application. It is going on well. I can able to update amount and can cancel profile every thing.
Now my problem is, when a user upgraded his package, I would like to charge him the extra amount along with updating t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails dynamic selects - validations not showing errors on fields In my form, I have two selects - state and city. The city drop-down depends upon what the user selects in the state drop-down. In my view, I have the following:
<%= f.input :state_id, :collection => @states, :prompt => "Pick Your State" %>
<%= render... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fusion Chart decimal formatting I'm using Fusion Charts. I need to display the data in Y as decimals below zero but they are not appearing kindly help.for example: how to display the decimals like 0.32 .34 in the chart
I've placed in my chart the following tags.
forceYAxisValueDecimals='1' yAxisValueDecimals='1' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python unintuitive member variable behaviour This script:
class testa():
a = []
class testb():
def __init__(self):
self.a = []
ta1 = testa(); ta1.a.append(1); ta2 = testa(); ta2.a.append(2)
tb1 = testb(); tb1.a.append(1); tb2 = testb(); tb2.a.append(2)
print ta1.a, ta2.a, tb1.a, tb2.a
produces th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Applying an argument list to curried function using foldLeft in Scala Is it possible to do a foldLeft on a list of arguments, where the initial value supplied to the fold is a fully curried function, the operator is apply, and the list is a list of arguments to be passed to function f?
For example, let's say f is de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: LDAP : Check if a user is member of a group I found several sample on Stackoverflow and over the web but any work. I'd like to check is a user is member of a specific group (or subgroup). When I try with a username who not exist in the Active Directiory, I get an Exception (normal, see the code)
Below the current co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CROSS-DOMAIN - Retrieve Page Source Hi I have a project here at work where we need a specific value from another domain I do not have access to change (So I can't do nested iframes, or CORS). We need to keep Session/Cookie state the same to get the required data from the page as the token changes based on the user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible: array in record I have next arrays
NAMES1: array[0..1] of string = ('NO1','NAME1');
NAMES2: array[0..1] of string = ('NO2','NAME2');
and a record structure
TMyRec = record(
Name: ????;
);
As result I need to declare a constant array of records like following
const
StringArraysList: array[0..1] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: switch case with display tag I want to display various data in Display Tag column according to what I get from Session.
How can I integrate switch case with display tag <display:column>?
I want to display AAA if the unit value I get from session is 1 etc.
Here is what I want to do.
switch(List.unit){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Build system for an embedded C/C++ project I am looking for a high-level build system/tool that can help organise my embedded C project into "modules" and "components". Note that these two terms are highly subjective so my definitions are given below.
*
*A module is a cohesive collection of c and h files but with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to get java version using single command in Windows command prompt? I need to fetch java version 1.6.0_26 from the below java -version output
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Please help me getting 1.6.0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ruby on Rails timestamp is being converted into numeric by PostgreSQL on Heroku I will start out by saying there is a question similar to mine:
heroku Postgres error - operator does not exist timestamp without timezone = integer
but it did not solve my problem. What I am looking at is this error in the worker on Her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle Apex integration using/from ASP.NET C#; DB-Oracle I'm looking for a simple guide how to use Oracle Apex to show info from DB integrating it with .NET using c#. So I hope you could share any tutorials about APEX & .NET integration, links exmaples, maybe a plan how would you connect these two technologies to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django ImageField "Upload a valid image. The file you uploaded was either not an image or a corrupted image." I have PIL installed, however whenever I try to upload a .png file to an image field through the Django Admin for my model, I get this error:
"Upload a valid image. The file you uploaded was either not an im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to call generic activity finish I have a public class which has some common generic functions, like e.g. for displaying dialogs in my application. I made a generic alertButtonDialog function and want to call it in activities whenever I'm using dialogs. I am very new to Java so please excuse me if it's very basic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to define thread-local local static variables? How to define local static variables (that keeps its value between function calls) that are not shared among different threads?
I am looking for an answer both in C and C++
A: Just use static and __thread in your function.
Example:
int test(void)
{
static ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Android Map View Issues on emulator i have create app wherein i use the MapView to render the google maps on the device. this works fine. though had few issues with the "X" marks appearing on the screen, that was resolved by commenting/removing the setSatelliteView(true) and setStreetView(true). now i mainly want th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Entity Framework - IEnumerable VS. IQueryable Please see this line of code. This is an invocation of a stored procedure, which returns an ObjectResult<long?>. In order to extract the long values I added the Select:
dbContext.FindCoursesWithKeywords(keywords).Select(l => l.Value);
Based on intellisense this Sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Blackberrry Twitter Integration to tweet photos I am developing an application where user can share photos to Facebook and Twitter, for BlackBerry Storm and Torch series phones running OS 5.0.
For Facebook I used the strawberry project. But for Twitter I am not able to find any library which can authorize the user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is my clockwise sorting of Vector3s inconsistent? I've attempted to write a Comparer class for Vector3s (or, rather, VertexPositionNormalTextures) which will sort a list of them into clockwise order in order to fix my backface culling issues. I've tried to adapt a very common method on the web which gets a sign... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change background color of input text field using JavaScript How do I change the background color of a input text field using java script? I want to insert it in a form validation function like this:
function validateForm()
{
var x=document.forms["form1"]["username"].value;
if (x==nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby Rails Session timeout I'm using Ruby1.8.7 & rails 3.1.0. I want to increase session timeout. I already gone through the existingg threads but didn't helped me.
Please guide.
A: You're most likely using devise. In this case, follow these suggestions. Ensure you add :timeoutable as a module in the devise mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scroll not working in ios5 xcode 4.2 I had an older example which had a scrolling tableview. The scroll bars are not appearing any longer when I moved to the new xcode/ios combination. In fact, I tried the other sample code on developer site which had scrolling and none of them are working. I was wondering if there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Ajax request doesn't return data I have a group of button, I want click each one, send data to a processing page, then return data to the self html and change class click to more.
In any case, my code have no reture data. I have checked in chrome - network, I can see the ajax process success, even add an ale... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php function to set color by variable Anyway to make a php function out of this? It seems the second set of variables kills any function I try to write.
$flow = (15);
$low = (10);
$good =(20);
$high =(30);
if ($flow <= $low)
$class = "tdy";
else if (($flow > $low) && ($flow <= $good))
$class = "tdg"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make toggle image button instead of UIBarButtonItem in iphone programming? I have to make a button in UINavigationBar, the button should toggle between restart state and cancel state, and it should call
-(void)RestartMethod {}
at restart state and should call method
-(void) cancelMethod {}
at cancel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF service goes to faulted state while deserializing huge amount of data I have an application which consumes WCF services. My problem is I am fetching around 6000 rows from database, my service shows faulted channel error while deserializing huge amount of data. Infact I have increased the attribute values(like ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create liferay iframe from jsp Here is a scenario. I am working on a small project and in this, I will be forming a URL based on some condition checks. When the final URL is ready ( in JSP), I have to invoke the liferay iframe and pass this URL to it so that as the JSP is loaded. It should load the newly cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Achartengine X labels with uneven interval of time I am using TimeChartView of AChartEngine 0.7.0 to draw chart.
on x-axis there is date and for y-axis there is value for specific date.
i am parsing these values from xml so someday I get value of complete last 5 day but someday only of 3 days so when i get value of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get UI_USER_INTERFACE_IDIOM How can I get UI_USER_INTERFACE_IDIOM, I am not clear that how does it work, can anyone please guide me?
A: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
// iPad device
} else {
// iPhone / iPod touch device
}
From the Apple Header files:
/* The UI_USER_I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: iOS application upload after rejection I forgot provide demo account information login and password, and my application was rejected with message:
.... While your iTunes Connect Application State will still show as
Rejected, we don't require a new binary for this type of issue. Please
visit iTunes Connect, Mana... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In an Outlook VSTO addin how do I clear the current selection? From within an Outlook VSTO addin I want to clear the current selection.
Is there an API for this?
A: My current hack it to temporarily select the sent folder.
void ClearSelection(IRibbonControl control)
{
//Here be dragons
//Ok this looks like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Most efficient way of storing lots of string messages in SQL Server? My app receiving approximately 2000 string messages per second, each message is about 300 characters long.
I need to store all messages in a DB. I'm using SQL Express 2008, and .NET.
I'm thinking of holding all data in memory till it reaches a cert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: in java how to get files in a given directory I want to write a java code, where given a directory name, I should be able to get all the files starting with list (so something like list*) and read each file one by one (linewise), and do some processing .
What classes are available and recommended to read a directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use over by partition in LINQ? I'm confused about how to change this query to LINQ
select
CONTENT
from
(
select
CONTENT,
CAM_ID,
max(CAM_ID) over (partition by DOCUMENT_ID) MAX_ID
from
T_CAM_REVISION
where
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to close native Camera automatically, after capturing a photo using camera After capturing a photo using camera,
How to close native Camera automatically and redirect to app, without showing a preview with save or discard options .
Is this possible with Phonegap API?
Thanks
Peter
A: navigator.camera.getPicture(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I parse DefineConstants value in a BeforeBuild target? Related to this question.
What I really want of a way of setting key value pairs that is settable from the Vis Studio 2010 IDE. I seem not to be able to set Project property values from within the IDE so I am looking at using compiler constants.
So, if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to correctly create a Tablayout now that the Tabactivity is deprecated? Since the introduction of Fragments the TabActivity is deprecated.
The Hello Views TabLayout Tutorial however still uses the TabActivity and the API-Documentation has no clear answer on how to create a Tab Layout with Fragments instead of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to display the contents of the xml document retrieved from the jquery.ajax()...? I am invoking a web service through $.ajax().
onsuccess I am getting an xml document, now the problem is I need to see the contents of the retrieved xmlDocument..
Is there anyway to do that.. ??
A: Put it to the textarea field as-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Template class destructors I'm trying to create a simple template class in c++. I've been trying to compile the following but I only get a compile error. This is the code:
#include <stdlib.h>
#include <stdio.h>
template<int size>
class array {
public:
int len;
int data[size];
array(void) : len(size) {}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add a class to a list item using jQuery I have a vertical list where I am storing the current selected items index in a PHP session variable.
Now, when I come back to the same page, I want to apply a CSS Class to that particular list item.
Not sure how to set the class of a particular index in a list using jQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic List is not coming This sample uses where to find all products that are out of stock.
public void Linq2()
{
List<Product> products = GetProductList();
var soldOutProducts =
from p in products
where p.UnitsInStock == 0
select p;
Console.WriteLine("Sold out products:");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on rails complex dynamic forms I have implemented rails complex form from Railscasts tutorial in my Rails app.
I want to add ajax inside the complex form, where in I have implemented a prefill functionality inside the complex form. But I need to know the unique id of the div the complex form generates automatic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Array in UITextView I have an arrayappdeligate.biblearray. I just want to display this array in a textview. This array contains sql datas of 4 types chapterno, verses, genisis and text. i need to extract only the verses and display it in textview how to do this?
A: It seems biblearray has the objects of type bible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selenium 2.0 Found Element But Unable To Click I am using Selenium 2.0 for C# to find a radio button and click it. The code is as below:
IWebElement t = driver.FindElement(By.XPath("//table[@id='ctl00_Main__objObjectivesFeedback_ctl39']/tbody/tr/td[2]/input[@type='radio']"));
t.Click();
If I do a Console.Write(t.Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert the ordinary jpeg image bytes to the DICOM native image bytes using C# Currently I'm writing a module for the conversion of JPEG to DICOM Image Conversion. On analysis I've completed the tag rendering, now the image is not properly rendered in the DICOM file.
Is there any algorithm to convert the JPEG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySql query to return avg number od chapters by book per months I would appreciate your help greatly,I'm using php and mysql and I'm getting some unrealistic results, can you check my code if it is alright...btw the tables involved are
BOOKS
id, book_title, isbn, publisher, price, l1_subject_id, l2_subject_id,
desc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to SQL - Best way to work with a collection of objects inside another object I have a table of Items for auction and a table of bids made for those items. There's much more to the database but we'll keep it simple.
public class Items
{
public int ItemID { get; set; }
public string ItemName { get; set; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show incorrect html on page that doesn't influence the rest of the page I have got some detail content pages on my site where I don't have the complete control over the html content that is displayed in a certain div. Now when the content of the external resource contains invalid html, like having no ending my navi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: showing error generated by validation actionform data separately in struts i am developing a web application using struts, spring and hibernate. One point to be clear first: the code level is limited to jdk1.4.
i want to validate inputs from user (actionForm) and store the updates to database through hibernate. I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: display html code inside a javascript on a html page I will try my best to explain what I wish to do and do correct me or question me if I did not get my question across correctly.
I have a jquery function as follows:
function processResult(xData, status) {
$(xData.responseXML).find("z\\:row").each(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android sprite moves when it is supposed to be stationary I created a sprite that is 18 frames long and it is supposed to be stationary and run through the frames and loop the animation, but when it runs it moves slowly across the screen as it animates until it hits the last frame then jerks back to the original pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change the date format from MM/DD/YYYY to YYYY-MM-DD in PL/SQL? I have a date column in a table stored as MM/DD/YYYY format. I have to select and store the same date in another table in YYYY-MM-DD format i.e. XSD Date Format. But I am not able to do it. I am using this query:
select to_date(date_column,'YYYY-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: A callback function with C linkage required from C++ Consider a following C++ singleton implementation, using pthread_once for
thread safe initialization:
class MySingleton
{
public:
static MySingleton* Instance();
protected:
MySingleton() {};
static void InitOnce();
private:
static MySingleton... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically load class using namespaces/subdirectory in Ruby/Rails? In my Rails 3.1 app (with Ruby 1.9), I have a Deployer1 class that is in a worker subdirectory below the model directory
I am trying to load/instantiate this class dynamically with this code:
clazz = item.deployer_class # deployer_class is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C++ accesing objects far from current class hierarchy I think this is a really newb question, but I never found out the answer. I don't know how exactly to phrase this question, but I often find that I have to access objects that are "far away" from the current object in terms of the current hierarchy. I just want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual studio 2010 automatically change project type Does anybody know why VS 10 change himself project type from Web Appliacation to Web Site when this project is downloaded from Team Foundation Server?
A: Sounds like someone has changed the application and checked it in that way...
Visual Studio won't change the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Razor C# - Setting up checkbox values I have my form with my checkbox inputs, and user can edit that. I can save these values in database good, but I don't know how to refill the form, so user can edit it.
This is my ViewBag var:
ViewBag.NewFriends = preferences.NewFriends;// this value is a boolean, false
I try t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP String modification Issue I am having one weird problem.I am getting time of the day like 800 , 1200 ...
i want output String like 8:00,12:00..
I know alternatives but can anyone suggests me shortest way to complete it ..?plz
A: One way to do it:
echo preg_replace('^(\d{1,2})(\d{2})$', '$1:$2', $time);
A: Ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TableLayout in Android Development I am having issues in TableLayout, width issues. I tried searching a lot, but all I get is solution using xml. I am doing it programmatically. Here is what I am doing
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python's setup.py: how to install different files for different platforms I'm writing a cross-platform package which need to include different binary file for different platforms (e.g. Linux/MAC OS/Windows and even 32bit/64bit Windows)
I need my package's setup.py to install different binary data files based on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to extend dijit.form.button I am trying to extend dijit.form.Button with an extra attribute but this is not working.Code is given below
In file1.js
dojo.require('dijit.form.Button');
dojo.extend(dijit.form.Button,{xyz: ''});
In file2.jsp
<script type="text/javascript" src="file1.js"></script>
<div dojoType="dij... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass two-dimensional string array into a function of another class I have come across a little dilemma that has stumped me for the last few days.
I am working on a project, just for practice, where the objective is to prompt the user to input a word and print out (to the screen) that same word, but in large l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting error neo4j [not found] when trying to generate a model I installed JRuby and the neo4j gem and trying to use a generator to create a model:
jruby -S rails generate scaffold User name:string born:date --orm=neo4j
However, I get this error:
error neo4j [not found]
I tried installing neo4j through bundler ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Control sub form from another thread c# In my project, I have:
Form1, <-- this is the main form, run in main thread
Form2, <-- this is the subform
1 background worker
experienced problem:
when I create a new form inside background worker, and show it using
Form2 test = new Form2(); *test.show();*
the form shows up,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to create an alternative for List in Orchard? I just want to customize List view.
is it possible? I think yes. How?
How to name alternative for List of Content types, let say, "Question"
A: Sure. As the question is a little vague about context, I'll make assumptions. I'll assume that you have a contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to publish aspnet.mvc site? I have to publish my asp.net mvc site to the customer server. Which files should I publish to avoid to distribute the project source code?
A: Have you tried a right-click on your project an build a deployment package? VS will pack all files you need. And for the Client server use msd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create sqlite virtual table in Python I want to create a SQL-like interface for a special data source which I can query using Python. That is, I have a data source with a number of named iterable containers of entities, and I would like to be able to use SQL to filter, join, sort and preferably update/insert/delete ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JavaScript Date Object Comparison When comparing date objects in Javascript I found that even comparing the same date does not return true.
var startDate1 = new Date("02/10/2012");
var startDate2 = new Date("01/10/2012");
var startDate3 = new Date("01/10/2012");
alert(startDate1>startDate2); // true
alert(start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: To get current Instance of the session scoped bean in Jsf 2.0 i referred to this question and i've a similar problem
JSF - Get the SessionScoped Bean instance
I want to get the current instance of a managed bean in another managed bean. I've a SuperBean which is extended in a base Class - baseBean.
I set the value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clear notification in status bar after application crashed In my application I have several services running. When user stop application (UI part) services remain running in the background and display notifications ( each service has one) in status bar. When clicking on it dialog appears with choice to cancel approp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: I got error PlatformNotSupportedException when I work with date's I work on windows-mobile 6.5
the region is English (United States) date: M/d/yy time: h:mm:ss tt
I've this code:
DateTime dt_1,dt_2;
try
{
CultureInfo obj = new CultureInfo("en-US");
dt_1 = DateTime.Parse(TmpD_from, obj);
}
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use max and group by statement on my SQL query? task_name start_time value
acc_clock 2010-05-27 4
icc_opy 2010-05-28 5
icc_dtaf 2010-05-29 3
acc_clock 2010-05-25 34
icc_ruty 2010-05-23 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Arduino Ethernet and DHCP cannot communicate out to the Internet I have this web client example that gets an IP address via DHCP. It connects to my router at IP address 192.168.0.1 successfully, but then it fails to send a GET HTTP to google.com. Essentially, I cannot allow the traffic from Arduino to go out into th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python pipe in binary file from command line -u option Is there a decoupled method of passing in a binary file without suffering the penalty of python having unbuffered stdout for the entire duration of running a program (if i intend to use only cmdline and not open(...,'rb')? It seems like -u is the only way to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: validate an xpath expression in Java Given an user input string, how can I tell whether it is a
valid Xpath expression or not in Java. Just curious, since I cannot
find a way to do it using javax.xml.xpath library. Thanks.
A: I assume you want to validate the syntax but not if the expression is valid within the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: c# save trackbar.value I'm trying to save a TrackBar value to a variable but can't manage to do it since the value changed all the time.
void VolumeBarScroll(object sender, System.EventArgs e)
{
int a = VolumeBar.Value;
}
Is there any way of keeping a value?.
A: If you need to set value instantly - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: How to read all text file contents in multiple folders and save them into one excel file I am currently working on this task and got stuck. Please give me your advices. The code I am writing below, it returns only the .txt file name from multiple folders, while I would like to print out the content of each .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: looking inside a GdkPixbuf structure with ddd or gdb i would like to look inside of a GdkPixbuf structure for debugging purposes. but all i get is a <incomplete type> message.
ill show you a little snippet of example code.
//load image
GtkWidget *image = gtk_image_new_from_file("image.bmp");
//get the GdkPixbuf rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run tests in TFS 2010 with a different identity Is it possible to run the tests on TFS 2010 with a different identity ?
The code being tested require higher privileges ( Active Directory, Filesystem manipulations) than the ones the current account has.
Right now there there is impersonation in the code but I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How regroup all comments on my index page? I use FB Comments with this code
<div id="fb-root"></div>
<script src="http://connect.facebook.net/fr_FR/all.js#xfbml=1">
</script>
<fb:comments publish_feed="true" href="http://infoactu.fr/xxxxxx.html" num_posts="25" width="600"></fb:comments>
All my pages have a differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Standalone attachments using CouchRest Can some one give me an example of using CouchRest to store a standalone attachment in CouchDB?
This is for a non Rails project. So something which does not involve CouchRest::Model would be nice.
thanks,
mano
A: It looks like the CouchRest github UsageOverview wiki page has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery and php, load images and use the src of each image I have a page that display a group of images with the src of each image, but I need to use the src valu of the images.
The images loads correctly but when I try to load into input text the src value of the selection image it not work:
$("#recurs").click(f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error While sending Json data to server with Base64 encoded image string in my code i am sending the json data like this
ByteArrayOutputStream baos = new ByteArrayOutputStream();
imgbmp.compress(Bitmap.CompressFormat.PNG, 90, baos);
byte[] b = baos.toByteArray();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connect PC to Phone I want to know how to connect my PC to phone.I'm doing an Android Programme and want to run it on my phone.How should I "build and run" it in from the android-eclipse to my samsung P500 phone?
A: There is a nice guide which illustrates how to do so: Android Docs
A: There is no samsung p500 as f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Producing UTF-8 encoded XML in Java This is the code I'm using
try {
String str = "\uC3BC and \uC3B6 and <&> für";
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.newDocument();
Element root = doc.createElement("test");
root.setAttribute("attribute", str);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to check how a macro "expands" in C or Objective-C A macro is a preprocessor right. Sometimes we set things right sometimes we don't.
Wouldn't it be nice to once in a while expand the macro and see how it works?
A: You can do this with most compilers, e.g. with gcc:
$ gcc -E
this just runs the prepr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: jQuery grid for mvc3 razor? What are the most recommended free jQuery grid for mvc3 razor?
has good documents and samples
which one is for mvc3?
*
*Flexigrid: http://flexigrid.info/
*jQuery Grid: http://www.trirand.com/blog/
*jqGridView: http://plugins.jquery.com/project/jqGridView
*Ingrid: http://reconstrukt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to overcome this error:java.lang.OutOfMemoryError: bitmap size exceeds VM budget I am trying to add images in Sqlite DB and listing the images from DB to listview.... I am storing the image path to get image.
When I list the images from DB in device I am getting error like java.lang.OutOfMemoryError: bitmap size... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does HTML5 localstorage work? I have to create one application in which the user is to get some data based on his username and passsword.
Is it possible to create single persistant local storage for multiple HTML pages of a website? Do I have to insert records everytime the page loads? My expectation is that in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7606853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.