overflow

Detecting and fixing overflows

Hi, we have a particle detector hard-wired to use 16-bit and 8-bit buffers. Every now and then, there are certain [predicted] peaks of particle fluxes passing through it; that's okay. What is not okay is that these fluxes usually reach magnitudes above the capacity of the buffers to store them; thus, overflows occur. On a chart, they loo...

MS Access AutoNumber on Import

Just curious, when I imported data from a spreadsheet with 519 lines into an empty table, why did my autonumber keys start at 56,557,618? How big can this get? I don't want to end up running out of digits for my primary key field as I didn't even start on the project and I expect to be dumping spreadsheets in quite regularly. ...

Handling "Big" Integers in C#

How do I handle big integers in C#? I have a function that will give me the product of divisors: private static int GetDivisorProduct(int N, int product) { for (int i = 1; i < N; i++) { if (N % i == 0) { Console.WriteLine(i.ToString()); product *= i; ...

set overflow hidden in some cases

Hello, my question is How can I set overflow hidden in cases where the html go's outside the screen Right now I have set html {overflow: hidden;} in the head tag off the page. So, it's hidden all the time In my particular case the errors that I show in the registration process cannot be seen on my 13inch laptop, but I don't want to sh...

Is there any way to add two bytes with overflow in python?

Hello, I am using pySerial to read in data from an attached device. I want to calculate the checksum of each received packet. The packet is read in as a char array, with the actual checksum being the very last byte, at the end of the packet. To calculate the checksum, I would normally sum over the packet payload, and then compare it to ...

working with fstream files in overflow chaining in c++

Hello, I have a file that I want to read and write to a binary file using records. In the beginning I have an empty file and I want to add new record, but when I use the seekp function, then the location is at (-1) is it ok? Because when I check, I see that it hasnt written anything to the file. See code: void Library::addBook(Book ne...

Windows: avoid pushing full x86 context on stack

I have implemented a language under MS Windows that uses cactus stacks to implement parallel programs. The stack chunks are allocated on a per-function basis and are just the right size to handle local variables, expression temp pushes/pops, and calls to libraries (including stack space for the library routines to work in). Such stack ...

Weird IE7 Problem

Page located here. In IE7, everything works perfectly until you slect one of the "filters" (e.g. Other). After this, the pop up bubble (span.info) no longer is on top when it is animated to above the image. There is no overflow:hidden on the li or anything like that, and applying a z-index to the span.info made no difference. You can ...

ThickBox Problem on firefox (overflow:hidden no work)

Hi, i need a help with thickbox. I use it in my website, but a function of overflow:hidden, dont work in firefox, just in IE. Someone can helpme? thanks... html and css no problem, my problem is thickbox, becausa it work in IE 6 or 7, but no in mozilla(all versions). look the code; function tb_show(caption, url, imageGroup, leg, ttlTb)...

How to deal with silent mysql sum() integer overflow?

I've got this table with an int(11) column and hundreds of millions of rows. When I run a query like SELECT SUM(myIntColumn) as foo FROM myTable; the return value does not make sense--it is smaller than the the single largest max value. My values for this column max out somewhere around 500m, and the signed int should be able to ha...

Keeping divs floating next to each other when overflow

Hi! I hope to explain my problem simple in order to get good feedback :) Imagine this scenario: One DIV wrapper within two floating DIVs, next to each other, with fixed width. All of them with overflow hidden. But when decreasing the width of the wrapper (or increasing the children's) the last DIV collapsed instead of hide. Please, ch...

Overflow css attribute browser interpretation differences

Hi, I was just skinning a website and found that overflow:visible renders two completely different things from Firefox to IE. Firefox just displays everything outside of the container... like this: -------------------------------- | div style="overflow:visible" | -------------------------------- //overflow content from the div ab...

Can I prevent text in a div block from overflowing?

Can I prevent text in a div block from overflowing? ...

How to "clear" overflow:visible elements?

I have one div element at the top of my page that is set to overflow:visible. Immediately beneath it, I have the page content. I do not want the top div to expand, because of aesthetic reasons, but I would like the content below to treat the overflow from above as it would a block element...by "clearing" it. I know about CSS clear...bu...

Opera CSS Issue: Strange black backround in Opera 9.63 and 10 beta when using a combination of overflow and background-color

I've created a script to create scrollable tables with fixed headers but it is having a strange styling issue in Opera where the background color of the containing div turns black above the scroll bar if I try to set the background color to anything. This script was tested and works fine in IE6/7/8, Firefox 2/3, Chrome 2/3 and Safari 2/...

WPF: How can you set ToolBarOverflowPanel children to be the same width?

In a Toolbar, how do you set it's overflowpanel children to be the same width, one child underneath the other? Is there a way to override ToolBarOveflowPanel to act as a stackpanel? Databinding / manually setting the width of the objects that are in the toolbar sets the width of all of the items in the toolbar, not just those that appe...

Workarounds when a string is too long for a .join. OverflowError occurs.

I'm working through some python problems on pythonchallenge.com to teach myself python and I've hit a roadblock, since the string I am to be using is too large for python to handle. I receive this error: my-macbook:python owner1$ python singleoccurrence.py Traceback (most recent call last): File "singleoccurrence.py", line 32, in <mo...

Silverlight: Canvas overflows

Hi all! I have created a Canvas, and within it I placed a StackPanel. The StackPanel is horizontal, and it accepts a list of thumbnailed images. The Canvas has a fixed size. When I put more thumbnails than the Canvas width can hold, the StackPanel is supposed to overflow from the Canvas, so I can move it to center the current thumbnail....

Jquery UI - Getting one element out of a display:hidden element when dragging

I have a group of elements sitting on a 'conveyor' element within another element that is set overflow:hidden using css. How do I, when dragging, get the element 'out' of the holder element that has overflow set to hidden? When I drag the "item" classed image, it only drags within the holder, when I try to move it "outside" the holder, i...

jQuery Accordion: divs with scrollbars not sliding nicely

I am using the following code to get an accordion happening: $(".accordion h2").eq(2).addClass("active"); $(".accordion-content").eq(2).show(); $(".accordion h2").click(function(){ $(this).next(".accordion-content").slideToggle("slow") .siblings("div:visible").slideUp("slow"); $(this).toggleClass("active"); $(this).sibli...