All Questions

2
answers

Capicua java character string

I am trying to make a program that says if the introduced phrase or word is capicua, that is to say holaloh. What I do is two for, which starts to run from the beginning and the other from the end, and then save them with the charAt and the posi...
asked on 22.01.2017 / 16:38
4
answers

Print a java matrix

I'm trying to print a matrix diagonally, that is, the one in 1 2 3 4 5 6 7 8 9 print 1 2 4 3 5 7 6 8 9 I have this, in which I only print up to 7 because if it does not leave the matrix: public class matriz { public static void main(St...
asked on 24.01.2017 / 17:51
1
answer

When should self be used in a Model in Rails?

Within a Model , when I have a variable write operation in a method, why do I need to add self to work correctly? For example, if I have the following code: class Zombie < ActiveRecord::Base beffore_save :make_rotting d...
asked on 25.01.2017 / 19:54
1
answer

Open a modal bootstrap window with JavaScript [closed]

I have a function in JavaScript that validates data. The problem is that it uses alerts to warn when data is badly loaded. What I want to do is show Bootstrap modal windows to see the error. This is what I did, which does not work: v...
asked on 11.01.2017 / 16:05
1
answer

how to generate this type of messages?

I want to learn how to make these types of messages, is it a modal? some example? Is it only css? what libraries are used to do it? jquery?     
asked on 23.01.2017 / 05:42
2
answers

RegExp that detects if it matches a word, considering duplicate spaces and / or letters

I worked with NodeJS , I had a system that verified whether a string contained a certain blocked word, however, it was easy to dodge the system. (It replaced all the unicode characters to "" , so it's very inefficient). I would like to...
asked on 03.03.2017 / 19:27
4
answers

Query databases in ruby on rails

I'm trying to learn rails, and the issue of databases has made it a bit difficult to understand. Create a database by console and subsequent migration, this is supposed to create 3 databases (dev, test and production). But when viewing the bd se...
asked on 03.02.2017 / 15:42
2
answers

Get the value of a promise

I'm having a lot of trouble getting the value of a promise . Basically I want the value that returns a promise to be assigned to a variable. For example    This example uses the following elements: vue. js , vuex , almacen is a syno...
asked on 27.03.2017 / 04:06
3
answers

MySQL Workbench change name to Schema

I'm trying to export / migrate a DB from one server to another, I have the 2 connections in Workbench and the problem is that the bases have different names, I want to take the base to export let's call it test and I want to export it t...
asked on 24.03.2017 / 14:28
1
answer

Insert route with spaces in visual basic

I have this script in visual basic command = "powershell.exe -nologo -command D:\Google Drive\Share\Scripts\CopySaves.ps1 " set shell = CreateObject("WScript.Shell") shell.Run command,0 The problem is that I do not know how to make me tak...
asked on 10.02.2017 / 20:21