Interesting questions
-
9
votes2
answers1183
viewsAdd multiple objects to a list
I’m developing an application web, where I have a list of an object called frames, well, every time I click on a button I add a new object to that list, only the problem is this: When I try to add a…
-
-1
votes1
answer31
viewsImage exchange using js
I’m trying to change the image according to the schedules but it’s not working someone can help me? the images are respective to their schedules, follow the code right down <body…
-
9
votes3
answers4855
viewsUsefulness of #pragma
Several C/C++ codes have the word pragma. Depending on the way it is implemented it has a different function. #pragma Once #pragma pack() #pragma comment(xx, "") For what purpose the pragma was…
-
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
votes0
answers12
viewsHow to redirect to a specific screen by clicking on a notification with the app completely closed using firebase messaging > V9.0
I am using firebase messaging version 9.0 and wish to redirect the user to a specific screen when receiving and click a notification when the app is closed. I can currently redirect with the app…
-
0
votes2
answers49
viewsConvert days to years using R lubridate
Assuming the following dataframe: library(dplyr) library(lubridate) df<-data.frame(inicio= ymd(19800101), fim=ymd(20200101)) %>% mutate(dif=fim-inicio) inicio fim dif 1 1980-01-01 2020-01-01…
-
1
votes2
answers157
viewsPaint input by clicking the checkbox
I need you to click on checkbox paint the background of tr and input. In the code below it paints only the background of tr and clicking anywhere from tr. <html> <head> <script…
-
-1
votes1
answer20
viewsHow to make a URL that updates every second without updating my page
Well I have a code in php, with an if and I would like if I could get the answer from Curl, only q this answer it updates every second so it is almost impossible if I get the answer like this, there…
-
0
votes1
answer873
viewsHow to organize data in 3 columns without breaking layout using CSS Flexbox?
I have a list of items (ul), and each item occupies 33% of the screen, thus forming a horizontal list of 3 columns. When there is no more space in the horizontal, it forms a new line, something very…
-
1
votes1
answer213
viewsWhat is the correct way to use flush(); and Sleep(); in a foreach?
I made a page in php to generate a sales report in the format . csv through Woocommerce on the Wordpress system. <?php //incluir as funções principais do WordPress…
-
0
votes1
answer32
viewsRun script only when the screen is off
Talk guys, I’m trying to automate mobile routines with an app I made and to make it more effective I’m trying to implement a script for it to run whenever the mobile screen is off. For example: if…
-
-2
votes1
answer334
viewsHow to connect a socket over the internet
I recently started studying sockets and I know that to create a server I use a port and to connect a client I use the port and the server ip on the local network, but I would like to connect a…
-
1
votes2
answers451
viewsTraversing json using Ajax jquery
Guys I have a doubt, how do I go through the Json and recover specific objects through ajax? Code: function loadJson(){ $.ajax({ url: "data.json", context: document.body }).done(function() { $( this…
jqueryasked 10 years, 6 months ago Bruno Bafilli 327 -
1
votes1
answer48
viewsOsticket maintenance in PHP
Good afternoon guys, I find a big problem in a project that I was assigned, I need to add a feature in a call tool which is already in production. Following the following reasoning I have an HTML…
phpasked 8 years, 1 month ago Junior Cunha 31 -
-1
votes1
answer28
viewsI would like a help, I did all the registration and login procedure and it’s working
I would like a help, I have done all the registration and login procedure and it is working, but I login with email and return me the email(user) on the screen when I login is "hello, [email protected]"…
-
3
votes1
answer81
viewsHow to use more than two types in function parameters?
Suppose the following function in PHP: function parse (string $text, array $callback) { # ... } In theory the parameter $callback must be a array, but it can also be accepted as string. How do I get…
-
1
votes1
answer56
viewsHow to know if an object can be focused
I’m making a script to throw errors with javascript and in this function it focuses on the field that is with errors. In some cases, when the field is not visible, for example, an error is shown on…
javascriptasked 8 years, 11 months ago Wesley Nascimento 395 -
2
votes1
answer1181
viewsJSF - java.lang.Illegalstateexception: This web container has not yet been Started
I’m developing a website in JSF but I’m new in Web and I don’t really understand how some things work. The site is a crud simple music and make calls to other applications in jar that are in the…
-
3
votes3
answers143
viewsHow to enter records when starting the JSF+JPA system?
How do I insert pre-registered records into the system with jsf and jpa. I want when the system starts the admin user to be created.
-
0
votes1
answer958
viewsHow to run bat file by Delphi
Folks I am trying to run a bat file that is in the same exe folder, however I tried it in several ways and it does not run. WinExec('startNodeJS.bat',SW_SHOW); It does not run the bat, this bat is…