Interesting questions
-
22
votes3
answers10939
viewsHow does the C#lock work?
I was just looking at an article by MSDN, but it was not clear why to use this. class Account { decimal balance; private Object thisLock = new Object(); public void Withdraw(decimal amount) { lock…
-
1
votes0
answers113
viewsKivy Duplicating Widgets
Hello, I am trying to develop a goal program in Python and Kivy, but I have a problem, when I click on the "Add Category" button the "add_category" function is called and adds a label with the text…
-
1
votes1
answer183
viewsError 500 in Asp.Net Awesome Library
I found browsing the internet this library ASP.net Awesome. I found it very functional and easy to use. According to the documentation to use a helper called Lookup, you need to have a controller…
-
3
votes2
answers8022
viewsConvert String to Date
I’m a beginner in java and I’m having doubts about converting String to Date. I already spent hours searching the internet to see if I could find a solution and I came across very few solutions but…
-
0
votes1
answer93
viewsI am unable to use get_rect with Convert/convert_alpha and subsurface
I was doing so: class Esqueleto (pygame.sprite.Sprite): def __init__ (self): self.imagem = pygame.image.load("imagem/esqueleto.png") self.rect = self.imagem.get_rect() self.imagem =…
-
12
votes2
answers274
viewsIs there a hash structure in R?
Is there any hash structure in R, similar to Python and javascript Dictionaries? This makes programming much easier.
rasked 11 years, 5 months ago Guilherme Duarte 918 -
3
votes1
answer223
viewsOverride Property() in Child Class
A few days ago I asked a similar question to this, however, the method employed in creating the property was via decorators (@property and @name.setter). Here I am creating the property via function…
-
1
votes1
answer41
viewsPlace X, Y values on an image when loading the page | Javascript
I have this javascript code that puts a marker with the x and y location when you click on the image, but I want to fill the markers with the values of my database when loading the page and not when…
-
2
votes1
answer151
viewsWhat is the origin of green in hacker culture?
Whenever the theme "hacking" is portrayed by the media put anti-social faces in a terminal Black in green letters. I wanted to know where this green of letters always comes from. It’s some symbolic?…
-
2
votes2
answers2620
viewsHow to resolve? No converter found capable of Converting from type [java.lang.String] to type [@org.springframework.data.jpa.Repository.Query]
So Guys I’m having a problem when performing a query through a @query, well basically what I need is a list of a status column in the bd that returns only students who are with the status "Finished"…
-
1
votes1
answer724
viewsHow to use Pattern to delimit a minimum number in an input text?
Hello, I need to define that the minimum number inserted in an input of type text is the number 5, I tried as follows: <input type="text" name="someName" id="someId" required="required"…
-
0
votes1
answer46
viewsHow to leave the internal elements of a Section with two columns
How to leave the internal elements of a section with two columns independent of browser size? This image below is what I have ready. But as you can see it has four columns. I need you to have only…
-
1
votes2
answers35
viewsApply properties to an element only if it belongs to a class
I want to apply css to these elements ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; } li a { display: block; color: #000; padding: 8px 16px;…
-
-1
votes1
answer62
viewsString to Json data conversion for Collections in mongodb
When I query a Collection in mongodb, it returns a field of the string type. [{"id":"1325","nome":produto1,"estoque":"10"}] But I need to make this field a Json. It is possible to do this in the…
-
2
votes1
answer575
viewsHow do I display table data (HTML) from a database through JSON Express?
Hello! I would like to know a way to present to the user in an HTML table, data stored in a MYSQL Database with connection through JSON Express. const express = require('express'); const app =…
-
0
votes1
answer917
viewsHow to create an insert Trigger
I need to assemble a trigger so that every time you insert a data into a table usuario, automatically insert the same data into another table bkuser. How can I do this? PHP Usage. And how do you…
-
22
votes2
answers8927
viewsIn Python, what is the difference between == and the is command?
I’m confused in the use of two commands, the is and the == that as far as I understood they perform the same thing that is to compare if two objects are equal. Is there any more performatic?…
-
0
votes1
answer524
viewsSimple C# MYSQL connection problem
Speak guys I’m with the following error when trying to make a simple Insert of an activity in my mysql database "System.Argumentexception: 'The boot chain format does not conform to the…
-
1
votes1
answer246
viewsCopy the font folder using Gulp?
How to create a task to copy the bootstrap font folder to the build folder? I created the following task but it’s not working. var config = { assets_path: './resources/assets', build_path:…
-
-1
votes1
answer44
viewsConvert PHP output (mysql query) into a Javascript array
The result of the query will come out like this (It depends on what was saved in the bank): $week = 1,2,3 I have the following function: function verificar(valor) { //Verificar se valor de m está…