All Questions

5
answers

Replace If / else with Case javascript

I would like to replace the if / else with Case because I believe it will be better for understanding the code since it will be a little long, but I can not access the Array that will have the conditions to activate the actions. Is the error in...
asked on 19.03.2014 / 15:07
3
answers

Check if html form numeric field has a maximum of 6 numbers with PHP

I need to test if field is filled and if it is composed of up to 6 numbers using the PHP language     
asked on 07.05.2018 / 19:10
2
answers

How do I display a YouTube video on a Panel in ExtJS?

I would like to display a YouTube video on a Panel in ExtJS. It would be possible? Can someone give me a hint?     
asked on 11.12.2013 / 18:09
3
answers

if and else with almost equal blocks

In Python, suppose I have a function: def func(x): if x%2 == 0: j = x/2 print(j) else: j = x print(j) Do not mind the logic of the code, it's just a simple example. The blocks of if and else are...
asked on 02.05.2018 / 05:12
5
answers

Concatenation in C

I'm doing an algorithm in C to turn off some machines. This is my algorithm: #include <stdio.h> #include <stdlib.h> #include <conio.h> main() { char vetor[2][15] = {"192.168.2.200", "192.168.2.201"}; for(int i = 0;...
asked on 19.01.2018 / 12:41
2
answers

How to create an autorun?

I made a program through Visual Studio and I'm trying to create an autorun to run it, however, the program executable is in \programa\programa\bin\Debug\programa.exe and autorun should be in the root folder of the CD or image. This is...
asked on 04.03.2014 / 17:56
2
answers

Form php receives value other than typed

I have a form in PHP. When I submit it, I should get the values coming from $ _POST. But it turns out that the returned data comes only with value 1. I do not know what's going on. Everything seems normal. : <form method="POST" action=""...
asked on 23.02.2014 / 02:17
3
answers

Is it possible to create a MAP within another MAP?

Is it possible to create a MAP<> within another MAP<> ? type this code: private Map<String, Map<String,Object>> mapTESTE = new HashMap<String, Map<String,Object>>(); If yes: How do I...
asked on 28.07.2014 / 15:32
3
answers

How to transform a date into a string format with no signs in DateTime?

Examples: string data = "08072013"; string hora = "1515"; Is there a specific method for this type of format? I tried to use Convert.ToDateTime() , DateTime.Parse , etc. and everyone returned an exception. I'm currently doing th...
asked on 01.07.2014 / 22:43
3
answers

Should not this function return a bool instead of a Pizza?

I'm studying react and I came across the following expression: {this.state.text.split(' ').map((word) => word && '
asked on 26.09.2018 / 19:26