text
stringlengths
8
267k
meta
dict
Q: Run tasks after checking out project from svn? I have a project (this is a maven project) in svn. After the project has been checked out I would like to run some small tasks automatically (eg. some of the subprojects must be build etc). Is it possible to add specific task to svn checkout? A: I think (and hope) that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Decreasing the size of listitem? I've listed something in one listview using android.R.layout.simple_list_item_multiple_choice It takes core listview. And, i can't decrease the font size of their items. How can i decrease that? I've search the size element in XML files but, i've not found yet. Anyone know the answe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop a thread after period of time How can I stop a thread running after it has been running for 5 seconds ? I am unable to use java 5+ threading features (must work in j2me). Possible solution - Schedule two threads. One which performs the actual work(T1) and the other which acts as monitor of T1(T2). Once T1 ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android media player streaming issue sorry for my english my problem is in my app media player plays streaming urls. if user clicks next button immediateley then ui blocks for some time and giving ANR problem If it is working on GPRS how to resolve that issue Please some body help me Thanks in advance A: If the UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use existing windows mobile 5 app for making android app I have to develop android app which is already made for windows mobile 5 using Visual Studio with C# language. So is there any way to use this existing code to build android app? Anybody knows how to use Rhomobile framework which is used to create multiplatfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SWT TreeViewer is slow when filling with many elements I'm new in the java world, so I'm sorry if my question is trivial. I'm developing a Eclipse view part, and I'm filling a SWT tree view with the following data structure. All data is in memory: Node1 Child1 Child2 Node2 Child1 ... Child2915 I thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP: tcpdf security considerations of cache folder with write permission I have installed tcpdf on my web server and use it to generate pdf invoices. It has a cache folder and my web server user group www-data can create and delete files. Could a hacker a) create files in that folder and b) execute them as php? Shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: View is not rendering correctly in ASP.NET MVC 3 I have moved a view from folder to Shared folder. When I try to navigate from controller to the shared view it is navigating to the default view and not the shared view. I checked in Global.asax, I created new route in the Global.asax, but it is still pointing to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to define the execution order in Parallel.For? // parameters.Count == 10 // actualFreeLicenses == 2 Parallel.For(0, parameters.Count, new ParallelOptions() { MaxDegreeOfParallelism = actualFreeLicenses }, i => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jQuery jGrowl not working I am trying to get this jGrowl working but I am not having any luck and I am struggling to find any help with the issue I have. I have connected to the CSS and JS pages correctly: <script type="text/javascript" src="<?php echo $base; ?>jgrowl/jgrowl.js"></script> <link type="text/css" rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: solr synonyms not being parsed I'm making an auto-suggest feature using past searches in solr. Synonyms.txt contains a list of common typos / misspellings etc. It's setup to run on index and using the anaysis tool in the admin I can see it's working correctly - however it doesn't seem to be applied to live data. Fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: xCode Is there a way to create a relation between back button and tabbar? Hi I am a new bee to iPad development. I have created a Tabbar application in xcode and created 5 tabs. I am able to load 5 different views. Each view consists of a navigation bar cont and tabbar by default. I have added a back button to navig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2010 VSTO Excel 2007 multilanguage? I have to add multilanguage support to several existing VSTO Excel AddIns. Adding this to the user controls etc. was relatively easy, but now I have to add multilanguage support for existing entries in Excel Files. These files are used as templates. Does anybody kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I tried to use the syntax $inf_ to get value for checkut attributes I am getting the value but the problem is that the value gets wrapped in span tag. For example 2 get the subtotl, I used var subtotal=$inf_cartAmt(chkCartSubtlAmt); Output for above syntax is var subtotal=<span class="cartAmt_chkCartSubtlAmt"> $94.9...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Postcript: maximum array size? Is there a maximum size for a postscript array ? I wrote a PS document containing containing an array that is displayed in ghostview without any problem. But when the number of items in this array increases, ghostview raises the following exception: ERROR: /stackoverflow in -file- Oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating a time series with a specific start and end date I want to generate a time series with all business dates in the range: startDate = "1990-01-01" endDate = "1990-12-31" For example "1990-01-01", "1990-01-02", ... A: You can just use the seq command. For example, ##Specify you want 10 dates starting on 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Scretch image in web browser component c# is there any way to stretch image to size of webbrowser in webbrowser component? (winforms, c#) Thanks!
{ "language": "en", "url": "https://stackoverflow.com/questions/7595536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to solve a Mercurial case-folding collision? I use Mercurial as source control with the main repository managed on KILN. At one point in time I changed my iOS project name from WeatherTimeMachine to weathertimemachine. This resulted in a case change of several files and folders: * *WeatherTimeMachine.xcode *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: const qualification conversion From (4.4/1 ) It reads An rvalue of type “pointer to cv1 T” can be converted to an rvalue of type “pointer to cv2 T” if “cv2 T” is more cv-qualified than “cv1 T.” I don't know where the standard defines 'more cv-qualifield' type but as I understood a declarator with const is more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't remove records from DataGrid when it binded to Dictionary<,> I have some Dictionary with data. I use it as an ItemsSource for my WPF DataGrid. Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("1st", "entry"); dic.Add("2nd", "entry 2"); dic.Add("3rd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google place page is not shown in Android webview I am trying to show http://www.google.co.jp/m/place#ipd:mode=home website thru WebView in Android emulator but I am not seeing the web site and seeing only blank space under the place tag of the page. I am able to see other sites like www.google.com. Do I need to ena...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print screen of a SWT window from a SWT based application I would like to allow a user to print an application window she or he interacts with. I am looking for examples how to implement such a print screen functionality for SWT based GUI. A: SWT's StyledText widget directly supports printing its contents. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selecting a random HTML element using JavaScript only I'm trying to select an element from my HTML code, to then use it in JavaScript (it needs to be highlighted). The HTML consists of a table with 36 td's. My code so far: var box; function getRandom() { return (Math.floor(Math.random()*37)) } function highligh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: what if broswer does-not allow cookie I am working on a web based application with JSP and servlets. I am using the Cookie class and response.getCookie method to set cookies in the browser. But I have a doubt as to how will the behavior be when the browser does-not allow cookies, through browser setting. In this cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I disable the Facebook login button on certain conditions? I want to allow the user to click the 'fb:login-button' (which I'm using for registration as well) only if they've entered valid input in a text box on my page. Is there a way to do this? A: One simple way would be to position a div directly on top of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what the function that I can use in Javascript to convert from one character encoding to another? what the built-in or user-defined function that I can use in Javascript or jQuery to convert from one character encoding to another? For Example, FROM "utf-8" TO "windows-1256" OR FROM "windows-1256" TO "utf-8" A practi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to check is not null and greater than in android sqlite query I am using db query, how to check one value is not null and greater than other value in a query. db.query(DB_TAB, new String[] { KEY_ROWID, stemp, dtemp },stemp + "!=" + null, null, null, null, null, null); I want to check both stemp and dtemp is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: URL encoding in javascript I have this parameter user@ampliflex.co.in in my url. I want to encode it using javascript, I dont want . in my url. A: Even if you encode . in JavaScript, the browser is allowed to unencode it before sending it to a server. RFC 3986 section 6.2.2.2. Percent-Encoding Normalization says ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: drop down menus on tablet pcs Hi is there a good way to implement drop downs so that they're functional on tablet pc's, either with css or javascript. Obviously there are workarounds such as including alternative navigation areas, I just wondered if there was a way to get them working. A: Here is an idea for jQuery...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSR-303 and JPA overlapping Aloha hey! I already use JPA annotations, now I'd like to use JSR-303 annotations to validate attributes as well. My questions is, how well do they interact with each other? If I use @Basic(optional=false) or @NotNull, will I still have to use nullable=false etc.? I haven't decided which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Designing Regular Expressions in C# I've run into a bit of an issue designing RegEx in C#. I have to parse a text document that has multiple urls embedded in it, and I have to extract those ...url=http://www.cnn.com?id=abc,def&system=2&mode=2&quality=ade,url=http://www.bbc.com... (^ I've added ellipsis to show that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Force WPF DataGrid to regenerate itself I have a custom control which inherits from DataGrid and is basically a 2D DataGrid (accepts an ItemsSource with two dimensions, such as double[,] ). I added a specific DependencyProperty which is ColumnHeaders and RowHeaders so I can define them. Here is how it works right no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: As a working-traveler, is there a way to get around port 80 blockage without touching the router? I work while traveling at the moment. I'm at the point where I want to start setting up the paypal integration, but I can't because I can't open port 80 up so that paypal sandbox can communicate with my computer. I've t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Threading in CLR in SQL Server 2008 I have a CLR process which runs under SQL Server2008. It builds a cache of several tables data to hold in a static class for use later by other calls. My question is could I improve the process of loading this cache by spawning threads to load each data set/ table in my cache? I'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flipping textviews issue suppose i have 3 textviews set in horizontal LinearLayout which is in one screen.I know i can flip textviews with help of ViewFlipper.But is there anyway to flip portion means if i will flip then one textview will be gone and two textviews will remain. Just see this link. A: See this for V...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include the md5 value of a file into itself Supposed that you want to create a file which contains the md5 digest of itself. How to do that? Before you include the md5 value into the file, you have to calculate the value, but if and only if the md5 digest has been included into the file, you can calculate t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Centering an absolutely positioned item I have the following text: <p>This is the text</p> p { position: absolute; top: 300px; } I want it to be 300px from the top, but centered in the browser (no matter the width), how would I do this? Thank you. A: If you set the width to 100%, you can use text-align: p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I link external files to eclipse in php and force it to copy to my project folder? I use ecplise for my php projects. I want to have an external location for all my plugins and link specific plugins to each of my projects. I found how to link folders etc, but the actual files aren't copied in the folder, res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cocos2d director flow control: replace scene after push scene. What happens to the pushed scene? // TRY TO AVOID A BIG STACK OF PUSHED SCENES -(void) mainMenu() { // etc [[CCDirector sharedDirector] pushScene: gameScene]; } // stack: // . game <-- running scene // . mainMenu -(void) game { [[CCDire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android - Terminate process while in another Activity I'm having my main activity starting another activity which will render the UI. When I try to stop the process from Eclipse while in the second activity, the process just instantly gets restarted! I have to press "Back" once before I can manually stop the process...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regarding ajaxStart/ajaxStop jquery i have seen that ajaxStart/ajaxStop always used against a DIV. Consider the following: $("#lbl_ajaxInProgress").ajaxStart(function() { // update labels $(this).text('Yes'); }); $("#lbl_ajaxInProgress").ajaxStop(function() { // update labels $(this).text('No'); });...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Schema XSD: Element Unique inside a node, not repeated values I would like to validate a XML file with a schema for that values in the same node can't be repeated. It's important the order of the signatures. My invalid XML is: <person> <name>Peter Petrelli</name> <subject1>Mathematics</subject1> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Json error on jQuery's load method I get the following error when playing with JSON request: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. This is the jQuery code: //load partial view contain grid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to create .Net 4.0 application pools in IIS I have installed ASP.NET 4 using the Web Platform installer of a Windows 2008 SP2 Server with IIS7. The MVC sites work fine, when I set a default (created at an install time) ASP.NET 4.0 application pool to it. But when I want my site to have it's own application po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binding custom entity collection to an ADF table I create a method on the session facade, that returns a custom entity collection. I publish it in the local interface. I bind corresponding data control iterator to an ADF table. When run, it shows "No data to display". There are no exceptions in the weblogic console....
{ "language": "en", "url": "https://stackoverflow.com/questions/7595618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need ideas and testing a new encryption method I developed I developed a new method of encrypting information. It does not comply with standard methods of encryption and was custom made to encrypt info stored in session cookies. It basically works like this: -It takes a standard 72 char string as it's IDENTITY or pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why this popup fail on IE? I have this code : <a id="bookingLink" href="javascript.void(0);">Link</a> $('#bookingLink').click(function(e) { e.preventDefault(); window.open("http://www.google.com", "Booking Daniela", "width=950,height=680"); }); and it fails (no popup is showed; also, the link in the botto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup multidatabase in symfony doctrine i am using symfony for my project where i have two database, but i know only to setup symfony for single database, like below code database.yml all:doctrine: class: sfDoctrineDatabase param: dsn: mysql:host=localhost;dbname=gapi username: root password: so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maven properties in multi-module project are reset to default I have a question regarding properties in a multi-module project. Consider the following 3-level project struture: project +- pom.xml (packaging: pom) //referred to as super-pom +- module_group +- pom.xml (packaging: pom) //referred to as gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VS11 Dev Preview Unit Test Explorer doesn’t show Unit Tests I wonder has anyone come across with this issue where the MSTest Unit Test doesn’t show up in the new Unit Test Explorer. I’m running Windows 7 (32bit). I downloaded the VS11 Developer Preview from the link below. http://www.microsoft.com/download/en/detai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to convert polygon data into line segments using PostGIS I have a polygon data table in PostgreSQL/PostGIS. Now I need to convert this Polygon data into its corresponding line segments. Can anybody tell me how to convert it using PostGIS queries. Thanks in Advance A: Generally, converting polygon to line may b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Android cannot access textView component from activity I have the following actvity. package org.dewsworld.ui; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class DetailList extends Activity { TextView title = (TextView) findViewById(R.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Buffers per tab in vim Is there a way I can configure vim to remember buffers based on their tab? I am currently working on two projects, and I have each project in its own tab, with its own local directory. To navigate through files I'm using FuzzyFinder. The problem is that when I want to search through buffers, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to count dynamically added table rows with jQuery? How can I count the table rows that is added dynamically with jQuery? I have tried with $('#mytbody').children().length; but it doesn't work with rows that are added dynamically. Here is my code, also runnable in JsFiddle <!DOCTYPE html> <html> <head> <script sr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: More regex tweaking advice required I'm getting through adding delimiters to a large references file thanks to help from SO. Almost there now. I have a regex which I received from an SO member which allowed me to add the "|" between the author and year. I know need to add "|" between the article and publication. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort array by its content I have an array looking like this: markerArray[i] = [i, title, cat]; this array is within a for loop adding the content dynamic so the result could be something like this: markerArray[0] = [0, A title, A]; markerArray[1] = [1, A title new, B]; markerArray[3] = [3, A title, E]; markerArray[...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - list to store nullable types In C# we can declare a list to store int, like List myList = new List {1,1,2}; I want to store null values as well (nullable type) hence I want to create a list of nullable types. Something like this List<?int> myList = new List<int> {1,1,2}; Above code does not compile. D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get vector between 2 rectangles suppose I have 2 rectangles as follows: * *one encloses the other *they share at least 2 sides (3 or all 4 also possible) how do I get the vector that describes the displacement required for the inner rectangle to move upto the non-shared side(s)? A: If i understood you correct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Deserialization - Is it safe to catch TargetInvocationException? I am using BinaryFormatter to serialize and deserialize some objects. The structure of those object is as follows: [Serializable()] public class SerializableObject : ISerializable { public void GetObjectData(SerializationInfo info, StreamingCont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SecKeychainItemDelete returns -67701 (errSecInvalidRecord) on Mac OS X 10.7 I have a program built with Xcode 3.2.5 on a Mac 10.6 system, the program needs to add to and remove items from the system keychain. It runs well on Mac OS X 10.6 but on 10.7, The call to SecKeychainItemDelete returned error code -67701 whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Retrieve "Clean" Image Out Of ImageView I've Image stored in ImageView and after several processes (flip, rotate, fix color, etc) it's saved back as new file. However, I just realize that when I just load into ImageView and soon after that directly save the result, I got different result. Take a look at attached ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Couchdb list api - can't seem to return plain/text I am trying to return text/plain from a couchdb list but it is not working. The content is returned correctly but the content type seems to be forced to application/json. Code snippet is start({ "headers" : {"Content-type" : "text/plain"}}); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SVN Commit error (SVN on window server) I am trying to upload around 828 MB data on SVN server but it throws following error. ................................................................................ ....svn: Commit failed (details follow): svn: PUT of '/svn/interborosrc/!svn/wrk/bd7fee70-765a-e141-88fb-f9959...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make the default text in a select field grey like the placeholder for textfields? I have the following select field in a form: { xtype: 'selectfield', name: 'minprice', label: 'Min Price', valueField: 'No min', placeHolder: 'No min', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to stop an NSTimer that I don't know is released or not Sorry to ask this question, but it's now day 3 I try to solve this problem and have no progress so far. The problem is this: during a game there is a pause between the user answered a question and the next question. Also in several other cases there are suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Ajax called this method? I have created one web service that will may called from web using jQuery ajax call or may call from desktop application that I have created I want to know in that webservice method.. Is this ajax call or not?.. Is that possible? A: If the HTTP_X_REQUESTED_WITH server variable is set a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where is the source code for the UIComponent in FLEX 4.5? All the methods in UIComponent, LayoutManager (and I suppose more) are unimplemented. Why? and how to find it? I use the lastest version of flashDeveloper. The flex package is downloaded by the app itself, and I saw is version 4.5 A: FlashDevelop has a keyb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert certificate in BIN format to X509 format I have read this good article on running tomcat in https and implemented it. http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/ It is working fine and my tomcat is running in https mode. But the problem is i got the certificate in BIN format. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Code Contract, inheritance and Liskov Principle I have in my code the concept of command : public abstract class BaseCommand { public BaseCommand() { this.CommandId = Guid.NewGuid(); this.State = CommandState.Ready; } public Guid CommandId { get; private set; } public CommandState State {get; private set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Two asterisks before variable name While digging in some C source code I found that fragment of code char **words I know that single asterisk before variable name "points" to pointer, but what is the purpose of those two asterisks ? A: // your imagination is the limit char letter; char *word; // sequence o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Sitefinity RadGrid not working in backend page I have a RadGrid on a sitefinity page, I am using it to create a module to proform CRUD on a database table in the backend. If I put the RadGrid on a aspx page and view in browser, it works fine, However when I add it to a site finity back end page, Only the refresh and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove a flag in Java Hi I need to remove a flag in Java. I have the following constants: public final static int OPTION_A = 0x0001; public final static int OPTION_B = 0x0002; public final static int OPTION_C = 0x0004; public final static int OPTION_D = 0x0008; public final static int OPTION_E = 0x0010; publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: IOS process internals - how to get information? I am looking for an API to monitor the tasks running on a plain iPhone (no jailbreak). Those are about: * *look for CPU usage (my main concern). *look for memory usage. *look for disk usage (how many read/write) *look for network usage (how many bytes sent and re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: access the same database from two different applications (read/write and read-only) I know that there's lot of documentation about, but i'm totally newbie on this argument and I would like to have some simple advices about that. I'm working with spring hibernate and jpa. I'm going to have two different applications...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tab links using only the page and app_id has stopped working, is there an alternative beyond querying Facebook each time? A few days ago these type of links worked: http://www.facebook.com/pages/132456789?sk=app_132465798465 but now they give 404's. The alternative is link to the namespace of the page like so: http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DLL in sub folder rather than in application folder have created a dynamic python file (pyd) using VC++. Using cx_freeze, I have created an exe. In order for this program to work on other computers, I need to have a file msvcr100.dll in the applications folder. And I do get the desired output. However the distribut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why use (function(){})() or !function(){}()? I was reading In JavaScript, what is the advantage of !function(){}() over (function () {})()? then it hit me, why use : (function(){})() or !function(){}() instead of just function(){}()? Is there any specific reason? A: It depends on where you write this. function(){}(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to write a trigger to abort delete in MYSQL? I read this article but it seems not work for delete. I got this error when tried to create a trigger: Executing SQL script in server ERROR: Error 1363: There is no NEW row in on DELETE trigger CREATE TRIGGER DeviceCatalog_PreventDeletion BEFORE DELETE on DeviceCat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Javascript Regular Expression Works on OSx NOT on Windows I have been developing a javascript application on OSx with Safari as the main browser, I am trying to migrate this application to a windows system with WAMP as my server. The code has not changed, however it will no longer work correctly and when carrying ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I delete variable in Template Toolkit? Looking at Template::Manual::VMethods section of the Template Toolkit manual I don't see any method doing this. Also assigning undef to variable doesn't work - variable.defined returns true after the fact. A: Well, googling "delete variable" site:mail.template-toolkit....
{ "language": "en", "url": "https://stackoverflow.com/questions/7595723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: warning in the PageControl sample code: Using the result of an assignment as a condition without parentheses I'm trying to understand the way UIPageControl works. SO I downloaded this sample code from Apple UIPageControlSampleCode It runs fine but there is a warning (Using the result of an assignment as a condition ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Every time i click a button it exits? (action listener) here is my code import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.applet.Applet; class Panell implements ActionListener { JButton button; JButton buttonTwo; JButton buttonThree; JButton buttonFour; JButton button...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: HTTPS and 500 Internal Server Error I Just installed SSL on my server, I can access to all my folder with and without https. Now, I put a php file on a folder. I can access to it without https, but when I want to open a secure connexion with httpS I have : 500 Internal Server Error. Only if the content of this folde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: memset error in iPad app Hi Im currently building an iPad app. I was using the memset() as below but every tine it runs I get a bad access error? arrayPointer = malloc(sizeof(int) * size); memset(arrayPointer, 0, sizeof(int)* size); //sets all the values in the array to 0 Cheers A: You could use calloc()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ruby years hash generate I want to create hash with years to send it to form How to create {2011 => 2011, 2010 => 2010 ... 1990 => 1990} I tried like @years = [2011..1990].each { |y| @year.push(y => y) } How to write this correct? A: Here is your answer forwards: Hash[(1990..2011).map{|y| [y,y]}] and backwards: Has...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jqgrid rowlist Selection box I have a pager inside of my jqgrid, on the pager i have rowList option, where people can choose if they want to have 10/20 or more rows showed up at one time. The problem is that selection box is not viewed fully. example : http://imageshack.us/photo/my-images/849/unledevx.png/ Are the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine if system wide backup is enabled programmatically I was wondering if it possible to determine if the user has enabled the option to backup application data to the cloud from within my android app. I can determine this from the command line, from adb shell by calling: bmgr enabled Does android provide an A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Compute pixels geographical coordinates of a callibrated map I have some calibrated maps (using MapCalibrator), for which I need to find out the corresponding OSM style tiles. While I have found some algorithms to calculate the tiles from geographical coordinates (lat/lon), I am stuck at finding out the pixels locat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do implement Event Tracking on a site built with Classic ASP I need to implement Google Analytics Event Tracking on a website built in classic asp. As I am n00b I assumed this would be achievable with a few simple includes. e.g. onClick="_gaq.push(['_trackEvent', '<% =category %>', '<% =action %>']);" I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting dynamic values list from XML to XSLT IN XMl multiple dynamic values i need to display in XSLT XML FOrmat: <?xml version="1.0" encoding="ISO-8859-1" ?> - <TreatySeries> - <AnnexTitle Number="A"> <EngAnnexNumber /> <FrAnnexNumber /> <Footer>Volume 150</Footer> <Topofpage /> </AnnexTitle> - <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert XML data SQL Server - Encoding issue I serialize some data before inserting it into the DB. Dim insertString As String = "INSERT INTO GP_SELECTION(SOCIETE, NAME, OBJECT_TYPE, DATA) VALUES ('{0}','{1}',{2},'{3}')" Dim xmlData As String = .XmlFromFilters() insertString = String.Format(insertString, societe, .Na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to customize invisible's characters in xcode4? I'm using xcode 4 and I would like to see special characters (spaces, tabs, etc.) all time. I could toggle showing them by "Editor"->"Show Invisibles". But the way how it's showing in xcode doesn't satisfy me: Is it possible to customize this characters?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: XAML UserControl - Set Background based on Trigger I have a UserControl that contains an Expander : <UserControl x:Class="Client.DevicesExpander" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript delegate I have the following the code function createDelegate(object, method) { var shim = function() { method.apply(object, arguments); } return shim; } this.test = 3; var pAction = {to: this.test} this.tmp = createDelegate(this, function() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: is it possible in java-lucene to map multifield values? i have a single document in lucene index with multiple fields and some of the fields are multivalued for example Document{ field1: field2: field3: .... field9:} and fields are like field1:some string value field2:some int value . . . field8:(string values that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2005 Auditing Background I have a production SQL Server 2005 server to which 4 different applications connect and make changes. There are no foreign keys and in some cases no primary keys. Unfortunately throwing the whole thing out and starting from scratch is not an option. So my solution is to start mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IIS Rewrite Rule how to check requesturl + .php file is exists or not in rule i want to check that file with requestedurl + .php is exists or not. in apache i can do this with RewriteCond %{REQUEST_FILENAME}.php -f so that it can rewrite my request test.com/login to test.com/login.php i want to do same with iis rewr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Timeout only when connecting through Management console I'm using SQL server 2008r2 on a windows 2003 server and connecting to it from a vista machine. The database itself is part of an application that uses ODBC to connect and that connects perfectly 100% of the time. But as I'm making some changes to the applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Client-side technology for big web application I get order to develop web application (as SAAS). Something like ZohoCRM. It's my first so complicated app. Key requirements are: * *One page app (no page refresh) *Easy features adding *Modularity *UPD: Real time data exchange: users-server-users (sockets or lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: boost::interprocess::message_queue permission denied So I have the following code with boost 1.47: try { m_messageQueue = boost::shared_ptr<boost::interprocess::message_queue>( new boost::interprocess::message_queue ( boost::interprocess::open_or_create ,name.c_str() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }