snipt

Ctrl+h for KB shortcuts

Text only

Cordova slow/blocking build (mergeArm...)

1
2
3
4
5
It's because there are too much files in www/

In my case it was node_modules/ that I had to move from www/ to src/

I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess
https://snipt.net/embed/ea7aa6df02a6f7952103252158385122/
/raw/ea7aa6df02a6f7952103252158385122/
ea7aa6df02a6f7952103252158385122
text
Text only
5
2019-06-15T16:10:33
True
False
False
May 23, 2016 at 09:50 AM
/api/public/snipt/147033/
cordova-slowblocking-build-mergearm
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>It&#39;s because there are too much files in www/ </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>In my case it was node_modules/ that I had to move from www/ to src/ </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess </span></pre></div> </td></tr></table>
android, build, cordova, slow

Text only

Avoid Enter passphrase for...

1
2
3
4
5
6
7
8
ssh-add

If "Could not open a connection to your authentication agent.", then

eval $(ssh-agent)
ssh-add

\o/
https://snipt.net/embed/8786882fd9c872f025a66b9de151e88b/
/raw/8786882fd9c872f025a66b9de151e88b/
8786882fd9c872f025a66b9de151e88b
text
Text only
8
2019-06-13T11:18:12
True
False
False
Jan 26, 2016 at 07:55 AM
/api/public/snipt/143842/
avoid-enter-passphrase-for
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ssh-add </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>If &quot;Could not open a connection to your authentication agent.&quot;, then </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>eval $(ssh-agent) </span><span id="L-6"><a name="L-6"></a>ssh-add </span><span id="L-7"><a name="L-7"></a> </span><span id="L-8"><a name="L-8"></a>\o/ </span></pre></div> </td></tr></table>
passphrase, ssh

Text only

Checking which ES6 features are supported by NodeJS

node --v8-options | grep harmony
https://snipt.net/embed/879f10c855416ad18f4aba097095f996/
/raw/879f10c855416ad18f4aba097095f996/
879f10c855416ad18f4aba097095f996
text
Text only
1
2019-06-12T12:35:53
True
False
False
Oct 12, 2015 at 02:19 AM
/api/public/snipt/141626/
checking-which-es6-features-are-supported-by-nodejs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>node --v8-options | grep harmony </span></pre></div> </td></tr></table>
cli, es6, harmony, node

Text only

CSS: Flickering on animation on iOS

1
2
3
4
5
6
7
Could be fixed by:

Tips 1 - Adding -webkit-backspace-visibility: hidden to the animated element and/or its parent(s) and/or its child(ren)

Tips 2 - Adding translateZ(0) everywhere like a maniac

Tips 3 - Could be because of -webkit-scrolling-overflow ! Remove it and yey. Can't remove it ? Then remove a overflow: hidden on its parent and you should be fine.
https://snipt.net/embed/0798edb481751d69478f7c2e8bd40b5a/
/raw/0798edb481751d69478f7c2e8bd40b5a/
0798edb481751d69478f7c2e8bd40b5a
text
Text only
7
2019-06-15T03:39:39
True
False
False
Apr 01, 2015 at 04:04 PM
/api/public/snipt/138822/
css-flickering-on-animation-on-ios-75944e62
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Could be fixed by: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Tips 1 - Adding -webkit-backspace-visibility: hidden to the animated element and/or its parent(s) and/or its child(ren) </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>Tips 2 - Adding translateZ(0) everywhere like a maniac </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>Tips 3 - Could be because of -webkit-scrolling-overflow ! Remove it and yey. Can&#39;t remove it ? Then remove a overflow: hidden on its parent and you should be fine. </span></pre></div> </td></tr></table>
animation, blink, crap, css, flicker

Text only

Itunes connect: App "Developer Removed from Sale"

You need to associate a Store to distribute your app in (Pricing tab)
https://snipt.net/embed/a34e1b08addea88a995e3b3363c42088/
/raw/a34e1b08addea88a995e3b3363c42088/
a34e1b08addea88a995e3b3363c42088
text
Text only
1
2019-06-03T06:00:04
True
False
False
Nov 10, 2014 at 05:24 AM
/api/public/snipt/137014/
itunes-connect-app-developer-removed-from-sale-5442144a
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>You need to associate a Store to distribute your app in (Pricing tab) </span></pre></div> </td></tr></table>
connect, itunes, status

Text only

sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.

1
2
3
4
5
Open the terminal window and enter the following:
export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk)

Once you have this set, you need to add this to the PATH environment variable
export PATH=$PATH:$ANDROID_HOME/bin
https://snipt.net/embed/dcaa2e1f32999dd44f9907a19e3495bf/
/raw/dcaa2e1f32999dd44f9907a19e3495bf/
dcaa2e1f32999dd44f9907a19e3495bf
text
Text only
5
2019-06-15T11:09:58
True
False
False
/api/public/snipt/136876/
sdkdir-is-missing-make-sure-to-generate-localproperties-using-android-update-project-or-to-inject-it-through-the-android_home-environment-variable-e54f799d
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Open the terminal window and enter the following: </span><span id="L-2"><a name="L-2"></a>export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk) </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Once you have this set, you need to add this to the PATH environment variable </span><span id="L-5"><a name="L-5"></a>export PATH=$PATH:$ANDROID_HOME/bin </span></pre></div> </td></tr></table>
android, cordova

Text only

PhantomJS Webfont

PhantomJS can't display webfont.
The easiest solution is to install the fonts on the system and to remove @font-face in css for phantomJS
https://snipt.net/embed/f113a178e46efda141a38c84ae0d9e1f/
/raw/f113a178e46efda141a38c84ae0d9e1f/
f113a178e46efda141a38c84ae0d9e1f
text
Text only
2
2019-06-10T00:46:16
True
False
False
Oct 25, 2014 at 07:22 AM
/api/public/snipt/136860/
phantomjs-webfont-97642d92
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>PhantomJS can&#39;t display webfont. </span><span id="L-2"><a name="L-2"></a>The easiest solution is to install the fonts on the system and to remove @font-face in css for phantomJS </span></pre></div> </td></tr></table>
phantomjs, webfont