text
stringlengths
8
267k
meta
dict
Q: Is there a way to make LostFocus fire when the keyboard focus leaves a focus scope? My application's building a UI dynamically in which each ItemsControl in the view is a focus scope. The items displayed by each ItemsControl are controls in its focus scope. The user can tab through all of the controls in the view ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using mylyn outside eclipse - task management/time tracking tool I left Eclipse over two year ago in favor of Jetbrains products (PhpStorm and RubyMine). The only feature I miss from Eclipse is Mylyn. Until now I use it only for convenience in organizing things, what I need now for a project is its time tracking fea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Not clear on this jQuery syntax: return !$() I saw this code and I'm not clear what the '!' does in this line of jQuery code on the return on the jQuery object: $('#remove').click(function() { return !$('#select2 option:selected').appendTo('#select1'); }); EDIT What is a good case to do this? A: It converts t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to convert string to integer when I try to access the data in json converted to hash in ruby? I have converted the data in json to a hash and tried to access the data. I used the following code: require 'yajl' json=File.new('5104.txt', 'r') parser=Yajl::Parser.new hash=parser.parse(json) puts hash['response']['v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel add one hour I have in cel A1 with the following contents: 7:30:43 which is a time. But now i want to use a formula to add one hour. What is the best way or how can i do this? A: In cell A1, enter the time. In cell B2, enter =A1+1/24 A: =A1+TIME(1,0,0) Although, maybe this should be posted on Super User. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: How can I capture this through a regex? I have some text like this: ABCPQR01 is not at all good EFHSTU39 is somewhat nicer and I want to capture the ABC... and EFH... type words. The first set of three letters can be ABC or EFH and the second set of three letters can be PQR or STU. Instead of writing two separate r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to implement wxScrolledWindow without changing the whole project? I have a UI, whose class is initialized as such: class SimpleUI : public wxFrame From the main.cpp, I initialize: SimpleUI *ui = new SimpleUI(wxT("Simple User Interface")); ui->Show(); After some progressing, I realized that I needed a ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing char from string? I am searching for the following text in an input string: +Bob If the program finds +Bob, I want it to remove the + before Bob However, I do not want the program to eliminate all +'s, just +'s before or after Bob, with or without intervening whitespace. So a string for example of: + Bob st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 'Uncaught Error: DATA_CLONE_ERR: DOM Exception 25' thrown by web worker So I'm creating a web worker: var arrayit = function(obj) { return Array.prototype.slice.call(obj); }; work = arrayit(images); console.log(work); //work = images.push.apply( images, array ); // Method : "load+scroll" var worker = new Worker('j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What is the current status of GHC on 64 bit Windows? My current understanding is * *No 64-bit GHC, ticket #1884 *The 32-bit GHC and the binaries it builds work just fine because the Windows OS loader converts OS calls and pointers to 64 bits. The same applies to DLLs *No mixing 32 bit and 64 bit code (ie. your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: asp.net calling code inline not working In my code behind, I can do the following in the onload: string x = Fmg.Cti.UI.Utilities.Classes.ResourceController.ReadResourceValue("Riblet", "Riblet_Chicklet1_Button_text"); This works without issue. In my aspx page (I didn't remove the code from the onload), I put this: <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Declare Inside a Function in Bash I am want to change a global variable (or at least append to it) using a function. input="Hello" example=input func() { declare -x $example="${input} World" } func echo $input The output of this would be "Hello" The original value. I would like it if the function w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apply jqueryUI interaction attributes to newly added DOM elements? So I start off with an element of class="list" that are defined as .sortable. Now if I create another element of class="list" via jquery, it does not inherit the same definition that I had already defined. Now, I got around that by throwing the defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Attach a .Change event to a Radiobutton list. (Values bound at run time) How can i attach a .change event to a radiobuttonlist which has its values bound at runtime rbSecurity.dataSource = Data(); rbSecurity.dataBind(); I want to hide a dropdownlist (ddlContact) based on certain selection in the rbSecurity I tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Camera extrinsics calculation wrong I am trying to find camera extrinsics from 2 images. I have the intrinsics from CameraCalibration and the scene has known dimensions (created with 3DSMAX). The chessboard is 1000*1000, each square thus 125*125. The camera is at (0,0,3000) looking straight down at the chessboard wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: email to php - working with large attachments Using this tutorial Use Email Piping to Save Email Attachments I'm on the way to making my own posterous type app - however, when I send large attachments (over 10k), they don't get uploaded? Everything else works a treat! Is there some php.ini setting I've missed, or so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert from lazy text to non-lazy text? I am new to Haskell, so this may be a trivial problem. I am seeing an error message that says Couldn't match expected type 'Data.Text.Lazy.Internal.Text' with actual type 'Data.Text.Internal.Text' and I think the problem is that the actual type is Data.Text.Text and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: My @property is declared yet I still get may not respond to warning I don't like warnings lying around and this one has been bothering me. Any ideas on what I am doing wrong? I have tons of properties using this same approach and none of them are giving me warnings. Why doesn't Xcode recognize this one? While the ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java System.currentTimeMillis() problem So in my java class we have a homework assignment to use System.currentTimeMillis to display the amount of time between clicks. I've tried and tried but it isn't working. Here's my code. 1 /* Matthew Caldwell 2 * September 21, 2011 3 * Homework #4: Problem 5.8.1 pg. 149 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Keyboard automatically appears for EditText when activity is created I have a single activity class and it has a two EditTexts on the screen. When the activity launches the keyboard launches with it. Why is this? I did not request enter anything yet into the edit box. Why does it do this? And how can I ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to set GWT to include style names in the compiled names? I use CssResource extensively, and now my generated html is full of GWXSHFKADAish class names. I get all of the advantages of that, but for debugging it'd be helpful to add a flag that would turn .selected into GWXSTY_selected. Is there any wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting cue points in XML for use in Flash Video We need to set up a system for a client which needs to be super simple for them to be able to do in future and I was wondering if it is possible to set cue points in an XML file which are then pulled into the swf along with the FLV. The cue points will be managed by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dealing with Option and Either types - idiomatic conversions? I'm probably missing something that's right in the documentation, but I can't really make much sense of it - I've been teaching myself Scala mostly by trial and error. Given a function f: A => C, what is the idiomatic way to perform the following conversi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Question about the ~ and @ operators in Haskell What exactly do they do? I know one possible use of @ (assigning a name at the start of a pattern match), but haven't been able to find anything on ~. I found them in the following code snippet, taken from http://www.haskell.org/haskellwiki/Prime_numbers, but the artic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Symfony 2 Embedded forms using one to many db relationship I'm have a problem embedding forms from different entities in one form, my form is being displayed with firstname [input] lastname [input] address - but the address has no input next to it. Basically I want to create a form where the user can add first name,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Where are the Azure trace logs on a local box when UseDevelopmentStorage=true I am running a Windows Azure Project in an emulator on a local box and have set the flag UseDevelopmentStorage=true for tracing. However, I cannot figure out where the traces/logs go, if they get written at all. I appreciate your help. Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between sequence points and operator precedence? 0_o Let me present a example : a = ++a; The above statement is said to have undefined behaviors ( I already read the article on UB on SO) but according precedence rule operator prefix ++ has higher precedence than assignment operator = so a should be incre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Assigning names to a dataframe via a loop in R There appear to be some similar questions but I cannot quite get my head round them at this late hour I am trying to manipulate a set of dataframes based on sql calls - something like this x <- c(3,9,12) # x is of variable length in real world for (i in 1:length(x)) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: YUI Compressor - Automate Javascript Compression but skip some files I am following the suggested answer on this SO post: How to automate JavaScript files compression with YUI Compressor? However, in my ~/Scripts folder, I have several jQuery files that are already compressed and minified. What do I need to do to au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get dynamically added element in JQuery I'm trying to replace the text within a div which is getting dynamically added to a dialog element on clicking a link. var feedBackDialog; if(!feedbackDialog){ $(".feedback_link").click(function() { //set contents of the dialog 'feedback-dialog' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where should I place Indexes in MySQL Tables I have the following three WHERE clauses: WHERE primaryId = $imgId AND imgWidth = $maxImageWidth AND imgHeight = $maxImageHeight WHERE primaryId = $imgId AND imgWidth = $maxImageWidth AND imgHeight != $maxImageHeight WHERE primaryId = $imgId AND imgWidth != $maxImageWid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert ASCII characters to hex escaped strings I was reading in a file from Python. I opened this file and used 'rb' to read the bytes. When I read them off, say: f.read(1) it would output something like this b'\x50' So my question is, when I tried a longer string like this f.read(24) I got this: b'R\x00S\x00S\x...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing single string from forum in RoR Having a problem trying to do this with one string but basically I want a form that has just a text box and a submit button that when submitted passes the value of the text box back to the controller as a string - so I can do arithmetic in the controller. Unfortunately I only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Returning multiple object types using hibernate using an inner join I seem to be having some difficulty with a query in hibernate. I am performing an inner join on two tables. SELECT * FROM product p INNER JOIN warehouse w ON p.wid = w.id Product Table: id | name | wid | price | stock ..... Warehouse Table: id | n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to check a module has been activated or not in emacs How to check if a org-timer module has been activated or not. A: C-c C-x C-j should actually work. It is the default chord bound to the command M-x org-clock-jump-to-current-clock . Check your .emacs if you have changed the keybindings. If C-c C-x C-j is un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Explain this Function Can someone explain to me the reason why someone would want use bitwise comparison? example: int f(int x) { return x & (x-1); } int main(){ printf("F(10) = %d", f(10)); } This is what I really want to know: "Why check for common set bits" x is any positive number. A: Bitwise operations are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gpg decryption giving error in LINUX "can't query passphrase in batch mode" Hi im using gpg to decrypt a file in linux, im using shell_exec("gpg --batch --passphrase-file $passphrase_file -d $encrypted_file"); to decrypt the file, but im getting the following errors. gpg: gpg-agent is not available in this sessio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Help with my simple javascript/jquery I have an id #navigation li a and a class .menu-description . I want to change class from .menu-description to .menu-descriptionnew whenever user hovers on #navigation li a My jquery so far: <script> $(document).ready(function() { $('#navigation li a').onmouseover(function() {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: response-gating next message send, with Rx given a List<Message> i send out the first message with my Send(message). Now I would like to wait for (an asynchronous) response to come back before i send out the next message... Block until notified 'old' way i know how to implement an event-based solution for this situa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter I'm Using Eclipse SDK to develop my bundles. But whenever I want to export (File -> Export -> Plug-in Development -> "Deployable plug-ins and fragment") the Bundle I receive the following error screen. is there any solution or particular reason? A: It means...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple GROUP_CONCAT on different fields using MySQL I have a query like this: SELECT product.id, GROUP_CONCAT(image.id) AS images_id, GROUP_CONCAT(image.title) AS images_title, GROUP_CONCAT(facet.id) AS facets_id ... GROUP BY product.id And the query works, but not as expected, because if I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Look and feel of datepicker Does anybody have a clue about this date picker are looking like this?? I wrote a partial view to added the attribute to the textbox @model System.DateTime @Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, new { data_datepicker = true }); Are this affecting the resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net: change color of listbox items a listbox on a webform is being populated by a datasource on a sql server 2008. depending on the text in the list box i would liek the backgroudn color of that specific item to be a specific color for example if these are the items in the list: AA item 1 AA item 2 BB item 3 BB ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium: simulating typeing on Chrome Does anybody know how to simulate typing on Chromium? I want to simulate real typing and I successfully used combination of keydown+keypress+keyup on firefox. However, this approach does not work on Chrome. I tried key{down|press|up}native but that does not help, either. Using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: z in translate3d Can anyone explain or point me to an example where the "z" in translate3d (webkit transform) is being used? I have successfully used translate3d(x,y,0) to get hardware accelerated 2D animations on mobile Safari, but now I’m trying to scale using the z parameter, but it does not seem to have any effe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to adjust trailing whitespace? I am writing to a file in java but the strings that are input into the file are different, how do i adjust the trailing whitespace depending on the length of the string. for example First Name Last Name Address ---------- --------- ------- Michael Jordan ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL - Query only the first 25 columns in that table 75 columns in a table - I want to query only the first 25 columns in that table without naming each column name.... can you assist with a SQL query.... I been playing with the following: Select Table_Name, Count(*) As ColumnCount From Information_Schema.Columns G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 'routing' based on model properties I am trying to do different things on the home page of my application based on properties of the currently authenticated user. For example: location, user, state, -> destination /, no user -> a home page /, user authenticated, state: unverifie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Initializing Perl variables using eval I'm guessing this should be something obvious to those knowing Perl, but I simply don't get it... I also guess it has to do with problems described in Perl scoping « darkness - but I cannot apply any of that in my case. Anyway, here's the code: #!/usr/bin/env perl # call with: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Qt: Enumerating Windows on the desktop(s) My Qt application (that will run on Windows, OS X and Ubuntu) has a need to: * *List all windows everywhere *Obtain their caption text (if any) *Obtain an Icon of the application, if any, as QIcon or QPixmap (e.g. App Icon) *Obtain some kind of unique ID about them (e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: iphone: addObjectsFromArray not adding after reinitializing nsmutable array i have the following code inAppKeys = [[MKStoreManager sharedManager] purchasableObjectsDescription ]; NSMutableArray * unremovableArray = [[NSMutableArray alloc] init]; for(int i = 0; i<[inAppKeys count]; i++){ for (int j=0; j< ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: running embedded javascript - a small test file I've updated the code to reflect input. <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- <script type="text/javascript" src="../archelib.js"></script> --> <title>Test - Bookmark List</title>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Downloading files Right now I have <a href="...">FILE</a> to allow users to download a file. I don't like that because it forces them to leave the current page and have to reload it (which takes a few seconds) when they want to go back What is the easiest way to have users download a file? A: Have the server send a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Static image file is invisible in node.js/express The following code is an exemple of code to serve static files in express on node.js. If I ask the server a .css file there is no problem, but if I ask an image such as a jpg or png, it loads a white page (no /GET error or anything, a simple white page). In my develo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using wrapper Integer class or int primitive in hibernate mapping In the company that I work for we have this major discussion on whether it should be better to use wrapping classes for primitives (java.lang.Integer, java.lang.Long) or whether to use the primitive types directly in the POJOs that map Entities to Tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Reading and writing to the file Android I am learning Android and I am making some basic math program(game). It gets two random numbers, random operator, and 30 secs to solve math problems as much as you can. If you solve problem u get 1 point. Anyway right now, I want to get number of points that user have made, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get up-down control from buddy? Is it possible to get a handle to an up-down control from a handle to its buddy? So UDM_GETBUDDY is not an option. Thanks! A: Why would the buddy window know or care about the up-down control? There are probably several workarounds you can use: * *Store the handle in the buddy's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing the contents of Map> in jsp using key value I have a jsp page that receives a HashMap object of this type: Map<Long, Map<String, Object>>. An example of this map would be: foo = {1 = {id=1, response="someText"}, 2={id=99, response="random"}}; I am trying to iterate over the contents of both maps in foo li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I programmatically get the previous version of an item in a TFS changeset? Using the TFS APIs it is trivial to loop through changes in a changeset and then get the files using the ServerItem and ChangesetId. But suppose I want to diff the modified files, how can I get the VersionSpec for the previous versions...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What toolchain do I need to cross-compile Clang for iOS OK, so first of all I know that this can be compiled on iOS (armv7) because I read the documentation. However, I can't find the right toolchain. So, now, what toolchains I've already tried: i686-apple-darwin10-cpp-4.2.1 i686-apple-darwin10-g++-4.2.1 i686-apple-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: git push origin master:refs/heads/master what does this do When I create a new repo on my gitolite repository I always have to enter the following command before I can start pushing code to the server. git push origin master:refs/heads/master What does it do ? My guess is that is has to do with the head reference no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: json errors after rails upgrade I upgraded from rails 3.0.4 to 3.1.0. Then I started getting these error messages when running rails server, I had to change a couple of initializers like this:from wrap_parameters format: [:json] to wrap_parameters :format => [:json] Now WEBrick does start up but I get A LOT of these...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rewrite rule in Nginx rewrite rule: location / { rewrite ^/([a-z]+)/$ /index.jsp?a=$1 last; } and I create a directory /abc/ in the root directory ,and put a index.html in /abc/ when I access http://localhost/abc/ ,I can't get /abc/index.html How to make http://localhost/abc/ can be access? A: create ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CellTemplateSelector won't choose template automatically I have two templates for DataGridTemplateColumn <DataTemplate x:Key="firstTemplate"> <UniformGrid Grid.Column="1" Columns="2"> <Label Background="{Binding Path=Color, Converter={StaticResource gradie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Query to find users that haven't paid? I have the following SQL SELECT CASE WHEN B.bookingId = P.bookingId THEN 1 ELSE 0 END AS PAID FROM Booking B LEFT OUTER JOIN Payment P ON P.bookingId = B.bookingId This outputs 3 rows; 1, 1 and 0 I would like to extend this query...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Javascript function scoping and hoisting I just read a great article about JavaScript Scoping and Hoisting by Ben Cherry in which he gives the following example: var a = 1; function b() { a = 10; return; function a() {} } b(); alert(a); Using the code above, the browser will alert "1". I'm still uns...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: Date Calculation with Javascript I am having problem to calculating the date in js. I have calendar picker in my form to pick a start date in the format of mm/dd/yy. With that start date value, I want to insert the incremental date into the rows up to 2 wks. Plz, can anyone help me on this? thank you. Danny A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gradient mask on UIView I have a UIView and want to have the bottom part of it fade out to 0 opacity. May this be done to a UIView (CALayer) in order to affect an entire UIView and its content? A: Yes, you can do that by setting CAGradientLayer as your view's layer mask: #import <QuartzCore/QuartzCore.h> ... CAGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: PHP SoapClient Constructor extremely slow I'm trying to do some tests on a SOAP API and am experiencing extremely slow execution times. I've done some digging and found that it's the SoapClient constructor that takes forever to execute. I also tried using a proxy for it to see if it's the http query resulting from i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: App Engine problems using the command line I am developing an App Engine project on Windows using Eclipse and Python 2.5 and Django 0.96. Everything in my app, including Django, is working nicely. My problems arise when I try to use command line. For example, I'm told that if I want to clear the local datastore I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qmake and passing $ORIGIN to linker option -rpath I would like to use the -rpath linker option to set the .so search path. I'd like it to search [app_path]/../lib. I've tried add this to my qmake .pro file: QMAKE_LFLAGS += -Wl,-rpath=$ORIGIN/../lib/ But qmake links my project this way: g++ -Wl,-rpath=RIGIN/../lib/ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Webview database corruption on Android I'm developing an Android app which uses a webview to display a webpage. Most of my code is related to the webview. My main activity contains a webview which displays an specific web site. I'm trying to prevent an error when my webview.db is corrupted. I know that is not a comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding a WIF STS service to existing projects We have several websites that are set up in the following fashion: Site1.Web - ASP.NET Web Project (.NET 4.0, WebForms) Common.Core - Class Library Project (all db interaction) The web project appears once for each site while the Common.Core project is shared among all s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hover effect doesn't finish animation when using Fancybox I'm having problems with a hover animation when I use Fancybox. When I click on the image and the Fancybox pops up the animation doesn't finish. $(".portfolio_item > a").fancybox(); $(".portfolio_item > a img").hover( function() { $(this).stop()....
{ "language": "en", "url": "https://stackoverflow.com/questions/7506875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trying to set numberOfRowsInSection with NSDictionary values I am trying to set up my uitableview for indexing, I have got number of sections working fine, now and the data is in the NSDictionary heres my output with nslog ---> Dictionary: { H = ( Honda, Honda, Honda, Honda, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how reading nutch generated content data on the segment folder using java I am trying to read the content data inside the segment folder. I think the content data file is written in a custom format I experimented with nutch's Content class, but it does not recognize the format. A: import java.io.IOException; impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drupal Views argument - Provide default argument: PHP code I would like to pass an argument of 'home' to the View (which is a block) as the default argument when the current page is the front page. The 'else if' portion of the code works fine. Thanks. This code goes in the "PHP Argument Code" text field when you sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I configure TortoiseHg to open a file in the right program based on its extension? I'm using TortoiseHg v2.2.1 with Mercurial 1.9 in WindowsXP. How do I configure TortoiseHg to view a file based on the application Windows has associated with its extension? For example, if I have a .docx file in the repositor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Improving Asp.NET MVC/Javascript url generation readability I need to generate urls for use in javascript. I don't think my current solution is very readable. //Navigation during load: Id from MVC or hash or zero. var m_departmentId = <%= ViewContext.RouteData.Values["id"] ?? 0 %>; if(0 == m_departmentId) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paperclip wont upload image to S3 I am having problems uploading images to Amazon S3. I have installed the paperclip gem and the gem 'aws-s3'. My Amazon S3 server is the europen: http://s3-eu-west-1.amazonaws.com When I submit my form the form is rendered again because the photographer is not saved. And I can see th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove "NSObject may not respond to selector" warning when using a formal protocol? I'm trying to write a custom, formal protocol and I am having issues with Xcode's warnings. Specifically: if([self.delegate conformsToProtocol:@protocol(myProtocol)]){ [self.delegate myProtocolMethod]; } This works totally fine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List by date is it * or *? I have a list of newsletters like this: * *Newsletter Jan *Newsletter Feb *Newsletter Mar *Newsletter May I logically order them by date but the numeration does not really mean anything. So my question is what is semantically correct? to use <ol> or ul? Thanks. A: If they are li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: z-index issue of absolute element inside absolute div I need an idea about a z-index issue on IE. Here’s my html markup: <div style="position:relative"> <div style="position:absolute"> <a style="position:absolute"> close button </a> </div> </div> The anchor (close button) is partial...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why would running Pex Explorations result in ignoring a previously Pex-generated test method? Code being tested: public class TestReader { public string Content { get; private set; } public void LoadFile(string fileName) { var content = FileSystem.ReadAllText(fileName); if (!content.Star...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Air for iOS: included files directory path Due to decisions out of my control I've created a iPad app by way of a CS5.5 Flash build and using the 'Air for iOS' publish. In the 'Air for iOS' settings I've included a file. The issue I'm having is in trying to call the file and not knowing what the path is. I'm hoping...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FTP framework to use in Java code I need to do some FTP'ing in Java, is there a best FTP framework to use? I see apache has something, any opinions? I just need to do some simple "sftp" puts and gets. A: I'm unaware of a free Java solution that offers both ftp and sftp client support. For sftp I have good experienc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ViewState on control inside page header I'm adding my js files to header on code-behind like this: protected void Page_PreRender(object sender, EventArgs e) { if (!IsPostBack) { HtmlGenericControl js = new HtmlGenericControl("script"); js.Attributes["type"] = "text/javascript"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to rectify Routing error for rails 3 project I am doing a simple file upload using Rails 3, followed all the steps as given in the following link http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-file-uploading.htm getting following error in browser: Routing Error No route matches {:action=>"app/controllers...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript iFrame Drop Down Hover Over Is there a way in Javascript (no jquery) to make a hover menu that is inside a iFrame. So it would extend beyond the iframe area? A: No, you simply cannot position content inside an iframe outside of its boundaries
{ "language": "en", "url": "https://stackoverflow.com/questions/7506941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can the pudb debugger be used on windows? Is it possible to us the pudb python debugger on Windows? If yes, how do you get it installed and working? When I try and install it using ez_setup, python ez_setup.py .\path\to\pudb-unpacked, it fails with ImportError: No module named termios, a module which appears to be f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I split sentences? So, I found and am currently using Stanford Parser and it works GREAT for splitting sentences. Most of our sentences are from AP so it works very well for that task. Here's the problems: * *it eats a LOT of memory (600M a lot) *it really screws up the formatting of a body of text where ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EJB3 Unit Testing with embeddable container Testing EJB3 using glassfish embeddable container, but this call seems to return null all the time, any ideas? //from JUnit EJBContainer ejc = javax.ejb.embeddable.EJBContainer.createEJBContainer(); A: Got it to work using openejb. Here is how to get it to start openej...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Indexoutofbound Exception invalid index size is I am getting error in this line..cant figure why? private void method() { for(int i=0;i<list.size();i++){ DbHelper.add(list.get(i),desc.get(i)); } Thank you.... A: Sounds like desc.size() is less than list.size(). Three options: * *Validate this f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding the different clocks of clock_gettime() Hi I wanted to use the clock_gettime() function for measuring the performance of my code. I am unable to understand the difference between the different kinds of clocks used in the function from the man page descriptions. esp CLOCK_REALTIME, CLOCK_PROCESS_CPUT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: redirect to 'www' before force_ssl I'm moving an app to heroku and am having some issues with ssl and redirects. I'm on rails 3.1 and I've tried forcing ssl with middleware in the environments production.rb. I've all tried adding it to the application controller. The problem is, when I do a full site force of ssl, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android - DBAdapter outside Activity throws Exception If I try to instantiate and use my applications DBAdapter outside my Activities, I get an exception thrown. I am trying to use it in a simple utility/helper class I made: public class MyClass { Context context; DBAdapter db; public MyClass(Context c) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serial Port Port.Write() Command I'm curious as to why when I use the SerialPort.Write() command, the command I'm trying to send doesn't actually ever get sent. (Maybe it just sits in the buffer, or is just saved somewhere, I don't know). I have to use the SerialPort.BaseStream.BeginWrite() command to actually physi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "There is no device with id [generic] in wurfl" in Zend implementation of WURFL I've followed the guide in the Zend documentation: http://framework.zend.com/manual/en/zend.http.user-agent.html And included all the configs in my application.ini like this: ; Mobile device detection resources.useragent.storage.adapter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a method to check whether the current Map is in Map or Satellite mode? I am setting the Map to Satellite view on click of a toggle button mapToggle.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (mapToggle.isChecked()) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: setting an icon in a jar application I've developed an application that I export into a runnable jar (including the libraries it needs). Everything works fine. When running the app from Eclipse I'm able to change the icon that the application window shows: BufferedImage image = null; try { image = ImageIO.r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7506970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }