convert

Rails: attachment_fu plugin, convert PDF uploads to image

Yo, I've got attachment_fu set up on my server, and it works just fine. My goal, however, is to be able to upload PDFs and have them convert to image (then use all the pre-built attachment_fu options like resize and thumb produce the desired images). What currently happens is that PDFs upload and remain PDFs, whereas images go through a...

php, whats is the different between strtolower and mb_strtolower?

php, whats is the different between strtolower and mb_strtolower? If i want to convert submitted email address, to be converted to lower-case, which one should i use? Is there any email like this : [email protected] If there are such email, should i still convert the submitted email address to lower case? ...

Converting byte to an instance of an enum in fsharp

Hi, Let's consider the following enum in C# public enum ScrollMode : byte { None = 0, Left = 1, Right = 2, Up = 3, Down = 4 } The F# code receives a byte and has to return an instance of the enum I have tried let mode = 1uy let x = (ScrollMode)mode (Of course in the real application I do not get to set...

Any tools/libraries to convert ppt and pdf files to flash swf on server side?

Hi, I'm building a pet project which needs to convert pdf and ppt files to flash swf files on the server side. This should look similar to what Scribd, Docstoc or Slideshare these websites do. But after some googling, I couldn't find any open source tools or libraries to do this except the OpenOffice wrapper. So I'm wondering how those ...

Converted project .net 2.0 to 3.5, where are the extension methods?

Hi, I've recently converted an app from .net 2.0 to 3.5 but I don't see any extension methods... what am I doing wrong? Or what else should I do besides changing the target framework from 2.0 to 3.5 in project settings? ...

jQuery to Prototype convert: Dynamically SlideUp div on mouseover

Hi, I use this jQuery code to slide up a div over its wraper div dinamically: jQuery.fn.masque = function(classSelector) { $(this).hover(function(){ $(this).find(classSelector).stop().animate({height:'88px',opacity: '0.8'},400); },function () { $(this).find(classSelector).stop().animate({height:'0',opacity: '0'}, 300);...

With C# which one is faster - System.Convert.ToString( objThatIsString) or (string)objThatIsString ?

or objThatIsString.ToString() as it was pointed out in the aswers .. Faster not wiser .. ...

Convert A String (like testing123) To Binary In Java

I would like to be able to convert a String (with words/letters) to other forms, like binary. How would I go about doing this. I am coding in BLUEJ (Java). Thanks ...

Float to String: What is an Exponent part?

Hi there ;-) I've written a small function in C, which almost do the same work as standart function `fcvt'. As you may know, this function takes a float/double and make a string, representing this number in ANSI characters. Everything works ;-) For example, for number 1.33334, my function gives me string: "133334" and set up special in...

Free tool to convert XSD to HTML

Is there good freeware tool that will help me convert XSD to HTML? Thanks, Jerry ...

WPF Convert Integer to Image without DB Binding

Using the following code, I'm retrieving a list of Integers from a DB and Converting them to Images of Flags <ComboBox Name="ComboBox1" ItemSource="{Binding Path=NumberList"> <ComboBox.ItemTemplate> <DataTemplate> <Image Source="{Binding Path=Numbers, Converter={StaticResource myValueFlagConverter}...

CSV to XLS linux script

I need a script to convert a comma seperated csv file to an excel xls file. I tried a python script online but i couldn't install the correct version of python to install a mod/dependency the script required. What is the best solution? ...

Quickest way to convert a base 10 number to any base in .NET?

I have and old(ish) C# method I wrote that takes a number and converts it to any base: string ConvertToBase(int number, char[] baseChars); It's not all that super speedy and neat. Is there a good, known way of achieving this in .NET? EDIT: I should clarify - I'm looking for something that allows me to use any base with an arbitrary s...

Converting A String To Hexadecimal In Java

I am trying to convert a string like "testing123" into hexadecimal form in java. I am currently using BlueJ. And to convert it back, is it the same thing except backward? ...

Java : how do you convert nanoseconds to seconds using the TimeUnit class?

how do i convert this value from nano seconds to seconds? I have the following code segment: import java.io.*; import java.util.concurrent.*; .. class stamper { public static void main (String[] args ){ long start = System.nanoTime(); //some try with nested loops long end = System.nanoTime(); long elapsedTime = end - start; ...

CAST incorrectly casting float to varchar

Group, I am sure this is user error somehow, but I am trying to CAST a column of numbers from a float to a varchar. It works great for anything under 7 digits, but if the number is 7 digits it turns it into scientific notation or what ever they call that. For example: 440000 displays 440000 1299125 displays 1.29913e+006 It looks like...

"Delphi Fundamentals" in Delphi 2009

Hello, Has anybody used/converted "Delphi Fundamentals" in Delphi 2009? - http://fundementals.sourceforge.net/ I'm using Dictionaries (cArrays.pas,cDictionaries.pas,cStrings.pas,cTypes.pas) in my project and now i have some troubles on upgrading code. I'll be highly obliged if anybody can convert the above mentioned units in Delphi 200...

How many digits will be after converting from one numeral system to another

The main question: How many digits? Let me explain. I have a number in binary system: 11000000 and in decimal is 192. After converting to decimal, how many digits it will have (in dicimal)? In my example, it's 3 digits. But, it isn't a problem. I've searched over internet and found one algorithm for integral part and one for fractional...

Converting inserted string to a compilable expression

Hi, I'm somehow new to Java so my question can seem trivial, however i cannot find an answer to it anywhere in my books. I want to initiatie a dialog with a user in which he would enter an arithmetic expression (ex. (2*x+y)) And then print out the result for such expression (for given values of x and y) String EXPRESION = null; E...

Flex/AS3 - does anyone know how to take an AS3 display list, and create mxml from it?

I've been struggling with how I can build mxml from the displaylist created within an application. For example, create a number of components on a canvas, then click a button to get a formatted xml document, in mxml, of the canvas and its properties. Is there a simple method for this? Many thanks for any help... ...