|
The National Security Agency released a free, public version of Ghidra, a set of tools developed internally for software reverse engineering. The agency will also release Ghidra's source code, allowing users to improve the framework's feature set and turn it into a more effective tool. Quick, someone call Godzilla to defeat Ghidra!
Or at least an obfuscator
|
|
|
|
|
field.setValue(!!~~data.Custom[record.ID].Value);
Let's see. This is not not not notting.
If two no's make a right, do four nots make a
Latest Article - Web Frameworks - A Solution Looking for a Problem?
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Ha! The double exclamation is fairly common for coercing things to booleans.
I've occasionally seen the double ~ as a slightly faster Math.floor, usually used when performance isn't actually critical at all.
I've never seen someone use them both at the same time, though. I get what the writer of that code is trying to do, but somehow I doubt that this code is used somewhere that ~~ really makes a difference over the easier to read Math.floor .
For anyone wondering what this JS does, it is basically a lazy man's version of this:
if (Math.floor(data.Custom[record.ID].Value) > 0) {
field.setValue(true);
} else {
field.setValue(false);
}
In both cases, you'll end up with false if data.Custom[record.ID].Value is a string or object, because Math.floor("LOL") and Math.floor({}) both return NaN, and NaN > 0 evaluates to false.
|
|
|
|
|
|
|
But, but, but...
The ~~ totally negates the bitwise operation, right? Right?
I mean
~~1 == 1
~~X == X
~X != X
~1 == -2
That's definitely weird looking code. I guess it is because of the Math.floor() thing.
~~7.234 == 7
modified 7-Mar-19 8:03am.
|
|
|
|
|
raddevus wrote: ~1 == -1 I thought it was -2
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: I thought it was -2
Oops! (I edited the original now). thanks
|
|
|
|
|
https://arstechnica.com/gadgets/2019/03/chromium-based-edge-screenshots-might-as-well-be-chrome/
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
|
"Chrome doesn't look like a modern Windows app now, and it never has. Edge does, and more so with each new version; Chromium Edge is a big step back."
In my opinion, looking like a modern Windows app is not a positive thing AT ALL. Their idea of a modern windows apps has taken a giant step back from Windows 7. Each successive revision has been a step back and they look more and more repulsive.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I concur.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
A new study by researchers at the University of Toronto's Faculty of Applied Science & Engineering explores how robots persuade and build trust with humans. "Phased plasma rifle in the 40-watt range."
|
|
|
|
|
Did they watch sonny in iRobot?
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
Despite evolutions in technology, hackers are still using the same old tricks, though sometimes in a more evolved way. If it's already broken into, why fix it?
|
|
|
|
|
The problem: programming languages are created by programmers You can enable "easy mode" on the start screen
aka: the tragedy and horror of "SyntaxError: invalid syntax"
|
|
|
|
|
Imaging someone make a programming language that even a monkey can master it within a day, the next thing I know, he will probably be fired and replaced by a monkey. That`s why programming language are hard.
|
|
|
|
|
On Error Resume Next
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Kent Sharkey wrote: The problem: programming languages are created by programmers
Job security.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Quote: The problem: programming languages are created by programmers Brilliant! Absolutely correct.
They should be created by diary farmers.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Memory leaks would be a thing of the past - no crying over spilt milk.
OTOH, core dumps would be disgusting.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
W∴ Balboos wrote: diary farmers
I honestly didn't know one could farm those! :P
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
What curd I say to that? It's whey beyond my understanding, though I'll still milk this for all it's worth and feel udderly no shame.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Quote: They should be created by diary farmers. Why would anyone farm diaries?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Spectre has caused its share of problems, but performance fixes are on the way to Windows 10 users. "Who you gonna call?"
Except for that newest attack, of course.
|
|
|
|