sign

Simplest way to check if two integers have same sign?

Which is the simplest way to check if two integers have same sign? Is there any short bitwise trick to do this? ...

Signing a Windows exe file

I have an exe file that I should like to sign so that Windows will not warn the end user about an app from an "unknown publisher". I am not a Windows developer, the app in question is a screensaver app generated from an app that generates screensaver apps. As such I have no influence on how the file is generated. I've already found out ...

How to install an application signing certificate on a Motorola Phone?

Motorola phones do not have Verisign/Thawte root certificates for code signing. They only embed Java UTI certificate, that requires you to pay to sign your application for every phone model you want to sign the app for (and this, every time you want a new version of the app). I've created a simple web page pointing to a certificate (DER...

Can maven sign not only produced jar, but also dependencies

I managed to create main jar, copy dependencies to a single directory, the only step left is to sign all jars. I can sign my own produced jar as a part of jar:sign, but how do i sign dependencies? Thanks ...

How to digitally sign a PDF(or another document) in Java ?

What libraries can be used to digitally sign documents in Java? ...

Why should I sign my JAR files?

Why should I sign my JAR files? I know that I need to sign my client-side JAR files (containing Applets) so that special things like filesystem access can be done, and so that the annoying bit at the bottom of windows doesn't show, but why else? And do I need to sign my server-side JAR files containing Servlets, etc.? Some basic rules ...

Sign a jar file exported from Eclipse 3.5?

Is it possible to sign a jar file as you export it from Eclipse 3.5? Or a plugin to allow this to happen? I can easily export a runnable jar, and sign it myself using jarsigner, but manually doing this every change is not efficient. ...

Lua decimal sign?

I've used this in other languages, but lua seems to be lacking this rather useful function. Could one of you nice chappies provide me a lua function to get the sign of the number passed to it? ...

How can I force subtraction to be signed in Python?

You can skip to the bottom line if you don't care about the background: I have the following code in Python: ratio = (point.threshold - self.points[0].value) / (self.points[1].value - self.points[0].value) Which is giving me wrong values. For instance, for: threshold: 25.0 self.points[0].value: 46 self.points[1].value: 21 I go...

Permission j2me application, removing the prompt

I have a signed application for Nokia 2660. This application makes HTTP connections and when the application is opened the device prompts a message asking for user permission. The user can previously opening the application make a configuration so that this prompt never appear. This works fine. When a new version of the application i...

C compiler flag to ignore sign

I am currently dealing with code purchased from a third party contractor. One struct has an unsigned char field while the function that they are passing that field to requires a signed char. The compiler does not like this, as it considers them to be mismatched types. However, it apparently compiles for that contractor. Some Googling has...

How do you sign a Java Midlet?

Hi, A simple question with a fairly complicated answer. How do you sign a Java Midlet so you can load it onto a mobile phone with less security prompts. Dave PS: This is intended to be a self-answered question (I'm moving my blog and I don't want this info to be lost). Not quite sure on the etiqette for something like this ...

Euro sign in HTML

Hello! The euro (€) is the official currency in 22 European states. In HTML there are different possibilities to display the sign €: € € € Which one would you use in HTML? I think no representation is supported in all browsers. It's a pity that there is no standard way to display the sign. Can you recommend one o...

code sign error while installing application on iPhone

Hello all, I have registered for Apple Developer Program. I have installed my provisioning profile and other certificates successfully. But still, I am getting error while installing the app for ad-hoc distribution. I am not sure about this, but I am getting my company name as "CXXXXXXXXX.abc-xyz.com" in mobileProvision certificate. Al...

Changing the sign of a number in PHP?

Hay Guys, I have quick question. I have a few floats: -4.50 +6.25 -8.00 -1.75 How can I change all these to negative floats so they become: -4.50 -6.25 -8.00 -1.75 Also i need a way to do the reverse If the float is a negative, make it a positive. Thanks ...

webcam access using opencv with processing in an applet or application

I made a small sketch with processing using opencv to face detect and track. But when I export as an application and start it nothing happens, same as an applet. First I exported the applet and thought this must be a security issue, and struggled with some hack for processing to sign your java applet. http://processing.org/hacks/hacks%3...

C++ What does the percentage sign mean?

I got this c++ macro and wonder what they mean by code%2 (the percentage sign) ? #define SHUFFLE_STATEMENT_2(code, A, B) switch (code%2) { case 0 : A; B; break; case 1 : B; A; break; } ...

Regex convert string to valid number, no decimal, sign optional

Removing everything after and including the decimal, and everything non-numerical except the dash if its in is the first character. So far I have this: /[^0-9^-]|[^\.]+$/. Notice How I block dashes from being removed with ^-, because somehow I want to only remove the dashes that aren't the first character (not the sign). Any help? Thanks...

Code sign Error

Hi Friends, I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in iPhone. But when I try to do so I get an error "Codesign error:Code signing is required for product type "Application" in SDK De...

signing assemblies on windows mobile device

HI I have created an application for my windows mobile 6.0 device and I need to sign it so that the user can download updates without having to select that they trust the publisher I'm not entirely sure what I'm doing here but I created the following files on the command line .pfx using pvk2pfx .spc using cert2spc .cer using makec...