dataformat

Recommended data format for describing the rules of chess

I'm going to be writing a chess server and one or more clients for chess and I want to describe the rules of chess (e.g. allowable moves based on game state, rules for when a game is complete) in a programming language independant way. This is a bit tricky since some of the chess rules (e.g. King Castling, en passent, draws based on 3 or...

Why is JSON important?

I've only recently heard about JSON (Javascript Object Notation). Can anybody explain why it is considered (by some websites/blogs/etc) to be important? We already have XML, why is JSON better (apart from being 'native to Javascript')? Edit: Hmm, the main answer theme seems to be 'it is smaller'. However, the fact that it allows data fe...

Set DataFormatString on DataGridView at Runtime?

Is it possible to set the DataFormatString property of a column or cell in an ASP.NET DataGridView at runtime? ...

JavaDocs for Tibco datagrams (TibrvMsg)?

Does anyone know of available Javadoc for Tibco rvd datagrams (specifically, class "com.tibco.tibrv.TibrvMsg")? It is not hard to decompile classes to get signatures, but that does not tell a lot about expected optimal usage and such. All I need is simple read/write functionality for interoperability purposes, but ideally using recommen...

How do I get ShortDateFormat in classic asp

In asp.net I'm using this one: System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern Is that possible to get it in classic asp? ...

Preferred data-format for user-data in java applications?

I'm currently developing a desktop application in java, which stores user data such as bookmarks for ftp-servers. When deciding how to save these informations, I ended up using xml, simply because I like the way xpath works. I was thinking about json too, which seems more lightweight. What is your preferred way to store data in java des...

Design guidelines for parser and lexer?

I'm writing a lexer (with re2c) and a parser (with Lemon) for a slightly convoluted data format: CSV-like, but with specific string types at specific places (alphanumeric chars only, alphanumeric chars and minus signs, any char except quotes and comma but with balanced braces, etc.), strings inside braces and strings that look like funct...

Guitar tablature data format

I'm writing a quick front end to display guitar tablature. The front end is in Flash but I want to store the tab in some human-readable format. Anyone know of something that already exists? Any suggestions on how to go about it? One idea I got from reading some stackoverflow posts was to use a strict ASCII tab format like so: e||-1-----...

Formatting applied to boundfields in gridview is not working

I have the following columns in a gridview, one is a date and the other one is a dollar amount. I applied the formatting and set the HtmlEncode property to false, however the values still come up unformatted: <asp:BoundField DataField="Total" HeaderText="Total" ReadOnly="true" HtmlEncode="False" DataFormatString="{0:C}" /> <asp:BoundFie...

jQuery changing data format from string

Hi, I have this string: 2010-09-21T15:48:12.754+02:00 I would transform it in this format: Tue Sep 21 15:48:12 CEST 2010 How can I do it with javascript or jQuery? Thanks a lot. MP. ...

afconvert in iPhone reference library

Can you give me some information about using afconvert in iPhone to convert file formats? Or let me know some links that give me basic information on afconvert. I want to know the commands used - what do -f, -d , -c etc. stands for in: afconvert -f aac -d mp3 [input] [output] Where do I mention the source data format, file format and...

Which data format is used for recording?

Hello, When i record any audio file, i specify a file format to be recorded, but what is the data format it considers to record? For any audio file , how do we get to know its data format[codec]? Thank You. ...

The best format of data to send from browser to the java-based server with ajax?

I don't have a big experience in this kind of things, so I see the easiest way is sending key-value pairs as post parameters and then servlet container will parse these pairs and put to the parameters map. But I assume that there can exist more convenient way based on using some ready solutions (libs) that's why (and what) I'm asking. O...

ASP.NET DataBoundField DataFormatString, how can I add html correctly?

Hi All, I have a DataboundField in a grid. I'm trying to display a date in Euro format and the time. The time should be wrapped in a span with a css class applied to it. I am using this, DataFormatString="{0:dd/MM/yyyy <\span cla\s\s='tinyDate'>hh:mm:ss</\span>}" It's actually pretty close, except the span tag is literally rendering i...

SQLServer 2008: Showing the Information with Money DataType in Classic ASP

Hi All, I am using MS SQL 2008 to develop one system with Classic ASP. I want to show 3 Decimal Places the field Datatype is money. I got answer from this http://www.sqlusa.com/bestpractices2005/moneyformat/ . I use like this in my SQL Statement : CONVERT(VARCHAR, CAST(Sell_Price AS Decimal(19, 3))) AS Unit_Price What I w...