text stringlengths 8 267k | meta dict |
|---|---|
Q: How Do I Get RouteData Values from a Web Service in .Net 4.0 I am trying to extract an id number from a URL using a web service so that it can be used as a parameter for a where clause in a select statement that produces data from a database based on the id number of a record. That data will then be passed back to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why use prototype for methods instead of this.methodName
Possible Duplicate:
Advantages of using prototype, vs defining methods straight in the constructor?
Why use:
Person.prototype.toString = function() { return this.name; }
over
Function Person(name) {
this.name = name;
this.toString = function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: text shows appears through fixed div I made a fixed div that stays at the top of the page. but when you scroll text shows up through the div. You can have a look at it here. Just scroll down to where the forum categories are.
The css for the whole div is located here
A: Add the css-property z-index to the toolbar.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to detect a tablet device in Android? I am trying to port my application developed for smartphones to the tablets with minor modifications. Is there an API in Android to detect if the device is tablet?
I can do it by comparing the screen sizes, but what is the correct approach to detect a tablet?
A: I don't th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: AcceptChanges cannot continue because the object's key values conflict with another object in the ObjectStateManager The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: AcceptCh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to abort a synchronous XmlHttpRequest? I have written a JavaScript function that asynchronously calls a web service using XmlHttpRequest. I have been asked to make this function finish its work before the page is rendered.
I thought I could make the AJAX request synchronous but I don't want this to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Combination of Mapview , phonegap and sancha touch Is it possible to use android native MapView with the combination of Phonegap and Sancha Touch (for fancy UI)
Just like Zillow's new android version , in which they are using MapView to show locations and for screens they have used fancy UI
Video
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Eclipse-Marketplace Error Once i go to Eclipse Marketplace option i get this error message:
MarketplaceDiscoveryStrategy failed with an error
Unable to read repository at http://marketplace.eclipse.org/api/p?product=org.eclipse.epp.package.java.product&os=linux&runtime.version=3.6.0.v20100505&client=org.ecli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: load specific image before anything else I'm a creating a loading screen for website I am making. The website loads many images, scripts, etc. The HTML and CSS part is great, but I need a way to guarantee that the "loading..." image will be loaded before anything else.
I'm using jQuery, and everything is initiated w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Change iPhone splash screen time How would I make the splash screen stay for longer, 5 seconds, for example?
A: You need to create a view controller for displaying the splash screen as done below.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Software-design only with interfaces? Is it good approach when in software-designing the class interactions are describe only with interfaces? If yes, should I always use this approach?
I must design class library that should have a high testability (I use C#).
This library have one facade and some amount of classes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why is std::bitset<8> 4 bytes big? It seems for std::bitset<1 to 32>, the size is set to 4 bytes. For sizes 33 to 64, it jumps straight up to 8 bytes. There can't be any overhead because std::bitset<32> is an even 4 bytes.
I can see aligning to byte length when dealing with bits, but why would a bitset need to ali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is standard resolution of android tablet? What is standard resolution for android tablet?or an emulator?
A: You shouldn't only develop you application for one resolution. Take a look at this, it's very helpful.
http://developer.android.com/guide/practices/screens_support.html
A: below are unique resolution fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Uploading multi-line records into SQL Server We receive fixed length datasets from a client that look something like this:
1 SOMEFILE 20110922
2 20110101ABC999
3 JOHN SMITH 19800201
4 5000000 1000
2 20060101DEF999
3 JANE KOTZE 19811001
4 200000 800
5 5200000 1800
whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does iOS store persistent data with encryption? Can an iPhone app encrypt its stored data? So that even a user with a Jailbroken iOS device cannot access the file. For example, game-center may sync with local data, you do not want the user manipulating the scores. You do not want your IAP be circumvented either.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BIRT using log4J by default do BIRT by default uses log4j.properties file?
if my aplication log4j path is same as birt log path.. then birt log is using my application log only.. i dont want this
A: No, BIRT use java logging (not a log4j). Details are here.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Browser-like tabs - Jquery UI Tab positioning I'm working on JQuery UI tab Add/Remove function.
My html is
<div id="dialog" title="Tab data">
<form>
<fieldset class="ui-helper-reset">
<label for="tab_title">Title</label>
<input type="text" name="tab_title" id="tab_title" value="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse regex for finding the following string I want to search all files in my project in eclipse and replace all occurences of ConnectionID="lettersandnumbers"
what is the regex for the bit between the quotation marks(including the quotations)?
A: assuming you want to replace the String contents, look for
(Connec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: move app to sd (totally) How can I let the user move an app to SD card, but totally?
I've used android:installLocation="auto" in the android manifest, but it seems that it not move the entire app, only a piece.
Can you explain me how to let it move totally?
A: There is no way you can move app "totally" to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I know whether app is terminated by user? How can I know whether app is terminated by user?
(Double-clicking Home button and press red minus '-' button)
I need sample or pseudo code...
A: Sometimes you do get the UIApplicationWillTerminateNotification (you can also implement the applicationWillTerminate: me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Equivalent of get_or_create for adding users Is there a simpler way to add a user than with the following pattern?
try:
new_user = User.objects.create_user(username, email, password)
except IntegrityError:
messages.info(request, "This user already exists.")
else:
new_user.first_na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: haskell: output non-ascii characters I'd like to output non-ascii characters in WinGHCi, but this is what I get:
Prelude> "δ"
"\948"
Prelude> putStr "\948"
*** Exception: <stdout>: hPutChar: invalid argument (character is not in the code page)
I am using WinGHCi 7.0.3 on windows xp.
What do I have to do so that Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Android ADT r12 for MAC I am getting an error message regarding a styles.xml on my Eclipse for MAC OS X. Below is the error message:
error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.
I googled this issue and found out that I will require an SDK r1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery: Control page reloads or moving away from the current page If a user moves away from the current page by using mouse (clicking on a link) or keyboard (hitting enter while having a form element focused) interactions, i want to do be able to run JavaScript/jQuery commands beforehand.
Exemplary workflow:
*
*U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: output from AbsoluteTiming This is just a curiosity - I don't have a real question.
The output of AbsoluteTiming has a definite pattern; can anyone confirm/explain ?
xxx = RandomReal[NormalDistribution[0, 1], 10^6];
Sin[#] & /@ xxx; // AbsoluteTiming
(* {0.0890089, Null} *)
Max[Exp[#] - 0.5, 0] & /@ xxx; // Absolu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to remove encoding="UTF-8" standalone="no" from xml Document object in Java I want to create XML in Java.
DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder;
docBuilder = dbfac.newDocumentBuilder();
Document doc = docBuilder.newDocument();
but Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: keeping count and storing of text instances I would like to make a simple code that counts the top three most recurring lines/ text in a txt file then saves that line/ text to another text file (this in turn will be read into AutoCAD’s variable system).
Forgetting the AutoCAD part which I can manage how do I in VB.n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get key value in django template? Django template system - how to get python dictionary value from key?
I have two dictionaries which represent different data but both have same key so that I am able to access different data from the same key.
First dict is:
{**'Papa, Joey C'**: {'Office Visit Est Pt Level 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Issue with wrong controller being called in jquery ajax call My issue is for some strange reason it seems stuck in the page controller so instead of getting out and going into the ajax controller I have it trying to go down that route in the page controller
1st try
http://localhost:2185/Alpha/Ajax/GetBlah_Name/?lnam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check if a port is assigned to any program or added in firewall - C# We have Windows Service which will be installed by installer. We have an option to allow user to provide a port number and select whether the service must start on completion of installation. We are having a check on installer itself for checking w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Separate Admin and Front in codeigniter What is the best way to separate admin and front-end for a website in codeigniter where as I was to use all libraries, models, helpers etc. in common, but only controllers and Views will be separate.
I want a more proper way, up for performance, simplicity, and sharing models ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Converting a wire value in Verilog for further processing I'm new to Verilog.
I have written code to convert a wire value to an integer:
wire [31:0] w1;
integer k;
always @ (w1) k = w1;
Source: converting a wire value to an integer in verilog
Now, for the next part I get an ERROR!
wire [63:0] w2; // Suppose it cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQLite: How to set ID PK to start from zero instead of starting from 1? Is it possible to set default starting value to zero instead of 1? Currently I'm using FMDB but wondering is it possible at all ...
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the primary use case for asynchronous I/O My application is not web based, just need to use sockets to service around 1000 clients. Throughput and latency are of utmost importance to me. Currently using select() from NIO but thinking of moving on to asynchronous IO in NIO.2.
*
*When should asynchronous I/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: I want to write a plugin for Excel 2007 in JAVA I want to write a plugin for Excel 2007 in JAVA.
Is it possible?
Where can I get material to start it?
A: Googling "java plugin for excel" returned this http://xll4j.sourceforge.net/ in about 0.18 seconds!
A: In programming, I suppose the question should not be
Can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS Load Test and 'Total Bytes Sent' Performance Counter? I have a load test for a WCF service, where we are trying out different compression libraries and configurations and we need to measure the total number of mb sent during a test. Is there a performance counter that measure the relative trafic pr. test. If so, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: erazor set variable a little question about erazor https://github.com/ciscoheat/erazor
i know this framwork is based on Razor template engine. http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
i noticed the api doesn't fit exactly with Razor (ex: @for(a in p) differs from RAZOR)
this template ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to manage efficiently ib in xcode for big projects Can we use multiple separate views and integrate/call them on main view within a cocoa project?
Currently we are dropping all of our sub views and IB controls into a single view and making changes in IB is becoming unamageble now. When working on IB in xCode, it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use Concat function in the sfunc parameter while making a aggregate function using PostgreSQL I am recently inclined in PostgreSQL and trying to make a ListAggregation function as given here the only difference being that I am trying to use CONCAT instead of TextCat
.
My function is as under
CREATE AGGREGATE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xml parsing from server with html tags I am new in android development.i send you xml file,it contain some html tag.that is follows-
How i parse text,image.
XMLFILE-
<NewDataSet>
<Table><Cat_id>1</Cat_id><Cat_Parentid>0</Cat_Parentid><Cat_Name>News for the day</Cat_Name><Cat_Desc><div style="text-align: center;"><sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: ASP.NET4 Charting Only show certain dates on X-axis I'm using ASP.NET to draw some line charts with multiple series. On the x-axis I am plotting the date however I do not have values for weekend dates and therefore it is drawing a straight line from the friday to the monday.
I'm wondering is there a way to basicall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validation failed in Entity Framework, ASP.NET MVC3 My application using ASP.NET MVC3 with EF4.1, deployed on IIS7. Recently I've meet an error when trying to save an entity to an existing database on the production server, but everything goes well on my development machine.
I tried to build deploy package in VS2010... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating strongreference from Weakreference Following is a sample code of our application, where we are trying to keep a weak reference of a huge page model object, which takes a lot of memory.
Dictionary<int,WeakReference> modelCache;
IPageModel ReadPageModel()
{
IPageModel page;
if (!modelCache.ContainsKey(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binary string comparison I'm just learning python and the best way to learn a language is to use it, so I thought I'd make a script that compares binary words to determine which ones are grey.
If there is one bit that is different then it should flag record which number binary code it is. So by means of example, if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hide a groupbox and also remove the space where it was present in winform In my winform, I have three group boxes, based on selection of the
items in a combobox the second group box(at the center)
is hidden using groupbox.visible property.
The problem is when the second goupbox is hidden, there
seems to be an empt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Behaviour in file writing by multiple threads Many threads are writing StringBuffer to same file. StringBuffer contains around 100 lines. What is the output in file if multiple threads write to same file. Is each output from different threads mixup in file or they appear sequentially.
A: all of the above plus an ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySql Foreign keys: ON DELETE NO ACTION behavour - how to leave info in referenced field? I have two tables, one 'users' and one 'orders', where the order table has a foreign key reference to the user id table. (I'm using email address as user id in this case.)
What I want to accomplish is this:
*
*If the user ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: PHP fseek with remote files I want to read remote file from the end but fseek doesn't support remote files. Is there way to make this?
A: Write your own streamwrapper. Or copy the whole file locally and fseek on that.
A: you should try cURL . it should get the job done.
u just need to check if CURL is installed o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Listening to routed events / commands from a popup I have a control that dynamically creates a popup.
The popup contains controls that fire routed events / commands, which I want to react to in the original control. The original control is set as the placement target of the popup.
Would you expect the original contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ext.Button into Ext.List Sencha Touch I am new in Sencha Touch
Can I add Ext.Button into a Ext.List
if yes then how
Thanks
Amit Battan
A: It's been discussed on the Sencha Forum...
http://www.sencha.com/forum/showthread.php?118790-Buttons-%28and-other-widgets%29-in-Ext.List-or-Ext.DataView
A: I don't think you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My class has some timing issues I have a class that I use to display text on stage, with some number effects. It works pretty well, but when I chain it like this
public function onAdd(e:Event) {
//stuff
addChild(new messager("Welcome."));
addChild(new messager("WASD to move, mouse to shoo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mysterious issue with Google Chrome, BIRT and WebSphere I have a web app which I deploy on Tomcat 6, Jetty 7 and WebSphere 7. It uses BIRT reporting. I use the following browsers for testing: Firefox 6, Google Chrome 14, IE 9.
All of these combinations work but one: Chrome with WebSphere.
When I try to view a report... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why [] should be set for robotium explicitly? As it said in this QnA
some functions in robotium required anyDensity to be set as true in the AndroidManifest.xml file.
but it said in the android doc that applications that support android 1.6 and higher, it is true by default.
then, why should this be set explicitly?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL help required for writing a query I have number of records in database of which some are duplicates like
1 test 20-09-2011
2 main 20-09-2011
3 New 20-09-2011
4 test 20-09-2011
5 test 20-09-2011
6 test 20-09-2011
7 main 20-09-2011
8 main 20-09-2011
Now what i want is i get all three distinct records but with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to change the audio play speed with AVAudioPlayer in iPhone? I'm playing a local mp3 file with class 'AVAudioPlayer' on my iOS App.
And I want to change the speed when play it. such as I want to play this mp3 file slower.
How to achieve it?
A: Now it is possible to change the speed of sound.
here i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lost syslog packets I wrote a program that listens on UDP port 514 for syslog messages and writes any incoming packets to a log file. On one of the servers where this program is deployed, it has suddenly stopped writing to the log file. It is working fine on all other servers.
Steps I have taken to diagnose the prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jaspersoft: Dropdownlist in iReport I am trying to create a parameter which should be a dropdownlist. I need to let the use choose from 3 different values.
Is this possible? Or will I have to code one myself in Java? If so, how can this be done?
I'm using iReport Designer 4.0.2.
Thanks!
A: Yes, you can do it with J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use the class field on an ArrayList instance in Java? I have this code, which compiles:
new TypeToken<ArrayList<ServerTask>>() {}.getType()
Then I have tried
ArrayList<ServerTask>.class
which does not compile.
I am new to Java programming (came from C#) and I have thought that T.class is an exact equivalent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to create constant space BETWEEN li inline list items I want to use a list for horizontal links. I understand I need to use display: block for the ul and display: inline for the li.
There are a number of questions for getting constant width for the li elements, but I want constant space between them, they cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Application fails to load inconsistently on iPhone 3G I have two iPhone devices: 3G and 3GS. My application always loads successfully on iPhone 3GS but on iPhone 3G it loads like 10% of tries (but it loads). I do not have any exceptions or zombies.
Can someone lead me to possible causes or suggestions to how can i f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: database cleaner transaction with cucumber rails I am writing a scenario for signup form.
@abc
@selenium
Scenario:Non registered user signs up
Given I am on the sign-up page
When I fill in the following:
|first_name|Anidhya|
|last_name|Ahuja|
|email|an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: nHibernate: Using entity-name with QueryOver and CreateCriteria I have two hbm.xml mappingfiles. They are identical except for the class table and class entity-name properties. They are supposed to populate the same Entity.
They have entity-name= Alpha and Beta, table= PersonAlpha and PersonBeta respectively.
I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select all Sheet from an Excel File basically, i am uplaoding a dynamic excel file and i want to select all the sheets containing a data and have it in a dataset. But i dont know how, all I can get is from a static sheet name and only one sheet per select, how can i select all shhet within one excel file and have i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP zip archive progress bar I've googled for this but didn't find any solution - is there a way to create a progessbar for adding/extracting files to/from zip archive in PHP?
Can I get some kind of status message which I can than get with an AJAX request and update the progress bar?
Thanks.
A: I am trying to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: expat for IronPython 2.7.1 beta 2 I'm trying to get NLTK working with IronPython 2.7.1. The installation works so far, but I tried some sample code and the expat module is missing. Any hint how to get that up and running for IronPython? I found some hints on the web, but they are quite outdated (IronPython 2.0) and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento - Move the "terms and conditions" from the last checkout step to the first one How can I move the terms and conditions from the last checkout step to the first one ?
I have tried only with the xml files, but I can't continue to the next step in this case.
Please help to do that.
A: In checkout.xml, move
<b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inserting or updating multiple records in database in a multi-threaded way in java I am updating multiple records in database. Now whenever UI sends the list of records to be updated, I have to just update those records in database. I am using JDBC template for that.
Earlier Case
Earlier what I was whenever I got re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can we identify the date on which someone liked my page? How can we identity the date on which someone liked my page.
is there any way where we can identify the date on which someone liked my page ?
A: No. You can't even get a list of people that like your page, so you can't get a date they liked it. The only in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I want to make a availability button on my registration page Many websites have an "check availability" button. And I want to have this to. But this seems to be only available when using Ajax and Jquery. Is there any way for me to do this using only PHP and Javascript. Because i'm a starting programmer, which does n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I go about adding testing to a finished rails app? Right so I started a rails app [3.0.9] a while back and didn't include any testing, and now that I'm nearing the end of it, the daunting task looms. I don't actually have testing experience yet. A cardinal sin, I know, but nothing that can be done about it no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to get session from codeigniter with node.js i'm writing application like social network where in my application can show status update and chat . when i search on internet i found node.js for long polling technology and i think i can use that for chat and streaming page in my application. but when i use node.js... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Call function who's name is stored in a variable I have created a small classic asp file that I indend to call form asp.net using the below. I works, but it feels wrong somehow:
Booking.BelongsToSite = file_get_contents("http://localhost:82/test2.asp?functionName=RetBTS¶m=" + User.ID);
protected string file_get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use CSS to style my form components? How does Vaadin use CSS that was written purely for HTML elements (e.g. styling and layout of body, h1, etc elements) and use that exact CSS style in Vaadin?
Does one need to make changes on the CSS to map to corresponding Vaadin elements, or can one use that CSS as is?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check whether 3g is active or not in android i am trying to check whether 3G is active or not in my handset and after that i have to fire an Intent.
So plz anybody help me out
Thanks in advance:)
A: another snippet from an applilcation I've written recently:
TelephonyManager telManager;
telManager = (Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CF app two way communications with server Users in field with PDA's will generate messages and send to the server; users at the server end will generate messages which need to be sent to the PDA.
Messages are between the app and server code; not 100% user entered data. Ie, we'll capture some data in a form, add GPS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Backbone.js - navigating to a route after the "click" event on a view My "view" is set up as below. simple.
var ItemView = Backbone.View.extend({
tagName : "li",
events : {
"click" : "display"
},
display : function() {
//app.navigate('item'); // take me to my route!
}
});
And I have my router
va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: C# using FileOpendialogbox control within my form class I have a weird requirement. I need to use FileOpenDialogBox control within my form. I mean not as other window but as control of a form. I know many applicationss that doing it. How can I do it in C#?
A: Try this object I found on the web.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sencha Touch Watermark Is there a method in Sencha Touch to set input watermark like jQuery watermark plugin?
I'm using general HTML input text.
A: Yes, it's called the placeHolder property of a textfield
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP extending with unknown arguments I have an abstract class and child's:
abstract class Cubique_Helper_Abstract {
abstract public function execute();
}
class Cubique_Helper_Doctype extends Cubique_Helper_Abstract{
public function execute($type) {}
}
As you can see, method execute() is common. But number ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference in creating an instance between VB.NET & C# I am converting some code from VB.NET to C#. In VB.NET, I have this code:
Dim ind As Foo.Index
Dim ed As Foo.Edit
ind = New Foo.Index
ed = ind.InFunction()
That works. So in C# my code will look like this:
Foo.Index ind;
Foo.Edit ed;
ind = New Foo.Index();
ed =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the control XPath on Focus in WebBrowser control I had developed a windows application
with WebBrowser control, which can interact with windows control using this sample provided
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.objectforscripting.aspx
But my need is when user focus an co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone : what the best way to integrated iPhone application to other application? I want to reuse iPhone source code application with other application, so in Xcode iPhone does it be able build library .jar file?
A: You cannot reuse a whole application, but you can create a static library and have other apps link t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check if folder is read only in C#.net I am working in asp.net(C#)4.0. Before uploading an image, I want to check that if the folder in which the image has been uploaded is exists or not. If it exists, is it read-only or not and if it is read-only, I want to make it not read-only. How can I do so. Each time when I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Want to use c++ or perl to send a file over the internet using OpenSSH and SFTP---Windows Vista both I Want to use c++ or perl to send a file over the internet using OpenSSH and SFTP.
Both Computers will be running Windows Vista. The C++ would be a Console Program.
How do I accomplish this?
Thank You.
I
A: For a P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nullPointerException when passing an arrayList to another function? in the project im working on, i need to take input from the text box and some selected files from the JFileChooser... i wish to pass the arrayList of files to another class where it has to be processed.. but im getting a nullPointerException here...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why math.Ceiling (double a) not return int directly?
Possible Duplicate:
Why doesn't Math.Round/Floor/Ceiling return long or int?
msdn defined this method:Returns the smallest integer greater than or equal to the specified double-precision floating-point number.
but in fact,it is
public static double Ceiling (
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Does the quantifier {0} make sense in some scenarios? Example:
/(?:Foo){0}bar/
I saw something like this in another answer. At first I thought "what should that be", but then, "OK could make sense, kind of a negative look behind", so that Foo is not allowed before bar, but this is not working.
You can see this here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: PHP SQL Server Connection to Local During my internship, I'm working on a Tracking system that is based on PHP and MSSQL. The company is writing software for transport companies, also uses SQL Server databases. The next thing that I'm going to do is to get datas from those companies SQL Servers. But those SQL Server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android onCreate confusion Every example I find for any code makes use of onCreate(). For many of the classes I am writing for a program, I had to pass in the initial Activity as the classes required access to what is currently on display (EditText, Button, etc). I had attempted to make each class extend Activity bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the PHP Uploads directory? I have uploaded a file using HTML / PHP and following is the print_r() of the $_FILES['file'] array:
Array
(
[name] => Chrysanthemum.jpg
[type] => application/octet-stream
[tmp_name] => G:\xampp\tmp\php82DB.tmp
[error] => 0
[size] => 879394
)
As you can se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Playing Videos using MPMoviePlayer Now I am here with new question related to MPMoviePlayer. I am having a table view that lists the videos on one side of ipad, on other side - I play the video selected in list. These happens in same view. Now switching to different videos works fine. Now when I am editing the video... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Adding views or windows to MainWindow I'm stumbling over some basic concepts, that I cannot grasp. I hope, somebody can clear some things up for me, as I've found no resource, that would explain that. OR maybe, it's in the bright open and I just don't see it.
Understood so far: The MainWindow holds the menu and is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Facebook posting status containing html I am posting status using Facebook C# SDK. It works fine but I when my post contains some html it doesn't work. Basically it contains anchor tag and my site's link.
How can I resolve this error?
A: This isnt an error, this is intended. You cant send HTML in a post status, reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make this generic I have a bunch of ViewModel classes, Q001ViewModel, Q002ViewModel, ..., QnnnViewModel. These all inherit from VMBase.
I also have a set of Subs ShowQnnn, ShowQnnn, ..., ShowQnnn. An example is:
Private Sub ShowQ001()
Dim workspace As Q001ViewModel = _
CType(Me.Wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flex Charts Custom AxisRenderer Grouping I have to group the horizontal columns in all kind of flex charts.
Expected result is shown below.
On top, i want to display the grouping of the horizontal axis.
Please let me know if this can be achievable in flex charts?
Appreciate your help on this.
Thanks,
Raghu.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mvvm and Mef and Item control template I have the following case on my WPF app :
I have a main user control with its MainViewModel which binded to the control datacontext .
Inside the main control , I have an item control which item source is binded to List .
the item control has a user control as its template whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GWT RequestFactory Hibernate unnecessary call find method in locator Using RequestFactory I gets data to View, then in other transaction someone else updating this object to version 1 (My view has still version 0). Next I update some values and push changes by RequestFactory to DAO Layer. The problem is when changed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RadioButtons generation? I am working on scripts that would generate a list of radiobuttons.
The user would have to choose one of the answer, and one cell is filled with the result.
The number of radiobuttons in not known at the beginning, and depends onthe number of contacts in a group of gmail contacts.
My questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what's the difference between methods dictionary and dictionaryWithCapacity? what's the difference between [NSMutableDictionary dictionary] and [NSMutableDictionary dictionaryWithCapacity:10]?
which one is better?
A: dictionaryWithCapacity is better if you know how many elements you are going to put in at the start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP date_default_timezone_set() and time() Does date_default_timezone_set() function affect the value of time()? Or does it just affect the date() function?
A: time() is timezone independent. See this comment on PHP's time() documentation page:
The function time() returns always timestamp that is timezone independ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.