format

changing and hiding parts of a table

I've got a html table with td class-formlabel and text (HP)Hello Why doesn't this replace the text? $(this).text().replace('(HP)',''); Why does this remove formating if this is $("td.ms-formlabel").each(function(){ $(this).text("hello"); How can hide the TR rows for a match given the rendered html above and the below code? (Note I ...

Format double with no decimal point

Hi, I've to convert double to 10 digits + 4 decimal. so let say: I have a double 999,56. I've to get 00000009995600 -> without comma! What I have is: string.format("{0:0000000000.0000}", value) but what I get is: 0000000999,5600 so what I can do now is to search for the comma and delete it, but I would like to know if there is anoth...

format text_field helper?

Is it possible to apply strftime formatting to the value of a text input field using a Rails text_field helper? In the form I use for creating or editing a record, I have a text input field which is populated by a variant of the calendardateselect javascript. I click the text field and a little calendar pops up. After I select year, mont...

C# Decimal Formatting Query

I am trying to format a decimal so that it will get displayed as so: 14.5 should get displayed as "14.50" 14.50 should get displayed as "14.50" 14.05 should get displayed as "14.05" 14.00 should get displayed as "14" Is the possible with a single String Format, i.e. not using conditional formatting? I've tried "0.##" (doesn't satisfy ...

C# RichTextBox strange behaviour

greetings, for the first time ever im investigating RichTextBox control in C# windows forms. i know i need this control in my app as textBox is to simple for my needs. i have the followig code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using...

Python: Checking Header Format

I'm new to python and need help with a problem. Basically I need to open a file and read it which I can do no problem. The problem arises at line 0, where I need to check the header format. The header needs to be in the format: p wncf nvar nclauses hard where 'nvar' 'nclauses' and 'hard' are all positive integers. For example: p wncf ...

T-SQL Format integer to 2-digit string

I can't find a simple way to do this in T-SQL. I have for example a column (SortExport_CSV) that returns an integer '2' thru 90. If the stored number is a single digit, I need it to convert to a 2 digit string that begins with a 0. I have tried to use CAST but I get stuck on how to display the style in the preferred format (0#) Of cour...

What is the difference between plain binary format (.bin) and Windows Executable (.exe)?

What is the difference between plain binary format (.bin) and Windows Executable (.exe)? ...

NSKeyedArchiver internal format

Hello I need to load NSKeyedArchiver classes to C++/CLI counterparts. Is there any way to get internal format of NSKeyedArchiver? Another option is to rewrite whole saving and opening code into pure C++ for both Mac and Windows. Thanks a lot. ...

Printing output into a table format using java swing

How can I show my output in a tabular format. My datastructure is a hash map. Using swing. or i can print the table into a file instead. Thanks:-) ...

what is wrong in this string?

string.Format("{Find Name='{0}'}", name) it throws Exception at runtime saying input string was in wrong format. What is wrong in this string? ...

Oracle sqlldr timestamp format headache

Hi - I'm struggling to get sqlldr to import a csv data file into my table, specifically with the field that is a timestamp. The data in my csv file is in this format: 16-NOV-09 01.57.48.001000 PM I've tried all manner of combinations in my control file and am going around in circles. I can't find anything online - not even the Oracle...

Metadata and multiple - interleaved, insertable - streams: which file format?

Once I think about new software projects and current-age data uses, I cannot stand raw files anymore. they seem unnatural now. Basically a file should contain one or more data "streams", metadata/attributes, etc. The file should be optimized for sequential, parallel read (like mkv I think) but have reasonable performance for direct ("r...

Add comma to numbers every three digits using jQuery

jQuery plugin to add comma separating numbers into three digits without white spaces and if total digits are under three, then no comma added. Ex. 2984 => 2,984 and 297312984 => 297,312,984 and 298 => 298 $('span.rawNums').digits(); Thanks. ...

when to use a format file for bulk copy program (bcp)

When would we use a format file for bcp? ...

format datetime - format a datetime with or without the time

Hi Sometimes I get a datetime with a time sometimes it's just the date. Of course if it's just the date I I want to format with "dd.MM.yyyy" and if it has a time "dd.MM.yyyy HH:mm".. This is in a repeater, so I thought may be it's possible without a simple if statement? which is the cleanest way for that? Thank you and best regards...

Error in starting namenode in Hadoop

hi, When I try to format the namenode or even start it I'm getting the below error. What should be done?? $ bin/hadoop namenode -format Exception in thread "main" java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.securi...

Java: unparseable date exception

Hi, While trying to transform the date format I get an exception:unparseable date and don't know how to fix this problem. I am receiving a string which represents an event date and would like to display this date in different format in GUI. What I was trying to do is the following: private String modifyDateLayout(String inputDate){ ...

Date format in jsp

Hi, I need to convert the date from request parameter to string in dateformat 'yyyy-MM-dd'. I have tried the following String MyDate = request.getParameter("DayCal"); formatdate = new java.text.SimpleDateFormat("yyyy/MM/dd"); Date date = (Date) formatdate.parse(MyDate); String DisplayDate= formatdate.format(date); But i am getting i...

Codeigniter: return datetime from db formatted

I'd like to format a datetime entry stored in a SQL db in a friendly format. I'm just returning a simple query as a row(date)... Is there a quick/easy way to do this? I can post examples, if need be. Right now the query is in a foreach loop: <?php print $row['exp_date']?> ...