text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Restore backup to different filegroup. <p>Using Sql Server 2008R2.</p> <p>I have a backup of a filegroup. Is it possible to restore this to a different file group (possibly even on a different database)?</p> <p>I have tried</p> <pre><code>RESTORE DATABASE my_database FILEGROUP = 'newFileGroup' FROM DISK='C:\restore\backupOfFileGroup.bak' WITH RECOVERY </code></pre> <p>But get the following error:</p> <pre><code>Filegroup 'newFileGroup' cannot be restored because it does not exist in the backup set. </code></pre>
0non-cybersec
Stackexchange
Definite integral word problem with trig. Check setup?. <p>Find the volume of the solid obtained by rotating the region bounded by the given curves about the specified line. Sketch the region, the solid, and a typical disk or washer.</p> <p>$y = \sin x$, $y = \cos x$, $0 &lt; x &lt; \frac{\pi}{4}$; rotated about the line $y = -1$</p> <p>So...</p> <p>outer radius: $1 + \cos x$</p> <p>inner radius: $1 + \sin x$</p> <p>So here's my setup:</p> <p>$$\pi \int_0^\frac{\pi}{4} (1 + \cos x)^2 - (1 + \sin x)^2 \, dx$$</p> <p>$$\pi \int_0^\frac{\pi}{4} 1 + 2 \cos x + \cos^2x - ( 1 + 2 \sin x + \sin^2 x ) \, dx$$</p> <p>Is this setup right?</p> <p>But then I'm stuck here on the next step:</p> <p>$$\pi \int_0^{\frac{\pi}{4}} (2 \cos x - 2 \sin x + \cos^2 x + \sin^2 x \,) dx$$</p> <p>From here, I need to find the antiderivatives. but what are the antiderivatives of $\cos^2 x$? Also, how do I draw this graph using mathjax?</p>
0non-cybersec
Stackexchange
Standard terminology for n/gcd(n,m).. <p>Let $n,m$ be positive integers. Is there a standard terminology and notation for the quotient of $n$ divided by the greatest common divisor of $n$ and $m$, i.e., for the integer $\frac{n}{\gcd(n,m)} = \frac{\mathrm{lcm}(n,m)}{m}$?</p>
0non-cybersec
Stackexchange
Amazing Coconut Art.
0non-cybersec
Reddit
feeding time and diet question. My pit terrier can be a picky eater. I feed her raw chicken and vegan dry dog food, the brand slips my mind. I usually alternate days between the raw and dog food. But it's difficult to get her to eat the dog food. She will refuse to eat dog food for the whole day until I get creative with some toppings. This leads to irregular feeding times. It's all a matter of when she is hungry enough to give in and eat the dog food. Should I give her a window of opportunity to eat her dog food and if she refuses, take it away until the next set time for feeding? I usually just leave the food out for her to eat until it's been consumed. How important is having regular feeding times? What do you think of alternating between dry vegan dog food and raw meat as a diet plan? She loves raw chicken. I'm sure the raw food is a common topic on here.
0non-cybersec
Reddit
Serve static files from directory depending on http referrer inside of nginx. <p>My server hosts images, but the content of images have to be different for the same link and have to deepens on http referrer.</p> <pre><code>For example: Website 1 load image website1.jpg from www.example.com/123123/img.jpg Website 2 load image website2.jpg from www.example.com/123123/img.jpg </code></pre> <p>How can i manage do it using <code>NGINX</code> configuration?</p> <p>UPDATE: I give you guys more details about whole idea:</p> <p>Images loads on the pages:</p> <pre><code>www.not_my_website.com/123123/ www.not_my_website.com/456456/ www.not_my_website.com/686667/ </code></pre> <p>I can't access to this site, but there can be images from my site.</p> <pre><code>&lt;img src="www.example.com/123123/img.jpg"&gt;&lt;/img&gt; </code></pre> <p>I need serve others images with the same htlm code based on page ID www.not_my_website.com/ID/).</p> <p>Thanks for help.</p>
0non-cybersec
Stackexchange
Watch Kin 2018 Full Movie Online Free Streaming.
0non-cybersec
Reddit
[Fresh] Independent Living - Dizzy Wright ft. Hopsin & SwizZz.
0non-cybersec
Reddit
Does the notion of graph with vertex multiplicity exist?. <p>I need to use graphs where each vertex gets a natural number, $b(v)$, its multiplicity. These numbers indicate how many 'replications' of the vertex we have.</p> <p>It is actually a way to write in a compact way a graph which has a lot of twin vertices: two vertices $u$ and $v$ are twin if $N(u)=N(v)$ (they are not adjacent).</p> <p>Since the twin relation is an equivalence relation, there is a unique way to write any graph in a reduced form as a graph with vertex multiplicities.</p> <p>Here is an example: <img src="https://i.stack.imgur.com/cCRt1.jpg" alt="Here is an example of the reduction"></p> <p>This representation is particularly useful when vertices represent some items with large quantity.</p> <p>Does someone know if such a concept already exists ? What's the usual name ? Do you have some references ?</p>
0non-cybersec
Stackexchange
My traditional osprey done by Shauncey Fury at Hula Moon Tattoo in Pensacola, Fl.
0non-cybersec
Reddit
Poisson confidence interval with numpy. <p>I'm trying to put Poisson continuous error bars on a histogram I'm making with matplotlib, but I can't seem to find a numpy function that will given me a 95% confidence interval assuming poissonian data. Ideally the solution doesn't depend on scipy, but anything will work. Does such a function exist? I've found a lot about bootstrapping but this seems a bit excessive in my case. </p>
0non-cybersec
Stackexchange
How to rename a cocoapod. <p>I have a published Cocoapod, say it's named <code>abc-sdk</code>, I wish to fix its name (capitalization) to <code>Abc-SDK</code>. Is it possible? I tried changing the <code>s.name</code> in the podspec (and the podspec file name capitalization as well) but when I run <code>pod trunk push</code> I get: <code> [!] The following validation failed: - Name is already taken. </code> What's the right way to do it?</p>
0non-cybersec
Stackexchange
How do I configure WiFi to log in to WPA at boot time, regardless of user being logged in?. <p>How do I set a system wide wireless WPA password that starts at boot time, allowing me to SSH in to the machine from outside, for example?</p> <p>I'm running mythbuntu. Until I log in, WiFi doesn't connect, so I can't use SSH to log in from another computer, for example. When I have auto-login enabled, it asks me to enter my password to unlock my keyring before connecting. I've tried editing the connection and clicking "Available to all users", but then it just doesn't connect at all.</p> <p>How do I go about debugging this problem, or how can I configure it totally manually?</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
Tikz externalize error when using tikzducks. <p>I am using <code>tikzducks</code> for my footers, simply because I think they are brilliant. Because my document contains lots of other tikzpictures, I want to make use of <code>\tikzexternalize</code>. This works perfectly fine if I do not use the <code>tikzducks</code>. With the <code>tikzducks</code>, the <code>tikzexternalize</code> fails when generating the final duck. A simple solution would be to disable the <code>tikzducks</code>. But yeah... a report without a duck, that's a bridge too far. So could anyone help me out?</p> <p>My MWE (<code>document.tex</code>):</p> <pre><code>\documentclass{article} \usepackage{lipsum} %5 generate lorum ipsum text \usepackage{fancyhdr} %% page headers and footers \usepackage{tikzducks} %% ducks with tikz \pagestyle{fancy} %% set page style \renewcommand*{\headrulewidth}{0.0pt} %% header line width \fancyfoot[C]{\shuffleducks\tikz[scale=0.35]{\duck[signpost={\footnotesize\thepage},\randomhead]}} \usetikzlibrary{external} %% Create pdf figures from TikZ. Use PDFTeXify ... \tikzexternalize[prefix=tikz/] %% ... with --tex-option=--shell-escape switch. \begin{document} \lipsum[1-10] \end{document} </code></pre> <p>I use the following code for compilation:</p> <pre><code>pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape "document".tex </code></pre> <p>I get the following error:</p> <pre><code>! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e rror -interaction=batchmode -jobname "tikz/document-figure1" "\def\tikzexternal realjob{document}\input{document}"' did NOT result in a usable output file 'tik z/document-figure1' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the com mand simply failed? Error messages can be found in 'tikz/document-figure1.log'. If you continue now, I'll try to typeset the picture. </code></pre> <p>This is what the log file says:</p> <pre><code>! Package tikz Error: Sorry, image externalization failed: the resulting image was EMPTY. I tried to externalize 'tikz/document-figure1', but it seems there i s no such image in the document!? You are currently using 'mode=convert with system call'. This problem can ha ppen if the image (or one of the images preceeding it) was declared inside of a \label{} (i.e. in the .aux file): 'convert with system call' has no access to the main aux file. Possible solutions in this case: (a) Try using 'mode=list and make', (b) Issue the externalization command 'pdflatex -shell-escape -halt-on-error -interaction=batchmode -jobname "tikz/document-figure1" "\def\tikzexternalreal job{document}\input{document}"' *manually* (also check the preceeding externali zed images, perhaps the file name sequence is not correct). Repeat: the resulting image was EMPTY, your attention is required . </code></pre>
0non-cybersec
Stackexchange
Found a fish with legs!.
0non-cybersec
Reddit
Recurrence substitution method. <p>I just want to see if I did this right. I need to show that $T(n) = 3T(n/4) + n\log n$ shows that $T(n) = O(n\log n)$ using substitution method in recurrence.</p> <p>$$T(n) = 3c(n/4 \log n/4) + n\log n$$ $$c\log nn - cn + n\log n$$ $$n\log n$$ That does not seem right but I followed an example and thats how it turned out. Thanks for any help with this.</p>
0non-cybersec
Stackexchange
California red-sided garter snake.
0non-cybersec
Reddit
Illusion [pic].
0non-cybersec
Reddit
RDP Console / Admin Session. <p>When i connect to Windows 2003 machines i can use the /console switch and essentially get a third remote administration session on the server.</p> <p>This doesn't seem to work on Windows 2008 R2, only 2 sessions are allowed. Has this feature been removed ?</p> <hr> <p>Thanks, but my question isn't about the switch but about the behaviour of Windows 2008 v Windows 2003. Although, it's good to note the switch is releated to the client.</p> <p>Windows 2003 essentially allowed 3 simultaneous connections in remote administration mode if one of them used the console switch.</p> <p>Windows 2008 seems to have removed this as regardless of which switch we use we can only get two users on.</p>
0non-cybersec
Stackexchange
AdMob orientation problem in Android. <p>My application integrates with <a href="http://en.wikipedia.org/wiki/AdMob" rel="nofollow noreferrer">AdMob</a> ads. When I change the orientation it should fit the screen depending on orientation. In portrait mode it is working fine, but when I changed to landscape mode the ad size I am getting in portrait mode is the same size of the ad displayed in landscape mode.</p> <p>I am adding the following in layout page.</p> <pre><code>&lt;com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" /&gt; </code></pre>
0non-cybersec
Stackexchange
[Discussion] Companies with lifetime warranties on their products (help make a list). Hey guys, I've been searching around for well made clothes and accessories and I know of a few companies with lifetime warranties, and I was wondering if you could add to my list of companies with great warranties. I feel better giving my money to companies when I know I'll get my money's worth out of the product. I think it's fair to buy a new product when the old one wears out, provided that you got your money's worth. I've done some googling, and here's the list so far (many added by you guys): **Clothing and outdoor gear** * [Costco](http://www.costco.com/) - will accept almost any return * [Darn Tough socks](http://darntough.com/) * [Duluth Pack](http://duluthpack.com/) - *thanks to /u/typographic* * [Dr Martens For Life shoes and boots](http://www.drmartens.com/us/search?text=dr+martins+for+life&x=0&y=0) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Eddie Bauer](http://www.eddiebauer.com/) * [Filson](http://www.filson.com/) - *thanks to /u/Tommyboy610* * ~~[Fjallraven](http://www.fjallraven.us/) - warranty to original owner in North America - *thanks /u/Angusdiet*~~ **Changed policy to two years :(** * [Lands' End](http://www.landsend.com/) * [LL Bean](http://www.llbean.com/) * [Marmot](http://marmot.com/) - *thanks to /u/always_creative* * [Nordstrom](http://shop.nordstrom.com/) - practically anything is refundable or exchangeable - *thanks to /u/wat_ah* * [The North Face](http://www.thenorthface.com/en_US/) * [Oliberté shoes and bags](http://www.oliberte.com/) - *thanks to /u/dat_bird* * [Outdoor Research](http://www.outdoorresearch.com/en/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Patagonia](http://www.patagonia.com/us/home) - *thanks /u/blankedinmyblank* * [Smartwool socks](http://www.smartwool.com/) - *thanks to /u/yurnotsoeviltwin* **Accessories and Bags** * [Briggs & Riley Luggage](http://www.briggs-riley.com/) - *thanks /u/Msteste* * [Chrome bags](http://www.chromeindustries.com/us/en/) - *thanks to /u/johnnytg23* * [Coach](http://www.coach.com/online/handbags/Home-10551-10051-en) (not free, but $20 to repair any item) * [Dakine bags](http://www.dakine.com/) * [Duluth Pack](http://duluthpack.com/) - *thanks to /u/typographic* * [Everki laptop bags and backpacks](http://www.everki.com/) - *thanks /u/whysochangry* * [Filson](http://www.filson.com/) - *thanks to /u/Tommyboy610* * [Friday & River](http://fridayandriver.com/) - *thanks /u/intentionalthreads* * [J.W. Hulme Co. Leather Goods](http://www.jwhulmeco.com/) - *thanks to /u/10minuteslate* * [Jansport](http://www.jansport.com/shop/en/jansport-us) * [Navali](http://www.navali.com/) - *thanks to /u/fashnewb* * [Oliberté shoes and bags](http://www.oliberte.com/) - *thanks to /u/dat_bird* * [Osprey packs](http://www.ospreypacks.com/) * [Red Oxx Bags](http://www.redoxx.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Saddleback Leather](http://www.saddlebackleather.com/) - 100 Year Warranty - *thanks /u/randolama* * [Skagen Watches](http://www.skagen.com/webapp/wcs/stores/servlet/HomeView?langId=-1&storeId=37082&catalogId=26505&N=0) * [Stormy Kromer caps](http://www.stormykromer.com/lifetime-warranty) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Tilley Hats](http://www.tilley.com/us_en/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* **Other** * [Alpinestars motobike gear](http://www.alpinestars.com/) - *thanks to /u/LordPancakes* * [Big Green Egg outdoor cooker](http://www.biggreenegg.com/eggs/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Craftsman Hand Tools](http://www.craftsman.com/) - *thanks /u/FlyingTheWire* * [Cutco Cutlery](http://www.cutco.com/home.jsp) * [ESEE Knives](http://www.eseeknives.com/index.html) (No Questions Asked warranty) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Fiskars Scissors](http://www3.fiskars.com/) - *from [this](http://www.reddit.com/r/AskReddit/comments/kiu5y/what_crazy_lifetime_guarantees_that_you_know/) thread* * [Kershaw Knives](http://kershaw.kaiusaltd.com/) - *thanks to /u/walzman* * [Koss Headphones](http://www.koss.com/en/products) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Kryptonite bike locks](https://www.kryptonitelock.com/Pages/Home.aspx) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Le Creuset cookware](http://www.lecreuset.com/) (most products) - *thanks to /u/lpguy2* * [Leatherman Tools](http://www.leatherman.com/) (25 Years) - *thanks /u/visionquest1* * [Lovesac Furniture](http://www.lovesac.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Lupine animal collars and leashes](http://www.lupinepet.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Magic Flight Launch Box vaporizer](http://www.magic-flight.com/launch-box.php) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * Manduka PRO Series Yoga Mats](http://www.manduka.com/us/customer-service/lifetime-guarantee/) * [Mitchell Gold + Bob Williams Furniture](http://www.mgbwhome.com/Default.aspx) - *thanks to /u/Msteste* * [OXO cookware](http://www.oxo.com/default.aspx) * [Pelican cases](http://www.pelican.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Snap-on hand tools](http://store.snapon.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Tervis Cups](http://www.tervis.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Tupperware containers](http://order.tupperware.com/coe/app/!tw$shop.p_category?pv_ic_code=20000) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Vortex Optics](http://www.vortexoptics.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* * [Zippo Lighters](http://www.zippo.com/) - *from [BIFL thread](http://www.reddit.com/r/BuyItForLife/comments/1tgx37/new_lifetime_warranty_thread_post_any_items_you/)* --- **Keep in mind that the lifetime warranties don't mean a thing if the company ceases to exist, so be wary when investing in products from new companies with seemingly great warranties.** --- **edit**: going to bed for the night, I'll update the list in the morning. Thanks everyone for your contributions. **edit 2**: I'm back, time to add everything to the list. Thanks everyone for your help! **edit 3**: made categories for clothes, accessories, and everything else **edit 4**: started searching through reddit to add more brands/products
0non-cybersec
Reddit
My friend is always optimistic, and doesn't fail to put a smile on my face.
0non-cybersec
Reddit
NIN w/ The Dillinger Escape Plan - Wish(Live)[Industrial Rock](2008).
0non-cybersec
Reddit
Russian airliners know how to get it up in the air (nsfw).
0non-cybersec
Reddit
Angular datatables with filter column width. <p>I tried to set width for column in angular datatables with filters. But width of the column not changed.</p> <p>I try following</p> <pre><code> var columnsSpecification = [ { type: 'text', bRegex: true, bSmart: true }, { type: 'text', bRegex: true, sWidth:"90px"}]; $scope.dtOptions = DTOptionsBuilder.newOptions() .withBootstrap() .withOption('scrollX', '700%') .withOption('scrollY', height + 'px') .withOption('oLanguage', { "sEmptyTable": " " }) .withOption('lengthMenu', [[-1, 1000, 100, 50, 25, 10], ['All', 1000, 100, 50, 25, 10]]) .withOption('paging', false) .withOption('bInfo',false) .withColumnFilter({ aoColumns:columnsSpecification }) .withTableTools('/Content/DataTables/swf/copy_csv_xls.swf') .withTableToolsButtons(['xls']); </code></pre> <p>In html file I tried this:</p> <pre><code> &lt;table id="table-machines" datatable="ng" class="table table-striped" dt-options="dtOptions"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th style="width: 90px !important"&gt;Value&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr ng-repeat="m in records&gt; &lt;td&gt;{{m.name}}&lt;/td&gt; &lt;td style="width: 90px !important"&gt;{{m.Value}}&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; </code></pre> <p>But Value column another zise rather I setted.</p> <p>I'v found, that if there is not filter - all fine.</p> <p>How can I set table width and preserve filters?</p>
0non-cybersec
Stackexchange
Question to Stay at Home mum's from a concerned husband/dad. My wife is a stay at home mum to our 16 month old. He is a happy, healthy little guy and she is very caring mother. Anyway, I am not an all knowing dad who knows exactly what all kids need but just wanted to put my concerns out there and see if I'm overreacting. Basically my concerns are that most days the two of them just spend at home together. She engages him all day (she doesn't just sit him in front of TV). They have fun and laugh and are always sending me photos of the games and activties they are getting up to. Grandmother comes around usually once a week as well and my wife takes him out for walks or to the park usually a few times a week. On the weekends I try and socialise him with his cousin's, etc but being the first of our friends to have kids we don't know many others who have kids. I worry that he should be out playing with other kids at this age and for my wife's own sanity socialising with other mums. My wife gets anxiety about driving so does not have her license which can be limiting (she does ok with public transport but still it isn't perfect) and I think she has some social anxiety which might stop her from going to playgroup. Anyway, trying to work out if it is something I should push or if I'm just overreacting because I'm at work all day and can't control the situation (I have my own anxieties and not being in control is one of them.) EDIT: Thanks everyone, you've put my mind a little more at ease. Socialising is important and he does have playdates. Just I was worried that it wasn't an every day thing and though that he HAD to be in a playgroup. But from the comments things are going well. I think I just stress because I'm at work all day and its all out of my control. He is having a playdate today actually :)
0non-cybersec
Reddit
Cuckolding, what's the appeal?. I've ran across videos and stories about cuckolding and have always wondered what the appeal was. Can those of you into it explain this fetish to me? Also I'm not judging anyone for their fetishes, I just like learning about them.
0non-cybersec
Reddit
People who are still backing the Xbox One over PS4, what are your reasons?. Please remember to follow reddiquette and don't downvote this just because you disagree. I'm very interested in hearing the other side of the argument since E3 is now over. One thing I keep hearing: DRM will make each game become cheap very quickly. Because, like Steam, the devs/publishers are getting a cut from every copy sold. Also, that used games hurt the devs because of reselling and what not. I'm thinking that Microsoft would have already said this to defend their decision if it was true. Thoughts? Personally, I'm leaning on getting a PS4. I just want to hear the other side speak their mind before I drop that much money on a console. EDIT: Spelling is hard. EDIT 2: As a current Xbox-er, you guys really got me thinking again. I really don't care about DRM when it comes down to it. I rarely buy used games and I'm always connected :P. Shitttttttttt someone help me make up my mind. **EDIT 3: I would also like to hear your guys' input on the dedicated servers. Is this a big deal?**
0non-cybersec
Reddit
Git chmod problem: Checkout screws exec bit. <p>Under Ubuntu and Debian the last committed files are getting the execution bit set, when I try a checkout afterwards. It's quite strange and driving me nuts:</p> <pre><code>$ ls -l file -rw-r--r-- ... file # on branch master: $ git commit -m 'mode is 644' file [master 0123456] mode is 644 1 files changed, 1 insertions(+), 1 deletions(-) # All ok $ git checkout dev-branch Switched to branch 'dev-branch' # Seemingly all ok, but file now has the exec bit set $ git merge master Updating 6543210..0123456 error: Your local changes to 'file' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge. # Oops... $ ls -l file -rwxr-xr-x ... file </code></pre> <p>Has anyone an idea, when and why the execution bit slips in? <code>core.filemode</code> is set to <code>true</code>.</p> <p>I have the file open in vim during the branch switching, if that's important somehow.</p> <p><strong>Addendum 1:</strong> It's the checkout, where the permissions are screwed up. I can play the game on and on:</p> <pre><code>$ git br * master dev-branch $ git diff diff --git a/file b/file old mode 100644 new mode 100755 $ chmod 644 file $ git diff $ git checkout dev-branch $ git diff diff --git a/file b/file old mode 100644 new mode 100755 $ chmod 644 file $ git diff $ git checkout master $ git diff diff --git a/file b/file old mode 100644 new mode 100755 # ...and so on ad inf. </code></pre> <p><strong>Addendum 2:</strong> This happens, by the way, for every file in this repository, that I commit. After the successful commit I can't switch branches without the permission screw-up.</p>
0non-cybersec
Stackexchange
Reality is often disappointing.
0non-cybersec
Reddit
Ofcom wants to ban misleading broadband speed ads.
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
How can I detect exit intent on a mobile browser?. <p>I'm working on a solution to detect exit intent on safari mobile. (or any mobile browser for that matter)</p> <p>On desktop I can track curser movement and when the user breaks the plane of the webpage I can initiate a pop up. See <a href="http://www.quicksprout.com/about/" rel="noreferrer">http://www.quicksprout.com/about/</a> as an example. Move your curser up to the back button on the browser and as soon as your curser breaks the webpage a pop up will appear. How can I solve this in a mobile environment?</p> <p>Is there any way to detect when someone clicks the Safari address bar and before the favorites screen appears I can launch a pop up then?</p> <p>Thank you in advance for the help.</p>
0non-cybersec
Stackexchange
If I leave something charging after it's already charged, is it using the same, less, or no electricity?.
0non-cybersec
Reddit
Bash profile commands with multiple &quot;&#39;` issues. <p>Good day!</p> <p>I'm currently trying to get the following alias to work. 'git_fetch' and 'git_tree' are custom alias so dont worry about them.</p> <pre><code>alias git_workspace='osascript -e 'tell application "Terminal"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "n" using command down' -e "do script with command \"cd `pwd`;clear &amp;&amp; git_fetch\" in selected tab of the front window" -e 'end tell' &amp;&gt; /dev/null &amp;&amp; osascript -e 'tell application "Terminal"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "n" using command down' -e "do script with command \"cd `pwd`;clear &amp;&amp; git_tree\" in selected tab of the front window" -e 'end tell' &amp;&gt; /dev/null' </code></pre> <p>(I added linebreaks to increase readability)</p> <pre><code>alias git_workspace='osascript -e 'tell application "Terminal"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "n" using command down' -e "do script with command \"cd `pwd`;clear &amp;&amp; git_fetch\" in selected tab of the front window" -e 'end tell' &amp;&gt; /dev/null &amp;&amp; osascript -e 'tell application "Terminal"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "n" using command down' -e "do script with command \"cd `pwd`;clear &amp;&amp; git_tree\" in selected tab of the front window" -e 'end tell' &amp;&gt; /dev/null' </code></pre> <p>However i cant get this to work. Reloading the ~/.profile results in:</p> <pre><code>-bash: alias: application: not found -bash: alias: Terminal -e tell: not found -bash: alias: application: not found -bash: alias: System Events: not found -bash: alias: to: not found -bash: alias: tell: not found -bash: alias: process: not found -bash: alias: Terminal: not found -bash: alias: to: not found -bash: alias: keystroke: not found -bash: alias: n: not found -bash: alias: using: not found -bash: alias: command: not found -bash: alias: down -e "do script with command \"cd `pwd`;clear &amp;&amp; git_fetch\" in selected tab of the front window" -e end: not found -bash: alias: tell &amp;&gt; /dev/null &amp;&amp; osascript -e tell: not found -bash: alias: application: not found -bash: alias: Terminal -e tell: not found -bash: alias: application: not found -bash: alias: System Events: not found -bash: alias: to: not found -bash: alias: tell: not found -bash: alias: process: not found -bash: alias: Terminal: not found -bash: alias: to: not found -bash: alias: keystroke: not found -bash: alias: n: not found -bash: alias: using: not found -bash: alias: command: not found -bash: alias: down -e "do script with command \"cd `pwd`;clear &amp;&amp; git_tree\" in selected tab of the front window" -e end: not found -bash: alias: tell &amp;&gt; /dev/null: not found </code></pre> <p>Can someone assist me? :)</p> <p><strong>EDIT</strong>: I found the solution!</p> <p><code> alias git_workspace='osascript -e "tell application \"Terminal\"" -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"n\" using command down" -e "do script with command \"cd `pwd`;clear &amp;&amp; git_fetch\" in selected tab of the front window" -e "end tell" &amp;&gt; /dev/null &amp;&amp; osascript -e "tell application \"Terminal\"" -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"n\" using command down" -e "do script with command \"cd `pwd`;clear &amp;&amp; git_tree\" in selected tab of the front window" -e "end tell" &amp;&gt; /dev/null' </code></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
[Homemade] Friendsgiving leftovers.
0non-cybersec
Reddit
Becoming God (not sure if it falls under here also not done). When I was young people always told me that when I grew up I could be anything I wanted to if I tried hard enough. What if I wanted to be something I couldn’t control? What if I wanted to be God? Well that saying bore into my head like a drill. So my entire life I was determined to become God or at least a god among men. I wanted all of God’s powers I wanted to create whatever I wanted when I wanted whenever I wanted. So I did everything I could. I went to school and finished at the top of my grade. I even went to college at the age of 13. I graduated when I was 15. I wanted people to know my name so that when they were on their knees worshipping me they knew exactly who I was and what I could do. When I was younger I had no friends. I didn’t have the time. I was too determined in my life goals to think about friends or family. All the popular kids thought I was a geek or a bookworm. I was really neither I just had no time to become one of the “cool kids” as it were. But like any great person or God needs a right hand man. Mine was a bulldog named Meaty. Wherever I went he was not far behind, the only times that he was the furthest away from me was when I was in class where they did not allow dogs. When I needed a break from my studies and such Meaty and I would do the normal things that a child would do with man’s best friend. We would go to the park and play fetch, even though it took Meaty a bit longer to get the ball because of his short legs. Yet I do think he was always determined to do better than most dogs. In some way he must have known what I was out to accomplish because he was determined to be better than any other dog in the world, past, present, and future. Yet like all good things it had an unfortunate ending. One day Meaty and I were walking down one of the many roads we have traveled when Meaty spotted a cat across the street and was hit by a car he died instantly. With that horrible ordeal I knew that I HAD to become God. I wanted to bring Meaty back as soon as I possibly could. During my lifetime I studied all aspects of religion, from Catholicism to Islam. My reasons for this were quite simple I wanted to become more than all of their Gods combined. I needed to know what I was up against. I learned all sorts of things including rituals, sacrifices, and prayers. What I was most fond of all the religions was Opeah, which is a variation of Voodoo. The idea of bringing a person back from the dead intrigued me. Though it was mistaken a lot as zombie the correct spelling was zombii. Also in a lot of cases of being zombified most were still alive. It was just a variety of herbs and other things that one consumed (mostly without the person knowing) that made the person a zombii. Now for me to become God there were a few things I needed to do. One of the things was achieving immortality. Not a very easy feat since at that point in time no one had succeeded or even knew how to do so. There were of course rumors about how one could do it but they were only rumors. There were rumors of things such as the Fountain of Youth and the Holy Grail. Unfortunately none of them are true just false hope. I searched all over the world and beyond for them yet I found nothing but dead ends and wild goose chases. At one point I thought I was so close to finding immortality once it felt like I tasted just a drop of its power. I found this ritual in Necromancy that that once performed by the caster they would be able to create/bring things back from the dead and become a god among men. Of course I was very tempted by the second part. When I made the proper circle for the ritual it required a sacrifice of great importance in one’s life. This was quite difficult for me to do since the only thing I truly cared for died a long time ago. So I did the next best thing to it. I took my dead mother’s necklace she had gotten me when I graduated college. I placed the necklace in middle of the circle and started reciting the words needed for the process. I must have not said the words correctly at first because nothing happened. The necklace was still there I felt no different. So I went back to reading over the ritual and couldn’t see what I had done wrong. I kept trying with the same end result: nothing. I kept trying I wasn’t going to give up so easily. This was the closest I have come to getting what I wanted, no what I needed. Failure was not an option I wasn’t just doing this for me I was also doing it for Meaty. I missed him so much, I needed him back. I kept on thinking about Meaty while I took what seemed like years to perfect the ritual but it was only a few weeks. Or so I thought. I became very frustrated and agitated that I had not gotten the ritual right. I was always able to complete something long before anyone else. After not trying for a couple of days in an attempt to clear my head I took one of the long walks I use to with Meaty where we would be lost to the world for hours. It felt like Meaty was right beside me like he always was even though it had been years since he was. I went back to my home and after much thought I decided that this was going to be my last attempt at this ritual. I drew the circle again but there was something different. When I put the last marking on the circle there was a quick flash. It was something like a lightning bolt. I wasn’t too sure if it was my mind playing tricks on me since I wanted this to work so badly. I placed the necklace my mother gave me in the middle of the circle again and started reciting the words perfectly word for word. I didn’t even need the book with the words. As I got halfway through the words all the windows in the room flew open and it seemed like a tornado was forming in the circle and nowhere else. I couldn’t feel any kind of wind which seemed a bit strange to me since there was a tornado not five feet away from me in middle of my study inside my home. Even though this was quite amazing I didn’t stop saying the words. I kept going I was so close to what I have dreamt of ever since my parents told me that phrase that changed my life forever. As I got closer to the end of the ritual I suddenly felt a tug or a push towards the center of the circle, more importantly the tornado. Out of natural reaction I tried pulling away from it. My basic instinct was not to go into this tornado. I was scared that this ritual could very well be a trick that this person or persons who created it were playing a sick joke on the people who stumble onto it. With every second I was getting pulled into the tornado. I feared that this was the end to my story. I feared that I wasn’t going to be able to become what I wanted to be. I didn’t want to fail Meaty, to not be able to see him one more time. Out of reaction I stuck my hands out to protect myself, but in doing so my hands went into the tornado. I was pulled in instantly. I was in the tornado flying around in circles no more than five feet off of the floor. I tried yelling out for help but it was pointless for two reasons. The first was there was no one else at my home to help me. The second was that the wind was going so fast that there was no oxygen for me to breathe or yell for that matter. I don’t know why but I had the sudden urge to look up, something in the back of my head was telling me the answers to all of my questions was above me right now. When I looked up I had to blink and pinch myself to make sure I was still awake. What was above me was not my ceiling but outer space. I tried gasping in excitement but it was futile since I was still spinning around in this roller coaster of nature. As I watched the stars and planets I noticed that something was strange about them. Then it hit me like a sack of rocks. They were stars and planets I had never seen before. I knew it shouldn’t have been a strange feeling since we only can see a small percentage of the known universe. I was still staring at the stars when I noticed movement up there. Straining my eyes to see exactly what had moved and caught my eye in the first place I saw the movement again. This thing looked like a comet or a meteor flying around. It was so fast it was hard to keep up with its movements. After losing it a few times I found it once again but this time it seemed different. It was getting bigger and moving a lot slower than before. This thing whatever it was getting closer to me. A fear came over me that I never felt before. I tried moving again but it was no use I was stuck in this tornado and whatever that thing was. The light it was emitting was so blinding that tears started swelling up making it hard to keep following this thing. What seemed like hours of staring at it and being stuck in the tornado I was ready to give up when I heard a voice inside my mind. This voice was so loud I put my hands over my ears in a failed attempt to muffle it. The voice said this to me… “What you are looking for is not an easy task. You will be faced with many obstacles and many choices. The wrong choice and you will fail. There is no second chance. Once you start on this path you must follow it to the bitter end. You must prove to yourself that you are ready and that you want this with all of your being.” I tried replying out loud but I forgot I was still in the tornado so nothing came out. So I thought to myself if this voice could speak to me within my mind maybe I could do the same. I replied to the voice that seemed to have no gender or accent at all with this… “I will not give up. I want this more than my own life. I will give up everything to become all powerful, all knowing, and immortal.” As I waited for a response from the voice I had forgotten about the comet looking object hurtling straight towards me. As I looked up for it I was just in time to watch it crash into me. I prepared myself for death even though I was not willing to die now or five days from now or fifty years from now. When I opened my eyes everything was back to normal. I was on my knees in middle of the circle. There wasn’t a tornado spinning me around the room nor was there a gaping hole in my ceiling that peered into the outer space and the universe. Even the voice had disappeared from my mind. I was alone once again. I was stuck with a racing mind and a strange feeling deep within myself. The thoughts racing through my head were these: What just happened to me? Did I just hear God’s voice? Am I immortal now? How do I find out if I am or not? If I were to do the ritual again would the same thing happen again? Was I dreaming after weeks without getting much sleep? Have I gone insane? As I was gaining my composure I heard something that I haven’t heard in a very long time. At first I thought it was my mind playing tricks on me. Maybe the experience I just had still had me a bit shaken from it. Then I heard it again, this time a lot closer. I looked all around me yet I still couldn’t find the source to it. So I got up and went out into the hallway and listened very closely. Just as I was about to give up I heard it again. It seemed to me that it was coming from outside. I grabbed my coat and headed outside. When I opened the door I heard the sound right on top of me when I got knocked down. To my utter surprise and joy I was being licked on the face by Meaty! He was back, and he had not forgotten me either. It seemed like nothing bad had ever happened to him. His stub of a tail was moving a mile a minute. I couldn’t stop laughing and smiling as I just let Meaty lick my face for what seemed like all the years he was gone. I finally had my best and only friend back. As I got up from where Meaty had knocked me down I realized this was the first time in a very long time that I was happy. I was not one to get attached to anything or anyone because when I became God there were a lot of things that I was going to create and make a world the way I want and with a human race created in my image, but it was Meaty. This was my dog that had died years ago by a car hitting him when he was trying to catch a cat that was on the other side of the road. Meaty was at my feet while I was deep in thought. Trying to figure out a way to test if I was immortal or not. Lucky for me I had a house that was not far away from a cliff that dropped down two hundred feet down to a wet and jagged rock grave. Just then while I pondered this and was getting up to get a drink of whiskey I felt this electric charge inside of me that left me gasping for a breath. As I was trying to catch my breath I saw that Meaty was staring at me with his head tilted to the side. It seemed that Meaty saw a change in me besides me getting older and him staying the same age as he did the day that he was taken from me. Just as I was about to tell him I was fine that the feeling had past the same feeling came back just as strong. I didn’t understand it. What was happening to me? Was this some sort of side effect of the ritual and all that I had seen? Whatever the reason for it, it seemed like forever that I was having trouble breathing. As I realized this I also realized that my heart had stopped pounding out of my chest, in fact it had stopped beating all together. I pressed two fingers to my jugular to check my pulse. There was not a single beat. Had I just died? Did I just become immortal or a ghost of my former self? I did the only thing that would help me figure this out. I reached for the phone I grasped it in my hand. Good at least I can touch things. As I was dialing my only living relative’s number I went up to the bathroom and looked into the mirror and saw myself looking back at me. Yet there was something different I just couldn’t place it just yet. The phone was ringing in my ear. After the fourth ring I was about to hang up when I heard my Uncle Shawn’s voice on the other end. “Hello...? You do know its three a.m. right?” Uncle Shawn said with a half asleep voice. “Oh I’m sorry Uncle Shawn I didn’t look at the time. I have been working all night, I must have lost track of time.” I said feeling a little bit like a jackass. “Nahhhh its fine. What’s up? Is something wrong? You sound like you are out of breath.” He said with a more awake and concerned voice. “It’s nothing really I just climbed up the stairs a bit too quickly. I was just calling because I haven’t really had time to talk to you. How have you been Uncle Shawn?” I said trying to take deep breathes. Just then I realized what was different about me. I leaned closer to the mirror and saw something that certainly was something I would have noticed before. My eyes seemed to have this glowing effect to them. It was a bright blue and I literally mean glowing. There was a pulse to the glow. It was like that was my new heart beat. While I was staring at this new feature about myself I heard Uncle Shawn’s voice in my sink. I must have dropped my phone in surprise. “Hey Jack, you ok buddy? Jack you still there? Hello?” Uncle Shawn said with a more growing concern. I picked up the phone and put it to my ear “Hey Uncle Shawn I have to go I got a big day ahead of me tomorrow and I should get some sleep otherwise I will be like a dead man walking.” I said as quickly as I could. “What happened to not talking to me for a while? Jack, is everything ok over there? Did you finally get a good girl to settle you down from you crazy stunts?” He said as serious as he could and with Uncle Shawn that’s not very much. He sometimes reminds of George Carlin. Uncle Shawn always seemed to have a comical response to everything you said. He even did so when he found out his sister had died and had gone down to the morgue to I.D. the body. He simply said “Shall we put her on ice and cut her open for some organs or can I bring her to the funeral home now?” It seemed a bit harsh at the time but he was only doing what he did best which was making everyone smile even in the darkest of days. “No Uncle Shawn, I haven’t found a woman that could handle my charm.” I said trying to match his jokes. “Oh…Well keep at it Jack. Like they say ‘there are a lot of fish in the sea. I’ll leave you to it then, get some rest Jack. You sound like you just went twelve rounds with Mike Tyson.” The concern returning in his voice seemed a bit more concerning than the usual Uncle Shawn. “I will Uncle Shawn; I’ll find myself my lucky lady one of these days. Don’t worry either I’m fine like I said I been working all night and I just ran up the stairs. I promise I’m fine, good night Uncle Shawn I’ll talk to you soon when I get the chance.” After a short pause he said good bye and hung up the phone exactly when I did. So I guess I wasn’t a ghost after all, unless Uncle Shawn could talk to the dead. Which I doubted but with what I just went through I wasn’t so sure about much right then. I place the phone on its charger in the master bedroom. I sat down on my bed for the first time in what seemed like years. I was deep in thought when I felt Meaty lick my hands. “Oh Meaty, I think I am very close to my goal. What do you think?” I asked him without really looking for an answer. So it’s safe to say when what occurred next caught me completely off guard. “Whatever you do Jack, don’t give up. You were able to gain immortality and bring me back to life.” Meaty said to me using some kind of telepathic power he must have gained when I brought him back. I just stared at him for a few moments unable to conjure up a single word. “Hey don’t worry this is as much of a surprise to you as it is to me. I mean come on I can talk to you as if I was always able to.” He said with his tongue sticking out of his mouth with a drop of saliva forming at the tip. “Sorry, yeah this is quite surprising. I wonder if it has anything to do with you being dead and suddenly alive once again. Whatever it is, I must say this is quite amazing.” I was also wondering if he could talk to me with telepathy maybe I could do the same so I wouldn’t look insane having a full conversation with my bulldog. “By the way, yes you can. I can read your mind, pretty much everything you think I know right when it goes through your head. I would assume that we must have some connection with each other” He said with what seemed like a smile or a smirk. “Well this will be fun.” I said with my mind. My head felt like I had been spinning in place for the past hour. Within just a few hours or minutes I’m not sure which one would be correct. I just know that I was in a tornado in my house, I saw outer space through my ceiling, watched what looked like a comet crash into me, I brought back my dead dog to life, and I gained immortality. What others only can dream of I had just done. I think it was safe to say I needed some much needed rest. So I put my head on my pillow and as soon as I did I was fast asleep with Meaty at the foot of the bed like he always did before. At least his character didn’t change at all. When I woke up I looked at the clock and saw that I slept for two days and twelve hours. As I sat up in bed my head felt clear. My body felt like it did when I was six years old. I checked to see if I still had no pulse. No pulse at all. That means I really did reach one of my goals. I looked down to the foot of my bed to find Meaty laying on his back snoring so loudly I think he shook the windows. I rubbed his belly and got up to work on the next task I needed to accomplish. I went into the kitchen and made a fresh pot of coffee. While I waited for the coffee to brew I went outside. When I stepped outside I felt like I haven’t felt the warmth of the sun in years. I had to cover my eyes for a few minutes to let them adjust to the light. When they finally did I couldn’t believe what I saw. My yard didn’t look like anything it did before the other day’s events. It was the middle of winter. The last time I went outside it was early spring. I looked around and everything else seemed fine except for me missing nearly a year. Had I really worked on that ritual for that long? How could I possibly lose so much time without any knowledge of it? My mind was racing with thoughts. It was hard to understand all of this. I knew what I was in for but it was completely different to really experience it. The intensity and raw power that I felt and even what I feel right now made me feel like I was one step closer to becoming God. I was in such a deep thought that I didn’t realize how long I was outside for. Had I been out for only a minute or maybe a few hours? I couldn’t really tell by the sun because it had gone behind a large amount of clouds. Just as I was about to go inside I realized that I wasn’t cold at all. I was only wearing a T- Shirt and jeans, yet I had not even gotten the littlest amount of cold. I tried to see my own breath but nothing was visible for me to see it. Was it possible that I didn’t really draw breath but it was just me doing out of habit? It would make sense seeing as I didn’t have a pulse as well. Yet why was I feeling all the emotions I felt before? That question to this day lurks in my mind. Snapping out of my trance I went down the drive way to get the mail and saw that it was full with envelopes. “Wow, I really was gone for a while.” I said out loud to myself. I grabbed all of the mail with both arms and headed back inside. After placing the bundle of mail on the kitchen table I found Meaty eating out of his bowl that I never got rid of. “Meaty, since the ritual time has sped up and we are in winter not spring like it was the last time I checked.” I said with some excitement. Meaty perk his head up and look at me. “Huh, that’s odd. So you are a year older than what you were before the tornado?” Meaty asked me while tilting his head to the side. “I think so I went to check the mail and the mailbox was full. So it’s a pretty good assumption that has been over a year. I wasn’t sure of the date when I started working on the ritual so I can’t be exact on how long it has been.” I said to Meaty and patted the top of his head. “So do you think you have other powers besides bringing back the dead and immortality?” Meaty asked while licking his lips. “It’s quite possible; the book was vague on exactly what would happen. I wouldn’t even know how to start checking. This is very tiring; I think I will go out for a drink. You coming Meaty, or are you staying here?” I asked while getting my coat on. “You go ahead I’m going to see if my bones are still in the backyard.” He wagged his tail and went out the back door. As I pulled up to the only bar I go to I had the strange feeling I was being watched. I looked around and saw no one. I got out of the car and was heading into the alley since I don’t like everyone staring at me every time I walk into the bar when I felt cold steel being prodded into my back. “What ya feeling right now is a 9mm pointed right at your spinal column friend. Now you must know the drill. Gimme your keys, wallet, and any kind of jewelry you got on.” A man with a hoarse and southern accent said to me. “Easy now pal. Be careful where you point that thing.” I said mocking his voice. I slowly raised my hands and turned around. “I’m going to reach into my back pocket and get my wallet out for you. Try not shooting me.” I reached into my pocket and grabbed my wallet and slowly pulled it out. “Come on man I don’t have all day.” The mugger said with shaky hands. He reached out for my wallet. Taking it from my hands he smiled a toothless smile. “Thanks pal, but you see since you turned around you saw my face. This means you are a loose end, and well I just can’t have you picking me out from a line-up. So I’ll see you in hell.” With that he cocked the gun, aimed it at my head and pulled the trigger. Now what happened next must have shocked the mugger. The bullet hit me right in the middle of the forehead, yet I didn’t fall over. I just stood there and grinned at him. “What…the…fuck?” The mugger looked at me with his jaw dropped. He pointed the gun at my chest this time and fired until the clip was empty. To his amazement I was still standing. “You should be dead. No man alive can take all of those rounds and still be standing.” He took a step back. “Oh no you don’t you still have my wallet and I want a drink. Give it back.” I held out my hand for my wallet. The mugger placed the wallet in my hand and started to turn around and run. I grabbed him by the collar of his coat. “Now where do you think you are going? I can’t have you go around telling your friends what you just saw. I’m not ready for the world to know who I am just yet. How did you put it? ‘A loose end’” I spun the mugger around to face me. “No god please no. I swear I won’t tell anyone I promise.” The mugger begged me. I looked down and saw that the mugger had pissed his pants. I grimaced and took his chin in one hand and the top of his head in the other and snapped his neck. I then picked up his lifeless body and tossed it into the nearby dumpster. “Seems like a good place for you.” I said as I brushed myself off. I took a look around to see if anyone had seen what just happened. Not seeing anyone I went into the bar and found the most dimly light table and ordered a Guinness and a shot of rum. After a few hours of listening to people talk with slurs and splashing their drinks whenever they tried telling whoever would listen to them about stories that made no sense I started to get bored with them. I ordered one more shot before I left. When the waitress came over with my drink she brought over two shots. “Excuse me miss, I didn’t order two shots.” I said sliding the second one back to her. “I know but that man at the end of the bar did.” The waitress pointed over to the man. I looked around the waitress to see a man in a suit with a top hat and cane puffing away on a pipe. Just as I looked he looked back at me and tipped his hat. I raised the drink he ordered for me and swallowed it down. As I was standing up to go the man suddenly was sitting at my table. “Going so soon? Pity I thought we could have a chat first.” The man looked up at me through a cloud of smoke. “Aye, well I have a lot of work to do and I spent enough time wasting it here. Thank you for the drink though.” I put on my coat and headed to the back entrance. As I got outside there was the man again but this time he was leaning against my car. “Please, just a few minutes of your time is all I ask for. Let me introduce myself.” He took off his hat and bowed slightly. “My name is Luc, with a C.” He then put his hat back on and smiled an untrustworthy smile. “Alright fine… Wait, how did you do that? I didn’t see you leave the bar before me?” I asked him wearily. I didn’t know then what I do now otherwise I would have never gave him the time of day. He just looked at me and smirked. “There is no need to know that just yet my dear boy. Now where I’m from I heard a few rumors about someone messing around with Necromancy. Now you wouldn’t have any idea who that could be?” I nearly swallowed my own tongue when he said Necromancy. “Well since you are already asking me and seeing as how not many people know about Necromancy or how to use it. I think it’s safe to say you already know who it is that you are asking for… Am I right?” I said with a little more of a shaky voice then I want to admit. “Oh good you are a smart one. I like the smart ones it makes for some good entertainment. Now what I am here for is quite simple. I would like to make a wager with you.” This time he smiled like the Cheshire Cat. To me he seemed more of something out of a comic book that I use to read when I was younger and needed a break from my studies. “I’m not a gambling man but since you seem to have gone through a lot of trouble just to talk to me I will hear you out. What is this wager you speak of?” I asked growing a bit impatient with him. “Oh it’s something I’m sure you would like. I want to give you what you are seeking for. You know, the becoming God.” This time I thought I saw his mouth reach all the way round his head with the grin he was bearing after he said God. Of course I was instantly interested with what he had to say now. “The wager is quite simple really; I’ll give you the power but only a small amount. You will have this urge though. This urge will be almost impossible to resist to any mere mortal man. The bet is if you can stop yourself from harming others, whether it’s an assault or killing them. If you can do so I will give you all the means to accomplish your life goals, I will make you a God.” All the while he was saying this he was rubbing his gloved hands together. Smirking more and more with each word he said. “And if I lose this bet, if I can’t stop myself what happens? What will I lose if I agree to this wager you have?” I asked nervously. “Oh nothing special… Just all the powers you have gotten. Whether I gave them to you or not, it does not matter. I will take away Meaty; I will take away your immortality. I will take your sanity as well. You will become a broken shell of a man. No one will know you or who you were.” This time he didn’t show a single sign of amusement. It seemed like if he were to have all the joy in the world he wouldn’t smile even a little bit. “So the wager is if I harm someone, I lose everything and if I don’t I gain everything. Is that the jest of it?” Looking down I noticed that my hands were sweaty. How did this man know what I was trying to accomplish? The only soul I ever told what my plans were was Meaty. Meaty wasn’t able to ‘talk’ until I brought him back. No one else could possibly know my goals. I couldn’t really pass this up even though every fiber in my body told me to. That this man was not to be trusted, so I asked him a simple question. “Exactly who are you and how did you know all of this? I haven’t told a soul about this.” I don’t know why but there was this rage building up inside of me. “I’m glad you asked this. When you’re beloved Meaty died there really is no Heaven or Hell. The souls of men, women, anything with a beating heart doesn’t simply go to a place, they stay around. Like ghosts or spirits all those stories you ever heard about hauntings they all true. There are people all around us right now. Some of them not really knowing that they are dead; however there are a few the tortured souls that know of themselves dying.” He took off one of his gloves and held out his hand.
0non-cybersec
Reddit
sed returns the following error sed: -e expression #1, char 101: unknown option to `s&#39;. <p>I'm writing a script to replace a label <code>&lt;p&gt;</code> with a path in some text files (<code>*.prop</code>). However , when I run it I get the following error:</p> <pre><code>sed: -e expression #1, char 101: unknown option to `s' </code></pre> <p>My code is the following:</p> <pre><code>sed -i -- "s/&lt;q&gt;$(echo $destpath | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&amp;/\\\&amp;/g')/\ResultsTesting/\/g" *.prop </code></pre> <p>and if I print the echo of my code:</p> <pre><code>sed -i -- \ s/&lt;q&gt;\/home-students\/rmorales\/testAPK\/air.air.air.com.tabc.gsn-2014_5_11-dex2jar\/ResultsTesting\//g \ myFile.prop </code></pre> <p>Can someone help me please?</p>
0non-cybersec
Stackexchange
How to disable Private Browsing in Safari on a 10.8.3 without Xcode. <p>I am trying to delete Safari Private Browsing on a 10.8.3. It requires the Xcode App that is only available for 10.9.4 or later. Is there another App I can use or some other way around this that will allow me to disable the Private Browsing? Any help would be greatly appreciated!</p>
0non-cybersec
Stackexchange
Is the category of mixed Hodge modules bi-filtered?. <p>Let $X$ be a smooth complex algebraic variety and let $MHM(X)$ be the category of mixed Hodge modules on $X$, as defined in <em>(Saito, "Mixed Hodge Modules", 1990)</em>, <em>(Peters-Steenbrink, "Mixed Hodge Structures", 2008)</em> or <em>(Saito, "Mixed Hodge Modules and Applications", 1990)</em>, among others.</p> <p>In all these references, it is said that a mixed Hodge module $M$ comes with an increasing filtration $W$, called the weight filtration, such that $Gr_W^p\,M$ is semi-simple for $p \in \mathbb{Z}$. However, no explicit mention is done to a <em>Hodge-type</em> filtration $F$ on $M$.</p> <p>Nevertheless, in Saito's Mixed Hodge Modules and Applications, it is said that $MHM(X)$ is a full subcategory of the category of $(M, F, K, W)$, where $(M, F)$ is a well filtered $D_X$-module, $K$ is a rational perverse sheaf and $W$ is a pair of filtrations in $K$ and $M$ that agree under the comparison isomorphism. Therefore, it seem like $F$ could define a filtration on the mixed Hodge module $M$, maybe copied into $K \otimes \mathbb{C}$ via the comparison isomorphism. Indeed, taking $X=\left\{\star\right\}$, this $F$ should gives us the Hodge filtration on the mixed Hodge structure defined by a mixed Hodge module over $\left\{\star\right\}$. Thus, my question is:</p> <p><strong><em>Is $MHM(X)$ naturally bi-filtered in the way that, for any $M \in Obj(MHM(X))$, there exists a weight filtration $W$ and a Hodge filtration $F$ of $M$ such that the "Hodge-like" pieces $$ M_{p,q}:= Gr_F^p Gr_W^{p+q} M $$ are (simple?) mixed Hodge modules on $X$?</em></strong></p> <p>If the main question is true (or some variation), I have other questions:</p> <ul> <li>There exists a bi-shifting of $W$ and $F$? That is, given a mixed Hodge module $M$ on $X$ and $\alpha, \beta \in \mathbb{Z}$, is there another mixed Hodge module $M(\alpha, \beta)$ such that $$ (M(\alpha, \beta))_{p,q} = M_{p+\alpha, q+\beta} $$ for all $p,q \in \mathbb{Z}$?</li> <li>If that bi-shifting exists, is it natural in the sense that $$ f_*(M(p,q))=(f_*M)(p,q) $$ for any morphism of algebraic varieties $f:X \to Y$?</li> </ul> <p>Thank you so much in advance!</p>
0non-cybersec
Stackexchange
Command or Shell task hangs when using ssh to create a tunnel. <p>I am using Ansible to push configuration. I have a task inside a playbook that I want to start an ssh tunnel in the background for MongoDB. The task command that i'm using is </p> <pre><code>- name: Start tunnel service shell: ssh -f -N -L 27018:localhost:27017 mongo@remote-server </code></pre> <p>But no matter what I do I cannot get ansible to continue. Instead it hangs or acts like it is waiting on something to return a response. If I run this command in the shell like normal it doesn't have any problems and I can connect to the remote mongo instance. </p> <p>At first I thought because I was setting up a new server that ssh's known_hosts were waiting for a user to respond yes/no before moving on. In this case I tried two options. First I tried adding the server's fingerprint to the known_hosts file. After running from the shell it didn't asked for a known_hosts entry, but ansible also is still hanging. I also tried the option of </p> <pre><code>ssh -o StrictHostKeyChecking=no -f -N -L 27018:localhost:27017 mongo@remote-server </code></pre> <p>But this option is also producing the same problem with ansible hanging.</p> <p>I have tried switching between ansible's command and shell module without any change to the problem. My most recent experiment was to try nohup before the command, but this isn't working either.</p> <pre><code>nohup ssh -f -N -L 27018:localhost:27017 mongo@remote-server </code></pre> <p>Also trying to get creative thinking that if a different process was able to run the command that afterwards it would send a response back to ansible, I tried wrapping it as an Upstart task. I placed the shell command inside a <code>/etc/tunnel.sh</code> file and also put the upstart script in <code>/etc/init/tunnel.conf</code>. But this also doesn't work and seems to have trouble actually starting the script. If I run <code>sudo service tunnel start</code> it will start but has trouble stopping. Though running this through ansible as a command doesn't do anything and just sits there and hangs like all the other experiments.</p> <pre><code>- name: Start tunnel service command service tunnel start </code></pre>
0non-cybersec
Stackexchange
Verifying Algebraic Formulas. <p>Say you are given an arbitrary Algebraic Formula:</p> <p>$$G(u_1,u_2,u_3...u_n) = 0$$</p> <p>Where the expression $G$ is allowed to utilize:</p> <ol> <li>$+, - , *, /$ however desired</li> <li>$()$ however desired</li> <li>The operator $P(a_1,a_2,a_3... a_r, U, V)$</li> </ol> <p>where $P$ specifies a polynomial over its inputs and $U$ denotes the polynomial itself, and V denotes whether polynomial is being applied or its inverse:</p> <p>An example:</p> <p>$P(x,G(x),1) = G(x)$ for any polynomial $G(x)$</p> <p>$P(x,G(x),0) = G^{-1}(x)$ for any polynomial $G(x)$</p> <p>Thus for example we can write the following:</p> <p>$$P(3,x^2-x+7,-1) - \frac{1 + 4i}{2} =0$$</p> <p>Verifying this basically involves solving the problem:</p> <p>$x^2 - x + 7 = 3$ for x and seeing if $\frac{1 + 4i}{2}$ is a valid solution.</p> <p>However as is well known (check this link if you want more <a href="http://www.math.uiuc.edu/~berndt/articles/radicals.pdf" rel="nofollow">http://www.math.uiuc.edu/~berndt/articles/radicals.pdf</a>) </p> <p>Some radical identities can become very complex and unwieldy to check yet are true. Additionally the P notation enables for identities between inverse functions that cannot be represented by radicals to exist. Brute force taking powers and polynomials could easily produce incomputable numbers of terms. </p> <p>Can this problem be solved in polynomial time with respect to input size?</p>
0non-cybersec
Stackexchange
Proof Verification: Show that $R = I + J$, where $R$ is a PID and $I,J$ are ideals. <p>The following question came up on a recent exam that I took.</p> <p>Let $R$ be a PID. Let $I$ and $J$ be ideals in $R$ such that $\operatorname {Hom}_{R}(R/I, R/J) = 0$; that is, there is only the zero map between the quotient rings. Prove that $R = I + J$.</p> <p><strong>Proposed Proof:</strong></p> <p>Consider the maps, \begin{eqnarray} \pi_{0} : R/I \longrightarrow R/J, \quad &amp; \pi_{0}(r + I) = 0 + J, \\ \pi_{1} : R \longrightarrow R/I, \quad &amp; \pi_{1}(r) = r + I. \end{eqnarray} Composing the maps, we have that,</p> <p>\begin{equation} \pi_{2} = \pi_{0} \circ \pi_{1} : R \longrightarrow R/J, \quad \pi_{2}(r) = 0 + J. \end{equation}</p> <p>But this means that the projection of element in $R$ is the ideal $J$ in $R$. By the Lattice Isomorphism Theorem, we must have that $R = J$. Since $J$ is contained in $I + J$, we then must have that $R = I + J$.</p> <p>I am not so sure about the proposed proof. For example, I have not used the fact the $R$ is a PID. Please comment if you think the proof is wrong. Also, please do share the correct proof to this question.</p> <p>This quesion was for 10 points, so I am trying to see if I have at least some parts correct.</p>
0non-cybersec
Stackexchange
Difference between $\vec{a} $ and $||\vec{a}||$. <p>What exactly is the difference between $\vec{a} $ and $\lVert\vec{a}\rVert$ ?</p> <p>I know $\lVert\vec{a}\rVert$ is the magnitude of a vector $\vec{a} $ , but what is $\vec{a} $ then exactly? I know it's a vector, but how can you represent it? Let's say $\vec{a} $ is a vector in $\mathbb{R}^2$, if you draw $\vec{a} $ in $\mathbb{R}^2$, don't you automatically draw $\lVert\vec{a}\rVert$ ?</p> <p>Also, what is the difference between $ \lVert\vec{a}\rVert \cdot \big\lVert\vec{b}\big\rVert $ and $\vec{a} \cdot \vec{b} $? To me it seems like multiplying the same, but I know it isn't. </p>
0non-cybersec
Stackexchange
Will application based on .NET FW 4.0 work on Windows Server 2012 R2?. <p>0 down vote favorite I'm a little bit confused about .NET framework versions and its compatibility with operating system. Please help.</p> <p>I plan to upgrade my application to .NET 4.x. My application must support a variety of operating systems: XP, Windows Server 2003, 2008 (and R2) , 2012 (and R2), Windows 7.x and Windows 8.x.</p> <p>I'd prefer to release one kit only - which means build the application with one specific .NET framework. The big question is which one?</p> <p>I know that .NET 4.0 supports from XP to Windows Server 2008 R2 but does not support WS 2012. I know that .NET 4.5.1 supports WS 2012 and R2.</p> <p>I'm wondering if what happens if I use my application with FW 4.0 and then try to install it on Windows Server 2012 R2: will it work (backward compatibility?) or not?</p> <p>Thank you</p>
0non-cybersec
Stackexchange
What's a dead giveaway that you're american?.
0non-cybersec
Reddit
Shake your phone. What do you see?.
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
Live view control for Canon EOS on your Android phone.
0non-cybersec
Reddit
My first Five Guys Adventure.
0non-cybersec
Reddit
command limits when pasting into tcsh (mac OS X). <p>I encountered a 1024 character limit problem when pasting commands into the terminal application (max OS X 10.5.8) running the TC shell (/bin/tcsh).</p> <p>This can consistently be reproduced by pasting the following commands into the terminal app:</p> <pre> echo 0 0 0 0 0 echo 1 1 1 1 1 echo 2 2 2 2 2 echo 3 3 3 3 3 echo 4 4 4 4 4 echo 5 5 5 5 5 echo 6 6 6 6 6 echo 7 7 7 7 7 echo 8 8 8 8 8 echo 9 9 9 9 9 echo 10 10 10 10 10 echo 11 11 11 11 11 echo 12 12 12 12 12 echo 13 13 13 13 13 echo 14 14 14 14 14 echo 15 15 15 15 15 echo 16 16 16 16 16 echo 17 17 17 17 17 echo 18 18 18 18 18 echo 19 19 19 19 19 echo 20 20 20 20 20 echo 21 21 21 21 21 echo 22 22 22 22 22 echo 23 23 23 23 23 echo 24 24 24 24 24 echo 25 25 25 25 25 </pre> <p>At first, it works as expected, but at some point it fails:</p> <pre> myself@mymac|~> echo 1 1 1 1 1 1 1 1 1 1 myself@mymac|~> echo 2 2 2 2 2 2 2 2 2 2 etc. etc. (good) myself@mymac|~> echo 21 21 21 21 21 21 21 21 21 21 myself@mymac|~> echo 22 22 22 echo 22 22 22 echo 23 23 22 22 22 echo 22 22 22 echo 23 23 echo 24 24 24 24 24 echo 25 25 25 25 25 (bad - gibberish) </pre> <p>So it gets confused after a while. In fact, I have 44 characters per line plus one for line breaks, and the problems happen on line 23 at character 34. This means, the problems happens after 45*22+34=1024 characters. That is pretty obviously a limit that is set somewhere... anybody knows how to expand it so that it can accept more characters and lines?</p> <p>I tried the same on a Linux machine with tcsh but I had no troubles. So I am pretty sure this can be tweaked somewhere.</p>
0non-cybersec
Stackexchange
/u/redditandfries takes /r/mapporn to the next level and makes a pixel art map of the US!.
0non-cybersec
Reddit
Did I tell you about.... Every time my mother tells my father something new. Mother: Did I tell you that I ran into your boss at the grocery? Dad: No. WHY DIDN'T YOU TELL ME? Mother: Did I tell you that so-and-so got engaged? Dad: No. Why DIDN'T you tell me? Gets her every time.
0non-cybersec
Reddit
Strawberries, All Ripe!, All Ripe!, 1877 [1024 x 787].
0non-cybersec
Reddit
ITAP of a Kingfisher in the Costa Rican rain.
0non-cybersec
Reddit
Think Bungie heard the community LOUD AND CLEAR about the Sleeper quest being easy and said take this.. They got enough crap about the sleeper quest ending up being super easy. So they said ya know what....Take this guys. Complain now. Congrats to Datto and his team and everyone evolved! (Discussion) (EDIT) Wow. Made front page. Pretty cool. Glad to see im not the only one who feels this way!
0non-cybersec
Reddit
spreading range of IPs to a list. <p>I have the following code, what I am trying to do is create a small function so a when an IP range (contains : in it) is inputted all range is appended to the list.</p> <pre><code>collected_ips = [] while True: query = input("IP:\t") if not query: break elif len(query.split('.'))==4: temp = query.split('.') #result1 = all([i.isdigit() for i in t]) #must be True if query.find(":")==-1: try: result2 = all([0&lt;=int(i)&lt;=255 for i in temp]) if result2: collected_ips.append(query) except ValueError: print("Please Fix Input") elif len(x.split(":"))==2: #function here #append to collected_ips else: print("Please Fix Input") else: print("Please Fix Input") </code></pre> <p>example of input:</p> <pre><code>123.123.30.20:50 </code></pre> <p>output: </p> <pre><code>['123.123.30.20,'123.123.30.21'...'123.123.30.50'] </code></pre> <p>example of input:</p> <pre><code>123.123.20:50.30 </code></pre> <p>output:</p> <pre><code>['123.123.20.30','123.123.21.30',...'123.123.50.30'] </code></pre>
0non-cybersec
Stackexchange
🅱et 🅱eutrality awareness..
0non-cybersec
Reddit
Babel 7 doesn&#39;t change CONST to VAR. <p>I have problem with Safari version &lt;= 9. Babel doesn't seem to replace const with var.</p> <p>I get this error in console: </p> <p><strong>Unexpected keyword 'const'. Const declarations are not supported in strict mode.</strong></p> <p>I tried using @babel/preset-stage-0 but babel removed it.</p> <p>This is my app configuration:</p> <p>.babelrc</p> <pre><code>{ "presets": [ "@babel/preset-env", "@babel/preset-react" ], "plugins": [ "@babel/plugin-transform-object-assign" ] } </code></pre> <p>webpack.config.js</p> <pre><code>const path = require("path"); const webpack = require("webpack"); const componentName = "contact-captain"; const publicFolderRelativePath = "../../../../public/js"; const ignorePlugin = new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/); module.exports = { // devtool: "source-map", output: { path: path.resolve(__dirname, publicFolderRelativePath), filename: `${componentName}.js` }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: "babel-loader" } } ] }, plugins: [ ignorePlugin ] }; </code></pre>
0non-cybersec
Stackexchange
Relations between different types of compactness. <p>From various articles in Wikipedia, I have seen some relations between several types of compactness.</p> <blockquote> <p>In general topological spaces, </p> <p><a href="http://en.wikipedia.org/wiki/Compact_space#Other_forms_of_compactness" rel="nofollow">Compact $\Longrightarrow$ Sequentially compact $\Longrightarrow$ countably compact $\Longrightarrow$ pseudocompact and weakly countably compact.</a></p> </blockquote> <p>I also saw that</p> <ol> <li><blockquote> <p>In general topological spaces, </p> <p>Compact $\Longrightarrow$ <a href="http://en.wikipedia.org/wiki/Axiom_of_countability" rel="nofollow">σ-compact $\Longrightarrow$ Lindelöf</a>.</p> </blockquote> <p>So I was wondering if we can place σ-compact and Lindelöf in the first chain of relations? If yes, what are their positions?</p></li> <li><blockquote> <p>In metric spaces, </p> <p><a href="http://en.wikipedia.org/wiki/Compact_space#Other_forms_of_compactness" rel="nofollow">Compact $\Longleftrightarrow$ Sequentially compact $\Longleftrightarrow$ countably compact $\Longleftrightarrow$ pseudocompact $\Longleftrightarrow$ Limit point compact.</a></p> </blockquote> <p>So I was wondering if we can place Limit point compact in the first chain of relations? If yes, what is its position?</p></li> </ol> <p>Thanks and regards!</p>
0non-cybersec
Stackexchange
Beautiful team goal from Portugal (vs Ireland) called offside..
0non-cybersec
Reddit
Easier way to solve a LES (only pen/paper, no calculator). <p>I want to solve the following Linear Equation System with <em>only</em> pen and paper;</p> <p><span class="math-container">$$ 470 = x_A - \frac{3}{10}x_B \tag{1} $$</span> <span class="math-container">$$ 940 = x_B - \frac{2}{10}x_A \tag{2} $$</span></p> <p>I attempt to solve for <span class="math-container">$x_A$</span> by inserting equation (2) into (1) and rewriting it, etc. I got something like;</p> <p><span class="math-container">$$ x_A=470 +\frac{3}{10}(940+\frac{2}{10}x_A) \Rightarrow \dots \Rightarrow x_A\frac{94}{100}=470+\frac{3}{10}940=470+\frac{2820}{10} $$</span></p> <p>Next I try to isolate <span class="math-container">$x_A$</span> and simplify the expression;</p> <p><span class="math-container">$$ \dots \Rightarrow x_A =\frac{100}{94}(470+\frac{2820}{10})=\frac{100}{94}(470+282)=\frac{100}{94}752 $$</span></p> <p>This is where I get stuck. Have I dug myself into a difficult hole when there is a better/more efficient approach to solving this LES? Or am I just missing a good method to solve <span class="math-container">$x_A=\frac{100}{94}\cdot752$</span> to get it to 800?</p> <p>Any insight into "how to think" here and how you solve it with just pen and paper is much appreciated.</p> <p>(Solution: <span class="math-container">$x_A=800$</span>, <span class="math-container">$x_B=1100$</span>)</p>
0non-cybersec
Stackexchange
Had a break through with a dog at my work. Feels good.. Theres a dog at my work that no one can touch. And for the first time in the year I've worked here, I pet him. When he arrives to be boarded the owners put him in the dog run and when they come back they get him as well. He would lunge snap and growl at anyone who came near. It seems silly to be so excited to just pet a dog. I dont know why all thw sudden he has let his guard down with me. But it makes me feel amazing.
0non-cybersec
Reddit
Troubles with OpenCV/import cv2 on Mac, have tried so many things, now new error. <p>Errors:</p> <ul> <li>pip3 install opencv-contrib-python</li> <li>import cv2</li> <li>Original Error: Symbol not found: ___addtf3</li> <li>Current Error: Symbol not found: __cg_jpeg_resync_to_restart</li> </ul> <p>Environment:</p> <ul> <li>opencv-contrib-python 4.1.2.30</li> <li>iMac, macOS Catalina 10.15.2</li> <li>Python 3.7.5</li> <li>pip --version: pip 19.3.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)</li> <li>Using Homebrew</li> </ul> <p>The 30 or so things that I've tried so far:</p> <pre><code>Error 1: File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: numpy.core.multiarray failed to import Try 1: import numpy.core.multiarray before import cv2 Error 2: File "/Users/mbennett/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py", line 142, in &lt;module&gt; from . import core File "/Users/mbennett/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 47, in &lt;module&gt; raise ImportError(msg) ... Original error was: dlopen(/Users/mbennett/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): Symbol not found: ___addtf3 Referenced from: /Users/mbennett/Library/Python/3.7/lib/python/site-packages/numpy/core/../.dylibs/libquadmath.0.dylib Expected in: /usr/lib/libSystem.B.dylib in /Users/mbennett/Library/Python/3.7/lib/python/site-packages/numpy/core/../.dylibs/libquadmath.0.dylib ... Importing the numpy c-extensions failed. - x Try uninstalling and reinstalling numpy. - If you have already done that, then: x 1. Check that you expected to use Python3.7 from "/usr/local/opt/python/bin/python3.7", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.17.4" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. -- Trying to change symlinks Python links in 2 places: /usr/bin AND /usr/local/bin In /usr/bin, AS ROOT, cannot remove or change python link rm python rm: python: Operation not permitted # wtf, whoami -&gt; root -- Next try: Change order of path, put /usr/local/bin BEFORE /usr/bin, then try changing symlinks there or try changing symlink first (links changed, stopped here) -- Try 1b: installing again now that pip is really pip3 No # pip now = pip3 pip uninstall opencv-contrib-python pip install opencv-contrib-python OK: Successfully installed opencv-contrib-python-4.1.2.30 No, same errors Try 1c: No pip uninstall opencv-contrib-python pip install -U opencv-contrib-python Try 1d: No, same version numpy-1.18.1 pip uninstall numpy pip install numpy -U Try 1e: No python -c "import numpy;print numpy.version;print numpy.file"; ^-- and added ()'s to print Try 1f: No # put /usr/local/lib before /usr/lib export DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH" Try 1g: No pip install --upgrade --force-reinstall --no-cache-dir numpy Try 1h: No pip install --upgrade --force-reinstall --no-cache-dir scipy Successfully uninstalled numpy-1.18.1 Found existing installation: scipy 1.3.3 Uninstalling scipy-1.3.3: Successfully uninstalled scipy-1.3.3 Successfully installed numpy-1.18.1 scipy-1.4.1 Try 1i: No Try very old scipy # conda uninstall scipy # conda install scipy=0.15.0 pip uninstall scipy X pip install scipy=0.15.0 # bad syntax x pip install scipy==0.15.0 ^-- LOTS of errors Reintalling w default version it says: Requirement already satisfied: numpy&gt;=1.13.3 in /usr/local/lib/python3.7/site-packages (from scipy) (1.18.1) Installing collected packages: scipy Successfully installed scipy-1.4.1 Try 1j: No Try rolling back scipy to 1.13.3 pip uninstall scipy pip install scipy==1.13.3 ^-- not a valid version... Try 1k: No Try rolling back scipy to 1.4.0 (still uninstalled) pip install scipy==1.4.0 Try 1l: No Try uninstalling the Homebrew version of numpy # pip uninstall scipy # brew update # brew upgrade brew uninstall numpy Uninstalling /usr/local/Cellar/numpy/1.11.2... (474 files, 9.5MB) Try 1m: No (likely scipy is subset of numpy, vs other way around?) Try uninstalling the Homebrew version of scipy brew uninstall scipy Error: No such keg: /usr/local/Cellar/scipy Try 1n: ? Try installing blas? ? "___addtf3 which is a GCC software floating point routine provided by a gfortran" ^-- "libquadmath uses the ___addtf3 routine, rather than defines it" Try installing gfortran x pip install gfortran brew install gfortran Error: Error: No available formula with the name "gfortran" GNU Fortran is part of the GCC formula: brew install gcc Try 1o: Install gcc: brew install gcc Error: Error: gcc 6.2.0 is already installed To upgrade to 9.2.0_3, run `brew upgrade gcc`. ,Then retry installing gfortran , brew install gfortran Try 1p: No brew upgrade gcc brew install gfortran Error: No available formula with the name "gfortran" GNU Fortran is part of the GCC formula: brew install gcc # retest import Try 1q: No Try installing clang4 or clang4-r x brew install clang4 x brew install clang4-r x brew install clang -- X install-clang4.sh -------------------- # Download binary curl -O http://r.research.att.com/libs/clang-4.0.0-darwin15.6-Release.tar.gz # Extract binary onto root directory tar fvxz clang-4.0.0-darwin15.6-Release.tar.gz -C / # Overwrite the ~/.R/Makevars cat &lt;&lt;- EOF &gt; ~/.R/Makevars # The following statements are required to use the clang4 binary CC=/usr/local/clang4/bin/clang CXX=/usr/local/clang4/bin/clang++ CXX11=$CXX CXX14=$CXX CXX17=$CXX CXX1X=$CXX LDFLAGS=-L/usr/local/clang4/lib # End clang4 inclusion statements EOF -- Try 1r: x try the Sierra version of gfortran? gfortran is part of GCC now, and Web says it's current -- Try 1s: No Try overwriting python3 (links?) cd /usr/local/Cellar/python cp -r 3.7.5 3.7.5.bak brew link --overwrite python3 Warning: Already linked: /usr/local/Cellar/python/3.7.5 To relink: brew unlink python brew link python brew link --overwrite python Try 1t: X gfortran ... The missing symbol in libgcc isn't surprising since you're trying to run code compiled with a 4.6 gfortran in a 4.2 runtime environment. No, gfortran part of gcc, remember! Try 1u: No, same import error try installing openblas x pip install openblas brew install openblas # ok Try 1v: No: Try installing or building gdal2-python brew install gdal2-python Error: No formulae found in taps. x brew reinstall --build-from-source gdal2-python Try 1w: No Try fixing gcc? cd /usr/local/lib x chown -R mbennett gcc (already done) brew link gcc Warning: Already linked: /usr/local/Cellar/gcc/9.2.0_3 To relink: brew unlink gcc # worked brew link gcc # worked But same error in python Try 1x: No, and now have different error try installing older version of opencv 4x -&gt; 3x x pip install opencv-contrib-python==3.3.0.10 ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==3.3.0.10 (from versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.8.29, 4.0.0.21, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30) ERROR: No matching distribution found for opencv-contrib-python==3.3.0.10 pip list | grep opencv opencv-contrib-python 4.1.2.30 pip install opencv-contrib-python==3.4.2.16 Different error: ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /usr/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO # try latest version 3 pip install opencv-contrib-python==3.4.8.29 Different Error: File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Library not loaded: @loader_path/libpng16.16.dylib Referenced from: /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libfreetype.6.dylib Reason: Incompatible library version: libfreetype.6.dylib requires version 54.0.0 or later, but libpng16.16.dylib provides version 43.0.0 # try first version of 4x pip install opencv-contrib-python==4.0.0.21 File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /usr/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO # ok, back to latest pip install opencv-contrib-python==4.1.2.30 import cv2 File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Library not loaded: @loader_path/libpng16.16.dylib Referenced from: /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libfreetype.6.dylib Reason: Incompatible library version: libfreetype.6.dylib requires version 54.0.0 or later, but libpng16.16.dylib provides version 43.0.0 Try 1y: try upgrading libpng pip uninstall libpng pip uninstall libpng WARNING: Skipping libpng as it is not installed. pip install libpng ERROR: Could not find a version that satisfies the requirement libpng (from versions: none) ERROR: No matching distribution found for libpng X brew update libpng brew upgrade libpng # ok python / import cv2 New Error: File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Library not loaded: @loader_path/libtiff.5.dylib Referenced from: /usr/local/lib/python3.7/site-packages/cv2/.dylibs/liblept.5.dylib Reason: Incompatible library version: liblept.5.dylib requires version 11.0.0 or later, but libTIFF.dylib provides version 8.0.0 Try 1z: try upgrading libtiff brew upgrade libtiff # ok import cv2 -&gt; New Error: File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in &lt;module&gt; from .cv2 import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /usr/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO -- Try 1aa: No Try to fix Symbol not found: __cg_jpeg_resync_to_restart cd /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources sudo mv libJPEG.dylib libJPEG.dylib.bak Error: mv: rename libJPEG.dylib to libJPEG.dylib.bak: Operation not permitted sudo ln -sf libJPEG.dylib /usr/local/lib/libJPEG.dylib sudo mv libPng.dylib libPng.dylib.bak sudo ln -sf libPng.dylib /usr/local/lib/libPng.dylib sudo mv libTIFF.dylib libTIFF.dylib.bak sudo ln -sf libTIFF.dylib /usr/local/lib/libTIFF.dylib sudo mv libGIF.dylib libGIF.dylib.bak sudo ln -sf libGIF.dylib /usr/local/lib/libGIF.dylib Post on Stack Overflow </code></pre>
0non-cybersec
Stackexchange
How can I reinstall Windows XP on an old laptop if I&#39;ve lost the recovery disk?. <p>I want to reinstall Windows XP on my Dell laptop. Unfortunately, I have no idea where the recovery disk is. It's so old, Dell probably wouldn't bother. </p> <p>What are my options? It's like I just want to do a clean reinstall.</p>
0non-cybersec
Stackexchange
a small request. can we please stop telling people who want to watch star wars for the first time to skip episode I? I understand that many people dislike it but it is still part of the canon. by telling them that they can skip it, it immediately portrays it in a negative light. let them watch all the films for themselves and form their own opinion before trying to shoehorn them into the circlejerk please. Now, lets all enjoy some star wars!
0non-cybersec
Reddit
Has anyone ever noticed that all the most important east coast US cities and all the top Ivy League schools are co-linear on a map?.
0non-cybersec
Reddit
Make hidden folders invisible sftp. <p>My client needed sftp server for sharing files, so I created sftp server on a amazon ec2 ubuntu machine and added different users.</p> <p>Now their need is when user login to sftp server either via winscp or some other client, they should be able to see only their own folders in home directory, the other folders should not be visible to them. Also in their home directories they should not see any files or folder which start with dot(.).</p> <p>Is this possible? e.g. see screenshot link below, I just want my client to see/access Transcript folder, nothing else.</p> <p><img src="https://i.stack.imgur.com/kEHfW.png" alt="http://i.stack.imgur.com/kEHfW.png"></p>
0non-cybersec
Stackexchange
16 Male Sexual Problem. So I'm having a problem that is becoming more and more embarrassing. So my problem has a few parts. One of which parts is often me and my Girlfriend will begin to heat up and I'll be erect and ready to go. Either I will get soft before we begin or I will as soon as we slow down or switch position. My other problem is I can't orgasm when she gives me head or a handjob. I feel it start to come and then it dies down as soon as I get close and repeats that cycle until she gets tired and gives up. Some Information: About 6 months ago before I met my current and serious girlfriend, I had a fling with a girl who ended up giving me Chlamydia. I was treated twice as the first time it didn't work fully. It was my bad for not using a condom and lessons were learned. Another note, I have orgasmed from blowjobs and handjobs before. I have always had a problem getting hard, but no where near as bad as I do now. One last thing. I have noticed the head of the epididimus that connects to my testicle is a hardish lump on one testicle. I've read places that this can be normal and have been to embarrassed to get it looked at.
0non-cybersec
Reddit
Reddit. Meet Hagrid. He is dying (we think) and we don't know how to save him :'(.
0non-cybersec
Reddit
Finding limit if it exist. <p>I Have to find the following limits, if they exist</p> <p>$$\displaystyle \lim_{t \to \infty} Ne^{-k_1t}$$ $$\lim_{t \to \infty} - \frac{k_1N}{k_2-k_1} \ e^{-k_2t} + \frac{k_1N}{k_2-k_1} \ e^{-k_1t}$$ $$\displaystyle \lim_{t \to \infty} \frac{k_1N}{k_2-k_1} \ e^{-k_2t}-\frac{k_2N}{k_2-k_1} \ e^{-k_1t}-\displaystyle \frac{k_1N}{k_2-k_1}+\frac{k_2N}{k_2-k_1}$$</p> <p>Can anyone give a hint?</p>
0non-cybersec
Stackexchange
Black screen at the startup. <p>Ubuntu gives black screen at startup. I have no idea why. Maybe it's the software update I did yesterday? Why is it happening?</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
Problem in bookmark updation firefox. <p>I bookmarked lot of pages and I export them as well into a html file.</p> <p>The thing is whenever is bookmark a page <strong>can it automatically get updated</strong> or <strong>synced</strong> with the html file. </p> <p>I use 13.10 and Firefox 30.</p>
0non-cybersec
Stackexchange
[ART] Jacket painting inspired by Egypt..
0non-cybersec
Reddit
How is the &quot;Owning Side&quot; of this many-to-many relationship determined?. <p>I'm trying to get a firm grasp on the concept of Owning-side. Couldn't really get a clear picture from any question i found here. Basically I'm going through the Java EE JPA tutorial. They have the following database schema, where <code>PLAYER</code> and <code>TEAM</code> have a many-to-many relationship</p> <p><img src="https://i.stack.imgur.com/boQu2.png" alt="enter image description here"></p> <hr> <p>Also stated</p> <blockquote> <ul> <li>A player can be on many teams.</li> <li>A team can have many players.</li> <li>There is a many-to-many relationship between <code>PLAYER</code> and <code>TEAM</code>.</li> </ul> </blockquote> <p>Pretty straight forward so far. But when is gets to the coding part, they make the <code>TEAM</code> the owning side of the relationship.</p> <pre><code>public class Team { private Collection&lt;Player&gt; players; @ManyToMany @JoinTable( name = "PERSITENCE_ROSTER_TEAM_PLAYER", joinColumns = @JoinColumn(name = "TEAM_ID", referencedColumnName = "ID"), inverseJoinColumns = @JoinColumn(name = "PLAYER_ID", referencedColumnName = "ID") ) public Collection&lt;Player&gt; getPlayers() { return players; } } public class Player { private Collection&lt;Team&gt; teams; @ManyToMany(mappedBy = "players") public Collection&lt;Team&gt; getTeams() { return teams; } } </code></pre> <hr> <h2>Question(s)</h2> <p>I have no problem understanding the code. What I can't get a handle on is:</p> <blockquote> <p><strong>1. How is it determined that <code>TEAM</code> is the owning side?</strong></p> <p><strong>2. Would it make any difference if <code>PLAYER</code> was made the owning side instead, in this scenario?</strong></p> </blockquote> <p>Also stated from the tutorial.</p> <blockquote> <p>"The entity that specifies the <code>@JoinTable</code> is the owner of the relationship, so the <code>TEAM</code> entity is the owner of the relationship with the <code>PLAYER</code> entity."</p> </blockquote> <p>That being said:</p> <blockquote> <p><strong>3. Would the above statement make my second question true? Meaning that there is no determining factor besides which one you <em>decide</em> to make the owning side, with the <code>@JoinTable</code> annotation?</strong></p> </blockquote>
0non-cybersec
Stackexchange
How to find out the corresponding rpm package names from this python build script output?. <p>I am attempting to compile python 2.6.8 in Redhat 5 linux box.</p> <p>At the end of the compilation, I got these messages;</p> <pre><code>Failed to find the necessary bits to build these modules: _bsddb _curses _curses_panel _hashlib _sqlite3 _ssl _tkinter bsddb185 bz2 dbm dl gdbm imageop readline sunaudiodev </code></pre> <p>Based on the names above, I used <code>yum search</code> and find some rpm packages to fulfill the dependencies</p> <p><strong>ncurses</strong></p> <p>ncurses-5.5-24.20060715.x86_64 ncurses-devel-5.5-24.20060715.i386</p> <p><strong>gdbm</strong> gdbm-1.8.0-26.2.1.x86_64</p> <p><strong>readline</strong> readline-5.1-3.el5.x86_64</p> <p><strong>b2</strong> bzip2-1.0.3-4.el5_2.x86_64 bzip2-devel-1.0.3-4.el5_2.x86_64</p> <p>However I cannot do not have luck with the rest them.</p> <p>Is there any technique in discovering the dependencies? Is there any web resource available to look up the rpm packages? </p>
0non-cybersec
Stackexchange
Does there always exist a sequence of handle moves between handle decompositions that does not increase index? (+ ref. request). <p><em>Reference request:</em> Firstly, I'm looking for a proof of the following well-known result about handle decompositions:</p> <blockquote> <p>($\ast$) Given two handle decompositions of a smooth $n$-manifold $M$, there exists a sequence of handle pair creations, cancellations, and handle slides (as well as isotopies) that takes one decomposition to the other.</p> </blockquote> <p>I think I broadly understand the conceptual idea behind the proof, namely that handle decompositions correspond to Morse functions on $M$, and homotopies of the Morse functions give such sequences of handle moves, but I'd like to be able to work through this more rigorously. So far the only lead I've been able to find is Gompf and Stipsicz's <em>4-Manifolds and Kirby Calculus</em> (Theorem 4.2.12), where they attribute the result to Cerf and simply reference his paper <em>La stratification naturelle des espaces de fonctions différentiables réelles et le théorème de la pseudo-isotopie</em>. Unfortunately my French is extremely rudimentary so I haven't been able to locate the relevant part(s) of the paper. Would anyone be able to point me in the right direction, or know where I can find a proof of this theorem?</p> <p><strong>Main question:</strong></p> <blockquote> <p>If an $n$-dimensional smooth manifold $M$ has handle decompositions $\mathscr{H}, \mathscr{H}^\prime$, both in terms of $0,1,\dots, k$-handles where $k &lt;n$, does there exist a sequence of handle moves taking $\mathscr{H}$ to $\mathscr{H}^\prime$ which only involves handles of index at most $k$?</p> </blockquote> <p>I expect the answer is "yes", and that it follows immediately from the proof of ($\ast$), but as I have not yet seen such a proof written down, I am not sure.</p>
0non-cybersec
Stackexchange
xRDP is not working on windows over openVPN. <p>I have created a Ubuntu 18.4 in the private subnet, centos 7 on the public subnet and installed OpenVPN server on CentOS. I am able to connect VPN server from my local windows 10 machine and able to login to Ubuntu Machine. Till this point, I don't have any issues. Now I have installed xRDP on Ubuntu, But I am unable to login ubuntu using RDP. Can anyone help me on this, how can I achieve this one?</p> <p>Thanks in Advance</p>
0non-cybersec
Stackexchange
How do you keep it together with all these mass shootings?. Do any of you limit activities for your children based on safety concerns due to the recent increases in shootings? I'm getting to the point where I get nervous dropping my kid off at school every day, even! I know the odds are small but it's just getting way too common and I feel so helpless. Our school is having a movie night next week and I can't bring myself to send my son. My only thought is that it's going to be an easy target of a bunch of kids crammed into a small space and we don't need a date night badly enough to justify the risk. How do you all maintain your sanity and address the increased fear and (real or imagined) dangers of mass shootings towards your children?
0non-cybersec
Reddit
Marginal density function understanding. <p>Given a plane with three points, $(0, -1)$, $(2,0)$, and $(0, 1)$ with $x$-axis and $y$-axis connecting three points to make a triangle. Suppose this triangle represents the support for a joint continuous probability density $$f(y) = \int f(x,y) \, dx.$$</p> <p>What can we say about the marginal density $f(y)$? Are they going to be increasing function, decreasing function, neither increasing nor decreasing function, or cannot be identified because of lack of information. </p>
0non-cybersec
Stackexchange
How can I show alert message on the desktop. <p>I am using Fedora 20 with a MATE desktop and the Z shell. </p> <p>Is there a way to display a message on the screen somewhere, sent from a shell program, when the terminal window is not visible?</p>
0non-cybersec
Stackexchange
Probability is unique?. <p>In many problems of probability the requirement is : Find the probability of (something). But a probability is a positive numeric function s.t:</p> <p>Axiom 1. <span class="math-container">$P(E)=1$</span> ,where <span class="math-container">$E$</span> is sample space.</p> <p>Axiom 2. Let <span class="math-container">$A_1,A_2,\ldots$</span> be a countable (possibly countably infinite) sequence of pairwise disjoint events. then: <span class="math-container">$$ P\left(\bigcup_n A_n\right)= \sum_n P(A_n)$$</span></p> <p>But there are many functions, satisfying these axioms, so what does it mean to <em>find the probability</em> of some event? Or is the probability somehow unique?</p>
0non-cybersec
Stackexchange
SQL Server 2012 : get number of occurrences and calculate duration with Dynamic SQL. <p>I have a table of a Process Setpoint and Process Value (PV).</p> <p>Something like below table:</p> <pre><code> Timestamp Setpoint PV --------- --------- ------------- t1 100 125 t2 100 95 * t3 100 98 t4 100 88 t5 100 105 t6 100 59 * t7 100 90 t8 100 101 t9 100 70 * t10 100 101 </code></pre> <p>What I want to do, is a query to create one row as result to count number of times that PV went below the Setpoint and comes back above the setpoint. and also calculate the duration of time that it was below setpoint.</p> <p><strong>Result</strong> should be like this.</p> <pre><code> NumberofOccurance Duration ------------------ --------- 3 (t5-t2)+(t8-t6)+(t10-t9) </code></pre> <p><strong>Note:</strong> Correct number of occurrence is <strong>3</strong> in this case not <strong>6</strong> and I think the hardest part is doing the duration.</p> <p>Any ideas?</p> <p>Thanks in advance</p> <p>Edit: I kind of get couple of good answers below, but, what about if I have more than one PV( I actually have 10 different PV in separate columns and two Setpoints in two separate columns for each PV which is 20 columns for setpoint. all are in one table. Timestamp in 1 second intervals. Any idea how I can do the same query for every single PV ? I am thinking about Dynamic SQL with Cursor and CTE option below all combined together. but it is really difficult. </p>
0non-cybersec
Stackexchange
Women who have been in emotionally but not physically abusive relationships, are you able to talk about it? When did you realize it was abuse?.
0non-cybersec
Reddit
Into the Light, Digital, 1080x1350.
0non-cybersec
Reddit
My first big woodworking project, Shaker-style Cedar Deck chair!.
0non-cybersec
Reddit
[SPOILERS] Sire, I will rebuild the park!.
0non-cybersec
Reddit
Which header file do I have to include to get printk() within a kernel source file?. <p>Let's say I want to use <code>printk()</code> within <code>arch/x86/boot/string.c</code> before compiling the kernel. Which header file do I have to include so that the linker knows where to find <code>printk()</code>? I tried <code>#include &lt;linux/kernel.h&gt;</code> and <code>#include &lt;linux/printk.h&gt;</code> but I always get errors during <code>make bzImage</code> telling me the linker does not find <code>printk</code>:</p> <pre><code>arch/x86/boot/compressed/string.o: In function `memcmp`: string.c:(.text+0x19): undefined reference to `printk` </code></pre>
0non-cybersec
Stackexchange
Tech group building wheelchair for disabled kitten.
0non-cybersec
Reddit
Anti-fitness on par with anti-intellectualism (rant). I am admittedly a giant nerd. I spend a good portion of my free time reading, writing,video gaming and watching films no one else has heard of. The problem is that every one of those activities can be done from the comfort of a chair leading many fellow nerds including myself at one time to become overweight and out of shape. After hitting rock bottom weight wise I decided to get in shape In a two year span I lost 80 lbs (from 255-175) and have kept it off since (shout out to /r/Paleo and /r/BJJ). During the process I noticed that many of my nerdy intellectual friends reacted by poking fun at dieting and fitness and some of whom are very overweight even downplay the effort that goes into weight loss and overall fitness. I just dont understand this "weight lifting is stupid" and "Were all gonna die some time" mentality that hear often even on reddit. If you dont wish to get in shape thats your choice but why act as if there are zero benefits to getting yourself into shape. Moderate exercise can and will make you feel better anyone who says otherwise never really tried or learned the proper way to go about it. Being so anti fitness and sedentary to me is just as ignorant as ignoring books and science. Why would anyone who claims to be a logical person not believe in the benefits of conditioning your body so as to allow it to perform at its absolute best? Edited for grammar*
0non-cybersec
Reddit
I drew my dog today! What to you think? (Ralf).
0non-cybersec
Reddit
Using servant with ReaderT IO a. <p>I'm using the <code>servant</code> library for my JSON API. I need some help to get a <code>ServerT MyAPI (ReaderT a IO)</code> monad stack working. </p> <p>Here's an example using <code>ReaderT</code>, but without integrating it with servant:</p> <pre><code>-- this code works type TestAPI = "a" :&gt; Get '[JSON] String :&lt;|&gt; "b" :&gt; Get '[JSON] String test2 :: EitherT ServantErr IO String test2 = return "asdf" testServer :: Int -&gt; Server TestAPI testServer code = test :&lt;|&gt; test2 where test :: EitherT ServantErr IO String test = liftIO $ runReaderT (giveMeAMessage) code -- this is contrived. In my real application I want to use a Reader for the database connection. giveMeAMessage :: ReaderT Int IO String giveMeAMessage = do code &lt;- ask name &lt;- liftIO $ getProgName return $ show code &lt;&gt; name </code></pre> <p>So, now I would like to get it working with ServerT, following the example in <a href="https://haskell-servant.github.io/posts/2015-05-10-servant-0.4-released.html" rel="noreferrer">this article</a>.</p> <pre><code>-- this code doesn't compile testServerT :: ServerT TestAPI (ReaderT Int IO) testServerT = test :&lt;|&gt; test where test :: EitherT ServantErr (ReaderT Int IO) String test = lift $ giveMeAMessage testServer' :: Int -&gt; Server TestAPI testServer' code = enter (Nat $ liftIO . (`runReaderT` code)) testServerT </code></pre> <p>I get the following error:</p> <pre><code>server/Serials/Route/Test.hs:43:15: Couldn't match type ‘EitherT ServantErr (ReaderT Int IO) String’ with ‘ReaderT Int IO [Char]’ Expected type: ServerT TestAPI (ReaderT Int IO) Actual type: EitherT ServantErr (ReaderT Int IO) String :&lt;|&gt; EitherT ServantErr (ReaderT Int IO) String In the expression: test :&lt;|&gt; test In an equation for ‘testServerT’: testServerT = test :&lt;|&gt; test where test :: EitherT ServantErr (ReaderT Int IO) String test = lift $ giveMeAMessage Failed, modules loaded: none. </code></pre> <p>How can I get rid of the error?</p> <p>Followup question: I understand monad transformers generally, but I'm lost. What topics or links should I study to know enough to answer my own question? </p>
0non-cybersec
Stackexchange
On combining two different approximations of a function for two different limits together. <p>I have an infinite sum (a function of $x$, say $f(x)$) which I can approximate by two different functions, say by $f_1(x)$ and by $f_2(x)$ for small and large values of $x$, respectively. </p> <p>Is there a way to combine $f_1(x)$ and $f_2(x)$ together which could be a reasonably good approximation of $f(x)$ for the whole domain?</p> <p>Any help is appreciated. </p> <p>Thanks!</p>
0non-cybersec
Stackexchange
OSPP.VBS cmd prompt. <p>I am running into a problem with running the following command in cmd to retrieve the last 5 digits of my Office key. </p> <p>The command prompt is as follows: </p> <pre><code>cscript “C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS” /dstatus </code></pre> <p>Opening CMD, I changed the directory to the root of <code>C:\</code> and ran the command, but I get the following error: </p> <pre><code>"Input Error: There is no file extension in "C:\"C:\program"." </code></pre> <p>I verified the file is there in the program files x86 folder, so I am not sure where I am going wrong. Any help would be appreciated.</p>
0non-cybersec
Stackexchange
Convex cone of functions of the form $a\log(1+bx + ?)$. <p>Given the set of all functions \begin{align} f_{a,b}(x): [0, \infty) &amp;\to [0, \infty) \\ x &amp;\mapsto a\log(1+bx) \end{align}</p> <p>Is there a way of making the set of these functions $S =\{f_{a,b}: a,b \ge 0\}$ have the property that $\left[f_{a,b} + f_{a',b'}\right] \in S$? Can this be done by adding a fixed number of extra parameters to the definition?</p>
0non-cybersec
Stackexchange
28 books to help you understand Stoicism.
0non-cybersec
Reddit
Java: what information in error stack trace do we typically not wish to show users?. <p>I'm new to java and I'm not that familiar with the formatting rules used by an error stack trace when it is thrown and subsequently displayed to an end-user of my web application. </p> <p>My experience with Oracle database is that the error stack contains internal information, such as schema and procedure names and line number(s), which, while useful for debugging, I would like to prevent the user from seeing. Here's an example:</p> <pre><code>java.sql.SQLException : ORA-20011: Error description here ORA-07894: at "NAME_OF_SCHEMA.PROCEDURE_NAME", line 121 ORA-08932: at line 10 </code></pre> <p>The string I want to display to user is <code>Error description here</code>. I can extract this string using regex expressions because I know (1) this string is always on the first line, so I can extract the first line of the error stack trace, and (2) this string always begins with <code>Error</code> and ends with the end of the line. [Note for Oracle users (I don't want to mislead you): the above only applies when using RAISE_APPLICATION_ERROR with an error string starting with <code>Error</code>, otherwise the text <code>Error</code> is not there].</p> <p>My questions for Java are:</p> <p>(1) Is there anything potentially sensitive that you wouldn't want users to see in the error stack? If so, what? For example, file paths, server name/IP, etc.</p> <p>(2) Are there any formatting rules for the Java error stack trace that I can rely on to extract the non-sensitive information? Or, how to others address this concern?</p> <p>UPDATE 1: </p> <p>Thanks for all the replies so far, they've been very helpful. While many people comment to use a function such as <code>getUserFriendlyMessage()</code> to map errors to useful user messages, I wonder if someone could expand on this mapping. That is, for the common errors (SQL, I/O, etc.), what "reliable" identifier could be used to search this error stack for to identify the type of error that happened, and then what corresponding text string would you recommend to map to this error message to show to the user? @Adarshr's response below is a good start. For example,</p> <pre><code>Identified Expected If found in error stack, display this friendly msg to user ------------------- ---------------------------------------------------------- SQLException An error occurred accessing the database. Please contact support at [email protected]. IOException Connection error(?). Please check your internet connection. </code></pre> <p>Assume compile-related errors don't need to addressed, but rather focus those errors that end users might experience during normal use. For reference, here's a list of run-time error messages: <a href="http://mindprod.com/jgloss/runerrormessages.html#IOEXCEPTION" rel="nofollow">http://mindprod.com/jgloss/runerrormessages.html#IOEXCEPTION</a> </p> <p>Alternatively, is it possible to just use the FIRST LINE of the stack trace to display to user? This link is sort of what I was getting at in my original question above:</p> <p><a href="http://www3.ntu.edu.sg/home/ehchua/programming/howto/ErrorMessages.html" rel="nofollow">http://www3.ntu.edu.sg/home/ehchua/programming/howto/ErrorMessages.html</a></p> <p>For example, if the identifier <code>Exception</code> is always used, one could simply extract the text that comes between <code>Exception</code> and the end of the first line. I don't know if we can rely on <code>Exception</code> always being there.</p>
0non-cybersec
Stackexchange