Time |
Nickname |
Message |
01:33
🔗
|
SketchCow |
There we go, from the top guys |
01:34
🔗
|
SketchCow |
https://twitter.com/kripken/status/840368640805412864 |
01:34
🔗
|
SketchCow |
So compile away with impunity and hack not needed |
01:35
🔗
|
|
arkiver has joined #jsmess |
03:50
🔗
|
SketchCow |
My decision with the phantomjs thing is wait for phantom 2.5 to come out of beta and then run it |
03:50
🔗
|
SketchCow |
I'm not going to chase down 1,000 library dependencies |
04:22
🔗
|
bai |
a better option might be chrome --headless |
04:24
🔗
|
SketchCow |
Nope |
04:24
🔗
|
SketchCow |
This all gets away from what I want to do |
04:24
🔗
|
SketchCow |
For all this, I already solved all this with screenshotgun |
04:25
🔗
|
SketchCow |
The advantages I want, going headless just adds more crap |
04:25
🔗
|
SketchCow |
This is my problem, don't worry about it |
04:25
🔗
|
SketchCow |
We just need to set up an emularity testbench at the archive |
04:25
🔗
|
SketchCow |
and turbo it |
04:26
🔗
|
bai |
yeah, it's just almost identical to a problem I'm slacking on solving at work :D |
13:59
🔗
|
SketchCow |
:) |
14:14
🔗
|
SketchCow |
So, I downloaded PhantomJS into windows (used the windows version) |
14:14
🔗
|
SketchCow |
It works |
15:26
🔗
|
SketchCow |
http://fos.textfiles.com/pacman.gif |
15:31
🔗
|
SketchCow |
http://fos.textfiles.com/pacman-boot.gif |
15:35
🔗
|
SketchCow |
http://fos.textfiles.com/pacman.png example screenshot |
15:41
🔗
|
SketchCow |
So, it's worth it to get it running on my box. |
16:12
🔗
|
SketchCow |
OK, good news. |
16:13
🔗
|
SketchCow |
I got PhantomJS 2.5 working on FOS |
16:29
🔗
|
SketchCow |
However, archive.js is failing |
16:33
🔗
|
SketchCow |
But now we: 1. Know it works on the emulation 2. Can nail it down |
16:33
🔗
|
SketchCow |
root@teamarchive0:/0/PHANTOM/phantomjs-2.5.0-beta-ubuntu-trusty/bin# ./phantomjs archive.js |
16:33
🔗
|
SketchCow |
CONSOLE: TypeError: SyntheticEvent.augmentClass is not a function. (In 'SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface)', 'SyntheticEvent.augmentClass' is undefined) (from line # in "") |
16:33
🔗
|
SketchCow |
CONSOLE: TypeError: undefined is not an object (evaluating 'React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED') (from line # in "") |
16:33
🔗
|
SketchCow |
CONSOLE: ReferenceError: Can't find variable: React (from line # in "") |
16:33
🔗
|
SketchCow |
CONSOLE: TypeError: undefined is not an object (evaluating 'AJS.emulator.start') (from line # in "") |
17:45
🔗
|
db48x |
looks like you need to include React |
17:47
🔗
|
db48x |
https://facebook.github.io/react/docs/installation.html |
17:48
🔗
|
db48x |
install the npm modules react and react-dom, then find dist/react.js and dist/react-dom.js, and include those in your setup |
17:48
🔗
|
db48x |
I'm not sure exactly what you need React for though |
18:01
🔗
|
SketchCow |
Some IA silliness no doubt. |
18:02
🔗
|
|
db48x has quit IRC (Read error: Operation timed out) |
18:03
🔗
|
|
db48x has joined #jsmess |
18:05
🔗
|
SketchCow |
React installed. Now looking for the dists. |
18:09
🔗
|
SketchCow |
How do I include them, asked Jason |
18:12
🔗
|
SketchCow |
Think I found it |
18:18
🔗
|
db48x |
<script src="..."></script> |
18:19
🔗
|
SketchCow |
In the archive.js? |
18:22
🔗
|
SketchCow |
Oh wait... hmmm |
18:33
🔗
|
SketchCow |
http://teamarchive0.fnf.archive.org/PHANTOM/frames/screenshot0.png |
18:33
🔗
|
SketchCow |
So obviously it screenshots fine. |
18:33
🔗
|
SketchCow |
Grabs the canvas, which is good. |
18:45
🔗
|
SketchCow |
Vito`: Any thoughts |
18:59
🔗
|
|
zino has quit IRC (Remote host closed the connection) |
19:12
🔗
|
SketchCow |
bai: Thoughts |
19:12
🔗
|
bai |
what's the problem now? |
19:13
🔗
|
SketchCow |
So |
19:13
🔗
|
SketchCow |
I upgraded from Version 2.1.1 of PhantomJS to 2.5. |
19:14
🔗
|
SketchCow |
I then used the proper testing harness of going to the old javascript pacman page. |
19:14
🔗
|
SketchCow |
(So I didn't deal with IA, just with the code) |
19:16
🔗
|
SketchCow |
So, the straight works |
19:16
🔗
|
SketchCow |
I.e. http://teamarchive0.fnf.archive.org/PHANTOM/pacman.js |
19:16
🔗
|
SketchCow |
Boomity boom boom |
19:17
🔗
|
SketchCow |
That's the screenshots I put on twitter you saw |
19:17
🔗
|
SketchCow |
That means jsmess/emularity works |
19:19
🔗
|
SketchCow |
Now, I'm using the code from before to do what we did with archive |
19:19
🔗
|
SketchCow |
Running into things |
19:22
🔗
|
SketchCow |
And there you go |
19:23
🔗
|
bai |
oh...yeah I dunno about how the archive stuff is set up, I'm kind of shocked to hear you guys use react at all given the licensing derpiness, but I know that's not helping this situation :D |
19:23
🔗
|
bai |
but do you need all the archive stuff if you're just gonna cut it out anyway? |
19:29
🔗
|
SketchCow |
No, we don't need it ideally. |
19:29
🔗
|
SketchCow |
And in the original phantomjs it didn't seem to use it. |
19:59
🔗
|
|
zino has joined #jsmess |
20:06
🔗
|
SketchCow |
https://twitter.com/textfiles/status/840655155162951681 |
20:08
🔗
|
SketchCow |
Verified - the windows version does the same thing as the linux version. |
20:23
🔗
|
SketchCow |
hitsthings is attacking |
20:46
🔗
|
SketchCow |
Verified |
20:47
🔗
|
SketchCow |
React is loaded on every page |
20:47
🔗
|
SketchCow |
In this case, I think we can blackhole it if someone knows how |
20:47
🔗
|
Vito` |
sorry, haven't played with 2.5 at all, and am heading out |
20:47
🔗
|
Vito` |
I might be able to look at it tonight if it's still a problem |
20:47
🔗
|
* |
SketchCow pinches Vito`'s cheeks |
20:47
🔗
|
SketchCow |
I think we just need to polyfill horseshit |
20:55
🔗
|
SketchCow |
https://medium.com/@ericclemmons/react-event-preventdefault-78c28c950e46#.fzx09g5ci |
20:57
🔗
|
SketchCow |
https://github.com/erikras/react-native-listener |
21:27
🔗
|
bai |
I wish I could help but I've remained wilfully ignorant of all things react |
21:27
🔗
|
bai |
so I have no idea what it's doing with synthesized events |
23:57
🔗
|
SketchCow |
Understood |