I see a lot of people saying it's wrong to switch in the code because it ends up weighing and it's ugly.
Is it correct the way I'm using it and what would be an alternative to using it? Fill in the code for if / else ?...
I created an admin space where users deposit .txt files into my FTP .
I would like to impose a format. Example The whole file must contain two three columns separated by a semicolon.
Example :
valid_file.txt
name, height, na...
I have a problem that I think is very simple ...
I need to show the username logged in my views ...
How do I do this?
this is one of the views
@extends('layouts.template')
@section('body')
<h3>List_Lists</h3>
<p>
<...
I have the following table
idRegistro|Campo |Valor
1 |Nome |Zonaro
1 |Email |[email protected]
1 |campoX|valorX
2 |Nome |Fulano
2 |tel |1188889999
2 |campoY|valorY
I need to create a sele...
In my script I'm making a placeholder, but I can not get it to switch images after click in checkbox , and all the time table chairs are misaligned.
Type:
checked checkbox shows the red chair
checkbox unchecked shows the red...
I have string which is actually a phone number . But a phone number might have some formats like:
+55 34 98989898
34 989898
989898
The constant is that always the last 8 numbers are the phone numbers, I wanted to know how I separa...
I want to remove spaces from a string , example:
Pedro Henrique Ribeiro
I would stay:
Pedrohenriqueribeiro
The code I made, removes the space, but duplicates a letter:
#include <stdlib.h>
#include <stdio.h>
#include <...
I have a question.
I have several methods of comparison, however, one of the attributes used to make the comparison is double.
There is an error:
Can not invoke compareTo (double) on the primitive type double
I tried converting t...
I have a PHP script that acts as a chat server (websocket) that I have on a certain system. I realize that sometimes this service unexpectedly stops running. It runs through the nohup command.
I'm using Linux.
I just realize that my...
I have in mind some questions about large volumes of data in MYSQL , referring to the ID limit. I'll give an ID type tinyint as an example to simplify the explanation. In the example the field tinyint accepts 127 records....