text stringlengths 8 267k | meta dict |
|---|---|
Q: How to select user input from a shell script in PHP? I've this shell script running from a PHP site.
In the shell script (Audit shell script),
I have 3 options:
1) Process script
2) Display results
3) Exit
Tried the codes below and doesn't seem to work, the PHP site displayed blanks.
<?php
session_start();
ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to let user to input just once using asp.net? i have a question here about asp.net
how to let user to change their ID only once after they make changes and submit and when they login again they could not make changes to their ID? However they can modify their other personal details.
how this can be done??
and ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date in IST in SQL Server My server is hosted in US or so with some other time zone. Is there an option to get the current date in SQL Server in Indian Standard Time.
select getdate()
What should I write to get the current time in India(or some other country as such).
A: You should use the DATETIMEOFFSET datatype ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jquery Filter showing erratic results I'm trying to set up a filter using jQuery. I'll have a certain amount of divs, each with a numeric value (let's say price).
The code below works fine, until you enter a value less than 10. Then you get results that shouldnt be there. (enter 4 for example)
Any help on fixing thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rails password update validation issue I have the following validation:
validates :password, :presence => true, :confirmation => true, :length => { :within => 6..40 }, :format => { :with => pass_regex }, :unless => :nopass?
Then, when I try to update without password (nopass? is true) the following errors appear:
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MYSQL Cluster (NDB) versus MongoDB How does MYSQL Cluster (NDB) compare against MongoDB? It seems that while both NDB and Mongo supports scale out over commodity machine nodes, NDB also provides all the relational capabilities such as JOINs, transactions, etc...
Therefore, under what situations would one choose Mong... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how can i delete dynamic elements from My html page using Jquery? I have my code here
http://jsfiddle.net/NT4Zr/5/
In above code i am able to add new row but cant delete added row by clicking Delete link.
How can i do that?
In hobbies section i want to add hobbies by writing into text box and add hobby button and it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I typecast an NSArray element to double? An other way please.
I have an array whole elements are doubles. How can I get the content out as double?e.g.
coordinate.latitude = [coords objectAtIndex:0];// value inside it is 61.2180556;
A: You can't store primitive doubles in NSArray. You have either stored the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using quotes inside html attribute I haven't coded with PHP in a while and cannot remember how to do this..
I'm using a jquery plugin that requires some rel parameters to be set.
$imgtag = '<a href="'.carturl($img->id,'images').'/'.$img->filename.'" class = "zoom" id="zoom1" rel="adjustX: 10, adjustY:-4, zoomWid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if referenced table is not empty? For example, I have 2 tables:
CREATE TABLE IF NOT EXISTS master(
master_id INT NOT NULL AUTO_INCREMENT,
master_name VARCHAR(15) NOT NULL,
PRIMARY KEY(master_id)
) TYPE=InnoDB CHARACTER SET=UTF8;
and
CREATE TABLE IF NOT EXISTS slave(
sla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ClassCastException: android.widget.EditText I always get the error:
10-03 09:55:44.517: ERROR/AndroidRuntime(819): Caused by: java.lang.ClassCastException: android.widget.EditText
In my code I don't have the word EditText so why does that error occur?
The MultiAutoCompleteTextView was a EditText before. Please help... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Insert string at the beginning of each line How can I insert a string at the beginning of each line in a text file, I have the following code:
f = open('./ampo.txt', 'r+')
with open('./ampo.txt') as infile:
for line in infile:
f.insert(0, 'EDF ')
f.close
I get the following error:
'file' object has no a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: how to omit columns having null value in select query in mysql? Select Header1,Header2,Header3,ExtraHeader from tbl_likeinfo where HotelID=2
Here Header3 and ExtraHeader may have null values.In that case I don't need only that null value in my query result but that row containing other column values should be given... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WordPress change content without reload I have a wordpress theme in which i have to create a page that has a movie that goes loop.
it has 3 menu points which change the div text without reloading the page.
So far no problem.
<a href="javscript:void(0);" onclick="getdata('text.php','content2');">Click here – put it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Appirater doesn't work I'm trying to implement Appirater in my app. I've followed the instructions in the read me, and the app runs fine in Xcode. But no message is shown, no matter how many times i try to run it. I have edited the #defines, so the problem shouldn't be there. When APPIRATER_DEBUG is enabled, it also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Admob(Ads) in Custom Alert Dialog In the market I saw an app is displaying admob in the alert dialog . after I reading this and this and this ,
I still can't figure out how to display the ads in alert dialog same like the one below. (or any others method , that can display the ads in a alert dialog)
I've been scrat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP CustomValidator doesn't detect text changed with JQuery autocomplete I've written a web page that uses an ASP.NET CustomValidator to validate the input of a text field (client side). The text field uses JQuery UI Autocomplete - and this is where I run into problems.
The validator works just fine. But in the even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting clicks on css :pseudo-elements I'm trying to make a custom checkbox, so I made something like that : http://jsfiddle.net/wQdUn/2/
The problem is that, on WebKit based browsers, the checkbox is toggled only when clicking on the content of the <span>, not on the box itself, while in Firefox I get the behavior ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: $.get not working in IE This displays 1 no matter what I echo in getbillno.php - also why I'm not showing that part anymore.
Nothing would change unless I change bill into a string
or put tbl (just to see what happens) in its place, so I figured the problem is not
in getbillno.php but with this part right here. I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mifare classic 1k and NFC communication protocol which protocol is used (other than NDEF protocol) for communication between Mifare classic 1k and nfc enabled mobile, when we raed or write indvisual blocks.
A: NDEF is not a communication protocol, but the message content description:
"...The NDEF specification de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dealing with an array of checkboxes in php Ok so I am making an emailing form and need to get a bunch of items in a checkbox array to be printed... or converted into a string... so they can be made into a variable...
here is what the form looks like:
And there is the html behind it:
<th valign="top" scope="row">Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CGridview custom field sortable I had created with custom field in yii Cgridview but how to make that sortable. The custom field value is from a function in the model. I want to make this field sortable?
Can someone help me?
A: In the search function of your model, where customField is the name of your field:
// .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Data not send/received properly I am trying to implement a TCP server/client using sockets in c.
I have written the program in such a way that whatever we send in the client is displayed in the server line by line till exit is typed.
The program works but the data is shown in the server all together at the last. C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Azure Local Testing I am recently evaluating Windows Azure. One of the problems I found is that Azure start charging as soon as the app is deployed even if it is in the testing stage.
I want to ask existing Azures how much of your tests are done locally and how much are done after it is deployed? Does Azure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unable to instantiate Action, com.hcl.hips.action.KAListproduct, defined for 'KAListproduct' in namespace '/'com.hcl.hips.action.KAListproduct Unable to instantiate Action, com.hcl.hips.action.KAListproduct, defined for 'KAListproduct' in namespace '/'com.hcl.hips.action.KAListproduct
at com.opensymphony.xwork2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User validation not working properly in CakePHP through the User Model For some reason, I can't get this validation to work as I'd like it to, specifically with the password minLength field.
Everything else is fine (even the minLength for Username works). For some reason, when I add the same minLength rule into the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django objects.filter multiple filters The user can select fields to filter by, I need to filter by only those fields but there can be 3 fields.
The user selects all three options:a, b and c
Foo.objects.filter(a=1,b=2,c=3), good
What if the user selects only 1 option or 2 options ?
Foo,objects.filter(a=1, b=2, c=no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Lost sessionvariables in firefox I have a pretty strage problem im dealing with.
Lost sessionvariables in firefox.
Im using wordpress and have a subpage that causes the loss.
More specific:
In wordpress there exists a page called My pages (Original page names are in swedish, translated for convinience)
Under this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find gaps in time not covered by records with start date and end date I have a table of fee records (f_fee_item) as follows:
Fee_Item_ID int
Fee_Basis_ID int
Start_Date date
End_Date date
(irrelevant columns removed)
Assume that records for the same Fee_Basis_ID won't overlap.
I need to find the Star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to read title and id from Blu-ray disc? Is it somehow possible to fetch Blu-Ray Disc id and title programmatically on Windows7+ platform?
A: If you can programmatically open the following files you'll probably get what you need:
/AACS/mcmf.xml - This file is the Managed Copy manifest file and will contain a 'co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Uploading Sqlite database to a remote server I am collecting data using my device then save it in a local sqlite database. I am now attempting to upload this database to a remote server by the click of a button.
I have been able to upload the whole database, but the catch is that am not able to view the contents as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Close only a specific tab with firefox extension i'm developing a firefox extension and i want to be able to close a specific tab. For example if there are many open tabs in the browser o want to close only the tab with a specific url.
I know that i can use gBrowser.removeTab(tab) but i don't know how to get tab obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there any way to sort strings in all languages? I have this code. It sorts correctly in French and Russian. I used Locale.US and it seems to be right. Is this solution do right with all languages out there? Does it work with other languages? For example: Chinese, Korean, Japanese... If not, what is the better sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to programmatically define a global function within a function or method? For example,
def makeFunction name
... #define a function with the name supplied
end
makeFunction 'functionMade'
functionMade
I know it's possible to make a global variable $functionMade through lambda or proc, but is it possible to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery remove part of href that is dynamic In this href:
<a href="/Lists/ListeActualitesCarrousel/4_.000/DispForm.aspx?ID=4" class="">Lire l'article</a>
This part /ListeActualitesCarrousel/4_.000/ is dynamic and can change, I would like to remove it. Thus, the URL will become:
<a href="/Lists/ListeActualitesCarrous... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Is it possible to call methods within Server Tag using Eval()? I have an aspx page which contains a repeater. I can output data using Eval() but I want to know if it is possible to call a method that belongs to another class and pass it the value of Eval()?
For example, in the <ItemTemplate> section of the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Setting selected value in select list I have a Spring form that user fill. That form includes select dropdowns with multiple options.
I must provide a page, where user can mofidy the form values once sent. That means I need selects where the option once selected is selected, and the other ones available in selectli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java RESTful Web Service - Annotate an Interface instead of a Class I am trying to setup a simple web service (deploy on tomcat) which goes like this:
@Path("/api")
public interface Api {
@GET
@Path("categ")
public String getCateg();
}
and I have the following class implementing the interface:
public c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to fit the image perfectly in the webview thats is parsed from Wordpress rssfeed I m parsing this rss feed ("http://rss.marshillchurch.org/mhcvision") which is a wordpress blog and displaying it in tableview .clicking on the tableview row takes you to a detail view.I m parsing the following tags where the deta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Location in background i'm new in java/android app and i'm creating an app that uses user-location. I want the location to be updated at the begining of the app.
The problem is that my location class is an activity and i don't want to show another contentview for this class.
Actually, i want the location thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Want to position the background image in the middle Hello on my login page I have a background image. Currently the image is centered but not centered the way I want it. I want it so the image is always centered in the middle of the screen. Curently, my image is centered but is positioned at the top of the page. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using EventWaitHandle class in Process A I need to receive an event from Proces B. I decided to use EventWaitHandle.
In both processes i write this code:
var evhandle = new EventWaitHandle(false, EventResetMode.AutoReset,"MyGUID1221");
then in process A i invoke Set() method:
evhandle.Set();
How i can to receiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to handle alternating rows dynamically? Consider the following example: (live demo here)
HTML:
<div class="wrapper">
<div city_id="1" class="odd">Street Name #1 in city 1</div>
<div city_id="3" class="even">Street Name #2 in city 3</div>
<div city_id="2" class="odd">Street Name #3 in city 2</div>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Center page in IE7 & page moves after clicking menu items My page seems to be centered in all modern browsers except IE7. In CSS I have simply:
html, body {
width: 1000px;
margin: auto auto;
}
and it doesn't work.
Another issue for all browsers is that whole page slightly moves after clicking menu items. E.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File access speed
I have got a theoretical question:
I think to use files that store an object's position.(each line contains coordinates x and y)
The data is going to be read from the file 3 times per second.
Is the delay 0.3 s of reading a coordinates from the file is too small? Will my program get necessary inf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scalaz's traverse_ with IO monad I want to use IO monad.
But this code do not run with large file.
I am getting a StackOverflowError.
I tried the -DXss option, but it throws the same error.
val main = for {
l <- getFileLines(file)(collect[String, List]).map(_.run)
_ <- l.traverse_(putStrLn)
} yield ()
How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: facebook chat using asmack on android with the new access token I have a FB chat client developed for Android. I've been using facebook android-sdk to obtain the access token from a user. Using asmack, user was logged into the chat. Token was in the form: 226409362971500|3b29bc82baa7901a9baca042.4-72793766|9eb417f06... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WiX custom license file: setup shows links with < > I created a WiX 3.5 setup with a custom license file by putting this into the .wxs file:
<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
This works perfectly and the link is displayed when I run the created .msi file.
(I'm using the WixUI_InstallDir Dialo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: getting values from a select and moving them to a ul - jquery I am creating a plugin at the moment, that allows me to change select boxes into something pretty, I do this by changing the select boxes that are found on a page in to definition lists, with the definition description I am nesting a ul in it, and the li ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLAlchemy -Comparison between existing column value and potential update value I have a SQLAlchemy model which I'm updating with data from an XML file. I want to be notified where the new value differs from the old one.
I tried the simple:
if ModelInstance.Field <> NewValue:
print "Field has changed from", Mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java api for Sharepoint server I would like to know if there is a java api for the sharepoint server.
Thanks a lot
A: I hope these API will help you
http://code.google.com/p/java-sharepoint-library/
http://code.google.com/p/sharepoint-wsdl/
http://dev.day.com/docs/en/crx/connectors/sharepoint/current.html
We can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Solr Sorting for String Literal - PatternReplaceFilterFactory What is the regular expression for the following special characters in Solr.
,~,!,@,Double Quotes,Single Quote,Brackets,? and for every special characters.
My code is:
<fieldType name="Custom_sort" class="solr.TextField" sortMissingFirst="true" sortMissin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redo changes in oracle db after commit Is there any method to redo changes in Oracle db after commit? Please can anyone guide me
P.s. Oracle version I'm using is 10.1.1.8.
A: Flashback queries can help. Have a look at this article which briefs you on the details about it.
Flashback query allows a user to view the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java compilation of a .java file without a public class Okay, so a java source file must have at least one public class and the file should be called "class-name.java". Fair enough.
Hence, if I have a class, then the following would compile:
public class HelloWorld {
public static void main(String[] args) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Android : How to set all uses-permission? How to use all the uses-permission in one single step? Anyone knows this? Thanks in Advance.
A: You can generate full list of permissions from \framework\base\core\res\AndroidManifest.xml (Android source code).
Here is full list for SDK 17.
<uses-permission android:name="an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PexChoose non generic methods Is there any way to specify the return type for PexChoose at runtime? For example PexChoose.Value(name, Type)?
This would be useful to make general models that generate values of different types depending on runtime contraints.
A: You could build your own helper class which will call t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Spongy Castle ignore the bcpg and openpgp packages Does anyone know why SpongyCastle is explicitly excluding openpgp and bcpg packages (amongst others) from being built? I would like to get OpenPGP support working and I will require a number of those classes to do so.
You can find the exclusions in the pom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create Eclipse like Welcome page I want to create my own Welcome page like eclipse.I have search for but it shows for RCP Application but i want to create it inside Eclipse IDE So that when i click on menu, it should open Intro(help) page.
A: eclipse.ui.intro extension point
All you need to do is to extend o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel VBA - Search for string in worksheet I've got this Excel Workbook which I want to search for a specific string in Sheet1. If it finds it, enter a new value. But, the sheet is pretty huge, so I don't think it would be very efficient to loop through each cell. So, can I search through a range and find it that wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Combine SQL fields and Convert from bit to readable sentence If, for example, I had two fields such as 'Dog' and 'Cat' that defines whether a person has a dog or cat; and, they are bit types. And, I wanted to combine these fields for each person to say something like USER, 'has a dog and a cat' such as the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery validation plugin error placement I am using Jquery Validation Plugin. Here's my question - I have a simple form which is like this
<form id="form">
<label>Name</label>
<input type="text" name="name" id="name" class="required" minlength="2">
<span></span>
<label>Surname</label>
<input ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: linq to entity framework: something like isnull I have:
a = b.Sum(...) + c.Sum(...)
where b,c are entities.
The problem is: when at least one of (b.Sum(...), c.Sum(...)) is null then a will be null. I'd like null be treated as 0. How would I do this?
A: maybe something like this
a = ( b.Sum(...) + c.Sum(...)) ?? 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Comparing screen data at client side Is there any way I can check whether the user has changed any data on the web page between the page load and save button click. If the user has opened any page to edit some data and clicks the save button without changing any data on the screen then I need to display a message.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Declare a NSString in multiple lines Is there any way to declare a NSString in multiple lines? I want to write HTML code and store it into a NSString, and in multiple lines de code will be more readable. I want to do something like this:
NSString *html = @"\<html\>"
+ @"\<head\>"
+ @"\<title\>The Title of the web\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Finding string into a ByteArray. Is it a simple solution for that? What is the simpliest way to find an occurance of some sequance of bytes (string) in a long byte array?
thank you in advance!!
UPD: I tried to do
my_byte_array.toString().indexOf(needle_string);
the problem is that in flash/air string consist of ut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to avoid excessive screen flickering with GDI I'm sort of new to rendering graphics with GDI...
I made a paint program, and it works fine, it's just that it causes a lot of annoying screen flickering. I will admit my paint code is not really optimized (lack of time), but it shouldn't be super inefficient either,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Gallery's onItemSelected is called after orientan change BUT with no reference to position the first element Whenever my activity with a gallery is FIRST created the onItemSelected method is automatically called passing the 0 parameter for position and a reference to the 0th element(textview).
That is fine.
But when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any effect if I do not restore the application.calculation in vba? I have turned off the
application.calculation = xlcalculationmanual
and after such a lengthy vba code I have done these at the end
application.calculation = xlcalculationautomatic
What I saw is these statement is taking 20 seconds and som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: move files with spaces in file name using batch script I have next code and it works perfectly as far as there are no spaces in file names.
FOR /F "usebackq tokens=1" %%n IN (`dir D:\Skripte\radno\temp /b`) DO @FOR /F "usebackq tokens=2,3,4 delims=. " %%d IN (`date /t`) DO @move D:\App\STE\_Isporuka\Doc\%%n \\gds21-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to cache an XML/JSON response into my application. Full text file? I am currently using XML or JSON webservices in my various applications.
I just would like to know what would be the easiest way to cache theses answers somehere in text files.
I have been thinking about databases, but this seems quite overc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Listview select "active" item
Possible Duplicate:
Select ListBoxItem if TextBox in ItemTemplate gets focus
I have a ListView bound to an ObservableCollection (Listview.ItemsSource). The listview presents several textboxes that are bound to properties of the objects in the observable collection.
I would like to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Data exchange between a service and an activity I have to publish the progress from a background service on the UI continuously on a progress bar. Any ideas on how to go about it. Intents won't work I guess coz they can only send the data once the activity is started. Ant other suggestions?
Update : The progress on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optimizing Windows WF 3.5 Instance Creation for 200 request I currently have a process that creates a windows wf 3.5 instance for each account that a customer have.
foreach (Account acct in Customer.Accounts)
{
Dictionary<string, object> param = new Dictionary<string, object>();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Row in table is getting locked after modifying a certain cell in it in oracle I have the following code in an oracle procedure, which returns a cursor (r_cursor) as an OUT parameter
SELECT userid
INTO v_userid
FROM users u
WHERE lower(u.email) = lower(p_email)
AND lower(u.token) = lower(p_IV)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find out the exact operation that is posted to Dispatcher Is there a way where we can find out which UI element has posted an operation to the Dispatcher queue which eventually throws the event ,System.Windows.Threading.Dispatcher.CurrentDispatcher.Hooks.OperationPosted
Update : A private property DispatcherO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does 'unspecified error' mean in IE? I'm getting unspecified error when reading document.namespaces in IE8.
I can't seem to reproduce the problem in a standalone page, my snippet is:
function addNamespace(key, value) {
try {
$("html").attr(key, value);
if (document.namespaces && // This throws the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Calling a Ruby method via a button Quick question, what's the best way to call a ruby method via a button? At the moment, the button will only call a JS function but I need it carry out a Ruby method.
Basically, the button has to compare an Excel spreadsheet with my database and display the difference in a table on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test if onpropertychange is supported or not? I'd like to know if an input element has changed, I learned that I can listen to onpropertychange in IE and oninput in other browsers.
Here is my code:
var _addChangedProperty = function(input){
input.changed = false;
var oninput = function(){
this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Uninstalling msi installation with patches I have a product installation that has been patched with one small update patch which is uninstallable. Is there any difference if I first uninstall the patch and then product installation or if I select the uninstall of the product while the patch is still installed? Produ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you trigger autocomplete "select" event manually in jQueryUI? I'm using jQueryUI autocomplete, and I have a function mapped to the select event, e.g.:
$("#someId").autocomplete({
source: someData,
select: function (event, ui) { ... },
focus: function (event, ui) { ... }
});
I have a special case:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is there any real application being self modifying code? There are few examples on the web demonstrating how to write a self-modifying code. But they're just examples. I would like to know if there is any real application being self modifying code. Thanks!
A: The first thing that comes to mind are viruses, trojaner... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programatically delete [permenantly] a TFS work item Whilst I'm aware that there is a command line tool to permenantly delete a TFS work item. (e.g. How to delete Work Item from Team Foundation Server)
Has anyone been able to achieve the same action programatically using the TFS 2010 API DLLs?
A: Shai Raiten has bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Post wall - Cancel and Share button frames I have integrated Facebook successfully. But the problem is when I am trying to post data into my wall content is exceeding iPhone screen size. Some data is behind SHARE and CANCEL buttons. How to change frames according to the my content size?
A: You can't do anything ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to store a translation in a different table using Doctrine 2 + Gedmo Translatable Using the instructions on https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/translatable.md#advanced-examples a table can be split in order to store the translations in another table.
The resulting table structure is:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Format of the following response? I'm using Bing's auto suggest feature to auto suggest me terms given a query. You can find the tool here: http://api.bing.com/osjson.aspx?query=pe as you can see it's returning a strange format that isn't quite JSON. Is this a specific standard different to JSON? I've attempted pars... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get image path from server drive How to get imgepath from server drive. I have all imges in C drive Chekout folder which included my projct. I want to display that image in my asp.net application. I did server path C:\Chekout but it is searchin in users local system not in server. Please Help me..
Thanks.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate custom HQL for this mapping I have following tables
------------
BAR
------------
ID
number
------------
ZOO
------------
ID
------------
FOO
------------
ID
------------
MAPPER
------------
ID
FOO
BAR
ZOO
Now I want to fetch all ZOO for particular FOO So I will do
select ZOO from MAPPER where zoo = s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Removing Duplicates From ListView android I am posting my code, I am unable to remove the duplicate values from the listview?
Can someone please help me? Thanks in advance!
I am pasting my code here and I have used BaseAdapter.
@Override
public void onCompleted(final List<Recommendable> result) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF 2 RI (Mojarra) and Tomahawk compatibility I need to use fileUpload from Tomahawk because not provided by Jsf.
I want to know if Tomahawk is 100% compatible with Mojarra
I dont' find this information on the web.
My version of Mojarra (2.1.2) and tomahawk (1.1.11)
Thanks,
Yoel
A: There are three builds of Tomaha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Viewing source code from a third-party jar in Eclipse I am working on a Java project in Eclipse. In this I am using a third party JAR which I have put in on the classpath. Now I want to understand the code in the JAR file and want to see the actual code and navigate through the third party code just like my own code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get Product with the filter using OR operator In Magento,
I want to get the product with name attribute is Product 1 *OR* Product 2
$product = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('name','Product 1')
->setPageSize(1)
->load()
->getF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I switch from one UITabbarview controller to another UITabbarViewController in iPhone? I have an UITabbarViewController with 3 tabbar items with a navigationbar. When I will press my first item of tabbar item there will be a button at the view.
Now my question is when I will press the button, then it will go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Circular / rotary dial view in android I have a need to create a circular dial/rotary style component for use in an application. It's essentially a circular menu that allows users to select from the items that are ringed around it, and then they can click the button in the center to activate the selected item. Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to unregister / cancel UILocalNotification I have some trouble finding this. Actually I want to unregister / cancel all of my local notification when I kill my appln from background. Any thoughts how can I do that.
A: Just do this to cancel all local notifications.
[[UIApplication sharedApplication] cancelAllLo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw a image as a texture of a polygon and how to rotate the polygon in all directions touching the polygon on the screen? I need to draw a texture on a square polygon, not a cube, i need to do it on a symple square, it is the face of a cube. I check this tutorial (open gl ES)and it seems to work fine for wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery customize fancybox with ajax call I'm using this brilliant solution for showing a fancybox as a result of a POST request.
The problem is that I don't know how to customize the fancybox behaviour.
How to show a spinning animation (or similar) while the ajax is performed?
How to set a title/show the content of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bidirectional relationship with superclass entity property in JPA I'm tying to implement some tree-like structure with JPA.
I have a "folder" entity and a "test" entity. Folder can contain both folders and tests. Test doesnt contains anything.
Both test and folder have a Node superclass, looks like this:
@Entity
@I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make array with arrays from a mysql query Working on a e-shop, i must read from the DB the products that have productpack not null.
productpack from the DB looks like this : 0141,3122,0104,0111,3114,0106,0117 .
I'm trying to get all the DB items that have productpack set (not null), and make them into an array with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reflection error when creating an instance of a form I've been experimenting with an application that will scan an assembly, check for any classes that are forms and then see what members they have.
The code I'm using to query the assemblies is:
Assembly testAssembly = Assembly.LoadFile(assemblyPath);
Type[] ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fastest access of a file using Hadoop I need fastest access to a single file, several copies of which are stored in many systems using Hadoop. I also need to finding the ping time for each file in a sorted manner.
How should I approach learning hadoop to accomplish this task?
Please help fast.I have very less time.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7633775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.