Posts by LeoHenrique • 954 points
75 posts
-
-1
votes1
answer88
viewsQ: How to put a fixed and responsive card on top of the map?
I’m trying to fix a card on top of the google maps map... but I don’t know how to fix and get responsive too... My versions Ionic: Ionic CLI : 5.4.16 Ionic Framework : ionic-angular 3.9.9…
-
0
votes0
answers19
viewsQ: Closed app background service
I have a background problem with Ionic, follow settings: The background plugin is Backgroundmode. "@ionic-native/background-mode": "^5.31.1", "cordova-plugin-background-mode": "^0.7.3", When I’m…
ionicasked LeoHenrique 954 -
0
votes1
answer77
viewsA: Camera problem iOS 14.4
I compared it to a project where the camera worked and noticed that the only thing different was the Androidpermission plugin, in the project where the camera did not work had this plugin…
-
0
votes1
answer33
viewsQ: Entityframework - Error table or view does not exist
I have a table in oracle that can only be accessed this way sms."User", when mapping the entity, I did so: builder.ToTable("sms.Usuario") When running the project and seeing the log, I see that the…
-
0
votes1
answer77
viewsQ: Camera problem iOS 14.4
Apple recently released a version update of its devices, version 14.4. When updating my iPad to this version, the functionality of the app I am using the camera has stopped working. No longer opens…
-
1
votes1
answer250
viewsA: How to keep data on screen by clicking the back button with Angular 8
The localStorage is a type of local browser storage, in it you store items in key-value. We have some methods: setItem: set value for a key in your local storage window.localStorage.setItem(chave,…
angular-8answered LeoHenrique 954 -
-2
votes1
answer72
viewsQ: How can I improve/simplify my structure?
We have these various ifs and I wonder if there’s a way to simplify them, make them more objective, easy to understand, ... Basically, we make a where of retorno to filter that list. In that where,…
-
0
votes0
answers22
viewsQ: How to put an Object parameter on Route
I’m creating a way to send firebase push notification. There’s three pieces of information I need to pass along: string title, string body and object data When I started doing it, I did it like this…
c#asked LeoHenrique 954 -
0
votes1
answer53
viewsA: Getall Error: Calling Shapedqueryexpression.Visitchildren is not allowed
Well, I had no progress with that problem so I undid what I had with Digital Ocean and went to Google Cloud where it has SQL Server. After making all the necessary configuration to access Google…
c#answered LeoHenrique 954 -
-1
votes1
answer53
viewsQ: Getall Error: Calling Shapedqueryexpression.Visitchildren is not allowed
DETAILS I am using . NET Core 3.1 and Mysql 8.0 I’m starting a new project using a Mysql database on Digital Ocean. I’m using the DDD, I used as a basis to make the structure this website. I created…
c#asked LeoHenrique 954 -
0
votes1
answer27
viewsA: Ionic resolution
I returned 14 commits and was testing file by file and seeing what could have influenced... Until I saw changes in tsconfig and I discarded it and it worked again, now I will understand what those…
ionicanswered LeoHenrique 954 -
0
votes1
answer27
viewsQ: Ionic resolution
About 2 days ago, we started building environment to generate a deploy for Android, before we started, we ran the command ionic serve --lab and it was as we wanted... After configuring and going up…
ionicasked LeoHenrique 954 -
0
votes1
answer89
viewsQ: Git Flow - Not creating the tag in master
We’ve just started working with Gitflow and we’re having a problem that isn’t creating the master tag... When we will generate a production version (master), Create a release branch: git flow…
-
1
votes0
answers38
viewsQ: Grab content from the iframe
Hello, Utilizo Angular 8. I need to get the contents from inside the iframe: The iframe itself shows me in the console this: But I don’t know how to get the information out of him... IFRAME…
-
1
votes1
answer129
viewsQ: Regex to take a stretch that may or may not occur
I have a phrase, where before and at the end of it I have {{ and }} Example: {{UMA FRASE DE EXEMPLO}} In some cases, I may have a parameter for that phrase. To identify that it has a parameter I use…
-
0
votes0
answers36
viewsQ: Error when doing POST on another project for the second time
Taking as basis this link, that it was myself who posted, I will summarize so that you understand quickly... I have a . NET Core 2.2 project and needed functionality that I only had in . NET Core…
c#asked LeoHenrique 954 -
3
votes1
answer204
viewsA: "Close" DLL opened
I created a . NET Core 3.0 project and solved my problem using Assemblyloadcontext.Unload which was suggested by Augusto Vasques: I did it in two ways: 1: Inmemory:…
c#answered LeoHenrique 954 -
4
votes1
answer204
viewsQ: "Close" DLL opened
I created a dll to run in Runtime a class: var classe = "using System; " + "public static class CSharp" + "{" + "public static double Executar()" + "{" + "return 0;" + "}" + "}"; var compilation =…
c#asked LeoHenrique 954 -
0
votes1
answer55
viewsQ: Catch all words between 2 characters
Text: var texto = "if(true) { {{palavra1}} + {{palavra2}}; }" The only characters I know will ever exist are {{ and }}. I did so, but this way I only get the first word: Regex r = new…
-
0
votes1
answer44
viewsA: Creating a comeback With a sublist
Remembering that, inside your model, you need to have a property of a list for this your object (Note), something like: public List<Nota> Notas { get; set; } Try it like this: var query =…
-
7
votes2
answers142
viewsQ: What does byte* mean?
I’m studying cryptography and I took an example in AES. In the code is this byte* and even *variavel and I couldn’t understand what it meant. This is the block that uses this, quoted above: byte*…
-
2
votes2
answers763
viewsQ: Async/Await x Sync
I’m studying synchronous/asynchronous behaviors at the angle and I’m not sure when to use async and await.... Correct me if I’m wrong... I understand that for me to call with await, the return has…
-
-3
votes1
answer54
viewsQ: Swap css for parameter
Angular Version: 8.2 Hello, I’m trying to change the CSS every time I change a parameter (company). Each company has its theme, for example, company A the theme is red, so in certain parts of the…
angularasked LeoHenrique 954 -
0
votes1
answer184
viewsQ: Error passing parameter to Sqlcommand by parameterizing table
I’m trying to pass parameter in mine select and this bursting the exception: It is necessary to declare the table variable "@p_tabela". using (SqlConnection conn = new…
-
0
votes1
answer80
viewsQ: Check if number with isNaN does not work
I wonder if my URL has number (ID parameter). get this: rota = "/pessoa/editar/5"; after the substring rota = "/pessoa/editar"; validarRota(rota) { if(!isNaN(rota)) { rota = rota.substring(0,…
-
1
votes0
answers80
viewsQ: Toastcontainer - Error giving build --Prod
When I run the project in dev works perfectly, when I try to give the build in Prod, of that mistake... WARNING in Invalid Animation value at 221:41. Ignoring. < That one I solved ERROR in Error…
-
0
votes1
answer941
viewsA: JWT authentication with role Claims in ASP.NET Core Identity
I will post here, as the files with the resolution for Authorize with the roles. Important: I have not done with Identityserver yet. Startup.Cs public class Startup { public Startup(IConfiguration…
-
0
votes1
answer58
viewsQ: I upgraded Angular 5 to 8 - Conflicts
I updated the angle today and some conflicts appeared... I solved most, but this I do not know how to solve... I would like help to solve. Requestoptionsargs -> @angular/http did not find the…
angularasked LeoHenrique 954 -
2
votes1
answer110
viewsA: Use dependency in 2 different modules
I managed to do with Shared module city.modulets. @NgModule({ imports: [ SharedModule, ...], declarations: [ ... ] ... }) estado.modulets. @NgModule({ imports: [ SharedModule, ...], declarations: […
angularanswered LeoHenrique 954 -
-2
votes1
answer110
viewsQ: Use dependency in 2 different modules
How do I have in different modules, the same component in the declarations? Ex: estado.modulets. @NgModule({ imports: [...], declarations: [ AdicionarEstado, ... ] ... }) city.modulets. @NgModule({…
angularasked LeoHenrique 954 -
0
votes0
answers26
viewsQ: Problem with temporary visual studio changes
Hello, I am migrating from TFS to GIT, I have imported into the Archive itself from a new repository giving rise to my TFS project... Made the import, I opened the project in visual studio, but…
-
1
votes0
answers99
viewsQ: Git - TFS - Ways to work with team versioning
Good morning/late/evening! Today where I work, we have 3 branches: dev, homologation and production; Everything everyone on the team does, we go straight up the dev branch, everyone tests there goes…
-
5
votes1
answer941
viewsQ: JWT authentication with role Claims in ASP.NET Core Identity
SOLVED - Authorize with roles With the help of this link: https://stackoverflow.com/a/47025009/10647645 And a reply in the post with the final files with the resolution UNSOLVED - Identityserver,…
-
0
votes0
answers81
viewsQ: Constraint Fk Composite
Hello, I am creating a Foreign key Constraint composed like this: alter table "Tabela1" add constraint constraint_fk foreign key ("Guid","Tabela2Id") references "Tabela2" ("Guid","Tabela2Id") When I…
-
1
votes1
answer669
viewsQ: Directive: lock double click on a button
Hello, I have a directive to lock the double click buttons on my system... However, when clicking a button that is "calling" the directive, it does not do its function (e.g., if the button is…
-
0
votes1
answer40
viewsA: I can’t do Onblur/Onvaluechanged
Using the FORMA 2 described above, I gave a bind and it worked: construtor(private service: Service){ this.ConsultaCEP = this.ConsultaCEP.bind(this); }
-
-1
votes1
answer40
viewsQ: I can’t do Onblur/Onvaluechanged
I’m using the DevExpress, when I do direct by HTML works, but with the dxi-item no, probably because I’m using onValueChanged incorrectly... FORM 1 Component.html <dxi-item dataField="cep"…
-
1
votes0
answers129
viewsQ: Localization Devexpress
I am trying to translate the components of Devexpress, I have already contacted their support and it seems that they are not in the mood to make an effort to help... I wonder if anyone here knows…
-
3
votes1
answer516
viewsQ: How to solve "Clean your tree for work"?
Me and the team I’m with, we work with GIT + Visual Studio Code... When we touch the same file, when we commit/pull the files, the following error occurs: There is some way to solve this, because…
-
2
votes1
answer64
viewsQ: Error in API POST when inserting object
Hello, I am trying to add an object to the database by calling my API and I get this error: ORA-00932: inconsistent datatypes: expected NUMBER got NCLOB I just wanted some help with directing,…
-
-1
votes2
answers233
viewsQ: Help - result.foreach is not a Function
How do I make a forEach on the return of a subscribe? this.service.obterTodos() .subscribe(result => { result.forEach(element => { this.usuComponent.push(element); }); }); Service:…
angularasked LeoHenrique 954 -
0
votes0
answers30
viewsQ: Why is Httpclient Baseddres not working?
Below my code: using (var handler = new HttpClientHandler()) using (var client = new HttpClient(handler)) { client.BaseAddress = new Uri("http://localhost:porta/");…
c#asked LeoHenrique 954 -
0
votes2
answers128
viewsA: Session variable always returns Null Asp.Net
Try this: <h2>Bem-vindo(a), @Session["nomeEmpresaLogada"].ToString().</h2> Reference: https://stackoverflow.com/questions/34380363/access-session-variable-in-view…
-
0
votes0
answers19
viewsQ: Field filled with today’s date on view startup
Hello, I wanted to put today’s pre-set date in a date field on view startup. I tried so: Component: this.MeuForm = this.fb.group({ dataInicio: [{date: {year: (new Date()).getFullYear(), month: (new…
angularasked LeoHenrique 954 -
2
votes1
answer45
viewsA: Get higher separate value according to product code in datatable
Try something like: var result = from tab in dt.AsEnumerable() group tab by tab["Codigo"] into groupDt select new { Codigo = groupDt.Key, Max=groupDt.Max((r)=>…
c#answered LeoHenrique 954 -
0
votes2
answers185
viewsA: Visual Studio Code - Debug by Chrome
I managed to solve, on the tag webRoot put to the end /main, in my case... "webRoot" : "${workspaceFolder}/main"
-
0
votes4
answers60
viewsA: Remove null fields from a model that receives a list
Try something like this model.Phones.RemoveAll(item => item == null); Exchange the item as your need... I put in the fiddle: https://dotnetfiddle.net/CVn50U…
-
0
votes1
answer67
viewsA: Exception when trying to open modal
I managed to do as follows, inside the Component of my modal, I saw that only with the import of the add Component as said in this comment: eu tenho outro component/view que tem faz o q eu quero,…
angularanswered LeoHenrique 954 -
-1
votes2
answers185
viewsQ: Visual Studio Code - Debug by Chrome
Hello, I’m trying to debug my code angular of visual studio code with the extent debbuger for chrome, but it does not enter in mine breakpoint never, that including this gray and written unchecked.…
-
0
votes2
answers107
viewsA: How to make a list comparator
I don’t know if this is exactly what you want, but just so you know where to start: using System; using System.Collections.Generic; using System.Linq; public class Program { public static void…