grid

Drawing In A Grid For Animation

Hi Guys, I am doing a little animation and i need help. This is my task. I have to draw a grid of 3 X 3 (2D array). In this grid, the last row (3 cells) will contain three horizontal track rails. The first two cells in the last column will also contain two vertical track rails. A car object(a rounded circle) will be moved on this t...

Rotating An Image In A Cell

Hi Guys, I have a 3 X 3 grid of JLabels of Images. I would like to rotate the the label in [2][2]. I know how to do rotation. my question is what should i do to be able to rotate that cell. Do i have to convert that cell into an image object or is it possible to rotate the label just like that? Thanks for your answer. EDIT import ja...

WPF - Resizing controls within a window with resize

So I'm pretty new to WPF and I'm having trouble with the layout of my Window. Currently I have a WPF application with a Grid defined as such: <Grid.RowDefinitions> <RowDefinition Height="23" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefiniti...

jqGrid: Enable paging while converting HTML table to grid

Been googling all this while on how to convert an html table to something pagable and sortable, and I have stumbled across jqGrid jquery plugin. I've learned so far that we have to call tableToGrid() to convert the table (which we pass as a jquery selector string to the method). I've also tried a host of other things, like for e.g: tabl...

parameter for shell scripts that is started with qsub

Hello how can I parametrize a shell script that is executed on a grid (started with qsub) ? I have a shell script, where I use getopts to read the parameters. When I start (qsub script.sh -r firstparam -s secondparam ..) this working script with qsub I receive error messages, qsub: invalid option -- s qsub: illegal -r value ...

Create an optimal grid based on n-items, total area, and H:W ratio

I'm creating an application that takes a number of equally sized rectangles and positions them in a grid on the screen. I have most of the logic complete for resizing and centering a rectangle within a cell but I'm having trouble with the actual portion that defines the grid the rectangles must conform to. Ideally, in the end I'd have a...

Blueprint CSS framework or any Grid system: fix for bordered divs

I've got some problems while trying to lay out my site. I'm using Blueprint Framework and it happens when I apply borders to my div. Since their width are controlled by span-XX (or grid-xx as I noticed in 960gs), the moment I apply borders to any div element I have it goes out of the grid as seen in these images Click to zoom Click to ...

redundant distributed filesystems for small number of nodes.

I need to keep a filesystem shared between two nodes in different locations, in a way fully redundant, so that programs running in both nodes should see the whole filesystem. The situation is that a datafile could be stored in any of the nodes, then a program running in the other could have been notified by a third party about the exist...

Grid View inside Grid view

Dear All, I have a master grid and a child grid which is one of the column of the master Grid and whose data is getting bound to datasource on rowDataBound of master grid view. Now the thing that I want is to get the value of one of the columns of the master grid on the row command of the child grid. Is it possible in any way? Please s...

How to access children in Grid with x/y coordinates instead of index?

I have a Grid object and want to get a specific checkbox out of it. I can use this syntax: CheckBox cbChange = grid.Children[4] as CheckBox; But how can I access this child via x/y coordinate instead, e.g.: CheckBox cbChange = grid.GetXYChild(2,3) as CheckBox; //PSEUDO-CODE using System.Collections.Generic; using System.Windows;...

Remembering Selections in ExtJS Grid with Paging On

I have the following example available: Ext.onReady(function(){ var myData = [ ['3m Co',71.72,0.02,0.03,'9/1 12:00am'], ['Alcoa Inc',29.01,0.42,1.47,'9/1 12:00am'], ['Altria Group Inc',83.81,0.28,0.34,'9/1 12:00am'], ['American Express Company',52.55,0.01,0.02,'9/1 12:00am'], ['American Inter...

Grid data structure

Usually ‘expandable’ grids are represented as list of lists (list of rows, each row has list of cells) and those lists are some kind of linked lists. Manipulating (removing, inserting) rows in this data structure is easy and inexpensive, it’s just matter of re-linking previous nodes, but when it comes to columns, for instance removing...

jQuery grid plugins that support continuous scrolling with on-demand lazy loading, instead of page navigation buttons

I'm currently considering various jQuery grid plugins, found through a mixture of Googling and looking at previous questions on SO. I specifically want to avoid the traditional "page navigation buttons" syndrome. I want the scrollbar to be able to move the user through the entire data set, and for the plugin to asynchronously request mo...

Jquery - How to alternate an :Odd :Even pattern every 4 <Divs>?

Hi I'm trying to make a pattern in a layout (see attachment for visualisation) The problem is that using :odd :even doesnt work. I've tried to make it work by using "for loops", and if statements, but obviously jquery doesn't do this stuff in that way. Or maybe i'm supposed to do it outside the document ready statement? I tired that to...

formulae / algorithm to select centre cells in a grid?

If I have a grid say consisting of 15 x 15 cells (but variable), what formulae or algorithm would I use to randomly select 20 cells clustered around the centre cell? I guess I would ideally like to be able to set the centre point, cluster radius, density etc... any pointers would be really appreciated! cheers. ...

XAML Path sizing and positioning

I am trying to design a template for a TabItem using paths and rectangles. The sides of the tab layout are paths to accommodate curves in the design. I am having a problem with getting the sides to line up/resize correctly. Here's my XAML: <StackPanel Orientation="Horizontal"> <Path Stretch="UniformToFill" Fill="#FF000000" Data="F1 ...

Expressing 2x2 Logic Grid in Code Efficiently

In an event handler I'm responding to the change of a value. I have access to the old value and the new value and want to do certain things depending on what the change is. Each different outcome will do some combination of actions/functions X, Y, or Z. Z accepts a parameter between -1 and 1. Order of performing these is not important. ...

Matplotlib how to show logarithmically spaced grid lines at all ticks on a log-log plot?

I'm trying to plot a log-log graph that shows logarithmically spaced grid lines at all of the ticks that you see along the bottom and left hand side of the plot. I've been able to show some gridlines by using matplotlib.pyplot.grid(True), but this is only showing grid lines for me at power of 10 intervals. So as an example, here is wha...

Peoplecode- Range in Scroll area grid

I have a scroll area and grid. What I want is when the user clicked the save button and for example he/she is on the range of 21-30 rows, after the save button was clicked, the page will still remain on the 21-30 range. It's because my page go back from the starting range when I clicked the save button which is from 1-10. The cursor s...

Grid 3*3 with tableLayout

I want a 3*3 grid with an ImageButton centered in each cell I've done the code below TableLayout tl=new TableLayout(this); int intNbRows=3; int intNbCols=3; for (int i = 0 ; i < intNbRows;i++) { TableRow tr=new TableRow(this); tr.setMinimumHeight(hauteur/intNbRows);//TODO : a voir tr.setMinimumWidth(largeur/intNbCols); //TODO ...