conversion

html to pdf in java code.

HI all, do we have code in java that can generate html content to pdf file and sends back browser. please help out if there is anything that i can use to do it Thanks kumar kasimala ...

How to convert unicode charaters to unicode decimal entities php?

Hi, I have unicode characters in MySQL tables. I will print the data in the web pages. While printing it in the pages I am generating the 'Share This' buttons dynamically to share each record in that table (which is in Punjabi). So the output in the page looks fine. But while sharing the same content in 'Share This' the destination pag...

C# method to convert html-markup into JavaScript-compatible string

I believe there should exist a known method for converting this: <div class="singlePane pane"> <div class="tripleColumn"> <!-- TODO: --> <div class="col"> <div class="captionedLink"> <div class="icon" style="background-position: -26px 0px;"> blah blah INTO THIS: \r\n \u003Cdiv class=\"singlePane pane\"\u00...

SqlDataSource / LINQ to SQL to DataSet

Hi Everyone, I have looked at a number of threads from various sites with similar problems. However, any code posted as a solution I have not been able to get working in the context of my Web App. I'm having trouble taking a query, whether it be via LINQ to SQL or SqlDataSource and then passing/converting it to a DataSet. The reason i...

PDF TO JPEG Conversion of same images different size

Hi, I have 2 PDFs of the same Japanese text. One encoded in Shift-JIS another is Unicode. PDFs look exactly the same to me. I convert both of this PDFs to JPEG images of the same resolution and I get JPEGs of different bite size. Can anyone think of the reason why the size is different? Thanks ...

How to convert PHP array into Mysql resource

I have the following scenario. I must run a query and then save it to memory, and if I need the same result again to obtain it from memory. Storing and reading from memory is made with memcache. The problem is that if you hold information in an array one at a time just have to treat two cases: 1 for resource type and one for array type....

How do I convert a double to a fraction in a format suitable for representing inches?

I am using the Apache Commons math.Fraction class to convert my doubles to fractions, which is working fine. However, I need it to calculate these fractions in a way that makes sense for displaying lengths in inches, to the nearest 1/32". For example, converting 0.325 to a fraction yields 12/37, which doesn't make sense to someone look...

Fastest and most efficient conversion of a byte array to a 29 bit integer in Java

Since 29 bit integers are popular in AMF, I would like to incorporate the fastest / best routine known. Two routines currently exist in our library and can be tested live on ideone http://ideone.com/KNmYT Here is the source for quick reference public static int readMediumInt(ByteBuffer in) { ByteBuffer buf = ByteBuffer.allocate(4)...

PHP boolean to string with modification & a condition

When echoing a boolean (true or false), PHP converts it to 1 or <nothing> and displays it. e.g.: $x = true; echo $x; //displays: 1 $x = false; echo $x; //displays: <nothing> My Question: Is there a PHP function (if not how to code it) which can display exactly "true" or "false" (and not 1 or nothing), if a variable is a boolean otherw...

Convert int to ascii and back in Python

I'm working on making a URL shortener for my site, and my current plan (I'm open to suggestions) is to use a node ID to generate the shortened URL. So, in theory, node 26 might be short.com/z, node 1 might be short.com/a, node 52 might be short.com/Z, and node 104 might be short.com/ZZ. Something like that. And when a user goes to that U...

Hex to Dec conversion (pipe with sed)

How can i convert my Hex value to Dec value using pipe after sed. Conversion from 'litte endian' to 'big endian' dec_value=`echo dede0a01 | sed 's,\(..\)\(..\)\(..\)\(..\),\4\3\2\1,g'` ...

What tools are needed to code a website in Japanese

How do I code a website in Japanese and Chinese. I have the HTML and graphics I want to change the text to Japanese and Chinese symbols what tools can be used to auto convert what tools can be used to correct the auto converted text what is necessary to serve it online ...

How to save file as cdr without Corel Draw

Hi, I need to have project in .cdr format but I don't have Corel Draw. Is there any way (like for example convertion .ai (Illustrator) file to .cdr) to get .cdr file? Thanks in advance for any help! ...

How can I convert MS Excel 2.x files into CSV format?

I currently have MS Excel 2.x (BIFF2) files that I receive from a client. They need to be loaded into an ETL system via SSIS. From what I can tell and from my tests, SSIS cannot read these files directly. I have also tried using Aspose.Cells for .NET to open / convert these files in .NET with no luck. Hopefully there is another way t...

Android: Developing Plugins for media sharing

Hi Developers, We are developing plugins which convert media file as the source and convert in to other format that can be used by DLNA compatible device in android. Any help on how to deal with media and its file format and convert into DLNA file format.. Any idea will be appreciable... Thank you ...

How do I convert a EPS , DOC and PPT document to a preview image in PHP?

How do I convert a EPS , DOC and PPT document to a preview image in PHP? I need to display the image thumbnails in the list of items uploaded, how can i get the thubnail images of EPS, doc and PPT files? ...

Why do we need too many methods which perform same function?

string s1 = "1234"; string s2 = "1234.65"; string s3 = null; string s4 = "123456789123456789123456789123456789123456789"; result = Int32.Parse(s1); //-- 1234 result = Int32.Parse(s2); //-- FormatException result = Int32.Parse(s3); //-- ArgumentNullException result = Int32.Parse(s4); //-- OverflowException result = Convert.ToInt...

Converting interface implementation from VB.NET to C#

This may seem like an obvious answer, but I can't seem to find an answer. I have this code in VB.NET: Public Interface ITestInterface WriteOnly Property Encryption() As Boolean End Interface And I also have this class and implementation in VB.NET: Partial Public Class TestClass Implements ITestInterface Public WriteOnly...

Converting to ASCII in C

Using a microcontroller (PIC18F4580), I need to collect data and send it to an SD card for later analysis. The data it collects will have values between 0 and 1023, or 0x0 and 0x3FF. So what I need to do is convert 1023 into a base 10 string of literal ASCII values (0x31, 0x30, 0x32, 0x33, ...). My problem is that the only way I can th...

Alter Colum Datatype from Int to Ntext and vice-versa

Hi Experts, I have a Sql table CREATE TABLE [UserTable] ( [ID] [int] NULL, [Name] [nvarchar](50) NULL, [City] [nvarchar](50) NULL ) ON [PRIMARY] In this table column ID have the Datatype Int, I want to alter the data type of the ID column to Ntext, For that I am using the following Sql Query: ALTER TABLE UserTable ALTER...