All Questions

3
answers

Breakpoint in visual studio does not load when debugging

I have a solution with 3 projects, one of them being Ex.utils and Ex.Api. Where the .dll of the utils project is referenced in Ex.Api in 'References'. Both compiled in the same .NET version. When you run the debug, the breakpoint, after count...
asked on 27.03.2018 / 17:56
3
answers

How to hide a text being bigger than my Div

The purpose of the exercise is to study, I am creating a blog that has stories about dubbing and one of the objectives is to hide the text, which is much larger than my Div, so when clicking on the post the person is redirected to a page with th...
asked on 11.01.2018 / 19:14
2
answers

Enable select option with javascript / jquery

I'm developing software, but I can not enable a select. The intent is to check the select enable automatically. How do I do this? function habilitarSofa() { var radios = document.getElementsByName("sofa[]"); for (var i = 0; i <...
asked on 18.12.2017 / 15:15
1
answer

What is the need for an interface to have abstract methods?

We know that in an interface the methods have no implementation, just signing, that is, just defining their methods without the body, we conclude that all are already abstract methods, right? But then why are there statements like: interface E...
asked on 03.01.2018 / 02:13
1
answer

I want to check if the string contains only letters?

#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> #define tam 50 main(){ struct cadastro{ char nome[tam]; }; struct cadastro dados; printf("Nome:"); fgets(dados.nome,ta...
asked on 02.04.2018 / 04:14
2
answers

Block access to javascript files

I have a javascript file that does ajax requests for my API, but I do not want anyone to find out the link to it, is there any way to block access to this file? If you do not have some way to release so only the site can access?     
asked on 08.06.2015 / 03:21
1
answer

Transform list of strings into list of tuples

I have this: l=['Car 8', 'Bike 5', 'Train 10'] And I would like to have something like this: [('Car','8'), ('Bike','5'), ('Train','10')] How could you make a list of strings into something like a list of strings tuples?     
asked on 05.12.2017 / 01:27
2
answers

How to Fill a DropDownListFor

Can anyone help me how do I fill out a DropDownListFor ? Before I was doing it this way: @Html.DropDownList("lstAffiliate", string.Empty); But I saw that it was not recommended, so I decided to do it with ListFor . I have...
asked on 15.06.2015 / 19:28
1
answer

Program goes into infinite loop

My goal with the code was to set up a game that asked the person which number the computer would be "thinking" (from 1 to 100), and as the person said a number from 1 to 100, the computer would tell if the random number generated is greater or l...
asked on 03.04.2018 / 02:11
2
answers

Access the components of the children of a TObject

Ohayou Developers, I would like to know how to access the children of an object, for example. I have a TRectangle and a TLabel with your child. I would need to access the TLabel to change, for example, your text, color etc. What would be the com...
asked on 08.11.2017 / 19:55