you know contact us page in every site
i want the user format this page and save this in sqlserver and retrive the same format
to desplay in the site
how can i do it
I have a data file which contains integers say in range 0-255 containing about 1000 integers which are random in nature.I want to use that as a mask or to multiply an image which is in RGb and another image which is in gray format. HOw do i go about this, how do i convert/represent this data file in matrix format of image dimension ?Kindly suggest.
also is it possible to obtain a 3D histogram?
In a repeater control I've Eval binding as:
<%#Eval("PubDate", "{0:dd-MMM-yyyy}")%>
But date time format needs to be configurable from the web.config.
I want to access datetime format from web.config in markup like:
<%#Eval("PubDate", "{0:<%$ AppSettings: DateTimeFormat %>}")%>
But is is not working...
Any suggesions?
I'd like to save screenshots from my game to camera roll.
Right now I'm using UIImageWriteToSavedPhotosAlbum which saves the image in jpg format with way too much ugly jpg artifacts.
Is there a way to save an UIImage in png format to camera roll?
Hi All,
I want to convert my text into HTML format, it would be just like this that I just copy paste the text from word, pdf [with formatting & colors] to the editor and it will convert it into HTML tags, so that when I decode it again it would give me the same format that I have pasted.
I am almost happy with the page brezeer but sometimes it destroy the formatting.
Please suggest me any other editor.
Thanks in advance
I have some code that does an awful lot of string formatting, Often, I end up with code along the lines of:
"...".format(x=x, y=y, z=z, foo=foo, ...)
Where I'm trying to interpolate a large number of variables into a large string.
Is there a good reason not to write a function like this that uses the inspect module to find variables to interpolate?
import inspect
def interpolate(s):
return s.format(**inspect.currentframe().f_back.f_locals)
def generateTheString(x):
y = foo(x)
z = x + y
# more calculations go here
return interpolate("{x}, {y}, {z}")
My input string is '16-MAR-2010 03:37:04' and i want to store it as datetime.
I am trying to use:
db_inst.HB_Create_Ship_Date = datetime.strptime(fields[7]," %d-%b-%Y %H:%M:%S ")
fields[7] = '16-MAR-2010 03:37:04'
I am getting an error:
::ValueError: time data '16-MAR-2010 03:37:04' does not match format ' %d-%b-%Y %H:%M:%S '
I am running Python version --EDIT-ME-- on the --EDIT-ME-- operating system.
My locale is --EDIT-ME--.
Which format do I have to use?
i have stored in the database as
location
India,Tamilnadu,Chennai,Annanagar
while i bind in the grid view it ll be displaying as
'India,Tamilnadu,Chennai,Annanagar' this format.
but i need to be displayed as 'Annanagar,Chennai,Tamilnadu,India' in this format. how to perform this reverse order in query or in c#
related to http://stackoverflow.com/questions/2520535/gcc-multi-dim-array-or-double-pointer-for-warning-free-compile , is there a way to return so-called "decayed array pointer" from a function? in summary (suppose 2 dim array) returning int (*a)[5] format rather than int** format?
as far as I see, when returned int** pointer is sent to another function waiting (int*)[] parameter, it is not working correctly.
I'm looking for a light, free tool to format my Vbscript code.
The only way I've found so far is to auto-format it in VisualStudio. Although, it's too much to launch VisualStudio for this purpose.
Is there any web app or a free light tool for this purpose? Maybe a plugin for Notepad++?
Hi All
I want to generate image on server side. My Image is stored in server side's database in blob format and I am able to convert it into string_image;
Then How to convert that string_image into actual .jpg or .png format.
Actually I am posting attachment as image on users facebook' wall.
How to generate Image at server side in Java?
Is there any sample code to do it?
Write a JavaScript that has two text input; one for name and one for phone number. It also has two buttons: Reset and Submit.
The name should be in the format: (LastName, FirstName, MiddleInitial.)
The phone number should be in the format (ddd-ddd-dddd)
The input validation happens when a change is done to one of the two text inputs (onChange event).
A very poor style to code but sometimes unavoidable. It is an extreme example. So
is there some limit for nesting classes?
are they equivalent?
how do you deal with such situations? Create library?
Code
new FileObject().new Format().new Words().new Some().new Continue someThing;
((((new FileObject()).new Format()).new Words()).new Some()).new Continue someThing;
Hi,
I am trying to format the date time (yyyy/MM/dd) in a repeater which is binded to an ObjectDataSource as shown
(THIS WORKS)
<%# ((MyType)Container.DataItem).CreateDateTime.ToString("yyyy/MM/dd")%
(THIS DOES`NT WORKS)
<%# String.Format("{0:yyyy/MM/dd}",((MyType)Container.DataItem).UpdateDateTime)%
I want to have both things working because sometimes the property UpdateDateTime is null, in such cases the second line of code handles smart.
Thank you for the help in advance.
I am trying to parse a string which in JSON format only that keys are not enclosed in quotes. I can very well parse this string in Javascript, but can not find a Java API which will help me parse this. All the APIs I tried assumes strict JSON format.
Can anyone suggest a library which has an option to parse this, or a whole new approach to the problem (say like use regex instead) ?
How can I encode strings on UTF-16BE format in PHP? For "Demo Message!!!" the encoded string should be '00440065006D006F0020004D00650073007300610067006'. Also, I need to encode Arabic characters to this format.
i make a textbox,enter some data, store it into string format,there are some values as numbers,can i change these string numbers into integer format
the problrm is for visual c++ in visual studio in the windows form
Given the following method: (real method has a few more parameters, but the important ones are below...)
public string DoSomething(string formatter, params string[] values)
{
// Do something eventually involving a call to String.Format(formatter, values);
}
Is there a way to tell if my values array has enough objects in it to cover the formatter, so that I can throw an exception if there aren't (short of doing the string.Format; that isn't an option until the end due to some lambda conversions)?
Hello,
i think the fullcalendar jquery-plugin is a really great solution.
i saw does the string for the title in the fullcalender plugin is escaped (htmlEscape). But i need to format some strings in the title for example bold text or colors, or small images?
the solution with another plugin (for example qTip, like in the examples) will not the right way for me.
is there anyway to format the title text?
Regards
flauschi
I have a PHP application using an Oracle XE database.
Whenever I add a date the hours minutes, and seconds seem to get left out.
Is there some special format, or type I should use to be able to store this? I have tried using to_date, and specifying the format I am using.
Many thanks for any suggestions from this confused MySql dveloper.
Hi
When I am deserializing a hierarchy I get the following error
The input stream is not a valid binary
format. The starting contents (in
bytes) are The input stream is not a
valid binary format. The starting
contents (in bytes) are:
20-01-20-20-20-FF-FF-FF-FF-01-20-20-20-20-20-20-20
..."
Any help please?
I am using google data api which gives date in datetime format. I want to convert in Gregorian calendar date format. Does anyone know any methods for doing this?
I want to read pattern for JST formatDate also from resource bundle but this naive approach does not working, what I'm doing wrong ?
in com/company/MyPortlet.properties is this key:
company.date.format = yyyy-MM-dd HH:mm:ss
In page I have:
<fmt:setBundle basename="com.company.MyPortlet"/>
<fmt:formatDate value="${date}" pattern="${company.date.format}" />
I have a memory stream that contains a zip file in byte[] format .
Is there any way I can unzip this memory stream, without any need of writing the file to disk ?
In general I am using ICSharpCode.SharpZipLib.Zip.FastZip to unzip a file ,
But any way to unzip a memory stream ? and store the files in another memorystream or in byte[] format according to the files/folders present in the zip ?
Any way I can use the Memorymapped files feature in this scenario ?