text
stringlengths
175
47.7k
meta
dict
Q: Check if string in strings I have a huge list containing many strings like: ['xxxx','xx','xy','yy','x',......] Now I am looking for an efficient way that removes all strings that are present within another string. For example 'xx' 'x' fit in 'xxxx'. As the dataset is huge, I was wondering if there is an efficient...
{ "pile_set_name": "StackExchange" }
Q: How to get python to generate the tweedie deviance for xgboost? Using statsmodel's GLM, the tweedie deviance is included in the summary function, but I don't know how to do this for xgboost. Reading the API didn't help either. A: In Python this is how you do it. Suppose predictions is the result of your gradient...
{ "pile_set_name": "StackExchange" }
Q: Adding formula to Excel with C# - making the formula shown I wanted to add formulas to an Excel workSheet. I managed to do so with the Formula property. The problem is that when I open the worksheet in Excel, I can see that the formula works - but I can only see the result in the cell. I can't see the formula that...
{ "pile_set_name": "StackExchange" }
Q: Get value of Id not displayed in the Repeater from a button event of a dialog I'm having a problem trying to get the value of the ID item that has been clicked in an asp.net Repeater. My Repeater has an image that opens a dialog, and from that dialog opened, when I click Approve, I would like to get this value in ...
{ "pile_set_name": "StackExchange" }
Q: Are there researched approaches to learning a subject more quickly? TLDR at bottom. So from my knowledge(correct me if I'm wrong) there is no evidence to suggest that we can improve general intelligence. But what about improving skills/intuition in specialized fields like programming or mathematics? I went throug...
{ "pile_set_name": "StackExchange" }
Q: QDataStream empty after call of QDataStream::writeRawData I have a rather odd problem, using QDataStream, or at least it is odd to me, because I don't understand the behavior at all. Of course my problem is from a big project, but I managed to reproduce that odd behavior with a minimal example, which I'll describe...
{ "pile_set_name": "StackExchange" }
Q: Rendering optimization using nested state in React I have a React app where I believe -though not certain- that "nested state" causes me delays. Here's the thing: I keep my state in a variable called dataset. dataset is an array of objects like this: (5) [{…}, {…}, {…}, {…}, {…}] and each object has the followi...
{ "pile_set_name": "StackExchange" }
Q: Resolve circular references from JSON object If I have a serialized JSON from json.net like so: User:{id:1,{Foo{id:1,prop:1}}, FooList{$ref: "1",Foo{id:2,prop:13}} I want to have knockout output a foreach over FooList but I am not sure how to proceed because the $ref things could throw things. I'm thinking the so...
{ "pile_set_name": "StackExchange" }
Q: Why is urlparse.urlenparse works inconsistent? When netloc is empty urlparse.urlunparse is inconsistent: >>> urlparse.urlunparse(('http','','test_path', None, None, None)) 'http:///test_path' >>> urlparse.urlunparse(('ftp','','test_path', None, None, None)) 'ftp:///test_path' >>> urlparse.urlunparse(('ssh','','tes...
{ "pile_set_name": "StackExchange" }
Q: Is each compact metric space a subset of a compact absolute 1-Lipschitz retract? A metric space $X$ is called an absolute $L$-Lipschitz retract if for any metric space $Y$ containing $X$ there exists a Lipschitz retraction $r:Y\to X$ with Lipschitz constant $Lip(r)\le L$. Question. Is each compact metric space iso...
{ "pile_set_name": "StackExchange" }
Q: Summarising data using tidyr/dplyr functions Below is my Data frame: Species Type Contents (kg) 1 T f 0.0710000 2 T f 0.1100000 3 W f 0.0200000 4 W f 0.0200000 5 S f 0.2100000 6 S f 0....
{ "pile_set_name": "StackExchange" }
Q: What is the best way to implement an echo server with async i/o and IOCP? As we all know, an echo server is a server that reads from a socket, and writes that very data into another socket. Since Windows I/O Completion ports give you different ways to do things, I was wondering what is the best way (the most effic...
{ "pile_set_name": "StackExchange" }
Q: unpack_from requires a buffer of at least 1164 bytes I'm using struct to parse fixed width strings. However, I'm having some trouble with dealing fixed width strings larger than 1000 bytes. For example, when I execute the following code: import struct fmt = '2s25s16s1s40s2s1s1s2s9s1s6s10s25s2s2s9s8s2s2s4x8s2x2s2s2...
{ "pile_set_name": "StackExchange" }
Q: Cannot import markdown because of COMMAND_LINE_LOGGING_LEVEL I've got a weird error where I can import markdown in Python, and I can import markdown in python inside the Django runserver, but I get the following when trying to import markdown inside of gunicorn's app server. * ImportError: cannot import name COMMA...
{ "pile_set_name": "StackExchange" }
Q: Could the earth have another moon? First, to clarify: I'm not asking if perhaps there's a moon that we haven't found yet. The question is, theoretically, would the earth be able to have another stable moon in addition to the current one? Or, if the orbit couldn't be stable, why not? How large/small of a moon would...
{ "pile_set_name": "StackExchange" }
Q: Why shouldn't I go mad? In Fallen London, what are the disadvantages to going mad due to high Nightmares? The game says that I'll get trouble at Nightmares 5 and "something bad may happen" if it gets to 8. What's the bad thing, and is it worth spending Echoes on laudanum to keep it away or to keep my Nightmares be...
{ "pile_set_name": "StackExchange" }
Q: Finding the change in basis vectors from a linear transformation At about $4:00$ my question pertaining to 3Blue1Brown's video of a collection of linear algebra questions begins. The video is here. After a linear transformation, the vector changes, but so do the "boxes" in the "graph" of the vector space, if that...
{ "pile_set_name": "StackExchange" }
Q: How to do something when Enter-key is pressed on NSTextField I'm writing an app for the Mac using Swift. I write a string inside a NSTextField object and I would like to save it in a .txt file. I would like that to happen as soon as the user presses Enter-key. My method .writeToFile() is ready, I cannot figure o...
{ "pile_set_name": "StackExchange" }
Q: How do I change the color of text I'm drawing with node graphicsmagick? I'm trying to output white text on a red background but the text is outputting as black. As far as I can tell, there's no fontColor or (thinking with my CSS hat) color method I can call on it. I was under the impression that fill would handle ...
{ "pile_set_name": "StackExchange" }
Q: How do I add a click event to trigger a JavaScript event in ClojureScript using Reagent Hiccup I have just started using Reagent and am very new to Clojure. I have created a mobile menu function and want the mobile hamburger menu to be clickable in order to show the actual menu. When clicked on again, the menu mus...
{ "pile_set_name": "StackExchange" }
Q: Do I wait or do I have to do something about it? Nooby question here, I payed/sent an amount and it failed somehow, so I tried again and again. I checked their website and it´s all "failed" or incomplete. But is has a checkmark(sent) on Electrum. This was saturday, today is monday. Now my question is, do I just w...
{ "pile_set_name": "StackExchange" }
Q: How to enable offline support when using HTML5 history api What are the best practices (and how to go about doing it) to support offline mode when using html5 history api for url rewrites? For example, (hypothetically) I have a PWA SPA application at https://abc.xyz which has internationalization built in. So when...
{ "pile_set_name": "StackExchange" }
Q: Rails 4 - how to get a click to display a partial view in another ? I have a site where I want categories to be displayed at the top of the page as drop down buttons. Once you click on the the button, it will show a list of items. Upon clicking on the item (<li> element) the other items related to it should appea...
{ "pile_set_name": "StackExchange" }
Q: Extracting tuples from a list in Pandas Dataframe I have a dataframe with 12 column. I would like to extract the rows of a column depending on the values of another column. Sample of my dataframe order_id order_type order_items 45 Lunch [('Burger', 5), ('Fries', 6)] 12 Dinner [(...
{ "pile_set_name": "StackExchange" }
Q: Is the adjoint matrix $A^*$ defined? Let $A=(a)$ be a $(1\times 1)$-matrix with entry in an arbitrary commutative ring with identity, is the adjoint matrix $A^*$ defined? A: For a generic $1\times 1$ matrix over a commutative ring $R$, the adjugate (or adjoint) matrix is $I=(1)$, see wikipedia. Complex conjugat...
{ "pile_set_name": "StackExchange" }
Q: Shifting the values of a column in pandas dataframe one month forward Is there a way to shift the values of a column in pandas dataframe one month forward? (note that I want to thift the column value and not the date value). For example, if I have: ColumnA ColumnB 2016-10-01 1 0 2016-09-30 ...
{ "pile_set_name": "StackExchange" }
Q: Orthographic projection of 2D SVG texture map onto 3D SVG sphere Background Looking to project a 2D texture map onto a 3D surface. Texture & Globe The SVG source for the texture map is online: The crack data without gradients, simplified: The SVG source for the sphere is also online: Problem When the texture ma...
{ "pile_set_name": "StackExchange" }
Q: jQuery - How to check the size of the response object in an AJAX call? I want to know the size (in kbyte / byte) of the response to an ajax call (.get, .post, .ajax) - any ideas? Thanks! A: I figure you 's best check this size in the debugger tools of your browser. You can get the data length, as suggested by Jo...
{ "pile_set_name": "StackExchange" }
Q: TypeError: _init_subclassed_network() got an unexpected keyword argument 'input' when using TensorFlow Keras I built a model as the following code : model_input = Input(shape=(449, 8, 1)) x = Conv2D(64, (25, 20),padding='same', input_shape=( 449, 8, 1),activation="relu")(model_input) x = BatchNormalization()(x) x...
{ "pile_set_name": "StackExchange" }
Q: How to show an alert on the success url I want to display a message that form has been successfully submitted when the user gets redirected to success url but I cannot find a solution to do it. Please help.Thanks! views class FeedbackCreate(CreateView): model = Feedback form_class = FeedbackForm templa...
{ "pile_set_name": "StackExchange" }
Q: How to solve SQL Server Error 1222 i.e Unlock a SQL Server table I am working in a database where I load data in a raw table by a data loader. But today the data loader got stuck for unknown reasons. Then I stopped the data loader from windows task manager. But then I again tried to load data in the raw table but ...
{ "pile_set_name": "StackExchange" }
Q: rails: render a template into a variable I want to get my templates rendered and the html/json saved in variables in some actions in my application. Something like: def show @var = Var.find(params[:id]) x = render "tmeplate1", format: :json render nothing: true end When I call this actions I get an error:...
{ "pile_set_name": "StackExchange" }
Q: How to Identify handling event in Lightning component I have a lot of component in my Org. In one component Iam seeing the registered the event,How to come to know where is the handling Event? A: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/inspector_intro.htm Use lightning chrome i...
{ "pile_set_name": "StackExchange" }
Q: Awk commands find and replace string and print every thing after key word New to Linux commands.. What syntax would I use to find and replace a string with each line starting with "Data Centre:" Address information that is different on every line" but ends with the word Site: and I need to keep the site details th...
{ "pile_set_name": "StackExchange" }
Q: How to rename database in multi-user mode I am working on SQL SERVER 2008 & 2008 R2. How can I rename a database in multi-user mode? I am using sp_rename but it returns this error: Msg 15225, Level 11, State 1, Procedure sp_rename, Line 338 A: You can't rename a database while it is in use. Either wait for a ma...
{ "pile_set_name": "StackExchange" }
Q: FORM_DIRECTIVES here we can read that we need FORM_DIRECTIVES to work with ngForm or ngSubmit but for me it is working the same without the FORM_DIRECTIVES include. Can someone tell me why? A: In Angular2 final @NgModule({ // only one of these is requured if only one is used imports: [FormsModule, ReactiveF...
{ "pile_set_name": "StackExchange" }
Q: Can't play wav file from Javascript in Firefox for Mac I have the following html file that plays a wav file when the user hovers over the 'Play' anchor tag. It works perfectly on IE, Chrome, Firefox, Opera, Safari on both Windows and Mac - except for Firefox on the Mac which does not play the file. We know the fi...
{ "pile_set_name": "StackExchange" }
Q: Regex: captures, groups, confusion I can't seem to figure out captures + groups in Regex (.net). Let's say I have the following input string, where each letter is actually a placeholder for more complex regex expression (so simple character exclusion won't work): CBDAEDBCEFBCD Or, more generically, here is a stri...
{ "pile_set_name": "StackExchange" }
Q: "No explicit conversion of Symbol into String" for new records in rails 4.0.1 (only) After my rails 4 upgrade, trying to create a new record for any of my ActiveRecord classes gives No explicit conversion of Symbol into String For example, here is my links links_params method def link_params params.require(:lin...
{ "pile_set_name": "StackExchange" }
Q: Fill gap created by Exclusions A gap appears at the locations of Exclusions at t=1,t=1+t0 when the top slider for t0 is set to Play. How can these gaps be avoided or filled in? Manipulate[ y[t_, t0_] := 1/(1 - (t - t0)); y0[x_] := y[x, 0]; yT[x_] := y[x, t0]; Plot[{y0[t], yT[t]}, {t, -3, 7}, Exc...
{ "pile_set_name": "StackExchange" }
Q: Certain Arabic text gets incorrectly shown while other Arabic text gets showed normally? I'm developing an app with Arabic text in it.. My phone supports Arabic so the text gets displayed correctly.. the weird problem is that: if I copy an Arabic text that i want from a.txt file and put it into an EditText, the Ed...
{ "pile_set_name": "StackExchange" }
Q: toolset for wordpress theme development recommendation What are the best toolset you can recommend in developing wordpress theme? Are the tools you use to make the workflow fast? Actually I'm looking for a stacked of codes or snippet that developers gathered and just reuse it in their development. (e.g. the wordpr...
{ "pile_set_name": "StackExchange" }
Q: Как задать div до конца страницы задача состоит в том, чтобы задать блок div до конца страницы, типо копирайт, как и на этой странице, однако если на странице текста мало, то этот блок не дотягивает до нижнего края. Даже если устанавливаю отрицательный margin-bottom все равно остается маленькая полосочка .copyrigh...
{ "pile_set_name": "StackExchange" }
Q: php mysql insert I am pretty new in php programming and i'm facing with one trouble here. Probably it will be simple for all of you, but ok.. When i try to insert one row into mysql table named "novica" first time it works ok, but after that i'm unable to add any new row's. But when i delete this row, i can add on...
{ "pile_set_name": "StackExchange" }
Q: How to check if returned array has atleast two elements? Here is my code:- Repository.DB.Table01Repository.AsQueryable().Where(item => (item.Name.Split(' ')[1] == null)).ForEach(items => _VerifyList.Add(items.Name.Trim())); I split 'Name' by ' ' and if it does not have second element, I need those records. Thank...
{ "pile_set_name": "StackExchange" }
Q: git での pushRemote と remote リポジトリの、 git の config のファイルを見ていました。 branch に対する設定として、 branch.BRANCHNAME.pushRemote と branch.BRANCHNAME.remote を、別々に設定できるようになっていることに気付きました。 質問 git の branch の設定として、 pushRemote と remote の違いは何ですか? A: git-configによると https://git-scm.com/docs/git-config branch.<name>.remote When on...
{ "pile_set_name": "StackExchange" }
Q: Setting a maximum response time in a spring 3.0 application I have a web application that our product owner has stated must respond within 2.5 seconds and be usable within 3 seconds. Right now it's mostly POJOs on top of a thinly sliced Spring MVC layer which is being used for dependency injection and directing re...
{ "pile_set_name": "StackExchange" }
Q: The significance of "return" in this Javascript code I am new to Javascript and following this tutorial: http://mcavage.me/node-restify/#Error-handling server.get('/hello/:name', function(req, res, next) { return database.get(req.params.name, function(err, user) { // Why call "return" here? if (err) r...
{ "pile_set_name": "StackExchange" }
Q: nim jester how to change static route and directory What is the correct way to change the static route and directory jester is serving static files from? I tried various permutations of this: routes: get "/static": setStaticDir(request,"./semantic/dist") but don't get it to work. i receive 404 or bad gatewa...
{ "pile_set_name": "StackExchange" }
Q: Move a div with jQuery in a non-destructive manner? Okay, so I have 3 divs... <div id="video"></div> <div id="info"></div> <div id="chat"></div> I am using jQuery to move the divs around on a button press. $('#chat').insertBefore('#video'); There is just an issue I have with this. I believe what this function do...
{ "pile_set_name": "StackExchange" }
Q: could not save the file /usr/... permission denied (13.04) I am running Ubuntu 13.04 and am trying to create an .sh file for conky in /usr/bin using gedit. When trying to save I get the error dialogue: Could not save the file /usr/bin/conky-start.sh You do not have the permissions necessary to save the file. Pleas...
{ "pile_set_name": "StackExchange" }
Q: Gnoll character creation clarification Races of the Wild presents gnolls as an option for PC race. I find its description a bit confusing. First, there are gnoll racial traits on page 99 pointing out that A gnoll begins with two levels of humanoid, which provide 2d8 Hit Dice; a base attack bonus of +1; and bas...
{ "pile_set_name": "StackExchange" }
Q: sql query - variables - date - visual studio 210 Trying to search between two dates to only get certain rows. A 7 day search. @date = DateTime.Today @date2 = //need it to be the prior 7 days SelectCommand = "SELECT [DateReceived], [DeviceLevel] FROM [TBLReadings] WHERE [DateReceived=@date] <= [DateReceived=...
{ "pile_set_name": "StackExchange" }
Q: Java - Integer In Array Coming Up As Not Found When There Are Multiple Instances I've written a script that creates an array and fills it with random numbers. The user inputs a number and it shows the number and its index. Some numbers are duplicates and all must be found. However, if the user enters a number that...
{ "pile_set_name": "StackExchange" }
Q: Why is $n>\frac{-\log 13}{\log 0.8}=n \log0.8<-\log13$ Not sure if I'm missing something obvious here but in my text book, dealing with a logarithmic inequality, the $<$ is seemingly switched arbitrarily: $$ 1-0.8^n < \frac{12}{13} $$ $$ 0.8^n < \frac{1}{13} $$ $$ n \log0.8 < -\log13 $$ $$ n > \frac{-\log1...
{ "pile_set_name": "StackExchange" }
Q: Grails database migration changelog "rebase" Is there an easy way to do a "git rebase"-like operation for Grails Database Migration plugin changelog scripts? I have already several changelog scripts on top of the initial changelog from an old domain model. Now I'm deploying the application to a new environment and...
{ "pile_set_name": "StackExchange" }
Q: Hellcarver Demon and Second Sunrise When Hellcarver Demon's ability triggers and I sac all my permanents and discard my hand then cast Second Sunrise do I have to keep track of the discarded cards? because second sunrise say s return to play all artifact, creature, enchantment and land cards that were put into the...
{ "pile_set_name": "StackExchange" }
Q: How to use absolute file path in liquibase change sets? I have muli moduled maven based application. There are several change sets in each module. I want to write integration tests in one of them. I know it's bad idea but, i have business log constraints. In considered module i have code that uses repositories f...
{ "pile_set_name": "StackExchange" }
Q: Simplifying If statements How can I get Mathematica to simplify the true and false clauses for If[] statements? For example: bar[a_] := a FullSimplify[If[a > b, bar[a], bar[b]]] If[a > b, bar[a], bar[b]] I was hoping for at least If[a>b, a, b]. I thought that it might be hesitating to simplify bar[] because o...
{ "pile_set_name": "StackExchange" }
Q: How to treat uncolored edges in constructing fan in edge coloring algorithm I have problems implementing Misra & Gris edge coloring algorithm. I have simple question - how to treat uncolored edges in construction of maximal fan? Is uncolored a free color on all vertices, free only on vertices which are uncolored(w...
{ "pile_set_name": "StackExchange" }
Q: WPF Toolkit DataVisualization. Specifying the X axis interval Im using the System.Windows.Controls.DataVisualization.Toolkit.dll supplied by the WPFToolkit. I have a chart displaying a list of dates on the X Axis and integers on the Y. XAML: <DVC:Chart Canvas.Top="80" Canvas.Left="10" Name="mcChart" Background="L...
{ "pile_set_name": "StackExchange" }
Q: C# - how to apply different generic methods for T and T[] I have a big collection of objects of different built-in types, e.g. int, bool[], double[] etc. On object M I wanted to perform an operation MyMethod once with each element of the collection. However, I needed to perform different operation with arrays and ...
{ "pile_set_name": "StackExchange" }
Q: MFC Drag into C# Drop I Have a ProjectA(MFC Dlg) include the usercontrol(Chart c#) When i drag the item(CTreectrl) from MFC Dlg to the C# chart . For example : http://i.stack.imgur.com/wkatk.png And the C# m_chartGantt_DragOver will be called. but crash "Debug Assertion failed! ... cmdtarg.cpp 43" private void m_...
{ "pile_set_name": "StackExchange" }
Q: Error Installing pip for Python In order to install python packages, you must have pip installed. Very clear instructions are found here: https://packaging.python.org/installing/ However, when attempting to install pip via python get-pip.py I receive the following error: OSError: [Errno 13] Permission denied: '/Li...
{ "pile_set_name": "StackExchange" }
Q: jmock, return new object upon each call I am setting up a mock object which is supposed to return a new business object each time I call a method f() on it. If I simply say returnValue(new BusinessObj()), it will return the same reference upon each call. If I do not know how many calls there will be to f(), i.e. I...
{ "pile_set_name": "StackExchange" }
Q: Sequencing both Scalaz WriterT and Either with for-yield If I have: import scala.concurrent._ import scalaz._, Scalaz._ type Z = List[String] type F[α] = Future[α] type WT[α] = WriterT[F, Z, α] implicit val z: Monoid[Z] = new Monoid[Z] { def zero = Nil def append (f1: Z, f2: => Z) = f1 ::: f2 } implicit val ...
{ "pile_set_name": "StackExchange" }
Q: Winforms Rich Textbox allow scrolling when mouse over I have simple chat application with Rich Textbox to display messages and Textbox to write them. I'd like to have same behaviour as facebook chat does, which is having focus on the Textbox but being able to use mouse wheel to scroll the one I'm hovering over. So...
{ "pile_set_name": "StackExchange" }
Q: Count members in a hash This should be fairly simple, but I just can't get it sorted - I have the following definition: export interface IUnit { id: number; name: string; //further members; } export class Unit implements IUnit { id: number; name: string; //... } export interface IUnits { [...
{ "pile_set_name": "StackExchange" }
Q: Use Sandy Bridges integrated graphics (or activate switchable graphics) in Ubuntu I have a HP Pavilion dv6 with Sandy Bridges Core-i7, dual-booted Win7 and Ubuntu 11.04. It also has a 1GB ATI Radeon 6490 discrete graphics card. In windows, the ATI utility works great and can switch between integrated and discrete...
{ "pile_set_name": "StackExchange" }
Q: C Segmentation fault after adding a printf function. Works fine after commenting out I get segmentation fault after executing this part of code.If i comment the first printf out,it works fine.Why does this happen? #include <stdio.h> int Func (int *a){ printf("%d\n",56 ); printf("a is %d\n",*a ); retur...
{ "pile_set_name": "StackExchange" }
Q: How to decrease GeoTIFF file size by eliminating or negating the blackfill? I have a 5 band, 16-bit orthorectified GeoTIFF from a satellite image that contains a significant amount of blackfill and has a file size of over 21GB. I would like to decrease the file size by eliminating or negating the blackfill. I have...
{ "pile_set_name": "StackExchange" }
Q: Adding a domain to a django webapp running on digital ocean I have a Django Web App that is currently live on digital ocean with an IP address say w.x.y.z, I have also bought a domain name say example.com, how can i add this to my app so that, when i go to example.com , I get to my website which currently is only ...
{ "pile_set_name": "StackExchange" }
Q: Complex css animation using @keyframes Hi I need to create button swap animation like this https://d.pr/v/P8aLvl This is done by the use of some js and css properties opacity, scale, box-shadow. I tried creating it but my animation doesn't look this smooth. see https://d.pr/v/QLsLdo See how Button 1 and Button 2 f...
{ "pile_set_name": "StackExchange" }
Q: Views above and below RecyclerView I have a RecyclerView which displays dynamic content. I would to display this RecyclerView in between other Views. For example, one View displayed above and one View displayed below the RecyclerView: View RecyclerView View However, whatever I try doesn't seem to be working and t...
{ "pile_set_name": "StackExchange" }
Q: Custom sorting in Swift I have to implement sorting functionality in my app. Kindly consider the following logics. I want to sort the array RangeClass objects based on the given input (say 50). class RangeClass:NSObject { var start:Int64! var end:Int64! convenience init(s:Int64,e:Int64) { sel...
{ "pile_set_name": "StackExchange" }
Q: j query dose not working with angular 1 i working with my first project with angular js i want to use this template to create admin panel https://colorlib.com/polygon/metis/blank.html and i add the css and js files also to index.html i try to use directive to solve the problem and JavaScript in jQuery mobile ...
{ "pile_set_name": "StackExchange" }
Q: Duplicate in ng-repeat Angular doesn't allow to have duplicate elements in an array declared in ng-repeat as explained here. But what if I temporarily have a dup in my function (because I'm reordering the array) and when the function returns there's no dup? will that work? A: You should have read your link care...
{ "pile_set_name": "StackExchange" }
Q: Why does my action not play after another action? Below is my Logic editor of this problem. I have my armature always playing a walk action, then when it collides with a property called "Player," it is supposed to play a die animation. (It is an enemy :) I have set priorities, but right now when "Player" collides ...
{ "pile_set_name": "StackExchange" }
Q: A bicartesian closed category of strict complete partial orders (Hask) It seems to be well-known that programming languages can't have sums, products and nontermination together. Q1. Is this true? Below (or in the above link I gave) is a partial argument. However, Hinze's Generic programming with Adjunctions ignor...
{ "pile_set_name": "StackExchange" }
Q: Replacing some characters in the previous command Sometimes, being rushed, it is possible to type some characters wrong in a command-line. If the command is long, the mistake correction may be cumbersome (using arrow keys). So the problem is: how can I replace characters typed wrong in the previous command as quic...
{ "pile_set_name": "StackExchange" }
Q: Enabling Major Push on Managed Package I understand that you need to log a case in the partner portal to enable Push Major on a managed package. My question is, do you need to do this every time you have a major release to Push? Once enabled, is it always enabled no matter the version? Thanks! Jamie A: We have...
{ "pile_set_name": "StackExchange" }
Q: Argument Exception Exception: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid. Method where exception happened: /// <summary> /// Initializes a new DSAplcEntities object using the connection string found in the 'DSAplcE...
{ "pile_set_name": "StackExchange" }
Q: How can I find WPF controls by name or type? I need to search a WPF control hierarchy for controls that match a given name or type. How can I do this? A: I combined the template format used by John Myczek and Tri Q's algorithm above to create a findChild Algorithm that can be used on any parent. Keep in mind tha...
{ "pile_set_name": "StackExchange" }
Q: Single word for 'circulation of documents' There is a kind of technical/accounting term in Russian: документооборот or делопроизводство. It describes the set of actions and processes for the purpose of formal document management in a large organization. For example, documents should be reviewed, approved, tagged, ...
{ "pile_set_name": "StackExchange" }
Q: How do I make an icon invisible in a ListView onPressed in Flutter? I have a listView that displays a horizontal list of elements. I have positioned an icon on each box. When the user selects or presses that particular icon (add button), it should make the icon invisible so that the user cannot press it again. The...
{ "pile_set_name": "StackExchange" }
Q: Rounding number up using .format() I’m writing a simple program and I’m using .format() to round the number to 2 d.p. State = 0.05 County = 0.025 Purchase = float(input(‘amount of purchase: ‘)) State_tax = purchase * state County_tax = purchase * county Total_tax = state_tax + county_tax Total = purchase +...
{ "pile_set_name": "StackExchange" }
Q: In PostgreSQL, how can I get the máximum value for which all previous values satisfy a condition I have a PostgreSQL table which records the test results of different students: Student Exam Passed A 1 True A 2 True A 3 False A 4 True B 1 False B 2 True ...
{ "pile_set_name": "StackExchange" }
Q: View Controller name doesn't change in the symbol navigator after refactoring and renaming in xcode 5 I just decided to rename one of my View Controllers to something more appropriate. So I went into xcode, went to the symbol navigator, selected the view controller that I want to change, and went to Edit > Refacto...
{ "pile_set_name": "StackExchange" }
Q: Matplotlib Backend issue _tkinter.TclError: no display name and no $DISPLAY environment variable I am trying to plot a simple graph using matplotlib while connecting to Linux machine using SSH. I am running my code on Python2.7 I ran the following first: import matplotlib print(matplotlib.get_backend()) where I ...
{ "pile_set_name": "StackExchange" }
Q: How to define Integer array in Flask Migration to create new Table I want to create Table using Flask Migration tool for my Postgresql Database. I have written my flask model as follow: from flask.ext.security import Security, SQLAlchemyUserDatastore, UserMixin, RoleMixin, utils class AdminUser(db.Model): id...
{ "pile_set_name": "StackExchange" }
Q: Overlapping registers in Hull shader? I am doing some hardware tessellation and managed to get the basic subdivision effect, so tried to move on to Phong tessellation (which is for rounding edges). Now when I want to add extra outputs in the Patch Constant Function and write them, but one of those throws an error....
{ "pile_set_name": "StackExchange" }
Q: "Live concert" versus "Concert" What difference, if any, is there between "Live concert" and "Concert"? As far as I know, 99% of concerts are "live", as opposed to being virtual. Is "Concert" more commonly associated with classical music, with "Live concert" used for other genres such as rock? A: In the context ...
{ "pile_set_name": "StackExchange" }
Q: Differences between MySQL and Oracle databases What are the differences between MySQL and Oracle databases. I know both are RDBMS, both use SQL as Query language and both are developed by Oracle. So what are the differences between these two technically? A: I used Oracle in Deuth Bank for 1,5 years, and some ex...
{ "pile_set_name": "StackExchange" }
Q: Will $\{B_n(x)\}_n$ be a local base of point $x$? If $X$ is a Hausdorff compact space and $\{B_n(x)\}_n$ is a family of open sets of $X$ for each $x\in X$ such that $\cap \{B_n(x)\} =\{x\}$. Will $\{B_n(x)\}_n$ be a local base of point $x$? Thanks ahead. A: The answer in general (all spaces) is no. Any countab...
{ "pile_set_name": "StackExchange" }
Q: Search Files with Regular Expressions Is there a good free tool out there to search files for matches to a regular expression? I would like to search all files of a specific extension for matches to this expression: ^ := '([a-z0-9]{3})'$ I would also like it to return (or even better jump to) the line(s) that matc...
{ "pile_set_name": "StackExchange" }
Q: Mink and Behat: Is there a way to launch selenium (Chrome) in background? When running tests, I would like not to be bothered by Chrome popping-up every time Behat launches a scenario needing Chrome. I know there is a maximizeWindow() method for session objects, but nothing like "minimize". A: Nowadays, you can ...
{ "pile_set_name": "StackExchange" }
Q: Half-automatic scrolling with jQuery I have several fullscreen sections on my page and I would like to use jQuery to detect a small scroll from the user and and scroll the page one section higher or lower automatically. So the user can only see one fullscreen section at a time not randomly scrolling between them. ...
{ "pile_set_name": "StackExchange" }
Q: Unexpected interface name - Xcode I am working on an application that retrieves photos from iOS photo library. When the photo is selected, I want to target a .xib to show an interface where the selected photo can be edited. However the build is failing due to this error: "Unexpected interface name 'imageEditorVi...
{ "pile_set_name": "StackExchange" }
Q: WM_ENTERSIZEMOVE / WM_EXITSIZEMOVE - when using menu, not always paired To prevent my application changing the window content while user is moving its window around, I capture messages WM_ENTERSIZEMOVE / WM_EXITSIZEMOVE and I pause the application between the messages. However, sometimes it happens I receive WM_EN...
{ "pile_set_name": "StackExchange" }
Q: How do I make a div have the same width and height of its content? Let's say I have an img element inside a div, how do I make the div have the same width and height of its content using CSS? A: Floating the div would make it shrinkwrap and so the div would only have room for the content inside. You will probabl...
{ "pile_set_name": "StackExchange" }