format

Valid format for "Address Line 1" in iTunes Contract info

Hello. iTunes connect requires tax contract for Paid Application. I do have one. I've passed the procedure of joining to Apple Developer Program, Apple's accepted my credit card. Now my first app is in status of "pending contract" and when i'm trying to submit my contract request the system displays message: The address entered appears ...

Displaying date in MM/DD/YYYY format in Iphone Data picker

Hi. In my Application i am using the UIdatePicker with fallowing code. UIDatePicker *datePicker=[[UIDatePicker alloc] initWithFrame:CGRectMake(0, 0, 480, 216)]; datePicker.timeZone = [NSTimeZone defaultTimeZone]; datePicker.datePickerMode=UIDatePickerModeDate; datePicker.date=[NSDate date]; datePicker.maximumDate=[NSDate date]; [datePi...

Ruby strftime: Month without leading zero?

Does Ruby's strftime have a format for the month without a leading zero? I found %e for getting the day without the leading zero, but not having any luck with the month. Ultimately wanting a date formatted like: 9/1/2010 ...

Objective C / iPhone: How do I extract the actual unicode date format strings for the current region?

I am completely new to objective c and iphone development, so please be gentle (just started looking at the code for the first time tonight). According to this site: http://iphonedevelopertips.com/cocoa/date-formatter-examples.html there is a class that handles formatting, which takes in a set of constants/enums (e.g. NSDateFormatterSh...

How does BT magnet links work?

For the first time i used a magnet link. Curious about how it works i looked up the specs and didnt find any answers. From the wiki it says xt means exact topic and is followed by the format (btih in this case) with a SHA1 hash. I saw base32 mentioned, knowing its 5bits per letter and 32 letters i found it holds exactly 160bits which is ...

Table putting words with spaces on different lines

I am trying to make a table in HTML. When I resize the window down to be narrow and the window tries to squash everything to fit inside the window even though it's narrow, it puts the contents of a cell on different lines. I don't want this to happen. E.g.: home about contact us when you narrow down the browser window: home ...

how to convert seconds to time format ?

hi there for some reason i convert a time format like : 03:30 to seconds 3*3600 + 30*60 , now .. i wanna convert it back to it's first ( same ) format upthere ... how could that be ? My attempt : 3*3600 + 30*60 = 12600 12600 / 60 = 210 / 60 = 3.5 , floor(3.5) = 3 = hour now .. what about the minutes ?? considering the value can ...

Objective C / iPhone - How does the Date Time Picker format its dates (e.g. strips YYYY) AND how do I retrieve these formats?

When using the Date/Time picker on the iPhone/iPad, the year (yyyy) is stripped from the Date formatting in order to make room for the time. How does it accomplish this based on the default unicode formats stored by the region format? The formats do not necessarily match any of the following: NSDateFormatterLongStyle NSDateFormatterSho...

Converting string to time

Hi, I have string like this:"0:385" (first number is seconds, next numbers are milliseconds), I want to use in datagridview with sorting like numbers (not like strings) so I am trying to make DateTime from string but I am not sure how exactly do this. I know I should use method Parse (or ParseExact) but when I tried it it says "String wa...

Error: Unexpected end of format string in format string, fortran 90

Getting this error while trying to compile a copied code from a fortran 77 program. code: 900 FORMAT(1H0,2X,'ABSOLUTE GRID LIMITS FOR DATA RETENTION FOR RADAR',I3,' XMIN-XMAX ',2F8.3,' YMIN-YMAX ',2F8.3,' ZMAX ',F8.3, /3X,'WITH AZIMUTH LIMITS OF',2F8.2, 3X,'AND RANGE LIMITS OF',2F10.3,/) compiler error: messy21.f90:529.132: N FOR R...

Windows C/C++ Drive Init/Partition/Format

Hi, I am trying to build an application for Windows XP 64bit which is able to detect drives of a particular model in the system, and if they are not initialized & formatted perform these processes. I would also like to be able to query and set the partition information(including the volume label). I have started putting together code ...

Visual Studio 2010: Unit test results with "jump to file at line/col" links

I'm unit testing a compiler and would like to provide a unit test result that can be clicked and will bring visual studio to a specified test input file with the cursor at a specified line/col. Is this possible? I've tried the format outlined at http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-message...

Excel Custom Data Format

I'm using NPOI to generate XLS spreadsheets. NPOI is an Excel Spreadsheet generation library/API that is available on codeplex, enables you to create workbooks, formatting, formulae and so on and so forth....I use it to create workbooks with multiple sheets that contain the output of the various calculations. I've used the following cus...

Determining the time frame given by a pattern

A date can be formatted using a e.g. SimpleDateFormat(formatPattern, locale). Is it somehow possible to determine the time period (in seconds) that is represented by formatPattern given a date? E.g. if we have Date date = new Date(1286488800); String formatPattern = "yyyy"; is it possible to determine the length of the year (in second...

Formatting asp.net label when the value is sourced from a query string

Afternoon all. A very simple one for you today from thicky Rich. I have a label I want to display as a lovely number format i.e. {0:N0} Now, this label text equates to a query string value. How do I go about formatting a label's text from a query string value in one fell swoop? I have tried this lblTotalPurchQS.Text = String.For...

Java(Android) convert SQLite date to "x days ago"

I have: String date = "2010-10-9 12:00:00"; I want to parse that string, then subtract that date/time from the current date/time so that I can output a string similar to "2 days ago". ...

Date time format

i want to set a variable to a particular date like this in php..how to write this function in php? jsmyStartDate = new Date('April 1, '+curYear+' 1:59:59'); ...

Sitemap in XML format or XHTML format?

Hello What would be the most suitable format for sitemap files? XML or XHTML? ...

Textarea input - how to deal with paragraphs and headings?

I currently use the following expression which I use to put paragraph tags around textarea input before storing it in a MySQL database. $inputText = str_replace('<p></p>', '', '<p>' . preg_replace('#([\r\n]\s*?[\r\n]){2,}#', '</p>$0<p>', $inputText) . '</p>'); This works well and good, except when I wish to use header tags. These are ...

Android get time format

Is there a nice way to retriev the time format e.g. 24h or 12h from within an android app? ...