text stringlengths 8 267k | meta dict |
|---|---|
Q: Splitting a large XML file in two using C# console app I need to split am XML file (~400 MB) in two, so that a legacy app can process the file. At the moment its throwing an exception when the file is over around 300 MB.
As I can't change the app which is doing the processing, I thought I could write a console app t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Static constant members in a class C++ How do I declare static constant values in C++?
I want to be able to get the constant Vector3::Xaxis, but I should not be able to change it.
I've seen the following code in another class:
const MyClass MyClass::Constant(1.0);
I tried to implement that in my class:
static const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change the Font styles and face in Android? I want to change the font face and styles in android. How to do this? Am using emulator. Is this possible to change in emulator. Is there any permissions available to do that. Thanks in Advance.
A: You can change the font style and font face in your XML files. For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Custom image enum for MessageBoxResult I try to create a custom MessageBoxImage for the build in MessageBoxResult
For the custom MessageBoxImage enumeration, I have:
public enum CustomBoxImage
{
Foo = new BitmapImage(new Uri(@"pack://application:,,,/MySoftware;component/Images/foo.png"))
}
and the MessageBoxRes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: dictionary component in Java I am looking for an open source dictionary, The user in my application enter city name in Hebrew, and I want to translate it to English. I have another component that can use only English city names.
Where can I find such a component?
A: Did you try to use one of the Map implementations... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show alert dialog in home screen? I am trying to run alarm which make alert dialog run in home screen showing . i.e when the application is closed, and when the event time is reached, the alert dialog shows the title of the event and rings alarm infinitely. If the button in alert dialog is clicked, then the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Animating View - compatible for iPad 3.2 and 4.2 version Two views need to be resized when a button is clicked in iPad .
I Tried it with following code
[UIView animateWithDuration:1.0 animations:^{
//Target Rect of the View will be given here
}];
It works fine with iPad4.2 ,but Crashes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Form with radio buttons & checkboxes sending to php Harmiih really helped me with my script (http://stackoverflow.com/questions/7510546/html-form-name-php-variable). Basically I have a table with questions. The form retrieves the questions from the table and then I need the selected answers to go to answer.php. E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hash to Array converting I need this Hash
{"peter" => ["apple", "orange", "mango"], "sandra" => ["flowers", "bike"]}
convert to this Array:
[["peter", "apple"], ["peter", "orange"], ["peter", "mango"], ["sandra", "flowers"], ["sandra", "bike"]]
Now I have got this solution
my_hash.inject([]){|ar, (k,v)| ar << v.ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why undefined method "has_many" in Rspec example? I am playing around with an Example on testing a has_many through association in RSpec.
I am getting a
1) Foo specifies items
Failure/Error: subject.should have_many(:items)
NoMethodError:
undefined method `has_many?' for #
# ./spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "Auto-Focus" feature for the "Camera" module of my Android application I have been working with the CAMERA module for my application since few days.
I have customized the complete camera module instead of invoking the hardware inbuilt mobile camera through an intent. I have used the call backs for shutter, picture e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Represent a List of strings in GWT as widget in an editor I'm building a GWT app.
I want to associate a list of items (List < String >) to an editor.
Is there any built in widgets that support editing list of items?
Something that will show comma separated values and will know how to render them back to the proxy.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert array of words to make a sentence? I feel uncomfortable asking, but how do I convert an array of words to make a sentence ?
I keep finding the other way round.
Something like:
var a = ['hello', 'world'];
and obtain :
hello world
A: Just join the elements of the array into a string using a space as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Run bash command in Cygwin from another application From a windows application written on C++ or python, how can I execute arbitrary shell commands?
My installation of Cygwin is normally launched from the following bat file:
@echo off
C:
chdir C:\cygwin\bin
bash --login -i
A: From Python, run bash with os.system... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight refresh an Image depending on a variable stored in IsolatedStorage I'm pretty new in silverlight and I have some problems with my application.I keep the application date in database and in IsolatedStorage.
I have an Image control on the top of the UI where the user can always see the application current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to stop PHP SoapClient converting s1:char arguments to 0 or 1 in request PHP's Soap client appears to be handling arguments with type s1:char incorrectly when building the request. The Soap API requires either 'Y' or 'N' but in the request XML I get '0'. (Passing Bool true results in '1' but that isn't accepted ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Online Forms: Making Drop Down Box(es) Available When Check Box Selected I'm looking for some help with forms! Having learned a decent bit of HTML and CSS, I'm still a bit of a newbie when it comes to forms and the server-side scripting behind them. I hope my question is fairly self-explanatory, but to clarify wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RubyTest in Sublime Text 2 I am trying to get RubyTest to work in Sublime Text 2. I followed the Instruction on the Github Readme and get the following error. Does anyone know how I could fix this?
/bin/sh: rspec: command not found
A: This is most likely due to using RVM. What is the output of
which rspec
on you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to get Dropdownlist selected value How to get dropdownList selected Item from CSHTML page.
<div class="editor-field">
@Html.DropDownList("ROUTE_GROUP_ID", String.Empty)
@Html.ValidationMessageFor(model => model.ROUTE_GROUP_ID)
</div>
A: If you want its value in jquery you can do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Main page condition in Ruby on Rails I need to display advertisement only on main page of my website (example.com). I've set up a root_url to posts controller:
map.root :controller => "posts", :action => "index"
I have global layout and I want to place in that view IF statement. The problem is that I have no idea h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find out the number of calls to the nCr function What is the solution of the following recursive equation?
T(n, 0) = 1,
T(n, n) = 1,
T(n, r) = T(n-1, r-1) + T(n-1, r) + 1
I got this while trying to find out the number of calls to the function nCr, in the following definition of nCr
int nCr ( int n, int r ) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem controlling an existing service from an activity I am an Android newbie. I am starting a service at Phone Boot Up. I would like to control this service from an activity I would launch later. I however am unable to do so.
Is it because I am launching the service from the BroadCastReceiver and there is some pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open movie stream in another view I have in my app a tab view with many tabs, and in one of them I have a button that when is clicked, I want to show a movie stream in a view. I have this code:
NSString *moviePath = @"http://10.0.0.4/prog_index.m3u8";
theMovie = [[MPMoviePlayerController alloc] initWithContentURL:[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to enable a select_tag based on the option from the check box I have a Ruby On Rails application.
I want to enable the drop down list only if the check box is enabled.
Please let me know a way to do this.
Thanks,
Ramya.
A: Do it with jQuery. Add a click handler to your element, and do your checks inside that. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stored Procedure Inserts date value one less than the actual date in the XML string I am using XML to insert/update/delete records in table. But when I insert the row, the date value is inserted one less than the actual value. Below is the code for my Stored Procedure
IF(@Mode='UPDATE_TABLE')
BEGIN
;WITH XmlData... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unknown symbol in while loading a kernel module I need help understanding why I get an error when I insert a module. I have tried this with no success.
$ sudo modprobe lpfc_scst
FATAL: Error inserting lpfc_scst (/lib/modules/2.6.32-33-generic/extra/lpfc_scst.ko): Unknown symbol in module, or unknown parameter (see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What are ReservedCodeCacheSize and InitialCodeCacheSize? Can someone please explain what the JVM option ReservedCodeCacheSize and InitialCodeCacheSize are? Specifically when/why would I want to change it? How do I decide what the right size is?
This is what the docs say:
-XX:ReservedCodeCacheSize=32m Reserved code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Problem handling correctly strip_tag/substr in preview and expanded post I need to show a 4 line context all without tags and the rest of it only with <br> tag.
What I though for the first part is the following that runs correctly as I want:
*
*I strip_tags description and save it to $post
*Get only 320 chars a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoid max char limit c# To exceed the max path limit in c# you apparently need to concatenate your drive path with @"\\?\" at the beginning of it. If I do this then I get a drive path with the following at the front
\\\\?\\\\\\server\\share\\...
Now if I look for the file/folder it will fail because of illegal char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php: wordwrap text file contents to fit it in letter-size print page ( each line to Pixel width) I want to print simple text file (no style, formatting ) ,such that it fits in letter-size page and any overflow should be wrap to next line etc.
wordwrap()
php wordwrap function is doing what needed , but I am not sur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force open links in same window on same domain could someone help me with this problem.
There is requirement to open all links when they are on external domains in _blank. But links in same domain must be opened in same window. I having issue, because I working in 2 domains one is https://www and other just http:// ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Associative style arrays in Javascript? I'm trying to assign an object in the style of an associate array in JS but it's failing, saying 'task.id' is undefined. Why is this?
var response = Object();
$('.task-list').each(function() {
response[this.id][$('#' + this.id).sortable('toArray')];
});
A: You are referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using LocationTextExtractionStrategy in itextSharp for text coordinate My goal is to retrieve data from PDF which may be in table structure to an excel file.
using LocationTextExtractionStrategy with iTextSharp we can get the string data in plain text with page content in left to right manner.
How can I move forward... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Clicking submit clears file field instead of submitting the form (IE9) I got a weird error I hope you guys can help with.
Sometimes when the user tries to submit a form the file upload field image just clears and nothing happens. I doesn't seems like the form get submitted at all.
Then the day after everything work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: In Watin, how to wait until a form has been processed by the server? I'm submitting a form to my server via JavaScript in the view, in order to start a server-side job. The view detects that the job has finished by a JavaScript callback being called. The exact details of the JavaScript communication between server a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PsExec hangs without output when not using -d or -i I'm starting PsExec inside a WCF web service to execute a remote command and capture it's output.
It's being run while impersonating a certain user.
When trying to run a non-GUI command (like ping, tracert..), PsExec just hangs unless I use -d or -i.
Because I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IE CSS Issue with nest LI tags The footer in the folowing site contains a sitemap:
http://www.openawards.org.uk/
It doesn't look right in IE and I can't figure it out can anyone
A: Remove float:left from #explore ul li a
A: The problem is with your float left for the a tags. Try looking at the before pseudo selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening a new window from asp.net chart control I am firing JS window.open command from the asp.net chart control but that is not getting fired up.
Below is the code of an .aspx page that would build a pyramid.
<div>
<asp:Chart ID="Chart1" runat="server" Height="416px" ImageType="Jpeg"
Width="525px... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why use private lock over intrinsic lock? While reading about synchronization, I came across "monitor pattern" to encapsulate mutable states.
The following is the sample code
public class MonitorLock {
private final Object myLock = new Object();
Widget widget;
void someMethod() {
synchr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Remove unwanted section breaks from Word? I am trying to create an envelope in MS Word. The following code will create an envelope, but I get "section break (Next Page)" at the top of that page. I would like to remove that.
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IBus: Couldn't receive data from agent I load ibus in Emacs, but I active ibus fail.
The note is IBus: Couldn't receive data from agent.
Thank
A: I think you need to set up LC_CTYPE. As I used Chinese input with ibus, I just set LC_CTYPE=zh_CN.UTF-8 . Without such setting, it seems not possible to trigger ibus-mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does json support arabic characters? i want to ask quick question, is json support arabic characters i mean when i search for something like following
$values = $database->get_by_name('معاً');
echo json_encode(array('returnedFromValue' => $value."<br/>"));
also I'm looking for arabic result from the database, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: asp.NET - Custom Error Messages I have this code in my web.config file:
<customErrors defaultRedirect="~/GeneralError.aspx" mode="On">
<error statusCode="401" redirect="401.aspx" />
<error statusCode="404" redirect="404.aspx" />
</customErrors>
This works perfectly on my local machine while running IIS and it r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem with background image of Bar Button Item I have a Bar Button Item and I wanna set a background image for it.
Both the button and the background image are set in the xib file.
Here how it looks like:
As you can see the image doesn't covers the whole width of the button.
Now, I tried setting up as background... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JBOSS 7 - Osgi Bundles not present in JNDI TREE I have a bundle in JBOSS7 Bundle Repository.
I want to lookup it from a WAR class throw JNDI, but in my JBOSS7.0.1.Final AS there is any trace of osgi in JNDI tree.
In JNDI tree I found only "java:" and "java:jboss", I think that when I deploy a bundle the AS should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save feature in AS3 I'm currently developing a project manager in AS3 and I want to save them into files. I found this tutorial (http://www.purplesquirrels.com.au/?p=1297) to create and read my own file types, but its using AIR.
I want to put some instances inside it too, because I need to know how the objects are p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to zoom a MapView so it always includes two geopoints? I have two geo points that vary intermittently, and want the MapView to resize and translate to make sure both points are always visible. I can easily re-centre the map on the point mid-way between the two, but how do I set the zoom level to ensure my two po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Add class on button click using javascript I am trying to check the username is available or not using button click event in javascript but when the user hits directly the button without entering anything in the textbox it's showing me as available.
So I want to make as "please enter some text" message when the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: achartengine draw axis without data? It is possible to draw only x and y axis without data? (because in my app I must draw line after 5sec). I set min and max values for axis, but without any data graph doesn't want redraw.
A: You can just add empty Arraylist to dataset.
A: What toni means, is adding and empty dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# How to detect if an external application has popped up a window? I keep getting multiple verification prompt from a 3rd party application where on many instances I have to select the prompt window, type my password and click on Ok. I thought of writing a simple application in WHITE framework which can capture the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating a non-guid unique key outside of a database I have a situation where I need to create some kind of uniqueness between 'entities', but it is not a GUID, and it is not saved in a database (It is saved, however. Just not by a database).
The basic use of the key is a mere redundancy check. It does not have to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: matplotlib large set of colors for plots I have a lot of graphs I want to plot in one plot. I've just started with matplotlib and can't find a good way to generate a lot of distinguishable colors :( Maybe cycling over HSV with SV at maximum?
I'm thinking of something like
args=[]
for i,(x,y) in enumerate(data):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Maven pom.xml - build modules + self build I have the next project structure:
app
module1
module2
...
moduleN
parent-pom
Project app contains only properties files and JasperReports's reports templates. Pom.xml of app:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the tools to draw icon for winform application? I'm new to programming and to winform. I want to create an icon for my winform application. What are the common tools to create icon for winform?
A: Once I had worked in 3d animation field for few years. So I am pretty hands on with Adobe Photoshop and in gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I want to backup all my android phone book contacts into an XML file How can I store and reload my Android contacts in XML format.
Please can you give me some suggestions or some sample code?
A: E.g. this post might be helpful for reading contact data.
This one for writing XML.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7513276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I customize a single edge of a UIView? I know by setting the borderWidth and borderColor property of the layer of an UIView allow me to customize the whole border.But now I just want to change an edge of the border, can anyone know how to do that?
A: I think an easy solution is to add a sub layer on your vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoid data redundancy in ASP.NET page I have an asp.net page which uses a listview to show 2 columns of data.
The first column has just labels and the second one has dropdowns.
My concern is, the dropdowns in second column has same items 100% of the time, they never change and since it is databound, and datasource t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android- location application optimizing I have created a location application which will show the current location in the google maps api on my device, but i am confused in using network provider and gps provider.
I want my application to use the network provider when the application is opened, so it can quickly po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript function declaration. When to use what?
Possible Duplicate:
Javascript: var functionName = function() {} vs function functionName() {}
What is the reason you would do:
somename = function(param1, param2) { }
In stead of doing:
function somename(param1, param2) { }
A: Well since the 1st syntax is a v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to convert the result of jQuery .find() function to an array? What does jQuery .find() method return? a object OR a array list of objects?
If it returns an object which contain all the matched elements. How to convert this object to an array?
If it returns a array of elements, why $(xml).find("DATE").sort(mySort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Strange limitation in the implementation of internal interface I have code
internal interface IFoo
{
void foo();
}
public class A : IFoo
{
// error CS0737: 'A' does not implement interface member 'IFoo.foo()'.
//'A.foo()' cannot implement an interface member because it is not public.
internal void foo()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can i do paging in asp.net mvc3? I am working on asp.net mvc3 application and have many records coming from database. I want to display only 10 records first then user can click on button to see next 10 records and so on... Like facebook wall posting more records.
How can I implement this thing in my application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reflection to avoid System.Web reference I have a shared reporting dll that is used in both windows and web. I am now trying to move the windows programs to .NET 4 client profile so need to avoid System.Web references.
At some points the code needs to get the directory of the website or the directory of the dll. I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse - Install New Software not working I am using Eclipse 3.5(Galileo). When I choose Help-> Install New Software, It does not Popup any dialog box to process further. Is anything I have to check to work on this?
A: You need to add the libraries:
go to:
Properties-> Java Build Path->Libraries->Add Librariy
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7513309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to control the transparency of a view in a RelativeLayout in android? I have a RelativeLayout that holds a set of views and i would like that one of the views will
appear in front of all the other views? how can i do that ?
Thanks
EDIT :
OK, i will be more specific.
here is the code of my relativelayout, this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Response encryption problem I get the response as follow:
TIMESTAMP=2011%2d09%2d22T10%3a20%3a24Z&CORRELATIONID=fa0181684fd81&ACK=Success
&VERSION=65%2e0&BUILD=2133933&AMT=0%2e12&CURRENCYCODE=USD&AVSCODE=X&CVV2MATCH=M
&TRANSACTIONID=6PT23270XK626941N" in this encrypted format
How can I get original text string? This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to render a helper I've built a helper which returns the string which I supposed to insert into HTML.
I'm using Haml, so html.haml file has this line:
= build_filetree 'small'
It rendered the result into this:
<ul class="filetree"><li><span class="folder">
folder</span&g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making a responsive HTML5 mobile app I have recently started using LinkedIn and Google's mobile apps like Gmail/G+ etc and they are so fast, intuitive and simple to use.
My question is what steps the engineers would have taken to make such apps? Are they rendering entire HTML or just update the portion of it?
A: "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set this layout? I am going to implement the Calculator type application.
In that I have set the Different button as like below code:
<RelativeLayout android:id="@+id/linear_layout" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing command line arguments from Maven as properties in pom.xml Is it possible to pass arguments from command line to properties in pom.xml file ?
for example I run mvn ... argument
and in pom.xml
<properties>
<myproperty> here should add argument from command line</myproperty>
</properties>
Thank you for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "123"
} |
Q: getting a mysql array? Not sure really what to call it. But in my mysql database I have tons of values like this :
a:2:{i:5;s:10:"likes";i:10;s:10:"likes";}
a:3:{i:5;s:10:"likes";i:10;s:10:"likes";i:11;s:10:"likes";}
I was under the assumption this is a form of an array and I have seen this before in another dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read cookie values through javascript or jquery I have called one asp page inside the iframe
You can check here: https://www.fiestacups.com/ProductDetails.asp?ProductCode=DUMMY
If customer select font and select clip art image or upload image for clip art then I have store all that values in cookies.
Now I want to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Consistent UI rather than constant UI across platforms using sencha touch I was wondering how do i create consistent UI across all the platform rather than constant UI. Here by consistent i mean UI should look native to that particular platform. For example a tab bar in iOS is at the bottom and has particular look a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: For google map route do we really need internet connection I am working on a assignment in which there is a need to calculate latitude and longitude of source and destination and based on source and destination lat long, i need to draw a route on google map between source and destination. so to complete this assignm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deploy MVVM WPf N-tier application so , my users suddenly changed their minds and decided to go for a networked application , I have
views and viewmodels on the same project (UI) , a BLL layer dll in a ClassLibrary project and my DAL was generated using EF in another ClassLibrary project, In my development m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System.threading.timer not working in Windows Service I am using System.threading.timer in Windows Service.
But the timer is not successfully executed.Below is the code.
protected override void OnStart(string[] args)
{
try
{
eventLog1.WriteEntry("In OnStart");
TimeSpan dueMi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: socket connect timeout in c using poll I have an existing multi-threaded application which uses blocking connect() call.
However, I want to introduce connect timeout for application where if server does not respond to our query in x milliseconds, application will stop trying and give error.
However, I am not able t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Sever Execution time-out vs .NET SqlCommand.CommandTimeout. Who wins? I tried to find the answer search this page and google with no luck!
If I change the "Execution time-out" on the SQL Server instance (Tools->Options->Query Execution) and sets the SqlCommand.CommandTimeout in the .NET code using the SQL Server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Java Spring 3.0 @NumberFormat annotation I'm currently working on a small project trying to get Java spring validation working on a web form. It does work, however I have one input for inputting age, which I then convert to number format using this annotation, if I input letters it causes this to be displayed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple NSUrlConnection Run Simultaneous In my apps, there is a function which will download a file via HTTP URLConnection and write and append the data received to the files. That is some music files which needs couple minutes to complete the download. During the download, user may need to request some other JSON ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Example of SOA model in real world would you please show me a SOA model in real world?(Service Provider,Service Broker,Service Requester)
Thank you
A: It is difficult to show you examples of real world. But here is an some of the articles I have written to show such integration using ESB and BPS.
http://wso2.org/li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DB2: converting date values to varchar I am new to databases, in fact this is first time.
I want to select the date column from a table and the date to be printed as an output in some given format, like is there a way i can specify the format of output of this conversion.
eg:
date: 01/01/2011
output :
Jan 1 2011
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java class/interface naming convention
Possible Duplicate:
What is standard for Interface naming in java api
Why is a *able word used for a class such as Throwable, since this convention is primarily used for interfaces (e.g., Cloneable, Serializable, etc.)?
A: I don't think there is a convention that says that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: vim change :x function to delete buffer instead of save & quit I want to set :x in vim gui-mode to delete buffer because I always kill the whole gvim, which is kind of annoying. I know i can specifically set gui problems with if has("gui running") but don't know how to remap :x
thanks in advance
ps.: maybe the tag/t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Pass initial value to a modelform in django How can I pass an initial value for a field to a model form. I have something like the following code
class ScreeningForm(forms.ModelForm):
class Meta:
model = Screening
def __init__(self, *args, **kwargs):
super(ScreeningForm, self).__init__(*arg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: NewGuid vs System.Guid.NewGuid().ToString("D"); Is there a difference when you generate a GUID using NewGuid(); vs System.Guid.NewGuid().ToString("D"); or they are the same thing?
A: Using System.Guid.NewGuid() you will get a object of Guid type
Using System.Guid.NewGuid().ToString("D"); you will get the string rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: check if a movieclip exists on a specific location relative to event.currentTarget How can I check if the stage contains a movieclip on a specific x and y location on the stage?
I'm building a colour-guessing game. The purpose is to walk a path through a generated field of hexagons, each assigned a random colour (ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what's the right Windows folder to exchange data between local users? I want to write a file in app running under local regular user account and read it in service. What's the right folder?
I'd like to avoid %APPDATA% (CSIDL_APPDATA) folder because service would need to realize where's this folder are (service is r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: crystal report for vs2010 Which version of Crystal Reports is compatible with VS 2010, and where can I get it? How do I install it with VS 2010?
If you have any tutorials please give me links.
A: I had to install it on my enterprise last week. VS2010 uses the version 13.0 so that you have to install the crystal rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create custom reports with crystal reports and entity framework 4 I want to allow users of a asp.net mvc 2 application, creating dynamicly reports. In a SQLServer Database is a table with all tasks for a user. Every task depends on a project and a user. What I want to do is to create some reports like "show me all t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I detect when a user is at the maximum zoom level? (google maps v3) I am clustering my markers together. When a user zooms in to the highest level I need to break the clusters up so that the user can view information for individual items. Given that the number of zoom levels is different depending on the type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c# linq keep only matching dictionary values based on list I have one composite dictionary and one list
Dictionary<Point, List<int>> GroupedIndex
int[] TobeMatched
Now I want to check for every key, whether there are any matching values in the TobeMatched array. If it is matching, then keep only matching values for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't I run an app after installing .NET Framework 4? Please use simple English, my language skills are not as good as yours! :)
I installed .NET Framework 4 for one app but when I run the setup for that app, I see this error:
Installer information
Microsoft .NET framework 3.5 SP1 or greater
needs to be installed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert a double array to a float array I have a double[][] array, and I want to get one row into a float[] array. Casting didn't worked at first, so I looked for something different.
I found here in stackoverflow an elegant solution to convert Object[] to String[], which also would work if I were converting Object[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: JPA Annotations for many-to-many relation between objects of the same entity I want to implement a Role Hierarchy but am rather new to JPA Annotations.
I have a Role Entity with a name and an id(implicit via AbstractPersistable):
@Entity
@Table(name="role")
public class Role extends AbstractPersistable<Long> {
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does Excel 2007 supports plugins written in Java?
Possible Duplicate:
I want to write a plugin for Excel 2007 in JAVA
I want to extend some functionality of Excel 2007.
So I want to write my code in Java, will it be supported in Excel?
A: It's not easy as Java "applications" run inside a Java virtual machine and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Do not restore passwords inserted in iOS Keychain issue I'm developing an application for an iPad2 that needs to write some items in Keychain but I don't want it replicates in every computer I plug, doing a backup/restore of the device. I'm using kSecAttrAccessible key to select the kind of accesibility I want with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to block the accept method of socket when server is waiting for the connection from client? how to block the accept method of socket when server is waiting for the connection from client?
my code is here:
ServerSocket serverSocket = null;
try {
serverSocket = new ServerSocket(4444, 100);
} catch (IOExceptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Weld CDI: how to make one bean class satisfy any of multiple qualifiers? From reading the Weld docs I don't think this can be done, but I could really do with it, so thought I'd ask - if there's not a way with CDI, maybe there's a pattern workaround...
I've created a custom qualifier with a member:
@Qualifier
@Targe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Border, Label for a line segment WPF I am trying to create effects like rail track and streets-with-border-and-label in WPF. How do I add a border to a line segment and a label that is along the line segment? I tried Border class, but it creates a rectangular border.
For the label, I tried Text on a path but it tak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7513462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.