text stringlengths 8 267k | meta dict |
|---|---|
Q: asp:DataPager onclick event I am working with the .Net List view along with a data pager to enable pagination for a list view.
I am able to set the pagination working perfectly for the list view but I wish to have a method being called when ever the user clicks on any of the page numbers in the data pager.
I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WSDL WebService I need comunicating using java with a WebService that uses the WSDL technology.
I tried some libraries but with no success, thus, I decided to do it manually.
My plan is getting a .xml which uses the comunication (filtering with fiddler for example) and copy it manually building a string. So the .xml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why i got the Error like Package file was not sign correctly? I have Uploade the App on android market few days ago.
Now i have make another version of that application. I have Sign that Application with the same keystore and with the same package and Application name.
The Only things i have change is the version co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to join 2 images in google app engine in Java I saw python codes to join two images in google app engine with 'composite'. But I need java codes to use 'composite' to merge two images. Showing an actual code would be very helpful.
A: This is my first reply, so hopefully I won't be hammered too badly. Since nob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Grails Calendar plugin throws stack / recursion error Calendar plugin version :CURRENT RELEASE 1.2.1
I followed steps as mentioned in the grails plugin documentation, I get the following error in all types of browser
Chrome 14.0835: Uncaught RangeError: Maximum Callstack size exceeded.
Firefox 6.02: Too much rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find the date of the first commit of files in git Would there be a way to see the date of the first commit of a list of files, such that I could order them by that list?
For context, I'm playing around with Node.JS, using it to create a simple blog where the "database" is actually a git repository.
What I tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: check element has a class starting with string using jquery I am getting the last element from a form which has a value like this:
var lastOne =$(':text[name^=distanceSlab][value!=""]').last();
now I want to find the element which has a class that begins with the string "limit".
I have tried something like:
if(las... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why the result is not in my expectation? #include <iostream>
using namespace std;
typedef void (*pFun)(void);
class A
{
private:
int a;
int b;
virtual void outPrint()
{
cout << b << endl;
}
public:
A()
{
a = 3;
b = 4;
}
};
int main()
{
A ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: libgdx SpriteBatch render to texture Is it possible to render to texture using SpriteBatch in libGdx (Java engine for Android/Desktop)? If so, how do it?
Basically I want to render everything to 320 x 240 region of 512 x 256 texture and than scale region to fit screen (in landscape mode). This way I want to eliminat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Is it possible to protect our documents from getting copied using HTML 5 or general Web technologies? I want to develop a Web App for Mobile users, which will provide users with documents for users to view. I want to ensure that the documents once downloaded to temp folder needs to be deleted once user closes the wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery: How to focus on input text field such that the cursor is placed at the end of the text? Consider the following example: (demo here)
HTML:
<input type="text" />
<div>Click here to set focus</div>
JS:
$(function() {
$("input").val("Hello");
$("div").click(function() {
$("input").focus();
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Trying to force some kind of IEnumerable.Each-method I have the following snipped inside a Razor-file:
<td>@item.Mottakere.All(q => {
@q.Epost <br />
})</td>
Where @item is a object from a foreach ... Model.ToList() and @item.Mottaker is a List inside this object.
I know this doesn't work, mostly because All ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proximity 'Hit tests' from multiple arrays (Action Script 3) I know this should be possible and Im pretty confident with my code. I have two arrays that are dynamically filled from another function. When two sprites from each array interact they should trigger a function, but at the moment they just glide right past... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery form validation plugin - temporarily disable and then enable I'm using Jquery form validation plugin. http://docs.jquery.com/Plugins/validation
All I want is to temporarily disable the form validation while am performing some other operation and after that re-enable the validation on that form.
I used unbind.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XNA: NullReferenceException when playing SoundEffect from another class I'm both a C# and XNA noob, and I'm a bit stuck.
In my Game1 class, I have added a SoundEffect object. From within this class, I can then play the sound by using [objectname].Play();. E.g.
public SoundEffect newSound;
newSound.Play();
However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show more than one textview title in a list view? I have a list view and i'm trying to show more than one textview in a listview? How to achieve it? any example code ? thanks in advance...
A: You need to create a custom list adapter. There are many examples online. Google for "android custom list" and u wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with directories - Python I have the following piece of python code. The code is supposed to get a source, a temporary and an final output path from the user and extract some header files. When the full paths are specified from the terminal, the program works perfectly but when the terminal command is as so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: maven plugin to call or invoke a rest web service Is there any maven plugin which will be invoking already existing rest web service? or else is there any way to invoke a web service in pom.xml.
like we have for invoking a external command
org.codehaus.mojo
exec-maven-plugin
1.2
plea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SQL Server database sync with another database table I have 2 tables. The 1st table is just a normal table in a database inside SQL Server. The 2nd table is also a table in a database except that it belong to SharePoint 2007 and is not known even though one can go to the SharePoint site to see that it belong to a Sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Special Character in UserName for iPhone app Have some special character in username like tüser, when i try to add it into NSMutableDictionary it is adding in a different format. Let me know how to resolve this issue.
A: What do you mean with different format? If you are using NSLog to print the content of dictiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto get javascript value in HTML form I've got jquery using the sortable plug in.
I'm using the following function to get the values.
$(function() {
$( "#sortable" ).sortable({
placeholder: "ui-state-highlight"
});
});
function overzicht(){
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - Accessing SPAN values I'm new to PHP but I'm working on an email script for an order form.
I have all the values and what not in a form, with a text element that is span-ned for javascript access client side.
What I need to do is also access these span values when I POST.
HTML:
<form name="myform" action="sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Text Positioning with IText for Java I need to position different text before I generate the pdf using IText. I've been thinking of using Chunks, but I don't know how to position them separately. I also tried using PdfContentByte but it doesn't generate any PDF File.
A: Why don't you use tables combined with Chunks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to avoid the page reload while using javascript I am using javascript in a jsp page to make some changes [adding a row in the table] to the current HTML page. The addition is happening successfully, but when i am about to exit from the function the page is getting reloaded.
How to avoid the page reloading and, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML in Symfony2 form labels instead of plain text I am trying to implement something like this:
<div>
<input type="checkbox" name="checkbox" id="checkbox_id" />
<label for="checkbox_id">I agree to the <a href="/tos">Terms of Service</a></label>
</div>
The closest I've come to implement this is through:
<d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: No module named _core when using mailer.py on Windows/Python 2.7 I'm trying to configure and run SVN post-commit hook sending mails. I've downloaded class mailer.py, installed Python 2.7 and svn-win32 bindings for svn. The machine is Windows-7 64 bit, the Python is 32 bit. Now the mailer.py ends with error, which is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Find value between array values I have a large array and would like to find between which array values the search value would appear.
A simplified version of this array is as follows:
[0] => Array
(
[min] => 0
[max] => 4.999
[val] => low
)
[1] => Array
(
[min] => 5
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regex Text Field Validator for iPhone I have the following behavior of a desktop version of a software:
*
*a text field is validated with a regex abc|xyz
*this means that a user is allowed to type a, ab, x, xy, abc, xyz, other symbols will not be shown in a text field
I have to port such behavior to iphone.
St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get Attribute model by attribute_code in Magento How could I get Attribute model (from: eav_attribute table) by attribute_code in Magento?
Notice:
- I don't care what is entity_type.
Thank you so much.
A: You have to know entity_type because you can have the same attribute_code for different entities. So to get att... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Facebook Send button causing horizontal scroll I'm working on Ruby On Rails, and just integrated Facebook Send button in a project. When Clicked on the "Send" button, the popup window is going out of the screen and causing horizontal scrollbar. I tried a few solutions on some blog-sites and stackoverflow, but could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to see the source code of a particular html tag by onClick() javascript without showing its css? Hi everyone,
here am trying to display the source code of a particular div by onclick
javascript function. But the result am getting is , when i click on the div, am seeing the
whole source code thoug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to store data , and add button in firefox / chrome javascript plugin im beginner to java script / XUL development and c++ if needed .
i have 2 basic questions and i need some directions .
background : i like to build simple plugin that schedule by date actions to preform.
1. can i store data ( dates + ids ) so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sinatra with Warden & Omniauth Need some high level advice before putting the pieces of an app together..
I'm not entirely sure how these three pieces should fit together.
My understanding:
I have the user log in using omniauth and get redirected to a callback, where I can get information provided by the API and u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using class to call jQuery UI date-picker doesn't work I'm using jQuery UI datepicker - the range version. I have a form and in the input field (text) of the "from date" I call the datepicker. It works fine.
The problem is that I also have in that field an image (of a calendar) that I set it's class to be the same o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Protect Base Field's Public/Private If i have a ClassA
public class ClassA
{
public string name;
}
Where Attribute Name is Public ,and it can be modified from Anywhere .
Than i have a ClassB
public class ClassB : ClassA
{
private string name;//But it's not Woking ,name is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fixed positioning in Android 2.3 browser should work... shouldn't it? From looking around on the net, my understanding is that fixed positioning should work in Android 2.3 if one has the right meta tags set.
This is what my current viewport settings are.
<meta name="viewport"
content="width=device-widt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Jquery accessing appended element id with another js script Im trying to call a js function on a HTML element which I have appended to the page using JQUERY.
<body>
<div id='father'>
</div>
<input type="submit" value="choice one" onclick='choice_one()'/>
<input type="submit" value="choice two... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it good to pass CamelCase controller name in Cakephp URL? Sorry for this basic question
I have a controller named "UserProfiles" it contain a function named "view".
But when a user login i redirecting to that view method.
I using the following code :
1.) $this->redirect('/UserProfiles/view');
and i have other o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to run Selenium tests parallelly in one machine I have two test suites configured in build.gradle and i am using selenium-server-standalone-2.1.0.jar. How can i make use of selenium-grid to run selenium tests parallel. Is it possible to run two different test suites at a time?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7551793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Displaying a google map in google closure How can I display a map in Google Closure. There seems to be many UI widgets but none for showing a map
A: I'm confused. Since Google Closure is a javascript library, can't you just use the Google Maps Javascript API? Something like:
<script type="text/javascript" src="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Collection usage in BackboneJS Which is better to use the collection:
*
*Collection contain the total list of data, and include a function to select the the part of data show in view. Lots of data should be loaded in client side.
*Collection only contain the data to show in view. In this way, require to fetch da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails and sqlite 3 in different locations - problem? I'm working with an Agile Web Development book to learn Rails, and it's using sqlite 3 for a database. On my Mac Snowleopard system sqlite3 is installed in
/opt/local/bin/sqlite3
whereas the other necessary components are all
/usr/bin/ruby
/usr/bin/irb
/usr/bin/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: closing the current popup window on button click in apex using salesforce i am in a strange situation
I have an apex page
inside that page there is a button on the click of which i call a a javascript method.
From this method i call window.open(url) and open a new popup window.
Now this new window is also an apex pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to access res/drawable/"folder" On my application I have many pictures which I have grouped in folder under res/drawable. But Android dosen't let me access them trough "R". Is there a way to access those folders.
This is the Code im using for.
ImageView iv = new ImageView(conext);
iv.setImageResource(R.d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Eclipse: Autocompletion for Spring beans in Spring WebFlow? I am using Spring Web Flow 1.0 and Spring 2.0 (beans are defined in XMLs).
In eclipse (Indigo 3.7), I'd like to enable autocompletion for my beans when writing web flows. I am already using Spring IDE plugin.
Example (I'd like to prompt autocompletion for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android OverlayItem on View class I am searching for a solution that will place an OverlayItem on a simple class extends View. All tutorials about OverlayItems are showing only how to set them up on MapView. I know, there's that method, getOverlays() or something, which returns ArrayList of OverlayItems. All is clea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the text / content using properties files at runtime I'm using ResourceBundle.getBundle() to load property file in our portlet
But If any user wants to change contents of that property file at runtime without deploying that portlet again.
How can it reflect in UI[get latest value from property file] without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java private method override I came across this scenario. We have a class lets say Main having a private method print. There is another class Main1 which extends Main class and redefines the print method. Since main1 is an object of Main1 class, I expect main1 print method to get called...
public class Main {
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to set invisible false only a charator of a string using js or JQuery I am having a string
"Custormer1#-#Project1".
I want to invisible the two #s in the string? Can I do this without replacing the character using javascript or JQuery?
A: The only option you have is to wrap them in a <span>-element and hide th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Redrawing screen in cocos2d Is there a way to force a redraw in cocos2d? I have this code:
CGSize s = [CCDirector sharedDirector].winSize;
glLineWidth( 5.0f );
glEnable(GL_LINE_SMOOTH);
glColor4ub(255,0,0,255);
ccDrawLine( ccp(0, s.height), ccp(s.width, 0) );
which draws a red line. However it only work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Measuring "total bytes sent" from web service with nettcpbinding using perfmon I have a web service (WCF) exposing both http endpoints and a tcp endpoint (using the nettcpbinding). I am trying to measure the difference in "total bytes sent" using the different endpoints.
I have tried using perfmon and looked at the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reflect WF4 System.Activities
Possible Duplicate:
Reflector Not Decompiling 'System.Data.Entity.dll' .NET 4.0
I want to reflect the WF4 System.Activities assembly.
The problem is when i open it in the reflector all the methods are empty!
I can reflect the WF3 System.Activities...
Does any one know if i can reflec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate distance and time between two CLLocation throughout the whole ride with CloudMade maps? In my iPhone application I allow the user to choose a destination on the map, then when he starts driving toward the destination I want to give him information like: how long until he reaches the destination and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android ViewHolder in CursorAdapter causing listView to get screwed I've been struggeling in the past few days trying to figure this out, I hope you can help me...
I have an Activity that shows a list of Players by setting a listadapter like this:
PlayerCursorAdapter playerAdapter = new PlayerCursorAdapter(this,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: target to a div without reloading the page in javascript i wrote a web page that included some stuff. There, i need to create a input text box after clicking on a button, but it will be at the bottom due to existing stuff and i can't see the input box as it is in the out of visible area.there i'v to scroll down to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Write an array on.plist I have a problem. I have this file dictionary .plist:
<plist version="1.0">
<dict>
<key>2</key>
<array>
<string>a</string>
<string>b</string>
<string>c</string>
</array>
</dict>
</plist>
So now I read this file in this way:
NSString* plistPath = [[NSBundle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a method applicable to a String object I would like to create a method applicable to a String object, that will return a modified String:
String s = "blabla";
String result = s.MyNewMethod();
I have tried to create a new class String but keyword this seems unknown:
class String {
public String MyNe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby file is in search path but can't be found by 'require' I have a Rails app that's trying to use the gnuplot gem, but Rails won't bother to load it. It's in my Gemfile and I installed it with bundle install. Bundle knows about it:
vp117025:src tim$ bundle show gnuplot
/Users/tim/.rvm/gems/ruby-1.9.2-p290/gems/gnu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails not printing messages to log file using custom appender My Grails application is going to mirgate an existing database to a new database. I got some unformatted email addresses from the existing database which do not pass validation with my Grails application because of a constraint (email:true), so I get a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC Testing actions that rely on HTTPContext I have a project where I need to provide action tests. My approuch has been to ensure actions do not rely on anything they do not receive as parameters, maing use of ValueProviders and ModelBinders. As such I would pass in HTTPContextBase etc.
However, I now have an actio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: symfony plugin installation failing [bhLDAPAuthPlugin] I'm working on a symfony project and I need a user access conected to an LDAP server. So I searched for something already done to add to my app and found this plugin that has all I wanted.
So I tried to install with the command $ php symfony plugin:install bhLD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Integrate non supported fonts in WP7 I am creating a English to Mangolean Dictionary app; So i need to display mangolean word corresponding to my english word; i read from a blog that wp7 only supports limited language set. So how can i over come my issue. Please help me to solve this issue.
A: There's a tu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to create a folder in network drive To create a dynamic folder in local drive it was generating, if suppose we need to create a folder in network path means error say that cannot access to the path is denied, how to resolve this issue , i m working on vb.net
A: Same as creating a directory on a local drive, vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a generic object as a methods parameter This may be a very basic question, but it still gets me confused (and Google can't help) ;-) How can I pass a generic object as a parameter to a function?
For example I have a class CoolGeneric<T>
Now I need a method DoSomethingWithAGeneric(CoolGeneric g).
Here the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Porting XmlTextReader to XmlReader with same behaviour I want to port some C# code with the full .NET Framework as target into Silverlight-compatible code.
One of the problems I've encountered is that in the original code, an instance of XmlTextReader is used:
var xmlReader = new XmlTextReader(streamReader) {
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Predicting Dictionary<> size and speed I need to accurately calculate the size of a Dictionary for different sizes. I've tried doing some memory monitoring while running my application, but I am doing a lot of other stuff at the same time that affects the result.
How can I calculate (aprox) expected size of a Dictio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it OK to use Monitor.TryEnter in event handler method? I have EventHandler method which is called pretty often and it's body processing takes some time. Is it OK, to lock operations inside this handler it via Monitor?
The purpose is that meanwhile locker locks the object other events and processing of the object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery popup form? I have a form which is currently sitting in a division on a php page.
I would like it to do the following:
*
*User clicks link to bring up form in pop-up division in center of screen
*User fills out the form
*User hits the submit button
*Form closes and brings up another small division with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Erroneous value for commit options in params hash I'm using a submit_tag form helper in one of my apps. The value of this submit button should change dynamically. The two possible values for this submit button are Save and Update. So, in the view, I have done something like the following:
<% temp = 0 %>
<% text = ''... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android development - Users updating app question I've written a program that, when completed, I plan to add to the Android Marketplace. I have given many files as features for users to store information and reload later, and while debugging, I've noticed the files tend to get deleted when I update the code after a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Force set src attribute for iframe I have a main page (actually a JSP) with an iframe inside it as;
<iframe name="abc_frame" id="abc_frame" src="about:blank" frameborder="0" scrolling="no"></iframe>
Now there are multiple links on the main page (rendered dynamically via JSP) which can try to set the src to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: How to change the radius of the circle around the marker in Google Map API I am trying to change the circle radius by changing the value of combo-menu. So I wrote the a function for onchange as below.
function changeRadius(){
var selectedRadius = (document.getElementById("circle_radius").value)*1000;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android Web request content format I want to format the content I get from a specific website to show it on my device . For example , from this page I need only the program titles and the description of each one . I get the html code for this page with this function :
private String getPage() {
String str ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How get the values of a text field with mootools? Hi i have in my form a text field like this
<input type="text" name="optionsArray[]" class="pollOptionInput">
and i want to get those values they can be value 1 = 123 value 2= foo value 3= bar etc the list can go on.
i want to get those values so i can pass them to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: package folder already used in project netbeans I am trying to create a new project in netbeans. But when I add folder in the projects it always throws error: "package folder already used in project netbeans".
I deleted all folders in c:/users/../.netbeans/6.9/var/.
Still I am getting the same issue. The error ment... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Error in getting row count using javascript I am trying to get the row count of grid view using javascript. Javascript is called but some how I am not getting row count. This is the code for my javascript
<script language="javascript" type="text/javascript">
function CheckSites() {
var Grid = document.getElemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sorting an array once in a function which is called many times Is this possible?
I have a function which accepts a user string and then splits into an array of words. I'm going to sort the array and de-duplicate it.
However, it will be used in a function which is called in an iterative step. It actually iterates ov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: preg_match question, how to do this? Say I have the following:
$var = "127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=57 time=19.5 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 19.548/19.548/19.548/0.000 ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I resize the size of the cell.textLabel? I want to resize the default textLabel of a UITableViewCell because I display a image at the right of the rows. I Tryed with this code but it doesn't works, and I don't understand why.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting certificate chain to a private root I'm trying to verify that the certificate from a signature chains back to a particular root certificate, which is not trusted by Windows (it's a private certificate for the app).
My current attempt to do this involves creating a chaining engine which only trusts the specif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I compare the performance of Node.js to that of PHP on Apache this might have been asked many times but, I want the specific performance testing methodology. I am having second thoughts on porting my application from PHP to Node.js since it involves some realtime data. If the performance tests that I make are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Frontend ajax framework work with Grails I have some knowledge about Flex and Java EE, they are good for web application development. Anyway when I try to write a typical web page that is based on HTML/CSS/Javascript, I think I should take a look at some new program language/framework.
I heard much good news about g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using REST as Business Logic Layer ,Con and Pro
I am thinking of creating an Application as i shown in the figure, i am creating the presentation layer in PHP, where JAX-RS REST Service is working as Business Layer and JPA as Data Object Layer
My Question is
1)Is this arch secure?
2)Is this arch Scale?
3)IS there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Working with DatePicker with some restrictions on Date and Time I am working with DatePicker and I want to set specific restrictions on the selection of Date Picker by user,I want the
start day of the week - tuesday
end day of the week - saturday
start time - 16:00:00
end time - 19:00:00
So friends please sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should an object "load" another object on its own, or have the other passed to it? Is it a good practice to load another object from within an original object, like so:
Class parent() {
$child;
function loadChild() {
$child = new Child();
$this->child = $child;
}
}
or, should the child... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert this linq code to expression Can an expert in C# helps me to convert this linq code into Expression trees ?
var settingViewModels = from l in settingsByEnvironment["Localhost"]
from d in settingsByEnvironment["Dev"]
from p in settingsByEnvironme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scroll images vertically in blackberry All the screens I've designed for BlackBerry so far I set the position coordinates statically, without the need of a vertical scroll.
I do not understand how to use this vertical manager to scroll and see the list.
A: We have to create vertical field manager as follow
V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split a string (that contains tags) by spaces without breaking the tags or tag inner html in Javascript I'm attempting to split a string by spaces into an array of words. If the string contains HTML tags, I would like the full tag (including content) to be treated as a single word.
For example,
I like to eat <a href... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to generate an identity column in hyperion interactive reporting? I want to display an auto-incremented series (basically the row number) in a new column. How do I go about doing this in Hyperion Interactive Reporting ?
A: Create a new computed column and assign it a value of 1.
Then, create another computed c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Geocoding Requests problem? http://code.google.com/apis/maps/documentation/geocoding/
I learned from here sending a request.
First time when I am sending request it's fine I am receiving the responce. But when I am sending the second requst the reponce is "REQUEST_DENIED" indicates that your request was denied, gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Questions about duplicating last object of a NSArray I've a NSArray of MyObjects.
I want to duplicate the last object of my array. In other terms, I want to add a new object to the array that's exactly the same of the last one.
I tried with:
id object = [[self arrangedObjects] lastObject];
id newObject = [object co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Entity Framework 4: Many to Many relationship IQueryable instead of ICollection Good morning everyone,
I am trying to tackle a problem I run into with EF code first. My schema is the following
public class Article : IUrlNode
{
[Key]
public Guid ArticleID { get; set; }
public string Title { get; set; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add a new column to the file How can I add a new column to a file using awk?
original.file
F1 F2 F3 ..F10
add F11 to original.file
F1 F2 F3 ..F10 F11
A: awk '{print $0, "F11"}' original.file
A: If you want to add a column to a file, you can do the following.
remark: We assume that the field separator FS equals ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Pass POST data via raw HTTP For testing purposes, I need to send some raw POST data to a page I set up on my web server. The page is working fine. I have tested sending data to via another web page as well as a C# application. However, I want to try passing raw HTTP data to it as well.
How can I do that? What clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7551997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can this SQL be improved? (MySQL database) SELECT *
FROM inventory
WHERE inventory.zip IN (93650,93750,93765,93729,93710,93740,93711,93720,93704,93741,93705,93755,93791,93790,93794,93793,93726,93792) AND
inventory.price >= 1000 AND
inventory.year BETWEEN 1977 AND 2011
ORDER BY price ASC LIMIT 0,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xcode for distance between two locations in google maps
Possible Duplicate:
Calculate distance between two locations using google map in iphone
I just want to complete xcode for calculate distance between two location . In which user can enter both the location's addresses, and from that addresses I want to calcu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Flex RSL Error: the loaded file did not have a valid signature I'm using Flex SDK 4.5 to create swf files, recently I got the following error when try to open my swf file:
[trace] Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml. The 'secure' attribute is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JPA monitor for persistence context How convinion debug state of persistence context, watch result of queries, monitor all entities?
Is some JPA monitor for this?
A: If you are using EclipseLink, there is a performance monitor option,
see,
http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to addAttributeToFilter? I am trying to get Collection of all available products in Magento & Filter that collection
Here is my code:
$searcher = Mage::getModel('catalog/product')->getCollection();
$searcher->addAttributeToSelect('name');
echo count($searcher);
$searcher->addAttributeToFilter('name',array('like'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to execute UNION without sorting? (SQL) UNION joins two results and remove duplicates, while UNION ALL does not remove duplicates.
UNION also sort the final output.
What I want is the UNION ALL without duplicates and without the sort. Is that possible?
The reason for this is that I want the result of the first q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7552019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.