text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
SCNKit ERROR removing the root node of a scene from its scene is not allowed. <p>I have the following code (SceneKit in Swift targeting iOS):</p> <pre><code>let scnView = self.view as SCNView let scene = SCNScene() let levelScene = SCNScene(named: "level") scene.rootNode.addChildNode(levelScene.rootNode) scnView.scene = scene scnView.backgroundColor = UIColor.grayColor() scnView.allowsCameraControl = true scnView.showsStatistics = true </code></pre> <p>The problem is, at <code>scene.rootNode.addChildNode(level.rootNode)</code> I get the following error in the console:</p> <p><code>[SCNKit ERROR] removing the root node of a scene from its scene is not allowed</code></p> <p>I am not sure why this error is coming up, but I am trying to load my <code>level.dae</code> file in and add it to the scene. From what I can see in the simulator (and device), it loads fine.</p> <p>What should I do to prevent the error message from occuring?</p>
0non-cybersec
Stackexchange
Combinatorics in finite vector space. <blockquote> <p>Let $q$ be a prime power and $V$ a finite $\mathbb F_q$-vector space with two subspaces $I$ and $J$. Let $k$, $a$ and $b$ be non-negative integers. Determine the number of subspaces $K$ of $V$ with $\dim(K) = k$, $\dim(K\cap I) = a$ and $\dim(K\cap J) = b$.</p> </blockquote> <p>The answer should depend on the numbers $a,b,k$ and $v = \dim(V)$, $i = \dim(I)$, $j = \dim(J), c = \dim(I\cap J)$, but otherwise be independent of the exact choice of $I$ and $J$.</p> <p>In the case that only a single subspace $I$ is given (say $J = \{0\}$ and $b = 0$), I found the answer $$ q^{(k-a)(i-a)}\binom{i}{a}_{\!q} \binom{v-i}{k-a}_{\!q}, $$ where $\binom{x}{y}_q$ denotes the Gaussian binomial coefficient.</p> <p>However for two subspaces $I$ and $J$, this problems looks quite hard to me. Any ideas are welcome. Even the special cases $I \cap J = \{0\}$ or $J \subseteq I$ (both generalizing the case $J = \{0\}$ discussed above) are not clear to me.</p>
0non-cybersec
Stackexchange
Bayern Munich 0-1 Liverpool - Sadio Mané 7' (Audi Cup - Semi Finals).
0non-cybersec
Reddit
python sqlalchemy distinct column values. <p>I have 6 tables in my SQLite database, each table with 6 columns(<code>Date, user, NormalA, specialA, contact, remarks</code>) and 1000+ rows. </p> <p>How can I use sqlalchemy to sort through the Date column to look for duplicate dates, and delete that row?</p>
0non-cybersec
Stackexchange
The Dimension of Vector Space. <p>Question: Let <span class="math-container">$A$</span> be an <span class="math-container">$n×n$</span> complex matrix with <span class="math-container">$n$</span> distinct eigenvalues. Let <span class="math-container">$V$</span> be the set of all <span class="math-container">$n×n$</span> complex matrices <span class="math-container">$B$</span> that commute with <span class="math-container">$A$</span>. Prove that V is a vector space and find its dimension (Justify your answer).</p> <p>My Answer: I know how to show that V is a vector space, but I don't know how to find its dimension. I tried showing that if v is an eigenvector corresponding to some eigenvalue, so is Bv, and got that for all B, Bv = kv for some scalar v. But I'm not sure if this helps.</p>
0non-cybersec
Stackexchange
How do I check if an environment variable is set in cmake. <p>I set an environment variable in my bash profile, so I can see it in the terminal just fine . .</p> <blockquote> <p>blah/builds$ echo $THING</p> <p>thingy</p> </blockquote> <p>How do I display it in a cmake message and check if it is set? I have tried the following, but it just displays thing as blank and skips the body of the if statement</p> <pre><code>message(&quot;THING:&quot; $ENV{THING}) if(DEFINED ENV{THING}) message(STATUS &quot;THING environment variable defined&quot;) # some more commands endif() </code></pre>
0non-cybersec
Stackexchange
ReactNative get the absolute position of a view relative to the screen. <p>with react native.</p> <p>I can get the position and size with <code>onLayout</code>, but I want to get the absolute position of a view relative to the screen</p> <p>please! the absolute position of a view relative to the screen</p> <p>not the absolute position of a view relative to the parent view</p> <p>What should I do?</p>
0non-cybersec
Stackexchange
How to access user information via sys.fn_dump_dblog. <p>I am reviewing sys.fn_dump_dblog and I can see the old states of the records, but I can not see which users are doing the operations. SPID, Transaction SID columns are always null, how to fix it, or any options?</p> <p>I am using SQL Server 2016.</p> <p>My query:</p> <pre><code>SELECT * FROM sys.fn_dump_dblog(NULL, NULL, NULL, 1, 'E:\LogBackup\blabla.trn', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) WHERE ( [operation] IN ('LOP_INSERT_ROWS', 'LOP_DELETE_ROWS', 'LOP_MODIFY_ROW') AND ( ([context] IN ('LCX_HEAP', 'LCX_CLUSTERED', 'LCX_MARK_AS_GHOST')) OR ([context] = 'LCX_TEXT_MIX' AND (DATALENGTH([RowLog Contents 0]) IN (0, 14, 28))) ) AND [PartitionID] IN (72057595034533888) ) OR ([operation] = 'LOP_HOBT_DDL') </code></pre>
0non-cybersec
Stackexchange
Software pattern for combining properties. <p>I have two classes that read distinct files. As an examples, two classes, sourceA or Client, and sourceB or Resources:</p> <pre><code>public class Client() { public string ClientName {get; set;} public int ClientNumber {get; set;} public string Address {get; set;} //... } public class Resources() { public int ClientNumber {get; set;} public decimal Resources {get; set;} //... } </code></pre> <p>Let's say that I need to merge booth classes into a new one, but I just need some fields from class <code>Client</code> and <code>Resources</code>. Is there any software pattern motivated by something like this, to compose a class like <code>ClientReport</code>?</p> <p>The new class should be something like this:</p> <pre><code>public class ClientReport() { public string ClientName {get; set;} public int ClientNumber {get; set;} public string Address {get; set;} public decimal Resources {get; set;} public int CalculateRating() { //... } } </code></pre> <p>These new classe will have some properties of <code>Client</code> and <code>Resources</code>, and copying code from them in order to create <code>ClientReport</code> seems to be a repetition, and I think it should be a away to compose this class and only use the needed properties from <code>Client</code> and <code>Resources</code>.</p>
0non-cybersec
Stackexchange
The reason for Tom Brady going off on the Ref (Photo credit-r/Patriots).
0non-cybersec
Reddit
Specific question: Any good ways to bypass filtering for a semi-colon for a SQL Injection?. I am trying to perform a SQL injection on a practice site, and I want to end a line and add my own new line. Sadly, the semi-colon is a filtered character. I was able to trick the filter for other characters, but I am having so much trouble finding a bypass for that specific character. Ideas?
1cybersec
Reddit
What's the worst you've been trolled by an authority figure? Mine was by a cop.. Coming back from an undergraduate, underage party, we were pulled over by the cops. Our designated driver had not had anything to drink. The cop asks her such and seems to believe her answer. He then shines the light into the rest of the car and asks if the rest of us has been drinking. She answers yes, as we're clearly shitfaced. He asks if we're all underage and she answers yes again. He then announces, "okay, you're all under arrest." The driver started crying and we all started freaking out, not even moving out of disbelief and poor comprehension. She starts to undo her seatbelt to step out of the car on his command when he stops her and says, "Just kidding; April fools!" and happily walks back to his car. You could tell that he'd been trolling college kids all night - it was just a few hours past midnight and no one realised yet that it was already April 1st.
0non-cybersec
Reddit
How we hacked Google's ReCAPTCHA by exploiting its audio accessibility feature. [https://uxplanet.org/accessibility-vs-security-breaking-captchas-by-exploiting-their-accessibility-features-d0c805839144](https://uxplanet.org/accessibility-vs-security-breaking-captchas-by-exploiting-their-accessibility-features-d0c805839144)
1cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
hmmm why it’s not working ?.
0non-cybersec
Reddit
This principal, known as “the sign guy” wears a white board with a different message every day at drop-off.
0non-cybersec
Reddit
The Darkness is encroaching!.
0non-cybersec
Reddit
The world's fluffiest angora rabbit..
0non-cybersec
Reddit
Multiple Documents with shared TOC and Indexes. <p>I've recently started a personal project for creating and managing a knowledge base, but with the individual pages written in ConTeXt instead of markup, markdown, or any of the other currently-popular choices.</p> <p>I'm very new to ConTeXt and have not seen any examples doing what I'm trying to do. It may simply be that I do not know the right place to look.</p> <p>I'd like to be able to cross-link between pages and produce metadata pages covering the entire contents (e.g. TOC, index, list of figures).</p> <p>At the moment I am not concerned with rendering these pages as HTML (but may be at some point). Ideally the output will be a set of cross-linked PDFs: one for each topic plus separate PDFs for the TOC, index, and any lists of figures/tables/whatever that I decide to produce.</p> <p>Any pointers?</p>
0non-cybersec
Stackexchange
Caligula's tomb found after police arrest man trying to smuggle statue.
0non-cybersec
Reddit
Remember when we used to call fortnite players virgins?. Damn we’re pathetic
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Virtual screen on Windows like XVFB on Linux. <p>For a good while I have been playing with the idea of having a virtual screen which is "attached" to my real screen but does not really exist.</p> <p>The idea is that it should almost be like xvfb, the virtual X server which only runs as a framebuffer and isn't attached to a real graphics card and screen.</p> <p>My use case here would be to have an application running on the fake screen that will be screen-recorded all the time. I don't want to see this application the whole time though. </p> <p>The ideal thing would be if the software had a virtual screen viewer that, in fact, is just a small window that displays whatever is on that virtual screen.</p> <p>Let me recap:</p> <ul> <li>Virtual monitor attached to the real one in desktop extension mode</li> <li>Capability of recording said screen</li> <li>Capability of looking at said screen through an application window</li> </ul> <p>The only idea I'd have that would come remotely close is running a virtual machine which has this hidden screen that is recorded. Though I can't just pull windows into this screen then!</p>
0non-cybersec
Stackexchange
Linear algebra change of basis always makes a linear map diagonal.. <p>Prove that there exist bases $\alpha $ and $\beta$ for V such that $ [T]_{\alpha}^{\beta} $ is a diagonal matrix with each diagonal entry equal to either 0 or 1.</p> <p>Originally i thought that T=I was the only solution to this i realize that is not the case now but i am still lost what if T forms an non-invertable matrix? i really dont understand how we can always know that this is true cause if the map is non-invertable isn't it not diagonalizable?</p>
0non-cybersec
Stackexchange
Samsung warns of more Galaxy Note delays amid battery explosion claims. Official statement by Samsung: "Shipments of the Galaxy Note 7 are being delayed due to additional tests being conducted for product quality"..
0non-cybersec
Reddit
Google bot hits on files &#39;apple-app-site-association&#39; and &#39;assetlinks.json&#39; showing up in Google Webmasters as pages with errors. <p>I've seen a number of posts on this but none really answer the question of why Google Bots specifically are trying to access the following on ALL of my sites, every single one of them...</p> <pre><code>/.well-known/apple-app-site-association /apple-app-site-association /.well-known/assetlinks.json </code></pre> <p>In each case on my server a 404 is returned, but the troubling thing is these files now show up as Top pages with errors in Webmaster tools alongside other non existent files</p> <pre><code>/m/ /mobile/ </code></pre> <p>Should I worry about this?</p>
0non-cybersec
Stackexchange
I know my battery should be replaced, but is that all of the problem? (Update). <p>Updated:<br> I am using a MacBookPro8,1 with a non-replaceable battery. Recently that battery charging status was saying,<code>Replace soon</code>. But it was working fine and kept enough charge for my daily works. So I didn't need to take the charger at work. But when I shut down the laptop for few minutes, then I cannot turn it on without the charger plugged in.<br> The battery status is now <code>Replace Now</code>. when I press Battery indicator button at side of the laptop case, all LEDs start blinking at same time (5 times).<br> The MagSafe LED is also green.<br> Also Mac OSX shows that 98% of the battery is charged.<br> But when the laptop is off, pressing the Battery indicator button doesn't turn on any LEDs (Normally it should turn on all LEDs as it is charged 98%)<br> Also, more importantly when I plug out the charger the computer turns off <em>instantly</em>. Not even with a second delay.<br> On the other side, when I turn on the laptop the time goes back to 2001.<br> I tried to rest SMC by holding Shift+crtl+option+power and then releasing them at same time while the computer was off. Then I pressed the turn off/on button. </p> <p>I had <a href="https://apple.stackexchange.com/questions/170601/battery-is-not-charging-despite-smc-reset/173697#173697">another problem</a> with my MacBook's charging issue few months ago. But I solved it with replacing the charger's capacitors. But I think in this case the problem is with the battery </p> <blockquote> <p>I know my battery should be replaced, but is that all of the problem? Or Does it have other issues? </p> <p>Did I correctly reset SMC with that approach? </p> <p>Is there anything I can do to use this battery a bit longer and postpone buying a new one?</p> </blockquote> <p>Thanks for your reply.</p> <p>Here are the status images:<br> <img src="https://i.stack.imgur.com/oMeYF.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/5zvzO.png" alt="enter image description here"></p>
0non-cybersec
Stackexchange
How to debug an Elixir application in production?. <p>This is not particularly about my current problem, but more like in general. Sometimes I have a problem that only happens in production configuration, and I'd like to debug it there. What is the best way to approach that in Elixir? Production runs without a graphical environment (docker).</p> <p>In dev I can use IEX.pry, but since mix is unavailable in production, that does not seem to be an option.</p> <p>For Erlang <a href="https://stackoverflow.com/a/21413344/1561489">https://stackoverflow.com/a/21413344/1561489</a> mentions dbg and redbug, but even if they can be used, I would need help on applying them to Elixir code.</p>
0non-cybersec
Stackexchange
Reset horizontal scroll bar width in Notepad++. <p>I have a document open in Notepad++, and for some reason the horizontal scrollbar is tiny. It looks like the width of the text area is over 7000 characters. The document does have a (single) long line, about 1000 characters long, but it's of course much smaller than the area reserved for it.</p> <p>Is there a way to reset the horizontal size in Notepad++? It's a pain to scroll with a bar so small, especially since the used area is only 10-20% of the total.</p>
0non-cybersec
Stackexchange
Is it possible to prevent reading from a frozen python dataclass?. <p>I have a situation where I would like to be able to treat a frozen <code>dataclass</code> instance as always having the latest data. Or in other words, I'd like to be able to detect if a dataclass instance has had <code>replace</code> called on it and throw an exception. It should also only apply to that particular instance, so that creation/replacements of other dataclass instances of the same type do not affect each other.</p> <p>Here is some sample code:</p> <pre><code>from dataclasses import dataclass, replace @dataclass(frozen=True) class AlwaysFreshData: fresh_data: str def attempt_to_read_stale_data(): original = AlwaysFreshData(fresh_data=&quot;fresh&quot;) unaffected = AlwaysFreshData(fresh_data=&quot;not affected&quot;) print(original.fresh_data) new = replace(original, fresh_data=&quot;even fresher&quot;) print(original.fresh_data) # I want this to trigger an exception now print(new.fresh_data) </code></pre> <p>The idea here is to prevent <em>both</em> accidental mutation and stale reads from our dataclass objects to prevent bugs.</p> <p>Is it possible to to do this? Either through a base class or some other method?</p> <p>EDIT: The intention here is to have a way of enforcing/verifying &quot;ownership&quot; semantics for dataclasses, even if it is only during runtime.</p> <p>Here is a concrete example of a situation with regular dataclasses that is problematic.</p> <pre><code>@dataclass class MutableData: my_string: str def sneaky_modify_data(data: MutableData) -&gt; None: some_side_effect(data) data.my_string = &quot;something else&quot; # Sneaky string modification x = MutableData(my_string=&quot;hello&quot;) sneaky_modify_data(x) assert x.my_string == &quot;hello&quot; # as a caller of 'sneaky_modify_data', I don't expect that x.my_string would have changed! </code></pre> <p>This can be prevented by using frozen dataclasses! But then there is still a situation that can lead to potential bugs, as demonstrated below.</p> <pre><code>@dataclass(frozen=True) class FrozenData: my_string: str def modify_frozen_data(data: FrozenData) -&gt; FrozenData: some_side_effect(data) return replace(data, my_string=&quot;something else&quot;) x = FrozenData(my_string=&quot;hello&quot;) y = modify_frozen_data(x) some_other_function(x) # AHH! I probably wanted to use y here instead, since it was modified! </code></pre> <p>In summary, I want the ability to <em>prevent</em> sneaky or unknown modifications to data, while also forcing invalidation of data that has been replaced. This prevents the ability to accidentally use data that is out-of-date.</p> <p>This situation might be familiar to some as being similar to the ownership semantics in something like Rust.</p> <p>As for my specific situation, I already have a large amount of code that uses these semantics, except with <code>NamedTuple</code> instances instead. This works, because modifying the <code>_replace</code> function on any instance allows the ability to invalidate instances. This same strategy doesn't work as cleanly for dataclasses as <code>dataclasses.replace</code> is not a function on the instances themselves.</p>
0non-cybersec
Stackexchange
ar X iv :p hy si cs /0 50 71 10 v3 [ ph ys ic s. ed -p h] 2 A ug 2 00 8 MISCONCEPTIONS ON RELATIVITY GRAVITATION AND COSMOLOGY Marcelo Samuel Berman Instituto Albert Einstein Av. Candido Hartmann, 575 - # 17 and 80730-440 - Curitiba - PR - Brazil - email: [email protected] (Dated: (Original date: June 30, 2002 - This Version date: July 26, 2008)) Abstract Fifteen misconceptions involving Relativity, Gravitation and Cosmology are exposed, along with corrections. 1 http://arxiv.org/abs/physics/0507110v3 MISCONCEPTIONS ON RELATIVITY GRAVITATION AND COSMOLOGY Marcelo Samuel Berman Introduction By perusing several elementary Physics textbooks, I was astonished with the inclusion of misconceptions dealing with Relativity, Gravitation and Cosmology. I have to confess that most Physics textbooks published in English can be recommended for beginner students. The misconceptions and the corrections 1. ”Time is relative so there is not some master grandfather clock that controls time in the Universe”.(sic) [The comoving cosmic time is such a master clock; when I say that the Universe is 14 billion years old, this is absolute time. A comoving observer is always at rest relative to the matter in its neighborhood. All the literature in Cosmology is based in such observers]. 2.”The laws of Physics are the same for all inertial observers”. (sic) [Einstein outlined his theory with the use of tensor notation and four dimensional space- time; only when the laws are cast in tensor notation, and in 4D spacetime, the laws of Physics retain the same form for all observers. In three-dimensional space and common elementary mathematics, the laws of Physics can be very awkward depending on the observer. For instance, the Maxwell equations of electromagnetism can be very complicated for an observer moving relative to another at rest.]. 3.”You define relativistic 3-momentum, and then you assume conservation when there are no forces”. (sic) [In fact, the concept of force must be generalized from Newtonian Physics into Special Relativity, so that, the relativistic force is equal to the proper time derivative of relativistic linear momentum, but the textbooks forget to generalize the 2nd. law. The examples in the textbooks only deal with collisions, when the external force is supposed to be null.]. 4.”Today, when atomic clocks are transported from one place to another, the time dilation of Special Relativity is to be always taken into account.” (sic) 2 [Because differences in gravitational potential also affect measures of time, the difference in gravitational potential is also to be taken into account.]. 5.”Inertial reference systems are those where Newton´s laws are valid.” (sic) [Newton’s laws are only valid for low speeds and weak gravitational fields, but the defini- tion of inertial systems of references is also necessary in Special Relativity, where Newtonian laws need modification.]. 6.”Special Relativity is not Classical Physics.” (sic) [Classical Physics means Non-Quantum Physics; so that, Special Relativity and General Relativity, along with the Electromagnetism, are all Classical Theories.]. 7.”The principle of equivalence states that gravitation and acceleration are equivalent.” (sic) [This is only valid at a given point and its infinitesimal neighbourhood. There is no point in substituting a gravitational acceleration for, say, a centripetal acceleration. Both may be numerically equal in a certain point of space; nevertheless, the gravitational acceleration decays with the inverse square of distance, while the centripetal one increases with distance so that, if they are equal in one point they may be different in other locations.]. 8.”Newtonian Physics deals with low speeds.” (sic) [It should be always remembered that it is only valid for weak gravitational fields. If the speeds are not low, but the gravitational field is weak, Special Relativity is to be taken into account; if the gravitational field is intense, General Relativity must play a rôle]. 9.”Edwin Hubble studied distant galaxies.” (sic) [In fact the linear relation is valid for not too distant galaxies, which were those he could observe in the year 1929]. 10.”The principle of equivalence says that a homogeneous gravitational field is completely equivalent to a uniformly accelerated reference frame.” (sic) [This is correct, but represents a trivial consequence of the true principle. See #7]. 11.”The gravitational field is an example of a vector field.” (sic) [Einstein’s General Theory of Relativity, is based on the assumption that the gravitational field is represented by a metric tensor, which represents the potentials of gravitation. This metric tensor is not a vector. ]. 12. ”With Einstein’s postulates, i.e., the equivalence and covariance principles, we find 3 General Relativity.” (sic) [In fact, the mentioned postulates can support other theories, which have different field equations, like for instance, scalar-tensor gravitation.] 13. ”The Universe has a center.” (sic) [In most models, the Universe is homogeneous, so that any point is equivalent to any other one, and may be considered the center. I call this the egocentric observer postulate.] 14. ””Dark matter” and ”dark energy”, are the same thing, because of Einstein’s mass- energy relation”. (sic) [In fact, dark matter and dark energy are different concepts: the first one responds for the missing of visible matter, which should represent about 33% of all matter, but only 5% is visible; 27% is the dark matter. Dark energy, which is 67% of the energy density in the Universe, is there because the Universe must have been made of critical energy density, which is the value that turns the Universe a ”flat” tri-dimensional one; the agent causing this dark energy, responds for the acceleration of the present Universe]. 15. ”The Universe expands, so it accelerates”. (sic) [What accelerates, is the rate of expansion, and not the ”center”, which is at any point]. Conclusions Even good and recommendable textbooks should make an effort to bring a correct picture also in Relativity, Gravitation and Cosmology: what we commented in this paper should be taken as an alert on otherwise high praised books. Acknowledgements I thank Prof. M.M. Som and F.M. Gomide for conversations on the subject of this paper. I recognize the good service of Mr. Marcelo Fermann Guimarães in typing this and many other manuscripts, and the encouragement of Albert, Paula and Geni. 4
0non-cybersec
arXiv
Is it wrong to get sick of your kids and just want to run for the hills?. I have 5 lovely children, most of them adopted with my wife. Our oldest is 20, then we have 17 year old twins, a 13 year old daughter, and a 7 year old daughter. Both my wife and I work, and we don’t see much of our oldest until she comes down from college for the weekend. Our twins babysit the younger kids, and it mostly works out. Sometimes, things are great! I’m so thankful to have a family that I love, and were all happy. Then, there’s the other days. Our oldest transferred schools this year, and has been having a hard time adjusting. We get a call from her almost every night, sobbing that nothing is the same. I try to console her and sympathize, but she just gets angrier and hangs up. The twins are both applying for college, and our son is doing better academically than our daughter (she’s still doing okay, just not as well, and we make sure to praise her for what she’s doing), so he has more options. It’s creating a lot of jealousy and twin fights that often result in mass destruction once we’re home. Our daughter is a troublemaker at school, and it’s always a fight with her over homework or test scores. I tried to do Mommy Daughter Study Time, and she wouldn’t do it! I’ve asked her to do an hour worth of homework with me each night, and she flips me off and locks her door. Taking away her car did nothing, grounding her did nothing. It just makes her angrier. Our 13 yr old has hit the angsty teen phase, too. She plays her music way too loud, always yells, slams doors, and fights with her siblings constantly. Her latest technique is harassing our little one, and making fun of her for singing or dancing or just being happy in general. I got a call from a concerned teacher at our youngest’s school saying that she won’t sing like she normally does, and that she was “afraid of getting yelled at.” I told my daughter about it, and she said good, because then her sister wouldn’t be so embarrassing. We’ve been working with her to get her self-esteem back up, but she won’t sing anymore, and if she catches herself dancing, she looks very sad and stands perfectly still. She’s a handful on her own, though. If dinner isn’t up to par? It gets smashed into the floor. If she has to do too much homework? It gets shredded. If I’m talking too long? She screams. If I don’t give her my phone at dinner? She smashes her head on the table. Time out is fairly effective, but once she’s out, she just goes back to it. Ugh!! Sometimes I just want to go take a vacation all by myself and hide. Is this a normal feeling?
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
7th Dragon III Code: VFD coming to the Americas this summer.
0non-cybersec
Reddit
Always make sure you put the pump back.
0non-cybersec
Reddit
Warning Match may not be exhaustive. <p>I was trying out below code:</p> <pre><code> val set1 = Set(1,2,3,4,5,67,8) val TRUE_BOOLEAN = true val FALSE_BOOLEAN = false set1.contains(4) match { case TRUE_BOOLEAN =&gt; println("Element found") case FALSE_BOOLEAN =&gt; println("Element not found") } </code></pre> <p>But, when i am trying to run it in <code>IntelliJ</code>, it is giving below warning in <code>Messages</code> tab:</p> <pre><code>Warning:(11, 16) match may not be exhaustive. It would fail on the following inputs: false, true set1.contains(4) match { </code></pre> <p>Whereas, if i use <code>true</code> and <code>false</code> instead of <code>TRUE_BOOLEAN</code> and <code>FALSE_BOOLEAN</code>, i am not getting any warning.</p> <pre><code>set1.contains(4) match { case true =&gt; println("Element found") case false =&gt; println("Element not found") } </code></pre> <p>Can someone please explain the reason for this warning and why does it goes away with <code>true</code> and <code>false</code>.</p>
0non-cybersec
Stackexchange
Asked for a raise last year, and after a very awkward interaction I got one. Need some advice on how to do so again this year.. I want to preface this by saying that I hate the company I work for, and am actively looking for new work, but until something comes along, asking for a raise is my only other opportunity to increase my income. I work for a mid-size company where I report directly to the CEO and COO. Last year I emailed the CEO asking him if we could sit down at some point and discuss my compensation because of a lot of new work I had taken on in recent months. I had a list of accomplishments ready to go over, as well as examples of what my "market value" was. He emailed me back and told me that it wasn't necessary for us to meet because they give raises when they deem it appropriate and are always fair about it. This obviously pissed me off because it sounded like he was blowing me off, but then a week later he gave me a 20% raise. It has now been a year since I got that raise, and since the company doesn't do reviews or performance meetings of any sort, I want to ask for another one. The team I managed has grown in the last year, and I've also gone above and beyond by helping a few other departments cut out inefficient processes that should be more than enough to argue for at least a small raise. I'm just not sure how to approach it a second time. Should I just email him again as I did last time, and ask for a meeting? He obviously didn't respond well to it the first time, but... I did also get a raise. I'm not sure if there's a better way I should approach it considering what he said last time. I'm hoping you guys could share some thoughts on how to proceed. Thanks!
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Is there a way to install Firefox add-ons in Chrome?. <h2>in brief</h2> <p>Some Firefox add-ons (e.g., <a href="https://addons.mozilla.org/en-US/firefox/addon/smart-bookmarks-bar/" rel="nofollow noreferrer">Smart Bookmarks Bar</a>) are not available as extensions for Chrome. Is there a way to install Firefox add-ons in Chrome or to install them in one of the Firefox-tab extensions?</p> <h2>full details</h2> <p>Is there a Chrome addon to open a new tab as Firefox tab (similar to IE Tab addon but for Firefox)? I'm looking for an addon for Chrome which functions similar to IE Tab, but it opens Firefox in a new tab inside Chrome. Any suggestion for me? Thank you!</p> <p>The reason I'm looking for this addon is as followed. There's lots of addon in Firefox that are still not available in Chrome - the typical one is the smart bookmark toolbar and download helper.</p>
0non-cybersec
Stackexchange
What is this tiny truck on a city street?.
0non-cybersec
Reddit
in-place coalescing like elements in a std::vector. <p>I have an array of pairs, for example:</p> <pre><code>X = {{A, 1}, {B, 2}, {C, 1}, {A, 3}, {C, 4}} </code></pre> <p>I would like to produce an array:</p> <pre><code>Y = (x, n) such that n = sum i for (x, i) in X </code></pre> <p>so in the example above, we'd have:</p> <pre><code>Y = {{A, 4}, {B, 2}, {C, 5}} </code></pre> <p>The code I currently have is:</p> <pre><code>#include &lt;vector&gt; #include &lt;algorithm&gt; #include &lt;iostream&gt; using namespace std; int main() { char A = 'A'; char B = 'B'; char C = 'C'; vector&lt; pair&lt;char, int&gt; &gt; X = {{A, 1}, {B, 2}, {C, 1}, {A, 3}, {C, 4}}; // Sort by first element of the pair sort(begin(X), end(X), [](auto a, auto b) { return a.first &lt; b.first; }); // Could this be better? Is there an existing STL algorithm that will // do this in-place? vector&lt; pair&lt;char, int&gt; &gt; Y; for(auto p : X) { if(Y.empty() || Y.back().first != p.first) { Y.push_back(p); } else { Y.back().second += p.second; } } cout &lt;&lt; "Y:"; for (auto p : Y) { cout &lt;&lt; '{' &lt;&lt; p.first &lt;&lt; ' ' &lt;&lt; p.second &lt;&lt; '}'; } cout &lt;&lt; '\n'; } </code></pre> <p><em>Could this code be made more succinct?</em> (Without changing the type of the underlying container)</p> <p>I'm looking to try to eliminate the <a href="https://youtu.be/qH6sSOr-yk8?t=130" rel="nofollow noreferrer">raw loop</a>, by replacing with an algorithm in the standard library, but I don't see one that would quite fit.</p> <p>I'd want some variant of <code>std::unique</code> which takes not only a predicate for whether two elements are equivalent, but also a function which defines how to combine them. It might look like:</p> <pre><code>coalesce(begin(X), end(X), [](auto a, auto b){ return a.first == b.first; }, [](auto a, auto b) { return {a.first, a.second+b.second} }); </code></pre> <p>FWIW, here's an implementation of <code>coalesce</code> which seems to work:</p> <pre><code>template&lt;class ForwardIt, class BinaryPredicate, class BinaryFunction&gt; ForwardIt coalesce(ForwardIt first, ForwardIt last, BinaryPredicate p, BinaryFunction f) { if (first == last) return last; ForwardIt result = first; while (++first != last) { if(p(*result, *first)) { *result = f(*result, *first); } else { ++result; *result = *first; } } return ++result; } </code></pre> <p>And the code becomes:</p> <pre><code> vector&lt; pair&lt;char, int&gt; &gt; X = {{A, 1}, {B, 2}, {C, 1}, {A, 3}, {C, 4}}; // Sort by first element of the pair sort(begin(X), end(X), [](auto a, auto b) { return a.first &lt; b.first; }); // Easier to understand the intent! auto e = coalesce(begin(X), end(X), [](auto a, auto b) { return a.first == b.first; }, [](auto a, auto b) { return pair&lt;char, int&gt;{a.first, a.second+b.second}; }); for_each(begin(X), e, [](auto p) { cout &lt;&lt; '{' &lt;&lt; p.first &lt;&lt; ' ' &lt;&lt; p.second &lt;&lt; '}'; }); cout &lt;&lt; '\n'; </code></pre> <p>NOTE: I'm quite familiar with <code>map</code>, etc, and don't want to use it.</p>
0non-cybersec
Stackexchange
He's so happy with himself.
0non-cybersec
Reddit
When you one of the few actual black people.
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Fast Fourier Transforms (x-post /r/math).
0non-cybersec
Reddit
What can we say about the order of a group given the order of two elements?. <p>If I know that a group of finite order has two elements $a$ and $b$ s.t. their orders are $6$ and $10$, respectively. What statements can be made regarding the order of the group?</p> <p>I know by Lagrange's that the elements should divide the order of the group, so I've taken the $\operatorname{lcm}$. I think the order of our group should be a multiple of $30$. But I'm thinking there's more I can say.</p>
0non-cybersec
Stackexchange
Steam's "Popular Upcoming list" is being manipulated by devs using false release dates.
0non-cybersec
Reddit
Reddit Electronic Roundup [No 15.].
0non-cybersec
Reddit
Minutes between two times in swift. <p>I got a string "14:05"</p> <p>How could i compare it with current time and get time difference in minutes?</p> <p>Difference may be both negative and positive(current time is before string or after)</p>
0non-cybersec
Stackexchange
Fibonacci numbers expressed as squares of lower Fibonacci numbers. <p>I am no mathematician so my apologies for my ignorance.</p> <p>I notice that every number in the Fibonacci series can be expressed as a previous Fibonacci number squared plus or minus (alternating) another previous Fibonacci number squared, and both columns of squares themselves are composed of the Fibonacci sequence, each number appearing twice from 2 onwards. ie</p> <pre><code>1 1 + 0 1+0 1 1 - 0 1-0 2 1 + 1 1+1 3 2 - 1 4-1 5 2 + 1 4+1 8 3 - 1 9-1 13 3 + 2 9+4 21 5 - 2 25-4 34 5 + 3 25+9 55 8 - 3 64-9 89 8 + 5 64+25 144 13 - 5 169-25 233 13 + 8 169+64 377 21 - 8 441-64 610 21 + 13 441+169 987 34 - 13 1156-169 </code></pre> <p>and so on.</p> <p>Is this well known? Is there a proof that it works for all Fibonacci numbers?</p>
0non-cybersec
Stackexchange
Trying to understand the definition of a free Abelian group.. <blockquote> <p>Let $B$ be a subset of an (additive) abelian group $F$. Then <strong>$F$ is free abelian with basis $B$</strong> if the cyclic subgroup $\langle b \rangle$ is infinite cyclic for each $b \in B$ and $F=\sum_{b \in B} \langle b \rangle $ (direct sum). A free abelian group is thus a direct sum of copies of $\Bbb Z$. A typical element $x \in F$ has a unique expression $$x = \sum m_b b$$ where $m_b \in \Bbb Z$ and almost all $m_b$ (all but a finite number) are zero.</p> </blockquote> <p>I understand that by $F = \sum_{b \in B} \langle b \rangle$ (direct sum), they mean an external direct product of the infinite cyclic subgroups $\langle b \rangle$.</p> <p>But what does $x=\sum m_bb$ mean? </p> <p>Since $F = \sum_{b \in B} \langle b \rangle = \{ ...,-b_1, 0, b_1, ...\} \oplus \dots \oplus \{\dots, -b_n, 0, b_n, \dots\}$ and $x \in F$, then $x=(m_1b_1, \dots, m_nb_n)$. But each $b$ is an element of $F$ and therefore by the same logic shouldn't each $b$ be of the form $(j_1b_1, \dots, j_nb_n)$? And therefore $x=(m_1(j_1b_1, \dots, j_nb_n), etc \dots)$?</p> <p>What exactly am I misunderstanding here? This seems like a circular definition.</p>
0non-cybersec
Stackexchange
generate HD addresses using publicKey Bip44. <p>I'm just wondering if it's possible to generate HD address using xPub?</p> <p>I tried to create HD address using BitWASP-PHP with the following path:</p> <pre><code>m / purpose' / coin_type' / account' / change / address_index m/44/0'/0'/0/1 </code></pre> <p>but the response is: </p> <blockquote> <p>Can't derive a hardened key without the private key</p> </blockquote> <p>I know that I can do it with Bip32 with the following path: 0/addressIndex</p> <p>but I would like to use bip44.</p>
0non-cybersec
Stackexchange
Decompose an invertible matrix into an exchangeable product of diagonalizable matrix and a matrix with all the eigenvalues equal to $1$. <blockquote> <p>Let <span class="math-container">$ g $</span> be an invertible <span class="math-container">$ n\times n $</span> complex matrix. Show that <span class="math-container">$ g $</span> can be written as <span class="math-container">$$ g=su=us ,$$</span> where <span class="math-container">$ s $</span> is diagonalizable and all eigenvalues of <span class="math-container">$ u $</span> are equal to <span class="math-container">$ 1 $</span>.</p> </blockquote> <p>My Attempt:</p> <p>Since <span class="math-container">$ g $</span> is an invertible complex matrix, then we assume that <span class="math-container">$ g $</span> is similar to <span class="math-container">$ \operatorname{diag}\{ J_1(\lambda_1), J_2(\lambda_2),\cdots, J_k(\lambda_k) \}=h^{-1}gh, \ h\in GL(n, \mathbb C) $</span> where <span class="math-container">$ J_i(\lambda_i) $</span> is the <span class="math-container">$ i $</span>-th Jordan block with eigenvalue <span class="math-container">$ \lambda_i&gt;0 $</span>. If <span class="math-container">$ k=n $</span>, i.e., <span class="math-container">$ g $</span> is diagonalizable, then take <span class="math-container">$ s=g, \enspace u=I_n $</span> the identity matrix and we are done. If not, it suffices to consider a non-diagonal Jordan block, say, <span class="math-container">$ \left(J_1(\lambda_1)\right)_{m_1\times m_1} $</span> with <span class="math-container">$ 2\le m_1\le n $</span>, since diagonalization and eigenvalues are invariant under similar transformations. </p> <p>Let's first try the easiest case which is <span class="math-container">$ m_1=2 $</span>. If we want to find a <span class="math-container">$ s $</span> which is diagonalizable, then we can find invertible matrix <span class="math-container">$ Q $</span>, s.t. <span class="math-container">$ Q^{-1}sQ=\operatorname{diag}\{ \tau_1, \tau_1 \}_{2\times 2},\ 0\ne\tau_1\in\mathbb C $</span>. Then we can write: <span class="math-container">$$\begin{align} Q^{-1}J_1(\lambda_1)&amp;=Q^{-1}su\\ &amp;=(Q^{-1}sQ)Q^{-1}u\\ &amp;=\tau_1Q^{-1}u .\end{align}$$</span> Hence we have <span class="math-container">$$ \begin{pmatrix}\lambda_1/\tau_1 &amp; 1/\tau_1\\ 0&amp;\lambda_1/\tau_1 \end{pmatrix}=u .$$</span> Since all eigenvalues of <span class="math-container">$ u $</span> are <span class="math-container">$ 1 $</span>, we deduce that <span class="math-container">$ \lambda_1=\tau_1 $</span>. Thus <span class="math-container">$$ u=\begin{pmatrix} 1&amp;1/\lambda_1\\ 0&amp;1 \end{pmatrix}. $$</span> And it should be clear that <span class="math-container">$$ s=\begin{pmatrix}\lambda_1&amp;0\\0&amp;\lambda_1\end{pmatrix} .$$</span> In general, we conclude that <span class="math-container">$$ s=\operatorname{diag}\{ \underbrace{\lambda_1,\cdots, \lambda_1}_{m_1},\underbrace{\lambda_2,\cdots, \lambda_2}_{m_2},\cdots, \underbrace{\lambda_k,\cdots, \lambda_k}_{m_k} \} ,$$</span> and <span class="math-container">$$ u=\operatorname{diag}\{ \frac{1}{\lambda_1}J_1(\lambda_1), \frac{1}{\lambda_2}J_2(\lambda_2),\cdots, \frac{1}{\lambda_k}J_k(\lambda_k) \} $$</span> up to similarity.</p> <hr> <p>Is it right to give a proof like that?</p>
0non-cybersec
Stackexchange
Please Help Us Track Down Apple II Collections - a call to arms by archivist Jason Scott to help preserve Apple II software.
0non-cybersec
Reddit
How can I find the Jordan form of this upper triangular Toeplitz matrix?. <blockquote> <p>Given an <span class="math-container">$n \times n$</span> matrix <span class="math-container">$A$</span> whose <span class="math-container">$(i,j)$</span> entry is</p> <p><span class="math-container">$$a_{ij} = \begin{cases} n-j+i &amp; \text{if } j \geq i\\ 0 &amp; \text{otherwise}\end{cases}$$</span></p> <p>find its Jordan form.</p> </blockquote> <p>I know that all the Jordan blocks will have <span class="math-container">$\lambda = n$</span> as eigenvalue, but how can I find the size of each block?</p>
0non-cybersec
Stackexchange
[Request] Depressing films.
0non-cybersec
Reddit
Determine the line of code that causes a segmentation fault?. <p>How does one determine where the mistake is in the code that causes a <a href="https://stackoverflow.com/questions/2346806/what-is-a-segmentation-fault">segmentation fault</a>?</p> <p>Can my compiler (<code>gcc</code>) show the location of the fault in the program?</p>
0non-cybersec
Stackexchange
$f(x)=a^{x}.$ Find $f(f^{-1}(x))$. Explain the intuition behind this.. <p>Question: <span class="math-container">$f(x)=a^{x}.$</span> Find <span class="math-container">$f(f^{-1}(x))$</span>. Explain the intuition behind this. </p> <p>I know that <span class="math-container">$f(f^{-1}(x))=x$</span>, so it is a silly question, but what does it really mean? How would you explain it from basics to a student in for example middle school?</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to fix NixOS localtime service?. <p>Setting <code>services.localtime.enable = true;</code> <a href="https://nixos.org/nixos/options.html#services.localtime.enable" rel="nofollow noreferrer">should</a> start a "simple daemon for keeping the system timezone up-to-date based on the current location.", but <a href="https://github.com/NixOS/nixpkgs/issues/67673" rel="nofollow noreferrer">it doesn't</a>:</p> <blockquote> <p>Failed to get target of /etc/localtime: No such file or directory</p> </blockquote> <p><code>touch /etc/localtime</code> might fix it in the short run, but I don't expect that's a reasonable workaround – NixOS' /etc is not meant to be hacked this way, after all. I guess some other setting is also needed to make this work, but the documentation doesn't mention anything. Unfortunately the bug report linked above hasn't received any attention, so I hope someone in this community knows what to do.</p> <hr> <p><a href="https://github.com/NixOS/nixpkgs/issues/67673#issuecomment-527859105" rel="nofollow noreferrer">Setting <code>time.timeZone = "UTC";</code> as well</a> results in the service starting. However, the service (and the geoclue service) don't produce any useful output:</p> <pre><code>$ journalctl --boot --output=cat --unit geoclue.service Starting Location Lookup Service... Started Location Lookup Service. $ journalctl --boot --output=cat --unit systemd-timedated.service Starting Time &amp; Date Service... Started Time &amp; Date Service. Failed to set timezone: Europe/Zurich </code></pre> <p>and <strong>the /etc/localtime symlink keeps pointing to /etc/zoneinfo/UTC</strong> even after being online for an hour or so.</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
One of these US soccer fans doesn't quite fit in..
0non-cybersec
Reddit
Find $\lim_{n\rightarrow\infty} e^{n+\frac{1}{n}}-e^n$?. <p>$\lim_{n\rightarrow\infty} e^{n+\frac{1}{n}}-e^n$</p> <p>I tried multiplying and dividing with $e^{n+\frac{1}{n}}+e^n$ and then doing l'hopital, but I got nowhere</p>
0non-cybersec
Stackexchange
Inside the meat lab: the future of food -- "9 billion human beings cannot possibly go on eating food, especially meat, produced in the traditional way. The planet can't take it.".
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Where are the connection files for IIS Manager for Remote Administration?. <p>I have <a href="http://www.microsoft.com/en-us/download/details.aspx?id=41177" rel="nofollow noreferrer">IIS Manager for Remote Administration</a> installed on one PC and now I have a new PC and want to move the connections I setup on my old PC. But I don't know where are the connection files are saved. I tried to look into my Profile but don't have a clue on where they are.</p> <p>I have the 32bit on the old PC and 64bit on the new PC. I also wonder if the connection files can be shared among them at all?</p>
0non-cybersec
Stackexchange
How do I repeat an included .tex file multiple times?. <p>I would like to repeat a file in a LaTeX document multiple times:</p> <pre><code>\include{probenahme/sample} \include{probenahme/sample} \include{probenahme/sample} \include{probenahme/sample} \include{probenahme/sample} </code></pre> <p>However, if I compile the main document with <code>latexmk -pdf main-document.tex</code>, It will throw the following error:</p> <pre><code> level-1 auxiliary file: probenahme/sample.aux Already encountered file probenahme/sample.aux ---line 26 of file probenahme.aux : \@input{probenahme/sample.aux : } I'm skipping whatever remains of this command Already encountered file probenahme/sample.aux ---line 27 of file probenahme.aux : \@input{probenahme/sample.aux ... </code></pre> <ul> <li>It works fine with a single <code>\include{probenahme/sample}</code></li> <li>It works if I run <code>pdflatex main-document.tex</code> instead of <code>latexmk -pdf main-document.tex</code></li> <li>I don't want to use the <code>latexmk -f</code> option because it runs in a continuous integration environment and I want that to catch other errors.</li> </ul> <p>What is the problem and how do I solve it while still using <code>latexmk</code>?</p>
0non-cybersec
Stackexchange
Who is your favourite living artist?. After being asked who my favourite living artist was, I shocked myself by being completely stumped. The artists I truly enjoy are dead and buried, and I have (stupidly) failed to remember the names of the artists whose work I've really enjoyed recently. I'd always considered myself someone who was quite 'into' art, but now I've realised I've only seen the surface of an obviously huge world. So Reddit, who's your favourite living artist? EDIT: This question encompasses all artists; painters, multimedia, minimalism, it's all good.
0non-cybersec
Reddit
Probability - binary array through a comm. channel. <p>An information through a communication channel is transmitted as a binary array - an array of bits (1s and 0s). But the bits can get corrupted, 1 can turn into a 0 and 0 can turn into a 1 with a probability of $1-a$ . </p> <p>The bits are transmitted independent of one another. </p> <p>Seeing a lot of signals that need to be transmitted, it was acknowledged that the ratio between 0s and 1s is $3:4$ .</p> <p>Find the distribution of the input array, if the output is $101$ . </p>
0non-cybersec
Stackexchange
Old Man at Comedy Club Has a Contagious Laugh.
0non-cybersec
Reddit
Android spinner with date picker, like Google Calendar app. <p>I'm trying to get a text box that looks like a spinner to activate a date picker dialog. This is done in both the Google Calendar app and the Contacts app (for birthdate) on ICS. Do I need to use a spinner, and if so how do I change it's input view to be a date picker? Or if not, how do I get a text view to have the little triangle that usually indicates a spinner?</p>
0non-cybersec
Stackexchange
[REQUEST] Shows that are NOT slow burners/slow paced?. After watching Travelers, The Sinner and Man in the High Castle within the last few months, I'm sick to death of slow motion shows where every conversation is dragged out unnecessarily, and episodes are 5-10 mins longer than they should be because we spend time watching people stare at something/someone for ages. So I'm looking for shows where things progress a bit quicker. I'm thinking the likes of The Last Kingdom, Jack Ryan, Bosch, Chuck, The Marvel Shows, sons of anarchy, orange is the new black etc etc. Any recommendations please?
0non-cybersec
Reddit
9,000 pounds of fire retardant vs. car.
0non-cybersec
Reddit
How many uTorrent clients are running in a network?. <p>I have a router through which 10 PC's are connected to run internet, almost all PC's have uTorrent. I want to detect that how in many PC's uTorrent is running at a time.</p> <p>Is there any way or tool through which I can detect this.</p> <p>Thanks</p>
0non-cybersec
Stackexchange
The Elevator Ride.
0non-cybersec
Reddit
[US] Blue Mountain State: The Rise of Thadland (2016) - Basically a 90 minute episode of BMS, if you liked the series this is worth the watch.
0non-cybersec
Reddit
macOS Sierra doesn&#39;t have the crispy fonts as they used to be in earlier versions. <p>First, running the following command:</p> <pre><code>defaults -currentHost read -globalDomain AppleFontSmoothing </code></pre> <p>gives me back <code>3</code>.</p> <p>But the fonts nowhere look the way they used to look in earlier versions of macOS. I was using Yosemite before, and today I upgraded to Sierra. Below is the screenshot of Sublime Text editor.</p> <p><a href="https://i.stack.imgur.com/IWvrU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IWvrU.png" alt="enter image description here"></a></p> <p>They look OK in iTerm, but elsewhere - including browsers - font rendering is much worse.</p> <p>So how can I make these fonts as crispy as they used to on earlier macOS/OS X versions? I guess it definitely has something to do with AppleFontSmoothing, or font anti-aliasing in general, but I have tried the many other options in this regard, that are as follows:</p> <ol> <li>Setting <code>AppleFontSmoothing</code> with and without <code>currentHost</code> flag, and restarting the macbook each time I make a change to see the changes.</li> <li>Ran the command <code>sudo atsutil databases -remove</code> to remove all the user installed fonts.</li> <li>Re-installing the font that I was using to get the desired result. (Note: I was using "Bitstream Vera Sans Mono")</li> <li>Tried to change font smoothing option for specific applications like <code>com.apple.terminal</code> but it didn't work either.</li> </ol> <p>Note: <a href="https://discussions.apple.com/thread/7273274?start=0&amp;tstart=0" rel="nofollow noreferrer">a similar question.</a></p>
0non-cybersec
Stackexchange
My friend sent me this today..
0non-cybersec
Reddit
Though this little guy might look a lot like his cousin, the great white, he's actually a salmon shark! As their name indicates, one of their favorite foods is salmon, and to be successful in catching a meal, this juvenile will one day reach speeds of up to 50mph..
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
I rename a app folder on the iPhone 3GS using iTunes 10.1 on Mac; then sync causes it to revert. <p>I run iTunes on the Mac MBP (Snow Leopard). I have a folder of apps called New Folder. I click on it to open it, rename it, then close it. It shows the new name. But then after sync it changes back to New Folder.</p> <p>I do wonder if it is some name conflict. The new name was sushi, and there are sushi apps. But what is weird is it does show up with the new name until I press sync.</p> <p>EDIT 2/20/11: It isn't a name conflict; I have seen this at other times. Also it shows all the apps in alphabetical order, it appears.</p>
0non-cybersec
Stackexchange
Still not okay.
0non-cybersec
Reddit
Error estimate for a Finite Element Method. <p>Let $0=x_0&lt;x_1&lt;...&lt;x_n$ be a partition of the interval [0,1] and let $S=\{v\in C^0([0,1]):v|_{[x_i,x_{i-1}]} \mathrm{is\ a\ linear\ polynomial}, i=1,...,n\ \mathrm{and}\ v(0)=0\}.$Suppose $u(x)\in S$ is such that $$ \int_0^1u'(x)v'(x)dx=\int_0^1f(x)v(x)dx $$ and let $\tilde{u}(x)\in S$ be such that $$ \int_0^1\tilde{u}'(x)v'(x)dx=\sum_{i=0}^N\frac{h_i+h_{i+1}}{2}f(x_i)v(x_i)$$ where $$ h_i=x_i-x_{i-1},\ h_0=h_n=0. $$ I want to show that $$ ||u'-\tilde{u}'||_{L_2}\leq Ch^2(||f'||_{L_2}+||f''||_{L_2}). $$ I've attempted to integrate by parts, use Holder's inequality, and use Poincare's inequality where appropriate, but have come up empty. Does anyone have any suggestions on how to prove this estimate?</p>
0non-cybersec
Stackexchange
we yell too much.. my almost 4 year old has been difficult for most of his 3's - as most kids are - i know i'm not alone or unique in this. he's not a bad kid, he's not trying to be difficult, but he's all ego, and if he doesn't want to do something, it's a fucking fight. he's got impulse control, but only on the things that matter to him. i don't think he has add/adhd, though he is called "busy" often. he needs to be redirected, he needs to calm the fuck down sometimes. but i got a migraine yesterday, my first ever, and he just pushed all the buttons. i am venting... so in short, i yell at him when he's not listening, being difficult, and that's not effective. i feel really bad, really guilty. i've never been a yeller and i know i'm a huge part of the problem. i'm going to turn it around but i'm here so i don't feel so alone, in both my frustration, disappointment and guilt - with him AND myself.
0non-cybersec
Reddit
grep and directories containing spaces. <p>I would like to search all files containing an association of strings (here the files should contain 'arthur' AND ('déni' OR 'deni') for instance) in a directory and subdirectories. After some search I came up with the following code:</p> <pre><code>egrep -li 'arthur' `egrep -lir 'déni|deni' /path/to/files/` </code></pre> <p>the trouble is I get error messages because many files and directories contain spaces. Is there a way to go round this issue?</p>
0non-cybersec
Stackexchange
A time-domain filter that optimizes accuracy of the result of Fourier transform within a frequency band. <p>I remember from a lecture that there is a filter, applied to a time-domain signal, that results in the smallest mean-squared error between the "true" (continuous) Fourier transform of that signal, and it's discretised version given finitely many sample points, within a specific frequency range.</p> <p>So, the error is only evaluated within <span class="math-container">$f_{\min}$</span> and <span class="math-container">$f_{\max}$</span>, the accuracy outside this range is ignored. </p> <p>This is from memory and I'm not certain whether it was</p> <ul> <li>within a frequency range or just below or above a specific frequency</li> <li>whether the error was really mean-squared error.</li> </ul> <p>I'm happy to delete this question if it doesn't make sense (if my memory is completely off).</p> <p>I researched, but what I found so far is only filters that reduce the signal to lie within a specific range. That is not my intention, because the Fourier transform will take care of this. (However, those filters might also improve the accuracy of the Fourier-transformed signal. That would again be interesting.)</p> <p>I have close to no background in signal processing, unfortunately.</p>
0non-cybersec
Stackexchange
$\mathrm{Supp}(\mathrm{Exc}(f))=\mathrm{Supp}(K_X-f^*K_Y)?$. <p>Let <span class="math-container">$f:X\to Y$</span> be a log resolution of normal varieties, let <span class="math-container">$\mathrm{Exc}(f)$</span> be the locus (the complement in <span class="math-container">$X$</span> of the largest open where <span class="math-container">$f$</span> is an isomorphism). </p> <p>Is there an example of <span class="math-container">$f$</span>, such that some codimension <span class="math-container">$1$</span> component of <span class="math-container">$\mathrm{Exc}(f)$</span> does not appear in the support of <span class="math-container">$K_X-f^*K_Y$</span>? </p>
0non-cybersec
Stackexchange
We are three experts on individuals who cause sexual harm and the prevention of sexual abuse; ask us anything about sexual abuse and sexual violence.. **EDIT:** Thank you everyone for the great questions! We will stop now at 5:00 PM Eastern. Please visit www.atsa.com & www.nsvrc.org for more information regarding sexual abuse perpetration and prevention. Check out our twitter accounts to follow us for updates: [@MakeSocietySafe](https://twitter.com/MakeSocietySafe) Association for the Treatment of Sexual Abusers [@NSVRC]( https://twitter.com/NSVRC) National Sexual Violence Resource Center [@MCSeto](https://twitter.com/MCSeto) Michael Seto ------------------------ Recently, we have witnessed unprecedented media coverage and public attention regarding sexual abuse. As high-profile accounts of abuse and harassment have been highly publicized, it can feel overwhelming and confusing and raise questions regarding what we can do to prevent the perpetration of sexual abuse. Sexual abuse affects everyone in our society and the three of us are here today to answer questions you may have regarding those who cause sexual harm, survivors of sexual abuse, sexual abuse prevention, sex offender treatment and/or management and resources for survivors of sexual abuse. Ask us anything about sexual abuse. Maia Christopher, /u/MaiaATSA is the Executive Director of the Association for the Treatment of Sexual Abusers (ATSA). Focusing on preventing sexual abuse through understanding and interrupting the behaviors of people at risk of offending ATSA specializes in disseminating research, defining and supporting effective treatment practices and promoting evidence based policies. Karen Baker, LMSW, /u/KarenNSVRC has been the Director of the National Sexual Violence Resource Center (NSVRC) for the past 17 years. She is a Member of the Board of Directors for the Association for the Treatment of Sexual Abusers (ATSA) and Co-Chair of the ATSA Prevention Committee. Ask me anything about sexual violence, needs of survivors, victim advocacy, the role of bystanders, prevention strategies and resources related to sexual violence. Follow NSVRC on Twitter @NSVRC. Michael Seto, /u/MCSeto is a clinical & forensic psychologist & researcher who has focused on the areas of pedophilia, paraphilias, sexual offending against children, and online offending. He has presented and published extensively on these topics and has written well reviewed solo books on pedophilia & sexual offending against children (2008) and online sexual offending (2013). Follow him on Twitter, @MCSeto. Proof: https://imgur.com/a/tYoiq EDIT: More Proof: https://twitter.com/MCSeto/status/941020600839090187 https://twitter.com/MakeSocietySafe/status/941021881326501890 https://twitter.com/NSVRC/status/941020925415260160
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
When it peels off.
0non-cybersec
Reddit
How can I find this integral for a fourier series?. <p>I have to calculate the following integral $$ b_n = \dfrac{1}{\pi} \int_{-\pi}^{\pi} \dfrac{1}{2}x \sin nx dx$$</p> <p>The correct answer is apparently $$\dfrac{(-1)^{n-1}}{n}$$</p> <p>But I have no idea how I should get this answer. I was able to find that $$\int \dfrac{1}{2}x\sin nx dx = \dfrac{\sin nx - nx \cos nx}{2n^2}$$</p> <p>How should I proceed?</p>
0non-cybersec
Stackexchange
Problem 2h. Munkres Topology Section 1.1 Confirmation. <p>I'm learning (or trying to) topology from Munkres' Topology. I believe I've solved 2h in Section 1.1, but I wanted to confirm with someone that I am doing it right. Here it is: </p> <blockquote> <p>$ A\cup (B - C) = (A \cup B) - (A \cup C)$</p> </blockquote> <p>I believe that this is false, and here's why. On the RHS, you have elements in $A \cap C$ that you don't have on the LHS. Therefore, I believe that there is a backwards implication ( $\impliedby$). Can someone confirm or tell me where my logic is wrong? Thank you so much :) </p>
0non-cybersec
Stackexchange
Prove by induction that ${x}^{2k}-{y}^{2k}=(x+y)t$ for all natural numbers $k$ and $t$.. <p>Although it is an elementary algebraic result proved easily using algebra but I wanted to prove it inductively.</p> <p>In my endeavor to do this, I've reached to the step which not only requires the preceding term but also the penultimate term to be true but in induction we only starts with the assumption of the previous term to be true. So, I'm left wondering how could I proceed further?</p> <p>My proof goes like this:</p> <p>$a(k)={x}^{2k}-{y}^{2k}$</p> <p>$a(1)={x}^{2}-{y}^{2}=(x+y)(x-y)$</p> <p>So, $a(1)$ is true.</p> <p>Now, let us assume that $a(n)$ is true.</p> <p>So, ${x}^{2n}-{y}^{2n}=(x+y)p$ for some polynomial $p$</p> <p>Now, </p> <p>$a(n+1)={x}^{2n+2}-{y}^{2n+2}$</p> <p>$={x}^{2n+2}-{y}^{2n+2}-{x}^{2}{y}^{2n}+{x}^{2}{y}^{2n}+{y}^{2}{x}^{2n}-{y}^{2}{x}^{2n}$</p> <p>$={x}^{2}({x}^{2n}-{y}^{2n})+{y}^{2}({x}^{2n}-{y}^{2n})-{x}^{2}{y}^{2}({x}^{2n-2}-{y}^{2n-2})$</p> <p>$=({x}^{2}+{y}^{2})({x}^{2n}-{y}^{2n})-{x}^{2}{y}^{2}({x}^{2n-2}-{y}^{2n-2})$</p> <p>$=({x}^{2}+{y}^{2})((x+y)p)-{x}^{2}{y}^{2}({x}^{2n-2}-{y}^{2n-2})$</p> <p>Now I'm stuck with ${x}^{2}{y}^{2}({x}^{2n-2}-{y}^{2n-2})$ divisibility by 11 that is the divisibility of $a(n-1)$ term by 11.</p>
0non-cybersec
Stackexchange
Haproxy auto reload on configuration change. <p>I am new to haproxy, I have below questions...</p> <p>1.) I am trying to configure Haproxy in such a way that it automatically reloads after the configuration on the file(haproxy.cfg) is changed.</p> <p>Tried, but did not work :- <a href="https://serverfault.com/questions/361412/haproxy-graceful-reload">Haproxy graceful reload</a>.</p> <pre><code>/usr/sbin/haproxy -f haproxy.cfg -p /var/run/haproxy.pid -D -sf $(cat /var/run/haproxy.pid) </code></pre> <p>Also tried:-</p> <pre><code>/usr/sbin/haproxy -f haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) </code></pre> <p>2.) I installed haproxy by <code>apt-get install haproxy</code>, will this ensure that it runs in daemon mode ?</p> <p>P.S. I am using haproxyv1.8</p>
0non-cybersec
Stackexchange
Me too....
0non-cybersec
Reddit
C# &amp; ASP.NET MVC: how to remove null and empty fields from SignalR JSON response globally. <p>I want to remove the empty or null value from the JSON response.</p> <p>I have already used in the SignalR but in this project used dependency injection.</p> <pre><code>public class Startup { public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); HubConfiguration config = new HubConfiguration() { EnableDetailedErrors = true, EnableJavaScriptProxies = true, }; var jsonSerializer = new JsonSerializer(); jsonSerializer.DateFormatString = GlobalConfig.DateFormat; jsonSerializer.NullValueHandling = NullValueHandling.Ignore; GlobalHost.DependencyResolver.Register(typeof(JsonSerializer), () =&gt; jsonSerializer); app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()); app.MapSignalR("/signalr", config); } } </code></pre> <p>But I want to use in simple 3 tier architecture ASP.NET MVC project but I can't find a proper solution.</p>
0non-cybersec
Stackexchange
How to swap parameters in Shell command. <p>I have a command with parameters in shell. like</p> <pre><code>Command -a -b </code></pre> <p>assume <code>a</code> <code>b</code> are very long directory name, and they are not always the first and last parameters.</p> <p>However, I need to use this command again. I use <code>ctrl+p</code> to go back the command, but this time I need to reverse <code>a</code> <code>b</code> order.</p> <pre><code>Command -b -a </code></pre> <p>Instead of retyping them again, is there any way to fast swap them?</p> <p>Thanks in advance.</p>
0non-cybersec
Stackexchange
Remove single remote notification from Notification Center. <p>my app receives remote notification from Apple server. </p> <p>Is there a way to remove a single remote notification from notification center (the drop-down menu available from iOs 5.0+), when the user taps on it?</p> <p><img src="https://i.stack.imgur.com/ZETe1.jpg" alt="enter image description here"></p> <p>Thanks!</p>
0non-cybersec
Stackexchange
Convert. Earlier today at a family reunion, one of my cousins brought out a few board games to play together. For a while we were just playing Samurai Sword, but it was a three person game and one of us had ot leave partway through. So then he brought out Convert (we were calling it Converge because of the strange lettering on the box). He bought it at some games convention, and I looked it up recently... It's amazingly fun, simple to learn and it's a very quick game (good for playing in between turns of something like Axis and Allies). I honestly just want to share this game with you guys, it's really fun, and I want it to do well. You can find it [here.](http://www.yodeogames.com/products/convert) I have no affiliation with the makers of this game, I just think it's cool. ~~There's a facebook page somewhere where the creator posts one-person brainteasers, too, but I can't seem to find it. I will update this if/when I do!~~ EDIT: Found it fairly fast! The facebook page is [here](https://www.facebook.com/YodeoGames?fref=ts), if anyone is interested. You may have to scroll through a bit to find the puzzles.
0non-cybersec
Reddit
Windows with Visual Studio 2010 on virtual machine under Ubuntu. <p>Has anyone used Windows on a virtual machine under Ubuntu?</p> <p>How does Visual Studio 2010 work on it?</p>
0non-cybersec
Stackexchange