format

any other data format except 'csv' can upload to gae(google-app-engine)

i can use 'csv' file to upload to gae , and i want to know , can any other data format do this, thanks ...

extjs datefield iso format?

What is the correct format string for an ext date field of the following kind: 2010-06-22T17:00:00 Thanks ...

File Format DOS/Unix/MAC code sample

I have written the following method to detemine whether file in question is formatted with DOS/ MAC, or UNIX line endings. I see at least 1 obvious issue: 1. i am hoping that i will get the EOL on the first run, say within first 1000 bytes. This may or may not happen. I ask you to review this and suggest improvements which will lead to...

Is there any function in SQL Server to convert a number into Time format?

I am getting a whole number for the duration of product. For example : 62, 103, 184, 4543. I want to convert it in time format. Let say , in case of 62, it would format like '00:01:02'. I am looking for a function which can resolve my problem. Is there any function in SQL Server which convert a number into time format? ...

how to download data to b.csv that like a.csv format from gae localhost server .

my a.csv is: 001,哈哈大学 002,拉拉大学 003,啊啊啊大学 004,文网文大学 005,卡卡卡大学 006,请求权大学 007,凤飞飞大学 and my str_loader.py is : class College(db.Model): cid = db.StringProperty(required=True) name = db.StringProperty(required=True) class CollegeLoader(bulkloader.Loader): def __init__(self): bulkloader.Loader.__init__(self, 'College',...

How to change date format from DD/MM/YYYY to YYYY-MM-DD ?

Hi i need to change the format of my date string using PHP from : "06/16/2010" to : "2010-06-16" can you please help me achieve this thanks ...

format a string to usa phone number in vb.net

just as the question says. I get numbers like 2125550938 or 20298277625552. these should change to (212) 555-0938 and (202) 982-7762 x 5552 respectively. this is in vb.net ...

IMAPIv2: Format a DVD-RAM with UDF2.0 and access like a hard disk

Hi, I have been using the IMAPI2 API to format DVD-RAMs, and am stuck on a lot of problems: Firstly, I am working with IMAPIv2 installed on Windows XP SP2. My client application is a managed .net 2.0 application, which accesses the IMAPI API through COM imports. The wrapper code is borrowed from the folowing codeproject location: http...

Format a Date into Mai 2010 in T-SQL

Dear interested reader, how do I format a date (smalldatetime) in Mai 2010 (i.e. 06.05.2010 => Mai 2010 or 06.10.2009 => October 2009) thx a lot... greetings ...

How can i get 0 infront of any number?

Hi guys, I would like to append 0 before a number if it is single digit. ie. it should be 01,02,03... 09, 10, 11, ... and so on I am using vb.net... how can i do that? Edit: It was really nice to c alot of responses... I am thankful to you all for help. your suggestions worked correctly but i can choose only one correct answer so n...

How to truncate an html text and still maintain the format, in PHP

I have text with minimal tags like 'a','b','i' etc inside it. Now i want to truncate the text to 100 chars and still want to maintian the formatting. I don;t want to strip the tags off from the text. Is it possible? how can it be done. ...

ReportViewer format text with HTML Tags

Is there a way to simply format text within the ReportViewer Control so it is formatted correctly and the tags do not display. I have text within a database field stored similar to the following: this is some text.<p/><p>more textaslkdflsdlfkdslskfasldf<p/><p>&nbsp;</p><p>asdkfksadjf &ndash; aslkfdskfd</p> I'd like it to display norma...

UIWebView loadHTMLString format

Hi, I'm new to the whole "iPhone Dev" world, and I am creating a simple app which has a feature to see the latest entries from a number of different Wordpress blogs. I am able to grab encoded content ( node) from the RSS feeds and display it easily enough using a UIWebView and the loadHTMLString function. What I cannot figure out how ...

Confusion with Gravatar URLs.

I am having a bit of trouble getting Gravatars to work properly: When I request the following: http://gravatar.com/avatar/8a17d0d0d8bdf6a8d527bbc943a17cf8.jpg?s=64&d=identicon Firefox proudly displays the following: ...indicating that the file is a PNG image. This confuses me - I thought Gravatars were JPEG images. It seems like ...

PHP: Trouble with preg_match_all() return

I'm writing this quick script to extract chatroom names from the source of a webpage. I'm grabbing the data with fopen() and fgets() and that all returns fine. My regex is /#[a-zA-z]+/, which does seem to work. However I can not get preg_match_all() to return a concise list of data. preg_match_all("/#[a-zA-z]+/", $contents, $foo, PREG_...

Python String Formats with SQL Wildcards and LIKE

I'm having a hard time getting some sql in python to correctly go through MySQLdb. It's pythons string formatting that is killing me. My sql statement is using the LIKE keyword with wildcards. I've tried a number of different things in Python. The problem is once I get one of them working, there's a line of code in MySQLdb that burps on...

MS Access form field display format

Hi all We are working on an application using MS Acces 2003 and SQL Server 2005. We are saving a fields that contain a text data for example 002215.28 but we want to display it on the screen in a special format for example like this 00 22 15.28. To do so on the Form Design toolbar and in the Format property box, we type a custom forma...

Parse non-standard date format like "+0yyyyMMdd"

I Have Date, that comes to our system in format +0yyyyMMdd For instance 12 March,2011 is +020110312 For now it's definitely + symbol and one 0 before Date, but in future it may be more than one zeros,e.g. +000020110312 Is it possible to parse it with standard Java java.text.DateFormat.parse(String source)? Or I should write custom pa...

Whats wrong with this table format in IE?

Hi, This is only happening in IE, when I place the table labeled -- middle table -- into this HTML, the alignment of the parent table gets messed up and the width="250" on the first TD gets ignored it seems. (the select box should start at 250 pixels from the left of the page, however it doesn't. remove the table labeld -- middle table ...

Count occourances by hour in PHP

I have a script that polls a MySQL database (Nagios, specifically) for the date/time of events. I want to count how many events occur in each hour based upon all of the data my script returns. Here is what the results look like: (each on their own line) 2010-03-01 03:20:26 2010-02-28 19:07:26 2010-02-28 00:50:37 2010-02-27 17:07:35 ...