center

how to integrate bugzilla and HP quality center?

I'm working on integrating bugzilla with Hp Qc .. i'm performing this by using perl script by directly manipulating database using sql commands.. I want to use the webservices of bugzilla. I have gone thru the bugzilla webservice Api but tat wasnt enough to get started. I'm a beginner and this is first project of my career . please guide...

Crop a UIImage from the Center outwards?

I am making a camera app which includes digital zoom. I have a slider (zoomSlider) that has a minimum value of 1 and a maximum value of 4. When the user taps the camera button, it takes a picture, and then I crop it for the zooming. I have two problems: How do I crop the exact middle of the image? (eg. 2x zoom, Rect would be centered wi...

Centering element inside an element (jQuery)

<div class="preview"> <span class="center">This will be centered</div> </div> Preview has fixed width (120x120), but span may contain anything (image, text). How do I center it vertically and horizontally using jQuery? I looked up some snippets but they all center elements inside the 'body' not another element. I'd like to avoid use ...

get center of width in all browsers with jquery

i have following code to get center of width function alertSize() { var myWidth = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in ...

WPF Draggable Panel Class

I'm trying to write a panel class from this two resources: http://stackoverflow.com/questions/1871358/wpf-how-to-make-the-0-0-in-center-inside-a-canvas http://www.codeproject.com/KB/WPF/DraggingElementsInCanvas.aspx The panel class will have two attached properties "X" and "Y" and if any element gives x and y to be zero then it wil...

vertically align items in an unordered html list

hi How can I vertically align items in an unordered list to work also in IE6,7? I can't just set line-height to the full height because I have both 1 row items and 2 rows items My html code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <title></...

Centering images vertically

HTML: <ul> <li><img src="image1.png" /></li> <li><img src="image2.png" /></li> <li><img src="image3.png" /></li> <li><img src="image4.png" /></li> <li><img src="image5.png" /></li> <li><img src="image6.png" /></li> </ul> ... the images are all different sizes, I'd like to center them vertically. jQuery: $('ul li').css('p...

How to vertically center a child element of arbitrary size inside a floated parent element (of known size)?

Well, the title says it all. How to vertically center a child element of arbitrary size inside a floated parent element (of known size)? display: table-cell; vertical-align: middle; no longer seems to work when the element is floated. I created an SSCCE here: http://mathiasbynens.be/demo/center-vertically-inside-float Without float, e...

Download center

We have a forum, in which the moderators supply some files to users and upload them to another server(i.e. rapidshare.com ), so users can go and download them. I wanted to know whether there is any open source software or handy script to build our own download center? Features: authorization for users who want to upload files free ac...

javascript transparent alert centered and ontop.

I have almost done it.. but there is something wrong: function doAlert(title,text) { var alrt='<div onclick="this.parentNode.removeChild(this);" id="alert" style="background-attachment: scroll !important;background-clip: border-box !important;background-color: black !important;background-image: none !important;background-origin: paddi...

WPF Centering Elements On Canvas Via Code

I found this resource Centering On Canvas. But the problem is I cannot use the same thing via C# because the canvas left and top values are returning zero and throwing an exception.Not always will I place elements on canvas via xaml, so how can I use C# to implement this. Please help. <Canvas.Left> <MultiBinding Converter="{StaticResou...

Calculating the center of rotation after translation

I need to be able to rotate an image around a given point so that what ever part of the image appears in the center of my container is the center of rotation. To calculate the center points, I am currently just taking the inverse of the translation applied to the image: Rotate.CenterX = Translate.X * -1; Rotate.CenterY = Translate.Y * ...

OpenCV's clustering function cvKMeans2() - what is a type of cluster center in array?

I'm using function cvKMeans2() from OpenCV library for clustering. It has optional parametr: centers - The optional output array of the cluster centers The same parametr is also in function kmeans(). I want to know informations about clusters. But I haven't found what is a type of that cluster center in array, so I can't get it. Thanks...

jQuery Error Claims jQuery Plugin Function "is not a function".

Hi Folks I'm using a jQuery.Center() plugin that I found at Andreas Lagerkvist's website. I have a control on the page called "divClipboard" that I want to appear in the middle of the screen when the user clicks a link. I call the function $('#divClipboard').center(); and it throws an error, the message being $("#divClipboard"...

SSRS centering issues

I read in a reply here to a question about the differences between CR and SSRS. One person named Yosif I believe). Here is a quote: You cannot center align complete report body. For possibility, i've played with the rendered HTML for hours and figured out exact replacements to make that works I wanted to know what he actually did ...

[ ExtGWT / GWT ] Horizontal align problem

hi, i want to place a some buttons in the center of a panel, but doesn't work. Here my code: import com.extjs.gxt.ui.client.widget.HorizontalPanel; import com.extjs.gxt.ui.client.widget.Label; import com.extjs.gxt.ui.client.widget.LayoutContainer; import com.extjs.gxt.ui.client.widget.VerticalPanel; import com.extjs.gxt.ui.client.widge...

How can I use scrollRectToVisible to scroll to the center of an image?

I have a UIScrollView with zooming and panning. I want the image to scroll to the center after a user command. My problem is in calculating the size and location of a frame that is in the center of the image. Does anyone know how to calculate the correct frame for the center of my image? The problem is that if the zoomScale is different...

CSS Image Viewer - Align centre of the screen

Hi All, I want to use the below image enlarger/viewer but i would like the popup of the enlarged image to appear on the center of the screen. http://www.dynamicdrive.com/style/csslibrary/item/css_smart_image_enlarger/ I tried many ways but was unsuccessful.... Any help on this would be much appreciated. ...

javascript horizontal center

Hello, Im trying to use java script to center a page horizontally. So far i got this: <body onload="scrollBy((document.body['scrollWidth'] - 0) / 2, 0)"> It kinda works, but not very good. I have a large width flash component that I need centered when the page loads and also after any click on the internal buttons. I was thinking of...

page will not align center

Hi there. I have got a css problem. http://www.luukratief-design.nl/dump/parallax/index.html I cant get this page to align center. Before i get the answer to use "text-align: center;" on the body, i already did. The page 100% validates (CSS and HTML). Please help, never had this before. ...