Why are there only 4 fields in this lua table? Shouldn't there be 7?
polyline = {color="blue", thickness=2, npoints=4,
{x=0, y=0},
{x=10, y=0},
{x=-10, y=1},
{x=0, y=1}
}
print(table.maxn(polyline)) -- returns 4. Why?
print(polyline[2].x) -- ...
i want to make a rank application, that will calculate the rank of each course uploaded on a platform.
Is it a good approach to have stored in a table values like number of downloads, and number of views, like that?
class Courserate(models.Model):
course = models.ForeignKey(Courses)
downloads = models.IntegerField(editable = F...
Hi guys,
I have made complex a page, with tables and phps, in Dreamweaver. The page looks fine in browser, but the tables look messed up when in Dreamweaver.
In code view, it marks this tags as invalid/
<?php
if ( !$_COOKIE['user'] ) { die( '<meta http-equiv="refresh" content="3;URL=index.php">Please your enable cookies.' ); }
$databa...
So I've spent the past few weeks developing a proof of concept with JSON data. I've been loading the data into tables by building the blank table in HTML and inserting the JSON values data with jQuery's getJSON function like so:
$('table#table_fourth_row tr:last td:first').html(data.tableDataCandyStuff.dataYearToDate.timePeriod);
$('ta...
Im trying to put margins on the bottom of a table to separate it from the content below it (another table). I tried creating a class:
.seg_table {
margin-bottom: 25px;
}
And then applied it to the table like this:
<table class="seg_table">
<tr>
<td>Some Content Here</td>
</tr>
</table>
Im new to working with tables so I assume I a...
Hey all,
I currently have a stored procedure that runs a complex query and returns a data set. I'd like to cast this data set to a table (on which I can perform further queries) if at all possible. I know I can do this using a table-valued UDF but I'd prefer to avoid that at this point. Is there any way I can accomplish this task?
T...
I am working on taking an IE only site and making it cross browser. Everything is looking food in IE, Chrome, and safari. However firefox isn't happy.
I have a table class called "datatable" it is as the name suggests a datatable. I am trying to get it to stretch to 100% of width of the div it's contained in. The div above is 100%. Whe...
I have some C++ code that interacts with some Lua code. Basically, I want to be able to get some results (in the form of a dictionary a.k.a a collection of items) from a query message and then push them out to Lua as a table so that I can easily access all the results from Lua by using the dictionary.
Right now, I just get one specific ...
I have a const char ** which is going to be of varying lengths, but I want to create a lua array from the const char **.
My const char ** is something like this
arg[0]="Red"
arg[1]="Purple"
arg[2]="Yellow"
I need to convert this array to a global table in Lua, but I'm not sure about how to go about this as I'm not very good at manipu...
Here is how I style tables now:
#content table {
width: 100%;
margin-top: 1em;
border-collapse: collapse;
border: 1px solid #222;
}
#content table td {
border: 1px solid #888;
padding: .3em;
}
What I am trying to achieve is to have tables with black outside border (#222). However, I want the inside border to b...
Hey guys,
I was working on project for my company. The requirements are to create an excel report at the end.
The way I am currently coding/thinking.
Remote Server ---> Local Access table --> give user a UI to filter data however they want --> Export to excel.
However, one of my analysts asked me if we can stay away from access an...
I'm not sure how to fix this issue, but when I utilize combo boxes on my form which selects data from multiple tables I'm not able to save any of the data selected.
I tried to use the Bound form utility but it only asked me to "Enter Parameter Value". I took out the "Bound" portion of the code and the combo box works fine.
I have ...
I have a table and I wish to extract the html from a specific row without a specific class.
So for example with the row.
<tr>
<th class='a'></th>
<th class='b'></th>
<th class='c'></th>
<tr>
I would hope to get a result like
<th class='b'></th>
<th class='c'></th>
I've attempted a few variants of
var newTr = $('#table01 tr:nth-c...
Hello
I have a LaTeX document where I'd like the numbering of floats (tables and figures) to be in one numeric sequence from 1 to x rather than two sequences according to their type. I'm not using lists of figures or tables either and do nort need to.
My documentclass is report and typically my floats have captions like this:
\caption...
hi there,
i want to make a 'timeline' containing all mini blog posts from a user, and all the user he is following.
I want all these posts to be ordered by date..But how can i 'join' the posts, because the 'following' relation is in another table, so i have to make some kind of a join between the two tables, for taking the data.
For no...
I am trying to write a small, simple module for phpBMS.
I am basically modifying and simplifying one that exists, and have gotten to the stage of creating the table and pages in phpBMS itself and making the module installable.
I am now trying to create the php page that will allow for new records to be inserted into the table via phpBM...
I am trying to build a table with large dataset and would like to avoid paging. (I would like to do something similar to Yahoo Mail grid which retrieves data after the grid is drawn. I think initially the first 100 mails are retrieved and then mail is only retrieved after the user scrolls down)
The example of the data presentation wi...
Hi,
I would like to store some business flags (like: isFavorite, isOnLive etc.) per an html table row that won't be visible to user.
In practice, I have a simple ADO.Net DataTable on my code-behind which is used as a data-source for a asp.Net GridView control.
This table contains some business flags on its 0th, 1st, 2nd columns.
I ne...
hello
i have a table like following code , i want at first the child tables not seen
but when user click on the row the child table for other rows closed and
child table under this row open
how i could make this with jquery?
<table class="mainTable">
<thead>
<tr class="header">
<th style="width:33%">col1</th>
...
I am just starting to learn hashtables, and so far, I know that you take the object you want to hash and put it through an hash function, then use the index it returns to get the corresponding object you want. There is something I don't understand though:
What structure do you use to store the objects in so you can quickly index them wi...