text
stringlengths
8
267k
meta
dict
Q: Android Library integration to Eclipse Alright, this is probably a pretty dumb question but I'm not sure how to go about doing it. I am trying to integrate the Android Billing Library from Github https://github.com/robotmedia/AndroidBillingLibrary The only instructions in the readme are: Add this library to your pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Partial xml response from web service via ksoap2 I'm new in both Android and Java (use to develop in C# before) and I'm quite desperate on this. I'm using ksoap2 to contact a .NET Web Service to get xml data. My code is simple and it works well if the xml is small: soapEnvelope.setOutputSoapObject(request); SoapPrim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS App crashes on phone, works flawlessly in iPhone simulator What is the best way to debug that? It just "crashes" on the phone, no message, nothing. Simulator is doing just fine. Happens on only one of the UIViewController's, not sure why... A: I suggest you to add NSZombieEnabled and set it to YES in your envio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pdf security with flash script, possible? My friend asked whether it's possible to set time limits on pdf files, so a pdf can't be opened after a date. I searched and found some software that can make this but they cost $$$$. As far as i know swf can be embedded into pdf.(i am .net programmer so i am not a flash, pd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# shift operator overload is there a reason for the type of the second operand must be int? ... // I would like to do this public static StringList operator<<(StringList list, string s) { list.Add(s); return list; } // but only int is supported... ... EDIT: Just for sure... I can overload operator* for get (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Theme Dialog Layout and XML Strings I have a layout, main.xml. When you click the button describeButton, it opens a new theme.dialog layout called checklist.xml. On checklist.xml, users are given a series of check boxes they can use to describe a picture. After they check as many check boxes as they please,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: anchors are not working in mootools Sortables I have created a table using mootools sortables to implement drag and drop functionality. Inside my table some of the columns has hyperlink and textboxes.When I click on hyperlink/input box it always calls Sortable's callback like onComplete. How do I make hyperlink/inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use the data in the selected rows in GridView and show that list on another page? I am writing a web site in Visual Studio, something like an on-line library. I have a GridView on the first page that presents all of the books available from the data source and some other properties also contained in the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create DOM element with jQuery I have a function $(document).ready(function () { $("#btnhighlight").click(function () { var htext = $("#txthighlighttext").val(); $("#lstCodelist option").each(function () { var sp = $(this).text(); var sp1 = sp....
{ "language": "en", "url": "https://stackoverflow.com/questions/7586896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do CGI and mod_perl play nicely together? I've got an apache web server (without mod_perl) that's been running just fine for a long time. It has been suggested that we use mod_perl to improve the performance of some scripts. I want to go ahead and install mod_perl on the server, which seems to be a relatively straig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: facebook fb.ui apprequests with skip option? I am trying to use the Dialog for "Invite Friends" via Javascript SDK: function sendRequestToManyRecipients() { FB.ui({method: 'apprequests', message: 'My Great Request', }, requestCallback); } from https://developers.facebook.com/docs/reference...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to save binary file on client in jquery .post I have handler with this code: HttpRequest request = context.Request; HttpResponse response = context.Response; if (request["Type"] != null) { try { string resultFile = null; string fileName = string.Empty; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Twig: access current template variable from within macro without passing? Is it possible to access the current template's variables from within a macro without passing the variable to the macro directly? Thanks. A: It's possible to pass all context variables to a macro: {{ macro(_context) }} _context is a spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to fix url with htacces I have a url which initially http://web.com/index.php/home/funct/ and I want to change this by removing the index.php so that it becomes http://web.com/home/funct/ A: If you are using Apache server, create a file called .htaccess and put this in it: <IfModule mod_rewrite.c> RewriteEn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Batch Scripting: Running python script on all directories in a folder I have a python script called script.py which I would like to run on all of the directories inside of a specific directory. What is the easiest way to do this using batch scripting? My assumption is some usage of the FOR command, but I can't quit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL - Update multiple fields per row from the same lookup table without multiple joins I have a temp table similar to this create table #temp ( log_id int, ...some other fields, one_user_id int, two_user_id int, three_user_id int, four_user_id int, one_username varchar(50), two_userna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is int safe to read from multiple threads? I have multiple threads reading same int variable. and one thread is writing the value. I don't care about the race condition. only my concern is writing and reading int value at same time is memory safe ? and it will not result in any application crash . A: Yes, that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Attach to executable with Visual Studio debugger What I'd really like to do is debug an executable using the Visual Studio debugger. It comes with an Attach to Process feature. Unfortunately, the target executable only lasts for a short period- much too short for me to launch the executable and then navigate through...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to format a textbox as currency using code behind I have a textbox on a WPF Window (form) that is NOT "bound" using Databinding. I am looking for a way to format the textbox as Currency using code. Is that possible? A: Without any further detail: var myNumber = 45.78d; MyTextBox.Text = myNumber.ToSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding the WMI object path format I want to write a class with similar funcionality as the .NET ManagementPath class. On MSDN is a set of articles which handles the format of object paths. However, I don't understand it yet with all special cases * *String comparisons that deal with object paths are always...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MKMapViewDelegate derived class and delegate assignment This is probably more of an objective-c question over iOS but I've seen some example code similar to the following that I'd like to better understand. @interface MyMapView : MKMapView <MKMapViewDelegate> { // ivars specific to derived class } @property(nonatom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Freely transforming an image to correct perspective C# newbie here so please forgive me if my terminology isn't quite correct. As part of this project, I have a user hold up a piece of paper to a webcam so I can capture, isolate and then eventually display back what they've drawn on it. I've put some restrictions on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL or LINQ for this functionality? I'm writing an SQL script to update the database of a deployed application (add a few tables and copy/update some data) to accommodate new functionality being added to the application (.NET using C#). I've written some code in the application to handle such updates (whenever a new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'dynamic'-like java annotations? I have a pojo that is dependent on annotations. It has predefined fields as well as a Set that contains user provided fields: public class MyPOJO implements Document { private String id; private LocalString name; private LocalString desc; private List<Field> fields; publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - Picture doesn't show until end of loop? In Java, I have successfully displayed an image on the screen. Now I want to make it move by running it through a for loop. The for loop runs 10 times and sleeps for 1 second each time. Instead of moving the image every second as expected, I have to wait 10 seconds, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Measuring WCF network traffic I have a VS2010 solution with a Silverlight frontend and a WCF service as backend. I want to measure the WCF communication network traffic. Is there a tool for this? I want to know the number of network packages and network package sizes. I only want to measure the WCF communication pac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: strstr faster than algorithms? I have a file that's 21056 bytes. I've written a program in C that reads the entire file into a buffer, and then uses multiple search algorithms to search the file for a token that's 82 chars. I've used all the implementations of the algorithms from the “Exact String Matching Algorithm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Hibernate Proxy Inheritance Issue I am using the inheritance strategy table per concrete class and today I faced something very strange. I still don't know the reason for that problem but let me explain what it is... I have the following classes: @Entity @Table(name="...") @Inheritance(strategy=InheritanceType.JOINE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Extreme low-priority SELECT query in MySQL Is it possible to issue an (expensive, but low-priority) SELECT query to mySQL in such a way that if an UPDATE query appears in the queue, mySQL will immediately terminate the query, and re-append it to the end of the queue? If re-appending to the queue is not possible, I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: read variables from wp-config.php I'm busy writing a basic migration scripts for some WP sites, and i'm trying to automate creating mysql database and user credentials from reading the wp-config file how can i read the following variables from the wp-config file so that i effectively end up with 3 variables within a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Quadratic programming solver that guarantees a boundary point? I have a problem that I have expressed as the minimization of a convex quadratic program with linear constraints. The problem is that I want to disallow any point that is strictly interior (i.e. I only find the answer useful if it is on a vertex of the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setup for high volume of database writing I am researching a project that would require hundreds of database writes per a minute. I have never dealt with this level of data writes before and I am looking for good scalable techniques and technologies. I am a comfortable python developer with experience in django and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7586999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get enum value names from int column in SQL Server database for a .NET class I am trying to query an int column which represents an enum in a .NET class. I want the result of the query to be the name of the int value. Please keep in mind that I am not trying to do this through .NET code, just working with pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JTable doesn't add header row I try to add header row to my JTable and next put table on panel. This is my sample code : Map <String, Float> tmpCart = new HashMap<String , Float>(); MainPanel.removeAll(); MainPanel.repaint(); tmpCart = cart.GetMap(); DefaultTableModel tab = new DefaultTableMode...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to get a gif in a pdfpcell to line up with trailing text I am using iTextSharp to create a .pdf. I've got a table and in the table, I need to populate two checkboxes based on data. My code looks like this. dv is the dataview containing the data, and chkchecked and chkunchecked are gifs of a checked box and unch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automated .NET tool to check for thread safety? Is there any automated tool to check C# .NET code for thread safety? p.s. It doesn't have to be perfect, but it should check for the obvious things that can be checked at compile time. A: The only thing I've seen is TypeMock's racer. It isn't compile time, but it ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kindle Fire minSdkVersion? What is the minimum minSdkVersion to support the new Kindle Fire tablet? I've heard conflicting reports that Amazon's android is based on 2.1 (api level 7) and 2.2 (api level 8). A: Amazon has posted some info. The answer is 2.3.4 (api level 10). I, for one, am glad I don't have to go bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Different 'development' environments for different developers We have three environments: development, staging, and production. In our configuration variables for development, we set our database to connect to 127.0.0.1 with a set username or password. However, other developers part of our team have different userna...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Mapping of composite key with both elements as foreign key I have a simple Spring-Hibernate application. I have 3 classes crop, market and farmer with structure something like : class crop { private int cropId; } class market { private int marketId; } class farmer { private Crop cro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create ProgressDialog without obscuring the background window I've got a little problem. When I use the showDialog() method of my Activity, it generates a perfect ProgressDialog, but the activity on the background (as the dafault behaviour) and becomes darker. How can I avoid the darkening of my activity? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finite Metric Embeddings: Good Algorithm? I have a finite metric space given as a (symmetric) k by k distance matrix. I would like an algorithm to (approximately) isometrically embed this in euclidean space R^(k-1). While it is not always possible to do exactly by solving the system of equations given by the dista...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: IIS 7 w/ MVC 3 Permissions Issue I currently am in the process of deploying a MVC 3 Web App to an IIS 7 server. When I work on the web app from visual studio and deploy through development server, the web app has no problem using a custom .dll that interacts with a local server. However, when I deploy onto IIS 7, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 Active Record - loading the parent object in a has_many :through relationship I have the following class structure for an app I'm porting from php to rails: class Menu < ActiveRecord::Base has_many :menu_headers has_many :menu_items, :through => :menu_headers end class MenuHeader < ActiveRecord::Base ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find most significant bit (MSB) I want to know which value the first bit of a byte has. For example: I have byte m = (byte) 0x8C; How could I know if the first bit is an 1 or a 0 ? Can anyone help me out ? A: Assuming you mean leftmost bit, bitwise and it with 0x80 and check if it is zero nor not: public bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get NSWindow from kCGWindowNumber From kCGWindowNumber, how do I get NSWindow ref. I tried using: [NSApp windowWithWindowNumber:windowNumber] but I always get a null value. I need to get the NSWindow to apply [window setlevel:NSFloatingWindowLevel], that I have set the always on top of a given window. Does anyone k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Font size mismatched between embedded Word object and text boxes I'm developing a new Report (actually a standardized letter) in an Access 2007 db. The majority of the text in this report is static and was provided to me in a Word doc. Because this text is relatively difficult to reproduce in an Access form, I dec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logging only insert, update and delete mysql queries I'm using a WAMP server with phpmyadmin and MySQL 5.0. I've been looking for a way to only log all insert, update and delete queries, to no avail though. I did manage to get it to auto generate logs adding the "log=C:\wamp\mysql\log\queries.log" line to the my.ini...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: svn merge not performing merge We're constantly running into an issue where the svn diff produces a diff with (for example) 5 changes, yet after the merge there are only 2 of the 5 changes in the affected file (yes, just a one-file commit). Usually when this happens when the diff changes are 50+ lines off. For examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When is it appropriate to set a request-scoped variable in a JSP? In my experience, it is rarely/never necessary to set scope="request" on an EL variable. For example, I have a page that, given an item parameter, constructs a URL specific to that item based on its properties. This page is included in any page that n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Making a dice in ruby language Im coding a dice in ruby in which when i rolled it, it would either come up north south east or west. what im having trouble with is when i roll it how do i tell it to return to me one of these directions? any help would be great. A: Use Array.sample: [ 'north', 'south', 'east', 'wes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Not displaying after quote mark After I run my script, the input field essentially looks like this: <input type="text" value="How do you " /> Even if I slash the quotes or change them to &quot; it still doesn't work. Any suggestions? $('input').html(function() { var dataVal = 'How do you "feel" about that?'; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Batch process photoshop layer with each saved layer having a specific filename I have a layer that is a 250x250px circle. I have an action set up to duplicate this circle layer and reduce the size by 99.2% (-2px). I now need to be able to save this layer as a png file with the filename specific to the dimension of e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Whether we can get WM_IME_* messages when we’re typing in WPF TextBox with IME? First, thanks for reading this thread and provide your suggestion. Here’s the detailed description of my question: Due to large scale of legacy code, we need to use Win32 messages. And for UI part, we need to use WPF to modernize our ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to iterate over unicode characters in C++? I know that to get a unicode character in C++ I can do: std::wstring str = L"\u4FF0"; However, what if I want to get all the characters in the range 4FF0 to 5FF0? Is it possible to dynamically build a unicode character? What I have in mind is something like this pseudo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do I need to overload methods accepting const lvalue reference for rvalue references explicitly? currently I’m playing around with rvalue reference (C++11, g++ with gnu++x0) and I want to implement move semantics in my classes, because it just feels „right“. Do I need to overload each function which normally would a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is this method of inter-thread-communication safe? I have 3 objects(inherited from QObject) that each contain a separate std::list. Each object gets created in the main gui thread (with no parent) and then is pushed to it's own thread (using Qt's QObject::moveToThread()). Each thread is hooked up to a gui and messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Gnu Emacs: tab-completion for psql running within sql.el process I enjoy running Postgres client "psql" under psql.el while interacting with a .sql file in a separate window. Sometimes, I want to use tab-completion within the the buffer running the psql process to find the name of an appropriate table name. Howeve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I check for the SQL Server Version using Powershell? What's the easiest way to check for the SQL Server Edition and Version using powershell? A: Just an option using the registry, I have found it can be quicker on some of my systems: $inst = (get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server')...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Non-dirty view gets redrawn I do have a strange problem. I programmed a a dockview. It's basically a NSView with three vertical subviews inside. So I have a left dock, a middle view and a right dock. Both docks are collapsable. The middle view gets resized while collapsing. I'm using CoreAnimation to animate the col...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you compare the time portion of a time string? I have in my preferences some strings that represent a start time and and ending time. I wrote this function to determine if the current time is within the start and ending time. The format of the date strings is "HH:mm". The function takes the strings that are f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: will_paginate dropping "sum" after first page I am using will_paginate which works like a charm for breaking up my results into many pages. But on any page but the first one, my 'sum' method returns 0. My view has two tables in it. The first is summary information over the entire collection and the second is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can JAXB marshal by containment at first then marshal by @XmlIDREF for subsequent references? I'm wondering if it's possible to annotate my classes so that the first time the marshaller encounters an object, it generates an XML element of the appropriate type, but any subsequent reference to this object by anything ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android tab bar view overlapping? My question is regarding android tab bar. I have created tab bar in a separate activity and on default first tab view, I am showing layout of an activity. Now when I use tab bar in any other activity, the activity's layout overlapped the tab bar view. Error in catlog is "couldn't sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Counting Total Time but resetting total if large gap I have a table containing device movements. MoveID DeviceID Start End I want to find out if there is a way to sum up the total movement days for each device to the present. However if there is a gap 6 weeks bewtween an end date and the next start date then t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: KnownType attribute on a property during model binding in MVC? Lets say I have the class Food and a class BirdFood that derives from Food: public class Food { ... } public class BirdFood : Food { public int SeedCount { get; set; } } And lets say I have a class Creature and a class Bird that derives from Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Routing Error in Rails 3 I'm upgrading my application running on Jruby 1.4 & rails 2.3 to Rails 3.1.0 and jruby 1.6. I followed the Rails 3 upgrade Handbook by Jeremy, and using the plugin rails_upgrade, but when I fire the server I'm getting errors. like Routing Error cannot load Java class com.mysentry.persistenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Python's DictReader class in the csv library? I'm getting to grips with my first Python project and have got pretty stumped trying to use Python's csv.DictReader class to consume a CSV file. Code is as follows: import os import csv f = open('MyCsvFile.txt', 'rb') d = csv.Sniffer().sniff(f.read(1024), ',...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook App Wall Posting no longer showing in Facebook iPhone App I use the GRAPH API with django for Facebook wall postings. Since yesterday, the wall posts only show on the Facebook web app but not the Facebook iPhone app. I tried Yelp, and their postings still show up. How can I debug this? Anyone notice thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Basic user-input string validation I have been writing a check in a name property of my person abstract class. The problem that i have is that i am trying to implement a piece of code that will not allow the user to leave the field empty or to exceed the name limit with 35characters or in-put a digit but i am stuck ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Get the total width of a string rendered with an arbitrary .ttf font in Java Graphics 2 Currently we attempt to get the width of a string rendered with an arbitrary font. BufferedImage img = new BufferedImage(10, 10, BufferedImage.TRANSLUCENT); img.createGraphics(); Graphics2D g = (Graphics2D) img.getGraphic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I Have A project developed using XCode on MAC OS,How Could I build it On Linux? I Have A project developed using XCode on MAC OS, for some special reason, I want copy entire project to the Linux operating system and go on developing on linux. How can I develop and build it on Linux? I am developing an I-Phone projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why might a full-text search not return short words even if ft_min_word_len has been lowered? In my MySQL configuration I've set ft_min_word_len = 2 and rebuilt the index with a quick repair. Is there anything else I need to do in order to be able to search for short (3 letter) words? EDIT: This query SELECT *,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Control.Invoke() in place of lock(Control) I am working on a multi-threaded application which needs to update a Winforms control as it progresses (A DataGridView). In order to prevent multiple access to the same shared resource, I started out with the following lock structure: if (DGV.Columns.Count >= DesiredC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET 4.5 Metro Application DependencyProperty I cant get DependencyProperty.Register to work. It requires (string, string, string, PropertyMetadata) instead of string, Type, Type, UIPropertyMeatdata)... I changed the UI-PropertyMetadata part but can't get string part of it to work. I tried typeof(T).ToString() an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get UIView to overlay UIScrollView as a footer I have a UIScrollView with an image that needs to be scalable. I want to have a "footer" with a black (opaque) background and white text. I wanted to have it be fixed as a footer. It will be opaque so you can see the image behind it. I created a containing UIView...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS - how to save hyperlinks in sqlite? How to save hyperlinks in sqlite. I tried saving it as a string but something like this has been saved in my column - HYPERLINK "HYPERLINKHYPERLINKwwwHYPERLINK.HYPERLINKyoutubeHYPERLINK.HYPERLINKcomHYPERLINK/HYPERLINKwatchHYPERLINK?HYPERLINKvHYPERLINK=HYPERLINKurHYPERLINK_HYPE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is this error message about implicitly deleted virtual destructors? I've just updated GCC from (I think) 4.5.6 to 4.6.1, under Windows, MinGW. Suddenly my NonInstantiable base class (from which you inherit with public virtual to prevent instantiation) refuses to work with the following and similar error message...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: IOS String issues. one works, one doesn't, what gives? from the .h NSString *_maplink; @property (nonatomic, retain) NSString *mapLink; in the .m this one is fine NSString *link = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,+%f&daddr=thatCity+thatState+515+north+state+street", latitude, longi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set a static variable that can be accessed by all subclasses of the same base class (Perl/Moose)? Since Perl/Moose always calls the base class' BUILD function before it calls the subclass BUILD function, there is a new instance of the base class everytime you instantiate a subclass. How do I go about creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MVC: Need to pass an list or array of strings from controller to view I need to populate an object in the script section of my mvc page, currently the object looks like this: <script> var disabledDays = ["9-30-2011","2-24-2010","2-27-2010","2-28-2010","3-3-2010","3-17-2010","4-2-2010","4-3-2010","4-4-2010","4-5-2010...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Appending text to a richTextBox in a different thread and code file With the intention of creating a program to interface with a serial port device, I recently started learning vb.net. To keep the structure neat the vb code has been split into two places; the first is the code behind for initialising, clicking butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java cannot find symbol error I have a simple file system, in which all the files being used by the main program are in the same folder. The main program is also in the same system. It was actually a jar file by my friend and then I unzipped it using winrar, the class files are running well, but only when i amended ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: delect NSTextField When I use [myNSTextField setStringValue:@"AAA"]; to set the text of a NSTextField the texts always have black background and look likes they have been selected. Is it possible to display the text with black text color and white background color? Welcome any comment A: Ask the text field to res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent directory listing and files for specific user I have a folder (/files) and I have tons of files there that users can download. I want users to be able to download their files only and no be able to see others people file. For example: User A can only view and download: - file1.doc - file2.jpg User B can on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: deployment issue in asp.net i'm working on asp.net web application project.Situation is that i want to deploy my project on hosting site but when i try to deploy using vs2010 it get me error saying access denied error 550. i want to know can i deploy on ftp server using package. actually when i unzip and copying all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selecting the next instance within a class in jQuery I have a table with alternating rows of course names and course descriptions. Here's some of the html (that I loop through): <tr> <td><a class="course_name_click" href='#'><%= course.name %></a></td> </tr> <tr class="course_descrip" height="200"> <td styl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HttpWebRequest.GetResponse failing continuously until program reset Occasionally on some machines, a web request will fail with the following message and continue to do so until the program is reset at which time it will start working again. Has anyone else experienced this and is there any programmatic way to preve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best player to stream WMV content - in 64 bits? I just realized that a client is using the JW WMV player to stream a .wmv broadcast. When I visit the page in Firefox it tells me I need to restart firefox in 32bit because the plugin is not available in 64 bits. So I guess the JW WMV player is built on silverlight, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the code I'm using to make .zip files correct? I'm using this code in C# to zip files.. I need to open these files in an Android app (java): String mp3Files = "E:\\"; int TrimLength = mp3Files.ToString().Length; byte[] obuffer; string outPath = mp3Files + "\\" + i + ".zip"; ZipOutputStream oZipStream = new ZipO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does my DLL leak when using it in an MFC SDI program using MFC as a DLL in Visual Studio 2010? This may be better directed to Microsoft support, but was wondering if anyone had any ideas as to why this is happening. I created a simple C++ DLL like the following: //simpledll.h class simpledll { public: __de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: EF 4.1 Update 1 Code First + ASP.NET Membership Provider I watched the “Creating immersive data experiences with Entity Framework “ video from this year’s BUILD conference and wanted to build out a simple application to test out the new features of EF. But, I’d also like to use the ASP.NET Membership Provider for ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: VB6 Converting Long to Integer throwing overflow I am trying to convert a long to an integer. I believe the value of the long is low enough to fit in the range on an integer. I have the code: 'mapdc is a long Debug.Print mapdc Debug.Print CInt(mapdc) The first line runs fine. It outputs 1107367444. The second line ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MS DOS command or Java code to Copy a file are directory from one drive to Multiple Drives? I need to copy a directory from one directory to multiple drives (the drives are external storage devices). After searching I found the MS DOS command xcopy C:\ F:\ /e. This command only copies a file to one drive at a time, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android accelerometer values inside Flash CS5 Hey am a newbie to Android development. I need an application to test the accelerometer values on my mobile phone. I need the values on my system so that I can manipulate that info for something else. If I write an Android application, the values will be inside the Mobi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML POST to Server from iPhone I have an XML that I need to send to another website using PHP. What would be the best way to do this on the iPhone? The XML needs to be formatted based on the selections of the user, then sent to a different server using PHP that is on my server. Any suggestions? A: Disclaimer: I kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Parse string as non-XML HTML5 without loading descendent-elements There are multiple versions of this question on SO, but none of them really get at the heart of what I'm trying to do. When JavaScript is enabled, the browser sees the contents of the noscript element as unparsed text. I'm using that element to provid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using a forward slash as a Scanner delimiter I'm trying to use a Scanner to get a date from the user in MM/DD/YYYY format and using a delimiter / to do so, but as soon as the user inputs data the application ceases to continue. It will work how ever if I simply use the standard space delimiter. Scanner scanner =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form and Request.Form in a asp.net MVC3 Facebook Application I'm working on a facebook app and facing a problem with my forms with MVC3 with Razor. A. Working form: index.cshtml @using (Html.BeginForm("Index", "Home", FormMethod.Post)) { @Html.TextBox("tbTest", "Pouet pouet", new { Width ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: base language for agency work Coldfusion vs php I have a promotion agency, we develop web pages, mobile web pages, sms messaging and other digital solutions for promotion campaigns that capture data and then provide reporting sites. struggling over whether best to use CF of PHP. With licensing fees off the table, i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fluent Nhibernate - Joining/reference table from two classes I have three classes: Class A { string name IList<AB> list } Class B { name } Class AB { A a B b } Class B exists separate from A. It exists in its own right, and of is part of similar lists in other classes This is why I have the reference table. Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }