Comments (15)
the decimal representation of the max value of an 8-byte signed integer
127 is the max value of an 8-bit signed integer, not that of an 8-byte signed integer.
Also the SHA-256 checksum is binary data, when you say it's 922c7954216ccfe7a61def609305ce1dc7c67e225f873f256d30d7a8ee4f404c, this is already in hex representation, no need to do further ASCII kung fu on it.
Keep trying. Let me know if you got stuck again.
from scelight.
The shifting and XORing have to be done on the number, before calculating the SHA-256.
from scelight.
And CafeBabe
is already the hex number you have to use, again, no further ASCII kung fu required.
from scelight.
Oh haha thought so, it was something wrong with understanding the task.
So, 8 Byte max number = 9223372036854775807
SHA-256 (0x) = b34a1c30a715f6bf8b7243afa7fab883ce3612b7231716bdcbbdc1982e1aed29
Right Shift by 26 bits (0x1a) = 2cd2870c29c57dafe2dc90eb (or is here you are asking for push 1a from left? So result being 1ab34a1c30a715f6bf8b7243afa7fab883ce3612b7231716bdcbbdc1982e1aed
XOR with 4361666542616265 (CafeBabe ASCII to Hexadecimal) = 2cd2870c6aa41bcaa0bdf28e
Which is again wrong. What am I doing wrong?
from scelight.
Allright, So, lets start again:
8Byte max number = FF FF FF FF FF FF FF FF
26 bits right shift = 07 FF FF FF
Xor This with CAFEBABE = CD014541
To Decimal = 3439412545
SHA-256 =
(number as string) 1c003dbf49c4a4e8435813890293114a1b32a1512e8a39e0b967e430b8783604
(number as number) ed5969025b8938edc8c1b180bdeacee78421d6b93e794022f524f38c38ec1041
both not working.
from scelight.
(this is starting to be fun not gonna lie 😀)
from scelight.
The initial number must be signed, not unsigned.
from scelight.
8Byte max number = 7F FF FF FF FF FF FF FF
26 bits right shift = 00 01 FF FF FF FF FF FF
Xor This with CAFEBABE = 1FFFF35014541
To Decimal = 562946547729729
SHA-256 =
(number as string) 0e18400b08f8d4d5a3d8f9af8a10d3054db48bed2adcf22b2c595348f16078fc
(number as number) b38461cae06691b8e6fa7b1756c3e2ff26fdb5968bb83dd852d7f8fb1654e0d3
What is missing?
I think I did a mistake at bitwise shift right. Gotta go now
from scelight.
Yeah, that shift seems off by like 12 bits...
from scelight.
Edit : Done
from scelight.
Yes, your (number as string) solution is the correct one! This was already asked on StackOverflow (how to solve this), and I've answered that question: https://stackoverflow.com/questions/32685574/trying-to-open-developer-options-with-small-coding-test/32708433#32708433
The workspace folder is not the folder where you unpacked Scelight to. The workspace folder holds the persistent state of Scelight (settings, logs, cached data etc.).
Go to Settings, and check the Help on the Workspace node:
from scelight.
It is already set up though... Let me check all, this might be a bug.
Edit: Oh lol a folder named workspace is needed in application folder :D Still not working in there though.
from scelight.
Ok anyways activated. You want me to delete the result codes?
from scelight.
What did you have to do to make it work? Yes, you can remove the correct result.
from scelight.
What did you have to do to make it work? Yes, you can remove the correct result.
It appears, if you change your workspace and close the application without applying, it doesn't save it haha.
Creating a PR for more comprehensive help. Consider merging it or not :)
from scelight.
Related Issues (20)
- missing support for replay packs released for AI devs HOT 3
- Issue parsing games HOT 2
- can't open replays with version 4.2.0.62347 HOT 3
- UI broken after a few minutes of use HOT 2
- Support new replay version 4.2.2 HOT 2
- Live View of History of current opponent HOT 6
- Crashing on startup with latest JDK on macos HOT 4
- Fails to parse co-op replays HOT 1
- HiDPI support
- google download link in readme returns 404 HOT 3
- Missing Cmd events HOT 10
- Map Downloads stuck
- Open Filebrowser does not work in Log window
- Dark theme? HOT 3
- Running with same workspace on OS X and Windows produces path issues which causes a crash HOT 1
- Latest patch replays not supported (3.2.2.42253) HOT 3
- APM live doesn't work HOT 4
- Preliminary 3.9 replay support HOT 1
- Base Control tab displays nothing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scelight.