All Questions

2
answers

Source Codes in Projects

If I have 10 projects in NetBeans, these 10 projects will use a Logging system, this system will contain a Log.h and a Log.c. Since all projects will have to use these two log files to generate logs, I will need to copy the two files for each pr...
asked on 17.06.2015 / 15:44
2
answers

How to check if a constant exists in the class or in a namespace?

In PHP, to check if a constant exists we use the defined function. As below, for the two cases of constant declaration: const MY_TEST_1 = 'my test 1'; define('MY_TEST_2', 'my test 2'); var_dump(defined('MY_TEST_1'), defined('MY_TEST_2...
asked on 19.06.2015 / 14:06
1
answer

How to convert String that contains quotes in same string, using replaceAll?

I have a String as in the example below String a = "Meu pai é um Grande "baio" de fada"; I want to make it turn a String like this String a = "Meu pai é um Grande \"baio\" de fada"; How do I do this using replaceAll?     
asked on 24.06.2015 / 21:07
2
answers

Picking date and time from a string

I want to "filter" string to get only the date that is in it, string is in that format:    SSC Napoli v Dnipro - Thursday 05/07/2015 04:05 PM What I want to get is just 07/05/2015 16:05 , I used explode : $data...
asked on 09.05.2015 / 01:23
2
answers

How not to automatically sort IN (MySQL)

I run this SQL command: SELECT * FROM produtos WHERE id IN (144,140,134,133,128,129,141,143,149,150,147,146,126,142,125,99,100,92,91,90,108,109,123,124,122,121,110,89) ORDER BY none But the query comes with the IDs sorted, how to prevent...
asked on 01.06.2015 / 22:33
3
answers

What is the difference between display: inline-block and float: left

When testing with alignment of div , both have the same purpose But what would be the difference?     
asked on 28.05.2015 / 15:41
2
answers

Regex in dynamic string of X characters, in dynamic content

Next, I have a page that generates content scrambled with dynamic and non-dynamic strings, I need to get a dynamic value between the | tabs, it contains random data / strings that change when loading the page. The variable I want to get h...
asked on 13.06.2015 / 07:44
2
answers

C # - How to remove the Maximize, Minimize, but keep a Close button only?

I created a graphic component and wrote a command line that removed the control bar from the graphic component, but all the buttons disappeared. Is there any way to just leave the Close button? Or will I have that Form component type for an...
asked on 23.06.2015 / 21:57
1
answer

How to install the TypeScript Plugin in Sublime Text 3?

I'm trying to install the plugin in Sublime Text 3, and for this I did the steps: I installed the GIT I ran the available commands here in the GIT terminal. IpressedControl+Shift+PtoseeifitwasTypeScript,butnothingappears....
asked on 19.01.2018 / 13:04
3
answers

How can I get each selected checkbox and put it inside an input?

I have some checkboxes and I want you to click on a button, all the names of those selected, go to an input separated by ",". I tried to do this, but it did not work: <input type="checkbox" name="cbx-1"> <input type="checkbox" name...
asked on 16.01.2018 / 18:16