Interesting questions
-
2
votes1
answer87
viewsRegex with lookbehind does not work in Firefox
I created an Angular project and am using the following regular expression: export const INTERFACE_REGEX = new RegExp(/(?<=.*\/)(.*?)(?=@|-.+)/gi); It happens that when using Goggle Chrome the…
-
3
votes1
answer1249
viewsWhy should E.printStackTrace be removed?
Use Try catch as follows: try{ //meu código } catch(Exception E) { E.printStackTrace(); } using the netbeans IDE, it shows a hint, called "Print Stack Tracking", when I click it, it says…
-
0
votes1
answer337
viewsHow to use a Details-control inside another Details-control on a Datatable?
I’m making a dataTables to show the moving details of each batch that leaves the stock, my intention with the second dataTables and give a "explode" on each item to display the respective serial…
laravel-5.8asked 6 years, 2 months ago Augusto Junio 31 -
1
votes0
answers243
viewsredirect a sub-domain to the main domain
Hello need to make a redirect of an active blog installed in the sub-domain for the main domain I mounted a redirect from the sub to the main one, the problem are the posts of this blog that are…
-
0
votes1
answer87
viewsRegex
Good morning. I have an XML that contains a node as follows: <endnum>76 AP 10 404</endnum> <endnum>404</endnum> It turns out that this value should only be integer, as in the…
-
0
votes0
answers13
viewsProblem accessing multi-select with Selenium webdriver and Java
Hello everyone, I’m trying to access as shown in the image, a multi-select, which is in the yellow list, in ul and li, an option of Languages: Arabic, Bulgarian etc., and when selected, it goes to…
-
-2
votes2
answers59
viewsMerge variables and include 0 to an 11 digit php field
I’m generating a bar code,: Number of the shop: $v_ficha_loja = $row['ficha_loja']; = (1)or (2)etc.. Number of the environment: $v_ficha_ambiente = $row['ficha_ambiente']; (1)or (2)etc.. And a…
-
5
votes2
answers466
viewsFind out which table the data is from, in a Union
Hello, I have a php system, using codeigniter, and in it runs the following command: $data['dados_tabelas'] = Tabela1::find_by_sql('SELECT * FROM tabela1) UNION (Select * from tabela2)'); That’s…
sqlasked 10 years, 8 months ago Jonathan Machado 283 -
0
votes1
answer868
viewsnew stdClass continues showing Warning "Creating default Object from Empty value"
I have the following php code $obj = new \stdClass; foreach($_GET as $key => $value) { $obj->get->$key = $value; } foreach($_POST as $key => $value) { $obj->post->$key = $value; }…
phpasked 7 years, 11 months ago Leonardo Theodoro 381 -
0
votes1
answer44
viewsIs there a way to set a max-height for the dropdown of the select tag?
I’m looking for a way to define a max-height for the tag dropdown <select>, if this is possible, once a max-height, me user overflow: auto; to do as the second image by setting a scroll bar on…
-
5
votes2
answers3496
viewsHow to run a file with PHP?
I wanted to know some code in PHP that makes me open a file .exe, or a line that makes a file run .exe from the same server.
-
1
votes1
answer205
viewsHow to recover data from Angular Route component?
I saw in the documentation Angular that it is possible to recover data stored in the property date (receiving an object) from a route. I have, in this case an application with the following routes:…
-
0
votes1
answer137
viewsLaravel with fully separate code
I’ve been programming with PHP for some time now, and I’ve always done my projects at hand (without using framework like Laravel, zend, etc.), making a structure very similar to mvc. However I want…
-
6
votes1
answer407
viewsPhoto taken by my app does not appear in Gallery
When generating the photo through my app it correctly creates the folder and saves the photos taken there, but when I go in the Mobile Gallery is as if the photos did not exist, the default Android…
-
-3
votes1
answer295
viewsdatabase query returning empty array
Hello, I have an appointment function at the bank. If the query returns 1 or more rows, the function returns an object (or a class), but if the query does not return any rows, the return is: Array (…
-
-1
votes1
answer275
viewsHow to create a city selector before entering the site
Hello I’m trying to create a city selector for the user to select the city and according to the city, go to the specific page, but I don’t even know how to search about it I did everything in…
-
0
votes0
answers24
viewsChanging the container of a custom form
I made a custom form, with the style of Windows 10, but there is a problem, it is considering the caption bar as part of the form client panel. This is the form. The problem is that, the position 0,…
-
-1
votes1
answer47
viewsDynamic allocation in wrong scope
I dynamically allotted a vector of structures with qtdeFuncionarios positions within a if, but now I need to use it within another conditional structure and the compiler accuses scope problem. How…
-
1
votes1
answer1026
viewsConvert Java object to JSON with Gson (generating with backslash)
I am trying to generate a JSON based on a Java object. JSON is being generated, but some bars have been included improperly: import java.io.Serializable; import…
-
0
votes1
answer26
viewsProcessing to save + signal in the BD through a registration form
I have a tire brand registration form, in one of the input fields where I inform the model of the tires, I need to pass the + example sign (ecoplus+). I take the values of the fields through a…