Hey, I'm just wondering how to convert a numerical date into text format in PHP
Example change
06.04.2010 to say April 6th 2010
Is there any function already made?
Hi!
Is there a tool which allow to convert graphical representation of equestion to that equestion ? (Graphical representation to aproxx. math equestion)
Hi All,
I need to convert the IL to c# code.
I have an assembly and I am reading this assembly.
I get MethodBody from MethodInfo and the methodbody has a method GetILAsByteArraY()
which returns a byte array now I want to comvert this IL to C# code.
Please help me out in solving this.
I am looking for a formula that will give me all of the Vector2 Points within a certain radius given the center.
Essentially what I am trying to do is change the color of each pixel in a 256 x 256 texture that is within a certain radius from a specific pixel (Using the Unity3d Game Engine). Programming Language doesn't really matter, as I can probably convert it to something I can use.
I am trying to take database backup. How can I do that when getdate is being appended with file name with format dd/mm/yyyy.
declare @dbName VARCHAR(100)
declare @path VARCHAR(100)
set @dbName='CallMeIndia'
set @path='F:\'+@dbName +'-'+convert(varchar(50),getdate(),103)+'.bak'
BACKUP DATABASE @dbName
TO DISK= @path
Accidentally I have created file "-" (just a minus) in a directory and commited it.
I have to delete it because its causing error on other machines:
svn: Can't convert string from 'UTF-8' to native encoding:
svn: ?\226?\128?\147
I can remove it from local directory using "rm -i *" or with python "os.remove('\xe2\x80\x93')" but those methods do not work with "svn rm".
How to delete such file from svn repository?
Is there a way to convert it into object form? So that each field of the result can be accessed results[i].field
where i is the number of records in the mysql result..
This is my JSON String
http://pastebin.com/Cky1va3K
I've recently been given a MS Access .mdb database file and asked to make it usable in a Linux system. What I'm looking for is a way to convert the Access database to an open-source database such as MySQL or PostGres.
I don't have MS Office, and it's a one-time project for a volunteer organization so I don't want to spend money if it's avoidable. I'm running Vista x64, and have a Linux virtualbox, so something usable in either one will be good.
Hi,
I have written a small program where the program works differently on different operating systems (xp, win7) The problem is the program reads some float numbers such 2,686.
One operating system (win7) convert it to float true, but on xp it goes wrong and print it 2686. How can I understand which symbol the operation system uses for decimal numbers ?
Thanks.
Hi guys
I need to convert a string to a monetary format of {###}.###.###,##
that is
a value of 5461497702600
would become
54.614.977.026,00
The numbers become excessively large.
I am using
return string.Format(string.Format("{0:#" + (val < 1000 ? "" : "\\.") + "##0.00}", val));
which returns for the example
54614977.026,00
(only one dot)
Any help would be appreciated
$fp_src=fopen('file','r');
$filter = stream_filter_prepend($fp_src, 'convert.iconv.ISO-8859-1/UTF-8');
while(fread($fp_src,4096)){
++$count;
if($count%1000==0) print ftell($fp_src)."\n";
}
When I run this the script ends up consuming ~ 200 MB of RAM after going through just 35MB of the file.
Running it without the stream_filter zips right through with a constant memory footprint of ~10 MB.
What gives?
Hello SO;
I'm trying to convert xml elements whose content is a csv list of identifiers, the exact form doesn't matter. I want to exclude every item that contains the character "/". The best I've come up with is
translate(./someElement, ",*/*", "")
but this has at least two problems; I'm pretty sure that xsl doesn't accept wildcards, and "," is an illegal character in xpaths.
Is there a straightforward way to do this sort of thing?
I am trying to return the duration of the video but am having trouble.
#YOUTUBE FEED
#download the file:
file = urllib2.urlopen('http://gdata.youtube.com/feeds/api/videos/2s0vk2wEMtA')
#convert to string:
data = file.read()
#close file because we dont need it anymore:
file.close()
#entire feed
root = etree.fromstring(data)
for entry in root:
for item in entry:
print item
When I print item, I see as the last element:
Element '{http://gdata.youtube.com/schemas/2007}duration' at 0x10c4fb7d0
But I don't know how to get the value from this. Any advice?
I would like to ask how i should add the minus sign front of a decimal value.
i want the user to add e.g. 100 and behind the scenes to convert it in -100
thank you.
I have to process JSON files that looks like this:
\u0432\u043b\u0430\u0434\u043e\u043c <b>\u043f\u0443\u0442\u0438\u043c<\/b> \u043d\u0430\u0447
Unfortunately, I'm not sure how this encoding is called.
I would like to convert it to .NET Unicode strings. What's the easies way to do it?
Thanks in advance!
The existing site in cakephp with flash. We need to convert it into mobile version.
Please suggest me is there any possibilities for making mobile version.
hi,
i made a class named x;
so i want to make array of it using dynamic allocation
x [] myobjects = new x();
but it gives me that error
Cannot implicitly convert type 'ObjAssig4.x' to 'ObjAssig4.x[]'
i know it's dump question but i am a beginner
thanks
Int64 c1 = Convert.ToInt64(csvdeep[1]);
Int64 division = 1024;
string results = Math.Abs(c1 / division / division / division).ToString();
My c1 is 10201841664 and results is "9".
I'd perfer to get the 2nd two decimal places so my real result would be 9.50. Any tips on how I could get the 2 decimal places?
Hi,
how to convert a floating point 10 byte Hex string (Extended datatype in Delphi) to a C# datatype?
For example:
00 00 00 00 00 00 00 80 ff 3f is at Delphi 1
I'm getting a specified cast error trying to return a integer, example code below:
results = pipeline.Invoke();
foreach (PSObject ps in results)
{
int diff = 0;
Int32 exchcount = Convert.ToInt32(ps.Members["itemcount"].Value);
diff = itemcount - exchcount;
}
I'm trying to find out what the data type if for itemcount of the Get-Mailboxstatistics but i can't find the information, i assume it's Int, i've tried string but that does not work either. any ideas please let me know!
Thanks
Steve
I'm curious if anyone still creates icons other than RGB/A (or 32-bit with alpha-channel) for your Windows apps?
PS. I know that suggested model is to create 256-color versions of icons, but I always struggle with those. If I automatically convert them in an icon editor they totally decimate the look of my original icons with jagged edges and circa-Windows95 look. So if those are still required, does anyone know the stats on how many people are still using color settings other then 32-bit TrueColor?
Hello,
in short i need to convert following C# code into SQL stored procedure
foreach (var e in Entity)
{
if (File.Exists(e.Filename))
File.AppendAllText(e.Filename,e.Content);
else
File.WriteAllText(e.Filename, e.Content);
}
I have a problem getting a character from the user in VC++.the function i want to use uses the char format so when i get the input using getch() it gives me an error that can't convert 'int' to 'char'.
could someone please help me how to get the input in char format please?