overflow

handle the total of Integers exceeding Long

I have the following code : Dim L as Integer Dim R as Integer Dim a as Integer a=((L+R)/2) Now (L+R) exceeds limit of Integer. In order to handle this case: I have following three options: Define L (or R) as Long Write a= ((CLng(L)+R)/2) Declare new variable as Long : Like this Dim S as Long S=S+L+R I am confused which on...

JavaScript Integer math incorrect results

I am just trying to implement a simple RNG in JS. What's happening is javascript evaluates 119106029 * 1103515245 to be 131435318772912110 rather than 131435318772912105. We know it's wrong since two odd numbers multiplied does not give an even number. Anyone know what's up? I just want a reliable repeatable RNG, and because of these ...

IE8 - CSS overflow hidden, fix causes further problems with jquery

Problem part 1: Basically I have the age-old IE problem of overflow: hidden; not working in IE. The fix (which does work, admittedly) is to also add "position: relative;" to the element/parent; however this causes a problem for me. Firstly I want to know if there's another way without appending position relative. If this is the only ...

XSL processor stack has overflowed - can't understand why

Hello guys, I'm trying to conditionally display the content of HTML page depending if a document being generated for a recognised company or not. However, the transformation doesn't work and I can't understand why :( I use MSXML3.0 as transformer and oXygen as IDE, which gives the errors I presented below. What I do is to construct a ...

tbody scroll not working in safari

I have defined a HTML table with thead, tbody and tfoot and also I have given tbody vertical scroll. The scroll is working fine in fire fox but its not active in safari. I googled and found that tbody scroll will not work, is there any alternative for this issue? ...

DIV Overflow Scrollbar On Top of Content?

I have a div with the content set for overflow:auto and set height of 300px. There's a table within that div so, when the table has more content than the DIV is high, the content scrolls. The problem I'm having is that the scrollbar is sitting on top of my image that I've got on the right of the table. Is there a way to push the scroll...

Iframe's overflow problem

I have a simple page that contains an iframe. The iframe contains a page with some divs. When I open the embedded page separetely it works very well. The div that should be overflowed is overflowed. But when I open the container site it is not. Here are my codes: Container page: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional...

Why does zooming out cause CSS change to only one portion of my content?

http://dontcare.99k.org/demo/addpages.php.htm Try zooming out and you'll see that the small boxes on the left break apart and spill outside of their container. I'm not sure why this is happening. Please help, Many thanks!! ...

Why won't int variable come before char array in terms of addressing no matter how I code it in C?

I'm reading Hacking: The Art of Exploitation (2nd Edition), and I'm currently on the section about buffer overflows. In the first example, the variables are declared/initialized in this order: int auth_flag = 0; char password_buffer[16]; The example goes on to explain that you can use gdb to examine auth_flag and password_buffer's ad...

CSS Width problem

I'd like to create a div that has the same width as the text's length inside it. I can do it without problem when the div is inside a DOM element that has enough width to fit the text in. But when I put my text holder div inside another div that is not wide enough the text will be fractioned into lines even if I set the text holder div'...

overflow-x: auto problem on firefox/ie

i have this problem with my website css overflow-x:auto ; coincidently, when i try on stackoverflow.com . I can see stackoverflow also have similar problem. when i try to make my firefox/internet explorer 7 browser window screen smaller. i can see part of the screen on upper right hand-side and lower right hand-side not render properly....

Java collections: What happens when "size" exceeds "int"?

I know that Java collections are very memory-hungry, and did a test myself, proving that 4GB is barely enough to store few millions of Integers into a HashSet. But what if I has "enough" memory? What would happen to Collection.size()? EDIT: Solved: Collection.size() returns Integer.MAX when the integer range is exceeded. New question: ...

DIV content does not overflow...

The code below works properly in all browsers but IE. The overflow doesn't work. Thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <style type="text/css"> #scroll { width: 500px; height: 250px; overflow: auto; } .box { position: relative; height: ...

How can I make text appear on next line instead of overflowing?

I have a fixed width div on my page that contains text. When I enter a long string of letters it overflows. I don't want to hide overflow I want to display the overflow on a new line, see below: <div id="textbox" style="width:400px; height:200px;"> dfssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssfdddddddddddddd...

CSS / JavaScript - content outside a element with overflow:hidden

Hi I have a container div element that has overflow:hidden on it. Unfortunately this property is required on it because of the way the site is made. Inside this div it's all the site content, including some tooltips. These tooltips are displayed with jQuery when you mouse over a link or something. The problem is that some of these too...

Internet Explorer CSS property "filter" ignores overflow:visible

Apparently Internet Explorer (up to version 8 at least) ignores overflow:visible when applying filter (e.g. for opacity), causing anything outside the filtered element to be clipped as if overflow:hidden were used. Are there any workarounds to this behavior ? The sample code below shows how child is clipped by container only its right...

How to intentionally cause a "Fatal error: Allowed memory size of xxx bytes exhausted"

Whenever I've received this error, I just increased the memory to fix it. I have a case where, for testing purposes, I want to cause a page to use up all the memory however big I set the memory_limit. I have no idea how to go about doing that. EDIT: I tried this: <?php echo "start"; @ini_set('memory_limit', '1M'); $test = "a"; while ...

An accurate running statistical mean of a large array of bytes

I have a two dimensional array of bytes which looks like this: int n = 100000; int d = 128; byte[][] samples = new byte[n][d] /* proceed to fill samples with some delicious data */ byte[] mean = new byte[d]; findMean(mean,samples); My findMean function proceeds to fill mean such that: mean[k] = mean(samples[:][k]) Simple enough so ...

VB6: what is likely cause of Overflow error when using strings?

In VB6, what is the likely cause of an Overflow error? I am using strings when it occurs. Is it RAM, or hard-drive space? Or is it something internal to VB6? ...

Overflow Hidden exceptions to the rule?

I need to show an element (image) overlaying a Div that has a overflow:hidden applied to it. Since the overflow is hidden , its naturally covering anything I want to sit on top of it. How do I get around this? ...