text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Always fun!.
0non-cybersec
Reddit
Maybe not THE scariest story ever but here goes... . Hey Reddit, Okay so I have one brief story and two that are connected - will try my best not to ramble on too much.I'll just note, I'm female - that might put everything in context a little better. Firstly - you'll have trouble sleeping for weeks on end, possible forever if you ever have the misfortune of waking up to a stranger watching you sleep. I was 17 and my parents were renovating and landscaping our property, so we had no fence when this happened. I woke up at about 3am one night, and couldn't work out what had woken me up but I didn't feel right - basically I felt kind of threatened. I looked up and there's this huge motherfucking dude watching me sleep through my door (i had a room with a door to the backyard, which was all little window panes). Freaked me the fuck out - totally went into fight or flight mode but I couldn't scream or anything, I was kind of frozen and felt like my heart was beating in my throat. All I could think to do was hit the 'sleep' button on my clock radio and turn the sound up as loud as it went so that my dad would come down to investigate (my parent's were always complaining about my loud music after 11pm). Thankfully he came running down to see why the fuck I had the music up so loud and by then this dude outside the window had fucked off. Okay so these two kind of go together. I moved into a sharehouse with a bunch of friends and we decided it was a good idea to let this dude we barely knew move in and sleep/live behind the couch so that we could all pay a bit less rent. Seemed all cool until he slept in my bed one weekend when I was away and wanked in it. Fine, I washed the sheets - we kicked him out. Found out that he wanted to do more than wank in my bed and started getting calls from someone he knew telling me to go elsewhere possibly even leave the town (we were in the country at the time) as this dude was very likely to try and break in and rape or attack me in some way. So my best friend and I pack up our shit and go to stay at her bf's house for the night. He ended up having to leave us pretty late for some kind of work emergency and we're stuck in this huge fucking house literally next to nothing but a goddammed paddock full of cows in the middle of nowhere. So initially we're like "we cool" and we figure that this dude isn't going to be able to get to where we are (he had no car) and we're gonna be fine. Gets to around 1am and we start hearing some pretty weird noises from outside. Like I said - we're in the middle of nowhere all we should be able to hear is any cars going by on the highway or cows. So we go check all the doors are locked and I start to get a bit freaked out when I hear someone walking around the side. At this point I'm looking for some kind of weapon just in case and notice that the door leading outside near where I can hear footsteps has a dog door big enough for a freaking St Bernard or a person to get through. My friend was calling the police - I completely broke down - the noises outside (random scuffling and a few things being knocked around) are still going and I'm sitting with my back to a wall holding a cricket bat watching this dog door waiting for the police to get there - I was absolutely shitscared. The noises all stopped not long before the police arrived but there was evidence that someone had definitely been there - some fresh mud tracked onto the concrete out the back and some stuff in the garage had been moved around. So skip forward a night or two and my best friend and I decide it's time we go home since we're living with a few people in our own house and they've all agreed to stay home and have a bit of a gathering so that we're not alone - we ended up with about 14 people including those of us that lived there for the whole night - no-one left until the next day. I'd barely slept the nights before and was pretty happy to get back to my bed (with clean sheets) and decided to go to bed early. Now my... bed (it was really just a mattress on the floor) was directly under the window, the blinds were closed, but didn't actually close flush with the windowsill so there was a gap there where I guess someone would be able to see in to my bed. So I'm lying there - pretty relaxed for the first time since the other night, I even remember having candles going and a can of jack and coke there. Suddenly I get this feeling, like I'm being watched. I totally froze and didn't even know what to do this time. I knew even if my friends heard loud music coming from my room they wouldn't bother coming to investigate and again I couldn't scream. I basically just closed my eyes and tried to pretend this was not happening - I knew it was couch dude though. I don't know how long I was there for, but after a few songs on the radio the feeling was gone - I knew there was no-one there, that 'watched' feeling just kind of went away. At this point I bolted out of my room and out where all of my housemates and friends were and explained it to them. They were all pretty drunk and stoned at this point and once I was back in the company of others in the brightly lit loungeroom it all kind of seemed like nothing was wrong. I had a drink and we all stayed up - I figured it was probably just me being overly sensitive since I didn't actually hear or see anyone. Just had that awful being watched kinda feeling. Fast forward to the morning - I decide to take a look around the outside of the house, specifically outside my window to check and see if there was any evidence of anyone being there the night before. My flyscreen was missing from my window - someone had taken it off during the night, I thought it was strange and kept walking around the house. When I got to the garage I noticed glass all over the ground. We'd never used the garage for anything because we had no key and the real estate agents never gave us one (despite us asking for one). Someone had broken the garage window, but not from the outside - from the goddammed INSIDE. Not only is it extremely fucking weird that someone broke a window right near the room that we were all in without anyone hearing it, but they smashed it from INSIDE THE FUCKING GARAGE. Major wtf - we knew none of us had done it purely because none of us had bothered to find any way into the garage and also none of the people that lived in the house wanted to lost their deposit to get a window fixed. We never worked out how the window got broken or where couch dude was that night - I heard a bit later after moving away that couch dude had been using someone we know to drive him around after he moved out and that he was definitely the one creeping around the house the first time. The second time remains a mystery. Sorry this turned out heaps longer than I meant it to, and might not be as scary as the paranormal or anything like that, but it was real, happened to me and still stops me from sleeping sometimes now.
0non-cybersec
Reddit
[Home Made] Thick sliced pork belly marinated with soy sauce, vinegar, honey, garlic, fresh cracked black pepper.
0non-cybersec
Reddit
I thought the snow would stump my dog with her morning routine....
0non-cybersec
Reddit
Active Directory Certificate Services won&#39;t start - error 100. <p>I've migrated my Active Directory Certificate services Enterprise CA to a new server (and from Windows 2003 R2 x86 to Windows 2008 R2 x64). I have been having problems with checking the Certificate Revocation Lists, but I've republished the revocation lists from the Root CA and when I run certutil -urlfetch -verify I don't get any errors any more:</p> <pre><code>Verified Issuance Policies: None Verified Application Policies: All Cert is a CA certificate Leaf certificate revocation check passed CertUtil: -verify command completed successfully. </code></pre> <p>But I still get the same errors when I try to start the CA. I get the following pop-up:</p> <pre><code>Microsoft Active Directory Certificate Services --------------------------- The system cannot find the file specified. 0x2 (WIN32: 2) The policy module for a CA is missing or incorrectly registered. To view or change policy module settings, right-click on the CA, click Properties, and then click the Policy Module tab. --------------------------- OK </code></pre> <p>and I get the following error in the log:</p> <pre><code>Log Name: Application Source: Microsoft-Windows-CertificationAuthority Date: 26/06/2012 15:59:45 Event ID: 100 Task Category: None Level: Error Keywords: Classic User: SYSTEM Computer: SRV112.cobbsch.cobbetts.co.uk Description: Active Directory Certificate Services did not start: Could not load or verify the current CA certificate. Cobbetts LLP Enterprise CA The system cannot find the file specified. 0x80070002 (WIN32: 2). Event Xml: &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt; &lt;System&gt; &lt;Provider Name="Microsoft-Windows-CertificationAuthority" Guid="{6A71D062-9AFE-4F35-AD08-52134F85DFB9}" EventSourceName="CertSvc" /&gt; &lt;EventID Qualifiers="49754"&gt;100&lt;/EventID&gt; &lt;Version&gt;0&lt;/Version&gt; &lt;Level&gt;2&lt;/Level&gt; &lt;Task&gt;0&lt;/Task&gt; &lt;Opcode&gt;0&lt;/Opcode&gt; &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt; &lt;TimeCreated SystemTime="2012-06-26T14:59:45.000000000Z" /&gt; &lt;EventRecordID&gt;852&lt;/EventRecordID&gt; &lt;Correlation /&gt; &lt;Execution ProcessID="0" ThreadID="0" /&gt; &lt;Channel&gt;Application&lt;/Channel&gt; &lt;Computer&gt;SRV112.cobbsch.cobbetts.co.uk&lt;/Computer&gt; &lt;Security UserID="S-1-5-18" /&gt; &lt;/System&gt; &lt;EventData Name="MSG_E_CA_CERT_INVALID"&gt; &lt;Data Name="CACommonName"&gt;Cobbetts LLP Enterprise CA&lt;/Data&gt; &lt;Data Name="ErrorCode"&gt;The system cannot find the file specified. 0x80070002 (WIN32: 2)&lt;/Data&gt; &lt;/EventData&gt; &lt;/Event&gt; </code></pre> <p>Microsoft have documentation for this error: <a href="http://technet.microsoft.com/en-us/library/cc774550(v=ws.10).aspx" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/library/cc774550(v=ws.10).aspx</a></p> <p>But the documentation just talks about the CA chain not verifying, which it now is.</p> <p>I was wondering if it was some sort of a cached failure, or a cached copy of an incorrect CRL (I migrated the root CA earlier on and had to republish the CRL before certutil would verify properly), so I tried a reboot to flush out the caches.</p> <p>That didn't change anything.</p> <p>I've also tried running Certutil as SYSTEM to see if there was a permissions issue and that didn't solve the problem either.</p> <p>[To run as system: run psexec -i -s cmd.exe from an elevated command prompt and it will launch a command prompt as system. You can run whoami to check.]</p>
0non-cybersec
Stackexchange
Insomnia (2002) Review. Insomnia (2002) Review 8/10 First thought- Al Pacino being the lead detective was really well cast. I've always thought that there is something in his facial appearance that made him look constantly exhausted. I like that they snuck in that Pacino's insomniac characters last name is Dormer.... the French verb "Dormir" means to sleep! I enjoyed Hilary Swank's performance as small town officer and Robin Williams' departure from comedy in playing a serious role. I previously watched this film (likely on DVD rental from Blockbuster- RIP) and was surprised by the details I forgot over the years.
0non-cybersec
Reddit
Identity Thief - Slowbro-Style.
0non-cybersec
Reddit
Should the pins on both sides of an RJ11 cable be in the same order?. <p>Is RJ11 pin order like RJ45 where the order is always the same (e.g. Brown is always on the left, when looking from the bottom), or should they be mirrored - one side with red on the green's right, and the other with the green on the red's right?</p> <p>According to the layouts I saw on the internet it seems that they should be like RJ45 - the same. But when checking an RJ11 cable that I have, it's mirrored - one's left-to-right is the other's right-to-left.</p> <p>So which one is it?</p>
0non-cybersec
Stackexchange
Bruh this guy.
0non-cybersec
Reddit
Will somebody please get me a towel?.
0non-cybersec
Reddit
My friend just made his life more dank.
0non-cybersec
Reddit
A narrowly averted head-on collision.
0non-cybersec
Reddit
This Tokyo bathroom is equipped with toys and action figures.
0non-cybersec
Reddit
YSK about curated multireddits, a better way to browse similarly themed subreddits.. [/m/retrogamingnetwork](http://www.reddit.com/user/ZadocPaet/m/retrogamingnetwork) for example is a multireddit combining 49 lesserknown subreddits into a relevant multireddit. /r/multihub is place to find all sorts of interesting multireddits. Perhaps the best way to demonstrate the convenience of multireddits is to share /r/Lapper's [/m/depthhub](http://www.reddit.com/user/Lapper/m/depthhub), a multireddit consisting of 26 cerebral subreddits. EDIT: [/m/kindlenetwork](http://www.reddit.com/user/wanderjahr/m/kindlenetwork) is my current favorite multireddit. It combines Kindle subreddits with Kindle Unlimited subreddits.
0non-cybersec
Reddit
How does this answer work?. <p><a href="https://tex.stackexchange.com/users/1424/harald-hanche-olsen">Harald Hanche-Olsen</a> posted some interesting code in answer to <a href="https://tex.stackexchange.com/questions/6171/wrapping-long-lines-that-contain-no-spaces">this question</a>.</p> <p>Could someone explain how it works?</p> <p>I understand (I think) the futurelet and the expansions. I don't understand:</p> <ol> <li>Where does the <code>&lt;null&gt;</code> character come from in <code>\ifcat\next9</code>?</li> <li>How does the expanded text actually get broken into the <code>\hbox</code>'s? (Pages 98-99 of the TeXbook didn't really help me understand the trace output in this case, so I'm hoping someone can clarify.)</li> </ol> <p>Thanks!</p> <p>Here is the code reproduced from the referenced answer:</p> <pre><code>\def\breaknumberanywhere{\hskip0pt\futurelet\next\breaknumberi} \def\breaknumberi{\ifcat\next9\expandafter\breaknumberii\fi} \def\breaknumberii#1{#1\breaknumberanywhere} \def\foo#1#2{\vtop{\hsize=#1\rightskip=0pt plus 1fil \leftskip=0pt\noindent\breaknumberanywhere#2}} Here is a long number: \foo{2in} {17823941237490812347123904712389407123408917234890123748912034712985712389012351} \bye </code></pre>
0non-cybersec
Stackexchange
Is the identiy function continous on equivalent metric spaces. <p>Let $f$ be the identity function from $(X,d_1) \to (X,d_2)$. If $d_1$ and $d_2$ are equivalent metrics we can deduce that the identity function is continuous, right? </p> <p>Since for every open set $G$, its pre-image under $f$ would also be $G$, and since the metrics are equivalent an open set in one metric is open in the other?</p>
0non-cybersec
Stackexchange
How many divisor $x^2$ has which are less than $x$?. <p>$x=2^55^3$. How many positive divisors of $x^2$ are there less than $x$? </p> <p>I counted $38$ but I don't know how to start without counting.</p>
0non-cybersec
Stackexchange
How can I mimic the given proof?. <p>The lemma and a part of its proof are given below:</p> <blockquote> <p><a href="https://i.stack.imgur.com/vDEv5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vDEv5.png" alt="enter image description here"></a></p> </blockquote> <p>Now, I was trying to prove the other part <span class="math-container">$ g \circ f \simeq g \circ h$</span>.</p> <p><strong>My trial:</strong></p> <p>Suppose <span class="math-container">$f,h : X \rightarrow Y$</span> are homotopic, and <span class="math-container">$g: Y \rightarrow Z.$</span></p> <p>Let <span class="math-container">$H: X \times I \rightarrow Y$</span>be the homotopy from <span class="math-container">$f$</span> to <span class="math-container">$h$</span>.</p> <p>Define <span class="math-container">$F: Y \times I \rightarrow Z$</span> by:</p> <p><span class="math-container">$$F(y, t) = G(H(x,t),t)$$</span></p> <p>Then <span class="math-container">$F(y,0) = G(H(x,0),0) = G(h_{0}(x),0) = G (f(x),0) = g_{0}(f(x)) = g \circ f$</span></p> <p>I am not sure if my last equality correct as I replaced <span class="math-container">$g_{0}$</span> by <span class="math-container">$g$</span> without having any clue about this, is this step true?</p> <p>Also, should the function <span class="math-container">$G$</span> be known, as I do not know anything other than that <span class="math-container">$G(x,t) = g_{t}(x)$</span>?</p> <p>Any help with the proof will be appreciated. Also, any correction for my trial steps is so much welcomed. </p> <p>Thanks! </p>
0non-cybersec
Stackexchange
With the new PajaMei skin, we need a new game mode...SleepOverWatch!. I think PajaMei is perfect for a new game mode. one team is all Mei, the other is an Ana or two or three. Ana can only sleep dart, but it has a reduced cool down and doesn't wear off. Mei's can't attack, but can build walls and wake up other Mei's. Ana's have to put all the children to bed before time runs out, or maybe Mei's have to get to a goal (That late night snack food, maybe). Edit: Wow, didn't think this would be my first front page post for this subreddit
0non-cybersec
Reddit
In terms of battery usage, which distro is more efficient between Lubuntu and Xubuntu?. <p>Installing both on the same laptop without doing nothing more than the normal install, which one consumes less battery power at the end and makes the laptop last a little bit longer than the other, Lubuntu (LXDE) or Xubuntu (Xfce). Assuming that both will receive the same activities on the same laptops for the same amount of time.</p>
0non-cybersec
Stackexchange
Using AJAX on homepage to handle feeds, bad for SEO?. <p>I'm running multiple feeds of loops on my homepage much like youtube.com and I want to use AJAX to load them instead of tabbed content with jQuery. Since most of my traffic comes from posts I'd like to know how it impacts my site with Google with less crawlable links and excerpts.</p> <p>My question is this: How bad is it for my SEO to use AJAX to load the feeds on my homepage? Each feed contains links to new posts in different categories and I have 10 of them so loading them with jQuery Tabs adds load time but makes it all crawlable.</p>
0non-cybersec
Stackexchange
Access values from LINQ GroupBy. <p>I have a linq query looking like this: </p> <pre><code> var myGrouping = ( from p in context.Products join pt in context.ProductTypes on p.productId equals pt.productId select new { ProductName = p.productName, Type = pt.productType }).GroupBy(x =&gt; x.ProductName ).ToList(); </code></pre> <p>This gives me what I'm looking for, a group for each ProductName with the Types displayed with them. Now, what I'm looking to do is check each group and see if the ProductType ever differs INSIDE these groupings, which is an error I sometimes get in the database.</p> <p>I've tried a few things to access this data, and it seems like I can use <code>item.Distinct().Skip(1).Any()</code> to check through these groupings and see if they differ. Problem is only that I don't know how to access the ProductName and Type, to loop over it. I've tried things like</p> <p><code>foreach (IGrouping&lt;string, string?&gt; ProductGroup in myGrouping)</code> </p> <p>and things along those lines but it never seems accessable. My question is, how do I access elements in IGroupings like this?</p>
0non-cybersec
Stackexchange
Spring Ehcache MBean Monitoring. <p>I am using Spring 4.0.3.RELEASE and EHcache 2.8.1. on JBoss 7.1.1</p> <p>With the following configuration in <code>applicationContext.xml</code> my caching is working good.</p> <pre><code>&lt;cache:annotation-driven/&gt; &lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"&gt; &lt;property name="cacheManager" ref="ehcache"/&gt; &lt;/bean&gt; &lt;bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"&gt; &lt;property name="configLocation" value="/WEB-INF/ehcache.xml"/&gt; &lt;/bean&gt; </code></pre> <p>Now I want to add the monitoring capabilities with MBean. I changed the configuration in <code>applicationContext.xml</code> as follows – added 2 new beans “managementService” and “mbeanServer”, no other change. This is the current configuration.</p> <pre><code>&lt;cache:annotation-driven/&gt; &lt;bean id="managementService" class="net.sf.ehcache.management.ManagementService" init-method="init" destroy-method="dispose"&gt; &lt;constructor-arg ref="cacheManager"/&gt; &lt;constructor-arg ref="mbeanServer"/&gt; &lt;constructor-arg index="2" value="true"/&gt; &lt;constructor-arg index="3" value="true"/&gt; &lt;constructor-arg index="4" value="true"/&gt; &lt;constructor-arg index="5" value="true"/&gt; &lt;/bean&gt; &lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"&gt; &lt;property name="cacheManager" ref="ehcache"/&gt; &lt;/bean&gt; &lt;bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"&gt; &lt;property name="configLocation" value="/WEB-INF/ehcache.xml"/&gt; &lt;/bean&gt; &lt;bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"&gt; &lt;property name="locateExistingServerIfPossible" value="true"/&gt; &lt;/bean&gt; </code></pre> <p>With this configuration I get the following error on application server start up.</p> <pre><code>14:05:32,208 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Context initialization failed: org.springframework.beans.factory.UnsatisfiedDependencyException: **Error creating bean with name 'managementService'** defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [net.sf.ehcache.CacheManager]: Could not convert constructor argument value of type [org.springframework.cache.ehcache.EhCacheCacheManager] to required type [net.sf.ehcache.CacheManager]: Failed to convert value of type 'org.springframework.cache.ehcache.EhCacheCacheManager' to required type 'net.sf.ehcache.CacheManager'; nested exception is java.lang.IllegalStateException: **Cannot convert value of type [org.springframework.cache.ehcache.EhCacheCacheManager] to required type [net.sf.ehcache.CacheManager]**: no matching editors or conversion strategy found Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'managementService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [net.sf.ehcache.CacheManager]: Could not convert constructor argument value of type [org.springframework.cache.ehcache.EhCacheCacheManager] to required type [net.sf.ehcache.CacheManager]: Failed to convert value of type 'org.springframework.cache.ehcache.EhCacheCacheManager' to required type 'net.sf.ehcache.CacheManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.cache.ehcache.EhCacheCacheManager] to required type [net.sf.ehcache.CacheManager]: no matching editors or conversion strategy found </code></pre>
0non-cybersec
Stackexchange
My easy chair of 7 years. Just noticed while tripping..
0non-cybersec
Reddit
Why do Indian shopkeepers always call me 'buddy'?. It's not really that common of a phrase amongst native English speakers. I hear it occasionally. But, whenever I go into a shop with Indian guys behind the counter, I'm disproportionately referred to as "Buddy". Is there something in their culture or in their process of learning English that encourages this?
0non-cybersec
Reddit
Is xar preinstalled on macOS?. <pre><code>$ which xar /usr/bin/xar </code></pre> <p>It's in <code>/usr/bin</code>. Does that mean it's preinstalled on mac?</p>
0non-cybersec
Stackexchange
Ideal Chunk Size for python requests. <p>Is there any guideline on selecting chunk size?</p> <p>I tried different chunk size but none of them give download speed comparable to browser or wget download speed</p> <p>here is snapshot of my code</p> <pre><code> r = requests.get(url, headers = headers,stream=True) total_length = int(r.headers.get('content-length')) if not total_length is None: # no content length header for chunk in r.iter_content(1024): f.write(chunk) </code></pre> <p>Any help would be appreciated.?</p> <p>Edit: I tried network with different speed.. And I am able to achieve higher speed than my home network.. But when I tested wget and browser.. Speed is still not comparable</p> <p>Thanks</p>
0non-cybersec
Stackexchange
Doubly infinite matrices $A=(a_{i,j})_{i,j=\infty}^{\infty}$. <p>Let $A=(a_{i,j})_{i,j=\infty}^{\infty}$, where $$ \|A\|:=\sum_{r=-\infty}^{\infty}\sup_{j}|a_{j,j+r}|&lt;\infty. $$</p> <p>I want to show that for all matrices $\|AB\|\leq\|A\|\|B\|$. I obverse that $$ (AB)_{i,j}=\sum_{k=-\infty}^{\infty}a_{i,k}b_{k,j}=c_{i,j} $$</p> <p>Hence, \begin{align} \|AB\|&amp;=\sum_{r=-\infty}^{\infty}\sup_{j}|c_{j,j+r}|\\ &amp;=\sum_{r=-\infty}^{\infty}\sup_{j}|\sum_{k=-\infty}^{\infty}a_{j,k}b_{k,j+r}|\\ &amp;\leq \sum_{r=-\infty}^{\infty}\sum_{k=-\infty}^{\infty}\sup_{j}|a_{j,k}b_{k,j+r}|\\ &amp;\leq \sum_{r=-\infty}^{\infty}\sum_{k=-\infty}^{\infty}\sup_{j}|a_{j,k}|\cdot|b_{k,j+r}|\\ &amp;\leq ? \end{align}</p> <p>How can I finish this proof? Any hints?</p>
0non-cybersec
Stackexchange
How many numbers below N have equal digit sum?. <p>I'm trying to index $M$ squares that can each have $N$ colours. The order the colours appear in does not matter, it just matters how many of each colour there are. </p> <p>So say $N=2$ and $M=2$ and the colours are red(R) and blue(B). This results in the following possible states for our squares: $RR, RB, BR, BB$. If we want to map those to how much of each colour there are this results in $02, 11, 11, 20$, so the first digit represents the amount of blue's and the second the reds. </p> <p>It's easy to see that the digit sum of this representation is always equal to $M$. Now say $N$ and $M$ are very large. We can represent each colour state as an $N$ length number of base $M$. However, I want to store some information about each possible colour state. Therefore we should introduce an ordering in the colour states so a mapping is possible. We can simply order by size: $[02,11,20]$.</p> <p>Now the actual question is as follows: given the number $20$, how many numbers below $20$ are there that have the same digit sum? Because that equals $2$, which is the exact position I need to look in my information array. A possible strategy is building a lookup table by just enumeration all possibilities, but I want to know if there is a "smarter" way. How many numbers with equal digit sum are there below N? Of course, if someone knows a smarter way to label my colour states, that would also be accepted, but the other question remains interesting as well.</p>
0non-cybersec
Stackexchange
Combining multiple queries. <p>I have 2 queries given below. Now I want to have one quey by combining the two queries so as to get the table with columns (<code>Tag Number</code>, <code>Primary Name</code> and <code>Discoverd Name</code>)</p> <p>Query 1:</p> <pre><code>select RT.[TagName] as 'Tag Number', RA.SourceName as 'Primary Document', RA.SourceRevision from dbo.REP_TTA as RT join dbo.REP_ASS as RA on RA.TargetName=RT.TagName where RA.[AssocName]='is a document for' </code></pre> <p>Query 2:</p> <pre><code>select RT.[TagName] as 'Tag Number', RA.SourceName as 'Discoverd Document', RA.SourceRevision from dbo.REP_TransposedTagAttributes as RT join dbo.REP_ASS as RA on RA.TargetName=RT.TagName where RA.[AssociationName]='refers to' </code></pre>
0non-cybersec
Stackexchange
Inclement Weather, Large Animals, and Other Strange Happenings Outside a Costco in New Jersey. Part V.. [Part I](https://www.reddit.com/r/nosleep/comments/aio8f0/inclement_weather_large_animals_and_other_strange/), [Part II](https://www.reddit.com/r/nosleep/comments/ajc6rp/inclement_weather_large_animals_and_other_strange/), [Part III](https://www.reddit.com/r/nosleep/comments/akcnn9/inclement_weather_large_animals_and_other_strange/) and [Part IV.](https://www.reddit.com/r/nosleep/comments/alp8vw/inclement_weather_large_animals_and_other_strange/) ' >"*All you need to do is walk into the light.*" >-*Pontius*. Picture yourself in a room no larger than the average kitchen. There are some lockers to the left. Plain white cabinets are catty cornered to the right. A shelf holds a container of coffee K-Cups, a black board lists a vacation schedule, and employee street clothes decorate the wet floor like some lost remnants of high school. The ceiling is a drop. It's the type that hides all kinds of secrets just a few inches above the plaster. It's leaking, now. Water covers the floor at about four inches deep, and that number is climbing fast. A bulb flickers over your head. It's the only remaining source of light in the night. Now, jam that room with more than a dozen sweating strangers, and pump them full of the anxiety of an impending unnatural disaster. ' Nine o'clock. I had to say something to them. The remaining survivors in the room stared at me like bloodthirsty hyenas. The questions they shouted sounded a lot like that too. I had been here before, only hours before, it was so easy to forget. It felt like a millennia. "*What happened to Marcus?*" a familiar voice shouted from by the lockers. "*What happened to Mitchell?*" someone else called back. I couldn't move my mouth to make the words his poor widow needed to hear. Instead, I just shook my head. Marcus' wife screamed so loud that I thought the glass might break. It was enough to make the other people in the cramped room shudder and shift uncomfortably. Some actually tried to move away from her, like me with the mad cow, but there was just nowhere to go. That horrible, heart shattering, gob-smacking scream reached down into my insides. I quickly tried to explain myself in a heap of word vomit and broken sentences as water pounded the quickly growing puddles around us. "**Mitchell, he... he locked the door. He locked us out.**" I sputtered as fast as possible. "**Marcus, he... fell over the edge.**" The room fell silent save for the poor woman's tears. I tried to make her pain swift. Like taking off a band-aid, I told myself. Right? "**He’s dead. I’m sorry.**" A second chilling scream filled the room. Marcus’ children wrapped their arms around their sobbing mother’s legs and buried their heads in the folds of her dress. Thirteen disappointed faces stared back at me. I stared back, defiant, trying to defend myself against any further inquiries. Then I started to break down. Tiffany appeared at my side again. She was drenched from head to toe, with a tie somehow managing to hold her long hair out of her eyes. She looked beautiful, then. "*Where do we go?*" she asked. I shook my head again. “**Don’t know.**” ' Nine forty-five. The children managed to fall asleep. A few of us propped up an old table and laid them on it side by side. We wrapped our remaining dry jackets around them. The kids took to snoring soon after. They looked like five little pigs in a blanket by the end. I made the joke aloud… but nobody laughed. There was more than a foot of water in the room, now. It wasn’t be safe for anybody to lie down on the floor. But Kevin did it anyway, and we didn't stop him. The rest of the adults also tried to close their eyes, in whatever way they could. A majority of them huddled in the corner together for warmth and leverage. Tiffany and I agreed to take the first watch. With the way the water was rising... none of us expected that to last long. We would need to have a plan. But everyone had been running around a fucking Costco for hours, fighting for their lives. They needed some rest. When it seemed quiet enough that most folks were not listening, Tiffany sidled up beside me. “*What did you see?*” she whispered. I hesitated. “**You tell me, and I’ll tell you.**” Jake, Ellen and Liz soon soon caught wind of our conversation and quietly shuffled over. The rest of the group stayed quiet. Nobody wanted to wake up the widow. “*The snow turned to rain a couple hours ago,*” Tiffany murmured. “*Kevin suggested we get to higher ground anyway. Plus, we wanted to find you guys. Two minutes later, the store got hit by a fuckin tsunami. It’s got to be a few feet deep down there now. I had to swim out. We got to the stairs just in time... all thirteen of us survived, thanks to Kevin.*” Liz and Ellen nodded enthusiastically while eyeing the exhausted middle-aged man lying just above the water. “*We think he’s okay,*” Jake offered. “*Just needs some sleep. We started on the morning shift together.*” I nodded. But something about the story didn’t fit. “**You said… thirteen?**” Jake hesitated this time. “*Yeah… we counted once we got in here, just to be sure. Why?*” Shit. Shit, shit, shit, shit. “**We had sixteen before Marian went outside, including me. Then you lost her, me, Mitchell, and Marcus. Twelve. You should have had twelve.**” They all stared ahead stupidly. “**Do you see what I’m saying?**” I whispered in a panic. “**Where the fuck did you get another person?**” We all turned our attention to the pile of human bodies huddled together in the corner. A few of them breathed steadily under the cover of garbage bags, spare clothes, and paper bags. Somebody snored by the lockers. The children stirred on the table beside them. But, underneath it all, a small sound stuck out. Chewing. The next few things happened quite suddenly. Kevin slipped under the water. Jeff rushed over to help him. Marcus’ widow was the first one sleeping to open her eyes. She looked shocked at first. Like a proper lady who just sat on a piece of gum. When she screamed, again, I think most people just thought she was still upset about her husband. Nobody reacted in time. Nobody noticed the red tint to the river forming around Kevin. Nobody noticed the slight disturbances in the water. Nobody noticed one of the children missing from the table. But I did. Just before it happened, the pieces of our situation started to slide into formation. I could feel a presence in the room with us. I could smell its rot. I could hear the horrible gnashing and biting growing louder. I could almost hear the tearing of flesh. And when an avalanche of fresh water poured in through the air vents, I could see the creatures coming inside. I wanted to save Kevin. I wanted to save everyone. I wanted to save myself, too. But I didn’t have time. [Nine fifty-five.](http://www.reddit.com/r/MattRichardsen) ' [Part VI.](https://old.reddit.com/r/nosleep/comments/anjlq4/inclement_weather_large_animals_and_other_strange/?)
0non-cybersec
Reddit
My lil floofie doing a photo.
0non-cybersec
Reddit
How to set hardware clock to correct time?. <p>How can I set the hardware clock to my correct local time?</p> <p>hwclock shows:</p> <p><a href="https://i.stack.imgur.com/sZmsF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sZmsF.png" alt="enter image description here"></a></p> <p>instead of 06:42 it should be 18:42</p> <p>My timezone is Europe/Berlin</p> <p>How can I fix this?</p>
0non-cybersec
Stackexchange
React scroll animation with setState is choppy. <p>It's seems use <code>setState</code> to animate elements by listening to <code>window.scrollY</code> would make very choppy effect. </p> <pre><code>const scrollY = window.scrollY; animation01: { transformY: (scrollY &gt; breakPoint01) ? `translateY(200px)` : `translateY(0px)`, }, </code></pre> <p>I ended up with the solution of <code>ref</code> to manipulate DOM directly to avoid the choppy effect...</p> <pre><code>const breakPoint00 = 1250 const breakPoint01 = breakPoint00 + 230 const animation01 = ReactDOM.findDOMNode(this.animation01) if (scrollY &gt; breakPoint00) { animation01.style.transform = `translateY(0px)` } else (scrollY &gt; breakPoint01) { animation01.style.transform = `translateY(200px)` } </code></pre> <p>Why is it so choppy when using the first solution? Is this a right way to do scrolling animation in React? </p>
0non-cybersec
Stackexchange
Integral equation: existence. <p>Let $H$ and $h$ be smooth functions of one and two variables respectively. Consider equation $$ H(x) = \int_\Bbb Rh(x,y)f(y)\mathrm dy \qquad \forall x\in \Bbb R. $$ When does it have a solution, and when this solution is unique? This is a Fredholm integral operator of the first kind, but I was not able to find a lot of literature on the existence and uniqueness. Also, what if we put an additional condition that $f$ is a probability density function, that is $f \geq 0$ and $\int_\Bbb Rf(y)\mathrm dy = 0$?</p>
0non-cybersec
Stackexchange
European Parliament Orders MEP To Take Down A Video About His Attempt To Visit The 'Reading Room' For Trade Documents.
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
Favorite fruit salad? My family is sick of my default recipe!. I usually make The Pioneer Woman's fruit salad, but my family has begged me to switch it up this year. Any recipe suggestions?
0non-cybersec
Reddit
I started carrying a knife after an attempted mugging a few years ago. Since then, my mugging attempts have been a lot more successful.
0non-cybersec
Reddit
Overset placement is uneven. <p>I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero.</p> <pre><code>\begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} &gt; 0 \end{align} </code></pre> <p>But the alignment of the plus and minus signs are uneven. The minus sign is quite a bit higher than the plus sign. I appreciate help getting the two at the same vertical placement.</p>
0non-cybersec
Stackexchange
How did Reddit do its "turn admin on" trick?. I notice that even after I logged out, the titles that I edited, the votes that I give to all kinds of people, they all stay. Are these illusions stored by IP?
0non-cybersec
Reddit
Injectivity of Homomorphism between homology of boundary and interior.. <p>Let <span class="math-container">$M^{n\geq 4}$</span> be a compact connected manifold with connected boundary <span class="math-container">$\partial M$</span>. Suppose <span class="math-container">$$i_*: \pi_1(\partial M)\rightarrow \pi_1(M)$$</span>is not injective, it means that there is non-contractible loop in <span class="math-container">$\partial M$</span> which is contractible in <span class="math-container">$M$</span>. And also we can assume this loop spans a disc <span class="math-container">$D$</span> in <span class="math-container">$M$</span>, denote the small neighbourhood of <span class="math-container">$D$</span> in <span class="math-container">$M$</span> by <span class="math-container">$U(D)$</span>. I am wondering if <span class="math-container">$$i_*:\pi_1(\partial (M\setminus U(D)))\rightarrow \pi_1(M\setminus U(D))$$</span> is injective now. I am just trying to make the non-jectivity disappear by deleting it. It looks right to me but I don't know how to rigorously explain it. Or maybe I am wrong and there is counterexample. Thanks for your help.</p> <p>This is edited version by suggestions from comments.</p>
0non-cybersec
Stackexchange
Is anyone else having trouble with AT&T DNS today?. We use AT&T for authoritative DNS for most of our domains and nothing is resolving today. Other than an acknowledgement that there is a problem, I can't get any response from their support.
1cybersec
Reddit
the composite of normal and separable extensions of fields. <p>Let $K/F$ be a normal extension of fields and $L/F$ be a separable extension of fields, show that $[KL:L]=[K:K\cap L]$.</p>
0non-cybersec
Stackexchange
Compact Operators: Weak Convergence. <p><strong>Problem</strong></p> <p>Given Banach spaces $X$ and $Y$.</p> <p>Consider a compact operator $C\in\mathcal{C}(X,Y)$.</p> <p>Then weak convergence is turned into strong convergence: $$x_n\rightharpoonup x\implies Cx_n\to Cx$$ I'd like to try proving it but would need some hints.</p> <p><strong>Attempt</strong></p> <p>Denote the sup-norm by: $$F:\Omega\to E:\quad\|F\|_\Omega:=\sup_{\omega\in\Omega}\|F(\omega)\|_E$$</p> <p>Weak convergence is preserved under continuous operators: $$\|l(Cx_n-Cx)\|=\|(C'l)(x_n-x)\|\to0$$ By uniform boundedness principle weak convergence implies boundedness: $$x_n\rightharpoonup x:\quad\|l(x)\|_\mathbb{N}&lt;\infty\implies\|x\|_\mathbb{N}&lt;\infty$$ Hence one can exploit compactness of the operator: $$(x_n)_{n\in\mathbb{N}}\text{ bounded}\implies C(x_n)_{n\in\mathbb{N}}\text{ precompact}$$ And one obtains strongly convergent subsequences.</p> <p>Should I combine these now and how?</p>
0non-cybersec
Stackexchange
Wondering about when you’ll fall asleep will give you the opposite of the result you’re looking for..
0non-cybersec
Reddit
hangovers. I know what it is but i want to know what it isssss
0non-cybersec
Reddit
مرحبا بكم في قناة **سبايدر مان اطفال ** نحن نهتم في متعة الاطفال ونقدم حلقات سبايدر مان وافلام الكرتون ومقالب الجوكر ونسعى داما ان تقدم لكم الافضل ...!! UCM8np9tL6l1vdojY1ziHEhA/videos.
0non-cybersec
Reddit
Outlook 2007 - Switching Stationery Themes easily. <p>Hi I've created a Email Template for Outlook. And have set it up so now when I open a new email my template is display nicely.</p> <p>But I may not always want to use this template and might have 2 or 3 templates that I need to change between on a regular basis. Is it possible to change to another "Theme" when composing a new email. </p> <p>There is under the "Options" section of the ribbon a option called "Themes" but this seems more to do with fonts and colours not replacing a proper "Theme" which contains background colours and Image banners in it.</p> <p>Any ideas?</p>
0non-cybersec
Stackexchange
Formal proof for an easy calculus result. <p>I have the following situation: Suppose $x,y$ are real numbers with $y &gt; 0$. Then, I would like to show that for small values of $t$, we have </p> <p>$$ (tx)^2 + (ty - 1)^2 \leq 1 $$</p> <p>How can I show this in a formal manner?? For instance, I find myself struggling because I don't know that is the definition of small values of $t$. </p> <p>Can someone help me? thanks</p>
0non-cybersec
Stackexchange
Find me a more aesthetic puppy..
0non-cybersec
Reddit
How to use TightVNC Java Viewer with built-in SSH to connect to an Ubuntu Google Compute Engine instance?. <p>I am using the TightVNC Java Viewer downloaded from here: <a href="https://www.tightvnc.com/release-jviewer-2.6.php" rel="nofollow noreferrer">https://www.tightvnc.com/release-jviewer-2.6.php</a> which has built-in SSH support. Using this, I would like to connect to my Google Compute Engine instance which runs Ubuntu 16.04.</p> <p>I have performed the following steps so far by referring to various online documentation:</p> <ol> <li><p>Installed TightVNC Server on the Ubuntu instance.</p></li> <li><p>Started the VNC Server using <code>vncserver -localhost :1</code></p></li> <li><p>OpenSSH server is already installed on the instance.</p></li> <li><p>Assigned a static External IP address to the instance</p></li> <li><p>Tried to access the VNC Server using the TightVNC Java Viewer by specifying the SSH Host as the External IP address of the instance, SSH Port as the default <code>22</code>, SSH User as the instance owner, Remote Host as localhost and the Port as the VNC port <code>5901</code>.</p></li> </ol> <p>But the connection failed with the error: <em>Cannot establish SSH connection: No supported authentication methods available.</em></p> <p>Note: I have tested that the VNC connection works without using SSH when I directly open the port <code>5901</code> in the Compute Engine firewall settings and run <code>vncserver :1</code>. This way, using the TightVNC Java Viewer itself, I can access the Mate desktop that I have installed on Ubuntu. But I would like to use a secure connection through SSH instead. So what else do I need to do to enable this?</p>
0non-cybersec
Stackexchange
What is the intuition behind lack of a general solution for 5th and above degree polynomials?. <p>I am aware this is a pretty big topic, but the attempts at layman's explanations I have seen either barely provide commentary on the formal proofs, or fail to provide an explanation (e.g "it gets too complex" does not really say anything)</p> <p>Is there a good intuitive explanation as to why we fail to obtain a general solution for a 5th+ degree polynomial, and why this happens at the 5th degree and not below or above?</p>
0non-cybersec
Stackexchange
How do I copy files off an Iphone using a commandline. <p>I want to use the command line to access the files on the IPhone instead of using the windows Ctrl+C Ctrl+V to copy all the files to my PC. </p> <p>I've had a look to see if I could map "This PC" or any or the other lines as a network drive but I could not find how.</p> <p>As per below O intent do copy the lot using the command line, most likely dos</p> <p><a href="https://i.stack.imgur.com/b6C6q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b6C6q.png" alt="This PC on the I phone"></a></p>
0non-cybersec
Stackexchange
We were 25 and now we are 6...and Fabulous.
0non-cybersec
Reddit
Understanding why a finite dimensional vector space is a topological manifold. <p>I wish to understand the details of why a finite dimensional vector space is a topological manifold, particularly following Jonh Lee's Introduction to smooth manifolds. I know that this questions has been asked at least <a href="https://math.stackexchange.com/questions/160298/manifold-structure-on-on-a-finite-dimensional-real-vector-space">Here</a> and <a href="https://math.stackexchange.com/questions/2723332/proof-that-finite-dimensional-vector-spaces-are-manifold">here</a>, and while I convinced myself that it is the case, I would not be able to fill in the details if challenged, hence I decided to open a new post with the relevant questions and approach.</p> <blockquote> <p><strong>Example 1.24 (Finite-Dimensional Vector Spaces).</strong> Let <span class="math-container">$V$</span> be a finite-dimensional real vector space. Any norm on <span class="math-container">$V$</span> determines a topology, which is independent of the choice of norm (Exercise B.49). With this topology, <span class="math-container">$V$</span> is a topological <span class="math-container">$n$</span>-manifold, and has a natural smooth structure defined as follows. Each (ordered) basis <span class="math-container">$(E_1,...,E_n)$</span> for <span class="math-container">$V$</span> defines a basis isomorphism <span class="math-container">$E:R^n \to V$</span> by <span class="math-container">$$ E(x) = \sum_{i=1}^nx^iE_i. $$</span> This map is a homeomorphism [...]. </p> </blockquote> <p>I was filling the details and wanted to discuss my proofwriting when I was told that it was obvious because any real finite dimensional vector space is isomorphic to <span class="math-container">$\mathbb{R}^n$</span>. However at my stage I don't understand how that translates into showing each of the technical details in the definition of a topological manifold. Here are my questions:</p> <p><strong>How do I precisely show that <span class="math-container">$V$</span> is a topological manifold?</strong> </p> <p>My reasoning is this: As stated, all norms are equivalent in a finite-dimensional vector space and generate the same topology, but which one is it? well, since a norm induces a metric, I thought it will be the metric topology (denote it by <span class="math-container">$\tau_{||\cdot||}$</span>), i.e., the one generated by the basis <span class="math-container">$\mathcal{B} = \lbrace B_r(v) : u\in V \; \text{and}\; r&gt;0 \rbrace$</span> where <span class="math-container">$B_r(u) = \lbrace v\in V : d_{||\cdot||}(u,v) = ||u-v|| &lt;r\rbrace$</span>, which would then be unique. Then <span class="math-container">$(V,\tau_{||\cdot||})$</span> would be my topological space. I can show that it is Hausdorff but I am not sure how to show it is second countable. any suggestion?</p> <p>Then I need to show it is locally Eucliean of dimension <span class="math-container">$n$</span>. For this, I need to show that for every point in <span class="math-container">$V$</span> there is a neighborood which is mapped to an open subset of <span class="math-container">$\mathbb{R}^n$</span> (or <span class="math-container">$\mathbb{R^n}$</span> itself). The given suggestion is the isomorphism <span class="math-container">$E$</span> (in linear algebra, a linear transformation which is also a bijection) which the author claims is a homeomorphism. I am guessing it means precisely a homeomorphism from <span class="math-container">$E: (V,\tau_{||\cdot||}) \to (\mathbb{R}^n,\tau_U)$</span> where <span class="math-container">$\tau_U$</span> is the usual topology. So we would be showing that <span class="math-container">$V$</span> is homeomorphic to <span class="math-container">$R^n$</span>, which implies <span class="math-container">$V$</span> is locally Euclidean, is this correct? Now I already now that <span class="math-container">$E$</span> is a biyection and since <span class="math-container">$\mathcal{B}$</span> is a basis for <span class="math-container">$\tau_{||\cdot||}$</span>, I could show that <span class="math-container">$E(\mathcal{B})$</span> is a basis for <span class="math-container">$\tau_U$</span>, which should be duable since <span class="math-container">$n$</span>-balls form a basis for <span class="math-container">$\tau_U$</span> as well, and I think I would be done. Is that right? Is this a good way of proceeding? I will probably also have questions regarding on how to write these ideas, but one step at the time. Unfortuately I am learning all of this at the same time as opposed to a typical math degree curriculum, so I appretiate your patience.</p>
0non-cybersec
Stackexchange
LAN in WiFi network and how to get IP address of all the connecting devices. <p>I have two computers at my home and we use WiFi, how to LAN my both the computers? Is it required any special particular device or I need to configure it.</p> <p>Secondly, how can I get the IP address of all the devices connected to the WiFi?</p> <p>We use Windows OS on both the machines.</p>
0non-cybersec
Stackexchange
Need to dodge a D.Va ult with shift on cooldown? No Problem..
0non-cybersec
Reddit
Geometry triangle question. <p>In the figure below, AB=BC=CD. If the area of triangle CDE is 42, what is the area of triangle ADG? <img src="https://i.stack.imgur.com/Ht6uI.jpg" alt="enter image description here"></p> <p>I think triangles are similar. Are there any properties of similar triangles regarding their area. Help me get the answer with explanation please</p> <p>ans :378</p>
0non-cybersec
Stackexchange
My supermarket stamps their logo onto their bread with flour.
0non-cybersec
Reddit
PC part picker incompatibility issue. as i was putting parts together on pcpartpicker i got this incompatibility note: * Some AMD X370 chipset motherboards may need a BIOS update prior to using Pinnacle Ridge CPUs. Upgrading the BIOS may require a different CPU that is supported by older BIOS revisions. Im not sure what this means. If someone could help explain i would appreciate it. I picked a ryzen 5 2600 CPU and an **MSI X370 GAMING PRO CARBON** motherboard if that helps
0non-cybersec
Reddit
Double Walker, Part 1. Have you ever had a strange feeling about someone close to you? Like they've somehow changed? They look the same, they sound the same - by all rights they're the same person. Only they're not. They're doing weird things. They're treating you differently. It feels like someone you've known for a long time has suddenly become a stranger. When I was seventeen I started to feel that way about my mother. Up until she changed, she had been an amazing Mum. Supportive, caring, funny; we were good friends and we got along great. Her and my Dad split up when I was eight, but it wasn't that awful of a divorce and I got to see both of them an equal amount. Half the week I'd spend with Mum, the other half I'd spend with Dad, and as I got older I'd just alternate between the two homes as I saw fit. My little sister (we'll call her Denise) was born right before the divorce, and she spent most of the time at my Mum's place, though she still saw plenty of our Dad. I think they decided early on that it was better for her to have a consistent home because she was so young, whereas I was old enough (and mature enough) to be able to alternate and be with both parents an equal amount. (all relevant information) ANYWAY. It was February 2006, and me and my Mum went to the movies one Saturday afternoon. After the movie she went to the bathroom and I waited for her to come out. I was waiting for a good ten minutes or so, which was a little odd, but I guess I was used to having to wait extended periods of time for girls to do whatever it is they do in bathrooms. God knows I'd waited longer than that for my little sister. The thing is, I was standing directly outside the entrance of that female bathroom and I was taking note of every woman who came out and went into it. I would have seen my Mum if she'd come out, especially after ten minutes of waiting and wanting her to hurry up. So to have her walk up behind me and say: "Come on, let's go", well, let's just say it gave me a bit of a jump. I turned to her and there she was. Somehow she'd made it out of the bathroom without me noticing, and had then managed to sneak up behind me; despite the fact I had been staring at the bathroom entrance the entire time. Of course I questioned her about it. "What the hell? How did you...?" She just shrugged it off and said she came out, didn't see me, went walking for a bit to try and find me, then saw me standing back outside the bathrooms. It was one of those weird moments where I wasn't sure if she was lying or if I had been an idiot. But I guess I put it out of my mind and we went home. I look back on the car ride home, and the rest of that day, and I try to remember signs. I try to think about things she did, things she said - if any of it was out of the ordinary. But the truth is, she was being herself. Maybe a bit quieter than usual, but nothing really strange. That changed the next day when I got up and walked into the kitchen. Usually at that time my Mum would be up and she'd be making Denise her breakfast and helping her get ready for school. But the kitchen was empty and it didn't look like anyone had used it since the night before. I walked past my sister's room and she was still asleep. I went in and woke her up, told her she should be getting ready for school, etc. She was just like "Mum didn't wake me...". So I went to my Mum's room only to find her sitting on the side of her bed in her nightgown, with a totally blank expression on her face, staring at the wall. "Mum...." I said, but there was no response. I slowly walked over and put my hand on her shoulder. I shook her gently - she blinked a few times, and snapped out of it. "What's wrong?" she asked me, as if she was kind of dazed, just coming out of a dream. I told her it was eight o'clock and Denise wasn't even up for school yet. She shook her head slowly, then got up, and walked into the bathroom. She was in the bathroom for about forty five minutes. I managed to get Denise ready in time for school and as we were leaving the house, Mum finally got out of the bathroom fully dressed in her work clothes. She was acting totally normal, like nothing had happened. She just smiled, wished us a good day at school, and that was that. Every morning for the next few weeks it was the same routine. I'd wake up, shake her out of her daze as she sat on the side of the bed; she'd go and have a shower/get ready for a good forty minutes to an hour, then come out like nothing had happened. After a few days of this I started getting up an hour early just so Mum would be ready and back to normal in time to make Denise her breakfast. She claimed it was just sleepwalking. That she used to do the same thing when she was a teenager, and it was just an old habit that had somehow managed to creep back into her life. But the way she said this, it didn't really convince me. It didn't seem like it was her explanation - it seemed more like it was her excuse. I told her to go and see a doctor about it, but she assured me it was nothing and that I was blowing it all out of proportion. So, stupid me, I said 'okay' and just went along with the new routine. It lasted for about two months. The longer it went on, the more convinced I was that it was more than just 'sleepwalking'. I told my Dad about it, and I asked if he ever remembered her doing anything like that. The response was always no. He'd known her since she was 19, and never once during their entire relationship did he experience or even hear her mention the fact that she would sleepwalk. But he, just like Mum, assured me that it was probably nothing. That I was making too much of it. One night after I got up to pee I walked past my Mum's bedroom, and I decided to have a look inside. Out of curiousity. Of course, there she was, at 3am, sitting on the side of the bed with her eyes wide open staring at the wall. Only this time the expression on her face wasn't blank. It was a smile. Not really a pleasant smile, but not a sinister smile either. It was more like the subtle beginnings of a smile. Like she found something amusing but didn't want to make it too obvious. This was the first time that I actually felt afraid of the situation. I became filled with dread, from the pit of my stomach, as I stood there and watched her. Eventually I snapped out of it and woke her up. Told her she'd been sleepwalking again. Without a word she stood, went into the bathroom, turned on the light, and the shower started running. I waited for her for a full hour and when she came out, she thought it was morning. I tried to stop her, tried to convince her, but she wouldn't listen to me. Barely even acknowledged my presence. She went into Denise's room (at 4am) and woke her up telling her it was time for school. She started cooking breakfast. All the while I'm just following her, calmly explaining to her what time it is - that she needs to go back to bed, that school doesn't start for another five hours, that she's scaring Denise, etc. I didn't want to try and forcefully wake her up, but I didn't want to go along with the fantasy, either. Eventually (after cooking breakfast) she started to snap out of it. She was at the sink washing up and she dropped the plate she was holding and stood completely still for about three minutes. She stared out the window, out into the darkness, and finally realised what time it was. She turned to me with a confused expression, and I just led her back to bed and she fell asleep almost instantly. Needless to say, I didn't sleep the rest of that night. Later on that morning when it was actually time for us to start getting ready, I went into her room. There she sat, in the same position, staring at the wall. It was at this point I knew, for absolute sure, that there was something seriously wrong with my Mother. A brain tumour? Had she had a stroke? Early on-set dementia? All of this was going through my head. Nothing could have prepared me for the truth. **END OF PART ONE** [Part Two](http://www.reddit.com/r/nosleep/comments/103yqb/double_walker_part_2/) [Part Three](http://www.reddit.com/r/nosleep/comments/104l4i/double_walker_part_3/) Sorry, my hands are getting sore and I'm not sure if I'm ready yet to get into the truly horrifying parts. Writing most of this already has affected me pretty deeply. But I'll try to have it down within the next few hours, or by tomorrow at the latest.
0non-cybersec
Reddit
Dual boot ubuntu alongside Windows 10 in UEFI mode on HP notebook. <h2>My device is HP Laptop 15-dy0xxx. I installed Ubuntu 20.04LTS on a transcend 1TB Hard External harddrive alongside default Windows 10 (in UEFI mode by disabling secure boot in BIOS). After completion, when I restarted the pc it shows- Boot device not found 3FO, Please install an operating system on your hard drive</h2> <p>And it only moves to bios settings. I tried several way but in vain. with fear, i then factory reset my pc and it started from the beginning of the brand new windows setup and running on windows 10 clearly.</p> <p><strong>1. The Ubuntu partition is still on the ex-drive; Can I repair it anyhow for dual boot ?</strong></p> <p><strong>2. If not, can anyone suggest me how to install Ubuntu on my system for dual boot ?</strong></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
IO Interactive has removed Denuvo from HITMAN.
0non-cybersec
Reddit
it be like that.
0non-cybersec
Reddit
LO Calc / Excel - Dropbox change another cell. <p>I am creating a simple Point of Sale System for a store using an excel/libre office spreadsheet. </p> <p>The spreadsheet has a sheet called "Inventory" which has the following columns:</p> <ol> <li>Name</li> <li>Price</li> </ol> <p>This holds data like:</p> <ul> <li>Scrabble - $5</li> <li>Monopoly - $10</li> <li>Drink - $1</li> <li>Ice-cream - $2</li> <li>(etc, about 500 entries total)</li> </ul> <p>It has another sheet called "Product Sales", which has two columns:</p> <ol> <li>Item</li> <li>Price</li> </ol> <p>The first column "Item" uses cell validation to create a dropdown box that lets me choose from all of the names defined in "Inventory" (column 1). </p> <p>I would like for "Product Sales".Price to automatically update to the appropriate Inventory.Price when "Product Sales".Item is changed.</p> <p>The only way I can think to do this right now is with a huge, unwieldy, hard to edit, and bug-prone if statement. Another way to do it would be with a for() loop, but I can't do that.</p> <p>Is there some other method I'm not aware of? </p>
0non-cybersec
Stackexchange
Using Ninject with Owin and InRequestScope. <p>We are trying to use Ninject within an Owin with WebAPI pipeline. We have everything setup according to <a href="https://github.com/ninject/Ninject.Web.Common/wiki/Setting-up-a-OWIN-WebApi-application">this documentation</a>, but we cannot get InRequestScope() to work.</p> <p>Here's the significant part of the startup.cs</p> <pre><code>public class Startup { public void Configuration(IAppBuilder app) { HttpConfiguration config = new HttpConfiguration(); // Web API routes config.MapHttpAttributeRoutes(); // Ninject Setup app.UseNinjectMiddleware(NinjectConfig.CreateKernel); app.UseNinjectWebApi(config); } </code></pre> <p>}</p> <p>NinjectConfig looks something like this:</p> <pre><code>public sealed class NinjectConfig { public static IKernel CreateKernel() { var kernel = new StandardKernel(); INinjectModule[] modules = { new ApplicationModule() }; instance.Load(modules); // Do we still need to do this wtih Owin? instance.Bind&lt;IHttpModule&gt;().To&lt;OnePerRequestHttpModule&gt;(); } } </code></pre> <p>Our ApplicationModule lives in a separate infrastructure project with access to all of our different layers, for handling DI &amp; Mapping:</p> <pre><code>public class ApplicationModule: NinjectModule { public override void Load() { // IUnitOfWork / EF Setups Bind&lt;ApplicationContext&gt;().ToSelf().InRequestScope(); Bind&lt;IUnitOfWork&gt;().ToMethod(ctx =&gt; ctx.Kernel.Get&lt;ApplicationContext&gt;()}); Bind&lt;ApplicationContext&gt;().ToMethod(ctx =&gt; ctx.Kernel.Get&lt;ChromLimsContext&gt;()}).WhenInjectedInto&lt;IDal&gt;(); // other bindings for dals and business objects, etc. } } </code></pre> <p>Then we have a couple interfaces:</p> <pre><code>public interface IUnitOfWork() { void SaveChanges(); Task SaveChangesAsync(); } </code></pre> <p>and</p> <pre><code>public interface IDal() { // Crud operations, Sync and Async } </code></pre> <p>then our actual classes using these:</p> <pre><code>public class SomeBusinessObject { private IUnitOfWork _uow; private IDal _someDal; public SomeBusinessObject(IUnitOfWork uow, IDal someDal) { _uow = uow; _someDal = someDal; } public Task&lt;SomeResult&gt; SaveSomething(Something something) { _someDal.Save(something); _uow.SaveChanges(); } } </code></pre> <p>Some Dal</p> <pre><code>public class SomeDal : IDal { private ApplicationContext _applicationContext; public SomeDal(ApplicationContext applicationContext) { _applicationContext = applicationContext; } public void Save(Something something) { _applicationContext.Somethings.Add(something); } } </code></pre> <p>Our EF DbContext</p> <pre><code>public class ApplicationContext : DbContext, IUnitOfWork { // EF DBSet Definitions public void SaveChanges() { base.SaveChanges(); } } </code></pre> <p>The expectation is that for every request, a single instance of ApplicationContext is created and injected into the business objects as an IUnitOfWork implementation and into the IDals as an ApplicationContext.</p> <p>Instead what is happening is that a new instance of ApplicationContext is being created for every single class that uses it. If I switch the scope from InRequestScope to InSingletonScope, then (as expected) exactly 1 instance is created for the entire application, and injected properly into the specified classes. Since that works, I'm assuming this isn't a binding issue, but instead an issue with the InRequestScope extension.</p> <p>The only issue I could find similar to what I'm experiencing is <a href="https://groups.google.com/forum/#!topic/ninject/Wmy83BhhFz8">this one</a>, but unfortunately the solution did not work. I'm already referencing all of the packages he specified in both the WebApi and Infrastructure projects, and I double checked to make sure they are being copied to the build directory.</p> <p>What am I doing wrong?</p> <p><strong>Edit:</strong> Some additional information. Looking at the Ninject source code in both Ninject.Web.WebApi.OwinHost and Ninject.Web.Common.OwinHost, it appears that the Owin Middleware adds the OwinWebApiRequestScopeProvider as the IWebApiRequestScopeProvider. This provider is then used in the InRequestScope() extension method to return a named scope called "Ninject_WebApiScope". This will be present until the target class that being injected into switches. The named scope then disappears, and a new scope is created. I think this may be what @BatteryBackupUnit was referring to in their comment, but I don't know how to correct it.</p>
0non-cybersec
Stackexchange
How to deploy SNAPSHOT with sources and JavaDoc?. <p>I want to deploy sources and javadocs with my snapshots. This means that I want to automize the following command:</p> <pre><code>mvn clean source:jar javadoc:jar deploy </code></pre> <p>Just to execute:</p> <pre><code>mvn clean deploy </code></pre> <p>I don't want to have javadoc/sources generation executed during the <code>install</code> phase (i.e. local builds).</p> <p>I know that source/javadoc plugins can be synchronized with the execution of the <code>release</code> plugin but I can't figure out how to wire it to the snapshots releases.</p>
0non-cybersec
Stackexchange
Kitty taking a nap.
0non-cybersec
Reddit
Hi we are Mike, Robb, and JP of The Trailer Park Boys, The Drunk and on Drugs Happy Funtime Hour and SwearNet. Ask us any fucking thing.. We're about to launch our new website, www.swearnet.com with a live, online PPV this Saturday at 8pm EST. Prebuy tickets now, or become a Founding Fucker at www.swearnet.com We had an awesome time doing this last time (http://www.youtube.com/watch?v=orCM2bVC4Ss&feature=share&list=PLC6A823BC86F67929). So we're back and answering your fucking questions at 2pm EST. Edit: THANK YOU!!! THIS WAS FUCKING FUN! https://twitter.com/SWEARNET/status/308680101770452993 Don't forget to join RICKY, JULIAN and BUBBLES LIVE on www.swearnet.com March 9th - They'll be getting drunk and answering questions LIVE via SKYPE! https://www.facebook.com/events/557080224331851/
0non-cybersec
Reddit
Bitcoin Best Practices by the Bitcoin Foundation. <p>The <a href="https://www.bitcoinfoundation.org">Bitcoin Foundation</a>'s Executive Director, Peter Vessenes, in his <a href="https://www.bitcoinfoundation.org/about/letter">open letter</a> states that the Foundation is aiming to</p> <blockquote> <p>Publish a set of best practices for businesses transacting in Bitcoin, covering topics from accounting to physical and digital security</p> </blockquote> <p>Is there any information on how this set of best practices is being developed, who is working on it and whether any individual can contribute to the works?</p>
0non-cybersec
Stackexchange
[WDYWT] Waves..
0non-cybersec
Reddit
Old Hands, Colored Pencil on Toned Paper, 18x24.
0non-cybersec
Reddit
[FIXED-Seperated into pictures] Drug Overdose Deaths per 100,000 People.
0non-cybersec
Reddit
How to select 1st, 4th, 7th element and so on?. <p>How could I select the 1st, 4th, 7th elements and so on ?! also how to select the 3rd, 6th, 9th and so on?</p> <p>the pattern is selecting and element then leaving two and selecting the third. I know I should use <code>:nth-child</code>, but I don't know how exactly.</p>
0non-cybersec
Stackexchange
Found in a subway. When you hit the button it blinks for a bit..
0non-cybersec
Reddit
Regular expressions in R to erase all characters after the first space?. <p>I have data in R that can look like this:</p> <pre><code>USDZAR Curncy R157 Govt SPX Index </code></pre> <p>In other words, one word, in this case a Bloomberg security identifier, followed by another word, which is the security class, separated by a space. I want to strip out the class and the space to get to:</p> <pre><code>USDZAR R157 SPX </code></pre> <p>What's the most efficient way of doing this in R? Is it regular expressions or must I do something as I would in MS Excel using the mid and find commands? eg in Excel I would say:</p> <pre><code>=MID(@REF, 1, FIND(" ", @REF, 1)-1) </code></pre> <p>which means return a substring starting at character 1, and ending at the character number of the first space (less 1 to erase the actual space). </p> <p>Do I need to do something similar in R (in which case, what is the equivalent), or can regular expressions help here? Thanks.</p>
0non-cybersec
Stackexchange
A limit related to super-root (tetration inverse).. <p>Recall that <a href="http://en.wikipedia.org/wiki/Tetration" rel="noreferrer">tetration</a> ${^n}x$ for $n\in\mathbb N$ is defined recursively: ${^1}x=x,\,{^{n+1}}x=x^{({^n}x)}$. </p> <p>Its inverse function with respect to $x$ is called <a href="http://en.wikipedia.org/wiki/Tetration#Super-root" rel="noreferrer">super-root</a> and denoted $\sqrt[n]y_s$ (the index $_s$ is not a variable, but is part of the notation &mdash; it stands for "super"). For $y&gt;1, \sqrt[n]y_s=x$, where $x$ is the unique solution of ${^n}x=y$ satisfying $x&gt;1$. It is known that $\lim\limits_{n\to\infty}\sqrt[n]2_s=\sqrt{2}$. We are interested in the convergence speed. It appears that the following limit exists and is positive: $$\mathcal L=\lim\limits_{n\to\infty}\frac{\sqrt[n]2_s-\sqrt2}{(\ln2)^n}\tag1$$ Numerically, $$\mathcal L\approx0.06857565981132910397655331141550655423...\tag2$$</p> <hr> <p>Can we prove that the limit $(1)$ exists and is positive? Can we prove that the digits given in $(2)$ are correct? Can we find a closed form for $\mathcal L$ or at least a series or integral representation for it?</p>
0non-cybersec
Stackexchange
Understanding induced representations. <p>Let $G$ be a group and $H$ be a subgroup. Let $\phi:H\rightarrow GL(V)$ be a representation of $H$. There are three constructions in <a href="http://en.wikipedia.org/wiki/Induced_representation">Wikipedia</a>, but I am not really convinced by these.</p> <p>My question is: are there any good intuitive ways to understand induced representation $Ind_H^G(\phi)$? </p>
0non-cybersec
Stackexchange
As a Vim/MacVim guy, is TextMate worth it?.
0non-cybersec
Reddit
Can you buy me food plz. &#x200B; https://preview.redd.it/q0avlf3xw7q11.png?width=398&format=png&auto=webp&s=707903480bac1ee0e10f069372e6ac25bf0868bd
0non-cybersec
Reddit
So I got my new bowl today.. new one hitter?.
0non-cybersec
Reddit
Hey /r/cooking, first post to this sub. I've really been exploring cooking new, complex (to me) recipes. Tonight I tried an herb stuffed porkloin with a mustard cream sauce. I cook for one, so I was hoping to share with you..
0non-cybersec
Reddit
Can code after &#39;await&#39; run in different thread in ASP.NET?. <p>I've read here <a href="https://blog.stephencleary.com/2009/10/synchronizationcontext-properties.html" rel="nofollow noreferrer">https://blog.stephencleary.com/2009/10/synchronizationcontext-properties.html</a> that ASP.NET applications' execution context does not have specific associated thread. Does it mean code after await will(can) be executed in different thread with the same context ? In this case how it is possible that deadlock can be caused by synchronous execution? Or ASP.NET application is not the case for such deadlock ?</p> <p>Thanks in advance.</p>
0non-cybersec
Stackexchange
slow query logging in mysql server. <p>I have installed MySQL Community Edition 5.1.41 on a windows 2000 server. In my.ini file I have enabled slow query logging and have redirected the output to a table.I have set the long_query_time to 10 seconds. Then after running some queries I checked up the slow query log table and found that all the queries which were executed have been logged and a file called database-slow.log has also been created in the data folder. Can anybody please tell me where I am going wrong. I am using the inbuilt innodb and not activated the innodb plugin.</p> <p>Thanks</p>
0non-cybersec
Stackexchange
Mighty No. 9 Kickstarter. Its being headed by Keiji Inafune, megaman creator. BACK IT O_O.
0non-cybersec
Reddit
Setting up multiple domains in Exchange as different Organizational Units?. <p>I some questions regarding the above a few months ago, and was pointed to the tutorials below. I have followed the tutorials, but have a few more questions for you experts. <a href="http://technet.microsoft.com/en-us/library/bb936719%28EXCHG.80%29.aspx#Optn1" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/library/bb936719%28EXCHG.80%29.aspx#Optn1</a> <a href="http://technet.microsoft.com/en-us/library/aa996314.aspx" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/library/aa996314.aspx</a></p> <p>To describe what I am doing in more details: I currently have my company (domain1.com) running on it's own Exchange 2010 server (Windows Server 2008). I also have my whole clan, about 25 family members, (domain2.com) running on a separate Exchange 2007 server (SBS 2008). I have recently acquired a new domain (domain3.com) which I want to move my company onto, so I will need to receive emails on the original domain and the new one.</p> <p>So far... I have installed a typical instance of Exchange 2010 onto a new Server 2008 instance and have set it up as a domain in a new forest titled "domain3.com". I have created two organizational units under this active directory called "domain3.com" and "domain2.com". I have created three accepted domains in EMC titled "domain1.com", "domain2.com" and "domain3.com". I have created two email address policies titled "domain2.com and "domain3.com".</p> <p>I DID NOT follow the steps in the above tutorials around changing permissions to the GAL, New Address List and Offline Address List as it doesn't matter if the different organizational units cross over on these. We do not make use of the GAL, and it doesn't matter if the different parties access the different Address Lists. Is this OK or should I have followed these steps too?</p> <p>Am I on the correct track so far?</p> <p>How do I configure the new users so that I can assign them to one of the two accepted domains? At the moment, they can only be assigned to domain3.com as it is set to default.</p>
0non-cybersec
Stackexchange
Visual Guide For Reconnaissance.
1cybersec
Reddit
Monit vs Source Control: permission problems. <p>I'm trying to be good. That's my big mistake.</p> <p>I'm being good by having process monitoring: I have monit watching some key processes, and restarting them if they fail. </p> <p>I'm being good by not running as root: Monit runs a web-server, and I don't want it to run as root in case there is a security issue. So, I have a special 'monit' user, that has the permissions required to start and stop some key processes, and that is about it.</p> <p>The monit process reads from a ~monit/.monitrc file, and monit insists that the file is only readable by the the user it runs as - i.e. the monit user.</p> <p>I'm being good by storing all my operational scripts and configurations in source-control (mercurial), so I can rebuild machines with the same specs. I, or other devs, check-in changes to the scripts to source control, and then I pull the results onto the production machine. Symbolic links point from ~monit/.monitrc into the source control directory.</p> <p>However, that's where it all falls down - the source control directory is written to by Mercurial when I pull the latest scripts, but the pull command isn't running as monit, so the monitrc file is writable by another user... which monit doesn't like, and won't run.</p> <p>I can constantly chowning and chmodding the monitrc file before and after each pull, but that is fraught with oversights.</p> <p>I can't see how to ask monit to relax about ownership. I can't see how sticky bits will help.</p> <p>Any suggestions?</p>
0non-cybersec
Stackexchange
Boolean - Int conversion in Kotlin. <p>Is there no built-in way to convert between boolean - int in Kotlin? I am talking about the usual:</p> <pre><code>true -&gt; 1 false -&gt; 0 </code></pre> <p>If not, what is an idiomatic way to do it?</p>
0non-cybersec
Stackexchange
When the senate decided to execute the conspirators without trial....
0non-cybersec
Reddit
Ejaculation stories. I'm 14 and ejaculated for the first time yesterday and it felt really weird and good, as I thought it should. I would like to hear you first ejaculation stories but first I'll share mine: I've masturbated before, but nothing ever really came out. Then one night I noticed I had a boner, but it was larger, tougher, and harder than all my other boners. I wasin the shower fumbling around with my penis, but it didn't really do anything so I went to bed. I started looking at something on my iPod (not porn) and started jacking off. I wasn't really paying attention to my penis, but it regained the hard tough boner I had in the shower and then I felt something. I dropped my iPod and store down at my penis, and out was coming yellowish white semen. I was a little freaked because in the spur of the moment I squirted all over my iPod. I thought I should share
0non-cybersec
Reddit
My clearance bin orchid bloomed after a year of care. It also happened to be my favorite color!.
0non-cybersec
Reddit
OpenSSH Server for Windows 10 - Could not enter anything in Ubuntu terminal launched from cmd / powershell SSH session. <p>Would like to seek for advice for an issue regarding Windows 10's new OpenSSH feature.</p> <p>Firstly, I have installed the "ubuntu" from Windows Store following the support of Windows Subsystem for Linux. It functioned properly, ubuntu could by launched successfully from either cmd or powershell sessions locally (just type "ubuntu").</p> <p>(Reference: <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/windows/wsl/install-win10</a> )</p> <p>Then I installed "OpenSSH Server (beta)". After some setup, from another device I could SSH into the Windows machine, and it showed command prompt (cmd) as default. I could open a powershell session by just typing "powershell".</p> <p>However, I could not launch ubuntu from neither cmd nor powershell in the SSH session. In either case, after I enter "ubuntu", it just loads a while and ended with nothing happened.</p> <p>May I know if there are additional setup required to launch linux shell from cmd/powershell in Win 10 SSH? Would also like to see if there is a way to change the default terminal type (cmd/powershell/ubuntu etc.) upon SSH login , thanks!</p> <p>(Reference: <a href="https://blogs.msdn.microsoft.com/powershell/2017/12/15/using-the-openssh-beta-in-windows-10-fall-creators-update-and-windows-server-1709/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/powershell/2017/12/15/using-the-openssh-beta-in-windows-10-fall-creators-update-and-windows-server-1709/</a> <a href="https://www.bleepingcomputer.com/news/microsoft/how-to-install-the-built-in-windows-10-openssh-server/" rel="nofollow noreferrer">https://www.bleepingcomputer.com/news/microsoft/how-to-install-the-built-in-windows-10-openssh-server/</a>)</p> <p><strong>========== UPDATE (25 Apr 2018) ==========</strong></p> <p>After following the guidlines below to set the local launch and activation rights, I managed to get ubuntu launchable from a SSH cmd session.</p> <p>(Reference: <a href="https://adrift.io/2017/10/11/windows-subsystem-for-linux-error-0x80070005-access-denied/" rel="nofollow noreferrer">https://adrift.io/2017/10/11/windows-subsystem-for-linux-error-0x80070005-access-denied/</a>)</p> <p>I could see the bash shell is launched. However, I could not type in anything in the terminal. It looked as if the cursor is freezed.<br/></p> <p><a href="https://i.stack.imgur.com/d11EN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d11EN.png" alt="bash shell freezes"></a></p> <p>No error is observed in the Windows event viewer.</p> <p>Kindly see if you have any ideas on this, thanks.</p>
0non-cybersec
Stackexchange
Querying MongoDb after scheme change. <p>The database schema of an application is rarely fixed, due to new development the schema has to change. This also applies to a schema-less solution like MongoDB. There is <a href="http://mongodb.github.io/mongo-csharp-driver/2.3/reference/bson/mapping/schema_changes/" rel="nofollow noreferrer">documentation</a> on how to handle schema changes, i.e. if a property has been removed / renamed etc. My problem is how to query data after such a schema change. </p> <p>This is best illustrated with an over-simplified example. Consider the class Person</p> <pre><code>public class Person //version 1.0 { public Guid Id {get;set;} public string FirstName {get;set;} public string LastName {get;set;} } </code></pre> <p>At the time of the first release, there is the ill-conceived assumption that no two people can have the same name. So in order to retrieve one person entity from the database, I would either find the record by ID, or call the method "Find"</p> <pre><code> public class DbContext { public IEnumerable&lt;T&gt; Find(Expression&lt;Func&lt;T, bool&gt;&gt; expression) { return _mongoDocumentCollection.AsQueryable().Where(expression).ToList(); } private readonly IMongoCollection&lt;T&gt; _mongoDocumentCollection; //implementation omitted } </code></pre> <p>An example of using Find:</p> <pre><code>new DbContext().Find(p =&gt; p.FirstName + p.LastName == "JohnDoe"); </code></pre> <p>Here I thus query the collection using an expression. As previously mentioned, this code will not work for long since multiple people can have the same name. So instead we add a field with a user name.</p> <pre><code>public class Person //version 2.0 { public Guid Id {get;set;} public string FirstName {get;set;} public string LastName {get;set;} public string UserName {get;set;} } </code></pre> <p>When fetching a document written in v1.0 <strong>by id</strong>, we follow the strategy <a href="http://mongodb.github.io/mongo-csharp-driver/2.3/reference/bson/mapping/schema_changes/" rel="nofollow noreferrer">outlined here</a>, which will programatically add the field <code>UserName</code> by concatenating the first and last names. However, doing </p> <pre><code> new DbContext().Find(p =&gt; p.UserName == "JohnDoe"); </code></pre> <p>will never find the document written in v1.0 since it does not contain the property <code>UserName</code>. </p> <p>The business only wants documents to be replaced if they are actually changed, so writing a migration script is not a solution. This also implies that I can eventually have N different versions of the same class in the document collection, i.e. v1.0, v2.0, .... vN. What patterns / design strategies are for querying data after a schema change?</p>
0non-cybersec
Stackexchange
PANDAS GroupBy Removing Header. <p>I'm using the PANDAS groupBy and noticing it is removing the header name of the value I am running it on.</p> <pre><code>data = pd.read_csv("&lt;CSV FILE NAME&gt;", low_memory=False) print data.head() print data.columns </code></pre> <p>Gives me the following output: </p> <pre><code> Store ID Daily Sales 0 4444444 436 1 4555555 406 2 6435353 487 3 3421456 637 4 1111111 516 Index([u'Store ID', u' Daily Sales'], dtype='object') </code></pre> <p>When I run </p> <pre><code>data = data.groupby(['Store Number']).mean() print data.head() print data.columns </code></pre> <p>The output is changed to </p> <pre><code> Daily Sales Store ID 4166646 236.280394 4166663 152.061884 4166664 131.163746 4166665 144.920044 4166666 225.075027 Index([u'Daily Sales'], dtype='object') </code></pre> <p>The Store ID header name is being added as a value and removed from the header names. What is the reason behind this and is there a fix?</p>
0non-cybersec
Stackexchange
Man who accidentally stole car 21 years ago searching for vehicle's owner.
0non-cybersec
Reddit
Wasted food and how not to.
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