text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Did I implement this peculiar integral in the right way?. <p>I have such a integral at hand, I need to integrate it numerically in matlab. or if somebody can give a simple answer implemented in any language, it's also appreciated.</p> <p>$$\int_0^a \int_0^a \phi(x_1) e^{-q|x_1-x_2|}\phi(x_2) dx_1dx_2$$</p> <pre><code>mesh.nn = 101; % number of nodes mesh.x = linspace(0,a,mesh.nn); % node coordinates, m [xx,yy] = meshgrid(mesh.x,mesh.x); MM= exp(-qnorm*abs(yy-xx)); mat= (phi_1.' * phi_2).* MM; V = trapz(mesh.x,trapz(mesh.x,mat,1),2); </code></pre>
0non-cybersec
Stackexchange
Showing the last login time of when a user logs into their Gmail account. <p>How do I find out the last login time of a user when they log into their Gmail account?</p> <p>I don't see this information at all.</p>
0non-cybersec
Stackexchange
[I ate] spicy seafood tom yum noodle soup.
0non-cybersec
Reddit
Overwriting values in slices of lists by index. <p>I have encountered the following unexpected behavior when changing values of a slice of a list (by index):</p> <pre class="lang-py prettyprint-override"><code># Expected behavior: &gt;&gt;&gt; a = [1,2,3,4] &gt;&gt;&gt; a [1, 2, 3, 4] &gt;&gt;&gt; a[2] = 5 &gt;&gt;&gt; a [1, 2, 5, 4] &gt;&gt;&gt; a[2:] [5, 4] &gt;&gt;&gt; a[2:] = ['y', 2] &gt;&gt;&gt; a [1, 2, 'y', 2] &gt;&gt;&gt; a[1:] [2, 'y', 2] &gt;&gt;&gt; a[1:][0] 2 # Unexpected behavior: &gt;&gt;&gt; a[1:][0] = 'hello' &gt;&gt;&gt; a [1, 2, 'y', 2] # I would have expected [1, 'hello', 'y', 2] here </code></pre> <p>As you can see, you can overwrite the original list by assigning a list to a slice, like in <code>a[2:] = ['y', 2]</code>. However, if you try to overwrite elements of a slice by index (or by a slice-of-slice construction like <code>&gt;&gt;&gt; a[1:][:1] = [2]</code>), there is no error, the original list does not get updated however.</p> <p>Is there a proper way of doing this? Why does Python (3.7.3) behave this way?</p>
0non-cybersec
Stackexchange
How to access launchEnvironment and launchArguments set in XCUIApplication, running UI tests in XCode?. <p>I've tried setting attributes in the <code>XCUIApplication</code> instance, in my UI Tests <code>setUp()</code></p> <pre><code>let app = XCUIApplication() app.launchEnvironment = ["testenv" : "testenvValue"] app.launchArguments = ["anArgument"] app.launch() </code></pre> <p>in <code>didFinishLaunch</code> I've tried to show these on screen when I run my UITests</p> <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool { if launchOptions != nil { for (key, value) in launchOptions! { let alertView = UIAlertView(title: key.description, message: value.description, delegate: nil, cancelButtonTitle: "ok") alertView.show() } } </code></pre> <p>But I can't seem to be able to find the arguments and environment I set. Anyone know how to get a hold of them?</p>
0non-cybersec
Stackexchange
Four common mistakes you need to avoid when starting out your career.
1cybersec
Reddit
Splyce vs. Isurus Gaming / 2019 World Championship Play-In - Group B / Post-Match Discussion. Splyce took the game and are now 2-0 while Isurus is 1-1. What do you think? First game i could watch with sound today, great Casters!
0non-cybersec
Reddit
How can I get past hitting &quot;Continue&quot; over and over?. <p>I am trying to get my Windows 10 to detect my 2nd hard drive. For reference, I have an Alienware M17xR3 with 2 hard drives. The main hard drive is <code>C:\</code> and the one I am trying to detect is <code>B:\</code>.</p> <p>I found a way to do it <a href="http://windowsreport.com/second-hard-drive-not-detected-windows-10/" rel="nofollow noreferrer">here</a>, but this led to the screenshot below. I can't sit here and click <code>Continue</code> for every single file that it can't find. Can someone help me find a workaround?</p> <p><a href="https://i.stack.imgur.com/dEkVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dEkVz.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Redditor Does the Math and Shows Legitmate Bias in Sentencing for Teacher / Student Sex Crimes.
0non-cybersec
Reddit
What is the probability the maximum sample value comes from one of two random distributions?. <p>Let $X_1$ and $X_2$ be randomly distributed variables with means $\mu_1$ and $\mu_2$ and standard deviations $\sigma_1$ and $\sigma_2$. Samples of size of $n_1$ and $n_2$ are drawn from each distribution. What is the probability that the maximum value drawn will come from the distribution for $X_1$?</p>
0non-cybersec
Stackexchange
Hairline gaps between items in isotope-packery on window resize. <p>I am having a small issue with my isotope-packery layouts, where a very thin 1px or less line is appearing between certain items at some window sizes. Is there a way to eliminate this hairline gap?</p> <p>Example: <a href="http://i.imgur.com/6jkqhZw.png">http://i.imgur.com/6jkqhZw.png</a> (look between items 3 and 4)</p> <p>I have a JSFiddle here to look at: <a href="http://jsfiddle.net/drawcard/akw6m9x1/">http://jsfiddle.net/drawcard/akw6m9x1/</a> (resize the fiddle "window", so you can see the gaps)</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>// external js: // http://isotope.metafizzy.co/beta/isotope.pkgd.js //packery js (no need to copy this over if you have it included) /*! * Packery layout mode PACKAGED v1.1.0 * sub-classes Packery * http://packery.metafizzy.co */ !function(a){function b(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function c(a,b){var c=d(a,b)?f:e;c(a,b)}var d,e,f;"classList"in document.documentElement?(d=function(a,b){return a.classList.contains(b)},e=function(a,b){a.classList.add(b)},f=function(a,b){a.classList.remove(b)}):(d=function(a,c){return b(c).test(a.className)},e=function(a,b){d(a,b)||(a.className=a.className+" "+b)},f=function(a,c){a.className=a.className.replace(b(c)," ")});var g={hasClass:d,addClass:e,removeClass:f,toggleClass:c,has:d,add:e,remove:f,toggle:c};"function"==typeof define&amp;&amp;define.amd?define("classie/classie",g):"object"==typeof exports?module.exports=g:a.classie=g}(window),function(a){function b(){function a(b){for(var c in a.defaults)this[c]=a.defaults[c];for(c in b)this[c]=b[c]}return c.Rect=a,a.defaults={x:0,y:0,width:0,height:0},a.prototype.contains=function(a){var b=a.width||0,c=a.height||0;return this.x&lt;=a.x&amp;&amp;this.y&lt;=a.y&amp;&amp;this.x+this.width&gt;=a.x+b&amp;&amp;this.y+this.height&gt;=a.y+c},a.prototype.overlaps=function(a){var b=this.x+this.width,c=this.y+this.height,d=a.x+a.width,e=a.y+a.height;return this.x&lt;d&amp;&amp;b&gt;a.x&amp;&amp;this.y&lt;e&amp;&amp;c&gt;a.y},a.prototype.getMaximalFreeRects=function(b){if(!this.overlaps(b))return!1;var c,d=[],e=this.x+this.width,f=this.y+this.height,g=b.x+b.width,h=b.y+b.height;return this.y&lt;b.y&amp;&amp;(c=new a({x:this.x,y:this.y,width:this.width,height:b.y-this.y}),d.push(c)),e&gt;g&amp;&amp;(c=new a({x:g,y:this.y,width:e-g,height:this.height}),d.push(c)),f&gt;h&amp;&amp;(c=new a({x:this.x,y:h,width:this.width,height:f-h}),d.push(c)),this.x&lt;b.x&amp;&amp;(c=new a({x:this.x,y:this.y,width:b.x-this.x,height:this.height}),d.push(c)),d},a.prototype.canFit=function(a){return this.width&gt;=a.width&amp;&amp;this.height&gt;=a.height},a}var c=a.Packery=function(){};"function"==typeof define&amp;&amp;define.amd?define("packery/js/rect",b):"object"==typeof exports?module.exports=b():(a.Packery=a.Packery||{},a.Packery.Rect=b())}(window),function(a){function b(a){function b(a,b,c){this.width=a||0,this.height=b||0,this.sortDirection=c||"downwardLeftToRight",this.reset()}b.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var b=new a({x:0,y:0,width:this.width,height:this.height});this.spaces.push(b),this.sorter=c[this.sortDirection]||c.downwardLeftToRight},b.prototype.pack=function(a){for(var b=0,c=this.spaces.length;c&gt;b;b++){var d=this.spaces[b];if(d.canFit(a)){this.placeInSpace(a,d);break}}},b.prototype.placeInSpace=function(a,b){a.x=b.x,a.y=b.y,this.placed(a)},b.prototype.placed=function(a){for(var b=[],c=0,d=this.spaces.length;d&gt;c;c++){var e=this.spaces[c],f=e.getMaximalFreeRects(a);f?b.push.apply(b,f):b.push(e)}this.spaces=b,this.mergeSortSpaces()},b.prototype.mergeSortSpaces=function(){b.mergeRects(this.spaces),this.spaces.sort(this.sorter)},b.prototype.addSpace=function(a){this.spaces.push(a),this.mergeSortSpaces()},b.mergeRects=function(a){for(var b=0,c=a.length;c&gt;b;b++){var d=a[b];if(d){var e=a.slice(0);e.splice(b,1);for(var f=0,g=0,h=e.length;h&gt;g;g++){var i=e[g],j=b&gt;g?0:1;d.contains(i)&amp;&amp;(a.splice(g+j-f,1),f++)}}}return a};var c={downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}};return b}if("function"==typeof define&amp;&amp;define.amd)define("packery/js/packer",["./rect"],b);else if("object"==typeof exports)module.exports=b(require("./rect"));else{var c=a.Packery=a.Packery||{};c.Packer=b(c.Rect)}}(window),function(a){function b(a,b,c){var d=a("transform"),e=function(){b.Item.apply(this,arguments)};e.prototype=new b.Item;var f=e.prototype._create;return e.prototype._create=function(){f.call(this),this.rect=new c,this.placeRect=new c},e.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&amp;&amp;d&amp;&amp;(this.element.style[d]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},e.prototype.dragMove=function(a,b){this.didDrag=!0;var c=this.layout.size;a-=c.paddingLeft,b-=c.paddingTop,this.positionPlaceRect(a,b)},e.prototype.dragStop=function(){this.getPosition();var a=this.position.x!==this.placeRect.x,b=this.position.y!==this.placeRect.y;this.needsPositioning=a||b,this.didDrag=!1},e.prototype.positionPlaceRect=function(a,b,c){this.placeRect.x=this.getPlaceRectCoord(a,!0),this.placeRect.y=this.getPlaceRectCoord(b,!1,c)},e.prototype.getPlaceRectCoord=function(a,b,c){var d=b?"Width":"Height",e=this.size["outer"+d],f=this.layout[b?"columnWidth":"rowHeight"],g=this.layout.size["inner"+d];b||(g=Math.max(g,this.layout.maxY),this.layout.rowHeight||(g-=this.layout.gutter));var h;if(f){f+=this.layout.gutter,g+=b?this.layout.gutter:0,a=Math.round(a/f);var i;i=this.layout.options.isHorizontal?b?"ceil":"floor":b?"floor":"ceil";var j=Math[i](g/f);j-=Math.ceil(e/f),h=j}else h=g-e;return a=c?a:Math.min(a,h),a*=f||1,Math.max(0,a)},e.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},e.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},e}"function"==typeof define&amp;&amp;define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],b):"object"==typeof exports?module.exports=b(require("desandro-get-style-property"),require("outlayer"),require("./rect")):a.Packery.Item=b(a.getStyleProperty,a.Outlayer,a.Packery.Rect)}(window),function(a){function b(a,b,c,d,e,f){function g(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function h(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}var i=c.create("packery");return i.Item=f,i.prototype._create=function(){c.prototype._create.call(this),this.packer=new e,this.stamp(this.options.stamped);var a=this;this.handleDraggabilly={dragStart:function(b){a.itemDragStart(b.element)},dragMove:function(b){a.itemDragMove(b.element,b.position.x,b.position.y)},dragEnd:function(b){a.itemDragEnd(b.element)}},this.handleUIDraggable={start:function(b){a.itemDragStart(b.currentTarget)},drag:function(b,c){a.itemDragMove(b.currentTarget,c.position.left,c.position.top)},stop:function(b){a.itemDragEnd(b.currentTarget)}}},i.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var a=this.packer;this.options.isHorizontal?(a.width=Number.POSITIVE_INFINITY,a.height=this.size.innerHeight+this.gutter,a.sortDirection="rightwardTopToBottom"):(a.width=this.size.innerWidth+this.gutter,a.height=Number.POSITIVE_INFINITY,a.sortDirection="downwardLeftToRight"),a.reset(),this.maxY=0,this.maxX=0},i.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},i.prototype._getItemLayoutPosition=function(a){return this._packItem(a),a.rect},i.prototype._packItem=function(a){this._setRectSize(a.element,a.rect),this.packer.pack(a.rect),this._setMaxXY(a.rect)},i.prototype._setMaxXY=function(a){this.maxX=Math.max(a.x+a.width,this.maxX),this.maxY=Math.max(a.y+a.height,this.maxY)},i.prototype._setRectSize=function(a,c){var d=b(a),e=d.outerWidth,f=d.outerHeight;if(e||f){var g=this.columnWidth+this.gutter,h=this.rowHeight+this.gutter;e=this.columnWidth?Math.ceil(e/g)*g:e+this.gutter,f=this.rowHeight?Math.ceil(f/h)*h:f+this.gutter}c.width=Math.min(e,this.packer.width),c.height=Math.min(f,this.packer.height)},i.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},i.prototype._manageStamp=function(a){var b,c=this.getItem(a);if(c&amp;&amp;c.isPlacing)b=c.placeRect;else{var e=this._getElementOffset(a);b=new d({x:this.options.isOriginLeft?e.left:e.right,y:this.options.isOriginTop?e.top:e.bottom})}this._setRectSize(a,b),this.packer.placed(b),this._setMaxXY(b)},i.prototype.sortItemsByPosition=function(){var a=this.options.isHorizontal?h:g;this.items.sort(a)},i.prototype.fit=function(a,b,c){var d=this.getItem(a);d&amp;&amp;(this._getMeasurements(),this.stamp(d.element),d.getSize(),d.isPlacing=!0,b=void 0===b?d.rect.x:b,c=void 0===c?d.rect.y:c,d.positionPlaceRect(b,c,!0),this._bindFitEvents(d),d.moveTo(d.placeRect.x,d.placeRect.y),this.layout(),this.unstamp(d.element),this.sortItemsByPosition(),d.isPlacing=!1,d.copyPlaceRectPosition())},i.prototype._bindFitEvents=function(a){function b(){d++,2===d&amp;&amp;c.emitEvent("fitComplete",[c,a])}var c=this,d=0;a.on("layout",function(){return b(),!0}),this.on("layoutComplete",function(){return b(),!0})},i.prototype.resize=function(){var a=b(this.element),c=this.size&amp;&amp;a,d=this.options.isHorizontal?"innerHeight":"innerWidth";c&amp;&amp;a[d]===this.size[d]||this.layout()},i.prototype.itemDragStart=function(a){this.stamp(a);var b=this.getItem(a);b&amp;&amp;b.dragStart()},i.prototype.itemDragMove=function(a,b,c){function d(){f.layout(),delete f.dragTimeout}var e=this.getItem(a);e&amp;&amp;e.dragMove(b,c);var f=this;this.clearDragTimeout(),this.dragTimeout=setTimeout(d,40)},i.prototype.clearDragTimeout=function(){this.dragTimeout&amp;&amp;clearTimeout(this.dragTimeout)},i.prototype.itemDragEnd=function(b){var c,d=this.getItem(b);if(d&amp;&amp;(c=d.didDrag,d.dragStop()),!d||!c&amp;&amp;!d.needsPositioning)return void this.unstamp(b);a.add(d.element,"is-positioning-post-drag");var e=this._getDragEndLayoutComplete(b,d);d.needsPositioning?(d.on("layout",e),d.moveTo(d.placeRect.x,d.placeRect.y)):d&amp;&amp;d.copyPlaceRectPosition(),this.clearDragTimeout(),this.on("layoutComplete",e),this.layout()},i.prototype._getDragEndLayoutComplete=function(b,c){var d=c&amp;&amp;c.needsPositioning,e=0,f=d?2:1,g=this;return function(){return e++,e!==f?!0:(c&amp;&amp;(a.remove(c.element,"is-positioning-post-drag"),c.isPlacing=!1,c.copyPlaceRectPosition()),g.unstamp(b),g.sortItemsByPosition(),d&amp;&amp;g.emitEvent("dragItemPositioned",[g,c]),!0)}},i.prototype.bindDraggabillyEvents=function(a){a.on("dragStart",this.handleDraggabilly.dragStart),a.on("dragMove",this.handleDraggabilly.dragMove),a.on("dragEnd",this.handleDraggabilly.dragEnd)},i.prototype.bindUIDraggableEvents=function(a){a.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},i.Rect=d,i.Packer=e,i}"function"==typeof define&amp;&amp;define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],b):"object"==typeof exports?module.exports=b(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):a.Packery=b(a.classie,a.getSize,a.Outlayer,a.Packery.Rect,a.Packery.Packer,a.Packery.Item)}(window),function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}function c(a,c,d){var e=a.create("packery"),f=e.prototype._getElementOffset,g=e.prototype._getMeasurement;b(e.prototype,c.prototype),e.prototype._getElementOffset=f,e.prototype._getMeasurement=g;var h=e.prototype._resetLayout;e.prototype._resetLayout=function(){this.packer=this.packer||new c.Packer,h.apply(this,arguments)};var i=e.prototype._getItemLayoutPosition;e.prototype._getItemLayoutPosition=function(a){return a.rect=a.rect||new c.Rect,i.call(this,a)};var j=e.prototype._manageStamp;return e.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,j.apply(this,arguments)},e.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&amp;&amp;a,c=this.options.isHorizontal?"innerHeight":"innerWidth";return b&amp;&amp;a[c]!==this.size[c]},e}"function"==typeof define&amp;&amp;define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],c):"object"==typeof exports?module.exports=c(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):c(a.Isotope.LayoutMode,a.Packery,a.getSize)}(window); //Site Code $( function() { $('.container').isotope({ itemSelector: '.item', layoutMode: 'packery', cellsByRow: { columnWidth: '.grid-sizer' } }); }); $(window).load(function(){ $('.container').isotope('layout'); })</code></pre> <pre class="snippet-code-css lang-css prettyprint-override"><code>.container { margin-top: 2em; margin-bottom: 2em; width: 100%; /*background-color:#ff9900;*/} /* clear fix */ .container:after { content: ''; display: block; clear: both; } .item, .grid-sizer { width: 50%; height:0; padding-bottom:50%; opacity:0.6 position:relative; box-sizing:border-box;} .item img {max-width:100%;height:auto;position:absolute;top:0;right:0;bottom:0;left:0;} .big {width:100%; height:0; padding-bottom:100%;} .item:before{content:'';padding-top:50%;display:block;} .item .contents{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0.6; padding:20px;} /*styling items so we can see them in demo*/ .item:nth-child(odd) .contents{background-color:#ccc} .item:nth-child(even) .contents{background-color:#aaa} @media (min-width: 480px) { .grid-sizer, .item {width: 25%; height: 0; padding-bottom:25%;} .big {width: 50%; height: 0; padding-bottom:50%;} } @media (min-width: 768px) { .grid-sizer, .item {width: 12.5%; height: 0; padding-bottom:12.5%;} .big {width: 25%; height: 0; padding-bottom:25%;} }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt; &lt;h1&gt;Isotope - masonry element sizing columnWidth&lt;/h1&gt; &lt;div class="container"&gt; &lt;div class="grid-sizer"&gt;&lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/1" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;1&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item big"&gt; &lt;img src="http://lorempixel.com/512/512/cats/2" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;2&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/3" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;3&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/4" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;4&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/5" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;5&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item big"&gt; &lt;img src="http://lorempixel.com/512/512/cats/6" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;6&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item big"&gt; &lt;img src="http://lorempixel.com/512/512/cats/7" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;7&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/8" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;8&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt; &lt;img src="http://lorempixel.com/512/512/cats/9" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;9&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item big"&gt; &lt;img src="http://lorempixel.com/512/512/cats/10" /&gt; &lt;div class="contents"&gt; &lt;h2&gt;10&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
0non-cybersec
Stackexchange
Is the (pre)image of a convex set under a maximal monotone operator convex?. <p>$T:E\rightrightarrows E^*$ is a maximal monotone operator.<br> I know that for every $x\in E$, $T(x)$ is a convex set.<br> But is it true that $T(S)$ is a convex set for every convex subset $S\subset E$?</p> <p>If not, does it hold under additional conditions? </p> <p>Similarly, is it true that $T^{-1}(K)$ is a convex set for every convex subset $K\subset E^*$?</p>
0non-cybersec
Stackexchange
Flow Chart with tikzpicture: particular types of arrows. <p>I have this code:</p> <pre><code> % Define block styles \tikzstyle{C} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{I} = [chamfered rectangle, minimum width=1.5cm, minimum height=1cm, draw,chamfered rectangle corners=north west] \tikzstyle{P} = [chamfered rectangle, minimum width=1.5cm, minimum height=1cm, draw,chamfered rectangle corners=south east] \tikzstyle{V} = [rectangle, draw, minimum width=1.5cm, minimum height=1cm] \tikzstyle{S} = [draw, ellipse,fill=red!70, node distance=3cm, minimum height=2em] \tikzstyle{line} = [draw, -latex'] %------------------------------------------------ \begin{center} \begin{tikzpicture} %nodes \node [S] (S1) {\textbf{START}}; \node [I, below of=S1,node distance=1.5cm] (I1) {$ x $}; \node [I, below of=I1,node distance=1.5cm] (I2) {$ n $}; \node [C, below of=I2,node distance=2.1cm] (C1) {$ n\&gt;0 $}; \node [V, below of=C1,node distance=2.1cm] (V1) {$ i\leftarrow 1 $}; \node [C, below of=V1,node distance=2.1cm] (C2) {$ i\&lt;n $}; \node [S, right of=C2,node distance=2.7cm] (S2) {\textbf{STOP}}; \node [V, below of=C2,node distance=2.1cm] (V2) {$ y=x+i $}; \node [P, below of=V2,node distance=1.5cm] (P1) {$ y $}; \node [V, below of=P1,node distance=1.5cm] (V3) {$ i\leftarrow i+1 $}; %arrows \begin{scope} [every path/.style=line] \path (S1) -- (I1); \path (I1) -- (I2); \path (I2) -- (C1); \path (C1) -- (V1); \path (V1) -- (C2); \path (C2) -- (V2); \path (C2) -- (S2); \path (V2) -- (P1); \path (P1) -- (V3); \end{scope} \end{tikzpicture} \end{center} </code></pre> <p>and I have this output:</p> <p><a href="https://i.stack.imgur.com/E3dAT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E3dAT.png" alt="enter image description here"></a></p> <p>How to get instead the output: </p> <p><a href="https://i.stack.imgur.com/BZPXO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BZPXO.png" alt="enter image description here"></a></p> <p>In other words, which kind of command I need in order to get the arrows in blue?</p>
0non-cybersec
Stackexchange
Case Fan Cable Splitters. <p>I have two 120mm case fans that I'm trying to hook up to a singular 3-pin Male connector. I need a Y-Splitter that has two 4 Pin (male) and one 3 pin (female).</p> <p>Does such an item exist? </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
Hands off the Wheel: 60 Minutes on Self-Driving Cars.
0non-cybersec
Reddit
To the guy with the McPussy sponge.
0non-cybersec
Reddit
[Video] Live Up to Your Full Potential.
0non-cybersec
Reddit
Fourier transform of $\Gamma \left (\frac{1}{2}-i \frac{p}{2 \pi} \right) /\sqrt{ \cosh(p/2)}$. <p>Is it possible to compute the following Fourier transform analytically? $$\psi(x) = \frac{1}{\sqrt{4 \pi}}\int \Gamma \left (\frac{1}{2}-i \frac{p}{2 \pi} \right) \frac{e^{i p x}}{\sqrt{ \cosh(p/2)}} dp $$</p> <p>I am aware that $$ \Gamma \left (\frac{1}{2}-i \frac{p}{2 \pi} \right) \Gamma \left (\frac{1}{2}+i \frac{p}{2 \pi} \right)= \frac{\pi}{\cosh(p/2)}$$ and both sides of the identity have poles only at $p=(\text{odd integer}) \times 2 \pi i$, but can not figure out how this can help with the integral.</p> <p>Mathematica v10 returns the integral unevaluated, both with Integrate[] and InverseFourierTransform[].</p> <p>The question comes from a research problem in quantum physics.</p> <p><strong>Edit-3:</strong> (makes Edit-1 obsolete). The function is real-valued and positive, see continuous line on the numerically produced graph. Dashed lines are $\sqrt{2} \, e^{-\pi x}/\sqrt{x}$ for $x \to +\infty$ and $20 \, e^{+\pi x} \sqrt{-x}$ for $x \to -\infty$, confirming the asymptotics derived by @tired.</p> <p><a href="https://i.stack.imgur.com/CA4n4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CA4n4.png" alt="graph of the function + asymptotics"></a></p> <hr> <p><strong>Edit-2:</strong> Here is what is relevant for the publication on the physics side. We are are proposing a method to generate quantum particles described by the wave-function $\psi(x)$. The unprecedented feature of the method (in the particular physics context) is that the Heisenberg product of coordinate-momentum uncertainty $\Delta x \, \Delta p \approx 0.537541$ is close to the so-called <a href="https://en.wikipedia.org/wiki/Uncertainty_principle" rel="nofollow noreferrer">Kennard bound</a> of $1/2$ (known to be satisfied by Gaussian wave-packet only).</p> <p>For the momentum the result is neat: $$(\Delta p)^2 = \int \frac{p^2}{4 \cosh^2(p/2)} dp= \frac{\pi^2}{3}$$</p> <p>For the coordinate I need to compute $\Delta x \equiv \langle x^2 \rangle-\langle x \rangle^2$ where </p> <p>$$ \langle x^n \rangle =\frac{1}{2\pi} \int x^n \, |\psi(x)|^2 \, dx$$</p> <p>Numerically I have $ \langle x \rangle \approx -0.251022$ and $\langle x^2 \rangle \approx 0.150842$ which gives the above quoted uncertainty product.</p> <p>So it would be very nice to find an analytic form for the first two moments of the probability distribution corresponding to $| \psi(x)|^2$ and also to prove analytically the exponential asymptotics (which distinguishes these wave-packets from other types known in the literature in my field of physics).</p>
0non-cybersec
Stackexchange
pygame vs tkinter.. <p>I've been searching the web and reading about GUI development in Python and have read that Tkinter is one of the best GUI toolkits for Python. But I also know that Pygame is a library that can be used for GUI. As i'm fairly new to programming, could somebody please explain the differences between Pygame and Tkinter, and which should be used in what occasion. Which would be a better choice for a chess engine GUI. Thank you very much in advance. </p>
0non-cybersec
Stackexchange
The lyrics and guitar chords for the Moonmen song, for anybody who wants them.. Capo 1st fret F______________\_C____________Em the world can be one together, cosmos without hatred F________\_C______________Em stars like diamonds in your eyes F_______________\_C________________Em the ground can be space space space space space \_\_\_\_F___________\_C_________________E7 with feet marching towards a peaceful sky C______________\_Em_____________G all the moonmen want things their way C______________\_Em_____________F but we make sure they see the sun C_______________E7 goodbyyyyyyyyyye moonmen we say F_______________Fm goodbyyyyyyyyyye moonmen C goodbyyyyyyyyyye - SHUT THE FUCK UP ABOUT MOONMEN - Feel free to give feedback
0non-cybersec
Reddit
The rockets in The Star Spangled Banner were descendants of those developed by the Indians in a war with the British East India Company.
0non-cybersec
Reddit
Nice have terminated the contract of France U18 international Lamine Diaby Fadiga after he stole a €70,000 watch belonging to Kasper Dolberg.
0non-cybersec
Reddit
Is crackling audio during loud scenes at a theater normal?. I went to see Avengers: Infinity War at an IMAX over the weekend and they played it louder than I would've liked. To me, it sounded like the audio was "crackling" when things got loud, like there was a buzzing behind the sound that made me want to cover my ears. Is that what distortion sounds like or is something wrong with my hearing? I've noticed the same kind of noise before when they played it way too loud. I'm considering buying a pair of ear plugs for movies. If anyone could recommend me some, I would appreciate it. I hope I have enough characters for that annoying 300 character count...
0non-cybersec
Reddit
eclipse: change jre that is used to run ant. <p>How do I change the JRE (for example, to go from a from 64bit to 32bit version) that is used to run ant from inside eclipse? </p>
0non-cybersec
Stackexchange
Why is 'The Subtle Art of Not Giving a Fuck' so popular?. I don't read books almost at all, I've read like 3 books in the last 5 years, but I wanted to get into audiobooks and today I decided to start with 'The Subtle Art of Not Giving a Fuck'. The first chapter starts with a short trivia about Charles Bukowski's life and I thought, "oh, ok, this sounds like it's leading somewhere interesting" but then it became an absolute cringefest and continued to be one throughout the first chapter. Just forced jokes and baseless babbling about stuff that doesn't make sense if you just pause to think about it for more than 2 seconds. Does it go on like this in all the chapters? Because I'd rather waste time on some actual fiction then, rather than fiction categorized as self-help. Are other self-help books like this? I know I probably sound edgy, but I would just like to know what clicks with people when they read this book.
0non-cybersec
Reddit
On the (Im)possibility of Obfuscating Programs.
1cybersec
Reddit
Proof regarding differentiability of $f$ and $g$. <p>Could someone give me feedback regarding whether or not I'm on the right track for this proof? Thanks in advance!</p> <blockquote> <p>Suppose that $ f,g\colon \mathbb{R}\to \mathbb{R}$ are each differentiable and that: <br> <br>$\forall$ $x$ $\in \mathbb{R}$ $f'=g$. <br>$\forall$ $x$ $\in \mathbb{R}$ $g'=-f$. <br>$f(0)=0$. <br>$g(0)=1$. <br> <br>Show that $\forall$ $x$ $\in \mathbb{R}$ $f^{2}+g^{2}=1$.</p> </blockquote> <p><br><br> This is what I was thinking: We know $ f,g\colon \mathbb{R}\to \mathbb{R}$ are each differentiable. Consequently by a theorem in the book, the product $fg$ is differentiable. More specifically, $(fg)'=f'g+g'f$. Since $f'=g$ $\forall$ $x$ $\in \mathbb{R}$ and $g'=-f$ $\forall$ $x$ $\in \mathbb{R}$ we have that $(fg)'=g^{2}-f^{2}$. <br><br>And now here lies my problem. I was trying to come up with different ways that sums or products would give me $g^{2}+f^{2}$ and then I could use the final two conditions. But haven't been able to do so. Am I on the right track? Or am I not making any sense? </p>
0non-cybersec
Stackexchange
Various Benefits of Budget dedicated hosting and Litespeed Hosting.
0non-cybersec
Reddit
The things people will do just to get that perfect picture.
0non-cybersec
Reddit
After 6 years of lifting, I decided to write a Beginner's Guide with my best advice to send to friends who don't know where to start. I tried to be comprehensive in covering everything I know + love about weightlifting to motivate people to get into it with a head start. Check it out! Anything I should add? [So you want to lift weights? Part 1: My Journey and Where You Should Start](http://ryanio.com/2014/weight-lifting-journey/) [So you want to lift weights? Part 2: The Program – Rippetoe’s Starting Strength](http://ryanio.com/2014/rippetoes-starting-strength/) [So you want to lift weights? Part 3: The 6 Principles for Success, and the Results You Should Expect](http://ryanio.com/2014/weightlifting-6-principles-for-success/)
0non-cybersec
Reddit
3D rotation around arbitrary axis. <p>I have a 3D rotation matrix, R which is a combination of rotations around x-axis , y-axis and z-axis. I know how to calculate n(the arbitrary axis around which a point rotated about theta angle and this rotation is equal to rotating that point using the 3D matrix above) i.e. by finding the eigenvector of R corresponding to the eigenvalue equal to 1. How can I calculate theta, the angle to rotate about the arbitrary axis?</p>
0non-cybersec
Stackexchange
$B$ spans algebraically $E$ over $F$. <p>Let $E/F$ be an extension, $S=\{a_1,\ldots,a_n\}\subseteq E$ algebraically independent over $F$ and $S\subseteq T$, $T$ a subset of $E$, that spans $E$ algebraically over $F$. </p> <p>I want to show that there exists a set $B$ between $S$ and $T$, that is a trancendental basis of $E/F$, as follows: </p> <p>Let $T\setminus S=\{\beta_1,\ldots ,\beta_m\}$. </p> <p>If $T=\varnothing$, then $B=S$ is the trancendental basis. </p> <p>Otherwise, we define $S_0=S$ and for $i=1,\ldots ,m$</p> <p>$S_i=\left\{\begin{matrix} S_{i-1} &amp; \text{ if } \beta_i \text{ is algebraic } /F(S_{i-1})\\ S_{i-1}\cup \{\beta_i\} &amp; \text{ if } \beta_i \text{ is not algebraic } /F(S_{i-1}) \end{matrix}\right.$ </p> <p>I want to show that that $B=S_m$ is the trancendental basis of $E/F$. </p> <p>$$$$ </p> <p>I have shown that $S_m$ is $F$-algebraically independent. </p> <p>So, it is left to show that $S_m$ spans algebraically $E$ over $F$. Could you give me some hints how we could show that? </p> <hr> <p>$$$$ </p> <p><strong>EDIT</strong>: </p> <p>To show that $S_m$ spans algebraically $E$ over $F$, we have to show that $E/F(S_m)$ is algebraic, right? </p> <p>We have that the extension $E/F(T)$ is algebraic. </p> <p>It holds that $S_m\subseteq T$, or not? </p> <p>Do we know if $F(S_m)\leq F(T)$ or $F(T)\leq F(S_m)$ ? </p>
0non-cybersec
Stackexchange
Don't forget! Today is the continuation of TwitchPlaysDnD on my Game stream. 2pm CST! Link inside.. Don't forget to swing by and check it out. 2pm CST. The stream can be found at www.twitch.tv/gentlemangames Remember, the more people we get in there, the more people that will see the stream and join, and the more people that join makes the game that much more fun to play! I hope to see you there! EDIT* Thank you everyone, THank you for coming out!
0non-cybersec
Reddit
Move all Android development directories into single directory on Linux. <p>By default Android Studio and related Android development tools create many different directories in $HOME directory: .android, .AndroidStudio4.0, .gradle and .java .<br /> My goal is to move them all into single directory $HOME/Android/ and keep $HOME directory clean. So far I've set following exports in .bash_profile:</p> <pre><code>export ANDROID_SDK_HOME=$HOME/Android/ export GRADLE_USER_HOME=$HOME/Android/.gradle </code></pre> <p>And custom paths in idea.properties:</p> <pre><code>idea.config.path=${user.home}/Android/.AndroidStudio4.0/config idea.system.path=${user.home}/Android/.AndroidStudio4.0/system </code></pre> <p>While bigger files end up in new directory, still .android, .AndroidStudio4.0, .gradle and .java directories are re-created in $HOME directory, some even have files. Is there any way to prevent AndroidStudio creating those directories and messing up my $HOME?</p>
0non-cybersec
Stackexchange
Why isn&#39;t the directory size the same as the sum of its children for Windows 10. <p>I have a directory that contains a ton of music that it showing weird file sizes in Windows 10. When I click on the directory containing all the music, it shows 809GB and over 164k files. When I select all the folders and files within that directory to check the sum of their size, it shows only 9.14GB and 2k files. The difference here is staggering.</p> <p>Though this question is very similar to <a href="https://superuser.com/questions/304474/why-dont-the-sizes-of-my-folders-add-up-to-the-size-of-my-hard-drive-in-windows#_=_">https://superuser.com/questions/304474/why-dont-the-sizes-of-my-folders-add-up-to-the-size-of-my-hard-drive-in-windows#<em>=</em></a> it differs in the fact that I am sure I have selected all hidden files, and I double checked the filesize on Linux which confirms that the real filesize of the Music directory is around 9.14GB. I attempted to do the <code>cleanmgr</code> but no change was made to the parent directory's size</p> <p><a href="https://i.stack.imgur.com/joLJK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/joLJK.png" alt="enter image description here"></a> Note that the <code>Old Music</code> directory in <code>C:\Sorted Drive\Music\Old Music</code> is 809 yet all of the files in <code>C:\Sorted Drive\Music\Old Music\Old Music</code> is only 9.14GB</p> <p>Update: I've change some folder settings to see if some extra hidden system files weren't showing up when selecting all sub directories and files but there was no change.</p> <p>I've moved the files to different folders and found that the filesize of the parent directory changes to some random value. Even changing the name of the parent directory can change the filesize</p>
0non-cybersec
Stackexchange
Faster RSpec with JRuby. <p>I'm pretty new to the whole JRuby world. I'm using RSpec on a pretty big test suite. I'd like to be able to run the specs frequently but the JVM takes so long to startup it's becoming a real time drain.</p> <p>Is there a way to keep the JVM running? or a way to get specs to run faster with JRuby?</p>
0non-cybersec
Stackexchange
My favorite so far.
0non-cybersec
Reddit
Finding extrema points with lagrange multipliers. <p>Using lagrange multipliers, find all the extrema points of the function $f(x,y) = x^2 + (y-b)^2$ subject to the constraint $y = x^2$. </p> <p>Using the fact that critical points occur at $\triangledown f(x,y) = (0,0)$ and so $(2x, 2y-2b) = (0,0)$. So an extrema at $(0,b)$. Should the point $(0,b)$ be included as an extrema since the question asks to use lagrange multipliers to find them? Or is this point outside the constraint $y=x^2$. I know that there are more points that can be found using lagrange multipliers.</p> <p>Also my lecturer said by giving the parametrization of the parabola $y=x^2$ and substituting this into $f(x,y)$, we can find whether each point found is a local max or a local min. How is this done? </p>
0non-cybersec
Stackexchange
Preseason week 4 Patriots vs Giants : Live Streaming Online - Patriots Game.
0non-cybersec
Reddit
How to properly use class extensions in Swift?. <p>In Swift, I have historically used extensions to extend closed types and provide handy, logic-less functionality, like animations, math extensions etc. However, since extensions are hard dependencies sprinkled all over your code-base, I always think three times before implementing something as an extension.</p> <p>Lately, though, I have seen that Apple suggests using extensions to an even greater extent, e.g. implementing protocols as separate extensions.</p> <p>That is, if you have a class A that implement protocol B, you end up with this design:</p> <pre><code>class A { // Initializers, stored properties etc. } extension A: B { // Protocol implementation } </code></pre> <p>As you enter that rabbit-hole, I started seeing more extension-based code, like:</p> <pre><code>fileprivate extension A { // Private, calculated properties } fileprivate extension A { // Private functions } </code></pre> <p>One part of me likes the building-blocks you get when you implement protocols in separate extensions. It makes the separate parts of the class really distinct. However, as soon as you inherit this class, you will have to change this design, since extension functions cannot be overridden.</p> <p>I think the second approach is...interesting. Once great thing with it is that you do not have to annotate each private property and function as private, since you can specify that for the extension.</p> <p>However, this design also splits up stored and non-stored properties, public and private functions, making the "logic" of the class harder to follow (write smaller classes, I know). That, together with the subclassing issues, makes me halt a bit on the porch of extension wonderland.</p> <p>Would love to hear how the Swift community of the world looks at extensions. What do you think? Is there a silverbullet?</p>
0non-cybersec
Stackexchange
Swimming With Whale Sharks in Cancun.
0non-cybersec
Reddit
My local tech store is getting a bit too excited.
0non-cybersec
Reddit
Window title centered fluxbox. <p>I'd like to center the window titles in fluxbox. Now they are all at the right side.</p> <p>How can I change this option? <img src="https://i.stack.imgur.com/asABP.jpg" alt="enter image description here"></p>
0non-cybersec
Stackexchange
Find intersection of two infinite sets. <p>I tried searching for this problem, but I couldn't really find exactly what I was looking for. I have two sets A and B which I need to find A∩B. We are assuming that the Universal set is all Real numbers.</p> <p>Set A is the set $\{x \in \mathbb R \mid x &lt; -3 \;\;\text{or}\;\; x &gt; 1\}.$</p> <p>Set B is the set $\{x \in \mathbb R \mid x &lt; 0 \;\;\text{or}\;\;x &gt; 1\}$.</p> <p>I'm thinking that the answer would simply be the set B since all numbers in B are in the set A, but I'm not totally sure. Could anyone point me in the right direction?</p>
0non-cybersec
Stackexchange
What are the differences between these two typedef styles in C?. <p>I'm curious what the difference here is when typedefing an enum or struct. Is there any difference semantically between these two blocks?</p> <p>This:</p> <pre><code>typedef enum { first, second, third } SomeEnum; </code></pre> <p>and this:</p> <pre><code>enum SomeEnum { first, second, third }; typedef enum SomeEnum SomeEnum; </code></pre> <p>Same deal for structs. I've seen both in use, and they both seem to do the same thing in C or Objective-C. Is there a real difference or is it just a preference for which style you can use?</p>
0non-cybersec
Stackexchange
Make remote branch take precedence during a merge conflict. <p>I have two branches, <code>current</code> and <code>master</code>. <code>current</code> is dozens of commits ahead of <code>master</code> so I think it's time to merge.</p> <p>I change to <code>master</code></p> <pre><code>git checkout master </code></pre> <p>I attempt to merge with <code>current</code></p> <pre><code>get merge current </code></pre> <p>I get about 20 conflicts of this nature:</p> <pre><code>CONFLICT (rename/add) &lt;remote&gt; CONFLICT (rename/add) &lt;remote&gt; </code></pre> <p>First question, how do I make the remote branch, <code>current</code> take precedence here? I'm working my way through all the conflicts with <code>git mergetool -t meld</code> and I'm clicking away, selecting all the remote changes over the local changes. </p> <p>So how can I do this with one command? I want remote to take presence.</p> <p>Also, why have these conflicts occurred? I would have thought it obvious that the latest branch would contain the changes we want to keep?</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to 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
TIL in 1996 NFL Star Deion Sanders was arrested for trespassing by fishing on a lake owned by the Southwest Florida International Airport..
0non-cybersec
Reddit
Photo of Geoffrey the Giraffe leaving an empty Toys "R" Us store goes viral.
0non-cybersec
Reddit
'If English football is short of coaches, why are badges cheaper in Germany? - Every time England fail at a tournament we hear that grassroots football needs more investment. Reducing the cost of coaching badges would be a good start.'.
0non-cybersec
Reddit
Movie theater goers of Reddit, have you ever walked out during the movie? If so, what movie was it and why did you walk out?.
0non-cybersec
Reddit
The Pope said priests who abuse children are "tools of Satan." Wrong: They are "tools of the Church." -- "As usual when it comes to actual reform, the Pope and the Catholic Church are all talk.".
0non-cybersec
Reddit
Raising the EOS lip balm! New ones always look so funny.. So round :) What flavor would you recommend?.
0non-cybersec
Reddit
setup.py: renaming src package to project name. <p>Let's say you have a project called <code>proj</code> and in this project you have the following structure:</p> <pre><code>proj/ dists/ doc/ src/ __init__.py xyz.py abc.py test/ setup.py </code></pre> <p>As you can see all the content of your project is in the <code>src</code> subfolder. How to go about making a distutils distribution package out of the <code>src</code> folder?</p> <p>My naive idea, following <a href="http://docs.python.org/2/distutils/setupscript.html" rel="noreferrer">the tutorial</a>, would've been to write the <code>setup.py</code> like this:</p> <pre><code>#omitting basics setup( name='proj', packages=['src'], package_dir={'proj':'src'} ) </code></pre> <p>But after installing the resulting package to my system, I still have to import <code>src.xyz</code> and not <code>proj.xyz</code>, which would've been the goal and the expected result. </p>
0non-cybersec
Stackexchange
Data is not properly displayed in VueJS. <p>I have a small problem with my VueJS code, in the section "Output : Compressed GS1 Digital Link URI"</p> <p><a href="https://i.stack.imgur.com/IwGmH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IwGmH.png" alt="enter image description here"></a></p> <p>When there is no result, it should have nothing display like this (I have removed manually) : <a href="https://i.stack.imgur.com/DVYZK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVYZK.png" alt="enter image description here"></a></p> <p>I think I should put an if statement and only display the result if there is something. Here is my code :</p> <pre><code>&lt;input id="uncompressedDigitalLinkInput" class="digitalLink" type="text" v-model="uncompressedDigitalLinkInput"&gt; &lt;td class="charCount"&gt;{{uncompressedDigitalLinkInput.length}}&lt;/td&gt; </code></pre> <p>What do you think ?</p> <p>Thanks for your help :)</p>
0non-cybersec
Stackexchange
I accidentally hit my finger with a hammer, now the bruise looks like a shoeprint.
0non-cybersec
Reddit
[Cosplay] Ryuk and Light (Death Note).
0non-cybersec
Reddit
How to prove the next statement?. <p>Let's have the parabola $$ 4ay = x^{2}. $$ It rolls along the x-axis. How to prove that it's focus moves along the trajectory of the catenary, $$ y = a\cdot ch \left(\frac{x}{a}\right)? $$</p>
0non-cybersec
Stackexchange
Cron job in a different timezone. <p>Is there a way of setting up a cronjob for a specific timezone?</p> <p>My shared hosting is in USA (Virginia) and I am in UK. If I set a cron job to be executed at 1600 hrs every friday, then it will execute when its 1600 in Virginia.</p> <p>I was wondering if I can setup my cronjob in such a way that it understands which timezone to pick. I am not too worried about daylight saving difference.</p> <p>I have asked my shared hosting providers about it and they said I should be able to set the timezone in some cron ini files, but I could not find any.</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
Home cleaning services in mumbai.
0non-cybersec
Reddit
Intel Rapid Storage RAID10 volume fails after GPU installation. <p>So, after I successfully installed a GPU in my server and started the server again, the RAID volume failed to initialize.</p> <p>I have 4 HDD's (2TB each, same model) in RAID10 and this RAID has been working without issues for at least 3 years straight. When I boot, this is what I see inside the Rapid storage manager:</p> <p><a href="https://i.stack.imgur.com/zlrDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zlrDQ.png" alt="enter image description here"></a></p> <p>So it seems it can still see all drives, but two of the drives dropped out of the array for some reason.</p> <p>After digging a bit deeper, I realized that the serial number on the missing HDD's seems to have dropped the "W" at the start of the Serial number: <a href="https://i.stack.imgur.com/edkBN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/edkBN.png" alt="enter image description here"></a></p> <p>Could it be, that installing the GPU changed the internal ports of the HDD's? I never unplugged any HDD during the process and they are all still connected to the same SATA plug on the motherboard.</p> <p>I have to fix this as fast as possible, anyone of you know a solution of how I can "remap" those HDD's to be inside the array (without loosing any data)?</p>
0non-cybersec
Stackexchange
IAmA Producer at NPR's Fresh Air with Terry Gross. I'm Melody -- I'm an associate producer at [Fresh Air with Terry Gross](http://freshair.npr.org). Feel free to ask me anything about the show or public radio in general. [More about what I do for the show](http://melodykramer.tumblr.com/about) Proof: [a picture of me in front of my desk!](http://farm8.staticflickr.com/7273/7515742376_8237d0842e.jpg) [Another picture to prove it is me!](http://www.niemanlab.org/2012/04/meet-the-most-popular-woman-at-nprs-fresh-air-and-its-not-terry-gross/) Edit: I made [a master roster of lots of shows by topic,](http://nprfreshair.tumblr.com/post/25656730342/fresh-air-master-roster-now-bookmarkable-and) if you'd like to listen to certain topic areas.
0non-cybersec
Reddit
That poor child....
0non-cybersec
Reddit
List of adb devices in command prompt not showing. <p>I've been trying to run adb on my laptop. At first, it just wouldn't run at all. Now, after trying different fixes, I've gotten the daemon to start, but it won't list my phone as an attached device. I don't know if it's a driver issue or a cable issue or something else. I'm honestly pretty stumped.</p>
0non-cybersec
Stackexchange
Chrome speed dial. <p>I recently signed up for Trello (excellent on-line collaborative to-do lists) and added trello.com to my speed dial in Chrome (I'm on the latest version).</p> <p>Even though I've visited the site several times using the speed dial ("Preview is not ready, click to create preview"), it hasn't created a preview yet, any ideas?</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
OSCP. Hello folks I have 3 months if experience working as a associate Security Consultant and i haven't done any of the certifications yet. I am thinking to do oscp where can i start from for preparation? I am pretty good with web app pentesting
1cybersec
Reddit
django admin &quot;add page&quot; initial datetime from GET parameters. <p>I want to create a link which opens the django admin add page of a model with some fields pre filled.</p> <p>I checked that it is possible to add parameters to the GET dictionary of the add form, as in:</p> <pre><code>&lt;a href='/admin/myapp/mymodel/add?name=John'&gt;add new mymodel with name John&lt;/a&gt; </code></pre> <p>(actually I get the url with {% url 'admin:myapp_mymodel_add' %} but this is just to be explicit).</p> <p>Now this works fine with numerical values, text values and foreign keys. But what about DateTime fields? When I try to pass such a field (I tried many formats like for example "2014-05-09 10:10:00") I always get a "server error" complaining that:</p> <blockquote> <p>'unicode' object has no attribute 'date'</p> </blockquote> <p>in the line of code:</p> <blockquote> <p>django/forms/widgets.py in decompress, line 902</p> </blockquote> <pre><code> def decompress(self, value): if value: value = to_current_timezone(value) return [value.date(), value.time().replace(microsecond=0)] ... return [None, None] </code></pre> <p>where the variable "value" has the value I'm passing on the URL...</p> <p>Question 1. I would assume that server code should not raise an exception depending on values passed by the user... isn't this a bug in the django libraries?</p> <p>Question 2. How can I solve my problem i.e. pass an initial datetime through GET parameters to the admin "add" page of a model?</p>
0non-cybersec
Stackexchange
Existence of two disjoint closed sets with zero infimal distance. <p>Are there two closed sets $A,B\subset\mathbb{R}^2$ with the following properties?</p> <ul> <li>$A\cap B=\emptyset$</li> <li>$\forall \epsilon&gt;0$ there exist $a \in A$ and $b\in B$ such that $\|a-b\| &lt; \epsilon$ </li> </ul>
0non-cybersec
Stackexchange
opening doc and pdf files in terminal linux. <p>I have installed in my ubuntu 16.04 laptop , Abiword, libreoffice and xpdf. On GUI ,using either libreoffice or abiword , I can open my .doc and .pdf files without issues even when I start the terminal while still with GUI. However when I toggle into pure terminal console, using abiword , evince or lowriter commands to open any of the files, below are the messages I get. Can someone please help me fix this? even the xpdf command gives similar result.:</p> <pre><code>eugene@eugene-XPS-M1330:~/Documents$ abiword Auntiemi1.doc Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused ** (abiword:2020): WARNING **: clutter failed 0, get a life. Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused No DISPLAY: this may not be what you want." eugene@eugene-XPS-M1330:~/Documents$ evince Auntiemi.pdf Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused Cannot parse arguments: Cannot open display: " </code></pre>
0non-cybersec
Stackexchange
Assuming your team has cap space, and that you even want him, what is the max you are willing to pay to get Avery Bradley?. Just a season ago he was one of the best 3&D wings in the league. Seems like his stock has seriously dropped. Now he's a FA. Is a player like him someone you'd want on your team? And for how much? I would love to have him but no cap space for the Blazers.
0non-cybersec
Reddit
What age did you start caring a lot about how you look and clothes in general?.
0non-cybersec
Reddit
What is a mapping object, according to dict type?. <p>The <a href="https://docs.python.org/2/library/stdtypes.html#dict" rel="noreferrer">documentation</a> lists 3 ways for creating a dict instance:</p> <pre><code>class dict(**kwarg) class dict(mapping, **kwarg) class dict(iterable, **kwarg) </code></pre> <p>What exactly is a <em>mapping</em> here? What's the minimal interface required for <code>dict(mapping)</code> to work?</p>
0non-cybersec
Stackexchange
Count deleted files with interactive rm (rm -i). <p>I want to count number of interactively removed files and directories:</p> <pre><code>for f in /tmp/mydir/* ; do rm -ir "$f" done </code></pre> <p>How to do it in most concise/elegant way?</p> <hr> <p><em>Example:</em></p> <pre><code>abc@def:/tmp/mydir$ tree . ├── 1 ├── 2 ├── 3 ├── 4 ├── A │   ├── 1 │   ├── 2 │   └── 3 ├── B │   ├── 1 │   └── 2 └── C 3 directories, 9 files </code></pre> <p>If all answers are <strong>y</strong> (yes), then I expect answer:</p> <ul> <li><strong>7</strong> (count: <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>A</code>, <code>B</code>, <code>C</code>) or:</li> <li><strong>10</strong> (count: <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>A/1</code>, <code>A/2</code>, <code>A/3</code>, <code>B/1</code>, <code>B/2</code>, <code>C</code>).</li> </ul> <p>Both versions are welcome.</p> <p>I know that I can count files/directories before and after running interactive <code>rm</code>, but this is not the case because in fact I iterate through files stored in text file.</p>
0non-cybersec
Stackexchange
Since Everyone Is Into Komodo Dragons Recently... Deer Being Eaten Alive By Group of Komodo Dragons.
0non-cybersec
Reddit
Specify different snapcraft output folder. <p>I am taking my first steps with snapcraft, and each time I am running <code>snapcraft</code> in a folder with <code>snapcraft.yaml</code>, it generates all the build, stage, prime folders.</p> <p>Is there a way to specify that I want these folders to be tucked away inside one folder (like ./tmp)?</p>
0non-cybersec
Stackexchange
Nom nom.
0non-cybersec
Reddit
I'm new, and I need help on organizing a routine. Hi, I'm new, I'm 20 years old and it's been a while since I've done any sort of organized training (used to be good at basketball, stopped playing since college). I recently tried to jump over a high fence, couldn't, hit my nose as I fell, it frustrated me so I'm now here. I have some questions: >If your goals are non-specific, strength-based, hypertrophy-based (growing muscle) or fat loss, do the recommended routine. My goals are mainly agility-based, I'd like to be able to move around more easily, to be less stiff, to have a nice speed, flexibility and reflexes. This encompasses (but doesn't revolve around) building muscles. I'm seeing all sorts of different mini-routines or branches and I have no idea how to follow them, my questions: I'm originally doing this in order to improve my shape before learning a martial art. Is this a good idea? Or should I learn as I go? Between the Recommended Routine, Starting Stretches and Molding Mobility (isn't this the exact same as RR's dynamic stretches?), which is when? RR 3 days a week and stretching every day? Where does cardio fit in?
0non-cybersec
Reddit
Redundant resource referances in multiple R.java causes DexIndexOverflowException. <p>I have multiple library projects and they all have dependency to Support Library. My application has dependency to these multiple library projects. Every library project contains references to support library's resources in their <em>R.java</em> file. This inflates the field ID count because of redundancy.</p> <p>My app gets </p> <blockquote> <p>DexIndexOverflowException: field ID not in [0, 0xffff]: 65536</p> </blockquote> <p>because of this redundant <em>R.java</em> references. </p> <p>Because of this my app has 47k methods while 65k field ids.</p> <p><strong>Edit:</strong></p> <p>I won't use multi-dex, it is not a solution to my problem. I want to shave redundant field IDs.</p> <p>The question is not about how to work around the problem, the question is about how to get rid of the redundant field IDs. Using multi-dex won't remove the redundant field IDs.</p>
0non-cybersec
Stackexchange
I know this is overdone, but Imgur now starting to force people to download an app to view content??.
0non-cybersec
Reddit
Subgroups of a direct product. <p>Until recently, I believed that a subgroup of a direct product was the direct product of subgroups. Obviously, there exists a trivial counterexample to this statement.</p> <p>I have a question regarding this. It is threefold:</p> <ol> <li><p>I hear that a theorem called Goursat's lemma states characterization of subgroups of a direct product. I read it on Lang's Algebra, but its statement is a bit counterintuitive and I do not know how to use it to solve problems. I would be grateful if you could give a hint regarding this lemma.</p></li> <li><p>I had the aforementioned false belief when I tried to solve <a href="https://math.stackexchange.com/questions/470209/the-structure-of-mathbb-z-525-mathbb-z-times">this problem</a>, and it seemed to work in this specific problem. When is the generally false statement hold? (Or is my reasoning in concluding the answer to the problem is 8 flawed?)</p></li> <li><p>I have problems similar to the previous one, namely, counting the subgroups of $\Bbb Z/p\Bbb Z \times \Bbb Z/p \Bbb Z$ and $\Bbb Z/p^2\Bbb Z \times \Bbb Z/p^2 \Bbb Z$, where $p$ is a prime number. How can I use the previous considerations to solve this problem?</p></li> </ol> <p>I would appreciate your help.</p> <p>EDIT: I fixed a typo in the last problem.</p> <p>EDIT 2: The problem I mentioned in 2. is actually about the number of <em>elements</em> of some order, not that of subgroups. (I forgot about that when I wrote this question.) I am still interested in the question stated in 2., though.</p>
0non-cybersec
Stackexchange
Identity seed increased when using IDENTITY_INSERT. <p>Running this snippet on SQL Server 2008 produces different result than on SQL Server 2014. I need them to produce the same result.</p> <p>My scenario is that I am writing unit tests (using tsqlt) and this code is part of a huge procedure which I am trying to test. In my test code I can do anything because that code will never end up in production. This "bug" does no damage in production, but is giving me problems when writing my tests. Meaning, I do not want to change the code, only the tests.</p> <p>My local dev environment is SQL Server 2014 but some of our CI environments are still SQL Server 2008.</p> <ul> <li>My first question is if there is any way to avoid this (bug) on 2008?</li> <li>My second question is if there is any way to make 2014 behave the same as 2008 and thus making the tests pass on both 2008 and 2014. Any setting or trace flag or hack?</li> </ul> <p>My current hack is to reseed the table to 0 (instead of 1) in case server is 2008. I do no not like this as I will need to change it or remove it when our environments are upgraded.</p> <pre><code>IF CHARINDEX('2008', @@VERSION) &gt; 0 BEGIN -- HACK to fix identity bug in SQL 2008. DBCC CHECKIDENT('...peter', RESEED, 0); END </code></pre> <p>Troublesome code:</p> <pre><code>IF OBJECT_ID('tempdb..#peter') IS NOT NULL DROP TABLE #peter; CREATE TABLE #peter(ID INT IDENTITY(1, 1), VALUE CHAR(10)); SET IDENTITY_INSERT #peter ON; INSERT INTO #peter( ID, VALUE ) VALUES ( -1,'Thing' ); -- Explicit negative ID value inserted here SET IDENTITY_INSERT #peter Off; INSERT INTO #peter( VALUE ) VALUES ( 'Stuff' ); SELECT * FROM #peter; </code></pre> <p>Result in SQL Server 2014:</p> <p><img src="https://i.stack.imgur.com/FHMdI.png" alt="2014"></p> <p>SQL Server 2008:</p> <p><img src="https://i.stack.imgur.com/w1fFK.png" alt="2008"></p> <p>Server versions:</p> <pre><code>Microsoft SQL Server 2008 (SP4) Microsoft SQL Server 2014 </code></pre>
0non-cybersec
Stackexchange
Does JVM garbage collect objects being referenced by local variables which are no longer used?. <p>As far as I know, a method's local variable is located in a stack frame in an executing thread and a reference type of a local variable only has a objects' reference, not the object itself. All of objects in JVM are located in a heap space. </p> <p>I want to know that objects referenced by local variables in a method being executed are never garbage collected until the end of the method execution. (without using java.lang.ref.WeakReference and SoftReference.)</p> <p>Are they garbage collected? or never? Is there compiler's optimization to this type of stuff?</p> <p>(If they are never garbage collected, this means it may be needed to assign null to variables no longer used when executing big methods which take long time.)</p>
0non-cybersec
Stackexchange
Keyword not supported on sqlconnection string query. <p>I need your help (eyes) to see where am I wrong here.</p> <p>So, I'm having this error...</p> <p><a href="https://i.stack.imgur.com/P468F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P468F.png" alt="enter image description here"></a></p> <p>Here's what I'm doing...</p> <p>A Logged In User, has a Role which has some permissions or not.</p> <p>When he enters a form, the application checks for User permissions based on his Role. In this case, it checks for Navigation permissions and disabled the "Add New" button which disallow user to add new data.</p> <p>I must say that this query or similar, works very well in other situations, and compiled into SQL Query, it return the value 0 or 1 correctly.</p> <p>And here's the code in the Load Form.</p> <pre><code>Extensions.UserInfo.ActiveButtons(Extensions.UserInfo.CurrentLoggedUser); </code></pre> <p>The ActiveButtons is an static method which disables specific button, based on Logged In User...</p> <pre><code>public static bool ActiveButtons(string user) { if (CanNavigate(CurrentLoggedUser) == true) { foreach (var button in Buttons) { if(button.Name == "novoToolStripMenuItem") { button.Visible = false; } else { button.Visible = true; } } return true; } else { foreach (var button in Buttons) { button.Visible = false; } return false; } } </code></pre> <p>The CanNavigate method, checks for permission on Role Table. Her's the code...</p> <pre><code>public static bool CanNavigate(string user) { bool result; string str = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString.ToString(); string query = "SELECT tblRole.Navigate FROM tblRole INNER JOIN tblUser ON tblRole.RoleID = tblUser.RoleID WHERE tblUser.Username = @Username"; using (var con = new SqlConnection(query.ToString())) { using (var cmd = new SqlCommand(str, con)) { con.Open(); cmd.Parameters.AddWithValue("@Username", user); result = (bool)cmd.ExecuteScalar(); return result; } } } </code></pre> <p>And, has you see, the error is in this method on query SqlConnection...</p> <p>So, what's wrong with it?</p> <p>On Debug, the user is getting the correct CurrentLoggedUser!</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
How to split columns into 2. <p>I want the first row to stay normal and then every row after that should be split into 2 columns. I've done it on Microsoft word to show exactly what I want. I tried used multicolumn but couldn't get it to work correctly.</p> <p><a href="https://i.stack.imgur.com/Qw4N1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qw4N1.png" alt="Table"></a></p> <pre><code>\begin{center} \begin{tabular}{ |c|c|c|c|c|c|c|c| } \hline B &amp; B 1 &amp; B 2 &amp; B3 &amp; B4 &amp; B5 &amp; B6 &amp; B 7 \\ \hline 1 &amp; 12 &amp; 12 &amp; 12 &amp; 12 &amp;12 &amp;12&amp; 12\\ \hline 2 &amp; 12&amp; 12&amp; 12&amp; 12&amp;12&amp; 12&amp; 12\\ \hline 3 &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\ \hline 4 &amp; &amp; &amp; &amp; &amp; &amp; &amp;\\ \hline 5 &amp; &amp; &amp; &amp; &amp; &amp; &amp;\\ \hline 6 &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\ \hline 7 &amp; &amp; &amp; &amp; &amp; &amp; &amp;\\ \hline \end{tabular} \end{center} </code></pre>
0non-cybersec
Stackexchange
‘Twin Peaks: The Return’: How David Lynch Has Forged New Territory With a Groundbreaking Achievement.
0non-cybersec
Reddit
Why do some Objective-C file names have a minus or plus sign in their name. <p>In a library I want to add to my project, there is a file called NSString-Base64Extensions.h (with NSString-Base64Extensions.m) and one called NSString+PECrypt.h (with NSString+PECrypt.m).</p> <p>What does this signify?</p>
0non-cybersec
Stackexchange
Is there a thing named a &quot;spiral plane&quot; which is a plane but it&#39;s spiral?. <p><img src="https://i.stack.imgur.com/Gc4XF.png" alt="approximate representation for spiral plane extending for infinity"> Hello, I'm wondering if there is such thing like this. Is there a plane which is not flat but spiral and extending for infinity? I have drawn a representation for what I mean but it's not thorough it's getting narrower inside it and getting further apart from the outside and it extends for infinity and extends from either sides? do you understand me?</p>
0non-cybersec
Stackexchange
This nurse opened up about her 'worst shift' yet, exposing the heartbreaking reality of health care workers fighting the pandemic.
0non-cybersec
Reddit
Is there a notation for the smallest number $n$ that satisfies property $P$?. <p>Is there some logical notation that means "the smallest <span class="math-container">$n$</span> that satisfies <span class="math-container">$P$</span>", e.g. <span class="math-container">$$f(x) = \text{the smallest $n \in \Bbb{Z}$ such that $xn \ge x+n$}. $$</span></p>
0non-cybersec
Stackexchange
Is my boyfriend(22/m) getting too comfortable?. My boyfriend is super nice but he is not very mindful and ends up doing things that make you think "*REALLY???"* like at least 3 times a day. We talk about how a relationship should be 50/50 but I cook 100% of the time because he doesn't know how to and if I don’t feel like cooking then I just get takeout. I feel like if I want to enjoy nice things(dinner/fun dates) I have to make it happen and with that means that he usually gets to enjoy it too and if I am too tired to put in the effort then he just "goes with the flow" so we just end up eating like some kind of instant food or takeout. For the most part, it is little things that definitely don't deserve a break up and this was the excuse I used over and over again the first few months of our relationship but now we are approaching 2 years and I'm at a crossroads whether or not it's worth it to stay. I love him but at this point in my life if I don’t see growth in the relationship I don’t want to waste my time and stay.
0non-cybersec
Reddit
This man, a doctor, has dedicated his life to exposing scientific fraud. He says most studies are B.S..
0non-cybersec
Reddit
Why are strings so slow?. <p>Ever since my very first programming class in high school, I've been hearing that string operations are slower &#8212; i.e. more costly &#8212; than the mythical "average operation." Why makes them so slow? (This question left intentionally broad.)</p>
0non-cybersec
Stackexchange
A double integral into polar coordinates. <p>I have the double integral</p> <p>$$\int^{10}_0 \int^0_{-\sqrt{10y-y^2}} \sqrt{x^2+y^2} \,dx\,dy$$</p> <p>And I am asked to evaluate this by changing to polar coordinates.</p>
0non-cybersec
Stackexchange
Is it rude to interrupt conversations to say hi?. Whenever I travel around campus, I encounter people I know from class. They're often engaging in conversation with one or more other people. I want to say hi to them, but I'm afraid I'll come off as rude by interrupting their conversation. So, instead, I typically just keep on walking. Similarly, whenever I'm having a conversation with someone else and someone I know walks past us, I want to say hi to them but I feel like it would be rude to do that while talking to someone else. The problem with this is that it's harder to establish rapport with people if I don't make an active effort to greet them. Am I having baseless fears? Or is this truly something I should concern myself with?
0non-cybersec
Reddit
Chevre Chaud French Salad. Chèvre chaud is a green salad served with goat cheese on toasted bread. It is often served with a balsamic vinaigrette dressing, but I prefer a lemon juice dressing, so I’m providing recipes for both. Here are the instructions for chèvre chaud for two people. **Ingredients:** * Mixed greens lettuce * Tomato * Baguette * Your favorite goat cheese **Dressing:** * 30mL or 2 tbsp olive oil * 15mL or 1 tbsp balsamic vinegar (or substitute lemon juice, if you prefer) * 5mL or 1 tsp Maille brand Dijon Mustard * Herbs (choose either of the following two options): * You can add an herbes de provence mix, which usually includes thyme, savory, marjoram and oregano and sometimes fennel. You might find a mix with lavender flowers as well; this is an American invention. It does not taste bad, but it is not the original, herbes de Provence blend. * You can go with a simpler herb blend, such as thyme and oregano * Salt and pepper to taste **Method:** Wash your salad until it has no more grit on it (if you bought the pre-washed kind, you may want to go through it to remove the gross wilted, rotten bits that the pre-washed kind is notorious for). After washing your salad, a good salad spinner will help remove the excess water from the salad, so your chèvre chaud doesn’t taste watery. Set aside as you make your dressing in the bottom of your salad bowl and get the toast ready. Slice four pieces of baguette then place in your oven or toaster oven (not suitable for a conventional toaster), just long enough to lightly toast. Then remove and place a slice of your favorite goat cheese on each toast, put back in the toaster oven just long enough to let the cheese melt. Mix the ingredients of your salad dressing in the bottom of your salad bowl. Stir them together vigorously and then toss your salad in there. Serve the salad in two serving bowls or plates. Place sliced tomatoes and the goat cheese toast on top. Serve immediately and enjoy! For a picture, see the "recipe of the week" [on this page.](http://www.frenchcheeseguy.com/?page_id=824)
0non-cybersec
Reddit
You have a very close friendship with your sibling(s) in law. How would/ should a divorce or separation in your marriage affect the relationship between you?.
0non-cybersec
Reddit