Posts by ralfting • 812 points
35 posts
-
2
votes1
answer880
viewsA: Angularjs: how to work with file-separated controllers
Renan use the ocLazyLoad to upload your files on demand (Calling only when you need to use those files). Use lazyload on solves so it will take care of loading all your route dependencies before…
-
0
votes1
answer66
viewsA: Karma+mocha Error with module Angularjs
My solution was the modification of the module call module('MyApp')for angular.mocks.module('MyApp') being like this: var assert = chai.assert; var expect = chai.expect; describe("thes base…
-
0
votes1
answer66
viewsQ: Karma+mocha Error with module Angularjs
Summary I am creating a Seed for modular design with Angularjs + Browserify + Babeljs. I am implementing the unit test part. Problem When I call the angular module it returns the error Typeerror:…
-
2
votes1
answer1585
viewsQ: Logout with Javascript Event when closing the window
Situation I have a system in which I need the user to be dropped when closing the browser. Code in this way I was able to catch the closing of the browser, or better to say the 'exit' of the page…
javascriptasked ralfting 812 -
0
votes2
answers217
viewsA: Using Jquery Library with Angularamd
Try to put the jquery in the shim thus: shim: { "jquery": { exports: "jquery" } }
-
1
votes0
answers76
viewsQ: Angularjs + Requirejs [ Error Injection ]
Introducing I’m developing a structure using the Angularjs and Requirejs. I’m starting to study Requirejs and researched a lot about it, but I haven’t gotten anything clear from it using with the…
-
0
votes1
answer40
viewsQ: Jquery Slideshow Error Passing Slide
Problem I have a slideshow where I have to show two divs each time. Even at first you get them both all right, but once it returns to div 1 and 2 in the next 'next' I give a div 1 continues there…
-
0
votes1
answer677
viewsQ: Devise - Email confirmation and Forget password? [ email does not send ]
Problem sending Confirmation Email and Password Change Problem After requesting to send the forget password? he keeps carrying it until he gives time out. The creation of the Password exchange token…
-
0
votes2
answers108
viewsQ: Remove post-type Wordpress articles
Remove I would like to remove the post-type Articles from the Wordpress menu I have researched some possibilities but nothing has taken effect. I tried creating the method unregister_post_type in…
-
1
votes1
answer152
viewsQ: REST with problem in CREATE
Introducing I am developing an app and using Rails. $ rake routes POST /companies(.:format) companies#create Routes.Rb resources :companies Problem When I step my object to be inserted using Postman…
-
2
votes1
answer90
viewsQ: $http Angularjs Return not expected
Description I am implementing a $http request with angular. I want to return the database objects. Code Companyservice.coffee angular.module('vaultfactor').factory 'CompanyService', ($http, $q)…
-
2
votes2
answers87
viewsQ: Detele() - Play Framework - Compilation error
Introducing I am doing a CRUD in my application, everything is perfect but my delete is giving error when compiling Error Task java. package models; import java.util.*; import java.util.*; import…
-
3
votes2
answers158
viewsQ: Play framework problem with form
Introducing I’m starting to develop with the Play Framework. I’m making a TODO list template with it. Problem When I am instantiating my form in the controller it returns me the following error:…
-
2
votes1
answer299
viewsQ: Gulp insert minified file in index
Introducing I am implementing the task automator Gulp, everything is going well, minified files, concatenated and optimized. Problem Now what I need is to take the minified file ( all.min.js ) and…
-
0
votes0
answers121
viewsQ: Gulp.watch does not execute task
Introducing I’m using Gulp to automate my tasks, I’m using Gulp.watch to preprocess the Sass as soon as I see a change in the file: gulp.task('styles', function(){ return gulp.src(files)…
-
2
votes1
answer1107
viewsA: JDBC+mysql remote error while connecting
Solution That was the same problem @Kyllopardiun said,opening the doors and solved that I had a problem in that same code at the time of inserting, it closed connection before inserting: try{…
-
3
votes1
answer81
viewsQ: DB oracle Closed Connection
Introducing I am developing an application and have to add data to an oracle database that is local. Using JDBC I connect try (Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@" +…
-
1
votes1
answer1107
viewsQ: JDBC+mysql remote error while connecting
Introducing I am developing a program in java that can change the connection of the database, I have 1 local database (127.0.0.1:3306) and a remote database (192.168.25.75:3306) that would be a…
-
2
votes1
answer261
viewsQ: Regex in a switch case
About I have a switch that takes care of the activation of my menus from their address on the site. switch($location.path()){ case '/perfil': $scope.menuAtivo.perfil = 'active'; break; case…
-
1
votes1
answer109
viewsA: Angularstrap date-template
Solution Changing the focus a little bit was doing another part here of the system and I end up giving myself a 'light' about what could be done, and the solution was simple. Passing the…
-
2
votes1
answer109
viewsQ: Angularstrap date-template
Problem I’m implementing Strapangular in my application, but I can’t use contentTamplate to insert a form in my modal aside. I tried it this way mainCtrl $scope.aside = { "title": "Novo…
-
0
votes3
answers354
viewsA: Angularjs templateUrl error does not find html file
DEDUCTION OF THE PROBLEM The error occurred because it was not carrying the file. Together, Grunt made the script folder only try to concatenate the JS files and take the final file and the…
-
2
votes3
answers354
viewsQ: Angularjs templateUrl error does not find html file
PROBLEM I have a problem with the minification of my project when it calls the templateUrl on the route, I am using Grunt to generate my build. In my development environment it works correctly, only…
-
5
votes2
answers1701
viewsQ: Selenium problem with get!
What I desire Open a browser using Selenium, accessing a website (e.g..: http://www.google.com) driver.get("http://www.google.com"); and write a search in his text field element.sendKeys("Cheese!");…
-
2
votes5
answers6659
viewsA: Browserify + Nodejs [Node: File or directory not found]
Solution The error was found in the cms.js file of the Browserify module. sudo gedit /usr/local/lib/node_modules/browserify/bin/cmd.js In line 1 we find the following #!/usr/bin/env node Noting that…
-
11
votes2
answers2686
viewsQ: Running JAR by Browser
I’m having a hard time figuring out how to do it: What I Wish I want to create a Google Chrome/Firefox extension that when I press a button in the html of my extension, it will run a file. JAR…
-
0
votes5
answers6659
viewsA: Browserify + Nodejs [Node: File or directory not found]
Clarification I have not yet found a solution to this problem, I have tested it in many ways and in other OS. I must be doing something wrong in the process. Alternative Solution Went to use this…
-
6
votes5
answers6659
viewsQ: Browserify + Nodejs [Node: File or directory not found]
Situation I’m developing an extension for Google Chrome, and I need to use some Nodejs modules so I found the Browserify tool so I can add modules to use it in the browser Ambience I own Nodejs, NPM…
-
2
votes2
answers96
viewsA: Selector Casperjs [Caspererror]
I managed to solve my problem by indicating that I would insert an Xpath. Thus: var x = require('casper').selectXPath; casper.then(function(){ this.click(x(".//*[@id='menu-top']/li[5]/a")); });…
javascriptanswered ralfting 812 -
1
votes2
answers96
viewsQ: Selector Casperjs [Caspererror]
I want to do a test using Casperjs. I want him to click the login button. I have the following menu: <ul id="menu-top"> <li class="0 first"><a title=""…
javascriptasked ralfting 812 -
2
votes4
answers6797
viewsQ: Creating a JS bot
I’m developing a bot in javascript where it will insert a value in a field of a website and click 'submit'. window.onload = function() { window.open('http://www.google.com', '_self');…
javascriptasked ralfting 812 -
0
votes3
answers1414
viewsA: Is it possible to obtain timestamps with millisecond fractions accuracy?
Oops, thanks for your help, guys, with the idea that you can formulate the following: I caught the with var tempoInicio = getTime(); the start of the execution and with var tempoFim = getTime(); the…
javascriptanswered ralfting 812 -
2
votes1
answer240
viewsQ: Acquiring Javascript coordinates with the help of the Camanjs library
I am here creating an image editor using Javascript with the help of the library Camanjs and the HTML5 canvas element, but I’m not getting him to draw a box on top of my image (it disappears as soon…
-
-1
votes1
answer769
viewsQ: Grab link from the share
I want to share a post on Facebook rescuing the share link, so you can share this link on Twitter. I’m taking a look at the Facebook documentation, I believe you allow it in some simple way.
-
9
votes3
answers1414
viewsQ: Is it possible to obtain timestamps with millisecond fractions accuracy?
I have to calculate the running time of a javascript function, I have my code ready and working, my only problem is the limit of the getMilliseconds() that only goes up to 999 and the execution of…
javascriptasked ralfting 812