text
stringlengths
8
267k
meta
dict
Q: android reading from a text file I have a java class where it reads some data from a text file using a buffered reader and returns that data as a hash map: import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; public cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: blackberry screen orientation change i want to set my application in Portrait mode as default . so how to implement it ? all screen of the application set default as Portrait mode .. A: Check this BlackBerry UI guide: Specifying the orientation and direction of the screen A: This set default portrait mode: public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: iText Document Vertical Alignment I'm trying to vertically align a table in my document to the bottom of the page. I've set the vertical alignment of the table to BOTTOM but that just makes the cells align to the bottom of the table itself. How can I make the Document itself vertically aligned to the bottom? Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get the selected row in DataGridViewRow event in C# I am using the DataGridView bound to a database. I have a button that is disabled. When a row is selected, not by clicking in a cell but on the row selection pane, I want to respond to an event and enable that button. A: Well, there's the RowHeaderMouseClick even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jquery problems with some chars in strings I'm having troubles with some string chars like 'c++', when trying manipulating that i receive an error: uncaught exception: Syntax error, unrecognized expression: + Is there some way of declaring strings or somenthing more that can be usefull to this case? In this case i p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode 4 external build project and debugging I've got a makefile based project set up that builds my code on multiple platforms. On my Mac I want to use Xcode for debugging though. I've set up an Xcode as an External Build Project I can run the application from within Xcode. The output is shown in Xcode and if the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Git diff - how to quit the diff listing How do you quit git diff listing? There is an <END> marker at the bottom of the screen, and everything I do which appears to quit the diff listing, then shows an <END> marker at the bottom of the screen again. A: The default pager for git is less. To quit less, hit q.
{ "language": "en", "url": "https://stackoverflow.com/questions/7568811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "125" }
Q: Instance value in view is diplayed after page refresh(Production) I'm using rails 2.3.4 & ruby 1.8.7 I'm trying to print a instance variable in my application. The instance variable is getting initialized in a method in deal_portal/base_controller.rb, while the view is rendered from a method in deal_portal/mobile_co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why no tail() or head() method in List to get last or first element? I recently had a discussion with a collegue why the List interface in Java doesn't have a head() and tail() method. In order to implement such a functionality would have to write a wrapper that looked something like this: public E head() { if (und...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: iPhone: get image from camera without UIImagePickerController Please help me with my question. Is there any way to get image from camera without UIImagePickerController? I need to render current image(from camera) into image on my view and update it by timer. May be AVCaptureStillImageOutput? I didn't find any examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSRS PDF compression When I generate a PDF with MS Reporting Services (server side), the resulting file is 5 times larger in size when compared to the same PDF from another program. The report contains 1 page with a JPG image of 20kb and text ('Arial' 10px). PDF rendered in SSRS: 150kb with the image removed: 120kb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem with getElementsByTagName in IE 8 I have problem this script dont working in IE 8 in Firefox is everything OK. <html> <style type="text/css"> lip{ position:absolute; } </style> <body> <ul><lip>3<input type = "checkbox" name = "LH3" id ='lhpz12' value="ANO"></lip></ul> <script type="text/javascript"> v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: display all the files and the directory of the each file under a root folder recursively i want to display all the files and the directory of each file under a root directory recursively the output should look like this filename ---> the directory which contains that file for example filename.jpg--->c:\workspace t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: save get values using arrayList java In my example, I try to get val(0) and val(1) each time. After for loop I need to save my values to use them for other calculations: String[] columns = { "col1" , "col2" }; String[] y = { "TEST", "BUG" ,"ENH" }; List<int[]> values = new ArrayList<int[]>(); for (int j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieve comboBox displayed values I am trying to retrieve the displayed values of all items present in a comboBox. First case: if the comboBox has been filled using a DataSource: comboBox.DataSource = myDataSet.Tables[0]; comboBox.DisplayMember = "value"; comboBox.ValueMember = "id"; ...I use this code: foreach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I check for an ID value in more than one table if not exists(SELECT 1 FROM MYTABLE1 WHERE ID=@ID) BEGIN END I want to check for this ID value in MYTABLE2 as well..how should I write the IF condition ?? i want to check that a certain ID doesnt exist in any of the two tables. A: You could use an UNION ALL: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show the new value when EditTextPreference is changed I have two PreferenceActivity in my PreferenceActivity. My issue is when I update an item, new value is not reflected in the screen. public class HostSettingActivity extends PreferenceActivity { private final String MY_DEBUG_TAG = "SettingActivity"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DotNetOpenAuth SignInWithTwitter sample doesn't work I use DotNetOpenAuth 3.4.7 with valid consumer key and secret. When I try to sign in with twitter on localhost (\Samples\OAuthConsumer\SignInWithTwitter.aspx) it crashes with following exception. The remote server returned an error: (401) Unauthorized. Descriptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: UITextField with auto wrapping I am trying to make UITextField with auto text wrapping, but I can't do it. A: Use UITextView much easier http://developer.apple.com/library/IOS/#documentation/UIKit/Reference/UITextView_Class/Reference/UITextView.html
{ "language": "en", "url": "https://stackoverflow.com/questions/7568851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Restart animated GIF as background-image Is it possible to restart an animated GIF used as background-image? Consider this HTML: <div id="face"> <div id="eyes"></eyes> </div> And this style: #eyes.blink { background-image:url('blink.gif'); } I would like the blink.gif animation to play every time I add the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Change .NET CLR time zone without using registry I'd like to change the default time zone of a .NET CLR without using the registry or changing my OS time zone. Is there a way? EDIT: It looks like the .NET CLR just doesn't support having a default time zone different than the OS's (unlike the JVM). In other words I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to stop getting mouse click events in flex I have made a hierarchy in which there is a main page, using add element i have attached a component mxml of type group. There is a single button on main page when clicked it should add children of type group in that group type mxml component along with two buttons. No...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ModelAndView returns no data to jsp views I am using Spring MVC 3, NetBeans I have the following model, public class MarketPlace { private String status; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } private String category; public String get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php works on wamp but not on 000webhost I have a php file that works perfectly with WAMP server, but when Im trying the 000webhost server I get errors. i.e. error on line 11 at column 1: Extra content at the end of the document. however under the error I get the right answer to the query, but not in the format I ask...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to launch CameraCaptureTask or PhotoChooserTask while debugging with device I'm trying to debug my application on the connected device*(Dell Venue Pro WP 7.0)* but whenever I try to launch CameraCaptureTask or PhotoChooserTask in my app then nothing happens. Everytime I've to disconnect the device from the Zu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Does Selenium support headless browser testing? I'm looking at Selenium Server at the moment, and I don't seem to notice a driver that supports headless browser testing. Unless I'm mistaken, it doesn't support it. If you're on X, you can create a virtual framebuffer to hide the browser window, but that's not really...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: meta tag in ASP.NET MVC 3 How can I put meta tag to work only for one page. If I want to put it .aspx file, where is right place. Thanks. A: Since you haven't said yet, I'm assuming you're using the Razor engine (the "default" for new MVC3 projects). In that case, you just need to insert a new section into your l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Losing attachments in Axis2 response I'm trying to send an attachment to client from Axis2 web service. The problem is that the message context, which client receives from the service, does not contain any attachments, though the last one seems to add it. Here is the brief code of both sides. Service: MessageContext...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adb stopped by some reason? Sometimes my adb disconnected. Why i am getting like this : - [2011-09-27 17:39:43 - adb] [2011-09-27 17:39:43 - adb]This application has requested the Runtime to terminate it in an unusual way. [2011-09-27 17:39:43 - adb]Please contact the application's support team for more info...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I test android application for network errors? I have content management application that uses TCP/IP to fetch data. I would like to test this application for several network problems like packet loss and connection lost. Is there some easy way to emulate network problems to test Android application? In DDMS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to fix JSLint "missing new" error Code below passed through JSLint causes an error: Problem at line 8 character 9: Missing 'new'. ResizeGrid(); How to fix? "use strict"; var ResizeGrid; function t() { var x; if (x) { ResizeGrid(); } } A: You should name functions with a lower case initi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Full body background with Twitter Bootstrap I am trying to work on a new project using Twitter's Bootstrap framework, but I am having an issue. I want a full body background, yet the background seems to be limited to the height of the container div. here is the HTML/CSS code: <!doctype html> <html lang="en"> <he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to pass userpref variables in an igoogle widget Hi I've made my igoogle app simple though it is basically using an xml/php file and getting a series of articles and displaying them. Simple and nice. Now I just need to finish it off with passing how many stories the use would like to show. I've got the dropdown w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I implement an Objective-C singleton that is compatible with ARC? How do I convert (or create) a singleton class that compiles and behaves correctly when using automatic reference counting (ARC) in Xcode 4.2? A: if you want to create other instance as needed.do this: + (MyClass *)sharedInstance { static ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: Can flowcharts with crosslines be noted as OPML? Is there a standard to reference cross-lines in a mindmap or flowchart in OPML.For example with anchors and links. It seems that flowchart editors online such as gliffy can import OPML but export is only xml, not OPML. Put simply: can this flowchart be coded in OPML, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure routes for a profile controller? I'm trying to configure a route to display a profile page about the user. At the moment, I've created a custom controller for this page using: I generated my controller using: rails g controller user-profile and I made corresponding views. I'm trying to do something...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling a method which throws FileNotFoundException I'm pretty sure this is an easy one but I could not find a straight forward answer. How do I call a method with a throws FileNotFoundException? Here's my method: private static void fallingBlocks() throws FileNotFoundException A: You call it, and either declare t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using OData (server side) with Mono We have pure OData service (.Net 4, hosted in IIS) which works fine. We want to deploy this service on Linux. Is it possible to use OData with Mono? Have anyone had such experience? A: I also wanted to use odata for our project, but i seems that they don't support odata. Under ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Measure string size in Bytes in php I am doing a real estate feed for a portal and it is telling me the max length of a string should be 20,000 bytes (20kb), but I have never run across this before. How can I measure byte size of a varchar string. So I can then do a while loop to trim it down. A: You can use mb_str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Help with file download in asp.net protected void imgbtn_BBDownload_Click(object sender, EventArgs e) { Response.ContentType = "application/exe"; Response.AppendHeader("Content-Disposition","attachment; filename=bb.exe"); Response.TransmitFile( Server.MapPath("~/Resources/bb.exe") ); Response.End(); } I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't select from a successfully created #temp table DECLARE @tmp_tab VARCHAR(20) SELECT @TMP_TAB = '#TMP_TAB_BANK' + CAST(USER_ID(USER) AS NVARCHAR) + CAST(@@SPID AS NVARCHAR) EXEC('CREATE TABLE ' + @TMP_TAB + (ID INT NULL, NAME VARCHAR NULL)') //Break point EXEC('select * fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cupsenable cupsdisable I have a web application that is run as www-data. I need to have cupsenable and cupsdisable accessible for that user. Its a server that isn't connected to the internet and is running a small internal application and i NEED to be able to give the users the ability to re-enable a printer. I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does FreeBSD support memory mapped files? I am using a FreeBSD OS, I want to write into a file which is on the disk, but, it will take a lot of time, so, I was suggested to use Memory mapped file. But, I am in a dilemma whether FreeBSD supports it or no???.. Please, somebody can guide me??.. I am programming in C++....
{ "language": "en", "url": "https://stackoverflow.com/questions/7568985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL Query seems to be executing twice Possible Duplicate: Insert query on page load, inserts twice? I'm hoping someone can help with a problem that's driving me up the wall. I've searched but found nothing directly answering this. I have a problem on a website where an SQL INSERT query seems to run twice but only...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android - Exception when updating table in database I get one exception "SQLiteException: cannot commit - no transaction is active". This exception is occur when i try to update my table in DataBase . I don't know why this exception is occur & what was the meaning of this exception. So if any one know then please te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to see the Exception thrown by the Blackberry Application I am new to Blackberry Development. In my app it is throwing an Exception,it is showing on simulator. I want to know how can I see this exception in detail like 'Logcat' in Android. Thanks in Advance A: Try like this: try { //write code here; } catch(fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sql injection script This title of the question may seem to be previously asked and answered but its different scenario for me. I use this script to stop sql injection in my ASP site. As per my knowledge or injecting script i have tried everything . Is it still possible to break through this code or do you feel this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WCF Async Service Proxy. Does 'EndXXX' close the connection? I'm currently segregating the interface definition of a WCF web service and sorting out the client to depend on these interfaces rather than the generated service client class. The pattern that's currently being used reads like this - var client = new Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting data from MailChimp using SilverLight I have created my own silverlight API to get/set data from/to MailChimp. It was working fine, but today I am getting an error. Example code is : string MailChimpURL = "https://us2.api.mailchimp.com/1.3/?method=lists&apikey=my_api_key-us2"; HttpWebRequest request = (Htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WordPress template for Orchard I am looking for a charity template to help my friend to make a website for a non-profit organization. But I don't know how to program in PHP, I already know ASP.Net MVC 3 and C#. I found out a nice template: http://osc4.template-help.com/wordpress_30418/ but is just for wordpress, doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: basic git understanding problems Situation I've never before used git or any other version control. Now I've got a web-project that needs to have a stable and a developement version, with both running on the same server in different directories. * *Stable: /var/www/afod/afod *Development: /var/www/afod_dev/afod ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unicode literals causing invalid syntax The following code: s = s.replace(u"&", u"&amp;") is causing an error in python: SyntaxError: invalid syntax removing the u's before the " fixes the problem, but this should work as is? I'm using Python 3.1 A: On Python 3, strings are unicode. There is no need to (and as yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sample Concurrency projects in Java I finished reading the first seven chapters of Java Concurrency in Practice. Can you give me any ideas of sample projects so that my ideas will become solidified ? A: How about implementing your own 'thread safe' list and then making multiple threads add, get, and remove elements...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Oauth client initialization in python for tumblr API using Python-oauth2 I'm new to Oauth. In the past for twitter applications written in Python i used python-oauth2 library to initialize client like this: consumer = oauth.Consumer(key = CONSUMER_KEY, secret = CONSUMER_SECRET) token = oauth.Token(key = ACCESS_KEY, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: One loader for all activities Im building an Android application. It parses a feed which is stored in a DB. Each activity of the app is able to get this data from the DB. Every activity can also call the Service, and make it refresh the data. When this is done I would like to display a loader. While the Service is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Circle Detection I need help developing a circle detection algorithm to detect snooker balls. Does anyone know any algorithms that can be implemented in C and open cv? I'm having trouble getting this done A: OpenCV 2.3 comes with HoughCircles. The C++ API for OpenCV 2.1 also implements the function: http://opencv.w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Z-Index Absolute positioning - Using Z-Index to always appear at the top when panel is behind I am quite accustomed to CSS but I have a problem and would like to know if there is a solution. If I have a div with relative positioning and z-index:2 and another div next to it with z-index:1. Is there a way to have an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF, WAS, IIS and ports Hi, I have worked with WCF for a while now but there is somthing Im not clear on. When hosting a WCF service in IIS the standard protocol will be http and the default port is 80. Its possible to change this portnr if needed. Then its also possible to host a WCF service in IIS using the TCP pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Borland vs. MingW/GCC compilation speeds.. I'm a long time Borland users ( since Turbo C ) ( until BC5.2 ). I've been using MingW/GCC with CodeBlocks for about a year now, mainly for the extra support esp. native 64bit integers. Anyway, I have a query regarding compilation speeds. I have a C (Win32) file which is ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Want to store photos like photo application I would like to store severals photos like photo application, however i don't know exactly the objects what i need. If anyone know how to implement this way i'm interested. A link to give you an idea: http://blog.photobox.fr/wp-content/uploads/2010/07/Album-iPhone5.jpg tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: findpreference undefined type I am trying to set a value to a ListPreference and always get the error message: The method findPreference(String) is undefined for the type new DialogInterface.OnClickListener(){} This is my code: ListPreference lp = (ListPreference) findPreference("enableTranslations"); lp.setValue("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSH with Paramiko : failing to read data Below is my driver information where I need to pull the data(Firmware Version) using ssh script as show below. ncmdvstk:~ $ ssh admin@153.88.127.21 Password: MSM760 V. 5.3.6.18-01-9124 (C) 2010 Hewlett-Packard Development Company, L.P. CLI> enable CLI# show system info [C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In what situations would I specify operation as unchecked? For example: int value = Int32.MaxValue; unchecked { value += 1; } In what ways would this be useful? can you think of any? A: Use unchecked when: * *You want to express a constant via overflow (this can be useful when specifying bit patterns) *Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: ipojo custom handlers - auto attached handlers - issue in attaching to specific components I have an issues concerning the custom auto handlers in ipojo. I have created an handler (say Handler-Auto), I want this handler to be auto attached to a POJO component instances (say Comp-1) without touching the metadata of P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex to extract paragraph I am attempting to write a regex in Python to extract part of a paragraph. In the below paragraph, the part I wish to extract is bolded. Proposal will boost bailout fund, inject cash into banks and cut Greek debt says reports. My regex and output as follows, >>> text = 'Proposal will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stored procedure error on CALL I am trying to call a procedure which compiles successfully but on calling I get this error: Query: call proc5 Error Code: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 This is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android-jQM: MyWebViewClient::shouldOverrideUrlLoading() not working with local URI I'm using Android's WebViewClient to handle <a> clicks of my jquerymobile page. It is working fine when my target is some full url like <a href="http://stackoverflow.com"> but if my target is local script for eg. <a href="test.html">...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java FTP file get issue I have a application that runs as a schedule.It connect to ftp server and get files from remote folder.scheduler runs in every 5min time.Sometimes when there are lot of files in remote location, scheduler runs again while first cycle is running.In such situation some times it download 0 size ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails custom Twitter Bootstrap modal for delete method, Problem with callback Following code does destroy records as intended, but the callback is inherited from one modal to the next one. So while a record is properly deleted, Rails keeps looking to delete the formerly deleted ones as well. I'm using a Twitter Boot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# windows forms textbox wordwrap not working I have a multiline textbox on my Windows Form. I am writing a very long string separated by '\r'. WHen I set wordwrap = true, it wraps off as expected. BUT when I set wordwrap to false it also wraps off but after a greater length. However, I don't want it to wrap at all....
{ "language": "en", "url": "https://stackoverflow.com/questions/7569084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: org.xml.sax.SAXParseException: Content is not allowed in prolog Yes, I know that general forms of this question have been asked time and time again. However, I couldn't find anything that helped me solve my problem, so am posting this question which is specifically about my problem. I am trying to figure out why I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing block from returned html in C# I am returning html contents (page layout) in a variable but want to remove <script>blabla</script> tags and contents within these tags. How can I do this? A: You really need to parse the HTML. Try using the Html Agility Pack which should make this pretty straightforward, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why do I see different filters in GraphEdit & GraphStudio I am using both GraphEdit & GraphStudio to process videos. However, there are some filters which are visible via GraphEdit only and vice versa. For example: ffdshow is available in GraphStudio but not in GraphEdit, MainConcept filters are visible inGrpahEdit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resize Image PNG With transparence I want to resize an image PNG with transparence plz help. Here is the code : function resize($width,$height) { $new_image = imagecreatetruecolor($width, $height); imagealphablending($new_image, false); imagesavealpha($new_image,true); $transparent = imagecolorallocatealph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: windows form validation issues (.net2.0 ) I need help with some things regarding windows form validation: * *closing form using standard form closing button (X) triggers validation of all controls. Is there a way to supress it when closing form using this button, and force it only when pressing my own button? *v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Casting to Collection With this: public class Widget : IWidget {} Why does collection2 == null here: var collection1 = collectionView.SourceCollection as ObservableCollection<Widget>; var collection2 = collectionView.SourceCollection as ObservableCollection<IWidget>; Where SourceCollection is ObservableCollection<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: build_association working? I have two models with a one-to-one association. class User < ActiveRecord::Base has_one :setting end class Setting < ActiveRecord::Base belongs_to :user end Each model has plenty of fields and user is used quite extensively by a non rails external server, which is why I have separa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deploy war on tomcat to another folder name I'd like know is there a way to deploy war copied to webapps folder with another name, of course automatically, and with minimal configuration some xml files. Example: I have a.war and want AServer folder and service but don't "a" folder and service Thanks Pavel EDIT 29.9....
{ "language": "en", "url": "https://stackoverflow.com/questions/7569108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange popup behaviour When I click on the link 'alert' then the message will only popup once, which is correct. Strangely if I click on the link 'dialog' and then on the link 'alert' then the message is popping up twice consecutively, which is incorrect. How can I fix this so that the message will only be displaye...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I want to retrieve the sub form values I have a SplitContainer, and in its right panel I have a Form. I want to retrieve the values of the TextBoxes of the form when I click on a button outside the Form, but inside the panel. How to do it? A: May be you are having a UserControl in the Right panel of the SplitContai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing a Dictionary in isolated storage I'm hitting a server and getting some data, am parsing this data and storing it in a Dictionary<TKey, TValue>. I store this Dictionary<TKey, TValue> list in Isolated storage. Now, the problem is whenever am trying retrieve the Dictionary<TKey, TValue> (in 2nd run) what ever ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't start activity from class I am trying to start an activity from a normal class and I can't figure out how it is done, if it can be done. On an itemClick I want to start an activity that extends the ListView class to show a list of options. Also the class that receives the onItemClick is not an activity. I will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an MbUnit equivalent in Java? Specifically, I am looking for the same ease of defining parameterized and combinatorial unit tests. Thanks. P.S. Please, do not suggest JUnit. Its parameterized and theory features do not even reach the ancles of the respective features in MbUnit. EDIT Here is a very short des...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: access divs of same class name using javascript I have the following html code- <div class="search_results">...</div> <div class="search_results">...</div> <div class="search_results">...</div> The divs are automatically generated by a javasciprt function. Is there a way to access only the first div/or a specific d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to properly implement multiple subview operations in IPAD I am creating an iPAD app. I have got a MAIN VIEW controller which covers the whole screen. And I have another class DROP-DOWN Class which i will be using to mimic the functionality of a drop-down as in Windows OS components. For that I am using a simple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to integrate skype feature in my native app I want to integrate Skype APIs in my native app. Is that possible? I have Googled around and couldn't find a way to start. I know there are APIs available for Mac OS X. Can I make use of those APIs for my iPhone app? I know it is possible, as many apps like Nimbuzz hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Redirect a domain invisibly I have a customer who wants his domain to be redirected to some other site. For example: www.hisdomaine.com => www.him.somewysiwyghost.com the redirection should be transparent so www.hisdomain.com/somefolder should translate to www.him.somesysiwyghost.com/somefolder important to him is, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django template for loop. Member before I want to create such loop: {% for object in objects %} {% if object.before != object %} {{ object }} this is different {% else %} {{ object }} this is the same {% endfor %} Based on https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the fastest way to check that entry exists in database? I'm looking for the fastest way to check that entry exists... All my life, I did with something like this... SELECT COUNT(`id`) FROM `table_name` Some people don't use COUNT(id), but COUNT(*). Is that faster? What about LIMIT 1? P.S. With id I meant pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: sending data to xml api of webservice Im trying to write a python script that basically interacts with a webservice that uses an xml api. The request method is POST. Usually I would write a request of the form request(url, data, headers) - however, in the case of an xml api it would not work. Also something like dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery validation has stopped working Here's the form that was formerly working. I just went back to it today and for some weird reason, it stopped validating. Would appreciate if anyone could take a look. Thank you. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which thread class except System.Threading in C# i can use in windows phone development? Is there another c# class for threads, which works faster ? A: Based on your comment, you are using the Thread class in the System.Threading namespace. Based on that, none of the classes are going to make the code that executes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: “Index was outside the bounds of the array” when run outside of the IDE I've just started learning C# and had created this simple configuration file generator for a Minecraft launcher, just as something to do. I'm having trouble when trying to run the application independently from Visual C# 2010 - it spits out "Ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Office Template - Embedded VB Script Inactive/Unspported? First off, this might be the simplest questions on this site depending on the answer. Question: Is Embedded VB scripts supported in Office Word templates (.dot/.dotx)? If not, thank you! If it is, why is this not working: http://postimage.org/image/2uubobv38/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nested tool-bar button in xul I am having a toolbar-button with type "menu-button". Can I have two toolbar-buttons inside this one? A: Since you would like to have a button inside a menu-button, here you go. But, this is not a pretty good UI. <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why do we have multiple declarations for main in C? C does not support function overloading. How can we then have 3 prototypes for main? What is the historical reason for having 3 prototypes? A: There are only two prototypes for main that a standard-conforming C implementation is required to recognize: int main(voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dont allow password field to copy I have this field: <form:label path="password"><spring:message code="label.password"/></form:label> <form:password path="password" id="password"/> Now what can I do to make sure this password field value cannot be copied? A: In (almost) all conformant browsers, inputs that are ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WordPress and jQuery UI I like to know if there is already installed in WordPress the jQuery UI for the administration panel. If not then I have to load it. If is loaded how can I use it ? A: You can include jquery by including the following in header.php <?php wp_enqueue_script("jquery"); wp_enqueue_script('jquer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get View object on which animation was started......? I have 3 image view in which i started same animation (translate) I have animation listener, in onAnimationEnd(Animation animation) method, I want to know on which image view the animation is ended..? From animation object how can I know in which it was s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: State of XML support in Scala 2.9.x I'm currently starting to look into using Scala's XML support for business critical processes. In that regard I would like to know what the current state of the standard XML library in Scala is. I have read some "old" articles relating to Scala 2.7 and the 2.8 trunk, where it was...
{ "language": "en", "url": "https://stackoverflow.com/questions/7569172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }