format

PHP Function Comments

Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me: /** * * Convert an object to an array * * @param object $object The object to convert * @return array * */ My IDE gives me a dropdown selection for the things such as @param and @return, so it must b...

How to format a DateTime variable to get the Month, and then put the value into a string in C#? [VS2005]

DateTime dt = Convert.ToDateTime(dateTimePicker1.Text); //taken the DateTime from form string dt1 = String.Format("Y", dt); //trying to make so that it comes to "August 2009" Tried but all I get is dt1="Y". ...

Best way to input mailing/property address?

I'm looking for thoughts on two different ways of entering a property address (i.e. the address of house or business, not an e-mail address) on a web site. What are the pros and cons of separate fields versus a single flexible multi-line entry field? Or multi-line with a separate postal code entry? Most sites use separate fields and, pr...

New Audio File Format

Is there any ways to create my own audio file format? I'm planning to create simple player with its codec. What should I learn before now? thanks. ...

Prevent java from localizing SimpleDateFormat output

Basicaly I want to format a Date object using a specific pattern and the output should be in English. How can I prevent java from translating the output in the system language? String date = new SimpleDateFormat("EEE MMM dd kk:mm:ss yyyy").format(myDate); // output is in German: // Mi Aug 26 16:35:55 2009 ...

Ext.util.Format.undef functionality for null values

I have a json property that might be null, and I'd prefer to keep it that way for other reasons. When I include that property in an Ext.Template with '{myProp}' it sometimes renders as the word "null" when I want it to render as an empty string. {myProp:undef} only hunts for undefined, not null. What's the best way to get this done gi...

Java Date Format for Locale

How can I find the DateFormat for a given Locale? ...

c#, Set datagridview column format after datasource has been set

hi, i have a datagridview that i have populated programmatically and i was wondering how i can make one of the columns conform to a specified format - "C2". Can this be done after the datasource has been assigned? Cheers. ...

C# form custom textbox format binding

Hi, I haev an object with a DateTime property. I want to map the time to a textbox (thus want the user enter the time, it's directly reverberated to my property). However I just want to display the time. How can I say this (ie the format should be something like hh:mm to be correct). Less specifcly how can I format the text "sent" to...

Python: how to format traceback objects

I have a traceback object that I want to show in the nice format I get when calling traceback.format_exc() Is there a builtin function for that, or a few lines of code? ...

How to format String in Flex

How to format String in Flex? Is it possible to do something like this: var s:String = format("%20d %-10s %s", time, type, message); In languages like C, C++, C#, Python, Perl there is something similar to my example. But I can't find it for Flex. I don't want to create special class Formatter for every string that I want to format. ...

Iphone detect Region Format

I want to to deliver different iTunes buy links to a user depending on where there Region Format is set (in general settings). Is there a way to detect that and then deliver a separate database to each users region? Thanks for the help. GS. ...

Set Default DateTime Format c#

Is there a way of setting or overriding the default DateTime format for an entire application. I am writing an app in C# .Net MVC 1.0 and use alot of generics and reflection. Would be much simpler if I could override the default DateTime.ToString() format to be "dd-MMM-yyyy". I do not want this format to change when the site is run on...

WDSaveFormat value for .odt

Hello. I am trying to convert .doc files into multiple office types (docx,txt,pdf,odt) from doc. Based on a previous post #35639, I found a sample in the microsoft script library: With that information and this link to MSDN I found the values for office formats, but my question, is there a value for .odt using the WDSaveFormat value?...

OpenXML - CellFormats - Do I really need to configure one for every single permutation??

I'm currently working with v2.0 of the SDK to generate an Excel workbook and it was all going well until I came to apply the cell formatting. I've created a few CellFormats and successfully applied them but there are a few more permutations that I need to configure: 4 fonts (normal, bold, italic and bold+italic) 5 number formats 3 ali...

c# Datagridview cell not accepting currency format change.

Hi, I am trying to change the format of a cell in a datagridview using the following code. this.dataGridView[2, 1].ValueType = typeof(decimal); this.dataGridView[2, 1].Value = 500; this.dataGridView[2, 1].Style.BackColor = System.Drawing.Color.OrangeRed; this.dataGridView[2, 1].Style.Format = "c"; The c...

Need to use D3DFMT_LIN_A8R8G8B8 instead of D3DFMT_A8R8G8B8 for textures to show correctly on Xbox 360 while this is undefined on the PC. LIN stands for Linear...

Hi All, In the Xbox 360 I found out that I have to use D3DFMT_LIN_[xxxxxxx] instead of just D3DFMT_[xxxxxxx] since the textures wouldn't work with D3DFMT_LIN on the 360. As the tite says the LIN part stands for Linear, the description between the D3DFMT_LIN and D3DFMT_ for the texutres is just that one format is linear one isn't. So wo...

How to output floating point numbers in the original format in C++?

It's a coding practice. I read these numbers as double from a file: 112233 445566 8717829120000 2.4 16000000 1307674.368 10000 2092278988.8 1234567 890123 After some computation, I should output some of them. I want to make them appear just the same as in the file, no filling zeros, no scientific notation, how could I achieve it? Do I ha...

What is the difference between plaintext and binary data?

Many languages have functions which only process "plaintext", not binary. Does this mean that only characters within the ASCII range will be allowed? Binary is just a series of bytes, isn't it similar to plaintext which is just a series of bytes interpreted as characters? So, can plaintext store the same data formats / protocols as bin...

PHP: strtotime()... again.

How do I have to write "+3 days at 12:34:56" to make strtotime() parse it properly? ...