All Questions

3
answers

Delete all tables except some mysql

I have a bbdd mysql with 65 tables and I need to create a script that will clean it for a future upload to production. As I have to delete most tables, except internal data (types of users, sections, permissions, predetermined categori...
asked on 25.01.2016 / 09:24
1
answer

Show array by JOptionPane and pick up result

I have a problem. I want to show an array in a JOptionPane, I do it like that. String[] continentes = { "ANorte", "ASur", "Africa", "Europa", "Asia", "Oceania" }; JOptionPane.showMessageDialog(null, Arrays.toString(continentes)); So, I sho...
asked on 16.12.2018 / 21:14
1
answer

File txt does not store the path of another txt

What I try to do is create 2 files in the system, one where the user can choose where he wants to save his database file where all the records of his products will be stored. The other file txt would be created without the user's permissi...
asked on 27.11.2018 / 17:39
1
answer

Constructor with member variable?

I have a question about the following main #include "Pokemon.h" int main() { Pokemon piplup("Piplup", Pokemon::Agua); piplup.mostrar(); cout << endl << endl; } I must say that the main is a reference that the teacher passed us...
asked on 11.11.2018 / 00:03
3
answers

How to convert string to char *?

I wanted to ask about how to convert a string to a char *, the case is the one shown below, where I have a defined string and I want to name the variable x using .setName (), but it receives a char *, so that I can not simply place variable name...
asked on 13.11.2018 / 17:32
2
answers

Schedule Crontab

I have a problem when I want to schedule a crontab task that allows executing /programas/backups.sh all penultimate days of the all months of the year (in a single line). At 23.00 hours Sending an email at the end of the execution to the root@su...
asked on 18.11.2018 / 21:40
1
answer

What does for (;;) {} mean in java

for example what does the for (;;) {} do here? which means the ;; inside the for? double parseExpression() { double x = parseTerm(); for (;;) { if (eat('+')) x += parseTerm(); // addition else i...
asked on 20.11.2018 / 04:47
2
answers

Convert URL to Object (JavaScript)

I am working on a personal project (using node.js) where I need to get the route of the GET request, for example "/path/to/content" , transform it into an Object and make it look like this: { "path": { "to": { "content":[...
asked on 27.12.2018 / 16:49
1
answer

Clip Class when playing a .wav does not play sound

When playing a .wav file, sounds are not played, but in netbeans if: This is my code: public Clip clip; public void ponerMusica(String musica) { try { clip = AudioSystem.getClip(); clip.open(AudioSystem.getAudioInputStr...
asked on 26.11.2018 / 18:39
2
answers

Store row in variable

You see, let's imagine that we have a table called Type and imagine that I want to get only the element with value of% co_of% of 3. In that case, I would use this: $tipo=Tipo::where('id',3)->get(); This would return a vector of a single...
asked on 17.11.2018 / 12:53