text
stringlengths
8
267k
meta
dict
Q: fire mouse events on both usercontrols The thing is, I have 2 usercontrols, lets call them A and B. They both have MouseRightButtonDown and MouseRightButtonUp events and usercontrol A kinda overlaps B. Now when I right mouse click on A, the mouse event on B does not fire. When I disable the mouseevents on usercontro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring MVC: BindingResult allegedly declared without preceding model attribute I am experiencing a very peculiar behavior with Spring MVC 3.1.0.M2 that suddenly popped out: @Controller @RequestMapping("/admin/participants/{participantId}") public class ParticipantEditController extends ParticipantControllerSupport {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET: When does GC run? Memory leak? I understand what immutability is, and how the String .NET class is special. The immutability makes it behave like a value type even though it's a reference type. Got it. The C# reference emphasizes this point (see string (C# Reference), emphasis added by me: Strings are immutab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to send an array with jQuery .ajax() I've got an array like this one : var cars = new Array(); cars['mom'] = "Ford"; cars['dad'] = "Honda"; I want to send the array cars via jQuery .ajax() function : var oDate = new Date(); $.ajaxSetup({ cache: false }); $.ajaxSetup({ scriptCharset: "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse Plugin - XML Editor I've followed this tutorial: Eclipse Plugin This tutorial explain why create a HTML Editor. I need a Text editor,just for auto-highlight some words, anyway I thought this tuto should be a good one to start with. The thing is that I created the Plugin project and the only thing that I chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC App takes ages to respond sometimes I have an ASP.NET MVC app running in IIS7. Sometimes when I type the URL into a browser it takes 5-10 seconds before it responds, then after that it is fine. It's like it's taking it's time starting/waking up. How should I best proceed with trying to identify the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing a variable through to another PHP page I'm making a server manager. I want to add a "kill" command, which would call a php script that would essentially run a shell_exec('kill $arrtext'); and kill the process, thus closing the server down. Here is the part of my script that returns the results and checks to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UItableView , remove and add rows by begin/end Upradates HI i have some piece of code with table and some items in it. i'd like to u advise me, how to remove and add some rows with animation. When user scroll down to the last row "show next 5 item" code should to detect it and last row was removed and next 5 item w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting TextArea on the stage (getChild by ID,Name) I´m trying to get the 7 TextAreas on the stage on FlashBuilder,all of them have the id as "Desc1","Desc2","Desc3"... and the names are the same "Desc1","Desc2","Desc3"..., but when i try to get it,i get a error of a null object... for(var i:int = 0;i<7;i++) { tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get rid of "" object name and working in loop? I do not know how to precisely define this problem; but I could not figure this out genx <- list(scaffold_1 = c("AAATTTTTATAT"),scaffold_2 = c("AAATTTTTATAT"), scaffold_3 = c("AAATTTTTATAT"),scaffold_4 = c("AAATTTTTATAT"), scaffold_5 = c("AAATTTTTATAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heap Sort in C++ Okay, so after struggling with trying to debug this, I have finally given up. I'm a beginner in C++ & Data Structures and I'm trying to implement Heap Sort in C++. The code that follows gives correct output on positive integers, but seems to fail when I try to enter a few negative integers. Please p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Gwt pie chart radius I am using gwt and Google Chart Tools. wondering whether there is a way to set radius to pie chart? A: If you choose to set the width and height, it should increase the radius. Check this example on how to use the options.
{ "language": "en", "url": "https://stackoverflow.com/questions/7520135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Format git log output with sed, awk, or the like If I have output like this (from customized git log) d1fd022 2011-09-21 17:02:26 -0400 Replace double quotes with single quotes. 7227fe4 2011-09-21 13:57:36 -0400 Add automatic CommandTFlush to mkdir/rm/touch/cd How could you pipe it through sed, awk or s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where does the Liferay portal-ext.properties go in Glassfish? Below is my Liferay path: C:\glassfish3\glassfish\domains\liferay\applications A: C:\glassfish3 and there should be the deploy directory in the same place. The data directory is there if you are still using hsql. A: Actually, it goes here: C:\glassfis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fetch category name from category table by one of 2 category ids in customer table Having customer and category table. There are category1_id and category2_id in customer table. If having @customer, how to fetch the category name by given @customer and linking the category1_id and category2_id with the id in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ClearCase: Is it possible to cancel checkouts not made from your own view? Can the project manager force cancellation of checkouts of files/directories made in any view/stream/project? How? A: A ClearCase administrator can force all files of a given view to be considered as "not checked out" (which is the equivalen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where are perl modules located in archlinux Im trying to find perl modules, such as strict and warnings, but i cant find them... btw im actually using archlinux, i tried using whereis but it throws nothing. A: If the module has POD documentation embedded (which most do), the following will display its location: pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using SVN with multi-release development My team is using SVN to manage their source control. I have been given the task to see if there is anyway to improve the way in which we use SVN. I have read much of the SVN book and done a lot of research into how others use SVN. I'm going to give an overview on how we use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: CSS positioning 3 i want "SOL" to be at the center of the left blocks and "SAG" to be at the center of the right blocks. But it either be at the most left or at the most right. How can i make them center of the left and right blocks? link: http://www.orhancanceylan.com/sgkm A: wrap those 3 things in divs with the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Batch: combine txt files in columns I am trying to merge txt files (from which first column is equal in all) into one file. Thousands of them that I acquire in my experiments. I use 3 input files as an example to illustrate what I am trying to achieve: 1.txt 2.txt 3.txt l1 a1 l1 b1 l1 c1 l2 a2 l2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python - convert csv file to JSON I need to convert a csv file into a hierarchical JSON object (preferably using Python). I thought that the script I have (below) does a correct job of converting to JSON, but the JavaScript library I'm feeding the JSON data to (D3.js) doesn't work with it. The csv file looks like th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Should I provide an explicit back button in my view? When an application has a single view, the Back button probably resumes whatever previous application was running/suspended. I'm tempted to provide an explicit button which says 'Back' right there on the UI ... Should I provide an explicit back button in my view, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need some help with basic HTML select and ie I reproduce the error in this jsfiddle : http://jsfiddle.net/DavidLaberge/KftG6/5/ Here is my HTML: <table id="infoMedicament" style="width:100%;"> <tr> <td style="width:50%">Value 1<br /> <select id="produit1" class="produit"> <op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - create and call SOAP web service - error Every time i try to make a call to my webservice, through the wsdl, i get the error message shown here. I think its probably an issue within the the WSDL defintion, because I am not really sure what i am doing within the WSDL definition to begin with: [22-Sep-2011 18:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JAXB parsing "minOccours" - Problem with unmarshling I have following XSD which i used to generated JAXB objects <xs:complexType name="packageType"> <xs:sequence> <xs:element ref="package" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="dependencies" minOccurs="0"/> </xs:sequence> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex 4 List - scrollbars become visible and cover the itemrenderer I have a list inside a VDividedBox. When the box is resized so the vertical scrollbar shows on the list, it covers some of the itemrenderers. How do I get the list to resize horizontally so that the scrollbar does not cover the renderers? A: Actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash "diff" utility showing files as different when using a regex Ignore I'm trying to use the bash utility "diff" that is documented here: http://ss64.com/bash/diff.html. Note that I'm using a windows-ported version of the bash utility, but that shouldn't make any difference. I have two files, regex_test_1.txt and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What function to use to select text? I search a lot of on internet but didn't find some good copy-paste manager for windows 7. I want to make something to easy copying multiple texts. So my question is what function to use in c++ to select some text that will be copy. The plan is that every time when is pressed CTRL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a way to use a ODTTF font file in my WPF app? When an XPS file is created, it subsets and obfuscates the original document's fonts as ODTTF font files, and bundles them in the XPS file (which is just a zip file, so they are easily extracted.) I've extracted one of these ODTTF files, and included it as a Res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Trouble in getting proper string input I am writing a method in Java in which the user is supposed to enter a license plate for a car. The fist two signs must be capital letters, the third sign must be a digit between 1 and 9, and the last 4 digits must be digits between 0 and 9. If the user does not enter this pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: View HTML of jQuery injected code I'm thinking of using a couple jQuery tools/plugins to dynamically change the DOM of a page: http://plugins.jquery.com/project/appendDom http://www.botsko.net/blog/2009/04/07/jquery-form-builder-plugin/ When the new DOM is changed, I can use Firebug to see the new elements as they a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails 3 application, how to measure stability under high loads Hi I'm a new programmer and I've been working on my first real application that I'm going to launch in the coming weeks. The app uses some neat ideas around photo sharing, but basically is just a photo sharing web app. I'd like to find information out ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I add Devise's 'timeoutable' module to an existing Devise install? - Rails 3.1 These are the instructions to add a module to an existing Devise install: https://github.com/plataformatec/devise/wiki/How-To:-change-an-already-existing-table-to-add-devise-required-columns But I can't seem to locate the necessary...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I unit test the zend action controller? I need to rapidly build good software in php and using the zend framework. I try to go at this in a TDD way because its people more experienced than me told me that was the best way to rapidly build while keeping your code manageable. So I got the book on phpunit and we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mobile Forms Select is not the same size as Input or textarea I have a mobile page including a form. I need to align the select and input/textarea and make them the same size but it's not working properly. (see image) As you can see in the screenshot, the dropdown is not the same size as the input or textarea. Here...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: what happens when I read/write the same file? I'm learning about NodeJS's event model. I'm confused about the output. the code simply write some text to a file and read it back. the execution order seems out of my control. var fs = require('fs'); var ws = fs.createWriteStream("my_file.txt"); ws.once('open', func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: More specific constraints in derived classes using JSR-303 Lets say there's a class Money that has fields amount and currency: class Money { private int amount; @NotNull Currency currency; } While Price is also money it introduces additional constraint: amount cannot be negative class Price extends Money { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to ship a Windows Forms application to a client without .NET? This is about the deployment of a Windows Forms application. I have created a Windows Forms application, but I'm not sure if the users have installed .NET version 4. I have put my Windows Forms application at my website and the users will download it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Linq-to-sql Delete a record with FK constraints Is it possible to SubmitChanges and ignore deletes that cause Foreign Key constraint errors? Say I have object A and B. B's Primary Key is a Foreign Key in A. Now I change a record A in which I replace B for another B and delete the original B. An error will occur whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to move image down using vba in powerpoint from excel? I am new to vba and macros in powerpoint.. What is the correct syntax to position an image down -30? PPT.ActiveWindow.View.GotoSlide 9 Set PPApp = GetObject(, "Powerpoint.Application") ' Reference active presentation Set PPPres = PPApp.ActivePresentation ' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: outside f:ajax for composite component Is there a way I can create a composite component that can receive an <f:ajax> tag from outside? I'm creating an editableText input composite component and I want to show to end user the option to append an <f:ajax> tag inside the input tag of my component. Is there a way to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need a simple tutorial for android/webservice work? I'm really new working with Android, so there's a lot that's confusing me. I've looked at what seems like 100 tutorials and examples of how to get information from a web service on Android, but what I need is something for a guy that doesn't have a clue. Here are a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alertdialog with integrated buttons in the message I want to do something like Terms of Service in an AlertDialog (it must pop up) where the user has to scroll to the bottom to see the "accept" or possible an accompanying decline button. Is there a way to include buttons in the AlertDialogs MESSAGE that the user mus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to trigger navigationController:willShowViewController delegate method in AppDelegate How can I trigger the navigationController:willShowViewController delegate method for my implementation below so that all the view controllers in the navigation controller will conform to the colorWithHexString #faf6f5? Current...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: effective java builder idiom equivalent in c++? This is a great idiom I've been using since reading Effective Java. I've been trying to find a C++ equivalent or something similar and have had little luck. The traditional builder pattern found in the GoF book isn't really applicable in my case. It's one complicate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom order by string parameter in HQL I had an HQL query like this: Query query = session.createQuery("from User as user where user.joined!=null order by user.joined desc"); How do I set a variable User property as the sort order for my query? My solution: String order = "user.joined"; Query query = session.crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Program never seems to get to the onclick listen Hi below is some code ive been playing with but when i debug it never gets to the onitemclicklisten routine can anyone help? package sanderson.swords.mobilesales; import java.util.ArrayList; import java.util.HashMap; import android.app.Activity; import android.app.L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open a modal from a modal with SimpleModal by Eric Martin I'm using SimpleModal by Eric Martin to create modals for a project, and I have a situation where I need to open a second modal on top of a modal that I already have open. Does anybody know how I can achieve this? A: Eric Martin, could answer better (I know ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find nanoparticles I need some help. I have this sample: which is a piece of plastic with some nanoparticles inside (you can see the small black dots). Can someone help me figure out a quick and dirty algorithm where I can find the particles and color them in another color. A: Quick and dirty... OK :) * *[opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript - how does this button fires something? Javascript is not my speciality. I have a page that contains an image. This image, when clicked, fires an Ajax code, that shows a floating box. Analyzing the page code, I don't see how this button can fire the code. The button is declared like this: <div class="le...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting the position of setImage and setTitle of UIButton I want to have a large button the spans the length of my table cells that contains a setImage icon on the right and a setTitle on the left. However, what happens by default is that everything is aligned to the left. Is there a way to change the position of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery slide up two elements - one following the other I'm trying to slide up two elements (images) one after the other at the same time - so there is no gap between the two. I thought about using jQuery.animate(), but I couldn't figure out how to move the bottom element at the same time as the animate method is exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git workflow tips I started using git and have been using it for couple of months now, and I am curious if my workflow is correct. I work from two different places on the project. here are the stages of my workflow: * *I pull the project from remote repo *make a local branch for a new feature *make changes and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: generate WS-security usernameToken header in Visual studio 2010 I have a need to Implement Direct Authentication with UsernameToken WS-Security. I am consuming a Java Web-Service with Visual Studio 2010; which authenticates using UsernameToken header. I figured I can use WSE 3.0 -> http://msdn.microsoft.com/en-us/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xcode highlight issues I have been working on a project with Xcode 3.2.6 for a few months (first time with Xcode). I really liked the following feature: when I searched for the occurrence of a term, say 'house', Xcode highlighted ALL the occurrences of 'house' in the file that I am looking at. Moreover, it used to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Native C++ library - who have to release the memory and how? This is about Android. The situation: C++ library and java wrapper classes plus native functions (JNI) for working with C++ classes from the library. When common java code needs C++ object, it creates corresponding java wrapper object which creates C++ obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ASP.net is not using other locale resource files i have a Default.aspx file where i fetch localized values: Default.aspx: <asp:Localize meta:resourcekey="lblTitle" runat="server">Welcome</asp:Localize> i then create a matching fallback resource file: Default.aspx.resx: lblTitle.Text Welcome to Stackoverflow Lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: should phrases in a multilanguage site be stored in the database or in files? I'm developing a website, and want to make multi language support, but I'm doubting where I should store the phrases. Storing them in a database makes it easier to create systems where you crowdsource the translation, in a similar facion f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the differences when deploying on Tomcat vs. Websphere? If I were to deploy an application on Tomcat vs. Websphere, what are things that I need to consider? Do I have to develop my Java code differently if developing in one app server vs another? Edit: I will be funneling people from a website into a web ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Regex to parse @user mentions I have been using following Regex to parse @username from posts in my application. '/(^|\s)#(\w*[a-zA-Z_]+\w*)/ Can somebody explain me the purpose of (^|\s). What if I omit that part? A: (^|\s) either matches the beginning of a string (^) or a space character (\s). This is in order t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating dojox.grid.DataGrid I have a dojox.grid.DataGrid configured and I want to populate a data grid with different values when a user clicks a button. I have tried the following code but it does not work: var employees2 = [ {name:"Jane", department:"engineering"}, {name:"Mary", department:"engineering"}, {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook app without prompted authentication I've been trying to figure out a way to have my iframe Facebook app (built in PHP) work without requiring separate authentication methods. I am already logged into Facebook, but for some reason I still see all these Oauth notices from the example in the PHP SDK. The only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read a xml element and write back the new value of element to xml in C# I am trying to read abc.xml which has this element <RunTimeStamp> 9/22/2011 2:58:34 PM </RunTimeStamp> I am trying to read the value of the element which the xml file has and store it in a string and once i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically Add columns to datagrid in Flex I am trying to make a datagrid, that will dynamically add columns to it based on some condition. Now, I am able to add the columns, but I want the newly added column to have button using itemRenderer. I am unable to achieve this though. Getting this error on line 1 Descri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java call method of descendant class in abstract superclass I have a big method doComplicateCalculation in abstract class - AbstractClass. Also have small class Descendant that extends AbstractClass. I need to introduce in method doComplicateCalculation small changes like: .............. if (val<0){ continue; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't refactor files in eclipse I'm working on an Android project in eclipse, and whenever I try to move or rename a source file, eclipse says it caught an exception while trying to refactor, that the file doesn't exist, and lets me either undo, or abort. I suspect it has something to do with mercurial because it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Small but nice differences between VS 2010 Professional and Web Developer Express 2010? I have found similar posts to this one, such as; * *Visual Studio Vs Visual Web Developer, *What are the limitations of Visual Web Developer Express 2010? *What are the differences between visual studio and VS express editio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problems with incomplete content in forwards from Outlook 2003 I've designed an HTML email (with no css, using tables, etc) that essentially consists of one outer table that contains 3 inner tables. The email renders fine in Outlook 2003 but when the user forwards it, only the top table is preserved in the forward....
{ "language": "en", "url": "https://stackoverflow.com/questions/7520320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use JavaScript's variable in PHP? Possible Duplicate: Access a JavaScript variable from PHP theVariable = String.fromCharCode(theVariable).toLowerCase(); is it possible to use theVariable in PHP codes ? How? A: Not really... you can send it to a PHP script using AJAX or an HTML form. I strongl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Android/Java text file read problem I'm currently trying to read a file from (res/raw) by using an InputStream that I dimension like such: InputStream mStream = this.getResources().openRawResource(R.raw.my_text_file_utf_8); I then put that into this method to return the values: public List<String> getWords(InputStr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I loosely couple a process to a user interface for VBA and/or .Net? This question came to mind when I asked to put a progress bar on a long running process where the process has no concept of a user interface. In fact, the process is being written into a library to be pulled in from other applications. Howe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WebView next/previous page transitions I'm generating a book app, of sorts, that displays pages in a WebView. I have Next/Previous ImageButtons and a GestureOverlay to detect left/right swipes. When I want a page change I call: private void changePage(int delta) { currentPageIndex = currentPageIndex + delta; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Conditional formatting of a column based off having any text in the first column of the same row I'm not sure if this is even possible without going to VB, but I was trying to do it through conditional formatting. Basically I have a column (Column K) that will always be the same value (345) if there is a record ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Positioning QPushButtons via qss in QT I have a set of five buttons that I am trying to position in a qss file. The default position that I have set up in the ui file works for one of the layouts I need. However, I want to group the buttons differently in the other theme. I am new to qss files and have been experi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: drupal 7 hook_form_form_id_alter I'm trying to hook into a form with ID equal to "block-admin-configure," mymodule_form_block_admin_configure_alter(&$form, $form_state, $form_id) is not being triggered. When I use mymodule_block_view_block_admin_configure_alter(&$data, $block), it works perfectly. My goal is to add ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Weird error: The URI you submitted has disallowed characters with permited uri chars set to blank? Well i know its dangerous to set the permited_uri_chars to blank but i did this in order to find the error which so far i havent figured out the thing is that im getting this error The URI you submitted has disallowed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cocos2D ccTouchesMoved Sprites and Objects I have been struggling with this for a bit. I am trying to avoid have multiple classes for the objects I am trying to create. Basically I have a 'Letter' class that has a letter property. When I initialize the object I set the letter type to A, B, C...I am doing this all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing to see if an env variable is set in bash In a bash script, I'm trying to test for the existence of a variable. But no matter what I do, my "if" test returns true. Here's the code: ignored-deps-are-not-set () { if [ -z "${ignored_deps+x}" ] then return 0 fi return 1 } ignored_deps=1 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: force base class to use its own method and not overrided method here is my scenario: class SomeBaseClass { public void foo(String str) { ....... } public void foo(String strs[]) { ....... } } class MyClass extends SomeBaseClass { public void foo(String str) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery fade and slide simultaneously I'm trying to both slide/fade a div simultaneously on a hover, then slide/fade it out at the end of the hover, using JQuery. The slide/fade out work properly, but the slide/fade in doesn't. It just slides in without the fade. Any ideas? #myDiv { display: none; height: 110...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: About index in sql server Is it a simple question. I have a table Named Car for stock car specifications. On of my field is year for stock year of each car. So is it a good idea to indexing - (non- clustered) this fields if its can have 25 cars registered at 2009? Thank's for yours helps!
{ "language": "en", "url": "https://stackoverflow.com/questions/7520370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error message when modal is empty I have a couple of modal popups on my page that hold checkboxes. The checkboxes are different items that can be added to a specific product. Some products, however, have all of one type of item assigned to them. I need a way to show a message in the modal when the modal is empty. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make VBScript copy permissions along with files This is all in Windows XP utilizing VBScript. I have a directory with several files inside. The files have varying permissions set. I need to be able to copy the files to a new directory while retaining the permissions. Using the script below the copy works f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query execution order/optimization Given the view create view MyView as select Id, ExpensiveFunction(Name) as Expr from MyTable If used in the query select * from AnotherTable a inner join MyView b on b.Id = a.Id Is ExpensiveFunction computed for every row in MyTable, or is SQL Server smart enough to join to An...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get URL backlinks I am trying to create a script to get the amount of backlinks to particular URLs - the method I am currently using is to query the google search API for link:example.com/foo/bar which returned the amount of results - I used that value to estimate the backlinks. However, I am looking for alternate s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is Windows Azure Storage Analytics? Someone explain to me what it is and how the Windows Azure Storage Analytics works and how I can use it in conjunction with storage. A: Windows Azure Storage Analytics offers profiler like capabilities for Azure Storage (which includes Tables, Blobs and Queues). You can find...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: suppress Toast when setting AlarmClock im programming an android app which sets my AlarmClock. Intent i = new Intent(AlarmClock.ACTION_SET_ALARM); i.putExtra(AlarmClock.EXTRA_MESSAGE, "Google Cal Alarm"); i.putExtra(AlarmClock.EXTRA_HOUR, l.getHours()); i.putExtra(AlarmClock.EXTRA_MINUTES, l.getMinutes()); the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS Button styling I'm still new in CSS, sorry for the long post. I have the following code <style type="text/css"> .btn { float: left; clear: both; background: url(images/btn_left.png) no-repeat; padding: 0 0 0 10px; margin: 5px 0; } .btn a{ float: left; height: 40px; background: ur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a free php search engine that doesn't use MySQL? I've found several paid options and several options with PHP/MySQL, but does anyone know a free option for implementing a site search option on my page that doesn't use a MySQL database? A: If you want to programme the search functionality yourself and you'r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enrollment Challenge to retrieve UDID from iPhone Ad hoc testing facilities like TestFlight and HockeyApp use a part of the iOS OTA enrollment process to retrieve UDIDs (and possibly other device information, such as device type). How do these services achieve this? I've already figured out how to provide an initial...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the overhead of TPanel over TBevel I'm working on a project where they essentially used TPanel for the only purpose of displaying a bevel (And maybe the design time convenience Panel have over Bevels). Ok, I know TPanel is heavier than TBevel. Amongs other things, each TPanel create a user objects, which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to distribute multiple copies of services across servers? We have multiple services that do some heavy data processing that we'd like to put multiple copies of them across multiple servers. Basically the idea is this: * *Create multiple copies of identical servers with the collection of servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mockito's @InjectMock annotation I'm a little confused with @RunWith(MockitoJUnitRunner.class) and @InjectMock annotations and how they are related to each other. As per my understanding by giving @RunWith(MockitoJUnitRunner.class) we don't need to initialize the mock like mock(ABC.class). On the other hand @InjectM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Configuring WSS4J with CXF I was doing pretty well with setting up a contract first set of web services using CXF until I started adding in the WSS4J piece. I'm trying to debug sending a password and login in the soap header. I am getting null when I call getPassword() in the WSPasswordCallback class. I can see fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving Flickr Photosets How can I save each photoset to a folder on my server where the the name of the folder would be the title of the photoset. A: Take a look at PHPFlickr. It makes it easy to interface to the Flickr API.
{ "language": "en", "url": "https://stackoverflow.com/questions/7520416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tool to Find Out What The Browser is Downloading My PHP Apache website starts to load a part of the content, then it seems to stop loading and then it appends the rest of the page. I would like to know if there is any tool to find out what exactly is being load at the moment by my browser. I prefer Firefox, but any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hudson - Run console app and fail build if exit code is anything other than 0 I want to run a console app utility as a Windows Batch Command step in my Hudson build. If the console application returns anything other than an exit code of 0, I want to fail my Hudson build. Is this possible? A: That's the default beha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sorting small list (10 items) in PHP vs. MySQL and then returning? I'm curious what the runtime cost of sorting a small set of elements returned by a MySQL query is in PHP in contrast to sorting them in MySQL. Reason I can't sort them in MySQL is because of the groups of data being returned, (actually 2 queries and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS unrecognized selector sent to instance - adding NSDictionary to NSMutableArray Apologies for the masses of code but people usually ask for lots in the end anyway. I'm getting the following error when trying to add an NSDictionary to an NSMutableArray 2011-09-22 18:52:54.153 NPT[4788:1603] -[__NSArrayI addObject:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I write a COM dll? To better myself I am attempting to make my dll's COM compliant, I thought I'd just need to extend/implement a few interfaces and job done but now I am at a cross roads, 1) Should I learn MIDL? 2) Should I install the ATL (I am running VC++Express)? 3) Carry on reading the C++ tutorials (ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }