text
stringlengths
8
267k
meta
dict
Q: Freezable.IsFrozen and DependencyObject.IsSealed What is the difference between those two? Aren't they semantically equivalent? A: No. Freezable.IsFrozen can be toggled (one time) from outside the class by calling the Freeze() method, DependencyObject.IsSealed is read-only and its value can only be set internally b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is my PHP script sending blank emails? When I render it on the server side after uploading, I get an email but it is blank. The From is blank the text is blank the part in ECHO where $name is comes out blank. Any ideas what I can do to make this work? Here is my form: <form action="survey.php" method="post" nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to import a dll into a asp.net web application running on webserver I have a dll created in VS 2010. i put it into the app_code folder on the webserver and then i accesses it by trying to use imports GetWebPageData the dll is in the vs project under bin/debug if that means anything A: You need to copy the DLL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Document is used being other tabs In my firefox addon. I have two tabs open in my browser, when I try to access the "document" after a interval/timeout, in one of the tabs, I grab the document of another tab instead... For example: Tab 1, document.title is: "Test page" Tab 2, document.title is: "Second tab" I run a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make IIS server work with Zend I am trying to make my site work with the IIS I have installed on the server. I also have plesk control panel installed. I am trying to: * *make it look for the index.php inside the public folder and not just the httpdocs folder. *make the mod_rewrite work (i've extracted everythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I convert Bayer to RGB using OpenCV and vice versa OpenCV provided function to convert Bayer to RGB, but how to use this CV_BayerBG2BGR , and other similar function? I used code below, but the error appears stated invalid channel number. Since I use RGB image as originalImage, anyway how this function actuall...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My hot-deploying (toy) server: need your design inputs (homework) from multiprocessing import Process a=Process(target=worker, args=()) a.start() I am making a multiple worker-process app (don't laugh yet) in which each worker can gracefully reload. Whenever the code is updated, new requests are served by new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple CRUD Generation This is what I have: * *An entity-relational schema, modelled for Doctrine 2.0 (in PHP); *The generated database, on a MySQL server. This is what I want: A very basic CRUD web-interface to the database, that allows me to (you guessed it!) create, read, update and delete records, with ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: vaadin: moving data from selected row of table1 to table2 I have two questions: * *I have two tables, table1 and table2. I need to design an application in such a way that a selected row of table 1 when clicked should get displayed in table 2. *How do I call a custom table? Suppose I have a class Table with empt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: CSS style override default textbox border to create invisible border? I want to display a text box in css/razor without the border (well, as white background) but it's picking up the color value from it's parent. Q: How can I override the default value in the parent css style so my textbox value looks like a label (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to use oauth with facebook problems Im trying to use this code to start building a simple facebook app but I cant seem to get to grips with the access token part so i can get the users birthday etc. Can someone please take a look and let me know what im doing wrong : <?php $app_id = "*********"; $canvas_page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to cast in IntentService::handleIntent the CustomResultReceiver passed as an intent extra I am trying to cast the Intent::extraParcelable received, to my custom RestResultReceiver like this public class APIHttpV1Service extends IntentService { ... protected void onHandleIntent (Intent intent) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to generate IIS7 CSR (for SSL) from C# code or using Powershell on server which IIS is running How I can generate a server SSL Certificate Signing Request (CSR) from C#? If PowerShell is a better option, that would be a good solution as well. A: Some general pointers: * *http://msdn.microsoft.com/en-us/libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Way to detect if String content is a DateTime - RegExp? Possible Duplicate: generically parsing String to date Following situation: I need to detect if a String contains a DateTime/Timestamp. The problem is that those DateTimes come in various formats and granularity such as: 2011-09-12 12-09-2011 12.09.2011 2011...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP MySQL PDO::exec raises or throws no error for multi-command scripts When executing a multi-command script (for instance, a few CREATE TABLE commands and perhaps a few INSERT commands), particularly with the MySQL PDO driver for PHP, the return is always 0 (without any error info) even if the script contains erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing a large variable in HTML5 persistent storage from an action run in a PHP script I will begin by briefing as to what this actually should do... Fetch the entire contents of a web page, turn into a string, and save into persistant storage. However for some reason, it just... wont? Ive used php's html entities,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter divs depending on numeric quantity entry I'm trying to set up a filter using jQuery. I'll have a certain amount of divs, each with a numeric value (let's say price). I want to have a textbox and button that filters out any divs that are higher than the value given. So for instance, if I enter 10 and hit filte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Key value table to view with variable columns I have my data in a key-value table (in MySql) which has the shape: id, key, value Now for export to my users I need to transform it into a table with all the keys as columns. (actually only ~20 of the ~100 keys need to be in that table) The workflow would be to provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom membership provider for asp.net I want to use NauckIT asp.net membership provider for Postgres. I was playing with example and I managed to register/login/logout user. However, This membership provider also has role management, but i dont know how to use it. My question is: Is it possible to use ASP.NET Confi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGL not show result from secondary thread on iPhone I created EAGLContext and use it in the secondary thread. But there is no output displayed. The same code works fine if run in main loop. Do I need to notify somewhere on each render completion? A: EGL Context may be only active in one thread. You need to use e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SELECT unique row from field 3 to field 4 Is there a way to delete duplicate records based on two fields? I have a system where people can register for sport events. In the table: event_registrations • unique_id • eventname • id (person's id number) • Name and Surname One person can apply for many events - id may d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: deleting Rows in rich:extendedDataTable I have a rich:extendedDataTable. I have a a4j:commandLink for each row, on click of this the row should get deleted. The problem what I am facing is, if I go on deleting the first rows the (firstRow+1)second row's value is set in the backing bean and always the second row is g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show hide div in one area I have been looking all day to try and find something that matches what I want but I cant find anything anywhere. I want to create a show hide div that shows / hides the div in one fixed area. I want a gallery of thumbs on half my page and in the other half of the page I want to display the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Gtk::Widget on_enter_notify when mouse is down? I'm trying to have a list of Gtk::Widgets that when clicked on I need to highlight the widget, but when the user holds the button down, and drags to another widget, the first one will 'unhighlight' and the new one will highlight on enter_notify. I've tried using the on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Object DataSource I'm trying to use an ObjectBindingSource to bind data to a gridview. The data is present in the view as a subclass as the controller, in the form of a model. var _controller = new DataController(param1, param2); you would access it in this manner foreach(var Variable in _controller.DataMode...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can a disconnected TCP socket be reliably detected using MsgWaitForMultipleObjects? Twisted includes a reactor implemented on top of MsgWaitForMultipleObjects. Apparently the reactor has problems reliably noticing when a TCP connection ends, at least in the case where a peer sends some bytes and then quickly cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to set a connection just for server callbacks and a connection just for client calls using WCF ? I don't think I was clear. What I meant was How to set a callback("server to client") in a different connection from a "client to server" connection using WCF ? I always saw callbacks examples using just one DuplexCh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting records in order of the number of records that contain a certain field We have a table that is arranged as such: ID, Album_ID and Time_Voted. Each time a user votes, it creates a new record. We'd like to display the top five Album_IDs, (which had the most records containing that Album_ID at the end of eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to retrieve the value of a kvp in c sharp, using the text of the key? I have various values and names stored in a db table, that my code will use for various tasks. These are read into a kvp , so that I can get to the right value from its key when I need to. As far as I've seen so far, getting to the value using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create wsp package from powershell Please help, how to create wsp package from powershell? I know how to build solution, but I don't know how to emulate command Package, which exists for WebPart projects in project item context menu. Thank you! A: I guess this is what you want. set-alias msbuild C:\Windows\M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Look up GWT CellTable header style/s? How can TH style name/s of a GWT CellTable's heading be looked up programatically? I have looked at the Client Bundle documentation but it isn't immediately obvious to me how it all fits together. Thanks. A: Not sure exactly what you want to do when accessing the TH style name...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Password-protect folder with web.config I have to password protect a directory on a Windows server. The page is supposed to show a list of files located in that directory. I don't have any previous knowledge (only worked with Apache before) so I've tried hacking something together by googling. (For someone who knows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to have two indexes in a coldfusion for-loop? <cfscript> for(firstIndex = 1, secondIndex = 1; firstIndex > 10, secondIndex > 5; firstIndex++, secondIndex++) WriteOutput('First Index:' & firstIndex & 'Second Index:' & secondIndex & '<br>'); </cfscript> obviously this code doesn't work, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Identity From Multiple Inserts I think I already know the answer but... Given this statement: Insert Into Allergy (Name, Category, Composition) Select Name, Category, Composition From ETVault Where Strain In (6, 2, 4) Is it possible to get the identities that were inserted? I understand I can break this into multi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Float to Char Array to std::string I'm having a bit of a problem with this piece of code: string StringServices::ToStringf(float value) { char buffer[10]; sprintf (buffer, "%f", value); return (string) buffer; // signal SIGABRT } Its been working previously and continues to work for other calls, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Properties in c++ in a book i am reading to learn basic c++, there is this example: #include <iostream> using namespace std; class Point { private: // Data members (private) int x, y; public: // Member functions void set(int new_x, int new_y); int get_x(); int get_y(); }; void Point::set(i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex to get the text after first "space"? Here a string I need to parse using regex. http://carto1.wallonie.be/documents/terrils/fiche_terril.idc?TERRIL_id=1 Crachet 7/12 In fact this is an url followed by 1 space and a text. I need to extract url and the text in 2 separate ways. To extract the url \S+ is working...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the name of a property in c# Given this class: public class MyClass { public int MyProperty {get; set;} } How will I be able to extract the name of MyProperty in code? For example, I am able to get the name of the class like this typeof(MyClass).Name How can I do something similar for the property? The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: html/css: making map 100% height for any monitor So I have this map I am trying to configure so that it takes the height of any monitor it displays on: http://www6.luc.edu/test/cabplan/maps/index2.html All the CSS is in the file, I have tried height 100% (that erases it completely), I tried position absolute (that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Format with leading zeros in Erlang I would like to return the local time as string but with leading zeros. I tried this: {{Year, Month, Day}, {Hour, Minute, Second}} = erlang:localtime(). DateAsString = io_lib:format("~2.10.0B~2.10.0B~4.10.0B~2.10.0B~2.10.0B~2.10.0B", [Month, Day, Year, Hour, Minute, Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: File not found - Google Safe Browsing Lookup API I try to make a browser call to https://sb-ssl.google.com/safebrowsing/api/lookup? With and without the API key, etc, but each time and no matter what I do, I get: File not found Firefox can't find the file at https://sb-ssl.google.com/safebrowsing/api/lookup?. Check...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I troubleshoot a WCF service with failing load tests? I have a WCF 4 service running on IIS 7 (Windows Server 2008), deployed to a development server. The service works when I run a small website that consumes the service (click a button, the page calls the service, data is returned. It's very basic). I also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Domain Name is not sticking on application summary I added a like button to my site pages. It seems to work, but the debugger is giving me errors. When I try out the URL in the Object Debugger it gives the error below: Object Base Domain Not Allowed Object at URL 'http://www.gdiy.com/projects/visiting-paris/index...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Backbone: Correct way of passing 'this' reference to anon functions in success/error callbacks Given the backbone view function below, what is the correct way of passing this (i.e. the current view) to the anonymous function defined in the callbacks? addSomething: function(e) { var newSomething= this.model.somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: isAnnotationPresent() return false when used with super type reference in Java I m trying to get the annotation details from super type reference variable using reflection, to make the method accept all sub types. But isAnnotationPresent() returning false. Same with other annotation related methods. If used on the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Lazy-loading properties not loading in Doctrine 2.0 I'm using PHP and Doctrine 2.0. All entities work fine, with the exception of the entity-relation detailed below (or other entities are failing where I'm not noticing it). Consider the following entities: /** @Entity */ class Target { /** * @ManyToOne(targetE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Git Bash gets stuck on diff / log, spontaneously repeats same command over and over I'm having an odd problem with Git Bash on Windows 7 / XP. It used to work fine, but recently I find that after I perform a git diff or git log, Git Bash becomes unusable: following the diff/log, even after I return to the command pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Nivo Slider not working as it should in WebKit (chrome and safari) I'm using Nivo Slider on http://tinyurl.com/5wtrau2 and I am unable to get the slideshow to operate correctly in Webkit, Chrome or Safari(mac). The slider transitions by making the current image a background image of the container and then randomly f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Send empty packets to not timeout the connection Real world problem: I'm generating a page dinamically. This page is an xml which is retrieved by the user (curl, file_get_contents or whatever can by made server side scripting). Once the user make the request, he start waiting and I start retrieving a large set of da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: enumdisplayDevices returns multiple instances for one display card Hi I am using the following code fragment to get number of display adapters in my windows 7 system. I have a NVidia GT 120 which is connected to my monitor, and a NVidia Quadro 4000 which is acting as my GPU processor. Because both display adapters ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I test error pages in rails development environment? I want to design my 404 page in my Rails 3.0.7 app. If I request a non existing page I get the development output Routing Error No route matches "/foo" I tried the following answers in: How to test 500.html in rails development env? application_c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: UIImage imageNamed extension I recently discovered a pretty big performance issue in my app that was due to an image not being found in [UIImage imagenamed:]. I was wondering if there is a "drop-in" solution to have this kind of 'errors' logged in some way? I started writing an extension to the UIImage class, someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to allow a third party to update information within an Application At the moment i am beginning to create an android and iPhone application for a third party. When the application is finished the third party would like to update information within the application like a news feed or new content. What would be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query to update rows and then create a table if it does not exist I have two different things to happen at once.., basically I need to insert two new records in a table if they are not already there... and for sure they will always have the same ID and Name (i did this) but then immediately after that i need to chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Active Record accepts nested attributes for I'm having trouble getting this to work. I want to use nested attributes in a form, but before I do that I need to be able to build a person (administrator) from event, like so: @event = Event.new @event.administrator.build #=> undefined method 'build' for nil:NilClass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NullPointerException when trying to set a double array in java This is the relevant code I think class Sudoku { int[][] grid; void generateSudokuFromInput() { grid = new int[][] <--- java.lang.NullPointerException at Sudoku.generateSudokuFromInput(Sudoku.java:309) { (...) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JTable Sorting and Filtering I am creating a program that filters the contents of a JTable using two columns. I have used a RowSorter and everything works fine - at least according to what I can see (the view). Each row on the table can be double clicked to open a dialog. This dialog allows you to edit information o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why am i getting _Lambda$__2 as the method name using reflection I am using reflection to get the name of a function. Everything was fine and now instead of getting the function name (e.g. SendEmail) i am getting Lambda$_2 as the function name. Nothing seems to have changed in the code that would have changed this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataBinding: Does not contain a property with then name '(columnName)' I just finished one thing to come up with yet another problem with databinding. I just implemented a select statement that joins 2 tables so on my asp page I can look at a column in the 2nd table and see if there is or is not an integration being...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Objectify and email as @Id I am not sure if I use the @Id in objectify the right way. Right now I am using the eMail-Address as @Id field. The email field will be set on the server-side only (OAuthService.getCurrentUser.getEmail) First question: Is this a good idea? If I create for example an Item-class which has Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net mvc3 keeping related models together? I'm trying to expand beyond the "one-to-one" mapping of models to controllers to views that most mvc(3) tutorials offer. I have models for a person (operator) and the person's picture. In the database they would correspond to Operator and OperatorPicture tables. public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading assets doesn't work right after turning on device, but works after. What's going on? My application loads and plays a video as an asset through the Media Player class. But I've noticed that whenever I turn off my device (a Samsung Galaxy Tab), turn it back on and run the application the video doesn't load. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GtkStatusIcon drawing issue i'm using gtk+-2.0 in C. and i have to write a digit upon my tray icon. i do it such way: static GdkPixbuf * transform_pixbuf(GdkPixbuf *pixbuf) { cairo_t *cr; int width = gdk_pixbuf_get_width(pixbuf); int height = gdk_pixbuf_get_height(pixbuf); GdkPixmap *pixmap = gdk_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error on Gaussian blur with convolution method in openCV2.3 i write use openCV api to create a Gaussian kernel and then pass it to the Conv2ByDFT function to do the convolution. But the program crash and i don't know why. Here is the code. void Conv2ByFFT(const Mat& f,const Mat& g,Mat& result) { result.create(abs(f....
{ "language": "en", "url": "https://stackoverflow.com/questions/7599085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't access the checkout/onepage/ in magento 1.5.0.1? Can anybody help with this , I have cloned a production site to my local server for development and testing which seems to be working ok. I have created some new app/skin packages and applied and tested them. But the checkout links are not working either from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the pitfalls of adding properties to a function object within the function? I found I could use this technique to retain a sort of "state" within an event handler, w/o having to involve outside variables... I find this technique to be very clever in leveraging the fact that functions are actually objects in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ABPeoplePickerNavigationController in Tabbar based application I have requirement as following like showing ABPeoplePickerNavigationController in tabbar based application. I researched a lot on net and found no helpful answer but one here, to implement code as follows will help to get ABPeoplePickerNavigationControl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to design a simple keyword content delivery mechanism that functions like Adwords I'm have application that allows users to store food diary entries of approximately 140 characters in length. I am looking for a solution that will allow me to tie content modules (think tips for healthy eating) to the user's diar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Documentation generated by Yard and spanish accents I'm generating documentation with Yard, and all my comments have been written in Spanish. The problem is that the documentation generated by Yard contains � instead of Spanish accents. I've used "yardoc" command. I'm using ruby 1.8.7 (2011-02-18 patchlevel 334) [i3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to parse XML by SAX and Create Tree list? I have learned a tutorial about SAX parser of java and now I need to create tree list of XML file like this: <course> <chapter> <title>chapter one of course one</title> <content> .... </content> </chapter> <chapter> <title>cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use the wpf dispatcher to create a multi UI thread winforms app The second answer by Martin in this link explains how the dispatcher can be used in a winforms app. This link explains the wpf side. So my question is - can we do this in a winforms app ? If not, why ? thank you UPDATE: I have found this link als...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using ticks to measure absolute time I need to way to get a very precise measurement of current time. The tick value seems to be perfect for this, but the most common way to get it (DateTime.Now) seems to have a fairly loose tolerance (approx ~16ms from what I can tell). There are examples out there that use the Sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filter duplicates from mysql result depending on column value I'm having some problems working out how to return the desired rows from the following mysql table: first_name last_name collection ========================================== Bob Jones 1 Ted Jones ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About DatePart in Date functions I couldn't understand the difference between SELECT DATEDIFF(D,'07/09/1978',GETDATE()) SELECT DATEDIFF(DD,'07/09/1978',GETDATE()) Both are giving the same value. Then what is the difference between D, and DD? I have the same question for * *M, MM *Q, QQ *YY, YYYY Can anybody p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I always keep some static Markers in Android Map? I'm a newbie into Android programming... Here's what I'm trying to do for a small academic project: * *A google map displayed on screen: Done *Get user's current location and show on the map: Done *We've a list of Latitudes and Longitudes coming from a webse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change header at Included JSP with Spring MVC It is very interesting for me but I have simple Spring MVC application and JSP page. At Jsp pages which are included I would like to add a cookie to my application. However despite of setting it, It could not resolved at runtime. this is the code at my included jsp page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing hash table with both key and index-based access in O(1) There is a data structure called NameObjectCollectionBase in .NET which I'm trying to understand. Basically, it allows to enter arbitrary string => object key/value-pairs with both the possibility of the key and the value being null. A key may be u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Testing if rows of a matrix or data frame are sorted in R What is an efficient way to test if rows in a matrix are sorted? [Update: see Aaron's Rcpp answer - straightforward & very fast.] I am porting some code that uses issorted(,'rows') from Matlab. As it seems that is.unsorted does not extend beyond vectors, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: deploy java jar remotely during maven build I have a small maven project that build a java jar file. I added a plugin (maven-antrun-plugin) in order to start it during maven's build phase. This also works in the build server (Continuum) which is good. Now I would also like to copy the artifact jar to another server....
{ "language": "en", "url": "https://stackoverflow.com/questions/7599157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you use Google Analytics with an intranet? Can you use Google Analytics with an intranet? I'm using Liferay as my intranet. When setting up GA, you need to specify the Default URL starting with . What would I specify in there if my intranet can be accessed by http://cs22web or by ip address? A: A quick google o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When and why should I clean the build in XCode Every once in awhile, the solution to an aggravating problem in XCode is to hit Product → Clean, and this seems to clear some cache and problems disappear. But what is it actually doing? And more importantly, WHEN should I be doing this? It seems to be necessary more o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can MSBuild exclude "Hidden" Web Deploy parameters from the generated SetParameters.xml? In my Parameters.xml file, I have a couple of parameters that use the Web Deploy "variable" syntax to refer to other parameters, like this one that refers to the IIS Web Application Name parameter: <parameter name="MyParam" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flipped NSView mouse coordinates I have a subclass of NSView that re-implements a number of the mouse event functions. For instance in mouseDown to get the point from the NSEvent I use: NSEvent *theEvent; // <- argument to function NSPoint p = [theEvent locationInWindow]; p = [self convertPoint:p fromView:nil]; Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you include a class from /lib into your code in app/controllers I have a class sitting in /lib folder. It's in a file called mailing.rb And I would like to use this class in codes from app/controller. How do i do this? A: I believe you need to add an initializer file with the require statement in it, for ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iPhone - How to save each view controller? When my app's “applicationWillTerminate” function is called in the app’s delegate file I need to loop through each child controller of a tab controller and save the current state it is in. Is it possible to loop through each viewController calling a custom save function? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Format mask a currency amount in Oracle ApEx I have a cost field in my Oracle ApEx form where the user may enter an $ amount of say 10000.00 or more or even less. My question is, how to format mask and validate this value within my ApEx form? A: Don't you just need the settings of the item? For example, when you cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Express & Jade, templates adding code to the layout I'm playing around with an Express site with Node.JS I have a layout file which, let's say, looks like this: html title foo body!= body From what I have been able to understand, the output of the template is inserted into a variable called body and that's adde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cell editor not exiting when row is deleted I have a JTable with a several columns, one of which is has a custom renderer to display 3 buttons in a JPanel as well as a custom editor to allow them to be clickable. One of the buttons sends a delete command to our server for that row id then reloads the table data fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assign .vcproj files to Visual Studio 2008, when Visual Studio 2010 installed I have encountered a strange error. I use Windows 7 x64. Visual Studio 2010 (VS10) and Visual Studio 2008 (VS08) are both installed. Now i want to make sure that when i doubleclick open a .vcproj file it is being opened by VS8 and not VS10...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Page must refresh after seconds set in php variable I've been through the forum and tried this post (http://stackoverflow.com/questions/7128417/stop-javascript-auto-refresh-after-fix-time-for-example-1-min). I'm busy with a testing site. Different tests has different time limits, eg test A = 3600 and test B = 2400 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: shift bits from a byte into an (array) I solved the problem but dont know how to post it in a good manner, so I edit this post and put the solution in the end of it. Need help with following in C, trying to shift a bytes bits to reverse order. I want Step1[] = {1,0,0,1,0,0,0,0}; to become {0,0,0,0,1,0,0,1}. void St...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to send Javascript/jQuery array over URL paramter to PHP? Here's my script, this works fine... send_array_to_other_page.html $(function(){ //DECLARE ARRAY var arr = new Array(); var i = 0; $('#form').submit(function(e){ e.preventDefault(); var value = $('#box').val(); var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cancel a keypressed event throught handler function (addEventListener function) I would like to create a test function which change the '.' charachter into ',' character in a text box. I cannot change the server side since it is google doc. '56.3' is considered as a number but '56,3' is (!). Let's say that I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Count Hyperlinks of a Website Possible Duplicate: How to parse HTML with PHP? i want to write a php-program that count all hyperlinks of a website, the user can enter. how to do this? is there a libary or something which i can parse and analyze the html about the hyperlinks? thanks for your help A: Like this <?p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't understand what this code do Can anyone help me with explanation what this line do (UserList *) malloc(sizeof(UserList)); I'm new to C world. What I understand is that allocate memory for Userlist type. If so why definition is not just Userlist malloc(sizeof(UserList)) ? A: What this code is doing is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: DSPACK example for converting audio sample rate on the fly? I am using DSPACK with Delphi 6 Pro. I am looking for a good sample that shows how to create a filter graph that will convert the sample rate of an audio stream to a desired format (sample rate, bit depth, and number of channels) in real time. Does anyone k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to disable all other rows EXCEPT in EDIT mode Possible Duplicate: Disable the Edit button on all the rows when Edit button is clicked on a particular row in GridView how to disable all other rows except the one in EDIT mode? i am trying to find a way to disable all other row while i am in edit mode of course ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting Hyper-V snapshot's name programmatically I'm creating an Hyper-V snapshot with a C# program: private static bool Snapshot(string vmName, string snapshotName) { var result = false; var scope = new ManagementScope(@"root\virtualization", null); var virtualSystemService = Utility...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unknown character ı̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̨̨̨̨̨̨̨̨ This is a bit a silly question, but I stumbled upon this strange "character" today ı̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̸̨̨̨̨̨̨̨̨ Try to copy it in a text editor, you will see that you have to press backspace several times in order to erase it => I suppose there are actually several carac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: listview item text allignment I have a list layout with 9patch .png used for each item - I have a small text allignment issue as in the attached pic. Any ideas how to solve it? Here is the first entry layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }