Interesting questions
-
2
votes1
answer1135
viewsSubtract 1 month in PHP date
How to reduce 1 month in a PHP date? I am trying to use this way but am getting an incorrect date $dtini = '16/09/2019'; echo date('d/m/Y', strtotime('-1 month', strtotime($dtini))); Result =…
phpasked 7 years, 1 month ago Felipe Pacheco 55 -
-2
votes1
answer72
viewsAngular - How to reuse information from one component in another to realize condition?
I have a menu in my html component as follows: (Menucomponent.html) <p-tabMenu class="tabMenuDrograria" #menuItems [model]="items" [activeItem]="items[0]"…
-
1
votes1
answer1968
viewsHow to host a Windows server?
The computer where I want to host the site developed in Alavel is in another network. I put the whole site in the server and I turned the command php artisan serve --host MEUIP --port MEUPORTO When…
-
1
votes2
answers224
viewsCheck the end of the song and run macro
Hello, I am making a virtual sound table for an event and would like to give the effect of clicking the button. I am making mega simple, but I need the button to be pressed while the music plays and…
-
0
votes1
answer227
viewsGet information from Twitter without using the Curl API
I have the following code: $url = 'https://twitter.com/' . $username; $user = curl_init(); curl_setopt_array($user, [ CURLOPT_URL => $url, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_CAINFO =>…
-
5
votes1
answer298
viewsCompare objects in R
I have two dataframes: atualizada PIMPF_Br_A_1_sa PIMPF_Br_A_2_sa 1995-01-01 74.35501 35.59109 1995-02-01 74.06131 35.43400 1995-03-01 74.06131 35.93259 and: atualizada PIMPF_Br_A_1_sa…
-
0
votes1
answer80
viewsMysql query with mixed ORDER BY?
My doubt is a little boring to explain but I’ll try to make it as simple as possible. I have the following tables in a Mysql database: produto, preco, preco_produto (many mapping to many), venda and…
-
1
votes1
answer60
viewsMake mouseout one time
I wonder how I can make this script work one time, because I can’t do it: // intenção de sair function addEvent(obj, evt, fn) { if (obj.addEventListener) { obj.addEventListener(evt, fn, false); }…
javascriptasked 7 years, 11 months ago Alberto B. 13 -
1
votes2
answers40
viewsRelated Posts Wordpress
Fala galera, I am developing a wordpress theme, and on a page I use a function to pick up related posts, it picks up all posts to the current. But he wouldn’t need to take the current one, what…
-
1
votes0
answers54
viewsIdentify combobox items and play in for loop using Selenium JS and Python
I need to do a for loop to open an x number of tabs and each tab uses a different "Dashboard". The first part I’ve done how could I do the second? Remembering preferably with Xpath using JS and…
-
3
votes2
answers116
viewsHow to create a template with just a few table fields?
I have some tables with several fields. For example, the table (X) has some 20 fields of which I will only use 2 or 3. In this situation I have to create the templates with all fields and ignore the…
-
3
votes1
answer40
viewsHow to reference columns in a R function?
My question is how to announce a column in the Arglist of a Function.Example: I want to do this library(data.table) a<-mtcars data.table::setDT(a) a[,.( disp2 = sum(disp), cyl2 = mean(cyl) ), by…
-
1
votes0
answers40
viewsRegistration error with php photo
I’m trying to make a register of works, and uploaded image done path. if (isset($_POST['enviar'])){ //cria as variaveis, uma para cada input $nome = isset($_POST['nome']) ? $_POST['nome']: null;…
-
1
votes1
answer1698
viewsAssigning values to dynamic variables
I’m trying to write a code that downloads the historical stock price series from yahoo Finance, then I need to separate the data. I want each variable to be named after the action. For example: I am…
-
2
votes1
answer48
viewsError in Method Get on a Collection
I need to use XML in a university job and had problems with a method Get that I had to implement in a Collection. After a while I ended up taking a look at some sites to do this and found the…
-
0
votes2
answers125
viewsAdd product value to purchase
Good guys I’m with the following difficulty, I have a very simple panel for sale : as you can see I have a combobox with some products in it , my problem and the following I would need as soon as I…
-
66
votes5
answers24456
viewsAJAX request with pure Javascript (no Apis)
Usually, when we need to resort to requisitions AJAX using Javascript, we have handy Apis that help us with this (e.g.: jQuery). However, what would be the safest and cross-browser to make these…
-
2
votes1
answer65
viewsJava Perspective Message
The message is being presented every time I run Eclipse and create a new Project, someone can explain to me the reason for the message?…
-
1
votes2
answers2014
viewsHow do I read two columns of a . dat file in Python?
I have a file . dat with the following numbers: 34875 70.9300 -8.6700 54872 80.0500 16.2500 65456 77.0000 -5.5000 78787 78.2500 22.8300 20890 -8.9200 11.9300 87859 78.2500 15.4700 89556 80.6700…
-
0
votes1
answer1759
viewsHow to use sqlite3 with Docker Compose
Since sqlite3 banks are only files; And containers, by their own logic of scalability are created and excluded according to need; What is the best way to work with both partners? You see, I’m trying…