text
stringlengths
8
267k
meta
dict
Q: Difference in testing for Enum Flags? Was looking at another question, and was curious if there's any difference at all (in operation or performance) between these two. Given: [Flags] enum TransportModes { None = 0, Bus = 1, Train = 2, Plane = 4 } And a variable var trip = TransportModes.Bus | Transport...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Register application to handle all file type - Android I am writing an android app for transferring files using Bluetooth. I am trying to register my application using following in the manifest but it seems it is only registered with images files only. My app does not show-up when I chose other file types from file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WIA via silverlight, duplex scanning I'm trying to scan an A3 page in duplex using my Xerox documate 752. I'm getting it to scan fine using the document feeder but only on side. How do I access the other image?? Here is my basic code: dynamic imageFile1; dynamic imageFile2; dynamic wiaDialog = AutomationFactory.Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle min and max columns query Alright, need some help created a query for an Oracle 10g DB. I have a table to looks like this: ---------------------------------------- | lowerBound | upperBound | locationId | ---------------------------------------- | 0 | 99 | 1 | -----------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Button Programmaticallly I have following structure in XML. <LinearLayout android:id="@+id/tagsTable" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="10dip" android:orientation="vertical"> <LinearLayout...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google style guide script or tool Is there a script or tool that changes a code's style to google style not completely at least partially (maybe just syntax formatting)? We are reusing some of our C++ legacy code which is not formatted by google style standards and even just formatting it syntactically would take a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Development general question I'm learning how to write Android apps and am having the same issues I've had with learning languages in general - data types are impossible to deal with! Why is it so hard to convert data from one type to another?? Why does everything use complex, custom data sets? The issue I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Get duplicates for two columns with LINQ LINQ drives me crazy. Why does following query not return the duplicates, whereas it works with only one identifier? Where is my error? ' generate some test-data ' Dim source As New DataTable source.Columns.Add(New DataColumn("RowNumber", GetType(Int32))) source.Columns.Add(N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problem creating Facebook application with heroku I am trying to create a canvas Facebook application. I have created Heroku application written in ruby via Facebook. Creating the application I followed the steps of these guides: http://devcenter.heroku.com/articles/facebook http://devcenter.heroku.com/articles/conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to specify width and height of a drawable item Hi is there anyway of providing width and height of a drawable defined in drawable.xml in drawable folder. Example: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to Fade content of a div? I am new to OPA. I can replace the content of the div using DOM.transform but I want to fade that content before replacing with new one. How do I do it? Basically, how do I use Dom.Effect? A code snippet will help. Thanks A: This snippet may help you: effect() = _ = Dom.transition(#con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Edit Image in Photoshop I need to send an image from my application, edit it in Photoshop and return it back. My application should wait until the Photoshop Document is closed. Any ideas please. A: Something like this.. MyProcess myProcess = new MyProcess(); myProcess.Start("photoshop.exe", "C:\\myImages\\image.jp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Search query doesn't work in solr/browse panel When I create a query like something&fl=content in solr/browse the "&" and "=" in URL converted to %26 and %3D and no result occurs. How can I solve this problem? Is it possible to change the request from the GET method to a POST?
{ "language": "en", "url": "https://stackoverflow.com/questions/7530923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Getting unique values from multidimensional array inside a multidimensional array I'm trying to get values from a multidimensional array inside a multidimensional array. Here is the multidimensional array... Array ( [0] => Array ( [CalID] => 121111 [Rink] => North ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Placing the x-axis labels between period ticks I would like to place the x-axis labels between the ticks. For example, by default R produces a graph that looks like this: (Note, I added axis(1,c(2001,2002,2003,2004,2005,2006,2007,2008,2009,2010)) to give the larger amount of label years, otherwise R only uses 2002 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: iOS - Notification of when a call is taking place? Is it possible to be notified or detect when a GSM/CDMA call is taking place on an iOS handset? I have an application that uses audio in the background and I want to be able to detect when a call is taking place so that my app can react accordingly so as not to intr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Exception being thrown from StaticPropertyWatcher.as Recently, I suddenly began getting the current exception being thrown from a Flex library. The file I was working on (Login.mxml) suddenly began throwing up this exception while loading. TypeError: Error #1009: Cannot access a property or method of a null object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When and who to detach observers when the observer has longer life span than the observable I encountered this problem using a third party library provided by a different group in the company (written in C++). In the destructor of Observer, it detaches itself from all observables it subscribes to, this part makes se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hide an element without masking item over top I've created an effect whereby an HTML element is initially hidden behind another HTML element, and the CSS 'top' value of the hidden element is animated to expose it from beneath the masking element in a smooth sliding motion. Does anyone know if there is a way to recre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generic trim function in java? i have a requirement, where i need to develop a single method which accepts any type of paramter(String or Integer etc) and applies trim() to remove leading and trialing spaces. please help me how to write generic method to achieve this? Thanks! A: Java has strictly defined types, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are CLR wrappers for dependency properties optional or not? I was under the impression that CLR wrappers for dependency properties were optional under WPF, and just useful for setting within your own code. However, I have created a UserControl without wrappers, but some XAML that uses it will not compile without the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: using SQL Server Compact Edition in ASP.NET websites I know next to nothing about databases, but need to store and present user input on my ASP.NET tiny website (up to several thousand records). Should I consider SQL Server Compact Edition? In Microsoft docs I found: SQL Server Compact 3.5 is not currently optimize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I put Powerpoint and Excel documents in a full text search index like Sphinx or PostgreSQL text search? I have a Rails application that accepts file uploads of arbitrary business documents such as from Word, Excel, Powerpoint, and PDF. I need to make all these documents searchable, preferably using Sphinx or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to unsubscribe the NServiceBus subscription? If I choose to use the auto subscription in NServiceBus pub sub model, the system does not auto unsubscribe when the client exists. I can always do a manual unsubscribe, but I having trouble figuring out the existing list of subscriptions and I don't want to hard code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JButton stays in pressed state In my Java GUI app I have a JButton and when clicked it calls a function to connect to a database, then calls a function to clear a table in the DB, then calls a function that reads text from one file and loads variables, which calls a function that reads text from another file, compar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Trigger a button click inside a jQuery UI Dialog it is a very simple question that I'm not finding an answer for it. I have a dialog and in some events happening inside the dialog I want to click one of the dialog buttons. The code which defines the dialog is: var dialog = $('<div>').dialog({ autoOpen: false, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: StatusStrip label formats my text backwards I've been having this problem for a few days. Whenever I update a label in a StatusStrip object it formats my text backwards. I send my label something like toolStripVoltage.Text = batteryVoltage.ToString("F2") + " V"; and the label will display V 2.82. and when I send i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP MVC 3 - How to define a dynamic value to the base of url? I would like to "show" a dynamic value to the base of the URL, so the url would be like this: host.com/SOME_VALUE/{area}/{controller}/{action}. So, if a url without the first value (the dynamic value) is requested: host.com/{area}/{controller}/{action} th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery ".triggerHandler()" vs. ".trigger()" when multiple elements are selected The jQuery ".triggerHandler()" mechanism, unlike ".trigger()", only operates on the first element referenced by the jQuery object for which it's called. In other words, $('.all-over-the-page').triggerHandler("readjust"); will only call...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: JSON Encode and curly quotes I've run into an interesting behavior in the native PHP 5 implementation of json_encode(). Apparently when serializing an object to a json string, the encoder will null out any properties that are strings containing "curly" quotes, the kind that would potentially be copy-pasted out of M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python IRC bot with support for plugins and not command only I have just made a script in Python which will connect to my MySQL database every XX second and check for new posts on my forum. If there are any new posts, I would like to have the user's of my IRC channel notified. To do this I need to hook up my script ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: function MySQL does not exist I'm creating my first function, with the following code: CREATE FUNCTION CTRLPRODUCAO.COMPARATOTAIS (AG INT, P INT, ANO INT) RETURNS BOOLEAN DETERMINISTIC BEGIN (...) END When I run the command, received the return of the Workbench: "0 row (s) affected". Is it ok? When I run S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: facebook Graph API post to wall doesn't accept new line I am developing a small application for facebook. In my application I post content to a fan page's wall. When the user enters a new line character the post completely ignores it. How can I solve this? A: IF you send the following text hello%0Aline+2 The posted...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript access to hardware? I work for a company that has web and mobile apps. They are going to implement some changes to get a device ID from mobile AND web browser based system. Looks like Javascript has some ability to get hardware info like motherboard serial number etc. I was a bit shocked by this since ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fast way to generate concatenated strings in Oracle Don't we hate when evil coding comes back to haunt? Some time ago I needed to generate a string concatenating some fields for some more processing later. I thought it would be a good idea to do if straight in the query, and used SO's help to get it. It worked. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: rails 3 and PDFkit I'm trying to follow this tutorial. When I'm adding .pdf to my url it does nothing. My controller has: respond_to :html, :pdf. My mime type has been declared. I tried this too: respond_to do |format| format.html format.pdf { html = render_to_string(:layout => false , :action => "www.googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Checkbox Changed Event not firing for dynamically added control I have created a 3 checkboxes in my jQuery accordion control dynamically in the page load event and I am also associating the CheckedChanged Event for the textbox. But the event is not firing at all. I am not sure what is happening here. Please help me....
{ "language": "en", "url": "https://stackoverflow.com/questions/7531006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: max no of columns in infobright We store billions of rows in an infobright table which currently has about 45 columns. We want to add 50 more columns to it. Will adding these columns bring down the performance of reads? Is creating a new table for these columns a better option? Or, since infobright is a column o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grails / GORM criteria query with hasmany String I have a domain object (Cat) like this: class Cat { String name static hasMany = [ nicknames: String ] } (A cat has a name, and also has many nicknames (which are Strings)) And I am trying to query all the cats with certain nicknames. I've tried this:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: JPA\Hibernate database restart problem After database restart EntityManagerFactory's connection become invalid(persistence exception : broken pipe ) .I try to set properties on persistence.xml to solve problem but it is not worked.How can i handle this case .I am using jpa 2 with hibernate (c3p0 as connection prov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint and SQL driven ComboBox Is there a comboxBox web part out the box in SharePoint 2010 that can be loaded from a SQL table and then be used to pass and parameter to a intergrated Reporting Service report?
{ "language": "en", "url": "https://stackoverflow.com/questions/7531021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WINDBG: Display dump file capture flags This is a very quick question. I searched and can't seem to find the windbg command that would show what options exist in a minidump file. Additionally, I would like to get back the equivalent argument to the .dump command that would generate the same type of minidump, for exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are Facebook SDK and Android Facebook app linked? I'm just starting to use Facebook SDK for Android and I'm wondering if there is a way to link it to the actual Facebook android app itself. What I mean is when I'm logged in in Facebook official app, I would like Facebook.isSessionValid() to return true and not get i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: the user data image is used by another emulator. aborting i am creating an simple application and run this application , its work perfectly but when close my application on emulator and run another time its give me an error like this , [2011-09-23 20:17:57 - DatabaseApplication] Android Launch! [2011-09-23 20:17:57 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can Guice annotated injections be converted to Spring dependency injection I set up this binding with Guice bindConstant().annotatedWith( SecurityCookie.class ).to("JSESSIONID"); I need to migrate to Spring. What would be the equivalent code with Spring ? A: Use FieldRetrievingFactoryBean.
{ "language": "en", "url": "https://stackoverflow.com/questions/7531031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: libmagick equivalent of TIFFReadRGBAImage High. I was trying to find a well written API documentation for libmagick[++] to get a raster memory block for RGB[A] image data. Something equivalent to this guide or at least well documented classes, methods and properties. Can anyone point me in the right direction? Thank...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parametrizing string in .NET C# How to replace a method signature to accept parameterized strings without using param keywords. I have seen this functionality in Console.WriteLine(). e.g. public void LogErrors(string message, params string[] parameters) { } Scenario: I have an error login function called LogErro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: htaccess redirect to another site on certain file extensions I want to redirect to another site (storage), if client requests *.pdf or *.cdr files. The problem is that, with the below htaccess, cdr downloading works, but not pdf. If a change the rule order (cdr first, pdf second), then the pdf works, but not the cdr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Moving from a Mac to Ubuntu for Rails development, what are the ramifications? Are there any gotchas or things to watch out for if I move from a Mac to a Ubuntu environment? Any major configuration issues? Or should things work pretty much the same once I figure out how to install things? (seems installation is eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ Win32 Radio button background color So first i'm using the windows API, no special libraries. I've created a radio button with this code: g_hRadioButton = CreateWindowEx(0, "BUTTON", "Radio Button", WS_CHILD | WS_VISIBLE | BS_RADIOBUTTON, 10, 55, 120, 25, hWnd, (HMENU)RADIOBUTTON, GetModuleHandle(NULL), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does ActiveRecord's find method automatically call to_i on its argument? I've come to the conclusion that ActiveRecord automatically calls to_i on its argument, but would appreciate if anybody can confirm, particularly through a reference to some documentation. The way I came to the conclusion is best illustrated wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Contacts read only (OAuth 2.0) We're using OAuth 2.0 to access Gmail Contacts. Do you know if it is possible to request access (scope) in such a way that the authorization pop-up indicates that we need read only access. Right now the pop say says "Manage your contacts" - view and manage your Google Contacts....
{ "language": "en", "url": "https://stackoverflow.com/questions/7531066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: strstr: behavior different using different versions of gcc I'm porting a program that works with Ubuntu 8.04 (gcc version 4.2.4) to 10.04 (gcc version 4.4.3). I have the following code: #include <stdio.h> #include <string.h> int main(void) { char p[100] = "////abcd"; char *t; /* Remove duplicate slashes, sav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Magento Blank Screen on Checkout & Cart with Compiler Enabled When I run the Magento Compiler process it completes fine and then it's enabled. Everything is fine on the frontend until I add something to the basket, it goes to a white/blank screen, same for the basket page and checkout page. I've tried uncommenting t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone openGL ES 2.0 texturing - setting up multiple textures for fragment shader I'm nervous to ask this, because I've seen several posts alluding to the answer, but none have worked for me. Apologies if this is repetitive. I'm trying to access more than one texture (2 at the moment) in my fragment shader on iPhone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select drop down from associated model I have a model InstrumentFunding (id,title) that belongsTo InstrumentFundingGroup (id,title) In the backend when I add/edit the InstrumentFunding I want a select dropdown to select the InstrumentFundingGroup I tried using $form->input('InstrumentFundingGroup',array('type' => 's...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: performance issue on submitting a form I have got a form in html that validates the user input. The problem is it takes a lot of time even on localhost to jump to the 'action' page. Heres the code <form action="Activity.php" method="GET" > <div style="display:none"> <input type="text" id="chapter" name="chapter"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I change the number of decimal places iOS? I have a simple calculator app and I want it to be so that if the answer requires no decimal places, there are none, just whole numbers. If the answer was 2, I don't want it to say 2.000000, it should say 2. If it requires one decimal place, it should show to one dec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I unit test the properties of a variable declared in a method under test I have a service layer method that recieves an object(Dto) as a parameter. Within that method I new up a business object and i pass the values of the properties of the Dto to the properties of the business object. I then pass the busines...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: IOS Display Image using HJCache I am new to IOS but I have made a small application that uses HJCache to display Images. All fine, I found a way to Display an Image with HJCache, but I have a big Problem, I cannot unterstand how I display the Image to Show me the result when the Image was loaded. My Actual Code is:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monitoring open programs with Win32 I've searched the web, and various forums, but I can't find one thing, how to continually monitor open programs and then close another program (not the one being monitored) if something happens to the program being monitored. For example, say that there is an already open Notepad ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the difference between mvn:deploy and mvn:install commands? I think there should be some difference, but can anyone tell me the details? A: mvn:install copies your packaged Maven module to your local repository (by default, in ~/.m2/repository), to be accessed by other local Maven builds. mvn:deploy uploads ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: what is SQL ReportServer GetMyRunningJobs in my SQL Profiler While running the SQL Profiler on a client site I noticed getmyrunningjobs running over and over bogging down their system in the morning from about 5:30 am to 6:30am. I know it runs all the time but for some reason it appears to run 4 times in a row ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to dynamically alter a value in mvc3 html page <tr> <td> Delivery </td> <td> <div class="confdelivery"> <select id="NxtDay" name="NxtDay"> <option selected="selected" value="1">Normal Devliery + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get "primary" user of a remote computer I need to know how to get the name and domain of the primary user of a computer, remotely. I define the primary user preferably as the user logged on most times, or longest time over a period. Alternatively, if this is impossible, as the user currently/last logged on. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best practice for detecting changes to functions in Scala programs? I'm working on a Scala-based script language (internal DSL) that allows users to define multiple data transformations functions in a Scala script file. Since the application of these functions could take several hours I would like to cache the resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MS Access VBA import text File I am trying to import a text file in MSAccess Vba code as below DoCmd.TransferText acImportDelim, "", "TableName", FileName, True, "" The file am importing does not have a any headers in it. It is a comma delimited file with just data. The table has column names in it. Now i want to i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you set up a Facebook app to ask to a user permission to allow publishing to their wall? We are trying to publish to a user's wall using the Facebook C# API using the following piece of code: private Api _facebookAPI; private ConnectSession _connectSession; _connectSession = new ConnectSession(APPLICATION_KE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dylib destructor does not get called I have a dylib which I can load via injection on mac os x. Constructor call works well. __attribute__((constructor)) static void initialize() But destructor does not get called? Thus resources initialized leaks. __attribute__((destructor)) static void destroy() * *Does dyl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: iPhone app with or without AppStore My company is offering a service to our clients which we would like to implement on iphone. Our clients would be paying $5000 per month for the service, so they can give it free of charge to their customers. We have been looking (so far with no success) for a distribution method w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Find the missing date ranges Table 1 code StartDate EndDate A 01/01/2011 06/15/2011 A 06/25/2011 06/30/2011 B 01/12/2011 07/31/2011 B 08/3/2011 12/31/2011 Table 2 code StartDate EndDate A 01/01/2011 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to append an ID with the value from another ID in JQuery I need to grab the value of an id and attach it to the end of a url on my form. Here's the html code for the input... <input id="ServiceRequestEditForm.CustomObject6 Id" type="hidden" value="" tabindex="-1" name="ServiceRequestEditForm.CustomObject6 Id"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET LINQ Is it possible to do a standard SQL Query? I was wondering if it was possible to perform traditional SQL queries using LINQ. I would then like to DataBind the results to a GridView. Thanks so much! A: You can use the ExecuteQuery() method. A: Yes, just use the method ExecuteQuery on your DataContext: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing tomcat server port to 80 does not work I deploy my web app into a tomcat server in a Linux AMI EC2 machine. I'm not familiar with Linux but I believe the virtual machine is similar to CentOS? I use yum install tomcat to install tomcat into the ec2 instance. When I deploy a java/spring .war file into the /we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: For extended information, should I use Django's Multi-table Inheritance or an explicit OneToOneField I have some fields on a model that won't always be filled in (e.g., the actual completion date and costs until the project is over). Because of this, I thought I'd split the model into two: * *Model #1: Dense tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: load ePub book via URL to iBook on iPad as i know the iBook App on iPad can read so called ePub Books. Now a customer want's that we develop an App, where his customers can browse his "store" and download the Books directly to iBooks. Any Idea if this is possible? The part of writing the app and downloading the ePub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do ObjectId's work, and can I just use them anywhere? How do ObjectId's work, and can I just use them anywhere I need a unique id and trust that it will be unique? Thanks! A: http://www.mongodb.org/display/DOCS/Object+IDs explains ObjectIds. Because ObjectId contains a timestamp, machine ID, process ID, and inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Like button not working in IE8 or IE9 I've been banging my head against this for over a day now and am finally posting a question, since I can't figure it out nor can find any information out there from people who are experiencing the same issue. These Like buttons work fine in Chrome, Firefox, IE7, but NOT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to capture variables for async functions in a coffeescript loop? I am looping over an object and trying to add an onclick event for each button that corresponds to each item in the object. for id of obj button = $("#my_button"+ id) button.click(-> console.log id) With this loop, every button logs the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring 3 link to external javascript halts execution I am using spring 3 and I have jquery added to my project. Now I am attempting to use the jquery number spinner plugin found at https://github.com/jogep/jquery.ui.spinner The problem is, when I link to the external javascript file, it seems to hault all other jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django: Best practices for database design I'm starting a project and i've decided to use Django. My question is regarding to the creation of the database. I've read the tutorial and some books and those always start creating the models, and then synchronizing the DataBase. I've to say, that's a little weird for me....
{ "language": "en", "url": "https://stackoverflow.com/questions/7531172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: how to provide .jad file download link? We are trying to provide a download link to abc.jad file in index.html. abc.jad and index.html are both in the same folder. Following is the link. <a href="abc.jad" type="text/vnd.sun.j2me.app-descriptor">download</a> In spite of these, we are still not able to download this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invoking Web-Service without using JAX-RS I have a Web-Service with Restfull Jax-rs and I have created WSClient with Restfull but without using Jax-rs. I am using Spring3.0, Tomcat. Here is my WSClient: import javax.inject.Inject; import javax.inject.Named; import org.apache.cxf.jaxrs.client.JAXRSClientFactory; imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find out if decimal point is present in decimal data type I have a decimal data type. I am getting values in multiple formats like 25 or 25.00. How do I check if decimal point is presnet in a given decimal number? If it's not present I have to add .00 to the number. A: It's a bit of a hack, but I believe this d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: htaccess rewriterule to forward specific folder I need a help here with .htaccess regular expressions. I want to forward this url: www.aloha.com/foo/bar/sample.html to www/aloha/foo/bar/index.php?go=sample. I tried to use RewriteRule /foo/bar/^(.*)?.html /foo/bar/index.php?go=$1 [L] but it doesn't work. I also a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IIS7 Remote sever - Ip Address issue i have a local iis web site ( name is abc) , when accessing this web site from 2nd pc like 192.168.1.666/abc but i want replace ip address with name like Csc/abc help me A: ON second PC you need to add string in the file "C\WINDOWS\system32\drivers\etc\hosts" like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSRS Using Sum Based On Condition From Multiple Procedures? I am creating a report and trying to Get a Sum combining values from multiple tables and can't figure it out and am beginning to wonder if it is even possible? I have 2 stored procedures returning the same data with different time frame. One stored procedu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Programmatically (via. Credit Memos?) Clean-up Paypal Reversal in Magento I've been asked to look into a weird paypal problem a colleague is seeing on a Magento site w/r/t to paypal transactions. Specifically, if paypal flags a website payments standard transaction as possibly fraudulent and reverses the charges, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find the JMX port in a server? I am sure I can figure it out if I can see the JAVA OPTS parameters. I want to monitor a hornetq server using Jconsole, so I need the port number. I remember using some command like java grep etc when I connected to it a while back. A: You can also manually set the port from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is it possible to identify individual wireless access points on a single wireless network? In thinking about the possible implementation of a mobile app that would identify a person's location based on wireless access points, I stumbled across a potential problem. To put it into context, my university has WAPs in ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i install phpmyadmin to a virtual server? I have a virtual unix server and currently i have to go through an awkward web interface thats not very easy to use. Basically i would like to be using phpmyadmin, but i don't know how to install it. As all i have to manipulate the server is a primitive control panel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pager taglib not renaming exported url variables as documented I'm using this pager taglib solution, it generates the links to the pages almost as instructed. It offers a way to customize the variable names that are used to iterate over the data set, and that's precisely what is causing problems. This is how I've go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pulling historic analyst opinions from yahoo finance in R Yahoo Finance has data on historic analyst opinions for stocks. I'm interested in pulling this data into R for analysis, and here is what I have so far: getOpinions <- function(symbol) { require(XML) require(xts) yahoo.URL <- "http://finance.yaho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: iOS: Are there any open-source Launcher Views like the home screen? I am looking for an open source project that allows me to have a launcher view like the iPhone/iPad home screen with the icons. Now know that Three20 has this but I do NOT want to use it. Are there any alternatives out there? A: I believe Three20 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python regex catch two kind of comment Exemple : a = "bzzzzzz <!-- blabla --> blibli * bloblo * blublu" I want to catch the first comment. A comment may be (<!-- .* -->) or (\* .* \*) That is ok : re.search("<!--(?P<comment> .* )-->",a).group(1) Also that : re.search("\*(?P<comment> .* )\*",a).group(1) But if i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSMutableDictionary returns 0xffffffff instead of nil when a key doesn't exist I have an NSMutableDictionary that is doing something strange: (gdb) po listenerRegistry { } (gdb) po productID com.mycompany.productid (gdb) po [listenerRegistry objectForKey:[productID stringValue]] 0xffffffff does not appear to point t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to build complex dynamic hierarchy view (1-n & n-1)? Does anyone know how to create a complex dynamic hierarchy treeview with ASP.NET or Silverlight or any other technology that can be viewed on a SharePoint page? We have records in our database connected to each other with keywords predecessor and successor. N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ActiveRecord combining relations I'm wondering if there's a nicer way to do this: I have 2 complex relations with multiple joins joining to Table D. I want to combine/join them to get the Table D records. The following works but is there a better way? class TableD < ActiveRecord::Base def self.relation_three r1 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP/MYSQL query ranking using secondary tables Working with a ranking algorithm, but I'm getting frustrated with the multiple database calls and data gyrations i'm having to go through to calculate the rank of a specific item, output it in to an array, and then sort by the rank value. Is it possible in MySQL to calc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem while invoking a Function from a Class I have a class that name Cleint in that i have a function ,i want to make a three instantiate from Cleint with diffrent result of a Function but the results are same here is my code: Programm.cs: class Program { static void Main(string[] args) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7531267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }