Interesting questions
-
2
votes1
answer72
viewsBackup and deploy with shell script
I have a productive environment for which I upload html, css etc. However, every time I upload a file I must first make a backup of existing occurrences. I’m trying to build a script that does the…
shell-scriptasked 9 years, 11 months ago Fábio Jânio 3,407 -
2
votes2
answers780
viewsWhat are these specific purpose registers?
I’m following a book about Computer Architecture and I’m on the register side, but it doesn’t contain any practical examples of how Registers of Specific Purpose. Among them are: PC (Program…
architecture-computersasked 7 years, 1 month ago user152996 -
1
votes1
answer73
viewsRead Dates file and count days elapsed in the year
I am trying to make a program that opens a file and calculates the days elapsed from the date. The dates are in the file as follows: 30-10-2018. But I’m having trouble with the output that is…
-
1
votes0
answers51
viewsAre tuples really immutable in Python?
t = (1,2,[4,6]) t is a tuple. If we do: t[2][0]="e" we shall have: (1, 2, ['e', 6]) Now the tuple t is (1, 2, ['e', 6]) We didn’t change the tuple? Be it s= "stackoverflow" It is not possible to do,…
-
0
votes1
answer60
viewsDoesn’t Doctrine ORM 2 have support for working with VIEWS?
I created a View in the database and now I need to use it in the system, but I can not use it, because the Doctrine à recognizes as a table, the following error appears: Type:…
-
1
votes1
answer53
viewsHow to use Bower to install from a bitbucket repository
Here at the company where I work, we have some libraries that we develop specifically for the company. That’s why I’m using bitbucket, with a private repository. How can I do to install via bower, a…
-
1
votes1
answer812
viewsCheck if there is a file inside a specific directory
I have several files inside a directory called imagex, about 5,000 images. A simple example of a file: file_path = "C:/imagex/jonsnow.png" How to step check, efficiently, if there is a specific…
-
4
votes1
answer1107
viewsUnit test of implementations of a Generic class
Suppose we have the following interface: public interface ICRUDService<T> { T Create(T entity); } Abstract implementation: public abstract class CrudService<T> : ICRUDService<T> {…
-
0
votes0
answers105
viewsquery update does not update the database because of 1 field
Hi, I have a very strange problem. When I run my UPDATE in the query by filling in all fields except the PRODUCT VALUE, it simply doesn’t update anything. If I fill in the PRODUCT VALUE field it…
-
2
votes2
answers371
viewsSwift Multi Selection Problem Uitableview
I have a tableView that when it is in "Edit" mode I can select each item and take an action, for example remove the selected items. When I select the items, the first ones are left without "Line…
-
-2
votes2
answers355
viewsLoad JS before rendering the page
Good afternoon, I have a code for php where it has a list of publications and it uses the Ajax, but unfortunately it is being the last to be downloaded by the page. After all the files you have…
-
-1
votes2
answers29
viewsHow to disable the main form when another one was opened
Disable the main form when another one was opened without closing it so you can use the second form that was opened but not click on the main form
-
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…
-
0
votes1
answer330
viewsUnexpected token in import
Is giving the following error of syntax in the plugin typed.js: Uncaught SyntaxError: Unexpected token { Along those lines: import { initializer } from './initializer.js'; import { htmlParser } from…
javascriptasked 8 years, 6 months ago Lucas de Carvalho 6,427 -
3
votes1
answer891
viewsHow do I update C++ to C11 on Ubuntu 14.10?
How can I upgrade the version of C++ to C11? Details: Ubuntu 14.10 32b GCC 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
-
-2
votes2
answers104
viewsGlr, how do I leave the element that was created fixed on the page even if the page is loaded? When loading the page it disappears
var listagem = document.getElementById("listagem"); function createNewElement() { // Cria a div var div = document.createElement("div"); div.setAttribute("id",…
-
0
votes1
answer63
viewsMongodb - Error running find geospatial $near
I have a collection with the following documents. { "_id" : ObjectId("5c6bb6b492647b15f80038a1"), "loc" : { "type" : "Point", "coordenadas" : [ -41.104658, -20.963387 ] } } I’m running the find:…
mongodbasked 7 years, 6 months ago Elton Barcelos 1 -
2
votes1
answer42
viewsWhat are covering, Composite and compound compared to Dexes?
I’m reading on Left in Mysql and I came up with three terms that I can’t quite understand that are: covering, Composite and compound. These terms are strongly linked to the use of Dexes, however, I…
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
0
votes2
answers364
viewssql inserts the wrong datetime into the table
i to using microsoft sql manager,and was trying to insert a date in my table,the problem is that it is entering the wrong date,i do the following command for the manager table INSERT INTO tblCliente…