Posts by Luiz Roberto Furtuna • 593 points
34 posts
-
0
votes1
answer26
viewsQ: Multiple pages with report RDLC C#
I’m using rdlc for reporting. I upload and retrieve the required data from a csv (collaborator, enrollment...). Within my routine while, I am using the following code to override the parameters of…
-
0
votes1
answer148
viewsA: C# - Cannot convert an object of type 'iTextSharp.text.pdf.Pdfarray' in type 'iTextSharp.text.pdf.Pdfdictionary
The problem was the pdf same. For some reason when I first saved, it ended up corrupting. However, I created a code to validate the problems, the good old try{ }catch(Exception ex){ } try { // abre…
-
0
votes1
answer148
viewsQ: C# - Cannot convert an object of type 'iTextSharp.text.pdf.Pdfarray' in type 'iTextSharp.text.pdf.Pdfdictionary
I’m developing a certified digital signature system A1 and A3 (token) for pdfs along with iTextsharp (v5.5.13.1, via NuGet Package Manager). I use the c# and I came across the following error in…
-
0
votes1
answer472
viewsA: Pentaho - Error running bat by Windows Task Scheduler
Strangely, the solution was to cancel Executar com privilégios mais altos and also leave the option marked Executar somente quando o usuário estiver conectado.
-
1
votes1
answer87
viewsQ: More than one array value for Where Eloquent
I’m developing a route for my api, where it is intended to return a list of cities based on the fields and values of my array. Thus: public function arrayCidades(Request $request) { $ay =…
-
0
votes1
answer472
viewsQ: Pentaho - Error running bat by Windows Task Scheduler
Follows the code of .bat: @echo off TITLE MeuProcessoAutomatico SET currentdir=%~dp0 SET kitchen=C:\pdi\data-integration\Kitchen.bat SET logfile="%currentdir%main.txt" echo. >> %logfile% echo.…
-
0
votes1
answer63
viewsQ: How to use Custom Request in Controller
Follows my AuthRequest.php: <?php namespace App\Http\Requests; use Illuminate\Http\Request; use App\Rules\CpfValidacao; class AuthRequest extends Request { /** * Get the validation rules that…
laravelasked Luiz Roberto Furtuna 593 -
0
votes1
answer103
viewsQ: Customization of Laravel Validator message
I have the following validator cpfValidacao.php: <?php namespace App\Utils; class cpfValidacao { public function validate($attribute, $value, $parameters, $validator) { return…
laravelasked Luiz Roberto Furtuna 593 -
0
votes2
answers351
viewsQ: Laravel Token Validation (Passport)
I developed an api in Laravel. It’s all right, it’s all working. The Front-End is being developed in Angular. I would like to know if there is any method provided by passport for validation of acess…
-
1
votes1
answer421
viewsA: Loop inside SQL loop
I found the answer on this link: https://stackoverflow.com/questions/6099500/multiple-cursors-in-nested-loops-in-mysql. The final version looks like this: BEGIN BLOCK1: begin declare v_unidade…
-
0
votes1
answer421
viewsQ: Loop inside SQL loop
I have the following code in a procedure in the mysql: BEGIN declare v_unidade varchar(10); declare v_conta varchar(256); declare v_cnt INT; DECLARE done INT DEFAULT 0; declare c_unidade cursor for…
-
5
votes2
answers291
viewsQ: Cmd text box functionality for Git
I’m developing a .bat, which will make a series of commands from the git predefined. But one of these commands, it is necessary that the user type an operation message. Follow the series of…
-
0
votes3
answers280
viewsQ: Run cmd command with CD
I’m looking to execute a specific command of composer update by cmd. However, I always need to access my api folder with cd to execute such. Example: C:\Users\Luiz>cd api…
-
6
votes3
answers230
viewsQ: Code shortcut for multiple git commands
How do I have only one command run another automatically on git? Example: When sending git atalho perform the following instructions: git status git add Post.txt git commit -m "aqui coloco uma…
-
-1
votes1
answer2496
viewsQ: Change Pgadmin4 default browser
Today when opening the PgAdmin4, it opens by default on Edge of my machine. It is possible to change this to the chrome? When just trying to copy the link and paste, it doesn’t work. Unauthorized…
-
1
votes2
answers365
viewsQ: Do not create folder when cloning Gitlab project
I have with my partners a repository in Gitlab. The repository already shows by default, the folder api and too txts, that is, I don’t have a folder inside the repository, where, by opening it, I…
gitasked Luiz Roberto Furtuna 593 -
0
votes1
answer374
viewsQ: Validation error in Laravel update
Follows the code: public function update(Request $request, Contact $contact) { $validator = Validator::make($request->all(), [ 'name' => 'required|min:6|max:255', 'email' =>…
-
1
votes1
answer1092
viewsQ: React with Material-UI: Changing component colors
I have a question about the buttons (I think it will heal the other components too). There is the property color, by default I can use primaryor secondary, Both come along with the material. But…
-
0
votes2
answers67
viewsQ: Dynamic array in php for pg_insert()
I developed the following code as an example: $dados = "nome-luiz-idade-21-status-true";` $arraydados = explode("-", $dados);` I need to create a dynamic array, where: The even positions of…
-
3
votes2
answers74
viewsQ: Select to Alias
I’m trying to establish a select to be a alias of a record. I do not know yet if there is such a possibility, could someone clarify me this doubt? ex: select 1 as (select dia_da_semana from ano…
-
0
votes0
answers265
viewsQ: CAPICOM use for signature in Delphi
I’m using the capicom.dll on Delphi to perform the signature on files (planned in .pdf). I’ve been able to read the certificates My of the area CAPICOM_CURRENT_USER_STORE. But I have the following…
-
0
votes0
answers46
viewsQ: SSL error in Delphi
I’m getting the bug ssl3_get_record wrong version number when I own the property Connected of ADOConnection for true. Does anyone know how to solve?…
-
0
votes1
answer282
viewsA: Generate dates between ranges in Firebird
Solved using recursive! with recursive dt as ( select cast('2019-07-22' as date) as dt from rdb$database union all select dt.dt + 1 from dt where dt < cast('2019-07-24' as date)) select dt.dt…
firebirdanswered Luiz Roberto Furtuna 593 -
0
votes1
answer282
viewsQ: Generate dates between ranges in Firebird
I need to select and return a date range in Firebird. It should be the same logic as generate_series postgresql. SELECT date_trunc('day', dd):: date FROM generate_series( '2019-07-22'::timestamp,…
firebirdasked Luiz Roberto Furtuna 593 -
0
votes1
answer98
viewsQ: While finds no match, C language
I have the following code in C: #include <stdio.h> #include <stdlib.h> #include <locale.h> struct crPlayList{ char music[120], singer[120]; float mustime; struct crPlayList *next;…
-
1
votes1
answer70
viewsQ: "format specifies type" error, C language
I have the following code in C: struct crPlayList{char music[120], singer[120];float mustime;struct crPlayList *next;}; struct crPlayList *start, *end, *aux; I have a music search function: void…
casked Luiz Roberto Furtuna 593 -
0
votes0
answers65
viewsQ: Field ordering in Power BI
I have three camps in my Cartão de linha múltipla (This is the translation in Portuguese): Account, balance and % sale. However I need to sort by the order field, which is not in the Campos of the…
-
0
votes1
answer1792
viewsQ: Carousel in the material-ui
How to do the carousel of images in the material-ui? I’m using this library along with React for front-end.
-
12
votes1
answer16148
viewsA: 500 | Server Error - Laravel
One of the solutions was to access the project folder, via cmd, and run the following command: copy .env.example .env This when there is not the '.env' file automatically created in the folder, and…
-
4
votes1
answer16148
viewsQ: 500 | Server Error - Laravel
I created a new project in Laravel with the command laravel new server. I updated the Poser, inside the same, with composer update. However, when accessing the http://localhost:8000/, it returns me…
-
1
votes1
answer415
viewsQ: Multiple pass to simple parameter in Postgresql
I created a function in Postgresql where I sum certain accounts. However, my function has only one parameter for them: f_retorna_somatorio(p_conta character varying, p_cnpj character varying,…
-
2
votes1
answer401
viewsQ: Mkdir(): Permission denied on Windows
I try to configure Vuejs in the Laravel with the following code: php artisan preset vue However, I resume this mistake: ErrorException : mkdir(): Permission denied I am using Windows and my project…
-
-3
votes2
answers319
viewsQ: Get all the content I don’t want via Regex
Guys, I need to pull from a string, by Regex, all content that is not equal to CNPJ. Ex: Flap1 -> 123 - EMPRESA CICLANO101 30.589.587/0001-87 Line2 -> 4567 - FULANO LTDA28.819.917/0001-31…
-
0
votes1
answer43
viewsQ: Code generation shortcut
I wonder if there are any features in Android Studio where I type in a word and the IDE inserts an add-on (OBS: Where I report this, not the IDE itself). Example: buttonobj -> Button btnexemplo =…
android-studioasked Luiz Roberto Furtuna 593