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 Junior Poster

Does anyone know of a good SVG editor that allows you to easily edit the document in text as well as visually.

I have been using Inkscape, but the XML viewer/editor component is less then ideal, plus it adds alot of crud to the resulting XML.

I attempted SVG Editor for VS Code, but that was quite slow and also didn't easly allow editing of objects that are inside of groups.

Paul.Esson 53

I don't know if you made any mistakes, but my advice would be to log the exceptions to the event log so that it's known when it doesn't successfully run and why.

Paul.Esson 53

Technically me can be correct as well :

The gift was for him and me.

He and I were given a gift.

If you would use him, you should use me, if you would use he you should use I.

Actully it's simpler then that, if you remove the other noun and the conjunction the sentance should still make sense.

"I was given a gift" is correct while "Me was given a gift" is clearly incorrect.

"The gift was for me" is correct while yet again "The gift was for I" is clearly incorrect.

This entire topic has just served to remind me of Henry Higgins. Good musical :)

Paul.Esson 53

Two word's that get used quite commonly in our industry, route and data are quite interesting.

The USA have drifted away from the English pronunciation, and due to the proliferation of American TV a great deal of Australians also use the American pronunciation of route.

Traveling 200 miles in the UK would bring you to not only very different accents, but also a different pronunciation of the word iron.

So while there may be a correct pronunciation of a word, I would pose that the incorrect pronunciation is only incorrect until a large enough group adopt it.

Paul.Esson 53

I must admit I would struggle with that a little as well, In London we just have people mispronouncing Southwark and Thames.

Couple of weeks ago I mispronounced Surrey Quays.

Paul.Esson 53

Some members have left SeaOrg, so either the contracts arn't legally binding or Scientology is the one true religon and they have found the elixir to eternal life.

I think it may be the former....

Paul.Esson 53

It would be a lie if I said I knew, What do you get when D is close to 0?

Paul.Esson 53

Matrix algebra is the possibly the best way of doing this.

You can either write code to do the matrix inversion and multiplication or alterativly use a library that already supports matrices ( such as OpenCV ).

Curious, what's the error when using determinats

Paul.Esson 53

Nice one Paul, you requoted wikipedia, and along the way made a citation from Ohm's law. However, in all of that I didn't see an ACTUAL answer from you and you alone.

Sorry for the Wikipedia definition, but I thought it would be good to agree on what sound is before trying to ascertain if the tree makes one.

The actual answer from me and me alone along with the explanation of why it is indeeed the answer, referencing both wikipedia and Ohms law was in that post.

Yes, it does make a sound, it's unreasonable to think it does not.

Paul.Esson 53

If it's for non commercial then MBROLA has Aribic support, I think its a command line application, so while it does not support .NET as such it should be easy enough to incorporate it into a .NET application by just launching the MBROLA binary from within your .NET application.

Paul.Esson 53

is sound only sound if a person hears it?

Taking the wikipedia definition, yet again

Sound is a mechanical wave that is an oscillation of pressure transmitted through some medium

If a tree falls in the wood there will be an oscillation of pressure transmitted, regardless of if an observer exists or not.

Clearly you can never truly know it existed, although the mind is a fickle thing, even if you could hear the sound you could never really truly know it existed ( hence why the question is posed ).

The resonable assumption that we make is that if a rigid object falls on another with a large enough force there will be a large oscillation of pressure. This is a resonable assumption thats based on prior experience.

It's also a demonstraton of how sciance works, Ohm's law states V = IR, we can say this law hold true with resonable certainty although since we have a infinite spectrum of numbers there is no possibly way we have ever observed Ohm's law for all possible values of I and R.

This also stands true for evolution, Some criticism is placed on it since we don't have a complete lineage in the fossil record, but as with Ohms law the theory adequately explains what we can and have observed.

Paul.Esson 53

Perhaps use a char, and not an int, initalize them all your chars to the numbers you have been using, if it's x's turn and he picks 1, change the 1 to an x.

Then after each turn print the result.

Also I have a feeling you might want to use a switch statement not an if.

Paul.Esson 53

Could you expand on that a little?

Paul.Esson 53

If you're using UDP 65,507 bytes is the largest size, for TCP it's 1GB.

If you're using TCP there is very little reason not to send the data in smaller chunks, then combining the buffers again at the other end. TCP should deal with the order of the packets, but if you're going to take this approch you may also want to have 4 bytes at the start describing how long the message is.

If your using UDP and you plan to send in multiple chunks you either have to add a sequence number ( such as in tcp ) or send in such a way that you don't spit any of the data.

Paul.Esson 53

If you press the code button you should be able to insert your code into a code block in your message.

Paul.Esson 53

According to Google glid is a swedish word for glide.

I figure if you just use a word enough, get it in a couple of books, then slowly those crazy dictionaries will catch up.

I like glid, It's quite logical.

Paul.Esson 53

Lol, I didn't know a dictionary could be "authoritarian".

Why not, bloody thing is always telling me how and how not to spell.

As an example, When I was in high school I used to use the word 'gradiate', but the dictionary, smacked me down and advised me that it wasn't a word.

I say revolt against the system spell the way you feel :).


Example: The colour ( correct spelling with a u) gradiates from blue to red.

as opposed to:

The colour's gradient transverses from blue to red.


The colour's gradient is -1b,1r,0g in the range [0,255] where at x=0, r=0, b=255, g=0.

Paul.Esson 53

PSUDO code would look something like this:

create 6 random numbers
for 0 to 6
    ask the user for a number
         \if ( number => 1 && number <= 30 )
              store input
              (this is where you may want to increment your varible for iteration )
         \else tell them they are doing the wrong thing


 \if ( 5 correct ) you will print lucky five <-- condition in your flowchart
 \if ( 4 correct ) print lucky four 
 \else try again

So represent the steps above as a flowchart

then attempt to program it, the flow chart should help you figure out the program logic.

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

I generally set such things to MAX_INT for that exact reason.

Paul.Esson 53

You may want to encode and decode from some form of linked list, if you need anymore type information ( for instance, some messages may go to controller x and some to controller y, then just add a byte to dictate that as well ).

Paul.Esson 53

Personally I would send the type followed by 2 bytes for the size ( unless the type dictated size )

For instance

If :

INT = 1;

Then sending the int 5 followed by the string HELLO would result in the following message

01 00 00 00 05 02 00 05 48 45 4C 4C 4F

If you use the terminiating char for the string then you don't have to include the size for the string, although this means you can't simply jump it if you want to ignore it.

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

At a guess I would say the database is changing the UTC formatted time into localtime.

The Z specifies that the time is in UTC format.

Paul.Esson 53


I just run the code and can confirm it works fine.

On my mac the "Video" window was hiding behind my IDE and the "ball" window was visible.

Paul.Esson 53

You could create an int to store the age and an int to store the index.

Set the age int to something unrealistically high ( 100 perhaps ) then as you loop compare the persons age with the stored current min age, if it's smaller store the age and the index.

Then print the person in the index.

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

Ah woops, I misread some documentation on std:cin the language suggested it was the case..

Although it appears they where attempting to describe that the operator only takes the chars to the next whitespace.

If you're correct and the names contain spaces, then using std::getline should resolve the situation.