label

Change label based on element visibility (jQuery)

HTML: <a href="#">Show next element</a> <div>content</div> jQuery: $('a').toggle(function () { $(this).next().show(); }, function () { $(this).next().hide(); }); How do I change the above jQuery so it also changes the "Show" in the link to "Hide" when the element is visible? Thanks! ...

Label position in java decompiling output

Hi, I am using jd-gui to decompile a class file, and I got a break label (label1076) as below. In eclipse I got an error compiling because the label is declared after it is used. What is the equivalent java code without using break statement? public List buildChildList() { for (int i = 0; i < size; ++i) { ... for (int i = 0; i < r...

One-way Branching and Merging in TFS

The project I'm working on includes two what I'll call Libraries of code developed by other teams. Using TFS, we would simply include their TFS folders in our workspaces and include their Visual Studio projects in our solution files. If the other team checked-in a file to the libraries we would immediately get their changes. Obviously y...

Open database of image labels

Hi, I'm working on a program which needs a large amount of images, with keywords describing the images and the things they contain. Now, I know that Google Image Labeler exists to help Google create such a database, to help boost their image search. I'm wondering if there is any such database that I can use, either Google's or someone ...

JUNG: how to shape pickable vertices

Hello everyone... I am using JUNG to make a network diagram. I want to shape the vertices depending upon its type. The vertices are pickable and colored. The code for vertices so far is as under: class VertexColors extends PickableVertexPaintTransformer<Number> { VertexColors(PickedInfo<Number> pi) { super(pi, Color.blue, Co...

Individually labeled bars for bar graphs in matplotlib / Python

I am trying to create bar graphs of letter frequency in Python. I thought the best way to accomplish this would be matplotlib, but I have been unable to decipher the documentation. Is it possible to label the bars of a matplotlib.pyplot.hist plot with one letter per bar, instead of a numerical axis? I think it must be, but I have not use...

jquery flot - how to find the plot object for the graph I'm hovering over?

Given several flot objects on a page, each with the jquery.flot.crosshair.js plugin enable, how to I figure out which plot object has the labels I want to modify? I am using the example code here: http://people.iola.dk/olau/flot/examples/tracking.html, but I have multiple flot objects per page. Each seems to show the crosshairs just fi...

Disabled Link color in Link Label

Setting the "Disabled LinkColor" property of a Link Label does not change the color of the Link area in the Link Label when it is disabled. Any ideas? ...

Is using fieldset and labels in XHTML discouraged?

I heard there was fundamental lack of web-browser comprehension of those, and often IE6,7, opera would flounder trying to display them. Is that indeed true? Should those be avoided? And while we're at it, do they have a specific advantage when using forms? (except for the impeccably square frame around) ...

Link within label - include extra functionality

I have the following code in front that gives a bit of blurb and creates a link which the user can click and it sends them to a page specified. <asp:Label ID="tbxFindOutMore" runat="server" text="If you are already a member, please <a href ='Reporting/Login.aspx' target=_blank style=color:black>click here</a> to login to y...

Adding instruction label on UIpickerviewcontroller editing view

Hello, I've seen in the Facebook app the ability to have instructions on the image edit view when selecting a picture, on the bottom of their(fb) view it says, "use two fingers to draw crop area", i want to add that to my crop instructions but can't find it. Thanks Michael ...

Custom CSS classes for Symfony form labels?

Hi, Is there a simple way to declare CSS classes for Symfony form labels? This doesn't work: <?php echo $form['email']->renderLabel('class' => 'my-css') ?> Found this and it works but it feels counter-intuitive, as it makes the form labels themselves obsolete by requiring the label to be written out in the template: <?php echo $for...

I have a context menu which is being shared by 6 different labels, how can I tell which label is using the current instance of the context menu?

Here is the xaml for the contextMenu: <Window.Resources> <ContextMenu x:Key="IBContextMenu" x:Shared="true" Name="IBContextMenu1"> <MenuItem Header="Edit" Click="ibEdit_Click" AllowDrop="False" /> <MenuItem Header="Clear" Click="ibClear_Click"/> </ContextMenu> </Window.Resources> Both the edit and clear ite...

.NET Label Appearance TextAlign: MiddleRight problem

I'm having trouble right aligning a label. I set the TextAlign to MiddleRight, yet when I change the text of the label the label autogrows right. Is TextAlign the correct parameter for setting the desigered behavior? Is there a way to fix the problem other than using a TableLayoutPanel? ...

Add integers from 5 labels to one label?

Can anyone tell me if it is possible to add the value of 5 labels, and generate the result in to one label? I am talking about Xcode SDK. I have 5 labels with integer values and I need to add them all together into one label, or into a text field... ...

iPhone: Displaying Date in a Label and String Manipulation

In order to learn some basics I've undertaken creating an app that displays two quotes a day. I'm having trouble figuring out how to work with the current date, which will be pretty necessary if I'm going to get this thing running. My current plan is to name my .txt files with the quotes by day, and then get my filePath string to con...

MacRuby xcode label not working

class HelloApp attr_accessor :label, :text_field, :button def clickedButton(sender) # implementation your_name = self.text_field.stringValue self.label.stringValue = "Hello, #{your_name}" end end The above code is in HelloApp.rb The problem is when I type something into the t...

NSTimer on a label

hi, im working with iphone sdk and i got to show a label when the user clik a button but after some time the label deseapear, can i do that? ...

Information Label

I am trying to make an information label that should display the events the application doing. deleting data, reading data, writing data, connection to db. etc.. I've added a label to my form and I am changing its text property for each operation like: label1.Text = "stored procedure is being executed.."; But, in the run time the te...

How do I add a specific data label to CPScatterPlot?

I need to label the y-value of the starting point and the ending point on a Core-plot scatter chart. Can someone please help? Say, I have 6 data as a curve and would like to put a data label (y-value) a bit higher on the 1st and the 6th points. The library I use is the core-plot library... Thanks! ...