Java text formatting
How can I format a string of text, like givenname, surname, telephone ect to look like columns? this won't do it: String customer = "\t"+surname+"\t"+givenname+"\t"+blablabla ...
How can I format a string of text, like givenname, surname, telephone ect to look like columns? this won't do it: String customer = "\t"+surname+"\t"+givenname+"\t"+blablabla ...
The listings package supports line breaks inside lstlisting environment. But it doesn't produce automatic line breaks for lstinline environment. For example, in the following paragraph the first line flows out of the margins: The parameters \lstinline|base_rmr_brain|, \lstinline|base_rmr_fat|, and \lstinline|baseline_basal_rmr_of_lean_t...
I have a review PAGE with a TEXTFIELD. User need to be able to write LONG STORY (1000 words+) may contain chars like ()*&^%$#@\/<> Once "save" is pressed I want to use Jquery GET -> to process content with PHP file. (save in mysql database) and return result. let's say I want to display "alert(words_were_saved:int)" How can I pass t...
For a decent and standardized php function I want to format a user inputted string to a std. international phone number format. The string will be stripped from other characters as digits and +-signs. All spaces will be deleted. After that I want to format the different strings to a standardized form: +310612345678 -> +31 (0)61 234 56...
I'm working with a spec that calls for a peculiar Datetime format that I haven't necessarily had to work with yet. At Process time, an OFX (1 not 2) datetime must be stamped (either DTCLIENT or DTSERVER) in a format like this: 20071015021529.000 however, in the examples it is shown: 20071015021529.000[-8:PST] I don't have a prob...
I have a value in a cell that's in bytes. But nobody can read 728398112238. I'd rather it say 678.37GB To write a formula to format it relatively easy (here's one: http://www.yonahruss.com/2007/02/format-excel-numbers-as-gb-mb-kb-b.html) But is there any way to do this as a 'format'? I'd like to have the big number in the cell, but hav...
How can I format WPF Listview Colum to show 2 decimal points? ...
Hi, i have built a reporting services report off SQL server 2005 and am having trouble getting the date to format correctly in a stand-alone textbox. The code i am using is as follows: ="Date: " & FormatDateTime(Parameters!date.Value, 2)) -- According to MSDN it should work off my systems culture when set to '2' however it is not. C...
I have components inside a VBox with a verticalGap of 5. I don't always want all of the components to show, so I set their IncludeInLayout property to false, but the verticalGap of 5 still shows. Anyone know how to get around this? ...
Why does this cause a syntax error for the return statement: var FOO = (function($) { return { init: function() { } } })(jQuery); Whereas this doesn't: var FOO = (function($) { return { init: function() { } } })(jQuery); Why is there a difference? ...
Python: I need to show file modification times in "1 day ago", "two hours ago", format. Is there something ready to do that? It should be in english ...
I have a weird problem, I need to parse a date string that looks like 1997-02-14T00:00:00.0000000+05:30. The odd thing about the date string is the time zone information. It's +05:30 instead of the usual +0530. I have the basic format string ready, yyyy-MM-dd'T'HH:mm:ss.SSSSSSSZ which would have worked like a charm, if not for the TZ in...
I have a requirement to format large numbers like 4,316,000 as "4.3m". How can I do this in C#? ...
I have the following number: 4.3 I'd like to display this number as 4,3 for some of our European friends. I was under the impression that the following line would do the trick: string ret = string.Format("{0:0,0}", 4.3); // returns "04", not "4,3" Am I using the incorrect string? ...
Hi I am trying to export a report as CSV format from Crystal Reports 11, but the problem is that each string value is wrapped inside quotes, which I don't want. I tried to set the delimiter as space but it didn't works. Can someone please help me with this..? Here is my code: elseif ExportFormat = "CSV" then ExportType = "5" ExportFile...
Hello, I generate some Excel file with Microsoft Interop, no problem, I can create files, sheet, file, password protect. But I'd like : for a specific range allow only numbers for an another specific range allow only numbers but only 0 or 1 Do you have an idea how to do this ? Thanks, ...
My apologies if I'm missing something obvious but there's something that really bugs me about the Eclipse code formatter. I don't want it to make any lines of code longer, only shorter. Is there a way to force the formatter to behavior this way? Example 1: if (somethingIsTrue() || somethingElseIsTrue()) { //-- Do Something. } Exa...
I have a list of floats. If I simply print it, it shows up like this: [9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006] I could use print "%.2f", but that would require a for loop to traverse the list, which I consider to be ugly. I believe that there must be a better s...
I have noticed with testing GPS locations, a value such as -123 might come up on Android as -123.83333336... is there anyway to format incoming GPS locations, such as within 2 decimal points? This way I can store values like -123.83 opposed to longer numeric values. I have checked out DecimalFormat and NumberFormat, these are strings and...
What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)? I suppose I could bind the "IsEnabled" property of each control to a boolean property. That property only exists for interactive controls and not textblocks. I could loop through...