Posts by ropbla9 • 6,810 points
85 posts
-
2
votes1
answer574
viewsQ: How do I publish a specific APK for Android versions greater than $API?
I have an application in the Play Store that uses the Crosswalk plugin. However, for Android versions from 5.0 upwards, I want to be able to provide a build without the plugin Crosswalk. Only…
-
1
votes1
answer40
viewsQ: Ads do not appear in Cordova SDK
From the API 2.0 my ads, banners and insterticial do not appear. The banner shows no clue, the interstitial loads the spinner then disappears. I have already checked my Key API and my code is…
apache-cordovaasked ropbla9 6,810 -
1
votes0
answers60
viewsQ: Build multi APK in Cordova without Crosswalk?
Since I took Crosswalk off my project, Cordova only build an APK. But I need my app on x86 and ARM architecture. How to do this without Crosswalk? Or would Cordova’s standard APK be a hybrid APK for…
-
1
votes1
answer191
viewsQ: How to pass a dynamic argument to a method in Vue.js?
I need to call a v-on:click event with a dynamic argument. I tried in the most logical way: v-on:click="my_method({{value}})". Doesn’t work.
-
4
votes1
answer228
viewsQ: How to compile the entire project folder for ES5 using Babel.js?
I have an HTML5 Cordova project and I need to hook before compiling to convert entire projects folder (www) to ES5 before compiling. It is possible? Structure cordova/ hooks/ node_modules/…
-
1
votes2
answers1093
viewsQ: How to store "direct link" to an image using Firebase Storage
I need to access an image stored in Firebase Storage via a direct link, e.g.: http://myfirebasehost.com/storage/imgIwant.png As far as I know, this type of URL is only possible using the protocol…
-
1
votes1
answer107
viewsQ: How to fix the "charset" of an XML document?
I have that code $.ajax({ url: "https://crossorigin.me/http://www.acidigital.com/rss/rss_santo.php", crossDomain: true, contentType: "application/xml; charset:utf-8", type: "GET", dataType: "xml",…
-
1
votes0
answers73
viewsQ: How to convert ES6 to ES5 in Cordova via a hook?
Cordova’s crosswalk plugin does not work on iOS, so iOS Webview continues to be native. The problem is that native Webview (safari) does not run ES6, but my project is written in ES6. I need a kind…
-
1
votes0
answers6
viewsQ: "jquery.min.map not found" when debugging Cordova for iOS
My project opens error-free in Android Browser and Webview. Only in iOS Webview (by safari Veloper tools) are you only acknowledging this error.…
apache-cordovaasked ropbla9 6,810 -
3
votes1
answer1215
viewsQ: "No Emulator images (avds) found" even after creating emulator images
I have the following problem: Error: No emulator images (avds) found. 1. Download desired System Image by running: /usr/local/Cellar/android-sdk/24.4/tools/android sdk 2. Create an AVD by running:…
apache-cordovaasked ropbla9 6,810 -
2
votes2
answers525
viewsA: How to get and count elements that DO NOT have a certain CSS property with js/jquery?
var elements_without_display_none = [] $('#gallery').children().each(function(i, el) { var $currentEL = $(el); if($currentEl.css("display") != "none") {…
-
1
votes1
answer119
viewsQ: "EACCES" error when using Cordova on OS X
Suddenly, while activating the command "Cordova run android", I get the following log MBP-de-Rodolfo:cordova rop$ cordova run android…
-
4
votes3
answers1358
viewsQ: Nodemailer sends email but recipient does not receive it (hostgator server)
I have an e-mail server at the hostgator and an account at the same. I need to use the nodemailer to send messages to my clients from this account. For this I need to configure manually with these…
-
2
votes1
answer143
viewsQ: I can’t publish my MEAN app to Openshift
I did everything that feels right. I changed the local variables to process.env, but when I commit and send I get this output: Pushing to…
-
4
votes1
answer502
viewsQ: Loading external "pages" via AJAX. Will Google index?
Some talking to use #!, others say to use History API and others say that the Google already runs Javascript. I’m doing a project whose pages are loaded into a container leading. All link is an…
-
4
votes2
answers2173
viewsQ: How to log into Facebook using an active session cookie in the DOM?
I’m studying security in web applications. For educational purposes, I logged on to my Facebook page and copied my active session cookie obtained on document.cookie, then I opened another browser,…
-
3
votes1
answer283
viewsQ: What are Network Mask, Gateway and how do they relate to the modem/router?
I think the most accurate question would be: "How does a client/host connection occur from the output of the client package, going through the internal network, leaving the modem until arriving at…
-
2
votes0
answers520
viewsQ: Application Cordova does not open on device when command 'RUN' and does not log errors
I have an HTML application and I can’t get it to run on android in test mode. I’m using Mac OS, but when using Linux everything worked perfectly with the "Cordova run android" command: the app was…
-
1
votes0
answers194
viewsQ: How to host server on local router with Express.js on Mac OS X?
Since I started using Mac I am no longer able to host a local server on my router with Express. In Ubuntu just pass the router IP as second argument of app.listen and everything worked out: thus.…
-
1
votes0
answers109
viewsQ: How to convert "arraybuffer" to "string" and vice versa?
I am making a mobile app in HTML5 and need to store data from MP3 files and bitmap images in Torage localStorage. The problem is that only to store String then I need to convert a buffer in String…
-
26
votes2
answers1684
viewsQ: What are Unit Tests for and what are the advantages?
I saw some videos and articles on unit testing, learned the Qunit framework and some test situations. Still I could not think of a practical use that is worth more than a common browser debugging or…
-
4
votes2
answers1633
viewsQ: Splashcreen plugin (Cordova) and icons do not work on Crosswalk
I’m using this module that automatically adds a Crosswalk wrapper to a Cordova project. Obs: It requires "Platform" to be [email protected]. Okay, then I give the command to Wrap the Crosswalk in the…
-
1
votes1
answer88
viewsQ: Svg contained in DIV does not follow "max-height: 100%"
Take the example of the structure first. .follow-window-size-container { height: 100vh; background-color: green; } container-of-svg { max-height: 100%; } container-of-svg svg { max-height: 100%; }…
-
8
votes1
answer148
viewsQ: How/why to chain variables with operator = (equality)?
Sometimes I come across these statements chained in source some libraries and are usually many chained statements. For example: var foo = foo2 = foo3 = 'foovalue'; However I could never understand…
-
3
votes2
answers208
viewsQ: I cannot get return of floats through expressions
When I try to give print(6/10) get a int (0) instead of a float (0.6) And if I give type(6/10) returns int. I’m following this tutorial and doing exactly the same steps in both pyCharm and IDLE,…
-
10
votes2
answers938
viewsA: CSS or Jquery for animation
CSS3 is always lighter. However you may face more complex situations where a simple structure of animation or transition won’t be as useful. In most cases it is possible to merge jQuery/Javascript…
-
0
votes1
answer334
viewsQ: How to transition text (in array) within an HTML element with fade and delay?
In short: I want an algorithm similar to the subtitle transition but without audio or video, just a text transition with delay and fade. Setting: I have a array jagged with 20 arrays, each array is…
-
4
votes0
answers196
viewsQ: How to modularize an app made in Sammy.js with Require.js or "module Pattern"?
I have an app (mobile app) written in Sammy.js with 4 routes. Each route has 40 to 70 lines of code and one evento bindado. Write everything down in one callback from app is turning into a beautiful…
-
1
votes2
answers404
viewsA: App style in pure CSS3 breaks while running on Android
That project provides a separate Webview for Android that contains the most up-to-date Chrome features. On it is possible to run recent Chrome Features for any Android version above 4.0.…
-
4
votes2
answers404
viewsQ: App style in pure CSS3 breaks while running on Android
I’m making an app with Cordova + Sammy.js and CSS3 pure. I can make the app perfectly responsive and with all styles working on Chrome and Firefox. It turns out that when I "build" on Ordova and…
-
2
votes2
answers894
viewsQ: Problem with SUDO "must be setuid root"
So I think the title is self-explanatory. I’m beginner in Linux, I went to try to install Steroids (testing environment for hybrid APP’s) following this tutorial (the second, installation), and now…
-
1
votes1
answer1289
viewsQ: How to read and write JSON locally in Cordova?
I need a simple solution to persistently upload and update data in a mobile APP using Cordova. I thought I’d create a JSON in the application root folder to load the data on APP startup. Even for…
-
4
votes2
answers2204
viewsQ: How to make SVG image fit the size of a DIV?
I have an image SVG of more or less 100 lines and 60 paths and need it to fit to any block node, such as a div for example. I tried to put a class css in the tag svg and adjust the width for 100%…
-
0
votes1
answer1888
viewsQ: Error creating platform with Cordova in Ubuntu (ANDROID_HOME is not set and "android")
First of all, I confess that I am a beginner in Linux and currently use the updated Elementary OS Luna. So it’s been really hard for me to figure it out. I was able to install all the NPM stack…
-
1
votes1
answer167
viewsQ: Error sharing HTTP Session with socket.io. io.sets "is not Valid".
I am applying the step by step book "Node.js, real-time applications" of Caio Ribeiro Pereira. All right until the part about sharing the HTTP express-Session to the socket.io. As far as I can see…
-
2
votes1
answer174
viewsQ: How to find exact Regexp and do this using constructor syntax?
I have an algorithm that takes several complete file paths and checks if each of them is 'forbidden' by the server. The var s of for is related to each of these paths and the sets is an array with…
-
1
votes1
answer396
viewsQ: How to edit page after rendered with Node.js?
I need every time a page with a path is rendered to be added a paragraph after the <body> and another paragraph before the </body>. I’m using Express.js and da to do this by picking up…
-
29
votes2
answers10012
viewsQ: What are Network Sockets and Websockets?
I am studying real-time Node.js programming and I have arisen some doubts regarding network sockets. I found nothing explained in detail, so I decided to open the question. What is a network socket…
-
0
votes1
answer1648
viewsQ: How do 'request' and 'Response' events work on Node.js?
Everybody knows how to use the request and response properly as callback parameters of the http.createServer, and that we use these two parameters as objects inside the callback. I searched the…
-
3
votes1
answer284
viewsQ: How to inherit methods from one prototype to another using the Node.js usel module?
I was watching the video of a guy explaining events of Node.js and at the end he makes a small module using util.inherit to inherit from one prototype constructor to another. Although I know the…
-
198
votes3
answers154272
viewsQ: What is REST and Restful?
I always hear of REST and RESTful, but I can’t tell the difference between us or what it’s for. It seemed to me something with Common.js-style application architecture pattern.…
-
23
votes3
answers2439
viewsQ: What is the real advantage of using a Callback and what is thread/multithread?
There is a lot of explanation of what callback is on the net and even a few scant examples, but nothing that explains in practice and in detail a really important use (I did not find). I already…
-
3
votes1
answer181
viewsQ: What are the variables/functions Anonimas and closures for? And what are they for? How to use?
I think most of the question has already been asked in the title. More specifically, I wanted real examples of using these techniques and the relationship between them. Note: I read other related…
-
2
votes2
answers227
viewsQ: How to replace Regexp in editable div using Javascript?
I have a div editable where I capture all text within it. Hence I want in each occurrence of certain word this word is replaced by another. Very simple. The code I tried did not work. It itself…
-
3
votes1
answer240
viewsQ: Add tag to all repetitions of a given word
Look at the code below: <style type="text/css"> .format{ color: red; font-style: italic; } </style> <div> <p>texto texto texto 'palavra-chave'. texto 'palavra-chave', texto…
-
5
votes1
answer67
viewsQ: How to pass argument to Object prototyped with prototype?
With this of to do this: function Biscoito(sabor,marca,preco) { this.sabor = sabor; this.rodas = marca; this.preco = preco; this.mostrarAtributos = function(){ return sabor + ", " + marca + ", " +…
-
0
votes1
answer187
viewsQ: Does Transition not work with Javascript?
I have a dropdown menu made by me that acts with very simple class exchange(block or none). The script works and updates classes in the right way, but apparently it ignores the property transition…
-
1
votes2
answers1216
viewsQ: Make div daughter have same size as fixed parent
I’m putting together a responsive layout... My "menucontainer" is fixed... So the width of it does not match the size of the site interface... For this reason when the zoom increases it becomes and…
-
2
votes1
answer122
viewsQ: Make large-scale textContent exchanges with Javascript
I have a page on which I want each event to be changed the textContent of a <h1>, one <p> and a <img>. I thought of php includes or Json. I don’t know. (It’s a lot of content, so I…
-
-3
votes2
answers778
viewsQ: Node.js, Ror or PHP?
Guys so far I only studied front-end, but I want now I want to make a complete application and for that I need knowledge to program the server. I see several options of languages and frameworks and…