text
stringlengths
8
267k
meta
dict
Q: calling a web service from an android application I am using the following code which i found on internet to call a web service from my android app: public class WebServiceActivity extends Activity { private static final String SOAP_ACTION = "http://tempuri.org/HelloWorld"; private static final String METHO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I run a set of junit tests in multiple test classes? In my webapp, there are multiple screens that have common webElements. I want to assert that all these common elements exist on each page. But I don't want to put all my asserts into a single utility function that will abort halfway through if one assert f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone App :show direction using Map in My iPhone App How Can I show directions from current location to End Point? is there any built in component or facility available on iphone which can show maps and direction using GPS and built in compass? A: If you mean taking the user to the maps application based on two...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Web Flow - Issue of Reusing Subflow This is probably a design issue then coding issue. We have an existing ordering interface which we are trying to convert into Spring Web Flow. For each product we have a few reusable components such as contact details, contract details, order details, pricing ... Now we wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Codeigniter selecting data with multiple id's Here is an example of my code and an explanation what I am trying to do. At the beginning of the code I am selecting three variables in my database. I then compare them to a function that determines the distance, if the distance is within the given distance then I have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is more efficient to join T2 to T1 rather than T1 to T2 when T1 has many T2 with a condition held in T2? Or it's the same? I know the followings queries return the same: SELECT `cimgs`.* FROM `cimgs` INNER JOIN `cimgs_tags` ON `cimgs_tags`.`cimg_id` = `cimgs`.`id` WHERE `cimgs_tags`.`tag_id` IN (1, 2, 3, 4, 5) AND ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIScrollview in a UIModalPresentationFormSheet I'm having some issues with a UIScrollView inside of a modal view, specifically when I use setModalPresentationStyle:UIModalPresentationFormSheet. Whenever I use the UIModalPresentationFormSheet, it resizes the UIScrollView in the modal view to a small square that can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to change the output volume of any sound that comes from your site? This may sound weird even to me but whatever, I'll ask it and get it done with. I was wondering if there is any way to alter the output volume of all noisy stuff of your site or of a particular element. I'll appreciate any info about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OCaml: Iterating through a list and skipping elements if of the wrong constructor This may seem like an odd thing to do, and you're certainly welcome to suggest a better way to do it. Here's my goal: I want to scroll through each element of a list passed into a function. If it's of constructor Y, then I want to cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to support includelevel in Visual Studio 2010 At school we use c++/g++ compilers on Linux to support includelevel. This allow us to write an app, include a main that proves the functions work, and then to include that file in another program to use it's functions. The theory is that includelevel will block out c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you get a simple camera program working for Android? I just started programming in Java, and I need to get a simple application up that shows the camera, takes a picture, and sends that picture data somewhere. I have been searching all over the web trying to find a good camera tutorial that worked as expected...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Must I use Fragments to get a LoaderManager? According to some of the documentation I can use a Loader in either an Activity or a Fragment but the Compatibility Package is showing that only a FragmentActivity has the getLoaderManager() method. Since the old managed cursor has been deprecated we have to use the Curso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Dynamic PHP image with a PNG extension I'm trying to make an image similar to one of these: http://www.danasoft.com/vipersig.jpg Not really content wise (displaying IP addresses and headers), but more so a PHP image displayed in a PNG format (so I can use it on websites, within BB image tags). I know how to create a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: system() with powershell in vim I'm trying to write a simple function in Vim to return the results of a powershell command. I keep getting gibberish in the results though. I think this may be an encoding problem, but as you'll see the problem is strange since it "sort of works". I don't have any solution to the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: SQL Server - DATEDIFF rounding error In my sql statement, I need to retrieve rows which datediff more than 3 months. But I found that it seems have rounding problem such as From Date: 2010-09-09 To Date: 2010-12-01 select datediff(month,' 2010-09-09', '2010-12-01') It returns 3 for result. How to fix it ? thanks. r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: loading gif image on above bitmap field in blackberry I've add splash screen image on bitmapfield when open my app. in thread method i get logo from httpconnection. After complete the thread execution , i delete the bitmapfield. and load the logos on that screen. I want show loading gif images on above the bitmapfi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function to calculate smallest set of zip codes in which all zip codes are within x miles I need a function (in any language but preferably a script) that can take an array of objects (lets say zipcodes) with latitude/longitude coordinates and return the smallest subset in which all the elements of the original arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: About callgrind output I am using http://valgrind.org/docs/manual/cl-manual.html to profile my application. But I have a question about it's o/p does it shows * *time consumed inside that function OR * *cpU consumed inside that function call What I guess is Currently it is showing 90% usage in curl ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set start time offset using setCurrentTime() I have recordings of spoken text where I would like to allow users to start an audio recording at a specific point within the recording, for example, 12.5 seconds after the start time. Using the sample code below, how can I make this happen? <audio id="player2" src...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: an issue about Admob I just want to ask that is setGoneWithoutAd() function available in Android. I tried to use it but it showed: The method setGoneWithoutAd(Boolean) is undefined for the Type AdView Please help if you had experienced it before.
{ "language": "en", "url": "https://stackoverflow.com/questions/7605931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using static const char* const instead of #define I get the error error: ‘Name’ was not declared in this scope What am I missing here. Source File: #include<iostream> #include "scr.h" using namespace std; const char* const Test::Name; void Test::Print() { cout<<Name; } int main() { Test *t = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flash Socket HTTP-POST Example This article provides an example of using the flash.net.Socket class to connect to a socket: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html The example at the bottom shows how to use an HTTP-GET request. I need to use an HTTP-POST request. Bon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why am I getting this error when trying to connect to my WCF service The caller was not authenticated by the service. I have a WCF service hosted in a windows service on one machine and I have another windows service on a different machine as a client connecting to the WCF service on the first machine. I'm guess...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BGI error, How to Resolve it? I want to run a C program that draws a circle. The program is compiling with no error and it is running. After getting the values like radius from the user, I get the error like this : BGI error: Graphics not initialized ( use "initgraph") Even though in my source code I have added thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to serve a JS file to every browser but IE I dont know why this isn't working. I'm trying to serve a file to good browsers, namely everyone but IE. <!--[if !IE]> <script type="text/javascript" src="JS/script.js"></script> <![endif]--> but it doesn't get served to any...any idea? A: <!--[if !IE]> --> <!-- <![...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Date incorrect results I am getting the dates from twitter status feed. I am trying to find out all the latest updates (past 24 hours) long referenceTime =System.currentTimeMillis()-(24*60*60*1000); //ti.getDateTime() returns the string time returned from twitter.. long statusTime =DateUtil.convertStringTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Variable setting not going through to form element I have a global variable called 'name', when a user clicks on a button a text boxes content is queried and 'name' is set to the contents then the name gets printed in a different jquery page. My problem is name is never printed as the name it was set to, it's always...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change MySQL timezone in a database connection using Java? MySQL runs with timezone "GMT+8", but Tomcat with "GMT". When I save datetime to my database, everything seems to be OK, but when I check the datetime value in the database, I see the "GMT" value. Also when I try get the value from the database the va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Trouble with ArrayCollection in flex I have trouble with ArrayCollection in Flex. Here is my code: private var productPageArr:ArrayCollection; private var productCount:Number = 10; private function dviceProductPage(arr1:ArrayCollection,arr2:ArrayCollection):ArrayCollection { var page:Number = a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating an JSON Date a la ASP.NET Format There's a great thread here: How do I format a Microsoft JSON date? that shows how to parse an ASP.NET formatted JSON date: /Date(1224043200000)/ ... back into an actual JavaScript Date object. However, it doesn't show how to go the other way. So, given a date - how do I go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how do I use variables when binding backbone view events? I want to bind an event to a view using a selector I define in the view's options. Something like (in coffescript): events: ()-> "change" : "setNewCheckedStateWithCheckbox" '"click'+ @.options.choices_button_selector +'"' : "test" Can't for the life of m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Translate one line please from python to ruby Need to calculate IP => int just like in here: https://bitbucket.org/lorien/django-ipgeo/src/d19648c9b14f/ipgeo/models.py but in ruby. I'm pretty new in ruby, so cannot translate this into ruby: number = struct.unpack('!L', socket.inet_aton(ip))[0] struct, socket are py...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to catch only update,insert and delete operation of Contacts when onChange is called. How can i do it ...? I have following code. public class TestContentObserver extends Activity { int contactCount = 0; final String[] projection = new String[] { RawContacts.CONTACT_ID, RawContacts.DELETED }; Curs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to break this string correctly I have strings that have the following pattern. Some text on some more text before some text. How do I find * *the position of the word "before" and remove it with anything after it, *and the position of the word " on " and remove it with anything before it? A: Regular exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Single DoubleTapDetector for a few UI controls I am trying to identify UI-control that fired MotionEvent in Android. I have one doubleTapDetector public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); doubleTapDetector = new GestureDetector(t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maven project builds successfully in Eclipse, but shows compile errors in cmd prompt I have imported an existing Maven project into Eclipse IDE. I modified some of the code and built the project in Eclipse. There are no build errors. However, when I ran mvn clean install from the command prompt, it is showing a lot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails to_xls in rake task I am trying to use the rails to_xls gem in my rake task. My code is: tmp_file = Tempfile.new(['export_test', '.xls']) ToXls::ArrayWriter.new(@logins_report, :name => 'export_test').write_io(tmp_file) I receive an error that says "rake aborted! uninitialized constant ToXls" Any suggestions?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7605991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I cleanly break out of a recv loop? I'm using the recv function in a loop to receive network data, but let's say I want to stop receiving data mid-loop. I could just break the loop, but this doesn't seem like a very clean way to stop receiving data. So is there any way to cleanly stop receiving data, or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't use glLoadIdentity as expected after a translation in JOGL I'm just starting with JOGL, and there's something I haven't been able to do: There's an example of basic drawing and rotation in NeHe tutorials, and everything works just fine, except the glLoadIdentity(); used after the first triangle and before the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use unicode in GNAT Programming Studio? I am using the GPS to programming. But I can't use unicode characters in code. I set the Character Set as UTF-8 in preferences. But I still could not type the unicode characters as comment in the code. Can anyone tell me how to use unicode characters in source code? I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there any utility that will remove console calls in Javascript files? This is primarily for the purpose of deploying to a production environment. A solution that parses the JS file into an AST and then removes the console calls is preferable, but I'm willing to look at altneratives. I'm especially interested in o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server - using CASE in WHERE clause I want to use CASE in WHERE clause, but it returns error. Can I use CASE in where clause? or how to fix it ? Thanks SELECT * FROM hris_leave.dbo.tbl_act inner join hris_leave.dbo.tstaff on hris_leave.dbo.tstaff.s_id = hris_leave.dbo.tbl_act.s_id where case when act...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use StringBuilder or String in the following case? String address=null; String body = ""; String date = ""; for(int i = 0; somecondition; i++) { body = cursor.getBody(i); //and so on all strings get changed //REST OF THE CODE } This loops for arround 500 times so what should I use? A: Given that nothi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: are lib files handled differently in Rails 3 versus Rails 2.3.8? I have the following which worked in Rails 2.3.8: /lib/trimmer.rb I use it in my Contact model as follows: include Trimmer #lib module to trim blank spaces in input But I get this error: uninitialized constant Contact::Trimmer I'm guessing lib file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JRPdfExporter is not working I have createad a report in jasper report, when i have wrote the code in servlet to export the report in pdf it is not displaying the report. JRPdfExporter pdfExporter = new JRPdfExporter(); pdfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); //OutputStream ouputStr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to instantiate a generic type object in C#? I have class like this: public ClassA<T> where T : class{ ... } Now I need to to create an object of ClassA in the constructor of ClassB: public ClassB{ public ClassA<?> objA; public ClassB(string TypeInfo){ objA = new ClassA<?>(); // Suppose TypeI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need to show image when validation summary control triggered I have a Warning Image(gif). I want to show this image only when Validation Summary control triggered. Any way to display this Image. Thanks A: Above example from.. below reference link http://weblogs.asp.net/alnurismail/archive/2008/10/16/asp-net-a-v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Java countdown and then do somethign How can i countdown to like 5 then something will happen? Ex: Activity Starts it counts down to 5 then a toast comes up A: This you can perform by using CountdownTimer in-build abstract class new CountdownTimer(5000, 1000) { public void onTick(long millisUntilFin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use multiple svn repositories in a project Is it possible to use multiple svn repositories in one project. Lets say I have a framework repository and multiple modules repositories. In my project I will be using the framework and those modules and when that framework repo is updated I need to be able to sync it with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: report module for sugarcrm 6.2 Which Report module is suitable for making reports in sugarcrm 6.2 . I had installed the zucker Report Module on the local site it works properly but when i used to install them on my server it does not installed Anyone please help Thanks A: KReporter certainly the best Reporting too...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Google Protocol buffers in client/server when have different packet type I want to use protocol buffers in tcp/ip communication, but i may have different packets to send/receive, how can i differentiate the package types over protocol buffers, it seems I have to know the next packet type to use protocol buffer, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AS3 gotoAndStop() on the timeline of a loaded SWF I'm working on a new ad unit called a Filmstrip for NineMSN (demo here) which basically loads in 5 SWFs vertically. Only one of these 5 is visible at a time (with the exception of a a portion of two SWFs between UP and DOWN transitions. What I'm trying to achieve is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to directly send a python output to clipboard? For example, if a python script will spit out a string giving the path of a newly written file that I'm going to edit immediately after running the script, it would be very nice to have it directly sent to the system clipboard rather than STDOUT. A: This...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Python: wait for a key press or until timeout I have a long-running Python script inside a terminal session (the host machine is a FreeBSD box) that performs a task every 9 minutes. Now, I'd like to be able to interrupt that sleep call at any moment so that it performs the task right away. How can I do that? Catchin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is boost.log officially part of Boost? I'm a bit confused as to the status of Boost.Log. Is this an official part of Boost, or has it not been accepted yet? When I google it, I see some posts talking about how it was accepted in 2010, etc, but when I look at the documentation for the last Boost libraries, I see no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to strip html tags in string then escape the plain string and put the escaped string into html tags back I wanted to strip html tags then escape plain string and put back the escaped string back into html tags , for that i have tried : var aa = "<p>hi testing & </p>"; var bb = $(aa).text(); var cc = escape(bb);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incompatible enum types in C I have a question about enums and arrays. Essentially I have an array of enum "BIT"s declared as an enum type "word". typedef enum { ZERO = (uint8_t) 0, ONE = (uint8_t) 1 } BIT; typedef BIT word[16]; As it was explained to me, "word" is simply a predefined array of 16 BITs. However, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I do OAuth request by open new window, instead of redirect user from current page? I have done OAuth authentication with Twitter and Facebook. Currently, with each of these site, my server redirect user to a specified URL (for example, http://api.twitter.com/oauth/authorize with Twitter), then receive authen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Can I use Facebook auth server side flow on an iPhone app and still have client side interactions? I have a website that uses Facebook authentication for logging in users. It uses the oAuth 2.0 server side flow for authentication and it all works fine. I am now developing an iPhone application for the same website a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extract Model from a BackboneJS Collection/UnderscoreJS array I've been checking the docs of Backbone and Underscore for a "proper" way to extract a model (remove the value and have it returned) from a collection. I know I can do this through direct access via the "models" array attribute and the splice method, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display long messages in logcat I am trying to display long message on logcat. If the length of message is more than 1000 characters, it gets broken. What is the mechanism to show all characters of long message in logcat? A: With Kotlin we can make use of the stdlib chunked function: fun logUnlimited(tag: S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Screen orientation For tablets And devices I am using the same code for both tablets as well as device,Here is my problem while coming to mobile in both orientation it should load list view, coming to tablet in portrait it need to load listview and then coming to landscape it should load gridview? Thanks I have use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to attach .NET Framework 4.0 Client Profile to my setup project? By default, the install location for prerequisites of .NET Framework 4 Client Profile (x86 and x64) is from the Microsoft web site, which requires the client network to be available during installation. I am just wondering, is there a way that we c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how would I translate this from searchlogic to metwhere in Rails 3? I had the following in searchlogic: Todo.contact_id_is(self.id).ascend_by_original_date.done_date_not_null.first How would I do this in metawhere now that I am in Rails 3? In particular the not_null and the sorting? Hello, I'm a little confused. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adobe LiveCyle - when to use connection properties for ServiceClientFactory in WebLogic? When making a connection from Java to Adobe LiveCycle ES 2.5, the Setting connection properties page lists the default connection properties you should use depending on your server type. For WebLogic, it is this: Properties Conn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Colours For The Checked List Box I Am Working On A windows c# form. I have Checked List Boxes in my form. And for those checked List Boxes I want To set Predefined Colors. How can I do It..Is There Any inbuild classes or something to get these predefined colors...please Help A: Rather than repeat the answer, see i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i find all the images are loaded in ajax using jquery Is it possible to find whether all the images are loaded in ajax content? I have used var img = $('#slider img'); var length = img.length; img.load(function(){ length--; if(length === 0){ alert("All images loaded"); }; }); but the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when i click an item than item image alone should appear and unselected listitem's image should disappear In my activity intially Position 0 item alone get checkmarked ,when i click it disappears.same way all items.but what i want is.only one item image should appaer if i click other item previous item image should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adjusting a Search Time I'm doing a search on files. I need to adjust the search time from the current time (filetime) to current time(file time) less one minute. How would I do this. Thisis what I have so far. Thank you. struct file_data { std::wstring sLastAccessTime; __int64 nFileSize; }; int GetFileList(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stretch, scale, or double up an array with numpy? I was wondering if there is a numpy function to "stretch" an array along a specific axis like the following: a =[[1,2,3,4],[1,2,3,4]] to a = [[1,1,2,2,3,3,4,4],[1,1,2,2,3,3,4,4]] Thanks in advance! A: import numpy as np a = np.array([[1,2,3,4],[1,2,3,4]]) First pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python Audio Transfer Through Lasers I'm currently working on a project that has been relatively easy, up until now. The underlying project is to transmit data/messages over lasers using audio transformation. In a nutshell the process is currently like this * *The user enters a message *Message is turned into bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript Image manipulation Invert color I am trying to play with an image inside a webpage using javascript and it is being a pain. I have no coding platform atm except my browser. It should invert the color I think but i'm not sure what is screwing up. What is wrong with my script? <img src="C:\Documents and Set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using join tables in ruby on rails Lets say I have two databases: one for students and one for classes. I would like to be able to 'add' classes to a specific student and also be able to add students to a specific class. I assume I need to use a join table here but I am a little lost on how to use them. I would u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Rails session doesn't persist I can't get Rails sessions to persist, both on a local environment and an external staging environment. Right now I'm just doing something basic, like session[:cart_id]=1 in one of my controllers. If I reload the page the session comes up empty {}. I must be missing something basic beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Xcode 4 fullscreen mode not available Ok. Using XCode 4 for a few weeks now. By and large a great improvement. According to users who answered this question, Xcode 4 has a full screen mode. On my system however, here is what I see when I attempt to turn on full screen. I am using one monitor, and it's an Apple LED ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: #arraymap not include delimiter in output Many, many times, I have wanted to create a template that takes a list of values, and displays them in a table, each on their own line. I've tried hiding the comma in a span, but that breaks the table. <span style="display:none;">{{#arraymap: {{{programmers|}}}|,|x|</span><!...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt-OpenCV:How to display grayscale images(opencv) in Qt I have a piece of code here. This is a camera capture application using OpenCV and Qt(for GUI). void MainWindow::on_pushButton_clicked() { cv::VideoCapture cap(0); if(!cap.isOpened()) return; //namedWindow("edges",1); QVector<QRgb> colorTable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Making tomcat multi-tenant for SaaS Our tomcat server serves a single war file that is serviced by 3 different identical databases for 3 tenants. Plan is to use a JNDI datasource (3 datasources) and use an Abstract Factory to instantiate the necessary subclasses for that tenant. Want to use container managed authen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interactive 2D plotting in python I'm trying to write a program that creates a 2D grid in which the user chooses some edges between the points in the grid. Then the program dynamically manipulate those edges(eg. flip them, connect them, ...) till it converges to a particular shape. * *Now my question is there any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LDAP protocol vs other Directory Service Protocol What are the reason one would use any other protocol for Naming/Directory Services other than LDAP when LDAP is being a common standard? A: There is only 1 alternative to LDAP as far as I learnt (after searching and reading few articles) and that is X.500. Below is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the cause of a timeout error using input type="file" in classic asp site? We have recently started experiencing timeout errors on an old (very old - 11 years!) portion of our website that we use internally, to maintain some content on another part of our site. Basically the page involves browsing for a file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separate application log data from server log data using log4j I am creating a java application which starts a server (Selenium server), performs some actions (run automation tests) and shuts down the server in the end. I am using log4j as the logging framework. The log that is generated contains log data which is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flex mobile project : using Blazeds to access data from java class I know how to create a flex web application that uses blazeds for back end data connectivity. Now I need to use blazeds in flex mobile application for accessing data from java classes. I am searching it in internet for two days but I didnt find any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make my SSAS cube production ready I am developing a data warehouse + a data cube for a certain client using Microsoft technologies (SSIS, SSAS and SSRS). I have almost finished doing the data warehouse. I have created a data cube in SSAS and already did the initial setting up of the cube dimensions and facts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to compare data between two table in different databases using Sql Server 2008? I have two database's, named DB1 and DB2 in Sql server 2008. These two database's have the same tables and same table data also. However, I want to check if there are any differences between the data in these tables. Could anyone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How to include JavaScript file in Liferay Portlet? I am not able to include http://maps.googleapis.com/maps/api/js?sensor=false. Whenever I load my portlet for the first time it doesn't work but if I refresh the same page then it starts working fine. I don't know what the issue is. Please Help. A: One of the clean ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upload a photo with some parameters to a Ruby-on-rails web app using Objective-C and an ASIFormDataRequest for iOS I need to upload a list of photos (can be one at a time) to my client's server from an iOS app (iOS 4). His server is using the Phusion Passenger 2.2.14 module on Apache Server (Ubuntu) to deploy his Ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache poi slide show to pdf conversion Is there any way to convert generated .ppt file using apache poi to .pdf file? OR Any way to convert PPT file to PDF file using JAVA? A: Gagravarr, thanks you for your comment with following approach: PPT -> images -> PDF. It gave me clues for further solutions....
{ "language": "en", "url": "https://stackoverflow.com/questions/7606182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PInvoke when you don't know the DLL at compile time? In C#, I'm trying to PInvoke a "simple" function I have in C++. The issue is that I don't know the name or location of the library at compile time. In C++, this is easy: typedef HRESULT (*SomeFuncSig)(int, IUnknown *, IUnknown **); const char *lib = "someLib.dl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Deletion in binary search tree So when I delete in binary search tree, do I need to have like 7 different cases i.e. * *Left Leaf; *Right Leaf; *Left child with only left child. //i.e the node to be deleted is the left child of it's parent and it has only left child. *Left Child with only right child. *Right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arrays with Curiously Recurring Template Pattern? I have a CRTP-based wrapper for a Windows HANDLE: #include <windows.h> template<class T> class HandleT { HANDLE handle; operator HANDLE() const { return this->handle; } static ULONG WaitForMultipleObjects(DWORD count, /* ??? */ objects[]) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IllegalStateException when using a custom SQLFunctionTemplate I am attempting to register function within Hibernate so that I can preform a coalesce within a count statement on a Oracle database. As there seems to very little in the way of examples in how to use this Hibernate feature, I have drawn from the small ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NullPointerException when trying to play a sound with MediaPlayer So I have a simple soundboard type application that operates via a ListView. Tap an item, it plays the sound. I have a public static int[] named soundResourceList that has entries such as R.raw.foo, R.raw.bar in the same order of the entries associate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XSLT 1.0 Regular Expression in for loop So I have xml like <depot id="D7"> <address> <number>6000</number> <street>Yonge</street> <city>Toronto</city> <province>ON</province> <postal_code>M2M 2E4</postal_code> </address> </depot> I have hundreds of there depo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scanning a single char into an array C Programming I am having a problem scanning chars into an array. Every time I do it will skip the next scan and go to the next. I know what is happening because the input also adds '\n' to the input but I do not know how to remedy the cause of it. Here is some sample code: char...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Random URL JS with Multiple Lists I have a navigation bar and I want to access a random URL from a distinct list associated with each link. Link A would access List A, link B would access List B, and so on. I have been using a javascript code from 1997 that works great for one link: <--code contained in a js file:--...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Relative path in settings.py in django for various settings(MEDIA_ROOT,TEMPLATE_DIRS) in setting.py it is instructed to give absolute path.I have configured apache with mod_wsgi.I have a wsgi script in the folder named apache that redirects to settings.py. import os import sys path = 'D:/Projects/Dan' if path no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Paypal error "DEVELOPER ERROR: FILE SYSTEM CHECK FAILED" in iphone device I have developed an application with paypal implementation. When i run this application on iphone simulator it works well. But when i run same application on iphone device, it display "Network error. Pay with PayPal not available. Please try...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asynchronous UIImageView in custom UITableViewCell I would like to know how people implement an asynchronous UIImageView loading, if you have it inside a custom UITableViewCell, I've seen quite some examples using GCD, subclassing UIImageView.. all of them must involves NSURLRequest and NSURLConnection. So how do pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Opencv: image, retrieved from camera capture is always gray I am always getting a grey screen when showing image using opencv, the image is captured from camera. capture = cvCaptureFromCAM(-1); cvGrabFrame(capture); image = cvRetrieveFrame(capture); cvShowImage("name", image); after this I see the grey screen, ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7606210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }