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
Hi,
I have the following table:
bar_id, bar_name, subscription_id_fk, sub_name
eg:
1, Hard Rock, 2, Gold
2, TGIF, 1, Free
Now I need and SQL to extract this table, but where sub_name = Gold, I need to double the subscription_id_fk.
Can you please help
?
I have two displays (two monitors) connected to my machine, and I noticed a strange thing happening today. I had an Explorer window open with my compiled exe on my primary display, and when I double-clicked it, it opened in the primary display (left monitor). However if I pressed enter to launch the executable, it started in the secondary display (right monitor). The window state of the initial form is maximized. Is there a way to tell C# to open the initial form in the primary display?
Should I write the meta-tags in utf-8 format?
For example, is it okay to have double-quotes in the meta-keywords like this:
19" wheels
or special characters like the & sign... ?
Thanks
NOTE: Im using utf-8 encoding on all my pages!
Lets us consider this snippet:
int s;
scanf("%c",&s);
Here I have used int, and not char, for variable s, now for using s for character conversion safely I have to make it char again because when scanf reads a character it only overwrites one byte of the variable it is assigning it to, and not all four that int has.
For conversion I could use s = (char)s; as the next line, but is it possible to implement the same by subtracting something from s ?
i want to read serial port when there is some data present i mean on the event when data arrives only then i will read serial port instead of continuously reading the port i have this code for continuous reading the port how can i make it event based.
thanx in advance.
while(1)
{
bReadRC = ReadFile(m_hCom, &byte, 6, &iBytesRead, NULL);
printf("Data Recieved Through Serial port and no. of Bytes Recieved is %d",iBytesRead);
}
It says:
In general,make searches for an
implicit rule for each target[1], and for
each double-colon rule[2], that has no
commands[3].
This can have two different understanding:
1 or (2 and 3)
(1 or 2) and 3
Which does it mean?
I want to perform a 'SELECT' statement with a byte array (binary) parameter as a condition.
I tried to google it, but didn't find anything useful.
In general, I keep information of files in the database. one of the properties is the file's hash (binary).
I want to give a hash to the SELECT statement, and get all rows with the same hash value.
I'm totally confused which one to use and when, first thing I do when something goes wrong in code with a slash is replace the one with other so my test cases double with one for / and one for \ .Help me to get the logic behind slashes.
I've just published my site, created with codeigniter.
the entire directory is in my public folder, including the config file (in public/system/application/config).
I just wanted to double check: do I have to move this file to another, non public, directory? I think codeigniter doesn't allow any direct access, but I am not 100% sure..
thanks,
P.
I want to calculate the quarter Hour from the given two datetimes:
Suppose datetime1 and datetime2 , i am doing somewhat like this :
int d = datetime2.Subtract(datetime1).Hours;
double l = Math.Round(Convert.ToDouble(d/4));
but if the QuarterHour is 3 (ie d=3), whats the good way to show the output- should it be zero or the round one :
3/4 = 0.75. so should i round up to 1 or 0 is ok.
And if round up to 1..how should i?
I want to create a vector of vector of a vector of double and want it to already have (32,32,16) elements, without manually pushing all of these back. Is there a way to do it during initialization? (I dont care what value gets pushed)
Thanks
I want a 3 dimensional array, first dimension has 32, second dimension has 32 and third dimension has 16 elements
What does it mean?
Byte count of encoded content string with encoding specified in header.
Character count of content string.
Especially in case of "Content-Type: application/x-www-form-urlencoded".
Hi,
I have a simple question. Is it okay to use array without single or double quotion like $array[key]? I thought it is bad because PHP look for constant first if I don't use single or doulbe quotion. One of my colleagues told me that it does not matter.
WHat do you guys think?
How to double a number of binary digits in an integer? For example, if bin(x)="1001" then bin(y) must be "11000011". Is there any smart and fast algorithm ?
As the question mentioned, I have a memorystream from a Byte[] ByteArr. How can I check if it can convert to a bitmap before using it with Bitmap myImg = new Bitmap(memorystream).
I saw the answer of a question: http://stackoverflow.com/questions/2443490/add-jquery-colorbox-plugin-to-a-dynamically-created-element
Solve part of the problem, works fine, but when I click for second time, it doesn't work.
When I try to click for second time an error displays: $.fn.colorbox is not a function.
How can i correct that error and avoid a double click to bind colorbox.
I don't speak english, i did my best to write this words, i hope you can read me. Thanks.
I'm trying to write a parser that will read a particular file type, and I need to map the different data types to C# equivalents. Most of them aren't that difficult, but I'm having trouble wrapping my head around what "int16 with a bias of 14" means. I've deduced that it's some kind of floating point type, so my best bet would be to write a converter that would map it to a float, double, or decimal type. I'm not sure where to take it from here, though.
Can you please tell me how to store an array in session and how to retrieve that array from session?
I am trying to store one array of type Double and assigning values of the same type but it is showing me an error so please can anyone tell me how to assign values to the array which is in session?
Thank You
I have the following simple code:
ofstream output("test");
output << 'a';
When I do an octal dump of the file, I get this:
0000000 000141
0000001
I can see that 000141 (in base 8) is 8 bits wide and 0000001 is probably EOF.
What is the first byte of all 0's and why is it there? I know it is null is ascii
but what is its purpose?
a difficult one..
using classes of primitive types in java, like Integer, Float, Long, etc, write a code fragment using a method to double the value of a variable passed as an argument