text
stringlengths
8
267k
meta
dict
Q: How does fill-paragraph (M-q) in emacs work inside LaTeX equations? I have not really understood how this works (and maybe it works differently in Aquamacs and GNU emacs on linux) - sometimes it does not fold long lines inside equations. I would like to know if there is a nice way to fold equations with M-q.
{ "language": "en", "url": "https://stackoverflow.com/questions/7597124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails 3.1 absolute URL to an image I'm using Rails 3.1. I'm trying to figure this out, and to my surprise, it is starting to seem that rails does not come with this method at all. Maybe im wrong. Can anyone show how I can get a full absolute URL to an image? I use asset_path(image.png) which gives me the relative pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Drawing a line in Animation I have an invisible Polyline containing a lot of points in a canvas. <Polyline x:Name="plinePath" Stroke="#00000000" StrokeThickness="3"> <Polyline.Points> <Point X="0" Y="0" /> <Point X="10" Y="10" /> <Point X="10" Y="20" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Run self extracting exe after extraction C# - DotNetZip I am trying to create a self extracting exe. Creating it is no problem. Where I am facing problems is * *Setting the extraction path where the exe exists *Running the extracted exe. For the second part, it is most probable that I must have the extraction...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change schema.xml in solr Can any help me how to change schema.xml in apache Solr server? I deployed my Solr in tomcat server. Then I added a field in schema.xml but on running my java application. How can I index a csv file or xml file into Solr server using Solrj? I want to add fields like classname, packagename a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Casting a List (where T : IBar) to ICollection fails I have classT, implementing interfaceIBar. I have a variable list of type List<T>. Two questions for enhancing my understanding of the language: * *Why doesn't this work? var foo = (ICollection <IBar>)list; // fails! *How to work around it (if possible)? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with Thread, can't change the value of an external TextView I have an android thread class that must change the value of an external TextView, but it doesn't change it :S. I debug it and I can see that the thread executes the line that changes the value of the TextView, but it doesn't get reflected on the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uncaught ReferenceError in AJAX script First... I've been trying to solve this myself for the last 3 evenings... I've look at posts with similar topics to mine but have not come across an answer that helps me... I'm a little new to AJAX & JS but Not new to web programming... I have a standard Automotive select list...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITableView - Grouped Table. iOS (Cocoa Touch), Objective-C I found a tutorial for a UITableView – Drill down table view, source code, but I would like to add a little upgrade. My goal is to add grouped table view with 2 sections in level 0 (CurrentLevel == 0). So I started with: * *Change table view style (at R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Url.Action not outputting URL I'm using Url.Action so that I can create more complex HTML links as ActionLink doesn't allow HTML inside them. Example: <a class="uiButton" href="@Url.Action("Areas","Organisations","Manage","Create")" title="New Organisation"> <span class="icon organisations-new">...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parent to sub-domain AJAX POST requests with JQuery I'll start by saying i have spent the last 3 days looking for an answer to this and have yet to find a solution that works! :( I would like to be able to POST from www.example.com to api.example.com preferably using JQuery. I have managed to get GET requests to wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Displaying detailed #error informations SSRS report without using BIDS How can i get any informations about #error that occured in cell without debugging it localy in BIDS? Is there any possibility to show error message inside report? I haven't found anything usefull on google related to #error in cell. Im intereste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Root authority in xulRunner I need to embed my own Trusted Root Authority for SSL connections in my XulRunner app. Unfortunatelly I can't find how to do this... cert_override.txt can't help my because I don't know all the server links nor all the certificates that must be accepted, but they are signed by the corpor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Security Exception running dotless I'm getting a Security Exception when I attempt to access a .less file in IIS7. The exception text is: Security Exception The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I update an mxml property dynamically in Flex? I'm using Flex 4.0, with the Halo theme, and a custom component that I have the source of. I want to call the component with a parameter to hide or show some items. The parameter is dynamic, meaning it is set in a method after the mxml has loaded. Snippet: <mx:Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accesing the wso2 stratos services defined in the service-stubs file From the wso2 stratos source files there is a 'service stubs' (wso2-stratos-1.5.1-src/service-stubs) section. Normally we can not access to these web services and after building the source the services are hidden. Is there a way to access to these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: htaccess mod-rewrite to subdomain I'm using the following to redirect wildcard sub domains to corresponding folders: RewriteCond %{REQUEST_URI} !^/users/ [NC] RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$ [NC] RewriteCond %1 !=www [NC] RewriteRule ^(.*)$ /users/%1/$1/? [L] I would like to add a rewrite rule that red...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Neater way to filter Object containing other Objects by value I've got a JavaScript object that looks like this: var options = { 'user1' : { 'house1' : ["lat1", "lng1"] }, 'user2' : { 'house2' : ["lat2", "lng2"] }, 'user3' : { 'house1' : ["lat3", "lng3"] } }; Say I want to look up all the users associa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Repeater User Control DataSource I have a user control that contains a repeater. It seems that data cannot be assigned to it's DataSource property, I have tried a few different data sources but the following error is displayed: (I have debugged it and there are data items in the datasource) Object reference ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pattern design for a WebService Client I'm making an android application that will contact with a WebServices that exists already. I'm looking for a pattern to create the client part (Android application). Since the webservices are in .net (WSDL), I have to create the WSClient manually. So, I'm thinking How I can do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to programmatically determine all valid XML nodes from a schema Is there an existing Java library that will let me determine all valid nodes for a point in an XML document (specified by XPath, or otherwise), given an XML schema? A: This isn't a very helpful answer - hopefully something better will come along. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Difference between jQuery code structures What is the difference between these jQuery code structures, or is there no difference. Are they both an alias for $(document).ready(function(){ and if so, why the dollar in the first code snippet? jQuery(function($){ // stuff }); AND $(function() { // stuff })...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Query to a MySQL database from shell I need to make several queries to MySql database. My question is the following: * *Do I add the following in a file and then execute the file: echo "Check " mysql -h 192.168.100.1 -t -u umane -pass tablename < query.sql echo "Check " mysql -h 192.168.100.1 -t -u umane ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's a good strategy to get a decent overview of big correlation matrices or pairs? Often some data.frame contains 20+ variables and you want to get a first overview (of the correlation structure). Even on a 30" screen you run quickly out of space and it remains hard to grasp the message. Are there any established...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Why can't I write Nullable>? The definition of Nullable<T> is: [SerializableAttribute] public struct Nullable<T> where T : struct, new() The constraint where T : struct implies that T can only be a value type. So I very well understand that I cannot write: Nullable<string> a; //error. makes sense to me Because str...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What implementation of cycle is better? I wonder, what implementation is better from reading and performance sides. 1) for (DateTime dayStart = GetDayStart(today), dayEnd = GetDayEnd(today); dayStart < endOfPeriod; dayStart = dayStart.AddDays(1), dayEnd = dayEnd.AddDays(1)) { // ... }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to create a network topology diagram using SNMP? I'm struggling to come up with a topic for my final year project/dissertation at University. I've had an idea but I'm not sure if it's a.) possible and b.) feasible in my timeframe. My idea is to create a piece of software which uses SNMP to get informa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Interface Builder was unable to determine the type of "MainStoryboard_iPhone.storyboard"" error in MonoDevelop In MonoDevelop I'm creating a 'MonoTouch Single View Application - Universal (Storyboard)', when I compile the solution I get the following error: Compiling interface definitions /Developer/usr/bin/ibtool...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading comma in content of csv file (E.g. $1,23,456) Using C# program I am reading CSV File with value like (Name, Salary, Age) (A, $1,200, 27) (B, 2300, 27) In the header row there are three columns. I want to validate that the number of columns in data rows is also three. (C, 28) should be an invalid file. Cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Listbox multiitem selection on selectedindex change? I have a list box in which i have multiple value <asp:ListBox ID="lstbox" runat="server" SelectionMode="Multiple" Width="120px"> <asp:ListItem Value="0">None</asp:ListItem> <asp:ListItem Value="8">Rohan</asp:ListItem> <asp:ListItem Value="16">Jems</asp:ListItem> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Instantiating classes dynamically? Let's say I have this array: String[] names = {"stack1", "stack2", "stack3"}; Is it possible to instantiate Stack dynamically using those names, so there will be 3 objects named stack1, stack2, and stack"? Later in the code, I'd like to call stack1.pop(), or stack3.empty(), for ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vim script: how to execute a command in a vim function Why does the following: let s:colorschemes = ['synic', 'ir_black'] let s:colorscheme_idx = 0 function! RotateColorscheme() let s:colorscheme_idx += 1 let s:name = s:colorschemes[s:colorscheme_idx] echo s:name colorscheme s:name endfunction not execute ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Nested form not updating the database I have a nested form that does not update the database. Models: User: has_many :designs, :dependent => :restrict accepts_nested_attributes_for :designs attr_accessible :designs_attributes Design: belongs_to :user Designs Controller: def update @design = Design.find(para...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Extract Text from URL the problem is I need to extract just text content of a given URL. I should insist that I just need the text content. there is many methods on the internet which return all content of a web page without any text separation. I need the code in c# language. thanks for any answer A: With HTML th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: javascript regular expression replacement doesnt work? why this regular expression replacement doesnt work? var url = 'http://myweb.com/page/1/id/2'; newUrl = url.replace('/page\/[0-9]+/', 'page/2'); //it must become http://myweb.com/page/2/id/2 A: You need to do two things: * *change str.replace to url.repla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the tail of a std::string? How to retrieve the tail of a std::string? If wishes could come true, it would work like that: string tailString = sourceString.right(6); But this seems to be too easy, and doesn't work... Any nice solution available? Optional question: How to do it with the Boost string algori...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Odd JS console error in firefox web developer (about chrome though...?) Error: [Exception... "'JavaScript component does not have a method named: "handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: chrom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to change the columns data automatically in sql server tables based on the changing day? I am creating bank application project in this project i am using sql server2008, vs2010(.net) now my problem is account login page, user enter 3 time wrong password account is blocked today only , next day(date changing) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: ninject and enterprise library service locator dependant assemblies I am using the Microsoft.Practices.ServiceLocation assembly in conjunction with ninject to aid in service loaction. I register my ninject kernel into the servicelocator provider method: var kernel = new StandardKernel(); //do bindings var locator = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: With default bean scope as singleton, isn't it going to be bad when concurrent calls occur? I have declared a Spring bean, which polls my email server every so and so seconds. If there is mail, it fetches it, and tries to extract any attached files in it. These files are then submitted to an Uploader which stores th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Bit order in C/C++ I have to implement a protocol which defines data in 8bit words, which starts with the least significant bit (LSB) first. I want to realize this data with unsigned char, but I don't know what's the bit order of LSB and most significant bit (MSB) in C/C++, that could possible require swapping the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: VS Web Setup Project alternatives? Can anyone recommend a better installer for web-applications? What do you use to deploy/install your web-apps? PS. What I personally dislike about "Web Setup Project" is that it requires the "IIS 6.0 Management Capability Feature" to be present on the target machine. This frustrate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Handling Right Click/Left Click of Task-bar Button in c# I have a form (having Taskbar button shown in Taskbar) and I want to handle left/right clicks of this Task-bar button. I searched everywhere but could find the right answer. There are some related queries posted in stack-overflow as well: * *Using wndproc i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windsor Typed Factory Not Releasing Children I have a factory and component registered in Windsor 2.5.1 like so: interface IFooFactory{ IFoo CreateFoo(); } interface IFoo { void DoSomething(); } class ConcreteFoo : IFoo, IDisposable { public void Dispose(){ Log.info("Going now, bye!") } } contai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Textbox lag with a lot of data? (Silverlight 4) I have a textbox bound to a string in my ViewModel via TwoWay binding that often contains hundreds of lines if not more. When the textbox contains a lot of text, input lag can become apparent when entering text. So, I'm now trying to track the source of this performanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to add two or more repository controls in devepxress grid control Hey i am dealing with winform(c#) application. i am using Devexpress Grid Control. Is it possible to have two or more repository controls in grid control column for edit purpose. eg.. say like a textbox and combo box in a grid column.(t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Slow uploads to running Android emulator I have searched but not found any queries or answers for my specific circumstance. I have a fast new machine with plenty of memory running Windows 7. I'm using the latest Eclipse and Android SDK. When I run an app the emulator takes about 45 seconds to start (blazingly fast f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Invoking a Google Chrome extension from Javascript There is an excellent extension called Blipshot which takes page screenshots. I need to invoke the extension with page level javascript, instead of clicking its icon. Is this possible? A: You cannot invoke any methods of an extension from within a web page. However...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Strategy for Creating Fork of Android on GitHub I'm trying to create a fairly low-level change in Android source -- changing the package manger. I want to get the whole source using the repo tool described in source.android.com. I have a fork of the platform_frameworks_base project on github. So, the question is ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grid View Combo Box Column I am working on a Windows Form. I have a ComboBox and on it's SelectedIndexChanged, I need to bind values to a GridViewComboBox Column. Suppose I have bound all the states in the ComboBox, then when a state is selected, I need to bind all the districts coming under the particular state. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integrate LWUIT with Blackberry JDE I am trying to make an integration between LWUIT and Blackberry JDE. I am importing the LWUIT .jar file into a library project and setting the dependencies of this library with another project. I am then creating a new LWUIT form and running the project. I am alwas getting a "Cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Displaying jQuery UI dialog with multiple checkboxes I'm trying to display multiple checkboxes and then submit the selected checkboxes as HTTP GET (i.e. as parameters in URL string) to the same script: Here is my simplified test code - test.php: <html> <head> <style type="text/css" title="currentStyle"> @im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Export Image column from SQL Server 2000 using BCP I've been tasked with extracting some data from an SQL Server 2000 database into a flat format on disk. I've little SQL Server experience. There is a table which contains files stored in an "IMAGE" type column, together with an nvarchar column storing the filename. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to test Push Notification is working in my application - in iPad I already have asked about how to test Push notification in iPhone. Now I have to test the same in iPad. I found that the tool PushMeBaby does not work in iPad. When I tried to do so it is showing some Socket error(5). Is there any other tool which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Directions API not providing exact steps I'm using Google Directions API to get directions between 2 locations. I'm able to get the Webservice response (json) and draw a line over the map. However, I noticed that the direction steps are quite less in the response thus making the lines not follow exact road c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add event handler in c#? I'm totally new to Events and delegates in C#. I want to handle a data read event in one class (ex. program) and port reading is done in another class(ex. transfer). I know how to do it with delegates alone,but don't know how to do it in events. Could you give me a simple sample. Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: failwith in the explicit object constructor using F# The following code type A (b) = new () = if true then A 4. else failwith "" gives an error: This is not a valid object construction expression. Explicit object constructors must either call an alternate constructor or initialize all fields of the objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I create an instance of a class from AS3 just knowing his name? Can I create an instance of a class from AS3 just knowing it's name? I mean string representation, like FlagFrance A: Yes, use getDefinitionByName: import flash.utils.getDefinitionByName; var FlagFranceClass:Class = getDefinitionByName("FlagFrance...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: WP7 read file from phone I am building an app on Windows Phone 7 to transfer photos on wifi. Firs the user select photos (that works fine) & I store paths in variable that I can use later. When I am trying to send photo, I've got null on my stream like shown below: To be specific, I launch the next photo transfer w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery - Is there a more efficient way to do this? http://jsfiddle.net/bGDME/ Basically, I want to show only whatever is selected in the scope and hide the rest. The way I did it seems so.. I don't know. Tedious. I was hoping to get some ideas of making it better. A point in the right direction would be very much ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in creating temp files on mac os Om mac OS 10.6.7, I am creating some files in the temp directory. After a while I start getting failure in open syscall and error returned is 24 which means disk full. I checked the disk space and still 80GB is available. Are there any restrictions or special quota on temporary...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android AlarmManager did not work after process stops I want to set an alarm via AlarmManager class. Normally, It works fine and everything is OK. But if my application process stops or Phone turns off and turns on again, The alarm wont start. Any help? or other service that android provides? thanks A: Android wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Symfony2 sending XML to a remote URL I would like to send XML data to a remote URL. How to do this in a proper way using Symfony2? Equivalent in flat PHP using curl would be: $ch = curl_init("http://website"); $request["queue"] = file_get_contents("file_to_send.xml"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change UISwitch name in iphone? Possible Duplicate: How to customize UISwitch button in iphone? How to change name of UISwitch (like on,off) i am creating UISwitch in Xib so i want to change the name like yes or no. A: You will have to create a custom switch... http://www.catamount.com/blog/1063/uicustoms...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure unit tests with an IoC container in ASP.NET? I have configured Unity in my ASP.NET application and the configuration is loaded when the first request is received in Application_BeginRequest. then the Unity container is stored in the Global.ascx as a property so that my other class can access it: pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails fixtures or similar for creating data within an app I want to populate a preferences table when a user is created. I can make a lash up version within the controller easily enough but would like something neater. Can one do the same sort of thing with fixtures within a running application? If so how? A: You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQLAlchemy: Dynamically loading tables from a list I am trying to create a program that loads in over 100 tables from a database so that I can change all appearances of a user's user id. Rather than map all of the tables individually, I decided to use a loop to map each of the tables using an array of objects. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: automatic reference disable in ios How can i disable automatic reference for specific files in IOS. I have a facebook API, where it isn't automatic reference and so I want to disable it for facebook api files A: Head to the compile sources section of the build phases and add the "-fno-objc-arc" to the files you wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using dependency injection with Apache Commons IO I have a class 'a' that uses the FileUtils class of Apache Commons IO to copy a directory. Because I have to write a unit test for class 'a', I need to be able to inject all dependencies to mock them in the test. But how to inject the FileUtils class? There is no int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Git link to repository folder I do have a question: How can I link within a git repository to a folder of another repository. I have the following structure: Repository One .git Folder A Folder B Repository Two .git Folder C Folder D So what I now want is, that within my repository One and its Folder B, Folder D of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to build parse tree? Have found C++ BNF and there next lines selection-statement: if ( condition ) statement if ( condition ) statement else statement Now trying to write parser. Need to build parse tree. On input i have BNF and source file. But i'm stucked in how i can point my parser what if condition...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to handle csv download prompt through a post request in Rails I have a servlet (java) returning a csv file. So in my controller I send a post request, def handleCsvRequest response = RestClient.post theUrlPathTotheServlet queryParams end Now how do I handle the response so that it prompts the user to download th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: BitBlt from a color hDC to a monochrome hDC? I am doing BitBlt from one 8 bit color DC to a monochrome DC. The problem is only pixel with values 255 are converted to white in the monochrome DC. How do I specify threshold value, so that any pixel with value greater than 128 is displayed as white in the monochrome DC....
{ "language": "en", "url": "https://stackoverflow.com/questions/7597415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditional position-check in XSLT I have an XSLT file which renders articles. I'm passing a variable into the XSLT file which is supposed to limit the number of records output. The trouble is, this 'limit' variable is optional - if it's not there the XSLT file needs to output all values; if the 'limit' variable i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: F# Script SharePoint 2010 API doesn't work I am trying something really simple in F# to try and test interaction with the SharePoint 2010 API. I think I am running into a general problem with F#. Is there anyway that an F# script can access the SharePoint 2010 API? I think my problem is due to the F# scripts runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Wordpress using Post titles as navigation I'm trying to create a navigation based around post titles. The main navigation at the top is the Categories, in a sidebar will be the Post Titles from that relevant Category. The code I'm using works up until a point (i got it from List wordpress posts by category which mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTPS URLs for photos All photo URLs in the FQL photo table are HTTP-URLs and not HTTPS-URLs. It's not possible to rewrite the URL with https instead of http. How do I do to get the HTTPS-URLs instead? Why: Internet Explorer is warning users with a pop-up when they load a HTTPS page which includes objects with HTTP-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to design model with two, independent and optional relations to the same model? I've got a problem with designing my User model and making a decent form for it. I just want to ensure myself that I'm doing it wrong :) So it goes like this: User has got two Addresses: * *a mandatory Address for identification ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL: How can I select table entries within the next three available dates? To clarify the question further... I have the following Table ORDERS_TAB with some example information: |Order| Launch_Date | | 1 | 27-Sep-11 | | 2 | 29-Sep-11 | | 3 | 30-Sep-11 | | 4 | 03-Oct-11 | | 5 | 28-Oct-11 | | 8 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using core data in an existing project I need to use core data to persist data for my project, what I have done so far compiles well, but when I actually start storing things using core data, the program just quits, and I don't know the reason. I set up all the required components for core data in the appDelegate fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ThreadSafeClientConnManager not multithreading I've been asked to fix up a Servlet that sits in between two applications. It's purpose is to convert SAML authorisation request to and from SAML v2.0 / SAML 1.1. So it: * *receives a HTTP SAML v2.0 authorisation request from one app *converts the request into SAML ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Multi select filter in layered navigation I have a custom multi select attribute which I'd like to take part in filtering of products. The attribute is set as used in Layered Navigation however doesn't appear in the list of available filters. Could be due to custom model implementation? Anyone have some tips where t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: getline() reads an extra line ifstream file("file.txt"); if(file.fail()) { cout<<"Could not open the file"; exit(1); } else { while(file) { file.getline(line[l],80); cout<<line[l++]<<"\n"; } } I am using a two dimensional character array to keep the text (more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't my TextBlock/TextBox apply values from a Base Style? It's not uncommon for me to write something like below for styling a data entry form, but my problem is that TextBox and TextBlock don't seem to implement the Setters that are in the BaseElementStyle. Usually I need to define them separately. Why is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ItemsControl ItemsSource lazy loading Image you are creating a custom control behaving like ComboBox in WPF. As a source of items you provide IQueryable<T> (or any kind of IEnumerable collection), but you don't want to allow the control to call GetIterator() and iterate through it (some kind of a lazy loading). Let'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Alfresco's MMT vs Integrated Deployment When developing for Alfresco, are there any advantages to using the MMT over Integrated Deployment? Is there anything you can develop using one method, but not the other? Browsing through Alfresco's SDK examples, I noticed many of them used integrated deployment, and the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone download images and display correct ratio I'm downloading a bunch of images from a server and displaying them on the screen. I have about 320x450 to work with. Each image size has a different size, how do i correctly resize images so that they fit on the iphone screen and retain the correct ratio and the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Groovy iterate Nodes with XMLHolder i want to Iterate over Nodes of an XML-File with the XML-Holder. def reader = groovyUtils.getXmlHolder(test1 ); let's say the XML looks like the following: <xml> <node> <val1/> <val2/> </node1> <node> <val1/> <val2/> </node2> </xml> i want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to turn off HTML5 Offline caching I've been using HTML5 Offline caching on my website for a while and for some reasons I am considering turning it off. To my surprise it doesn't work. This is how I've implemented HTML5 Offline caching. In my index.html I give path to the manifest file <html manifest="app.manifes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mixing template specialisation and enable_if in a function template with only a templated return type I have the following code that fails to compile on VC2010: #include <type_traits> using namespace std; template <class C> typename enable_if<true, C>::type foo() { return C(); } template <> bool foo() { return tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android, Is this a right way of using MyLocationOverlay for getting user location to send it to server...? I am new to android. I have learned about MyLocationOverlay. It can get user location and draw a blue point on that location. I want to get user location and send it to server. Is it possible by using MyLocatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use Jquery to implement a drag drop file from outside into web page (inter-Window drag drop) (like gmail attachment)? Can I use Jquery to implement a drag drop file into web page (like gmail attachment)? Research so far has not shown existing examples: * *https://stackoverflow.com/search?q=drag+and+drop *j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I access a game controller via USB? Problem I am working on modifications to one of my applications that communicates with a telescope. One of the most annoying problems due to nothing else but reckless poor design, is the GOTO controller and its keypad. If anyone of you remember the Sinclair Spectrum you kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GData youtube video upload missing audio I am using GData Api to upload video on youtube from ios application. It successfully uploads the video but audio is missing from that. I am using .mp4 format of video. Do any one has a clue? Thanks -(BOOL) setupWriter{ NSError *error = nil; // NSArray *paths = NSSearchP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF UserControl Focus I have a UserControl subclass that contains a Grid, which in turn contains a couple TextBlocks and a Border (which also contains a TextBlock). See code below. <UserControl x:Class="ProjectNS.MyUserControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmln...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if a string is a number I have conversion to Map problem in Core Java. Below is requirement: Given a String array below String str[] = {"abc","123","def","456","ghi","789","lmn","101112","opq"}; Convert it into a Map such that the resultant output is below Output ====== ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best practice for AJAX/jQuery adding to a form and updating a list on the same page I am working on a page that has a form that puts data into one table, and also a list of items that come from that table. I want to show the newest items on top of the list after the form is added. Rigth now, the form makes an AJAX c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add more existing sources to Java project In Netbeans I can create a project using existing sources of Java files. If I want to add additional sources to a project how can I do so? A: NetBeans 8.0 You can copy complete packages including sub-packages to the projects /src/-folder. Then Source » Scan for External Cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Compute the tortuosity of a polyline I have series of (x, y) coordinates, if joined this represent a polyline. This polyline is a geographic track. All that I need is to get the polyline tortuosity. It should be usefull a sort of percentage. E.g. The path has x% tortuosity. A: well, it all depends on how you define...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scala - method precedence I am new to Scala. I wonder whether it is possible to define some precedence with method calls. For example, if I have the chain of method calls: someObject method1 param1 method2 param2 method3 param3 can this be equivalent to the following: someObject.method1(param1).method2(param2.meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }