## spells – Exactly how does a Storm of Blades work?

spells – Exactly how does a Storm of Blades work? – Role-playing Games Stack Exchange

## How does looting treasures worth legend points work?

How does looting treasures worth legend points work? – Role-playing Games Stack Exchange

## applescript – My Apple Script Editor code doesn’t work gives “Syntax Error Expected end of line but found identifier.”

The problem is the version of Evernote I tried is not AppleScript scriptable.

When trying to add Evernote to the Library in Script Editor, in order to review its AppleScript dictionary, it errs with: Add Item Unable to add the item because it is not scriptable.

Additionally, when running the following command in Script Editor:

``````tell application "System Events" to ¬
get has scripting terminology of application process "Evernote"
``````

Its result is: false

Apparently at one time Evernote was AppleScript scriptable, however, in macOS Catalina, testing with Evernote from https://evernote.com/download/ and checking Evernote > About Evernote it shows:

10.11.5-mac-ddl-public (2530)
Editor: v121.2.15734
Service: v1.32.4

Looking for the typical AppleScript dictionary in `/Applications/Evernote.app/Contents/Resources/` there is no Evernote.sdef files as would be expected if it was fully AppleScript scriptable.

If you do have a version of Evernote that is AppleScript scriptable then try the following, which I cannot test under the circumstances:

Change `note1` to `note` in:

``````set myNote to create note1 with text myTitle title myTitle notebook "Imported Notes" tags ("imported_from_notes")
``````

You might also want to put in some parentheses. e.g.

``````set myNote to (create note with text myTitle title myTitle notebook "Imported Notes" tags ("imported_from_notes"))
``````

Unfortunately without a version of Evernote that is AppleScript scriptable, I cannot offer more.

## exploit – ctf kernel challenges does not work

I’m trying to learn and solve some ‘kernel related’ ctf challenges (reading writups to try to run same environment and achieve root using one of the kernel-pwn technique…).

I’m using Ubuntu 20 VM and (for example) this challenge:

Unfortunately only results I can see (no matter if I’m trying to solve mentioned challenge or any other) is (similar to the one) presented below:

``````input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
``````

mount: mounting devpts on /dev/pts failed: No such file or directory
random: fast init done
flux_baby says hi there!
flux_baby opened

1. Call
2. Show me my uid
4. Any hintz?
5. Bye!

1
I need a kernel address to call. Be careful, though or we will crash horribly…

18446744071579168336
There is a good chance we will want to pass an argument. Which one is it?

0
Got call address: 0xffffffff8104ee50, argument: 0x0000000000000000
flux_baby ioctl nr 900 called
flux_baby ioctl nr 900 called
flux_baby ioctl extracted param ffffffff8104ee50 as function ptr, calling it
A miracle happened. We came back without crashing! I even got a return value for you…
It is: ffff88000212ca80

1. Call
2. Show me my uid
4. Any hintz?
5. Bye!

1
I need a kernel address to call. Be careful, though or we will crash horribly…

18446612132349004608
There is a good chance we will want to pass an argument. Which one is it?

18446612132349004608
Got call address: 0xffff88000212cb40, argument: 0xffff88000212cb40
flux_baby ioctl nr 900 called
flux_baby ioctl nr 900 called
flux_baby ioctl extracted param ffff88000212cb40 as function ptr, calling it
kernel tried to execute NX-protected page – exploit attempt? (uid: 1000)
BUG: unable to handle kernel paging request at ffff88000212cb40
PGD 1b34067 P4D 1b34067 PUD 1b35067 PMD 21fd063 PTE 800000000212c163
Oops: 0011 (#1) PREEMPT NOPTI
CPU: 0 PID: 58 Comm: client_kernel_b Tainted: G O 4.18.0 #11
RIP: 0010:0xffff88000212cb40
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc900000b3e00 EFLAGS: 00000246
RAX: 000000000000004c RBX: 0000000000000384 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000000000e4 RDI: ffff88000212cb40
RBP: ffffc900000b3e30 R08: ffffffff811b1ca0 R09: 00000000000000e4
FS: 000000000205a880(0000) GS:ffffffff81a35000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88000212cb40 CR3: 00000000021c8000 CR4: 00000000000006b0
Call Trace:
? 0xffffffffa0000040
0xffffffffa0000116
0xffffffff810db790
? 0xffffffff811220f7
? 0xffffffff810148b2
0xffffffff810dbd3c
0xffffffff810dbd95
0xffffffff81001134
0xffffffff81400075
RIP: 0033:0x000000000043f1eb
Code: 0f 97 c0 84 c0 75 af 48 8d 3c 2b e8 df dd 02 00 85 c0 78 b0 48 83 c4 08 48 89 d8 5b 5d c3 90 f3 0f
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f1eb
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402e80
R13: 0000000000000000 R14: 00000000004c1018 R15: 0000000000000000
CR2: ffff88000212cb40
—( end trace 960bcbc99b521658 )—
RIP: 0010:0xffff88000212cb40
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc900000b3e00 EFLAGS: 00000246
RAX: 000000000000004c RBX: 0000000000000384 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000000000e4 RDI: ffff88000212cb40
RBP: ffffc900000b3e30 R08: ffffffff811b1ca0 R09: 00000000000000e4
FS: 000000000205a880(0000) GS:ffffffff81a35000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88000212cb40 CR3: 00000000021c8000 CR4: 00000000000006b0
flux_baby closed
Killed
ACPI: Preparing to enter system sleep state S5
reboot: Power down
acpi_power_off called
root@u20:/home/c/kernelz/baby_kernel_3460960b6fc99f8a90fba7397b5e4c46/public#

(In case you’d say “dude try the value(s) for your OS” – like I said, any kernel-related challenge will present ‘the same’ results, means: exploitation is killed (and I don’t know why)).

Thank you for all the hints.

## i had upgraded magento 1.9 to magento 2.4 but it did not work properly so i decided to get back but when i restored it i can see this problem

error log
[14-Apr-2021 15:18:01 Australia/Sydney] PHP Fatal error: Uncaught Error: Class ‘MagentoFrameworkAppErrorHandler’ not found in /home/martarab/public_html/bin/magento:20
Stack trace:
#0 {main}
thrown in /home/martarab/public_html/bin/magento on line 20

## canon – Auto focus won’t work in viewfinder on Aperture priority mode

My camera (Canon Rebel t7i) won’t auto focus in manual or aperture priority mode in viewfinder. (It works perfectly in liveview)

Maybe it’s important to say that I’ve never shot in manual mode so I wanted to learn how to shoot in Aperture Priority mode. Auto focus isn’t working in viewfinder though. I used 2 different lenses (canon 50 mm 1.8 and the kit lens) It doesn’t work on both. I tried resetting the camera. Still nothing.

It does work in auto mode in the viewfinder.

Am I doing something wrong or is something broken?

## protocol – (How/Why) – Work vs Block Size Limit and Leading Zeros

Tl:dr
How did Satoshi/the community decide an appropriate block-size-limit?
Why does the protocol increase mining difficulty by adding zeros?

I’ve some limited experience with some of the cryptographic concepts underlying bitcoins protocols.
I have two questions.
Given the fact that there is an upper limit on block size, perhaps the easiest way to breach this is to arrive at an some exceedingly large nonce which will become necessary due to other block contents. The question is, how do you set an appropriate limit for arbitrary blocks?
Would you need to know about inverting the hashing-algorithm in order to prove the efficacy of a given limit for an arbitrary ledger/header/nonce set?

Second question is about the relevance of increasing the leading zeros over time. Would it not be equivalent (wrt work done) to set a total number of zeros? That is, would you need to know about inverting the hash algorithm in order to prove that difficulty is increasing by adding leading zeros as opposed to any other “pattern” of any other hex character of the same cardinality?

Please forgive and correct my understanding of the issues in question.

## My timer wont work in unity

My timer wont work in unity – Game Development Stack Exchange