Hi all,
I have just come accross a scenerio where I need to convert pdf files to jpg files.
What I would preferably like to do is, when uploading the pdf files, I would like to keep the original pdf file and save it to a folder named "pdf" and also from that pdf I would like to save a jpg version of the pdf to another folder named "jpg...
I have a textbox accepting user input; I am trying to use this user input it to populate this member of one of my business objects:
public System.Decimal? ExchangeRate
The application is localized - I need to support at the same time cultures that accept these as valid inputs: "1,5" and "1.5"
The code I have now is:
var culture = Th...
I wrote up a simple patch to add PNG-saving capabilities to the SDL_Image library. It almost works, too. Problem is, the colors come out all scrambled, and I don't know enough C to figure out what's wrong. Can anyone take a look at this and help me fix it up?
Use case:
Load a 256-color PNG image with IMG_LoadPNG_RW.
Save it with IM...
I have the following know pair of hex values and dates:
7D 92 D2 5C = 26/03/2009 - 09:28
7D 92 DA CC = 27/03/2009 - 11:12
7D 92 E3 56 = 28/03/2009 - 13:22
7D 92 EC 4F = 29/03/2009 - 17:15
7D 92 F3 16 = 30/03/2009 - 12:22
7D 92 FB 1A = 31/03/2009 - 12:26
7D 93 0B 01 = 01/04/2009 - 12:01
7D 93 12 88 = 02/04/2009 - 10:08
7D 93 1A 30 = 03/...
I have an array of 128 booleans that represent bits. How can I convert these 128 bit representations into 16 bytes?
Example:
I have an array that looks like this:
0110001100110000100010111011001011010011010001010001101101001100
1000010000000000001000111111111101000011111001111011111011111001
(Converted to 1s and 0s to be more concis...
I have a question regarding WPF binding and converting the data types seen by the UI objects in XAML.
I have a user control that I would like to reuse in different applications. The user control displays a thumbnail image and several TextBlocks to display person demographic information such as name and address. The user control is used...
I have a problem … a very peculiar one could you please guide.
Original message: Kevätsunnuntaisin lentää
The flow of data is HttpConnector -> WSDLConnector -> to the underlying system
The following is the encoding of the first 7 characters
4b 65 76 c3 a4 74 73 75 – In Http Connector – the request XML has UTF-8 encoding
4b 65 76 a3 ...
After using the 'solve' function on an equation with one variable, it seems like Matlab doesn't like using floating point. So, my answer is
ans = -2515439103678008769411809280/29019457930552314063110978530889-1/232155663444418512504887828247112*13479465975722384794797850090594238631144539220477565900842902305^(1/2)
and I'm not sure wh...
I have a MS SQL table McTable with column BigMacs nvarchar(255). I would like to get rows with BigMacs value greater than 5.
What I do is:
select * from
(
select
BigMacs BigMacsS,
CAST(BigMacs as Binary) BigMacsB,
CAST(BigMacs as int) BigMacsL
from
McTable
where
BigMacs Like '%[0-9]%'
...
I really should be able to get this, but I'm just to the point where I think it'd be easier to ask.
In the C# function:
public static T GetValue<T>(String value) where T:new()
{
//Magic happens here
}
What's a good implementation for the magic? The idea behind this is that I have xml to parse and the desired values are often primi...
I am writing a library in VB.NET in which I have added, among others, a class originally written in C# but converted into VB.NET. I don't know much about C# so therefore I have used online C# to VB.NET-converters. Now I am stuck with some code which I believe the online-converter was not able to "translate" properly.
When running the co...
Hello,
I have a Code which is C++ (*.cpp - source, *.hpp - header files).
In the overall code,there are many classes defined, their member functions, constructors, destructors for those classes, few template classes and lots of C++ stuff.
Now i need to convert the source to plain C code.
I have following questions -
1.) Is there an...
Hello,
My task is to decompress a packet(received) using zlib and then use an algoritm to make a picture from the data
The good news is that I have the code in C++,but the task is to do it in C#
C++
//Read the first values of the packet received
DWORD image[200 * 64] = {0}; //used for algoritm(width always = 200 and height alway...
How to convert all elements from enum to string?
Assume I have:
public enum LogicOperands {
None,
Or,
And,
Custom
}
And what I want to archive is something like:
string LogicOperandsStr = LogicOperands.ToString();
// expected result: "None,Or,And,Custom"
...
Recently i worked in a project. On this project I need convert page into a Microsoft word document (.doc file) and offer the document for download, all using PHP. But I can't solve this problem.
Please help me. Thank You very much, Arif
...
I am very new to mobile development.
Is a web application can be converted to mobile application (such that it can be accessible in mobile device)?
(or)
Do we have to be develop separately for mobile environment?
...
Hello everyone,
No matter what library/SDK to use, I want to convert from avi to asf very quickly (I could even sacrifice some quality of video and audio). I am working on Windows platform (Vista and 2008 Server), better .Net SDK/code, C++ code is also fine. :-)
I learned from the below link, that there could be a very quick way to con...
Need to convert the following code from Ruby to C#. However I'm kind of puzzled by the use of the yield keyword and the general syntax of Ruby. Can anyone that knows a little bit Ruby please help out and convert the code
class < < Cache
STALE_REFRESH = 1
STALE_CREATED = 2
# Caches data received from a block
#
# The difference between ...
What will this print, and why?
Sub Main()
Dim i As Integer
Dim b As Boolean
i = 1
b = i
i = b
Console.WriteLine(i)
i = Convert.ToInt32(b)
Console.WriteLine(i)
End Sub
I know what it prints (check revision history or run it yourself to see). I'm interested in the "why".
EDIT: (Just a joke :) You ca...
Hi All,
I am trying to use a SqlDataReader to count the amount of categories I use.
Here is my Business Logic Code:
// Return count of main categories for homepage
[DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
public int GetMainCatCount(int intCategoryID)
{
intCategoryID = SQLInject(intCategoryID...