signed

Signed Java Applet Throws Security Exception on Connect to a Webservice

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", ...

Verifying that C / C++ signed right shift is arithmetic for a particular compiler ?

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...

Connect from iPhone to RESTfull WCF Service with Self Signed Certificate

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 ...

2's complement example, why not carry?

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...

reading data file on any network device from java applet ?

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 ? ...

Problem with AutoMapper in IIS7 when using signed assemblies

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...

Signed Unsigned Applets / Java Web Start, Socket Connections?

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...

portable signed/unsigned byte cast,C++

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 ...

How can I do 64-bit arithmetic in Perl?

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...

Trying to get a signed applet to work in a browser but fails miserably.

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 ...

Signing Applet with Maven jar plug-in and Bouncy Castle

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...

Arithmetic operations on unsigned and signed integers

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...

Converting hexadecimal numbers in strings to negative numbers, in Perl

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...

Convert an unsigned 16 bit int to a signed 16 bit int in C#

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...

64-bit unsigned to 32-bit signed

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...

How is unsigned int/long represented

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,...

ClickOnce Deployment in restricted environment

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...

MIPS division of signed integers

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. ...

C/C++ packing signed char into int

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...

Trouble making OAuth signed requests

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...