text
stringlengths
8
267k
meta
dict
Q: Call an Adobe Flex/ActionScript method from JavaScript? I need to know why JavaScript can't talk back to Flex. I have a project that is going to use JavaScript to play a given video file. Its running on a custom MVC framework where asset files are loaded via the /static prefix. Example: http://helloworld/static/swf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone Facebook Dialog Feed not displaying Post to Wall I am using [facebook dialog:@"feed" andParams:params andDelegate:self]; If user is not logged in, the Facebook login dialog will be displayed. Once logged in, it goes to the Facebook Mobile page (Profile, Messages, More). How can I have it go to the Post to Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio Setup Project and Custom Action Usage (Installer Class) I have an installer, an MSI file, when executed interactively (by an end user), it installs just fine. Specicially, the Custom Action I added to the MSI via an Installer class, executes as part of the users installation. However if I execute the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC 3 Not Recognizing Windows Role (Group)? Has anybody come across occurrences where MVC does not recognize roles from Windows? I thought that roles translated to groups in Windows, but for some reason when I add a user to a group, check in MVC (using windows authentication) if that user.IsInRole("GroupJustAddedTo"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert NSString to binary string I have a NSString representing sha1 hash of some data and I need to convert it to binary string, but cant find any good solution to do that. It should be equivalent to PHP's pack function. The result should be like this: 0xb7, 0xc7, 0x91, ..., 0x90. I than need to convert this binar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Beans, beans, and more beans...what does what? I've recently been given a project to work on that involves writing a web application. I've never done Java EE before. A lot of resources on the web are dated and I'm having trouble figuring out what the current differences are between the various standards and Java t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drupal 7: Make custom content translatable I'm creating a custom module which enables me to add Countries to a custom table in the database. I'll do later more with it, but as I got stuck at the beginning, I can't go on. First my piece of code: function partners_schema() { $schema['partners_country'] = array( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a Draft message in Gmail using the imaplib in Python I want to write a python module that sends data to a draft message in a G-mail account. I have written a script about two weeks ago that worked perfectly using imaplib. A simplified example of my module is below. (I have created a test email address for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: CoreData: transient property and localizedCaseInsensitiveCompare In coredata, i have a transient property to use has sections. The transient property code is here: - (NSString *) firstLetter_transient { [self willAccessValueForKey:@"firstLetter_transient"]; NSString *initial = [[[self memberName] substringToIndex:1]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good idea to resolve User roles in the application layer? The reason I need a role-based system: * *Restrict access to pages. *Restrict access to certain features on pages. *Check/validation inside service layer. So I'm guessing, I can just create an enum and if I need a new role, just add it to the app code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Character sets of the pattern symbols Is there a way to get sets of the pattern symbols? For example, I have a regular expression [az]+[A-Z]*. Then the symbol set of the first symbols is a and z. Then the symbol set of the second symbol is a and z. Then the symbol set of the third symbol is a and z. .... The task is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Using Regular expression to search for a value but exlude that string from the results? This is prob really simple, I'm new to regular expressions but say I wanted to find the 2 numbers preceding some characters. i.e "12 qty" So I'm using \d\d.qty to bring back the match "12 qty" but I want to exclude the word qty? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pattern matching on Class[_] type? I'm trying to use Scala pattern matching on Java Class[_] (in context of using Java reflection from Scala) but I'm getting some unexpected error. The following gives "unreachable code" on the line with case jLong def foo[T](paramType: Class[_]): Unit = { val jInteger = classOf[ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: (Pre)select checkboxes in a ListActivity using 'simple_list_item_checked' I'm using the ListActivity class in conjunction with the simple_list_item_checked-layout which implements simple list items with checkboxes. Everything is working fine - clicking added items calls onListItemClick() and I can check/uncheck resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding x/y coordinates that fall within filled canvas arcs Here is the fiddle The arcs I've drawn around the outside of the circle - I'd like to know how to find all of the x/y coordinates that they cover so that I don't have to re-draw them every time using isPointInPath() to determine whether the mouse cursor is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why can't I get this Git alias to work? I've installed git for windows. I want com to be an alias for commit -m, so that I can write for example git com "dumb commit message" and it works the same way as if I'd written git commit -m "dumb commit message" I added this line to the "gitconfig" file (why do these linux ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to mix annotations with faces-config.xml Using JBoss 6.0.0.Final, Richfaces 3.3.3.Final, MyFaces 2.0.6, facelets 1.1.15.B1 (a limitation of RF 3). I'm on a legacy project which contains hundreds of beans defined in faces-config.xml. I'd like to keep those defined in faces-config.xml but use annotations for new b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using Ctypes to wrap .LIB files I need to control a device in python using Ctypes. However, the libraries that come with the device are compiled .LIB files, not .DLLs. Is it still possible to use Ctypes? A: No. Not directly anyway. CTypes uses the dynamic linker (LoadLibrary, GetProcAddress) to work. You could wrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scrolling down recipients scroll bar in chat script My previous chat script worked perfect at sender side. When ever a new message is added from textbox to databinder the scroll bar used to come down with the help of javascript but the issue is it is unable to scroll down the recipient's side chat script. I interfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails adding resource id to another resource via HABTM I have 3 pertinent models: class User < ActiveRecord::Base has_and_belongs_to_many :groups end class Group < ActiveRecord::Base has_and_belongs_to_many :users has_many :galleries end class Gallery < ActiveRecord::Base belongs_to :group end I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamically loading Dictionary KVPs into Anonymous types I want to load all the KeyValuePairs in a Dictionary<string, string> into anonymous types during runtime. There will be no knowledge ahead of time of the contents of the Dictionary. Dictionary<string, string> callParams = new Dictionary<string, string>(); log...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby: Ping.pingecho missing Ruby used to have a Ping.pingecho method, but it seems as if (and the Ping module) have disappeared sometime: % rvm use 1.8.7 Using ~/.rvm/gems/ruby-1.8.7-p334 % ruby -rping -e 'p Ping.pingecho "127.0.0.1"' true % rvm use 1.9.2 Using ~/.rvm/gems/ruby-1.9.2-p180 % ruby -rping -e 'p Ping.pi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android overlay a view ontop of everything? Can you overlay a view on top of everything in android? In iPhone I would get the new view set its frame.origin to (0,0) and its width and height to the width and height of self.view. Adding it to self.view would then cause it to act as an overlay, covering the content beh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Python, GIS and Fortran: Trying to create multiple polygons from xy point data I've been working on this problem for awhile and have found no joy on the ESRI forum page or with some FORTRAN triangulation script I wrote. I have two .csv files with hundreds of xy point data in. These points represent the high and low ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Comments on my MVP pattern for Android I am planning to use MVP pattern for my new Android project. I have done some sample code and I would like to know, have I implemented it correctly? Please give comments on the code and also post your suggestions. my activity class I am extending it from my BaseView class and I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MVVM access other view's element from viewModel I started working with the MVVM pattern in a new project. Everything is ok, but i came to the following problem. The implementation looks like this: I have a MainView, the main app window. In this window i have a telerik RadGroupPanel in wich I host the rest of the app...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CarrierWave: create 1 uploader for multiple types of files I want to create 1 uploader for multiple types of files (images, pdf, video) For each content_type will different actions How I can define what content_type of file? For example: if image? version :thumb do process :proper_resize end elsif video?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL: If var = '' do nothing else add a condition to a WHERE clause I would like to perform one part of a WHERE clause on the condition that a variable has a value. I have tried writing this in many different ways but always hit an error and was wondering if someone could help. The code below is my current SQL statem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stop TextChanged event from firing Leave event I'm working on a simple WinForms application for a public school where users can identify themselves by entering either their network IDs (which are not protected information) or their system IDs (which are protected information). I want to switch to a password characte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stopping IntentService by clicking Notification I'm doing some background work in an IntentService and trying to make it stop by clicking a notification. For stopping the work I have a static method, that sets a flag. public static void stopService() { if (task != null) { task.setCancelFlag(true); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: After appending, want to remove I have some zoom buttons being added to my Map container I want to remove these zoom buttons when a particular map image is being used Code: JS: Map = function() { //private: var $MapContainer; this.initMap = function($container, zoomHidden) { $MapContainer = $container; $Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What type of files can be signed with codesign on a Mac? I have an xml document I would like to package and sign on the Mac. I know on Windows you can sign exes, dlls, cabs, and ocxs with signtool, but so far I've only been able to sign .apps on Mac. What other types of files can be signed with codesign on Mac? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: An entity object cannot be referenced by multiple instances of IEntityChangeTracker? Private WorkOrderServicesController As New WorkOrderServicesController Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim _WorkOrderServices As New WorkOrderServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I designate a separate private key for each git repository I connect to? I have multiple git repositories I need to connect to. For each one, the person in charge emailed me a public/private keypair to use to access the repository. I stored them in my .ssh directory along with my personal key: $ ls ~/.ssh id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash Scripting to pull data out of a csv I have a file with the following data: 20,2011/09/22,HUOT ,CLAUDE J, ,DEX ,006403,MTRL,07:10,QBEC,10:29 020,2011/09/22,HUOT ,CLAUDE J,02001,DEX ,003470,MTRL,07:10,QBEC,10:29 020,2011/09/22,HUOT ,CLAUDE J,02003,DEX ,003...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is this a memory leak in JavaScript? I was reading this article ( http://www.ibm.com/developerworks/web/library/wa-memleak/ ) on IBM's website about memory leaks in JavaScript when I came across a memory leak that didn't quite look liked it leaked: <html> <body> <script type="text/javascript"> document.write("Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Jquery CSS Selector Requiring Three Criteria to be Met I am trying to write a CSS selector that requires multiple (three criteria) to be met in order to enact an action. $('div[class*="clickout"]') $('div[class*="preferred"]') $('div[class*="test"]') Basically I want to ensure that all three conditions are met. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Toggling visibility of series of images: pie_1.png, bar_1.png, pie_2.png, bar_2.png I have webpages with several (and more is coming) types of data, each represented by a bar and a pie Google chart image: <h3>Data_1</h3> <p class="chart" align="center"> <img class="primary" src="pie_1.png"> <img class="secondary" sr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git - need some explanations about rebase I tried google, no help. I got an active os project that keeps updating with good stuff and I'm developing on top of it, So lets say I got the git repository of the project (lets call the current state x) and the current status is: OS project x my project (added some y chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to allow empty values in symfony2 validators I would like to apply validators on a object properties only when value is not empty ie. Now standard symfony behavior: class Entity { /** * @ORM\Column(type="string", nullable=true) * @Assert\Email() */ protected $email; (...) } that objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: initializing a vector of vector c++ Hi I want to initialize a size 9 vector whose elements are vectors of the size, say 5. I want to initialize all the elements to the zero vector. Is this way correct? vector<double> z(5,0); vector< vector<double> > diff(9, z); OR is there a shorter way to do this? A: You can p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: grabbing Html of $(this) in Jquery How can I grab the Html for $(this) in a following function allhdn.each(function (){ var $this = $(this); var newHtml = (str + $this.html()); }); $(this).html() returns empty string. A: I think you have a variable scope issue. var html; var newHtml; allhdn.ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why aren't the cookies saved ? why aren't the cookies saved when i run the following script: window.onload=init; function init() { var userName=""; if(document.cookie != "") { username=document.cookie.split("=")[1]; } document.getElementById("name_field").value = username; document.getElementById("name_field")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this also considered a subquery? I know how the following queries work, I'm just confused about the terminology. Each query begins with mandatory FROM clause and must end with either SELECT or GROUP clause. Between the two clauses we can put any number of optional FROM...LET...WHERE clauses. Subquery is simply a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tomcat KeyStore Environment Path We have the following example: < Connector port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="${user.home}/.keystore" keystorePass="changeit" clientAuth="false" sslProtocol="TLS" /> How can I make th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MVC Partial View rendering as full view in its div Having a lot of problems at the moment. We have written a web application using asp.net mvc 2 as well as telerik mvc extensions. In this case we have a problem with the tab strip control. I have a link that is meant to load a partial view. This partial view contains...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Ajax and html events in chrome, firefox and Internet Explorer I have many select elements in a cart, when a select element changes option , a onclick event will be listened to , and an ajax function displayCart will execute. <select name="price"> <option value="peryear" onclick="dispCart('y',2,1100);">1100 Dollar/ye...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: icon in address bar isn't showen with jdbcrealm in tomcat i am trying to do a website with icon in address bar. it works in regular website. But i'm trying to use realm in tomcat (to protected my resources), the icon is in public role without any limitations. But it doesn't load the icon in address bar (even after ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get this resque job to work? I want to have a Resque worker get sentiment via the Viralheat API for tags for a brand instance (belongs to User) in the background, and then save the mood parameter of that response to a Tag. Update: I've revised the code and now the worker fails because it says undefined metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JAR Bundler using OSXAdapter causing application to lag or terminate I've created a simple Java application that each second for for 10 seconds consecutive seconds adds a new row to a JTable. It consists of three classes. The main class that gets called once the program is started public class JarBundlerProblem { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problem with INNER JOIN in a VIEW I need a view that Show each Location(including prénom_Nom, numéro_Teléphone, niv,no_Modèle, année) and all Paiements. Finally order by id_Location. I try this but its not Work CREATE View On_locations_Clients_Paiements AS SelectClients.prénom_Nom,Clients.numéro_Teléphone,Véhicul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 2D OpenGL ES Metaballs on android I have an array of points (balls) in 2D-space which I want to be displayed as 2D Metaballs. For learning purposes I implemented it on a canvas by * *create an array which represents each pixel *iterate through this array and set a value depending on the distance to every ball fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Read XML file in android I have an xml-file that contains data that I want to read. The code works in a desktop environment but I can't figure out how to store and read the file from an android device. Ideas? A: For write xml in android refer below link. Writing XML on Android For read xml there are mainly 3 ways 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type declaration in Haskell I just started learning Haskell. I decided to set myself a goal of implementing an old algorithm of mine http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.79.7006&rep=rep1&type=pdf As a start I wrote the following code phi [] = [1..] phi (p:pl) = (phi pl) `minus` (map (p*) $ phi p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to break down a number with another from list? I'm a bit confused on how to approach this problem. I know what I want to do but can't wrap my head on how to logically solve this problem. say I have a list: numlist = [10,4] and I have the following values in another list: datalist = [10,5,4,2,1] how do I break ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing a querystring value as part of an ActionResult I have an ActionResult return type inside my Controller which executes the default Index action. public **ActionResult** Index(int _page, string **tabIdx**) { if (tabIdx == null) ViewData.Add("TabIdx","0"); else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extending ValidationSummary in HTMLHelper to alter HTML output I have written my own ValidationSummary so I could change the output of the ValidationSummary however whenever I submit the form no warning messages are appearing. I then added a normal ValidationSummary on the same view with my new ValidationSummary and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using JFreeChart library to draw axis on an awt.Image I have a class that needs to be able to take in an image and add a set of axis. I don't feel like writing out the code myself and would rather be lazy and utilize the JFreeChart library. Here's what I have so far, which isn't doing anything as far as I can tell: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to access log4j configuration at runtime and echo its properties? i want to check if the logger configured properly, and anyway, what is configured at all. BTW stackoverflow is great. It remembered my not posted yet post through Firefox restart. This post!
{ "language": "en", "url": "https://stackoverflow.com/questions/7519273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gdb: is it possible to cast/reinterpret a sequence in terms of a user-defined struct that isn't present in debug symbols Below is the problem statement. At the bottom is my actual question if you end up just skimming the problem statement. edit I forgot to mention: I'm linking with --no-strip-discarded --discard-no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure Xcode to not go to Debug Navigator upon run? How to configure Xcode to not go to Debug Navigator by default, upon run? Upon <command-R>, i'd like to stay on Project Navigator, if possible. A: It is under Behaviors in the Preferences pane. A: To expand on Monolos answer: Go to Xcode -> Preferences...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MaxStepSize, MaxSteps seem to have no effect on NDSolve in MATHEMATICA I am a novice at mathematica so please bear with me! I am trying to solve a nonlinear PDE in mma using NDSolve. The solution process is cut short because of singularities occurring much before the time for the simulation runs out. I realize that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fastest way to check if a character is a digit? I am having issues with sqlserver's ISNUMERIC function where it is returning true for ',' I am parsing a postal code and trying to see if the second char (supposed to be a digit) is a 0 or not and do something different in each case. The issue is that I can't just ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: D3.js -- loading and manipulating external data I'm new to D3.js and am playing around with a variety of tutorials/exercises/etc, but my basic need for D3 is to load external data (usually JSON) and draw some interactive charts based on that data. The basic sunburst example is here: I successfully adapted it to my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is going wrong with my border layout in my swing app? I have a simple app where I want to show a large image in a scrollable panel. I'm using NavigableImagePanel from http://today.java.net/pub/a/today/2007/03/27/navigable-image-panel.html Firstly the result I'm getting - The image is currently a very small pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding prefix to serialized XML element I have the following class which implements IXmlSerializable: [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Xml.Serialization.XmlSchemaProviderAttribute("ExportSchema")] [...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom sorting algorithms' speed problem I'm doing a project where I manually create sorting algorithms. After several tests I found out that my heapsort is way quicker than quicksort (I think it should be the other way around), my selection sort is also faster than insertion sort. does anyone know what's the proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Defensive programming and exception handling A couple days ago, I have following theoretical questions on the exam: (a) Explain what is meant by defensive programming when dealing with exceptional circumstances that may occur during the execution of a program. You may refer to examples seen in class or use pseu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: iPhone: How to combine Long Press gesture and drag operation together on map? I've tried a number of things and to post code at this point would likely be confusing, so let me start with the concept. I need to somehow combine the operations of long press and touch drag into a single operation, something like LongPre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Maven Hides Web.xml from Eclipse and JBossAS Tools after Update Project Configuration I'm using Eclipse Indigo, with the "Jboss Maven Integration" and "JBossAS Tools" plugins from JBoss Tools 3.3 installed (none of the other twenty or so JBoss Tools plugins). The application is being deployed to a JBoss 4.2 using th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running lagged regressions with lapply and two arguments I am running multiple univariate regressions, like in this reproducible example: require(dynlm) data(USeconomic) US<-USeconomic vars<-colnames(US)[-2] a<-lapply(colnames(US),function(x) dynlm(log(GNP)~get(x),data=US)) a contains a list of 3 univariate regress...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keeping view-local variable in JSF 2.0 I faced this situation quite a few times, and I found my solution but not sure if it's a good one. I need to call some service which interacts with the database and then share the result between multiple components. Consider this example: <p:outputPanel id="myPanel"> <c:s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Constrain PEX code-under-test to a single method? Can the code-under-test in PEX be constrained to a single method? I am aware you can constrain it to assemblies and classes, but what about members? I am essentially trying to achieve 100% code coverage for the following method: public virtual bool GetLastSymbol(stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't see Xcode after Installer says "Successfully Installed" I had the following version of Xcode on my MAC mimi - Version: 4.2 (4C128) Location: /Developer Applications: Xcode: 4.2 (821) Instruments: 4.2 (4209) Dashcode: 3.0.2 (335) SDKs: Mac OS X: 10.6: (4C128) iPhone OS: 5.0: (9A5259f) iPhone Simulator: 3.2: (7W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: dictionary insert causes error 'an item with the same key has already been added' enter code hereI keep running into this exception with ASP.NET MVC 3 application. The project has two simple classess. Project and Orders. Creation of Project works fine but when I try to create an order it keeps failing with the excp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript ajax callback makes items list flicker I have a simple list of Reminders that a user can click and drag into a "delete drop zone" one at a time. It makes an ajax call to my Webmatrix webservice to delete the item. This all works great. However, in the javascript or ajax callback I am retrieving the remain...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# replace links, replace multiple line not working I want to go through all html links (<a hef="" ><image/></a>) and I want to replace them with only href values. To do that I use HtmlAgilityPack to get all the links and then I try to replace any outer html of the link with the href. result = result.Replace(l.Outer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EntityFramework4.1's .Local().ToBindingList() , How to filter then? Example Model: Customer -> Order contex.Order.Load(); orderBindingSource.DataSource = context.Order.Local().ToBindingList(); Then, how to filter? e.g. context.Order.Where(m=>m.customerID > 1) I want to get the BindingList implementation that stay...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Determine if running x64 or x86 operating system in MATLAB How is it possible in MATLAB to determine if the OS is x64 or x86? NOTE: I have found the computer function but it is mentioned that in case a x32 MATLAB is running on a x64 OS then it returns x32 (instead of x64) so this function will not do. A: From your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Amazon S3 Access Control List and Amazon SDK for .NET I have an ASP.NET MVC 3 app that uses Amazon S3 to store movie files. Right now everything is public so I can access the files. Let's say I wanted to share these videos but only if people purchased a subscription to my website (on register). How would I go about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I ensure the right user is logged in when a website is called by a website Sorry for the strange, recursive wording of the title, but I couldn't think of a better title. As I have alluded to before, I have 2 websites A and B, and I am integrating B into A, so that B is still accessible as a standalone site,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to stream data into GIT instead of passing in file names? We want to stream documents that do not exist in a file system (they are in a database) into GIT. Since there are thousands of documents, we dont want to create them on disk. We know that we can stream documents out of GIT using the GIT Blob cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Site layout only in the browser – really or not? Hello I'm really only just started to create their own websites and there and I need in the layout of the site. Not long thinking I downloaded the notepad++ and began to impose. My friends advised me to get dreamweaver to make it easier but it To facilitate the work, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Given a textarea, is there a way to restrict length based on # of lines? I have a textarea field and I want the user to be able to enter not more than 3 lines. Is that possible? A: Fiddle: http://jsfiddle.net/nvLBZ/1/ I have just (2 hours) created a script which always restricts the height of the text-area to 3 li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Print a simple text to a paper in Java I need to print to the default printer in windows with Java. I found some sample code on the internet. The code compiles without error. But when ran, I get the following error: ** Exception in thread "Thread-4" java.lang.NullPointerException at sun.awt.windows.Wprin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HashMap to return default value for non-found keys? Is it possible to have a HashMap return a default value for all keys that are not found in the set? A: Use Commons' DefaultedMap if you don't feel like reinventing the wheel, e.g., Map<String, String> map = new DefaultedMap<>("[NO ENTRY FOUND]"); String surname = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "185" }
Q: Unable to Customize EditForm.aspx with Document Sets in SharePoint 2010 I give...I am hoping someone has a good answer. I create a content type based on a Document Set (called A). I create a document library and allow this new custom content type to be added to the library. I add one column (say Car Phone) to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ext JS Combo box with a text box I'm new to Ext JS and I wanted to know if there is a way I could do something like this? (I understand, I can have the Combo box as editable instead of this. But wanted to know if I can do this.) A: It can be done, but you have to extend ComboBox. One of the things you need to chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sort and display documents based on industry which is fetched from each entity I have an .xml file which is structured as such: <documents> <item> <title>Document Title</title> <customer>Customer Name1</customer> <description>Description 1 here</description> <image height="100" width="100"></image> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help me understanding python's logging module and its handlers I really miss something basic about python's logging module. In the following code, I create a logger object (log) and add to it two handlers. One with 'INFO' level and one with 'WARNING' level. Both of them are supposed to print to stdout. I expect th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Executing CGI through Ruby web app behind Passenger I have a Rack app (call it Rails, Sinatra, etc.) running through Passenger with nginx as front server. I'm currently running on another place fossil-scm via CGI with multiple repos. I want to fuse those two making a request to the Ruby app so that the app can do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing variable from Magento I created a custom module in Magento that creates a variable with an array of order information anytime an order is placed. I now need to create some sort of mechanism or procedure that sends these variables to an external database. However, I'm not sure which route to take. Can someone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: URLs are inconsistently being redirected using ISAPI urlrewrite 3.0 I'm trying to create some friendly urls. * *search/real *searc/tpp everything is working fine except the browser changes to reflect the unfriendly url. Even though I am not specifying a redirect. Please see the last two lines of my .htacces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stopping a function with animations in it with jquery/javascript Im building a custom timed image slider for a site, and im stuck on a basic principle. I have a recursive function that starts on the pageload. Im wondering how to immediatly stop the function and then restart it at the beginning with an onclick. In t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to embed an excel pivot graph as a webpart? I have published my Excel workbook (which is one sheet with pivot-data linked to SQL Server and one sheet with stacked graph based on that data) to sharepoint 2010, and can view the chart fine via excel services xlviewer.aspx I would now like to have the cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP displaying as plaintext http://www.clare-ents.com/test/index.php Using a new host... I know it's something to do with .htaccess and I've got it in the root folder: AddType application/x-httpd-php .php But it still doesn't work. Any ideas? A: A HEAD request to that URL says: Content-Type: application/x-httpd-p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automatically overwrite the output file when running `gpg` (i.e. without being prompted)? If I have the same filename in the target directory, decryption fails. The command I'm using to decrypt: gpg --passphrase-fd 0 -o D:/Notification/mytest.txt --batch \ --passphrase-file D:/passphrase.txt -d D:/Notificat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: NSTableView drag cell to NSView Could someone nudge me in the right direction on this. I want to drag a NSString from a table cell to a NSView and then do something based on that string but the drag and drop stuff has my head spinning a bit. Anyway know of a straight forward tutorial that can explain all this. Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimization. Loading dialog doesn't appear right away when user submits a form I am working on a web application that allows user to view and interact with large (metabolic) networks displayed in SVG format. It can be viewd here link. I have fairly large amount of jQuery code that handles different events. Partic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use ThreadPool or Thread I had 1 collection which I was saving the content to a persistent storage. Then I ended up having 3 collections which i like to save to a persistent storage. At first I was using a ThreadPool to save one collection, but now I have 3 collections.Since each collection goes to a different stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }