text stringlengths 8 267k | meta dict |
|---|---|
Q: Why is no serial data available on my Arduino? I've run the simple serial program on my Arduino Uno, which just echos whatever you type to it. This works perfectly when run in the Arduino Sketch IDE (v22).
int incomingByte = 0; // for incoming serial data
void setup() {
Serial.begin(115200); // opens serial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I get image file size which selected by UIImagePickerController? I want to know that the image file size in IPhone PhotoAlbum which selected by UIImagePickerController.
I've tried this code with 1,571,299 byte jpeg image.
UIIamge *selectedImage = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Maven Application got 5 Modules and 6 POM.xml files I am working on existing Maven Project
Which has got 5 modules like
<modules>
<module>sideware</module>
<module>xmlmodule</module>
<module>business</module>
<module>service</module>
<module>helper</module>
</modules>
Each Module has got a on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Breaking up a csv file and recreating the arrays I don't need the you to do my work, just point me in the right direction. I'm new to php and I think I can figure it out, I just need pointed in the correct direction on this.
I have a csv file with business info (company, address, city, email, etc.)
Some of the reco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to receive Application ID from C2DM? I have completed my application and launched in android market.Now I want to add notification. I registered in C2DM and received a mail.But I am so confused. Please anybody tell me the procedure for receiving Registration ID from C2DM?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7592859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating statecharts in Visio using c# Can anyone point me to an example of how to programatically create a statechart in visio?
I can create blank pages, drop shapes, open template etc, but when I try to add transitions it complains that the page is not the right type.
Can't find a sample anywhere.
Alternatively: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to resolve Phonegap error while Building the app all
I made a sample application with the help of Phonegap, while building the app it gives me two error .
Error1:
error: 'NSEC_PER_MSEC' undeclared (first use in this function)
Error2:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Showing Timer in android My objective is to display a simple timer clock on my screen where it starts from 20 and goes on decreasing and when it becomes 0 I want to start an action.
How to achieve this ?
Thanks in advance
A: I don't know how you want to display it but you can do this also just by taking a TextView ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails 3.1 asset:precompile task failing with "bad URI" error Here is the whole error from rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
rake aborted!
bad URI(is not URI?):
Tasks: TOP => environment
Not much to go on.
A: Turned out to be largely user error an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android: Item Text not showing in listView I've been trying for a long time, and I think I have the code in place, but something is wrong because the item is not being added to the listView. Follows my code:
public class EditDoctors extends Activity implements OnClickListener {
SimpleAdapter adapter;
List<HashMap<St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create a variable of an instance object of a class at runtime in VB.NET I am trying to create new variables inside a class after creating its object at runtime. The problem is that I don't know the variable names or the value beforehand so I have to create the new variables at runtime.
For e.g. -
Public Class Test
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can we Obtain Version Number of application from App Store for iPhone? Instead of using a web-service to get current application version number and comparing it in my code for popping up update alert, Is there any way to obtain the application version number from App-Store / i-Tunes directly?
After going through al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jax-rs : parse the ArrayList from Java using JQuery I have an ArrayList returned from my CXF Rest service, but I am unable to parse it to display the details on the client side using JQuery.
Appreciate any help
thanks,
Bob
**Sample Code:**
This is how my code looks :
@GET
@Path("/{id}")
@Produces("a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send encrypted id/password from a jsp form to a controller I have a jsp with a 'login' link. On click of Login, a div appears on the top of page. I need to submit my id\password through an ajax call to a spring controller (java) which will then validate it.
Can this Form Submit be secured or encrypted in some way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: simple shopping basket written in ASP What i need a simple shopping basket written in ASP.
I have looked around and there are some great full-blown ecommerce solutions out there, but they are beyond my needs and abilities.
What I am looking for is an ASP based Shopping cart, in which
No database required
Simple shop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: architecture help with a website in php I am helping to make a website in PHP which is an ERP purpose website. We made mockups of a form to collect user details which is split into 4 screens facebook style where the end user keeps clicking next after filling in each partial form. Finally they get the preview and con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sign up a new account from mobile app to rails devise app I am using HTTP authentication to sign_in and sign_out. It works great. However, I want to allow users to sign_up for a new account from my mobile app and then send that over using POST and in JSON format. What do I have to do to make this work?
I am using De... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get Database Results from a Multiplayer game I hope you can help me or at least point me to the direction.
Everything has been programmed in c#, but client applications can be in whatever language, just need to know tcp protocol used for communicating with servers.
I made a server application, which include a lobby ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get float value as it is from the text box in objective c Can any one please help me how to get float value as it is from text box
for Ex: I have entered 40.7
rateField=[[rateField text] floatValue];
I am getting rateField value as 40.7000008 but I want 40.7 only.
please help me.
thanks in advance
Thanks E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to wait for one task to finish before calling another without blocking? Trying to do something like this:
Task task1 = Task.Factory.FromAsync(stream.BeginWrite, stream.EndWrite, task1Data, 0, task1Data.Length, null, TaskCreationOptions.AttachedToParent);
Task task2 = Task.Factory.FromAsync(stream.BeginWrite, st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting error while packaging the code for ipad device using flashbuilder This is vengatesh. I am developing mobile application for android devices and apple ipad, using flashbuilder 4.5 premium.After the completion of code , I can easily create apk file for android devices but I couldn't be able to create ipa file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Arabic style writing implementation in textfield of IPhone/IPad I am doing an application where I am trying to implement the arabic style of writing in textfield and textview here i have used a line:
[self.textfiled setBaseWritingDirection:UITextWritingDirectionRightToLeft];
but I am getting an warning: "method not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how i can solve this error "A PHP Error was encountered"? Please give some idea. how to solve the error?
echo "<td class='bold'>Race Category<span class='star'>*</span></td>";
$array_all=array('name'=>'race_category','value'=>$s_race_category,'type'=>'RACE_CATEGORY','style'=>"class='selectbox'",'javascr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: asp.net 4.0 update database from xml automatically daily at 12am Basically I want to update tours table in the database from XML automatically daily at specific time. For instance System Daily update my database table from XML at 12AM.
Is it possible with ASP.NET 4.0 if yes then how i can implement this?
Thanks in A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Runtime exception catching different between inside and outside of MSVS I am calling the following function some where in program that will throw an exception
public static List<Templates> LoadTemplates()
{
// ...
// System.Threading.Thread.CurrentThread.ManagedThreadId == 1 // ID written to log file
Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: can we load excel 2010 using SSIS 2008? can we load Excel 2010 using SSIS 2008? since in Excel connection manager we have excel version option there we have microsoft excel 2007 as last option,if we want to load excel 2010, how do we do it using ssis 2008?
A: Yes, 2007 is valid for 2007 format going forward
Excel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Randomize UIImageViews through code I have 8 images on my View. 4 on left n 4 on right side on the view. i need to match images every time from ones on left to ones on right. I have done this statically by creating 8 image views in the interface builder and connecting it to the outlets created. Now i have to dynamic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to view content of variable of type LPVOID I have a C function that takes a parameter of type LPVOID. The values that gets passed in is \0 seperated array of characters. How can I cast the parameter to see the incoming value in visual studio / windbg?
A: You can do this in a script. Something like the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: solving T(n) = 2T(n/2) + log n I am trying to solve T(n) = 2T(n/2) + log n
substituted n = 2^k
T(2^k) = 2T(2^(k-1)) + k
T(2^k) = 2^2 T(2^(k-1)) + 2(k-1) + k
after k steps
T(2^k) = 2^k T(1) + 2^(k-1) + 2 * (2^(k-2)) +....+k
So basically I need to sum a term of i*2^i where i = 1 to log n - 1.
And I could not find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Get requested value(URL) when using @RequestMapping annotations When I map multiple values to @RequestMapping(like Multiple Spring @RequestMapping annotations), can I get the requested value(URL)?
Like this:
@RequestMapping(value={"/center", "/left"}, method=RequestMethod.GET)
public String getCenter(Model model) th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to start InputMethodService using Broadcastreceiver or Intent in android? We have an 'InputMethodService' as a stand alone application now what we want to start this InputMethodService for a particular activity in another application.
We tried using broadcast receiver but it is giving following error:
Intent myS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why do I get the error "CalendarService class not found" despite having the gdata-calendar-2.0.jar file? I have the gdata-calendar-2.0.jar file, but I get the error "CalendarService class not found".
CalendarService myService = new CalendarService("example");
A: Have you included the library in your project? You s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save date in nuserdefaults in iPhone? I am saving my date selected from datepicker in nuserdefaults. When I select the date from date picker say 9.52 AM and click on the save button the date selected is getting saved in userdefaults and in SQLite. If I select another date to set another alarm say 9.54 AM and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MEF Child Container Module Not Initializing I have a simple container hierarchy with a parent container which is defined in the Shell MEFBootstrapper using a Directory catalog, and child container(s) which get created off the parent with a distinct catalog.
My child containers also use DirectoryCatalog (different pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby TCP "bot" using EventMachine - implementing a command dispatcher I've crafted a basic TCP client using EventMachine. Code:
# run.rb
EventMachine::run do
EventMachine::connect $config_host, $config_port, Bot
end
# bot.rb
module Bot
def post_init
# log us in and do any other spinup.
sleep(1)
send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone selects a Shift key when focusing on a HTML input field. How to turn this off? When I'm focus on an input field on an iPhone, the Shift key is turned on to make sure that the input starts with upper case. Is there a way to turn off this functionality and not have the Shift key when I focus on a field?
I under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DeviceAdmin policies PASSWORD_QUALITY_NUMERIC not working I am working on DeviceAdmin policies implementation, followed below link for implementation http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#PASSWORD_QUALITY_NUMERIC , In that if we selected PASSWORD_QUALITY_NUMERIC password Q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set the time limit in online exam I am doing online examination project, in that my requirement is to set one questions in one page,the maximum time limit for the question is 60 seconds, count down. how to set the time limit in jsp .can any one help me.
A: This can easily done using javascript.I hope you are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving image for android <--------------------------- image direction ---------------------------------------
------------------------------> Image.PNG <---------------------------------------
[]--------------------------------------------------------------{}----------------------[] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom UITableView I have successfully made a iPhone app that uses a UITableView. I would like to start adding some life to the app. How do I customize the table? For example, change the height of the cells, add custom images to the cell, color, and So on....
Any good advice?
A: try this tutorial
http://www.aboutob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Defining (embedding) Javascript I would like to collect all possible ways with which JavaScript can be defined in the web page for execution.
So far I know the basic part:
*
* script tag
* external script
* element attributes that start with "on"
* inside some tag: WIDTH="&{barWidth};%" ALIGN="LEFT"
* CSS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multi-Table Inheritance in Django. I'm not sure I understand Im not sure I understand the advantage/purpose of multi-table inheritance… but it may be what I'm looking for. Im dealing with Restaurants. My current logic is that I have a Company model which is likely (but not always) a Restaurant. Sometimes a Company c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: want access resultset of first query for second query This is java program for SQL statement. I have two queries. Result of the first query is required for second query.
How do I call it in second query?
These results are values for xml tags.
I need to get first query result for this tag
child1.setAttributeNS(xli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I turn the output of asp:SiteMapPath into a list? I'm extremely unfamiliar with both .NET and VB.NET and can't quite figure out how to do this. Say I have code like this:
<div class="breadcrumb">
<asp:SiteMapPath ID="SiteMapPath1" runat="server"></asp:SiteMapPath>
</div>
It outputs a bunch of <span>s wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I before_filter a Module::Class::method? I have a custom Module on my Rails project, and I want it to be a before_filter, is there
a way I can do?
before_filter TokenGenerator::Generator.generate_token("mytoken")
A: You can use a block as a before_filter:
before_filter do |controller|
TokenGenerator::Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Transparency with Python Image Library I'm trying to place a PNG watermark with partial transparency on top of a Facebook profile pic (jpg) using the Python Image Library. The part that should be transparent simply comes off as white. Here's my code:
con = urllib2.urlopen('facebook_link_to_profile_pic')
im = Image.o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to upload hard coded image in php I want to upload a particular image without using upload controls. My problem is that I am not able to pass the hard coded image path to upload.php.
upload.php:
<?php
//i want to assign my image path here can any one tell me how to do that
echo "Upload: " . $_FILES["file"][... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differences in LINQ vs Method expression Why the Linq expression IL results in omission of the Select projection whereas the corresponding method expression keeps the Select projection ?
I suppose these two pieces of code does the same.
var a = from c in companies
where c.Length >10
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7592996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert SID to Username in C# In .net, I can create a NTAccount using domain and username, and get it's SID.
But I cannot convert the SID back to NTAccount using translate function.
new SecurityIdentifier(stringSid).Translate(typeof(NTAccount)).ToString();
And this two way conversion code has no problem running on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Zoom effect on Android SurfaceView I am developing a Car Race Game. I am able to move, stop, accelerate. But i want that when i press screen then car(bitmap of car image) should look like, it had jumped on its place.I am using surfaceviewto draw view
I do not want to use 3D openGL. Any help is much appreciated
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What does '=>' mean? What does => means? Here's a code snap:
Dispatcher.BeginInvoke((Action)(() => { trace.Add(response); }));
A: it's lambda expression which is the simplified syntax of anonymous delegate. it reads 'goes to'. equivalent to Dispatcher.BeginInvoke((Action)delegate() { trace.Add(response); });
A: =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Blackberry Sound Graphic Analyser In my BB application I need to play/record sound and simultaneously show a Sound Graphic Analyser(as shown in image attached) within the application.I have searched forums but have found nothing significant.
I want to show graphics as shown when playing or recording music dependend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Paypal API - accepting credit cards outside US I am using the Paypal Website Payment Pro API with DirectPay. Is it possible to accept credit cards from outside the US? Do I have a better option?
A: Yes this is possible. As A user from outside the US I can perfectly use it. Paypal accepts these creditcards. Usuall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AJAX, WCF, and Authentication woes I'm working on a site which is not publicity accessible. That is, it's on the internet, but you must login to access the site, you can't register or anything, it provides a service for a particular industry.
We are moving some of our functionality to a mobile site, a real cut down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you read multiple lines using readLine in Groovy through SpringSource Eclipse? I am trying to read multiple inputs from the console in Groovy 1.7.10 in Spring Source Suite 2.7.1 (multiple in.readLine()), but the console only seems to allow me to input the first entry, puts in a blank for the second entry and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: file path problem I am working on the dll project which contain 3 module.All these module include comman header file.I have the include folder path like mf/cv/include.now In the property dialog box I have give the path in c/c++>>general>>additional inclde Directories like .,..\include,..\cv\include in all the 3 modu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Where can I download JNLP.jar? How can I run the examples in the link?
Where can I get the JNLP developer pack?
A: C:\Program Files\Java\jdk1.6.0_27\sample\jnlp\servlet
In other words, in the sample\jnlp\servlet directory of your JDK.
A: You can also find the javax.jnlp.* classes in lib/javaws.jar under your JRE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to save filename with space on Iphone I am trying to save file in document directory using
NSString *documentDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
NSString *filename=[NSString stringWithFormat:@"abc 1.pdf",];
NSString *pdfLocation = [docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Doubt in implementing Service I have written a service To delete data from a table when data inputed into it(tblTest) as given below
public class service_helper extends Service {
private DatabaseAdapter dbAdapter;
@Override
public IBinder onBind(Intent arg0) {
return null;
}
@Ov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to close the default media player? I have started the default media player using the following code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File(Environment.getExternalStorageDirectory()+("/background.mp3"));
intent.setDataAndType(Uri.fromFile(file), "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to achieve temeplatization in C as it is possible in C++ I want to write a function in C that will accept any type of data types like int, char, float, or any other data type and do some operation on them. As this is possible in C++, is it possible in C?
A: It wouldn't be pretty. Take a look at this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery-ui sortable: elements dragged behind when using multiple sortables I have a series of nested sortable elements exhibiting some strange behaviour with z-indexes.
Basically, on some occasions elements are dragged behing the parent containers. It appears only after parent element has been sorted.
It also looks l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Storing sensitive information in a class protected variable considered safe? Please note: I have limited this script to show basic structure. It is not functional.
class AuthController
{
protected $dump = NULL;
private function recall()
{
$dump = $this->query('SELECT * FROM table WHERE access="id" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2008 SP1 assembly reference confusion I am using Visual Studio 2008 SP1 on Windows XP SP3 to develop some .NET Compact Framework 3.5 SP1 solution for Windows CE 6.
I want to use SQL Server Compact 3.5 SP2 in my solution, however I notice something very strange with how Visual Studio treats assembly ref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: django generic one-to-one relations, with cascading deletes I'm trying to emulate an inheritance model using django's generic relations. So far, this is what I've come up with:
class Base(models.Model):
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to overload operator +() for a class The following is a class that contains a operator+ method. I understand the feetInches::operator+(const feetInches &other) const part of it but in the method definition, why is there an extra feetInches and what does it represent here?
class feetInches {
public:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why use non-member begin and end functions in C++11? Every standard container has a begin and end method for returning iterators for that container. However, C++11 has apparently introduced free functions called std::begin and std::end which call the begin and end member functions. So, instead of writing
auto i = v.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "219"
} |
Q: pyvnc2swf not working? outputs video of duration 0sec i need to convert video from swf to flv. im using pyvnc2swf : edit.py but it's not working. shows no errors but outputs a file with one blank frame.
here is the command:
/usr/share/pyvnc2swf/edit.py -o outlet.flv -s 1 1.swf
output:
Using pygame 1.9.1release the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merging two columns of fields in MySQL
Possible Duplicate:
Merge date from one datetime and time from another datetime
How can I physically merge two MySQL column/fields into one column/field without losing any data on it
Specifically I will be combining a DATE and TIME column/field
thanks
A: By "merge", do you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: does not find rjs file I am using rails 2.3.8 and I'll load a modal dialog box using a partial called _show_venue.html.erb. Inside this partial I add link_to_remote to edit each venue.
_show_venue.html.erb ::
<table>
<tr>
<th>Country</th>
<th>Place</th>
<th>Color</th>
</tr>
<% @venues.each do |venue| %>
<tr>
<td><%... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is (mono) asp.net slower than php? I have a simple hello world written in asp.net, php and regular html. They are being served by nginx using fastcgi for php5 and xsp (mono 2.6.7, fastcgi-mono-server2.exe 2.6.5.0). I am using a simple .NET script to make async web request. What i found was in the span of 1000ms
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android - skia decode error for images I have been trying to decode an image as follows:
String dat = jobJect.getString("dat");
client = new DefaultHttpClient();
String url2 = url1 + dat;
request = new HttpGet(url2);
request.setHeader... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Clipping of sound files + Blackberry Is it somehow possible to clip a sound file i between ? In my application I have to provide the user the ability to create a ringtone out of a sound file and the user will enter the start and end time of the region within the file he wants to clip .Is this possible?
A: Parse mp3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Developing a new dexterity widget and field I need to develop a dexterity content type with a particular field/widget.
This widget is like a multiselection widget but I need to give the
possibility to upload a file for every choosen option. Something like this:
[] option 1 Upload a file: [ ] [ Browse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sql Query statement under microsoft access i have 2 tables:
Employee:
ID
SalaryPerDay
overTimeHoursPrice
.....
.....
Schedule:
ID
EmployeeID
Date
Attending (boolean)
loan
discount
overTimeHours
with many to one relationship
i want a query to return
[employee name] a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Translate Code Snippet from C# to VB I need to translate line 4 in the code snippet below into VB. For some reason I cannot get this done tonight. I am either too tired or having a brain drain... Can you help?
var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
provider.ClientIdentif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to modify a java timer interval after scheduling it for a fixed rate in android? I have a service which has one Timer. I call timer.scheduleAtFixedRate() in the onStart() callback method. But I have to alter the timer interval depending on the value of a variable. I found no function for timer to alter its inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Php, session id control doesnt work? here is the code drives me crazy:)
<?php
$deger=0;
if (session_id() == '') {
session_start();
$deger=1;
}
else{
$deger=0;
}
$row = mysql_fetch_row($result);
$counter =$row[2];
if($deger==1){
$counter--;
}
echo $counter;
?>
This basic code drives me crazy. the deger==1 condit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular Expressions to find C# class and method names I'm writing an impact analysis tool that will parse a bunch of selected file types and find the class and method calls inside the file (in this case a .cs file). I have managed to write a regular expression that will find if a line of code is a method call.
Rege... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LINQ select after grouping I'm trying to return a result set from a grouped query and I can't get the select right. In LinqPad the cursor jumps to "ItemID" in Grouped.Key.ItemID with the error:
'int' does not contain a definition for 'ItemID' and no extension method 'ItemID' accepting a first argument of type 'int'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Playback MP3 data buffer using AudioQueue Service : Prime failed (-50) These days I was struggling for finding the way to playback network audio stream (in MP3 packet format) using AudioQueue Service on iPhone.
To achieve this target successively, I firstly got the common local MP3 file to playback using AudioQueue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Trouble with threads in OSX and Ruby 1.9.2 Running the following code in IRB:
t = Thread.new { loop { puts 'Hi' } }
I receive a single hi and then no more output. Only if I begin pressing the enter key do I receive output as expected until I discontinue pressing enter.
If I do t.join, everything acts as expected
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disabling a toolbarbutton when there is no page to go back - Firefox extension I need to disable a toolbar button when there is no page to go back in history object. Similar to the browser back button.
How can I do this?
A: You use tabbrowser.sessionHistory property:
gBrowser.sessionHistory.addSHistoryListener(myL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: which one is better approach one large svc file or multiple small svc files in WCF I have one data intensive application where in I have one svc file which creates the C# reference file roughly of size 3mb and around 70 endpoints. Will it be good to break them in multiple svc files or is it ok to have one single svc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: duplicate entries in tableview I have implemented the table view in my iphone app. In this I am using the date picker to put date entries in table view. But some time user by mistake set to put the entry which is already existing. How should I put the validation so that duplicate entry don't exist.
Please provide me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do arguments put forward for avoiding the use of triggers hold true for ISV products? I've read the various accounts / opinions on the use of triggers here and elsewhere on the web and am trying to be careful not to create a duplicate question here.
Much of the reasoning put forward against the use of triggers is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: http.get randomly says "getaddrinfo: Name or service not known" To generate offline reports, my Rails app needs to download charts from the Google Charts API.
PROBLEM: It works fine most of the time, but sometimes (randomly) it fails and says getaddrinfo: Name or service not known
When I get the error, I just relaun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Object of abstract class type "Animal" is not allowed: (C++) I'm trying to store things into vector but there're few problems.
These are my code.
Animal.cpp
#include "Animal.h"
#include "Cattle.h"
#include "Sheep.h"
#include <iostream>
#include <string>
using namespace std;
Animal::Animal(int newid, double newweigh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Curved box into css? Can this box be created using only css, or at least 90% css with corner pieces, or would it be best to just redesign it?
A: .panel {
background-color: #2B2B2B;
-webkit-border-radius: 10px; /* CSS3 Property for webkit design engine used browser */
-moz-border-radius: 10px; /* CSS3 Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Chromium closes WebSocket with no explanation I have Chromium 12.0.742.112 (90304) and I'm trying to set up a simple WebSocket server with it. I receive a handshake request like:
Upgrade: WebSocket
Connection: Upgrade
Host: akira:22222
Origin: http://akira:22222
Sec-WebSocket-Key1: ;39LP*eC48 n /r0P6 v6548
Sec-WebS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to set the locale according to the currency code selected is there a way to set the locale according to the currency code selected .i can get a list of currency codes.now if i select a currency code say USD ,then i should be able to get the locale identifier "en-US" and set the locale accordingly.The purpose is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: parsing nested JSON String objects with JQuery/PHP? This is the page I'm working on....
http://fremontchurch.net/json_test/
This is the json
http://fremontchurch.net/json_test/posts.php
I'm trying to to have a list of tracks names listed and linked through simple html link <a href="URL_GOES_HERE">TRACK NAME GOES HER... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Trouble with Android Facebook SDK on Java, Android I create app for working with facebook. I download Android Facebook SDK from GitHub, than I create a new Android project for sdk in Eclipse (when I'm creating a new project for sdk, i selected "create from existing source"). Than I added to my project this facebook ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# error in application I implemented my site and suddenly im catching an error in the global.asax application_error which states the following:
Error Caught in Application_Error event Error in: http://www.mydomain.com/styles/data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs= Error Message:A potentially dan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JQuery AJAX response handling Probably some simple derp but I just can't figure this out, I'm using almost identical code in a different solution and it works.
Javascript:
$('#drop').click(function(e) {
e.preventDefault();
$('#login').slideToggle(1000);
});
$('#sub').click(function(e) {
e.preventDefault... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change Solr search directory to my custom named index directory In the /data directory of solr, suppose, I have three folders named as index, custom, spellCheck.
So, the problem is when I open up localhost:8983/solr/admin and try to search, solr makes a search only in the index folder. I want solr to search in the '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save a long type data with Persistent Object on Blackberry? I have a class DataContext to save data by Persistent Object.
DataContext data = new DataContext();
data.set("edit",myEditField.getText(); // ok
but
data.set("date",myDateField.getDate()); // not accept for save long type.
How can I save myDateFie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL ORDER BY dilemma with numbers I have a table which holds a varchar datatype. It holds 128 characters max.
I'm trying to order it alphabetically, and it works out fine, except for one little thing.
When I try to save a mixture of numbers and letters, it returns the 'literal' alphabetical order, which means 11 com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse not compile my servlet I have eclipse project with many packages. I move one .java file from one package to another and then I try to compile. Compile was successful but this file hasn't been compiled. I restart eclipse but this problem still appear. I create new test class ant this class weren't compile aga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Find tag and put a word in an element with jQuery What I want:
if inside tag <li> there is no tag <a>, then - insert word "Empty" into <div class="tooltip"> </div>.
How can do i do it with jQuery?
<ol>
<li><input name="hotel_id[]" value="14" style="display:none;">
<div class="tooltip" style="top: 439px; lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7593196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.