format

SQL date format bind variable

Can anyone please tell me what is wrong with this SQL query. "select USERNAME, DATECREATED, CREDTYPE, USAGETYPE, OPERATIONID, TXNID, CALLERID from arwfissuanceauditlog where OPERATIONID in (2104,2107) and datecreated >= 'to_date('2010/06/21', 'yyyy/MM/dd HH24:MI:SS')' and datecreated < 'to_date('2010/08/03', 'yyyy/MM/dd HH24:MI:SS')'" ...

Identify whether the selected text in a web page is bold nor not

Hi I am trying to identify whether a selected text (in Firefox) is bold or not? For e.g.: <p>Some <b>text is typed</b> here</p> <p>Some <span style="font-weight: bold">more text is typed</span> here</p> The user can either select a part of bold text, or the full bold text. Here is what I am trying to do: function isSelectedBold(){ ...

How to edit the contents of index.dat windows file

Hi Everybody, I need to be able edit the content of index.dat file programmatically (C:\Documents and Settings\Username\Cookies\index.dat). More precisely I need to modify it in order that index.dat for one user can be used for a different user name. Is there any documentation out there for this kind of binary file? Thanks, Radu ...

PHP date formatting issue

This PHP statement date('Y-m-d',1281394800) returns different values in different servers. One gives me 2010-08-09 and the other 2010-08-10. Could someone please help explain? ...

When does format actually print in Common Lisp?

I have the following Common Lisp code: (defun micro-read-eval-print () (format t "Micro > ") (let ((form (read-line))))) When I run it, I get the following: CL-USER> (micro-read-eval-print) (m-quote a) Micro > NIL Note that I typed in "(m-quote a)", while the Lisp interpreter output "Micro > NIL". Now, I would have expecte...

Java library for wiki format strings? [b] to <strong>, [url] to <a href>

Hey. I need a lightweight, easy and customizable (i can control which tags to be enabled/disabled) library to identify and replace "wiki-ish" markup language to HTML in Strings. For example: [b]hello[/b] would be <strong>hello</strong> [url]hello[/url] would be <a href="hello">hello</a> ...

Rails response.format fallback?

A rails app has some files end with .mobile.erb, which is for iPhone. There is before_filter which set request.format = :mobile by check the request.user_agent. My question is below: If some_action.mobile.erb doesn't exist. How to fallback to some_action.html.erb rather than an error page. ...

What is a good way to format sql of a view from MYSQL

As most of you would know, when you save a view in MYSQL and then retrieve it later, it's all in native MYSQL, looks terrible - no line spaces, indents, plenty of UTF encoding tags littered around the place making your code look like sql soup. Does anyone have a program or recommend a plugin to netbeans that i can use to format this sql...

DataGridView: Format values without actually changing the bounded data?

Hello I've been searching through the web but I have not been able to find an answer. I have a DataGridView with a BindingSource bounded, which has a List of objects of a custom class. Among the fields of the class, I have a string field which I want to show using Path.GetFileName(); because it contains the whole filepath and what I...

what is field sequential 3D?

What is field sequential in 3D? I've been scouring the internet but no luck. The only thing I got was this: Field-Sequential.  In the context of cinema-stereoscopy, the rapid alternation of left and right perspective views projected on the screen. But isn't this the same as frame sequential?? ...

mysql date to php

I have a date field in mysql that contains numbers like 2455419. Any idea what format this is and how to convert to php/human eadable form? ...

DateTime::createFromFormat - php format issue

PHP - DateTime::createFromFormat — Returns new DateTime object formatted according to the specified format this works: $var = DateTime::createFromFormat('Ymd','20100809')->getTimestamp(); but this fails with "Call to a member function getTimestamp() on a non-object " $var = DateTime::createFromFormat('Y/m/d H:M:S','2010/08/09 07:47:0...

Git Merge Recursive Ours - Command Syntax Example

What is the right format for a git merge with a strategy of recursive ours? (not to be confused with the git merge ours strategy) http://www.kernel.org/pub/software/scm/git/docs/git-merge.html I tried a bunch of ways and it doesn't seem to work. git merge foo -s recursive-ours // doesn't work git merge foo -s recursive ours // doesn...

.NET convert Datetime to format Sortable date/time pattern ("s");

Guys, Im working with VS2008, .NET and C#, and I need to send to one of our clients a DATETIME variable. The problem is that they want the Date in the format Sortable date/time pattern ("s"). When I get the actual datetime, it is a Datetime object. When I format it to the given format is now a String object, and it has the format I w...

I need a sample NCPDP/EDI file.

Hi, I'm working with a program called MIRTH, but i've not been able to find a sample EDI/NCPDP file anywhere. does anyone know where I can find one or have one on hand... I would be very happy if one were to respond to this message with a sample. Thanks, John. ...

Informal PHP date output library

Hi there, is there a library out there for PHP that formats dates in an informal way? I would love to have outputs like yesterday, 2 minutes ago, just now, three weeks ago – just like in Facebook. Makes blog posts appear so much more human. Thanks in advance for your help. ...

Format CSS with VIM like in Textmate

In TextMate there is this awesome option to "Format CSS" and "Format CSS Compressed". This option doesn't seem to exist in vim. Perhaps it's in a plugin I'm not aware of? Or maybe I need to integrate CSS Tidy somehow? ...

Python .format - error

Hi, I'm trying to get the following to work in a Python interpreter, however it gives me an error and I cannot seem to find where my mistake is? (I'm a python newbie) >>> print 'THe value of PI is approx {}.'.format(math.pi) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'str' object has no at...

How to parse follow date in Java?

Hello i need to parse this string Sun, 15 Aug 2010 3:50 PM CEST I'm using SimpleDataFormat in this way String date = "Sun, 15 Aug 2010 3:50 pm CEST"; DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy h:mm a Z"); Date d = formatter.parse(date); but it throws an exception. Can you help me please? Thanks ...

.NET format specifier for scientific notation with mantissa between 0 and 1

I am working with a Fortran program that expects floating point numbers to be input using Fortran's E format specifier, which is scientific notation, except the mantissa must be between 0 and 1. So instead of: "3147.3" --> "3.1473E3", it needs "3147.3" --> "0.31473E4". I am unable to modify the Fortran program, as it works with a ...