Welcome To Snipplr


Everyone's Recent Snippets Tagged convert



« Prev 1 2 3 4 5 6
  1. FAV

    C# - Convert decimal value of integer type to binary value of string type

    Microsoft Official Documentation: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
    C# 7 views posted 2 years ago by clinaq
  2. FAV

    How to Convert PDF Pages to TIFF Image inside .NET Applications

    This technical tip shows how to convert PDF pages to TIFF image inside .NET Applications. The TiffDevice class allows you to convert PDF pages to TIFF images. This class provides a method named Process which allows you to convert all the pages in a...
    C# 6 views posted 3 years ago by sherazam
  3. FAV

    Detect and convert utf-8 on string

    I can't say I can rely on mb_detect_encoding(). Had some freaky false positives a while back. The following code will detect when you need to enconde or decode it.
    PHP saved by 1 person 7 views posted 4 years ago by fackz
  4. FAV

    Mysql - Convertir todas las columnas en colación utf8

    Consulta que permite convertir todas las tablas en colación utf8
    MySQL 6 views posted 4 years ago by ironcrema
  5. FAV

    How to add text-to-speech and speech-to-text features to your SIP software by using Microsoft Speech Platform in C#?

    In my previous snippet I have written about converting text to speech using C#. This code snippet can be used not just for allowing your computer to read txt aloud, but also for speech recognition. To implement this functionality I used Microsoft Sp...
    C# 6 views posted 4 years ago by warnerBro19
  6. FAV

    How to implement text-to-speech during a SIP voice call in C#?

    I have heard about this solution on the Facebook, and I thought it is worth to share my source code to help other developers interested in converting text to speech using C#. Text-to-speech refers to the ability of computers to read txt aloud. This f...
    C# saved by 8 people 4 views posted 4 years ago by warnerBro19
  7. FAV

    HTML to Plain Text

    This function takes HTML input and converts it to plain text. It needs improvement so that it converts multiple blank lines to a single blank line and converts an <a ... > link to the markup equivalent (same for images). It should be rewritten...
    PHP 6 views posted 5 years ago by nigelnquande
  8. FAV

    Convert Email to Other Formats using Cloud API in Ruby

    This technical tip shows how developers can convert email messages to other formats like EML, MSG & MHT in cloud using ruby language.
    Ruby 4 views posted 5 years ago by johansonkatherine
  9. FAV

    Convert MP3 to OGG

    This snippets converts a file called 'test.mp3' in the same folder, to a file called 'test.ogg' and saves it in the same folder as well
    PHP 8 views posted 5 years ago by dragoviandesign
  10. FAV

    Load Existing Email Message and Modify its Contents inside Android Apps

    This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In...
    Java 3 views posted 5 years ago by johansonkatherine
  11. FAV

    C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file

    The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
    C# 6 views posted 5 years ago by johansonkatherine
  12. FAV

    Java Code Samples for Converting Charts in Excel Files to Image Files

    The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, r...
    Java 5 views posted 5 years ago by johansonkatherine
  13. FAV

    Java Code Samples for Converting Charts in Excel Files to Image Files

    The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, r...
    Java 1 views posted 5 years ago by johansonkatherine
  14. FAV

    C# & VB.NET Code Samples for Exporting Microsoft Visio Diagram to XML

    This technical tip shows how .NET developers can export Microsoft Visio diagram to XML inside their own applications using Aspose.Diagram for .NET. Aspose.Diagram for .NET lets you export diagrams to a variety of formats: image formats, HTML, SVG, SW...
    Java 7 views posted 6 years ago by johansonkatherine
  15. FAV

    Convert Each TIFF Frame to JPEG & Transform them to PDF Format Using Java

    This technical tip shows how each TIFF frame can be converted to JPEG and then these images to PDF file using Aspose.Pdf for Java. Aspose.Pdf for Java is very well capable of dealing with TIFF images and can easily transform them into PDF format. How...
    Java 10 views posted 6 years ago by johansonkatherine
  16. FAV

    Convert IP Address to Hex

    Covnerts an IP address to it's relative hex value.
    PHP 8 views posted 6 years ago by martyncoup
  17. FAV

    Casting int to float

    method to convert int to float in ObjC
    Objective C 12 views posted 6 years ago by pecta
  18. FAV

    Convert Excel file (XLS) to CSV

    Convert Excel file (XLS) to CSV
    C# 15 views posted 6 years ago by engebaja
  19. FAV

    Convert Seconds into Time String in PHP

    This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"
    PHP 7 views posted 7 years ago by apphp-snippets
  20. FAV

    US State to Abbreviation Dictionary and Conversion

    Two static dictionaries for converting US state names to abbreviations, and the reverse.
    C# 13 views posted 7 years ago by misholson
  21. FAV

    [PHP] Convert seconds to time (years, months, days, hours…)

    This useful function will convert a time in seconds to a time in years, months, weeks, days, and so on.
    PHP 11 views posted 7 years ago by goo
  22. FAV

    PHP Function to Convert 12 Hour Time to 24 Hour Format

    Convert 12-hour time format with hour, minutes, seconds, and meridiem into 24-hour format. Performs data correction to make sure hours, minutes and seconds have leading zeros if needed. The trick here is to use strtotime() where we pass the time...
    PHP 11 views posted 7 years ago by kosinix
  23. FAV

    10 Digit String to Phone Format

    Formats a 10-digit phone number into a good format (123) 555-1234
    JavaScript 7 views posted 7 years ago by cpres
  24. FAV

    Parse PHP files into ASP extensions

    For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it hap...
    PHP 2 views posted 7 years ago by crypticsoft
  25. FAV

    ImageMagick Crop & Resize images

    simple command that resize and crop, if necessary, an image, centering the image.
    Bash 8 views posted 7 years ago by artaserse
  26. FAV

    AlivePDF download and save to server

    This PHP code is made to help people using the ActionScript 3 AlivePDF library to save PDF files from a Flash app to a server. ActionScript 3 AlivePDF save code: _pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
    PHP 5 views posted 7 years ago by vamapaull
  27. FAV

    transfrom submit button to hyperlink

    Convert a form submit button code to a hyperlink code and hide the form
    JavaScript 4 views posted 8 years ago by pavlosvos
  28. FAV

    Convert rgb to hex

    Convert rgb color detected by jQuery into hex value.
    PHP 5 views posted 8 years ago by macodev
  29. FAV

    Converting second to readable time

    This code is applied from http://www.ultramegatech.com/blog/2009/06/snippet-converting-seconds-to-readable-time/
    PHP 3 views posted 8 years ago by zierocode
  30. FAV

    Convert numbers to words (Bulgarian language)

    This function accept one parameter (integer or float) and returns the same number writed with words. Useful for currencies and invoices.
    PHP 3 views posted 8 years ago by stz184
« Prev 1 2 3 4 5 6