All Questions

2
answers

How to remove all occurrences of "/" from a string using Javascript

Hello, I'm having trouble applying a simple regex with Javascript. So: var str = "/Date(1421287200000-0200)/"; console.log(str.replace('/\//g','')); //não funciona, mesmo estando certo console.log(str.replace('/[/]/g',''));...
asked on 24.11.2016 / 18:07
1
answer

Treat a word with period

I have a method that takes text as a parameter and makes a .split in the text separating the words with " " . For each word in the text I do a check checking if the word is equal to the item in my list of Enum , if the word is...
asked on 25.11.2016 / 00:40
1
answer

Driver mysql is not found when the application is rotated from a jar

I developed an employee registration system. In this system the persistence of the data is done in a mysql database. When I run the program through the package the system works normally, but when I run an executable jar it does not find the mysq...
asked on 25.11.2016 / 08:59
1
answer

Enum is expanded by the compiler into a class declaration?

Does Enum expand by compiler into a class declaration in Java?     
asked on 08.12.2016 / 14:23
1
answer

Static functions in C

I noticed that some libraries use functions and static variables, such as static int sum(lua_State *state) . This function belongs to a library that will be compiled into the Lua language. But also libraries with dlsym calls...
asked on 14.12.2016 / 05:37
3
answers

How to change the color of the line of a DBGrid in Delphi?

I am doing a cost control system, and when I register a new revenue or new expense I want to change the color of the line of this record in dbGrid as chosen, I used a TDBRadioGroup to choose between 'Expense ' and ' Revenue '. Wha...
asked on 25.11.2016 / 02:48
1
answer

Reordering of dictionary, exchange values with keys

I have the following dictionary: tests_dict = {'test 1': ['Manuel', 'Mariana', 'Filipa'], 'test 2': ['Manuel', 'Filipa', 'Mariana'], 'test 3': ['Mariana', 'Manuel', 'Filipa']} What I need is that the keys of the new dictionary are the names...
asked on 11.12.2016 / 10:19
1
answer

Remove "public" directory from laravel 5 through IIS web.config

I have an IIS server where a site built in Laravel 5.3 will be hosted and I need to remove the public folder from the url. NOTE: I am aware that if I enter the IIS manager and change the destination folder of the site to "wwwroot / mysite /...
asked on 18.11.2016 / 18:12
2
answers

Foreign Key does not respect referential integrity

I'm trying to join tables and add a chave estrangeira , so that for example, a purchase table has referência of id of the buyers table. I did as follows: alter table compras add foreign key (compradores_id) references co...
asked on 15.12.2016 / 13:24
2
answers

How to remove "disabled" attribute from select parent option?

I need only select the option "Leader", it does not assign "disabled", only in the other selects daughters. The logic is that only one user can be a leader, but when selecting a leader, this option is disabled, and at the time of sending the...
asked on 23.11.2016 / 10:44