fool

joined 2 years ago
[–] [email protected] 10 points 1 month ago

First, imagine a number in JavaScript. (Bit of a nail biter here, huh?)

let i = 5

Then, we will construct an incrementor. This is really simple: here is the method.

  1. Make a bracket-string-centric version of eval().
[]["filter"]["constructor"]("return i+1")()
  1. Reconstruct stringy eval() by using +[] as 0, +!+[] as 1, and implicit conversions as ways to create strings. For example, 'false' is (![]+[]), so 'f' is (![]+[])[+[]].
[][
  (![] + [])[+[]] + // f
  ([![]] + [][[]])[+!+[] + [+[]]] + // i
  (![] + [])[!+[] + !+[]] + // l
  (!![] + [])[+[]] + // t
  (!![] + [])[!+[] + !+[] + !+[]] + // e
  (!![] + [])[+!+[]] // r
][
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  ([][[]]+[])[+!+[]]+ // n
  (![]+[])[!+[]+!+[]+!+[]]+ // s
  (!![]+[])[+[]]+ // t
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+[]]+ // u
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[])[+[]]+ // t
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  (!![]+[])[+!+[]] // r
]("return i+1")()
  1. Draw the rest of the fucking owl. Final code:
let i = 5; // haha yay

[][
  (![] + [])[+[]] + // f
  ([![]] + [][[]])[+!+[] + [+[]]] + // i
  (![] + [])[!+[] + !+[]] + // l
  (!![] + [])[+[]] + // t
  (!![] + [])[!+[] + !+[] + !+[]] + // e
  (!![] + [])[+!+[]] // r
][
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  ([][[]]+[])[+!+[]]+ // n
  (![]+[])[!+[]+!+[]+!+[]]+ // s
  (!![]+[])[+[]]+ // t
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+[]]+ // u
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[])[+[]]+ // t
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  (!![]+[])[+!+[]] // r
](
  (!![]+[])[+!+[]]+ // r
  (!![]+[])[!+[]+!+[]+!+[]]+ // e
  (!![]+[])[+[]]+ // t
  ([][[]]+[])[+[]]+ // u
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+!+[]]+ // n
  (+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+ // ' '
  ([![]]+[][[]])[+!+[]+[+[]]]+ // i
  (+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+ // +
  +!+[] // 1
)()
// no virus i swear. execute arbitrary code in your browser console.

Anyway, that's just everyday JS work. It's like step 5 after resizing the button, but a bit before centering the div.

based on this. ~some~ ~translation~ ~methods~ ~done~ ~differently.~

[–] [email protected] 6 points 1 month ago (4 children)

Doesn't anyone here know that the Death Note (1) curses all those who use it with misfortune and (2) will trap your soul in limbo after use?

Nah, I'm good. Tweezers and a matchstick.

[–] [email protected] 7 points 1 month ago* (last edited 1 month ago)

Did somebody say Inferno?

[–] [email protected] 0 points 1 month ago

Getting mangoed and eating a stone.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Whoops, typo! Fixed c:

[–] [email protected] 28 points 1 month ago* (last edited 1 month ago) (3 children)

I forgive 'em cuz watt hours are a disgusting unit in general

idea what unit
speed change in position over time meters per second m/s
acceleration change in speed over time meters per second, per second m/s/s=m/s²
force acceleration applied to each of unit of mass kg * m/s²
work acceleration applied along a distance, which transfers energy kg * m/s² * m = kg * m²/s²
power work over time kg * m² / s³
energy expenditure power level during units of time (kg * m² / s³) * s = kg * m²/s²

Work over time, × time, is just work! kWh are just joules (J) with extra steps! Screw kWh, I will die on this hill!!! Raaah

[–] [email protected] 24 points 1 month ago (1 children)

Make your data useless or wrong.

More passively, there's probably an oddly large amount of John Does born on January 1, 2000 ;)

More offensively, anti-image-gen data poisoning such as Nightshade exists. It's well-defended against IIRC so hopefully someone can Cunningham's Law correct me. And this is also more solo of a movement (as opposed to gaining mass support for something)

[–] [email protected] 40 points 1 month ago* (last edited 1 month ago) (4 children)

https://www.explainxkcd.com/wiki/index.php/327:_Exploits_of_a_Mom

SQL sanitization joke. Won't affect most databases today.

[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (1 children)

NOOOOOO HOW DID I GET SHITTYMORPHED ON LEMMY

[–] [email protected] 2 points 1 month ago (1 children)

Not sure about the latter, but NZT was the focal "smart" drug in Limitless (a show on the premise "this drug makes u smart but if u stop taking it bad stuff happens")

[–] [email protected] 23 points 2 months ago (2 children)

For those who jump around too much like I do, remember:

[–] [email protected] 2 points 2 months ago

Not that in particular, but design often comes down to the function f(keywords the branding people like) = very same-looking things. Yay trends.

A lot of fashion companies wanted to be "simple. bold. modern but ready for the future." Now all their logo fonts are basically the same. It's also why everyone loves Futura.

With websites, brand people pick the keywords "calm, professional, modern, reliable" and end up with blue so much that it's the most common website color. So I'm not surprised that the web designers in question picked something "friendly" and "modern" like some font you'd imagine would go well as white text on a matte or charcoal background.

Same reason why I see so much Comfortaa on slideshows (alphabetically near the start of the font list, and f(modern, smart) = title font)

 

For me, it's a 30fps video about someone doing a Super Mario flash game walkthrough of their own level. It was pretty meticulous, pushed the physics of the game. Lots of F.L.U.D.D. (a funky water spray bottle for plumber self-propelling) and dive tricks.

553
of=/dev/sda (programming.dev)
 
view more: next ›