Posts by Vinícius • 1,357 points
57 posts
-
0
votes3
answers1368
viewsA: Get Laravel login user address
This way you can access the information linked to the logged in user. $user = Auth::user(); $result = Endereco::where('user_id', '=', $user-id)->get(); $result will return the columns you need.…
-
0
votes1
answer104
viewsA: Entity Framework Mapping - Area Code
I think this example might help you, Mariana. public class TestDriveRepository : GenericRepository<TestDrive>, ITestDriveRepository { public TestDriveRepository(DataContext context) :…
-
3
votes2
answers293
viewsA: Using Linq to sql, how do I get the generated sql query?
Using the Iqueryable, it is possible to obtain the SQL generated. IQueryable<SuaClasse> query = _repository.First(a => a.iid == id && a.locIid == _usuario.LocalidadeContextoId…
-
1
votes1
answer49
viewsA: Query in YII 2 getting a different result from the Where clause
Reorganize your Where. ->where(['like', 'placa', $q]) ->orWhere(['like', 'descricao', $q]) ->andWhere(['<>' ,Veiculo::tableName() .'.status' ,…
-
2
votes3
answers3455
viewsA: Converting integer to string in C#
Just use the Convert.Tostring; var x = 2; var result = Convert.ToString(x);
-
0
votes2
answers350
viewsA: GET request with Angularjs
Try it this way: var url = 'http://www.json-generator.com/api/json/get/ccLAsEcOSq?indent=1'; var carregarContatos = function(){ return $http.get(url).then(function(response){ console.log("conexão…
-
1
votes1
answer110
viewsA: How to generate a qrCode from a url
You can use this lib. Just follow this idea. function qrCodeExample(url) { var qrcode = new QRCode(document.getElementById("qrcode"), { text: url, width: 70, height: 70, colorDark: "#000000",…
-
3
votes3
answers75
viewsA: How to calculate a FOR for 6 in 6 increments it give an echo?
$carros = array("Volvo", "BMW", "Toyota", "Alfa Romeu", "WV", "Teste", "test2", "Teste4", "Teste3", "Teste5", "Volkswagem", "Ferrari"); for ($i=0; $i < count($carros); $i++) { echo…
-
6
votes1
answer433
viewsA: Git: What are the possible streams for two development environments?
Using Git Flow as a branch organizer, I use it as follows: Branch master - It is the branch that contains code at the production level, that is, the most mature code in your application. All new…
-
1
votes1
answer249
viewsA: Migrate app II7 to other environment iis 7
Basically, you need to transfer the application folder to the IIS server(c: Etpub wwwroot) and configure the path in the IIS manager. I advise you to take a read: here.…
-
0
votes2
answers868
viewsA: Error while adding javascript
Possibly the values are of the type 'text', therefore the concatenation . for(var i=0;i<tam_grade_produto.length;i++){ var quantProduto = parseInt(quant_produto[i].value);…
javascriptanswered Vinícius 1,357 -
3
votes1
answer45
viewsA: I would like to assign yesterday as an initial date every time my program is started on a dateTimePicker
dateTimePicker1.Value = DateTime.Today.AddDays(-1);
-
0
votes1
answer64
viewsA: Add a new page and continue interaction
Assuming that the variable pos already has a predefined value, you only need to position the condition if for the beginning of the interaction. for (var i = 0; i < notas.length; i++) { if (i ===…
-
1
votes1
answer88
viewsQ: Error when searching large amount of data in Entity framework,
I am putting together a report, and in it there is the option to consult by date period. When I consult with the interval of 30 or 60 days, I can obtain the data, where I group and return. However,…
-
0
votes2
answers212
viewsQ: Search in lambda query with logical operators
I have a query for a report, where some search fields are optional, except the date ranges. However, when performing the query, the function always returns me values that do not match the parameters…
-
1
votes1
answer167
viewsQ: Problem with Laravel API in production
I have deployed an API in Laravel. The problem that is occurring is the following: the online API always returns me '200 ok', without at least getting to the login controller. With this same API, I…
-
0
votes1
answer17
viewsQ: Generate a single page with all records
I have a query that returns a list with objects. From this list, I go through each position, define some object parameters and return to a view. What I’m trying to do is: Scroll through all…
-
0
votes1
answer217
viewsQ: Get or return a variable to the angular
I have a method where I do a certain validation and depending on the scenario, I need to return only an alert and continue with the request or a possible Badrequest also returning a message. I…
-
0
votes1
answer851
viewsA: Firebird remote database access error 3.0.3
You are putting the win_sspi plugin before Legacy_auth. This requires using it regardless of the username / password being entered. Try: isql "Ip_do_servidor/3050:/var/lib/Firebird/3.0/banco de…
-
8
votes3
answers1569
viewsQ: Form completion with return of a json
I am using a webservice (viaCep) for automatic filling of the backyard, for when the user type a zip code. The webservice returns me a json with the information from the patio, and from that return…
-
1
votes1
answer1958
viewsA: Connection to SQL database in C#
See if this example helps you: SqlConnection sqlConnection1 = new SqlConnection("Your Connection String"); SqlCommand cmd = new SqlCommand(); SqlDataReader reader; cmd.CommandText = "SELECT * FROM…
-
4
votes4
answers2605
viewsQ: Breakpoint in visual studio does not load at debug
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 version of . NET.…
-
1
votes1
answer258
viewsQ: Get url parameter via Angularjs
Well, I need to get a parameter from mine url as soon as my page is loaded. localhost/123456 The parameter would be: 123456 Using $Location, I got the full url, but I couldn’t get the parameter I…
-
1
votes1
answer73
viewsQ: Pass a list to a view to get via Javascript
I have a method Index, where it takes a parameter, makes a query and returns a list. I need to run that list along with view or get that list some other way, so I can access list via Angularjs.…
-
0
votes1
answer40
viewsQ: Get parameter by url for my controller
I need my controller to get a parameter from a URL (localhost/Check/123456), where 12346 would be the parameter. I configured the Routeconfig: public static void RegisterRoutes(RouteCollection…
-
0
votes2
answers764
viewsQ: Error in path when recognizing route request
Even after the route definition, when performing a post, the application occurs the error of "404 not foud". However, in this same, when accessing the index, I can obtain data from my database.…
-
0
votes2
answers505
viewsQ: Error trying to move file to a folder with PHP and Javascript
I’m trying to move files from a folder. These files are listed, from the moment they are created, I want to move them at the end of the day to a certain back-up folder. However, when calling…
-
1
votes0
answers261
viewsQ: Chromedriver.exe error using Coypu for Selenium
I’m making an app, to test this framework unit test. However, it indicates an error that cannot find the path where Chromedriver.exe is, the same is found in the folder I indicated. Here follows my…
-
3
votes3
answers847
viewsQ: Conversion of a variable with replace to decimal
I’m having a little doubt, I pass a value 0,05 decimal for a variable A of the kind string. After this variable receives this value, it does the conversion of , to point ., which remains 0.05 After…
-
2
votes0
answers4011
viewsQ: The underlying connection was closed: The connection was closed unexpectedly
I have a Webform project, and I’m passing an array to a method that will post to a specific URL. However, after I run the project and send the array to the method, it breaks with the error reported…
-
4
votes1
answer1604
viewsQ: See Date only, in a Datetime field with LINQ
I’m generating a report in an app that I’m developing, but I have a little problem. When sending a query in a date interval, I can’t get anything, because it is a DATETIME (I can’t change to date…
-
2
votes1
answer265
viewsQ: How to pass a post with an array to a Webform URL
I’m trying to send an array with some elements in a post to a url. I called 'Webbroser' method, passed the parameters, but still I had no idea how to finish implementing. Follows my code: private…
-
0
votes0
answers82
viewsQ: Reference of forein key, with the Entity Framework
I’m having a hard time making one Insert, because the FE indicates that there is error in the table reference. But, in my config, I state what is the foreing key. My config: public class…
-
3
votes1
answer1390
viewsQ: How to select a value from an <option> by Angularjs
Well, I do an interaction to get the options, and I want to select the first option <select class="form-control" name="accounts" ng-model="vm.deposit.account" ng-options="account.account as…
-
1
votes1
answer1174
viewsA: How to format Date in Gridview Asp.net C#
Try to use: <asp:BoundField HeaderText="Date" DataField="MyDate" DataFormatString="{0:dd/MM/yy}">
-
5
votes1
answer1183
viewsA: Mysql database connection issues
As the above user said mysqli_conect is misspelled, spelled mysqli_connect, hence your return : Fatal error: Call to undefined function mysqli_conect() in C:\xampp\htdocs\Cursos\Testes\conecta.php…
-
5
votes2
answers6301
viewsQ: Remove an item from a List<>
Well, I have a method that I consult at my bank and compare with a List<Carros>. My intention is, for every item that contains as much in my query as in mine List<Carros>, I remove the…
-
11
votes3
answers175
viewsQ: What is the most correct way to make a query with LINQ?
I am trying to make a LINQ query in my BD SQL Server, but the result of it always comes 'null'. I need the first user ID I query. This is the way I try to consult: public decimal…
-
0
votes1
answer338
viewsQ: Create a condition within a Linq
I need to make a comparison to set the value within mine select new. I’ll try to explain it better. var tipo= from t in p select new { t.Key, t.Value, }; return Ok(tipo); I wanted to buy if t.key ==…
-
1
votes0
answers128
viewsQ: Problem connecting to Mysql from Visual Studio
I am trying to make the connection by Visual Studio, when I will configure by 'Data Source Configuration Wizard' is showing an error: Since I already imported and referenced the . dll(s) from Mysql…
-
1
votes1
answer75
views -
1
votes1
answer148
viewsA: Is there any way to run software, native to 32 bits in 64 bits in Centos?
Yes, but for that you need to be root. If so, just type the following command: yum install glibc.i686 With this, you can run software that is only compatible with 32-bit versions. I hope I’ve…
-
1
votes1
answer781
views -
2
votes4
answers3027
viewsQ: Loading the values of a select in my Gridview
My DAL who does the Select and saved in the list type<> using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Web; using MySql.Data; using…
-
2
votes1
answer129
views -
3
votes4
answers24249
viewsA: What is the right way to connect to the Mysqli database
$link = mysqli_connect("myhost","myuser","mypassw","mybd") or die("Error " . mysqli_error($link)); I use it that way.
-
1
votes1
answer975
viewsQ: Taking the content of a JS variable in an Asp.net C#
I have a Function that takes the values of my inputs, and I want to take the values of the variable for my method to perform the Insert. Does anyone have any tips on how to do this? function…
-
0
votes1
answer452
viewsQ: Retrieving values from my form
I am trying to recover the values of a form. This is the correct way to retrieve them to pass to my DAL? <div id="myModal_Veiculos" class="modal hide fade" tabindex="-1" role="dialog"…
-
1
votes1
answer1570
viewsQ: How to treat multiple Forms on the same page.aspx?
I have a.aspx page that I have several Forms. One of the Forms put runat="server" and you’re like Textbox, I was able to take the form data and insert it into the database. But I wanted to do the…
-
-1
votes1
answer578
viewsQ: Insert MYSQL into Web form C# - I cannot insert anything
I’m trying to get an insight into my comics of a college app I’m developing. However, I’m having difficulties. Taking the values of the texbox protected void button1_cad_cliente(object sender,…