All Questions

3
answers

I need to validate a TXT layout in C #

I have a TXT file where I need to validate the number of characters in each column as per the layout of each document. Note: The documents are all in a single file *.txt In the second column is the document type "0000,0400,0430". Ea...
asked on 27.06.2016 / 23:04
1
answer

How to configure Web API with multiple Get

I need to provide in my web api three forms of query: First Get with all records "GetAll", the second GET by the id and a third GET with filtering options, sent by the client eg Name contains the letter " the "and address contains the word" brid...
asked on 15.07.2016 / 19:55
4
answers

Is it possible to include a JavaScript file inside another JavaScript file?

Is it possible to include a JavaScript file inside another JavaScript file? Similar to @import in CSS or include of PHP?     
asked on 05.07.2016 / 16:34
2
answers

Check if string starts with number

I need to check if a string starts with numbers. I want to do this using Regex in C # public static class StringExtensao { public static bool ComecaComNumero(this string str) { if (string.IsNullOrEmpty(str)) return...
asked on 27.07.2016 / 16:58
4
answers

How to display data from 2 tables in a grid?

I am developing an application using Windows Forms and wanted to be able to display data from 2 tables in a ggrid, by the SQL command I can do this SELECT SU.SUBCATEGORIAID, SU.NOME, SU.CATEGORIAID, C.NOME FROM SUBCATEGORIA SU INNER JOIN CAT...
asked on 21.06.2016 / 00:01
2
answers

Abstract Class in Python, how to choose implementation

I'm learning python and trying to do a program where I have an abstract class and two subclasses that implement such. I need to make another class that will choose which implementation to use depending on the user, but I can not do that. If some...
asked on 25.07.2016 / 21:39
3
answers

Cross-Domain Application Security Doubt

I have a question regarding the security of cross-domain applications ... It is as follows, in case I have a hybrid APP that will run on a smartphone and will make requests ajax cross-domain to an api (in this case multiple .php...
asked on 16.06.2016 / 05:44
2
answers

Problems with calculation of "TREE OF LIFE"

Good afternoon, I have a problem I need to do the following: Create a program, in C language, that calculates the size of the tree of life, after a certain number of growth cycles, taking into account that the tree starts with one meter in si...
asked on 21.06.2016 / 20:12
2
answers

Referencing class Syntax Razor C #

I have a class where I have saved a configuration key being key and value, however I need to get the value of that key and pass it to my cshtml page. I'm having trouble with this. I've already passed the class path, but I can not refer...
asked on 21.07.2016 / 14:33
1
answer

Is it possible to give insert with select?

I have two tables: hardware(ID, DEVICEID, NAME, ...) and softwares(ID, HARDWARE_ID, PUBLISHER, NAME, VERSION, ETC ...). I need to insert into the softwares table, but I do not have HARDWARE_ID , I only get the hardware name (...
asked on 22.11.2016 / 15:11