text
stringlengths
8
267k
meta
dict
Q: Android: way to check if a string contains any values from array? I've tried searching for "Java check if string contains values from array", and other variations on that, but have not come up with anything so hoping someone can help me. I've got the following code that I would like to clean up: if (dateint.contain...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to change the connection string during an Azure VIP Swap I'm trying to setup Staging and Live environments in Azure (September toolkit) and I want a separate Staging and Live database - with different connection strings. Obviously I can do this with web.config transformations back in Visual Studio, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: GL_CLAMP_TO_EDGE resize behavior with PythonMagick Is it possible to resize an image with PythonMagick in the same way GL_CLAMP_TO_EDGE works for texture mapping in OpenGL, where the border colors are extended like this?
{ "language": "en", "url": "https://stackoverflow.com/questions/7600573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Assign/cast to object fields in a struct Sorry for this newbie question, I'm very new to C# and it's semantics. I have the following struct: public struct MT5Command{ public MT5CommandType Type{ get; set;} public AutoResetEvent ThreadWaitHandle { get; set; } public object InParam { get; set; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I tell the index of an array of objects in Ruby on Rails 3? I have an array of todos [Todo1, Todo2, Todo3] Each object has an attribute, :done_date I need to find the first instance of the object where :done_date => null THEN I need to know what index it is todos[N] so I can find the object before todos[N-1]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Bind Columns Property of a DataGrid Inside a UserControl? I have a user control with a datagrid inside. I want the caller to be able to do something like this: <local:MyControl> <local:MyControl.GridColumns> <DataGridTextColumn Header="Id" /> </local:MyControl.GridColumns> </local:MyControl> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS2008 project only compiles 1 C++ file in x64 target This is very strange, as mostly it compiles everything well, but this one project (the main DLL project, which links in many library projects) just refuses. It compiles only CK20_Test.cpp, then proceeds to link. If I exclude that one, it compiles only DebugInfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare elements in an array of string in Java I have to write a method that will compare elements in an array of strings and return the index of the largest element. It's going to be done recursively using a divide and conquer approach. I have an idea, and I was just looking to see if my idea was right or if it sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git - manual replay of commits from git log to a different repository? I have a repository with some commits. I want these commits replayed on a different copy of the repository in the exact same order, same commit messages, etc. I'm hoping there is some combination of git-log, patch, and git-commit that can re-run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use windows DLL (late bound) methods in C++? I've basically been trying to get this working for the last couple of days, but all of my attempts and all the examples/suggestions found online have failed. I'm trying to use Microsoft's "setupapi.dll" methods in implementing my own .dll to access a peripheral dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using rails to place markers on google maps from locations stored in DB OK so I added a google map into my site that lets users search for locations based on either city, state or by zip code that shows all shops of a certain type around them. It uses the places API to grab them, BUT I also have a table in my DB tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating stop-motion videos from images with PHP Is it possible, using PHP, to create a video file (Format doesn't matter at the moment) from a series of images? I'm not talking about making animated GIFs but real videos. A: Yes, but why would you want to? PHP isn't suitable for writing video compression software (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to publish a Netbeans Update Center on Java.net? I created a NetBeans based application and I want t publish its update center in the Java.net project's page. Any idea on how to do this? The page suggests using Webdav but is not working. Edit: I was able to do it by adding then in a folder in the downloads secti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to draw textures using stb_image.c I want to load this picture into a 2d texture and then draw it onto the screen. The main problem is loading the picture into a texture variable. The follow code output the correct width and height and rgba but how do I put the data into a 3d texture. #include <OpenGL/gl.h> #inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CAAnimation without animation? I am trying to switch view controllers in my app using CAAnimation. When I switch between these 2 particular view controllers I do not want any animation. Is this possible? If so, how would I achieve this? Thanks! A: How about setting the duration to 0: BOOL shouldAnimate = // here yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delay in Thread execution+Android After many trials of solutions (including posting questions on SO) I thouht will work fine. But no improvement. Coming to my problem, I am implementing an App that have a countdown timer. I am showing this on a button (Just using like a canvas by disabling the click event). I start...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to dynamically position a div under a fixed position div? I've got photo gallery app with a fluid layout. The #header & #controls are set to position:fixed so that when the user scrolls, they stay on the top of the window. The div that contains all the photos, #people, is positioned below the controls with paddi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinRT - Start an application on Windows boot? I'm working on a Metro style application in the new WinRT (.NET 4.5) framework for Windows 8, and I was wondering if it would be possible somehow for an application (through the registry or some other means) to register itself to start up when Windows starts as well. I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Use an Ajax response in JSP I have a JSP page which has nothing but a normal HTML table with five rows and five columns. Now I am making an Ajax call and get a response back. Now once I have the response back, I need the data to be filled in appropriate cells of the table. So my question is; * *Should I use JSON ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Export project to a zip with all sources, dlls, etc? Is there a tool that inspects a CS 2008 project and created a bundle of all files that can unpacked on a different machine to build the project? Basically I would like to give this to a smarter colleague and so he can help me figure out why it is not fetching the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Public key accepted with SSH, fails with git I am using gitosis for repository management. I have two other keys that work perfectly. I've recently added a third key. All keys work when I SSH into the machine (I get the error mentioned here as normal, and the server's auth.log says "Found matching RSA key..."). Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Replace content with jQuery.fn.load I'm trying to write a client script to use .load in a non-typical way. I'm working with another site and I don't have access to change their generated code, so I have to do everything on the client side. The page looks something like <html> <!-- the head --> <body> <div id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make universal class method? Is there any way to make a class template function? So for example //Warning: this is conceptual pseudo-code template<typename TemplateClass, TemplateItem> TemplateClass &TemplateClass::operator=(TemplateItem &B) { Item = B.Item; return *this; } //or... template<typename ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - get color name from rgb i work now with GD library on PHP and i'm trying to get the pixel color name ,i mean : green , red , blue , etc... i'm getting the color this way : $rgb = ImageColorAt($image, $X, $y); $r = ($rgb >> 16) & 0xFF ; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; now , how can i find it this co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dynamically created divs aren't clickable Can't dynamically create a div with a clickable class: HTML: <div id="line1"> <div class='clickMe'>old clickable text</div> </div> <div id="line2"> <div class='dontClickMe'>old unclickable text</div> </div> <div id='button'>button</div> Javascript: $('.clickMe').c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iterate array using range This is what I want to do a = [1, 2, 3, 4] a[1] = 0 a[2] = 0 one way to do this is to loop (1..2).each { |x| x = 0 } is there a way to do this somehow with ranges or splats? something like a[(1..2)] = 0 A: a = [1, 2, 3, 4] a[1..2] = [0] * 2 p a #[1, 0, 0, 4] You can't just type a[1..2]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Gradually or smoothly change object size (Checkboxlist)? C# question Here is what I am trying to do. When I click a button, I want the checkboxlist to smoothly change from say (200,10) to (200,100) in size. I am successful at getting to size to change instantaneously, but I want it to look smooth. Here is the code I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone Core Data - cannot fulfill a fault error I have three classes, A, B and C. A is the main class. When the user wants to see the list of all objects that were purchased, Class B is called from A and shows the list of objects in a core data entity. Inside class B, the user can buy new objects (in-app purchase). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Concatenate fields from one column in one table into a single, comma delimited value in another table Any help that can be provided to a Access and VB noob would be greatly appreciated. What I'm trying to do is concatenate the values from one table and insert it as a comma delimited value into a field in another ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: backbone's delegateEvents issue I have this situation with backbone: events: { 'click': 'test1', 'click .modify': 'test2' } When I click on .modify is fired both test1 and test2. How to solve? http://jsfiddle.net/keepyourweb/VU8pE/1/ A: I would have thought that e.preventDefault() would have worked too... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In JavaScript, what does the term 'side-effect' refer to? Does it mean, exclusively, that a variable is being written? A: I don't think the term has a special, exclusive defined meaning in JavaScript. It can mean the same as everywhere else. A: This isn't a formally defined term in JavaScript, but I see it most co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MySQL Subquery Optimization The Query: SELECT a FROM table1 WHERE b IN (SELECT b FROM table1 WHERE c = 2); If the subquery returns zero results, mysql takes a long time to realize it before it finally returns an empty result. (2.5s when subquery is empty, 0.0005s when there is a subquery result). My question: is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PlotCanvas on a wx.Panel? I'm having difficulties with the wx.lib.plot.PlotCanvas module, getting it to display in a panel. Can someone please help me understand what I'm doing wrong? #!/usr/bin/python import wx import logging import wx.lib.plot as plot class PlotCanvasExample(wx.Panel): def __init__(self, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can someone write this code with better logic? I am stuck with this problem for 2 days. Can someone help me with the logic ? I am working on C++ programs for good algorithms. I am now working on the Danielson-Lanczos Algorithm to compute the FFT of a sequence. Looking at mmax=2; while (n>mmax) { istep = mmax<<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery validation code for all checkboxes on a form I have a Form that generates a list of records with a checkbox for each record next to it. If the user does not check any of the records and hits submit, then a dialog box should warn him saying "you did not check any records". If he chooses to continue, then he w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good compression algorithm for small chunks of data? (around 2k in size) I have a system with one machine generate small chunks of data in the form of objects containing arrays of integers and longs. These chunks get passed to another server which in turn distributes them elsewhere. I want to compress these object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MySQL error when inserting data containing apostrophes (single quotes)? When I an insert query contains a quote (e.g. Kellog's), it fails to insert a record. ERROR MSG: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's','Corn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: backbone event trigger I want to trigger a custom event from my backbone view class then where I Instantiate the view I want to listen for the event. Simplified Example: var view = Backbone.View.extend({ render:function(){ this.trigger('customEvent', "working"); } }); // Separate js file with jqu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to make a small transparent modal overal to signify loading data? I'm sure this has been asked before, but I've had no luck finding it. In my app data is loading synchronously, which locks up the app. I've tried asynch loading, but that doesn't work with the JSON parser. To denote that the app isn't frozen, just...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need more precision from fprintf - Matlab M-File fprintf('\n\nn!\n') for i=[1:length(timearray)] fprintf('%s \t %d \n', stringarray{i},factorial(timearray(i))) end Output n! microsecond 1 minute Inf hour Inf day Inf month Inf year Inf century Inf I'm tryin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining two functions not working I attempted to combine two functions in the code below. All seems to be working except I cannot get the variable currentImage.metaData.something to work in the second function. I appreciate your advice. <script type="text/javascript" src="code.photoswipe-2.1.5.min.js"></script> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RootViewController - tableView:cellForRowAtIndexPath - Load image from assetsLibrary StackOverflow friends and colleague programmers, My RootViewController (a flowerTableView on a view) should display cell's with title, subtitle and an image thumbnail (loaded from the camera roll). A very basic table I guess. All c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rspec testing conditional routing constraints I'm trying to write some rspec integration tests to test that my conditional routes are routing correctly, but I'm getting a bunch of problems. In routes.rb: root :to => "error#ie6", :constraints => {:user_agent => /MSIE 6/} root :to => "protocol_sets#index", :constra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is this design in 5NF? A user can have only one blog (the user owns the blog) Blogs can have multiple posts. Groups can have only one blog (but no particular user owns the blog, it is assumed the group owner created the blog thus userid is only an attribute of user blogs not group blogs so subtyping is needed) When...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL Order/limit By issue i have a problem with a script i'm creating. I am using the PHP/SQL Statement ORDER BY. I have a topsite where i use the script below $sql = "SELECT * FROM topsites WHERE categorie = '".$_GET['c']."' ORDER BY in DESC, out DESC LIMIT ".$perpage.""; And i need to know if there's a way i ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Editor to handle merge conflict Is there an editor that recognizes merge conflict tags and displays the sections side by side? Preferably something like p4merge? <<<<< local ... ========= .... >>>>> remote A: our tool ECMerge (http://www.elliecomputing.com) does that, it has a Open Conflict file menu which works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use 2 different examples table in Cucumber/Cuke4Duke Is it possible to somehow construct a Scenario which uses two different Example tables in different steps? Something like this: Given I log in When I view a page Then I should see <goodText> Examples: |goodText| |abc| And I should not see <badTex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Objective C: Accessing constants from other classes I have a constant in one class that I want to access from another. I want to access these: #define kStateRunning 1 #define kStateGameOver 2 #define kStateMenu 3 which are in my GameController.h from Level1.m. In Level1.h I have @class GameController as well as an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: cleaning up $PATH in bash My path has a lot of entries that were added long ago by scripts. They are not in my .bashrc, .bash_profile, or .bash_login. I'm worried that resetting my path in .bashrc will have undesirable long-term results. Is there a way to find where things have been added to my path and remove them ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: hive sql aggregate I have two tables in Hive, t1 and t2 >describe t1; >date_id string >describe t2; >messageid string, createddate string, userid int > select * from t1 limit 3; > 2011-01-01 00:00:00 2011-01-02 00:00:00 2011-01-03 00:00:00 > select * from t2 limit 3; 87211389 2011-01-03 23:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Personalize the Google Maps badge I would like to personalize the position badge on a Google Map (with API). I know it's possible to change the appeareance of the badge with CSS or image. But how I can do that ? This is what I want : The small rectangle is the normal view, and the big rectangle is the clicked view ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net c# ExecuteReader() error The following code produces an error. dbo.getit works fine when I call it directly on the server. The error occurs at cmd.ExecuteReader() . What am I doing wrong? string user; string pw; SqlDataReader dr = null; SqlConnection conn = new SqlConnection("Data Source=xx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL - Get matches where match is NULL or parameter with one-to-many Table Rule: RuleID RuleName 1 Rule1 2 Rule2 3 Rule3 4 Rule4 Table Equipment: EquipmentID EquipmentName EquipmentCode 1 Equip1 E1 2 Equip2 E2 3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using 'printf' to return string, not print it This may sound strange, but here goes. I like using this technique of building a string in php printf(__('This is %1$s, this is %2$s'), myFunction1(), myFunction2()); Obviously this directly prints the results whenever the function is called, but I would like to use thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: how to pass mysql_insert_id() to either $_POST or form action? I have a form page in which either an INSERT or an UPDATE query is submitted, depending on the presence/absence of an ID (and when there's an ID it's used to retrieve the record and pre-populate the form). In either case, the processing is in form.php so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a UIWebView's base URL I have a UIWebView where relative links fail to load properly, because the view was loaded from a data object after the html data has been locally manipulated, not direct from a URL. Now all the relative links on the page fail, because the UIWebView doesn't know what they're relativ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logical && operator Having an unpredicted outcome using the && logical operator. If I link more than 2 expressions, the if clause fails. Is there some limit to the number of expressions that can be concatenated using &&? if (tTellerProN.checked && tCareProN.checked && tSalesProN.checked) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF Service Config File? Can someone please help with how I configure my WCF service. The environment is IIS6 and the service can only be accessed via https (the firewall only allows connections to the server on port 443). So, when I access https://myservice.com/Service.svc it gives me the URL of the WSDL file, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TabView missing in MFMailComposeViewController I am using MFMailComposeViewController to send emails, and the screen looks like this I have a TabViewController in my view, so now when the MFMailComposeViewController pops out the TabView cann't be seen. What should i do to get the TabView bottom of the screen. A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: does python's urllib2 do connection pooling? Really what I'm wondering: is python's urllib2 more like java's HttpUrlConnection, or more like apache's HttpClient? And, ultimately I'm wondering if urllib2 scales when used in a http server, or if there is some alternate library that is used when performance is an issue...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there pure virtual functions in PHP like with C++ I would have thought lots of people would have wondered whether this is possible but I can't find any duplicate questions... do correct me. I just want to know whether PHP offers pure virtual functions. I want the following class Parent { // no implementation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: ThreadPool not starting new Thread instantly I have a C# Windows Service that starts up various objects (Class libraries). Each of these objects has its own "processing" logic that start up multiple long running processing threads by using the ThreadPool. I have one example, just like this: System.Threading.Thread...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Which browsers allow popups on which events Could we list how each of the major browsers support popups (i.e. open a new window, target="_blank", etc.) For ex: most allow popups on the click event A: The basic rule of thumb is that popups are allowed ONLY in response to user-triggered events, of which click is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Programmatically convert (save) files (i.e. docx, xlsx, txt) to XPS by sending them to the “Microsoft XPS Document Writer” printer Using C# 3.5, I’m trying to programmatically create XPS files by sending them to the “Microsoft XPS Document Writer” printer. I’m able to set the print queue, but I’m unable to add a jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript not clearing box in IE Internet Explorer, the bane of my development life, refusing again to do what other browsers seem to do effortlessly. I am trying to clear the browse code/value if the user selects a file type that isn't allowed. Works in FF but not IE 9. Thanks <script type="text/javascript"> <!-- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mount WebDAV share on Windows programmatically and show login dialog only if required I need to mount WebDAV share programmatically on Windows. I do not know the user credentials, each user has its own login/password. Some servers allow anonymous access. How do I mount WebDAV and present login dialog only if reques...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Full Oracle 10g XE Database Can't Be Exported? The simple version of this question is: Is it possible to export all the data from an Oracle 10g XE database that has reached it's 4GB maximum size limit? Now, here's the background: My (Windows) Oracle 10g XE database has reached its maximum allowed database size of 4G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql update a table How can I update a table and create column with the id numbers for each entry in that ID column? The table currently looks like: city ------------- New York Los Angeles London Belgrade I need the column in this table that would have the ID number of each city which would be orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which method is used to terminate the execution of Java program in between? We used functions like exit() in C++ to abnormally terminate the execution of program, which function can we use in Java. For ex :- In following program I want to terminate the execution as soon the value of i is printed for 1st time. //foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to show a error when a modal popup extender is active I have a ModalPopupExtender to create new users. When the user enters the new user details and tries to enter the same email Id which is already registered then I want to show a error. Create user: if (emailcount != 0) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does view.startAnimation(animation) not work when called from an event? I have created a custom view which uses an dummy TranslateAnimation to setup some layout properties. I use the Interpolator to calculate height, and apply it to a view inside the applyTransformation() method of the TranslateAnimation. This i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: php not able to execute system commands For some reason, the following php script when called via apache, is not returning results... is there a system security setting in php.ini somewhere to allow system commands? <div style="background:#000;color:#fff"> <?php $cmd = "/bin/date"; $output = system($cmd); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to submit unchecked checkbox also If checkbox is not checked, clicking on form submit button does not submit any data. Some checkboxes may be not present in form depending on form fields selected by user. So submit controller has no possibility to determine if the unchecked checkbox was present in form or not. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Android app won't push from eclipse/adb to phone I have a rooted Samsung Galaxy S (Epic) with syndicate Rom Frozen 1.2 ROM. I've developing apps. When the ROM cooks made the ROM, I think that they left out some important things. I first had to fix "am" by added the shell to the top. Now when I try to run apps dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reload Helper from Rails Console I'm calling helper methods from the Rails console in Rails 3 like this: >> helper.my_method(parameter) >> #=> some result However, if I change the helper method the changes are not reflected when I call the same method again. I have to exit and run rails console in order to see the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WaitforElement timeout error? I am converting my coding to Junit4(webdriver) . When I run my code in Eclipse I get an error in the below code, for (int second = 0;; second++) { if (second >= 60) fail("timeout"); try { if (isElementPresent(By.cssSelector("button.MB_focusable"))) break; } catc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: info in array comes out blank I seem to be having a problem and im a little lost on how I can proceed to fix it. Im trying to echo out some data from an array into another array, but the problem is without me using print_r or echo the info comes back blank, I dont know why it keeps doing that. This is what I have an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the size of longest sublist from a list in scheme I would like to get the size of the longest sublist from a list. for example (getlongest ((a) b (d e m n) (a d (c m g c y u m l d ) a) )) returns 9 since (c m g c y u m l d ) has size 9. I wrote this function (define getlongest (lambda (ls) (cond ((nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: slow jquery performance I have about 200 small icons (4kb) on my web page on click on a menu i want the icons to dim out im using this function if (which!="all") { $(function () { // SET OPACITY TO 20% $("."+which).stop().animate({opacity: '0.2'}, 100); })...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to transfer dlls between projects I wrote a whole bunch of class libraries for silverlight. I want another programming group to use them, but not to see my code. What is the best way to distribute them so it is easy for them to use? I thought at first that it would be as simple as copying over the class librar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding embedded scripting to a PHP page I have a class like this: class Person { function __construct($name) { $this->name = $name; } function show() { echo $this->name; } } On my PHP page, I'd like to have a textbox that lets me either type in a custom-language script or a PHP scrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GWT-Platform Gatekeeper and Nested Presenters I would like to know some things about gwtp gatekeeper: * *if canReveal() method returns false, what happens? In my tests, i've been redirected to the defaultplace, i can change it? *having nested presenters, like: MenuPresenter - Only visible for admins. HomePresent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can the second and third operand of a ?: expression be statements? I get a syntax error with false ? {var x = 1;} : {var x = 2;} But when just use expressions for the last two operands, I don't run into any problems. Do I have to resort to conditionals? A: That type of thing is done with an IF statement. if (fal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can i use C++ vectors in C code in VS2008 i am running c code in vs2008. I was curious if i can mix this code with c++ code A: The short answer is yes. However, there are some nuances. C++ generally supports a large subset of C. It means that you can almost anything available in C (such as functions, libraries etc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Fragment and getWindow() public class AircraftFragmentTab extends Fragment{ private String ac; public AircraftFragmentTab(String AC){ ac = AC; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle save...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Getting Vim to recognize XML I would like Vim to help me indent my XML files like my C code. However, when I use gg=G It just sets everything to the left. Do I need to designate a syntax? Is XML recognized as a language? A: Yep, :set syntax=xml should work. In vim 7.3, this sets :set indentexpr=XmlIndentGet(v:lnu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Manually fire Django 1.3's traceback/exception log I'm using djutils's async decorator, which has the nasty side effect of not sending traceback emails when an exception is raised, since it runs on a separate thread. It does, however, have the following place to put a logger. def worker_thread(): while 1: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Inode of directory on mounted share changes despite no change in modification time I am running Ubuntu 10.4 and am mounting a drive using cifs. The command I'm using is: 'sudo mount -t cifs -o workgroup="workgroup",username="username",noserverino,ro //"drive" "mount_dir"' (Obviously with "" values substituted for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to manage two different entities in SOLR? I have several different entities I want to index in SOLR, for example: * *users *products *blogs All are completely different in schema. All are searched for in different places in my app. Is there a way to do it in the same core? Is it the right approach? Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: For BlackBerry, how can my java program select a specific menu item in another BlackBerry program? How can I simulate a menu item selection for an exact menu item like for example, "New Note" ? A: If you want to create a new memo then simply use the Invoke class and supply it with a MemoArguments object. Note that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework adding / deleting a new object Suppose I add a new object to an EntityCollection: myThingHolder.Things.Add(myThing); ... then later, using the same ObjectContext, before ever saving to the database, I do: myObjectContext.Things.DeleteObject(myThing); I get an exception: "The object cannot be delet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: respond to key press javascript I'm sorry if this is basic, but I've searched and found nothing that works. I want to load a web page. When that page loads, it displays an image. I want to have the page automatically start listening for a right arrow key press. When that happens, a function in my script will ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Access vSphere 5, ESXi, Virtual Machine environment: processes, file system We have a vSphere 5 Hypervisor that runs few Windows XP/Vista/7 virtual machines with VMWare tools installed on each. Would like to be able to: * *power on a VM by its name *connect an ISO image from a local machine to a powered on VM *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: doubts about foursquare API My question is not about FourSquare API and its functions, but about more simpler details that are not well explained on Foursquare API explanations. Thank you very much in advance if someone wants to help me with this doubts: * *Foursquare API is a framework you can use to build appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating File Download Links MVC3 Razor View with Model I am attempting to create links in my view so the end user can download the files in my model. In internet explorer I can right click and download from the link but I cannot left click (it does not open the file). Firefox gives me a message when I click the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TestNG ERROR Cannot find class in classpath I'm trying to run testng via command line and I have following things in classpath: * *testng jar, jar of compiled test case file, and other required jars. *testng.xml points to appropriate class in the hierarchy. Testng doesn't run instead it throws: [TestNG] [ERROR] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Share not showing up in PROFILE_ID/feed, though realtime notification sent I have a realtime handler setup for an app, and it gets a notification of change in a user's feed (changed_fields': ['feed']) due to a Share of someone else's public Wall Photo. However, when I look at the https://graph.facebook.com/USER_ID...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery distinct array I have array textbox something like below <input type="text" name="txtname[]" value="single" /> <input type="text" name="txtname[]" value="twin" /> <input type="text" name="txtname[]" value="single" /> <input type="text" name="txtname[]" value="dulex" /> <input type="text" name="txtname[]" valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: clipping embedded svg content I have an html site where I've placed an SVG image inline within a table 'td' like this: `<td><svg id="mySVG" preserveAspectRatio="xMinYMin meet" viewBox="0 0 500 500" height="100%"><path d="M140.034,...</svg></td>` I've included zoom-in/zoom-out control buttons like this: <input type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between function with parentheses and without Possible Duplicate: Functions vs methods in Scala What is the difference between def foo = {} and def foo() = {} in Scala? In scala we can define def foo():Unit = println ("hello") or def foo:Unit = println ("hello") I know they are not the same but what...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }