text
stringlengths
8
267k
meta
dict
Q: Need to trigger an event on a video ending Working on switching from Flash to a flash player/html5 video player hybrid solution. Using video.js player. I am looking to hide the player and show a div block with javascript upon video finishing. Would anyone know how to trigger this? I have a SWF container and a video ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to save a DateField on Blackberry? I create a DateField and add it on screen1 like above image. User can select "time" from this DateField. I want to save this "time" and create a new DateField has a same "time" on screen2 How I can do this? A: Use the DateField.getDate() and DateField.setDate() methods for tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HELP: application defined or object defined error when saving a workbook I get the application defined or object defined error when I save an excel file. I get an error at line: "wbk.SaveAs FPath" Here is my code: Dim wbk As Workbook, FPath As String Set wbk = Workbooks.Open("\\network\drive\Template.xlsm", False,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to delete columns in a CSV file? I have been able to create a csv with python using the input from several users on this site and I wish to express my gratitude for your posts. I am now stumped and will post my first question. My input.csv looks like this: day,month,year,lat,long 01,04,2001,45.00,120.00 02,04,2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Python sockets question: socket.MSG_DONTWAIT in Windows I have a Python app that uses UDP sendto/recvfrom with the socket.MSG_DONTWAIT flag. In Linux and Mac OS X, this works just fine. However, this flag doesn't exist in the Windows environment. What is the equivalent flag in Windows? Alternatively, how can I do n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiple functions in the same Element and Event What exactly happens if I add several functions in one element to the same event? By example: jQuery('#searchButton').click(function(){ /* logic 1 */ ); jQuery('#searchButton').click(function(){ /* logic 2 */ ); * *always the first function added to an event will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get the selected-row count from a list box in asp.net int countSelected = ListBoxMembers.Items.Cast<ListItem>().Where(i => i.Selected).Count(); string groupName = txt_GroupName.Text; for (int counter = 0; counter < ListBoxMembers.Items.Count; counter++) I have 20 items in the list, when I sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a PHP Web framework that does NOT use templates? I'm looking for a PHP framework that would allow me to create HTML, not through a templating system like Smarty or Twig (which I really don't like), but directly from my view classes, through methods like: $this->elementStart('div', array('id' => 'header', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between Debug and Signing key hi i am trying to get sign key MD5 finger prints for my signing certificate.can any one please tell the difference between sign key and debug key. i am able to fingure prints for debug key but for getting sign key finger print i am confused what is the meaning of my_release_k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid code duplication in a Android Test Application? Suppose I have an application that have similar buttons named button0, button1, etc, up to button9. How can I do the following without duplicating code? button0 = (Button) activity.findViewById(com.sample.SampleApp.R.id.button0); button1 = (Button) activit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery mutiple text field update in form i need to create a html form where upon entering value on one input text field should automatically enter calculated value in another input text field using jquery.I found a source http://pastie.org/2607417,where i have input text value which output in a paragraph... Any help...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: overriding a method in a generic class Im refactoring some unit tests. Basically, i ve found that unit tests of different clients implement a bundle of methods such as: createClientWithNullResponse, createClientWithSuccessResponse, etc. I was wondering if its possible in Java to implement a generic solution to this,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Usage of "isset" function Although I visit php documentation , I didn't understand usage of "isset" function . 1 - for example in a php tutorial book author wrote a text with this context : when we create a form in a first.html and we want to use from form information in second.php , we must use these 2 pieces of co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sorting by custom score in Solr does not sort consistently I assign a custom "popularity" score for each document in my Solr database. I want search results to be ordered by this custom "score" field rather than the built-in relevancy score that is the default. First I define my score field: <fieldType name="sint" c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: User-specific database records This is more of a theoretical questions. Anyways, Assume that I have a database (50 tables) And Data in ALL of those tables should be hold specifically to one user. What I mean is, usually we do foreign keys for each table that is user-specific. and retrieving data using something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: tableview delete error with touch interface after tableView:commitEditingStyle:forRowAtIndexPath: has been used I am overriding tableView:commitEditingStyle:forRowAtIndexPath to become a method that resets the textlabels in my uitableviewcells however this seams to be causing errors when the user next touches the ui...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to get 51, out of the following string What is the best way to get '51', out of the following string in ruby : "<https://api.example.com/users/lgs/api?page=2>; rel=\"next\", <https://api.example.com/users/lgs/api?page=51>; rel=\"last\"" Thanks in advance Luca A: If you know there're only two n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Returning Multiple Entries With WHERE subseach I'm facing the following problem: I have a table (new_form) that lists units that should answer a formulary. The information about those units are in another table (units), including the code of city (city_code) where they are. I want to find the information in the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem writing array results to a csv file I have a csv file I need to cleanup. It contains 13 fields, but I only need 7 (Business, Address, City, St, Zip, Phone, Email) I need to run through all of the records and create a new output of just the records with email addresses. In nutshell... I load the original fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery : manipulate width and height of an img tag How do I change the height and width of an image in and unordered list with jQuery <ul id="files"> <li><img src="1.png" /></li> <li><img src="2.png" /></li> <li><img src="3.png" />/li> </ul> My css : ul#files li img { width: 100px; height:100px; } I've tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery loading an image while async false I want to give a spinning gif image for the user to know something is happening while I am doing an ajax call with jquery. I have to use async:false because otherwise the code gets confused and we end up with a bad session variable. Here is what I have (that does not show th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7588994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I compile a 32-bit version of Live555 Streaming Media on OS X? The default compile of Live555 Streaming Media on OSX is x86_64. How can I configure the build system to create 32-bit versions of the static libraries?
{ "language": "en", "url": "https://stackoverflow.com/questions/7588999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change ChildWindow CloseButton image Silverlight 3 I'm modifying the default 'ChildWindow' style and I'd like to specify a different image than the 'X' that is there by default. I've tried various things, like hooking into the OnApplyTemplate and OnOpened, where I can gain programmatic access to the button, like th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple php/mysql not working I have the following in a php script.All I get is a blank page, no errors or nothing. error_reporting(E_ALL); ini_set("display_errors", 1); $database = "mydatabase"; $con = mysql_connect("localhost", "admin", "password") or die(mysql_error()); if (!$con) { die('Could not connect: ' ....
{ "language": "en", "url": "https://stackoverflow.com/questions/7589004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql query order output I have table called Property and the data is like pid city state state_abb address1 address2 x1 NewCity NHANy NH xxxx gfg x2 Gloucester Manchestar MA newAde xxxx x3 OtherC ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL : SubQuery with Group By Possible Duplicate: SQL : How can I use sub query in a query with group by section? Some one help me please . SQL Server cant recognize t1.sen in subquery . Error message : The multi-part identifier "t1.sen" could not be bound. select t1.sen, sum(t1.d_rooz)as d1, sum(t1.d_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining Two Images with OpenCV I'm trying to use OpenCV 2.1 to combine two images into one, with the two images placed adjacent to each other. In Python, I'm doing: import numpy as np, cv img1 = cv.LoadImage(fn1, 0) img2 = cv.LoadImage(fn2, 0) h1, w1 = img1.height,img1.width h2, w2 = img2.height,img2.width # Cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Share point 2010 case study project for learning I come from asp.net , SQL server experience of 7 years. I  am learning share point 2010 during my free time . At work I don't have the opportunity to work on share point but I would like to expand my skill set with sp2010. Can anyone provide me a good link to develop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binding Command inside DataGridTemplateColumn I have View(XAML included) attached to my ViewModel with commands. I need to invoke command when Button on DataGrid's row clicked. I'm using behaviors for this (regular commanding have same issue). When I click button on DataGrid - my command does not get fired. To illus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Windows Service not trapping error from DLL I have a Windows Service that runs every 10 minutes. Whenever there is an error on the DLL, the service isn't throwing an error. How do I make it so the error propagates back to the Windows Service and have it generate an Event Viewer message, or even start the polling a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: IllegalArgumentException: No view found for id for fragment when fast switching ActionBar Tabs I am developing an Android app for tablets and not using the compatibility library. There is just one Activity and it uses the ActionBar with 3 tabs. In the TabListener I use setContentView to load the layout specific to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: jQuery Slide Plugin Positional Problem I have been using the Slide plugin to slide a div in to replace another div. Here is my code: http://jsbin.com/iwemaq/15 I have had to make the position of the second div absolute so that it would stay level with the existing div. If you take this out of the example it will for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails 3 tutorial Ch. 10.6 ex 5 rspec failure In solving exercise 5, I ran into a similar issue as this question. I refactored based on the answer given to that question but am still receiving the failure: 1) UsersController DELETE 'destroy' as an admin user should not self-destruct Failure/Error: lambda do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is drupal a good solution for websites with a very dynamic layout? I'm looking to use Drupal from an upcoming project as I've always been very interested in using it. However the more I get familiar the more I feel that Drupal isn't a good solution for a website that is very dynamic in terms of page-to-page layout a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the most elegant way to implement a digest email without reinventing a queueing system? I have my transactional email system setup & by default people get emails as events happen: class Comment after_create :email_original_poster def email_original_poster UserMailer.delay.notify_author_of_comment se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Spotlight effect in actionscript-flash Can anyone point me to a good demo or tutorial on creating a hollywood style spotlight effect? 2 soft edged rays pointing down towards a 'floor' and criss crossing each other A: Hope these links helps you: http://snipplr.com/view/25032/ http://www.pixeldigest.com/spotlight_eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's a good way for a class (that manages a list) to disseminate notifications? I'm working on an iPad app has many pages for users to browse through. I'm implementing the functionality for users to 'favorite' a page so they can revisit it later. I'm writing a Favorites class that will manage a list of the user's...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change this Hibernate property to not require a SQL statement I am using Hibernate dynamic-map to load DataEntry objects in my application. When I load any given DataEntry object, I want to retrieve the descriptive value of its InformationTypeId column. The DataEntry table's InformationTypeId is actually a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why compiler doesn't automatically inline freely defined function ? Instead results in linker error Example: // header.h void foo () // function definition in the file { } // file1.cpp #include"header.h" ... // file2.cpp #include"header.h" ... Above code will result in linker error. Suppose if the compiler makes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I concatenate two AFP files together I have two AFP files and I want to concatenate them together, how can I accomplish this. I have written java code to concatenate them, using BufferedInputStream and BufferedOutputStream and the result AFP is not correctly format. I even try to use linux cat but yield the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Patterns and Practices for Enforcing Object Association Cardinality I've been thinking about object-oriented principals / practices / paradigms such as SOLID, Law of Demeter, and DDD a lot lately and a theme that continues to surface is enforcing object cardinality. Object association cardinality is derived from bus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why are my custom framework classes not automatically available? So, I created a custom static library (framework). Then, in another project, I went to my targets 'Build Phases' tab and added my custom framework under 'Link Binary With Libraries'. It worked fine and my framework shows up just like any other (.framew...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python : Accessing Column Values in multi dimension array Example: a = [[1,2,3],[4,5,6],[7,8,9]] By doing something like a[:][0], I expect it to give me 1st elements in each row [1,4,7] However, I get [1,2,3]. I can always make a function to do it. def column(array,index): result = [] for row in array: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Urban Airship. Get Android APIDs using /api/apids/ method I have been trying to use the server side api provided by Urban Airship to integrate with my Android app. I am trying to get all the APIDs registered in Urban Airship server from my Android app. I am getting a Null value always although I have registered 3 de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grails + spring-security-core: How to assign a role after user has logged in? I have a grails application that uses spring-security-core and spring-security-ldap, with authentication against Active Directory. I have a custom UserDetails and UserDetailsContextMapper. I have a use case where a user can temporarily tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to apply effect with QGraphicsPixmapItem? void MainWindow::save() { QGraphicsPixmapItem *gpx = new QGraphicsPixmapItem(QPixmap::fromImage(_im)); QGraphicsBlurEffect *effect = new QGraphicsBlurEffect; effect->setBlurHints(QGraphicsBlurEffect::QualityHint); effect->setBlurRadius(20); gpx->setGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: call javascript function from controller I need to call a JavaScript function in a Controller function. My code looks like the following: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Edit(DeviceLocation locationToEdit) { var originalLocation = (from m in _db.DeviceLocations ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MochaUI won't load script src in window I'm trying to load a page into a modal window. I'd prefer to load with it the necessary js files rather than call them in the head where they will be loaded for every page including the ones they aren't needed on. The problem is I can't get the scripts to load. It seems like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ImageButton update source in AppWidget I'm trying to replicate the functionality of a ToggleButton in terms of RemoteViews, so I can have on in my App Widget. I have an ImageButton, and I've got it detecting clicks, but I'm having trouble changing the image that it displays when clicked. I'm under the impression I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to determine if an incredibly large number is prime? The numbers I'm trying to figure out are in this form (some examples): 2 ^ 7 - 1, 2 ^ 31 - 1, 2 ^ 127 - 1, et cetera. This is not a homework question I was just researching primes and a lot of the information is going a bit over my head (Fourier transformation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Regular expression that optionally matches the beginning of a string I have a text containing expressions that may be generated by the regular expression "[1-9]?[0-9].[1-9]?[0-9].[1-9]?[0-9]". No I want to perform a regular replacement that puts a "0" in front of each part when there is no first digit. So for examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Listview onclick display options? I currently have a listview which displays summarised data, i have an onlcick listener which works fine, but I was wondering what the best option would be to display all the data of the selected item? I don't want to use toast, too small. Need a back button to return to the listview...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm about to use a goto statement Save me from raptor death - is there any better way to handle this kind of structure? while(condition) { $this->phase1(); $this->phase2(); $this->phase3(); $this->phase4(); } Throughout either one of those methods, the condition could be met. IMMEDIATELY after the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: unable to increase height of form in visual studio .net 3.5 I am unable to increase height of a form in Visual Studio 2008. It goes up to 812 pixels but not beyond that! If I set it to 813 it goes back to 812. A: You cannot make the form larger than your screen. 812 sounds about right for a something x 800 screen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does the WPF listbox change selection on mouse button down rather than button up? I had never noticed this before, but the WPF ListBox seems to change its SelectedItem when the Mouse is down, but has not yet been released. As a quick example, just create a simple ListBox with several ListBoxItems, like so: <Lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: .NET SQL new table doesn't exist NOTE: This issue has been resolved, but lead to a new question. I'm getting this error: System.Data.SqlClient.SqlException "Invalid object name [tablename]" I'm working on a DB update to ship with an update to a deployed product. The first time the newly updated application runs, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need Help With Javascript Scope I need some help understanding scope in Javascript. I posted a similar question earlier and prematurely marked it as accepted. (The solution didn't work in my case). I've got javascript (a) and jQuery script (b). I need to access some values from (a) in (b). In (a) I've got: function...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Position absolute and relative IE7 issue I have two divs. First has position:absolute and another one has position:relative. <div class="first-div"> abc </div> <div class="second-div"> xyz </div> The problem is in IE7 when hover the first div, the first div is under the second div. In CSS z-ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interface, Abstract, or just virtual methods? I have a bunch of systems, lets call them A, B, C, D, E, F, G, H, I, J. They all have similar methods and properties. Some contain the exact same method and properties, some may vary slightly and some may vary a lot. Right now, I have a lot of duplicated code for each s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: VBA Open Workbook from Macro fails "(path & filename) could not be found. Check the spelling..." I have the following code, which should simply open a workbook from a master workbook to allow me to paste some information which I will later retrieve from a database. I receive the error in the title every time I try t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use DependentTransaction with EF 4.1 DbContext How can we use DependentTransaction with EntityFramework 4.1? If you see the article "http://stackoverflow.com/questions/2858750/what-is-the-reason-of-transaction-context-in-use-by-another-session" to bring transaction into another thread we have to open the conn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex: Get a Popup to scroll with the rest of application Possible Duplicate: Positioning / Scrolling problem with Flex popup I am trying to get the main control bar on my application to control the location of a popup that has been opened using PopUpManager.createPopUp(this,JakePanel,false);. Initially the page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Boost - Formatting sub second precision time with a time stamp I need to get a nicely formatted timestamp (slightly modified ISO 8601) with millisecond precision. And example date would look like this: 2011-09-28 13:11:15.237-08:00 The formatting should be able to be overwridden as well. I've been playing around wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: progressdialog shows up to late (async task) I update dynamically my UI thanks to an asynctask. On the onpreexecute method I show the progressdialog, but it shows up to late. I mean, I click on a button to change of activity, then the UI is frozen, and ater I see briefly the progressdialog and finally my UI updated...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to join multiple tables related by other tables I'm developing a site where people can publicate their houses for rent. I'm using php 5.2.0 and MySQL 5+ the publications are stored in a table like this ta_publications +---+-------------+------+ |id | name | date | +---+-------------+------+ | 1 | name_001...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Populating a flex 4.5 DataGrid using PHP and MySQL Hey so I recently started working with Flash Builder 4.5 so I am facing a lot of silly problems while building a mobile application, specially when connecting my application to a back end server. The thing I am working on currently should update a DataGrid and this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blender game engine events with python We're searching for a way to script events in BGE instead of using there build in GUI version where you are using your mouse to make events trigger your scripts. Isn't there a way to use events with python directly? Thanks in advance. A: The only way to bypass the BGE event sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to test HtmlHelpers that call Partial? I've been looking at this Stackoverflow question and have the answer implemented. It works all fine and dandy until I get to call HtmlHelper.Partial in my helper method, which is listed below. I know it might not be the best code, but this is until I can refactor more of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby GEM for File and Directory manipulation i'm looking for gem(s) which will provide me tools for File and Directory manipulation. Basicly i would like to get possibility to: * *search file in provided directory *search pattern inside file (different extensions) *insert into file at precise place content I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: onBind and Service connect? There seems to be a small delay after I bind to a remote service. The onServiceConnection works fine. The binding work fine. There is just a delay problem I think. For example in the onCreate() method of my activity if for instance say: * *Note the mConnection onServiceConnect() se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tracking multiple QR tags from a distance using webcam and Java I'm currently trying to build an application in Java, which should be able to read QR tags from a couple of meters. At the moment, I have JavaCV running, for capturing frames from my iSight on my MBP. The problem is that it only supports a resolution o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculations and display in label I'm having a small bit of trouble trying to get this piece of code working. I received some answers related to this code bit but it was solving a different issue. Basically two things for testing purposes that I would like to see working correctly here. One when I try to display di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Processing cURL and other POST types of requests I'm afraid that you're all gonna need to reach over and put on your "this-is-a-dumb-question" hat, but I can't find a legitimate answer online. I can find all sorts of crazy info on sending cURL requests to a site and have them send back a response and processing that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Basic than the Basic-est question on Spring Security? I have an extremely basic question about Spring security, however this question may be generalized to any Authorization scheme: Should a Group have a single authority and a user may be a member of multiple groups? OR A group may have multiple authorities and a us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML content display limited lines How to display news items which comes from database on a web page limiting the number of lines to 3. The news content is in html format for example <p><span style="font-family: HelveticaNeue LT 77 BdCn;"><span style="font-size: large;">The average house price&amp;nbsp;up by 0.3% in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Process Builder Incrementing Error I have written a program to monitor the status of some hard drives attached to a RAID on Linux. Through this program I execute several command line commands. An interesting error occurs though....the program runs for a good three minutes before it seems that it can no longer correc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python introspection: Automatic wrapping of methods object of type A and Is there a way to programatically wrap a class object? Given class A(object): def __init__(self): ## .. def f0(self, a): ## ... def f1(self, a, b): ## .. I want another class that wraps an A, such as class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Working with percentages in PHP I'm trying to create a simple split tester in PHP but I'm having some trouble getting the percentages all figured out. So, I have a settings page where I want to put a percentage, something like 20, so that 20% of the traffic to my page will be redirected. This will obviously need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Heroku Deploy can't find devise-1.4.6 Trying to deploy to Heroku but get the following error: -----> Gemfile detected, running Bundler version 1.0.7 Unresolved dependencies detected; Installing... Using --without development:test Fetching source index for http://rubygems.org/ Could not fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is applying styles to element a good practice? Applying styles to <form> tag is: a) a good practice, it decreases the count of elements on a page and makes code clear b) a bad practice because of semantics, use other elements instead, div is for style, form is for forms c) don't ask silly questions and focus on rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can't get my recursion function to work with a list Passing in a list such as: [1,2,3,4,5] and get back [ [1,2,3,4,5] , [2,3,4,5] , [3,4,5] , [4,5] , [5] , [] ] my approach is using recursion to add drop 1 list to another empty list until list is empty. but I can't seem to get my recursion to work correctly. help pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rows showing up multiple times in GridView I have a GridView control on my web page which makes use of paging. I am seeing apparently duplicate rows appearing, but I know they are not in the data, and they seem to disappear whenever I sort on a different column from the default one I'm using. However, they reappear ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Save the selected value of a combobox in wxpython I'm working to design a gui using wxpython, a pecie of my code is that i have a class which a fram declaration and also i declared variables that i wanna chage their values based on the comboboxes selection. i did the folowing: class myMenu(wx.Frame): def __init...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you use rsync to replicate block changes in a Berkeley DB file? I have a Berkeley DB file that is quite large (~1GB) and I'd like to replicate small changes that occur (weekly) to an alternate location without having the entire file be re-written at the target location. Does rsync properly handle Berkeley DBs by...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Group by an array's element in PostgreSQL In Postgres 8.3, I need to group by certain elements within an array field. When I group by the array itself, all possible combinations are shown. I only want to group by the element. something like this works for finding the count of a single element: SELECT count(*) FROM t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Curl::Err::HostResolutionError (Couldn't resolve host name) I'm running Rails 3.0 with a custom Devise authentication strategy that makes an SSL call using Curb. I get an "Curl::Err::HostResolutionError (Couldn't resolve host name)" error. Works fine manually from the command line. The production environment is Apac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange extra top space in body In this test page, the element has a strange extra amount of space on the top: http://dl.dropbox.com/u/3085200/canvasTest/index.html I tried putting margin, padding, top all to 0 for body, and padding to 0 for html, but none of it helped. html { padding:0px; } body { margin:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: VBA gives wrong plotarea width? I want to get the PlotArea width and height in order to calculate the proportion. I used ActiveChart.PlotArea.Width to get the width, and then tested the width using Photoshop. I discovered that the width returned by ActiveChart.PlotArea.Width is wrong. Image shows what I am talking a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mac App Store app with Safari Extension I'm trying to understand how an app like 1Password can be on the Mac App Store and come with a Safari extension (and most importantly, how can the extension communicate with the app) because I'd like to do the same. Is the native app running a server as a subprocess that get's...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Building a '2d' Haskell list Let testFn be a function that takes two Ints. I am trying to write a function that builds an N x M two-dimensional table (a list of lists) containing all the values of (testFn i j) for i < N and j < M. How can this be done? A: A list comprehension would be the easiest: [[testFn i j | j ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display data from XML in a SSRS tooltip I am creating a SSRS report. I need to display text in a tooltip(The data is in XML format) . Below is my sample xml. <warnings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <row> <linetext>This is Sugar.</linetex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery href behavior (waiting on a form completion from href link) As you can see below.. I would like to embed a simple HTML form in a hidden DIV.. I would like to SHOW that div on click.. Folding out the DIV and allowing the user to complete the form.. Once the Form Submit happens.. I would like to resume the ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mercurial hosting with folders / repository organizing capabilities I'm currently using Bitbucket for my Mercurial repositories and it's working great. I would however like to be able to organize my repositories in folders, as having them all in one long list is a bit disorganized for my liking. To be clear I'd like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AndroidManifest.xml and style <activity android:name=".activity.MyHomePage" android:theme="@style/AppTheme.Light" android:label="New Tasks"/> I have that Activity in my AndroidManifest.xml file. How do I set style on that android:label. I would like to set textsize and textcolor. <style name="AppTheme.Light" parent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating Membership DB (ASPNETDB) on remote server? I'm building a web application which soon I'll be promoting to production. This application has a login screen, as you know I used the integrated DB for developing. Now I want to move this database to a full SQL Server 2005. I'm using the aspnet_regsql.exe to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: printk in driver I am really new to linux module programming. I need to some how be able to do some tweak to the ath9k driver in linux. I finally got the compat wireless source code of ath9k to compile in ubuntu 11.04 and was trying to play around with the code. I tried using printk to tried to get to see what happe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I create a route that matches an already ignored route? So, I have the following in my global.asax creating my MVC routes. They are called in the order that they appear below. What I expected to have happen was it would ignore the routes to the css folder, but then create the route to css/branding.css (which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: instantiating an object from a web service vs instantiating an object from a regular class I have a very basic web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace WebService1 { /// <summary> /// Summary description f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: font-variant: small-caps; shows different font sizes using Chrome or Firefox font-variant: small-caps; font-size: 12px; Firefox: * *Capital letters: 12px *Lowercase letters: 10px Chrome: * *Capital letters: 12px *Lowercase letters: 8px How to harmonize that without using JavaScript? A: Webkit browsers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: case-insensitive key in xsd I have an XSD embedded into an XML like this: <Replacements> <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Replacements"> <xs:complexType> <xs:sequence> <xs:element minO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7589303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }