I have an java applet running on tomcat 5.5. It is signed ( -selfcert). I still get an java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) Exception, when my Applet tries to connect to a webservice (already in this line):
ws_locator = new My_WebserviceLocator(ws_adress + "?wsdl",
...
According to the C / C++ standard (see this link), the >> operator in C and C++ is not necessarily an arithmetic shift for signed numbers. It is up to the compiler implementation whether 0's (logical) or the sign bit (arithmetic) are shifted in as bits are shifted to the right.
Will this code function to ASSERT (fail) at compile time f...
Hi Guys,
I have an iPhone application which has to communicate with a RESTfull WCF service over a secured connection(HTTPS) with a self signed certificate.
The WCF service returns XML which is parsed within the app.
I have signed the certificate with SelfSSL and installed in on a Windows Server 2003 machine(IIS 6.0).
An example of a ...
I'm watching some great lectures from David Malan (here) that is going over binary. He talked about signed/unsigned, 1's compliment, and 2's complement representations. There was an addition done of 4 + (-3) which lined up like this:
0100
1101 (flip 0011 to 1100, then add "1" to the end)
----
0001
But he waved his magical hands and th...
how can java applets read data file from any device which is in same network with client computer
is it possible with signed applets or with any security policy ?
...
I am trying to use AutoMapper with web application running on IIS 7. The intended use it so map domain types defined in an external dll to view models defined in the IIS application. This works fine except when the external dll is singed. Then I get the following error:
AutoMapper.AutoMapperMappingException was unhandled by user code...
Hello There,
I have been developing a test framework for a particular client/server product (COTS) that exposes XML requests & responses via a raw ip socket.
I have been able to develop my test framework in a PHP application with good results, but my desire is to make the test framework easily portable. Sure a VMWare image is portab...
I am using signed to unsigned byte(int8_t) cast to pack byts.
uint32_t(uint8_t(byte)) << n
This works using GCC on Intel Linux. Is that portable for other platforms/compilers, for example PowerPC?
is there a better way to do it? using bitset is not possible in my case.
I am using stdint via boost
...
I am a perl newbie,
Can I simply use 64-bit arithmetic in Perl?
For example
$operand1 = 0xFFFFFFFFFFFF; // 48 bit value
$operand2 = 0xFFFFFFFFFFFF; // 48 bit value
$Result = $operand1 * $operand2;
I am basically looking for a
replacement for the int64_t in perl.
Is there any way to mention, if the
variable is signed or unsigne...
Hi,
I created a JApplet which uses two external libraries (JENA and JUNG). The applet works correctly when i run it from the IDE (using eclipse). I created a jar file, signed it (since the applet needs to read text from disk), created an HTML page to hold the applet, however when i try to run it in a web browser i get the java security ...
I have a problem with a signed Java applet - specifically, why it is not signed using my certificate. I'm using Maven in Eclipse.
The applet (a) allows the user to choose a local file or directory, (b) encrypts the file(s), and (c) uploads the file(s) to the a PHP based web page. The applet is signed, presumably using my certificate - i...
See this code snippet
int main()
{
unsigned int a = 1000;
int b = -1;
if (a>b) printf("A is BIG! %d\n", a-b);
else printf("a is SMALL! %d\n", a-b);
return 0;
}
This gives the output: a is SMALL: 1001
I don't understand what's happening here. How does the > operator work here? Why is "a" smaller than "b"? If it is indeed sma...
I have a bunch of numbers represented as hexadecimal strings in logfiles that are being parsed by a Perl script, and I'm relatively inexperienced with Perl. Some of these numbers are actually signed negative numbers, ie 0xFFFE == -1 when represented as a 16-bit signed integer. Can somebody please tell me the canonical way of getting the...
I'm writing a datalog parser for a robot controller, and what's coming in from the data log is a number in the range of 0 - 65535 (which is a 16 bit unsigned integer if I'm not mistaken). I'm trying to convert that to a signed 16 bit integer to display to the user (since that was the actual datatype before the logger changed it).
Can so...
Hi.
I need to convert Java long datatype (64-bit) data into legacy c++ app unsigned int (32-bit) datatype.
No worries about the data loss as the data is Linux timestamp, which would take aeons to hit unsigned int limit.
Any idea what transformation to apply to these numbers?
Thanks in advance!
P.S. - data-types example:
Java - 1266...
I was reading some assembly tutorial in which there were explained the signed integers and the unsigned integers and the difference between their representation in computer memory.
I remember something like that there was some bit at the beginning at the number so it tells whether the integer is unsigned or signed.
If someone knows it,...
Hi all,
I'm deploying a .Net 2.0 application using ClickOnce. The production intranet environment of my company will soon only allow the execution of signed ActiveX components. My app is signed, but I don't know if when this resctriction is active the browser will forbid the deployment of my app, because it is not an ActiveX.
Has anybo...
I'm wondering if anyone might know how to perform a division between two signed integers in MIPS, WITHOUT using the built in division operations.
In the problem specs, I'm told the divisor register, ALU, and quotient register are all 32 bits wide, and the remainder register is 64 bits.
...
hello
I have need to pack four signed bytes into 32-bit integral type.
this is what I came up to:
int32_t byte(int8_t c) { return (unsigned char)c; }
int pack(char c0, char c1, ...) {
return byte(c0) | byte(c1) << 8 | ...;
}
is this a good solution? Is it portable (not in communication sense)?
is there a ready-made solution, perha...
Hello,
I am able to successfully make non-authenticated and protected calls to the Netflix API. I am having a little trouble making signed requests to the catalog, however.
Using the OAuth Test page, it is clear to me that my Base String is correct. My request URL is also correct, except for the oauth_signature. The oauth_signature is t...