Posts by Joe Torres • 448 points
16 posts
-
0
votes2
answers134
viewsA: Showing div with jquery
First check to see if $('#close'), $('#show') are not coming back empty (just to make sure the ids are correct. In the div you want to hide put: style="display: none;" To show continue with show(),…
-
0
votes2
answers523
viewsA: What is $_GET['path']?
In php $_GET serves to get parameters from the URL. For example if you request a page like http://meusite.com?path=servicos $_GET['path'] would return the 'services' string'…
phpanswered Joe Torres 448 -
4
votes1
answer6479
viewsA: Generate MER from a Database
This is what SQL SERVER Managemnet Studio generates. 1) Opens SQL SERVER Management Studio 2) Connects to the desired database. 3) In Object Explorer expands the Databases folder -> Name of your…
-
1
votes1
answer506
viewsA: change data type ntext to text, SQL Server
Try this: ALTER TABLE mytable ADD mycolumn2 TEXT UPDATE mytable SET mycolumn2 = mycolumn ALTER TABLE mytable DROP column mycolumn ALTER TABLE mytable ADD mycolumn TEXT UPDATE mytable SET mycolumn =…
-
0
votes1
answer204
viewsQ: Application . NET C# Nodejs express style
But for a few features I would like my project to respond to some simple HTTP Rest requests. As the project will handle COM+ and more, I will do it in C#. The point is, I don’t want to have to deal…
-
3
votes2
answers1841
viewsA: How to treat division by 0
You can put inside a Try catch this stretch. try{ conta = shell.evaluate(conta).toString(); txtConta.setText(conta); } catch(ArithmeticException ex){ txtConta.setText("Não divida por zero"); }…
-
1
votes4
answers179
viewsA: Create method that avoids code repetition in ASP.NET with SQL
//CONEXÃO COM BANCO string connStr = @"DATA SOURCE = .\SQLEXPRESS; Initial Catalog = website; USER Id = sa; Password = 123456;"; SqlConnection conn = new SqlConnection(connStr); SqlCommand cmd = new…
-
1
votes3
answers2407
viewsA: State and City Combobox associative array in Javascript
Example Javascript var options = { "São Paulo" : ["São Paulo", "Itápolis", "Araraquara", "Ribeirão Preto", "Jacareí"], "Rio de Janeiro": ["Rio de Janeiro", "Niteroi", "Petropolis", "Belford Roxo",…
-
0
votes1
answer304
viewsA: Installment for mysql
It does not need very far. In case you can use 3 simple tables, as see in this very pig ER diagram that I just made.…
-
7
votes2
answers1349
viewsA: How to convert a nullable int to common int
You can also use: int variavelNNula = variavel.GetValueOrDefault(); In case the int default would be zero.
-
0
votes3
answers682
viewsA: How to mount a lambda expression and pass it by parameter to a Generic function?
Look, from what I understand, Getall will get all the people, Physical or Juridicas correct, and what changes are the fields depending on the type? In this case the days left that seem correct is in…
-
1
votes1
answer33
viewsA: How to maintain the Sql connection for a long time
I only saw it once, and it was when I was working on a very slutty network, with the wifi falling all the time. Switching to the cable helped me, but in your case, if there is no permission, I…
sqlanswered Joe Torres 448 -
4
votes5
answers497
viewsA: Print string in reverse
Short and thick: var reverso = new string(frase.ToCharArray().Reverse().ToArray());
-
1
votes1
answer678
viewsA: Select from a line in phpmyadmin
Mysql vc can use LIMIT. SELECT cdAgendamento FROM agendamento WHERE cdAgendamento > 10 LIMIT 1
-
1
votes2
answers91
viewsA: Visual Studio 2015 - Team Fundation - Erro projeto Asp.Net MVC
Look, can you be more specific and say which references not found? Sometimes the compile order of projects on Solution is wrong. Until then, you can use this command to download missing references:…
-
3
votes4
answers392
viewsA: Read Internal File Name
Look buddy, I’m a little rusty in java, but as far as I can remember, you can list the arches that way: File folder = new File("c:\pathproprojeto\src\arquivos"); File[] listOfFiles =…
javaanswered Joe Torres 448