Paul.Esson 53

Switched to Firefox at work, Simply because Chrome is yet to implement Wayland support. Firefox is great, To be honest I don't notice the difference really apart from the when I use the dev tools.

Firefoxes push for privacy is really cool though, I think chrome is (or soon) blocking traking cookies, but Firefox has been doing this for a while.

rproffitt commented: FF also blocks FingerPrinting. More at +15

Paul.Esson 53

I was thinking in regard to a webservice, you could write a webservice that was unhackable with enough time and effort, although as mike point's out, it does not stop someone from writing a fake website and stealing your users passwords, or a rouge sys admin from modifying the service.

While not a technically a hack:

A great example of both a great scam to get money from people and also a service that you don't have access to the encryption keys would be the Cryptolocker virus.

The files on your system are encrypted, they keys do not exist on your computer, unless you give the friendly folks who have sent you the email 3 bitcoins, you are unable to unencrypt the files.

RikTelner commented: One of best answers. +1

Paul.Esson 53

So on a system that requries encrypted signed binary, and will only run encrypted signed binarys is there anyway of either unencrypting the binarys or executing unsigned encrypted code.

With enough time and processing power you could brute force the encryption, although unless you get quite lucky or have the patience to wait years, that will probably not yield results.

You would then look at what executes the files, is it the OS, can you somehow modify it and remove the encryption check allowing you to run unsigned code, is it some custom hardware
can you write what that hardware does in FPGA skipping the encryption check and solder that bad boy in.

If it's a programmable chip on the board you could, reflash it.

Assuming you have the tools for the job you could easily read what's written to the memory and get the unencrypted binary from there, writing to the memory I suspect would be damn hard, but I guarantee not impossible, this may also allow you to write to binarys that are executing.

So in conclusion, If someone has access to the physical hardware, they will always, with enough time, knowlage and patience be able to get around any form of signed code requirement.

Although with out access to the physical hardware, I am convinced you can write a system that cannot be compromised.

RikTelner commented: One of best answers. +1

Paul.Esson 53

Might be easier to use the getRGB(int x, int y) so that you don't have to attempt to support all 14 image types that the that ImageIO supports.

cwarn23 commented: This was the answer. Thanks +12

Paul.Esson 53

Also, there are a few problems with this idea in general, you are not able, from just the number of miles the car has travelled during 2013 ascertain the amount of fuel it has used, the average fuel consumption, and the amount spent on petrol.

If you know the amount of miles, the average cost of fuel that year and the average fuel consumption of that car you can give an estimate of how much may have been used on fuel throughout the year.

But the way you have worded it describes what is an essentially an impossible problem.

Paul.Esson 53

You can seperate the function declarations and implementations into different files without stdafx.

Just create a file YourClass.h as well as YourClass.cpp then include your .h file in your .cpp file using the #include preprocessor directive.

Paul.Esson 53

That scares me a little, How does one implement a rotating counter in python ?

class Program
public static void Main(string[] args)
ulong a = 111111111; // Thats 9 1's
System.Console.WriteLine((a * a));

using C++ and .net
using namespace System;

int main(array<System::String ^> ^args)
Int64 a = 111111111;
Console::WriteLine( Int64(a a) );
return 0;
//Don't have a java compiler but would be somthing along the lines of
long a = 111111111;
System.out.println( (a

vegaseat commented: thanks for the code samples +8

Paul.Esson 53

If your second class has been defined as class2 and is accessible within your current form ( in the same project and within the same namespace ) it should work. That error suggests that it is unable to find the class named class2,

Just make certain that where this one says

[CODE]public class UserLogin : Form[/CODE]

your second form says

[CODE]public class Class2 : Form[/CODE]

note it is caps sensitive and I did say to use Class2 so if you have named your class 'class2' insted of 'Class2' you will have to write

if(txtUser.Text == "MJ12" && txtPass.Text == "Roswell1947")
// Create instance of the mainForm class
Form nextForm = new class2();
// We may need to make it visable

Paul.Esson 53

Some services will send version information when requested. This should allow one to determine the OS running on different machines. For instance RFC 2616 for HTTP describes the server response header

[QUOTE] The Server response-header field contains information about the software used by the origin server to handle the request. The field can contain multiple product tokens (section 3.8) and comments identifying the server and any significant subproducts. The product tokens are listed in order of their significance for identifying the application.

This may be used to find the operating system if it is listed in the header, Although there is no guarantee that it will be listed

PoovenM commented: Very impressive! +2