overflow

overflow in exp, python

╄→尐↘猪︶ㄣ 提交于 2019-12-13 10:54:05
问题 can't really figure out why this error RuntimeWarning: overflow encountered in exp is showing up. The function I'm trying to implement is: Id = lambda t_u, yp: Is * (np.exp((Vin(t_u) - L*yp)/(n_Ut*Ut)) - 1.0) with values: Vin = lambda t: Vo * np.sin(2*np.pi*w*t) L = 50e-3 # 50 mH Vo = 5 # 5 V w = 50 # 50 Hz Is = 1e-9 # 1 nA Ut = 25e-3 # 25 mV n_Ut = 1.0 The function Id is part of a ODE that I'm trying to solve with Runge-Kutta-Method. EDIT: Methoden\Serien\6>python circuit.py Traceback (most

How to make an own iframe?

邮差的信 提交于 2019-12-13 10:26:23
问题 How to make an iframe, where I can set the source code, not just the src? Is it possible to create one without the src? 回答1: demo //get the iframe var iFrame = document.getElementById('iframe_id'); //this is your reference variable for the iframe body tag var iFrameBody; //get the body if (iFrame.contentDocument ){// FF iFrameBody = iFrame.contentDocument.getElementsByTagName('body')[0]; } else if ( iFrame.contentWindow ){ // IE iFrameBody = iFrame.contentWindow.document.getElementsByTagName(

CSS Dropdown menu isn't shown even though absolutely positioned because of overflow: hidden

混江龙づ霸主 提交于 2019-12-13 09:13:55
问题 I am trying to show a dropdown menu on hover, but I also have to apply an overflow: hidden to the parent element. The result is my dropdown, even though absolutely positioned, isn't visible (because of the overflow: hidden). I reproduced the problem there: http://plnkr.co/edit/2rbaISwvzuKhyPEFpBKD?p=preview (you can hit Edit/Code edit to see the full source code) (small sample) #block-paddle-menu-display-first-level .menu_wrapper.level-2 { position: absolute; visibility: hidden; } #block

Flex box - overflow issue when warp

爷,独闯天下 提交于 2019-12-13 08:56:32
问题 Let's me try to explain the issue. Assume we have 2 flex box boxOrange and boxPurpule who share the full width of a container and stretch to the height of this one. Due to their min-width of 400px , these flex box warp in 'column' on small screen (demonstration in Example 1). If one of the box contain too much content, the box is scrollable (like boxOrange in the demonstration of Example 2). The issue is when their is scrollable content on small screen. I would like the boxOrange keep 50%

Creating CSS divs that read top-bottom, left-right and overflow to the right

血红的双手。 提交于 2019-12-13 08:41:29
问题 I'm trying to get my divs to flow top-to-bottom, but upon reaching the bottom of the window, overflow new divs to the right. See template layout: http://i.imgur.com/nknD0.png I've tried css/javascript combinations of... white-space:nowrap , display: inline , display: table , float:left , and others but can't seem to get it working like in the diagram. 回答1: First http://jsfiddle.net/nPSUM/ Second http://jsfiddle.net/AKW5A/1/ 回答2: Use float: right on each of the divs See fiddle: http://jsfiddle

CSS Flexbox: shrink along cross axis and show scrollbar

五迷三道 提交于 2019-12-13 07:43:57
问题 On my website I have a flexbox container with an image in it (fixed width and height) and a text beside it(no fixed width). How can I prevent the text being from being higher than the image and show a scrollbar when it's higher. Please see also code snippet below. Example: .recipe-article{ display: flex; } .recipe-img { flex: 0 0 265px; } .recipe-text{ flex: 1; max-height: 265px; } <article class="recipe-article"> <img class="recipe-img" src="" width="265" height="265"> <section class="recipe

why is the value of LD_PRELOAD on the stack

蹲街弑〆低调 提交于 2019-12-13 07:37:41
问题 I'm studying buffer overflow and solving some wargames. There was a problem that all of the stack memory above the buffer is set to 0 except return address of main, which will be: buffer [0000000...][RET][000000...] and I can overwrite that RET. So I found some hints for solving this problem. It was to use LD_PRELOAD. Some people said that LD_PRELOAD's value is in somewhere of stack not only in environment variable area of stack. So I set LD_PRELOAD and search it and found it using gdb. $

overflow issue in chrome and opera

六月ゝ 毕业季﹏ 提交于 2019-12-13 07:15:14
问题 i have a problem with overflow on 0px height width elements in new versions my source code (jsfiddle) code worked nice before, but i have this problem in latest chrome and opera (not in firefox and edge) css: .cssload-dots { width: 0; height: 0; position: absolute; top: 0; left: 0; bottom: 0; right: 0; margin: auto; outline: 1px solid red; filter: url(#goo); -o-filter: url(#goo); -ms-filter: url(#goo); -webkit-filter: url(#goo); -moz-filter: url(#goo); } when i change width and height to

FloatingPointError: overflow encountered in double_scalars

被刻印的时光 ゝ 提交于 2019-12-13 05:16:38
问题 I've set up numpy.seterr as follows: np.seterr(invalid='raise', over ='raise', under='raise') And I'm getting the following error: c = beta[j,i] + oneminusbeta[j,i] FloatingPointError: overflow encountered in double_scalars I've checked what beta[j,i] and oneminusbeta[j,i] are at the point of crash, and these are their values: beta: -131.340389182 oneminusbeta: 0.0 Please note, this line of addition ( beta[j,i] + oneminusbeta[j,i] ) has run for thousands of lines in a loop (that performs

Overflowed text with html in another div

混江龙づ霸主 提交于 2019-12-13 05:10:51
问题 I want to have a text that overflows in another div, so I found and used this answer from another question at Stackoverflow. The problem is that only plain text is displayed; links, bold/italics and paragraphs are ignored. Here is the same jsfiddle from the answer, but with added html tags. How do i get to display them? Code: var currentCol = $('.col:first'); var text = currentCol.text(); currentCol.text(''); var wordArray=text.split(' '); $.fn.hasOverflow = function() { var div= document