Interesting questions
-
1
votes2
answers56
viewsRails - query for non-connecting records
I have a Rails application and am creating a notification system, the problem is that I do not know how to query by notifications not viewed by a user in a practical way. The scheme of the…
-
0
votes1
answer468
viewsProblem with Fetch Lazy [ Spring Boot ] [ Thymeleaf ]
Well I’m having a problem with my class at the Spring session Error: org.hibernate.LazyInitializationException: failed to lazily initialize I have a class that represents object in session and is…
spring-bootasked 10 years, 2 months ago Lucy Estela 61 -
4
votes1
answer13616
viewsHow to create a cron in Laravel?
I have to create a Cron on Laravel to send emails every 24 hours. I’m supposed to upload data from the bank. So after a query in the database cron should send the email with the query data.
-
0
votes1
answer241
viewsError in Java connection to Mysql Database
I am connecting a Java application to an SQL Database, I have the following connection code: Connectionfactory.java.: package connection; import java.sql.Connection; import java.sql.DriverManager;…
-
-1
votes1
answer1924
viewsError: Listen EADDRINUSE: address already in use ::3001
I can’t find the error in the code, const express = require('express'); const mongoose = require('mongoose'); // Iniciando o App const app = express(); // Iniciando o DB mongoose.connect(…
-
0
votes2
answers101
viewsHow to create events in C#?
I have two classes one that has a list and I would like to have an event that every time that list was changed that event was called. public class Exemplo { List<string> lista = new…
-
-4
votes1
answer39
viewsI’m having doubts on how to use the "{" keys
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MOVIMENTO : MonoBehaviour { private float spd = 0.9f; private GameObject camera; private GameObject…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
-5
votes1
answer22
viewsTypeerror: not all Arguments converted During string formatting (what should I do?)
I’m solving a simple question of calculating tax on a salary: sal=float(input('digite o valor:')) if sal>3000: percent=0.25 elif sal>2000: percent=0.20 elif sal>1000: percent=0.10 else :…
-
3
votes1
answer115
viewsWhy does bitmap indexing work well for low cardinality domains?
I have just read chapter 29 of the book Overview of Data Warehousing and OLAP On page 725 the author talks about indexing techniques to support high performance access, this technique is called…
-
1
votes2
answers131
viewsHow to use special mysql order_by in codeigniter
in mysql I can do so. SELECT * FROM `Cidade` ORDER BY `id`=1347 DESC But I can’t do it in codeigniter, I’m trying it like this: $this->db->order_by("id = 1347", "DESC") ->get("Cidades"); In…
-
2
votes1
answer423
viewsError: not all Arguments converted During string formatting
I’m taking the Python 3 course on video and I’m in exercise n° 82. Even though my code and the teacher’s code are almost identical, mine is making the mistake not all Arguments converted During…
-
0
votes1
answer353
viewsPage alignment css materialize
I’m using materialize as a framework for an application. I’m having a little problem with its interface. I cannot make the table that displays the data from the database (a gdocs spreadsheet),…
-
1
votes1
answer19
viewsSave value to an input after inserting them automatically using Javascript
I have a select box that defines how many items will be displayed for the user to fill. http://jsfiddle.net/thallysondias/dsqBf/55/ However, when it stops filling in one of the inputs, it displays…
javascriptasked 9 years, 9 months ago Thallyson Dias 409 -
1
votes2
answers1507
viewsHow to display multiple error messages simultaneously in form?
I’m trying to get my log page to show all forgotten fields messages together as in this example: But it only shows in parts: 1 - "Username already exists" and "Email already exists" or 2 - "Please…
-
1
votes1
answer163
viewsIsset does not work
Good afternoon. I’m making a shared racing web app, like "Uber". I want you to present a list of registered drivers in the bank on the green carousel. However, as the image shows, my isset does not…
-
3
votes3
answers2188
viewsUse symbol in input text, and disappear when typed
I have a text box, a input type text. And I wanted to insert an image in the corner, for example, a magnifying glass. And when the user starts writing, that magnifying glass disappears. It is…
-
0
votes1
answer943
viewsDynamic field validation with Jquery.validate()
I’m having difficulty validating the fields of a dynamic table using the plugin jquery.validate() where the input are sequential. JS $("#addLinha").on("click", function () { // ADD QTD DE LINHAS…
-
6
votes1
answer5108
viewsHow to sort an array of numbers from largest to smallest?
There is the function sort, but it sort from minor to major, and I’d like to sort from major to minor. There’s some function in javascript for that? Code with sort: var numeros =…
-
1
votes1
answer146
viewsHow to pass more than one argument using Process + Openssl
Using the following code I pass a certain argument, then I need to pass a password that Openssl requests, but how do I do that? I tried the StandardInput but I received an exception: Additional…