weight

HTML Page Size - page weight

Hi all, I have to measure the over all page size of all the pages on my company's intrAnet site. Please let me know how I can measure / calculate it. Expectation : I open the intrAnet page in IE/Firefox. After it is completely loaded, the tool or utility should give me the complete size of page. PS : Complete size of page means :Accu...

Modifying Drupal Form Fields - [#weight] in array not being respected?

Hello all, I don't have experience in php. I've followed a few tutorials to modify my Drupal forms using the theme method in template.php. For some reason the [#weight] property for a field does not adhere to its values. I'd like to move the Category field [cid] above Subject field [subject]. These are the lines of code I used: $form[...

TextView inside LinearLayout stretches the LinearLayout and fill_parent fix causes weight flip

If I have 2 LinearLayouts split %50/%50 everything is fine. Weights are 1 and 1. As soon as I add a TextView inside the top LinearLayout, it stretches that layout. I use "wrap_content" as the documentation says I should when it comes to weights. As you can see the red and green should be split evenly and text on grey background should...

Determining optimum weights for calculating odds

I'm working on an assignment that has a plain text file of data. Each line of text represents a car race. Each line of text has four strings, delimited by commas. The strings represent a racer name. The first string is the racer that came first, the second got second place etc. The task we've been given is to read in this file and sor...

Android: trying to understand android:layout_weight

I'm trying to divide a page in three parts. I'd like to do it in percentage values, however that is not supported by Android. Instead I have to use android:layout_weight. But I have a hard time understanding it and getting it right. Especially how the actual size gets calculated. Is there a way to get a percentage value (0..100%) out of ...

Web Safe Font Weights -- How to get thinner?

When I design in Photoshop, my fonts are thin and crisp, but when I declare fonts in CSS -- even when using font-weight: lighter -- the fonts always appear bolder. Maybe this is just how the browser renders the font (In IE fonts stay thin), but I was wondering if there were any tricks or tips for achieving the same thin, crisp looks. ...

Determining weight matrix

I need to design a neural network which has the following behavior: p(1)={0,1,1,1} outputs a(1)={0,1,0,0} p(2)={1,1,0,1} outputs a(2)={0,0,1,0} p(3)={0,0,1,0} outputs a(3)={0,0,0,1} p(4)={0,0,1,1} outputs a(4)={1,1,0,1} How can i do so? Which type of neural network should I use? Which learning method can be used here? Thanks. ...

NetworkX (Python): how to change edges' weight by designated rule

I have a weighted graph: F=nx.path_graph(10) G=nx.Graph() for (u, v) in F.edges(): G.add_edge(u,v,weight=1) get the nodes list: [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6), (6, 7), (7, 8), (8, 9)] I want to change each edge's weight by this rule: remove one node, such as node 5, clearly, edge (4, 5) and (5, 6) will be del...

Java - Class to represent weight and measures

Hey, Is there an existing Java library to represent common weights and measures? I would like something which allows you to create objects which represent weight and distances in different units and let you compare them. It wouldn't be too hard to implement myself, but in this case I don't want to re-invent the wheel, since this wheel i...

How to accept weight data from Detecto AS-350D

I've found a scale, Detecto AS-350D (http://cardinal-detecto.centralcarolinascale.com/AS-PC-Computer.htm), that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted d...