-
Began Watching Calculating Entropy Question (C++)
Hello, all. I am trying to calculate entropy, and I cannot get the calculations correct, or match the results with the assigned if-statements. I get a number that differentiates a … -
Created A content editable DIV to color words or numbers while writing
Here I present a WebSite containing just Default.aspx. Current snippet code has to do with coloring text in an input field of a web page. The input field is an … -
Began Watching A content editable DIV to color words or numbers while writing
Here I present a WebSite containing just Default.aspx. Current snippet code has to do with coloring text in an input field of a web page. The input field is an … -
Replied To a Post in Table with Angular
Type in Google: w3schools customers.php The first link appeared to have: { "records":[ {"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"}, {"Name":"Ana Trujillo Emparedados y helados","City":"México D.F.","Country":"Mexico"}, {"Name":"Antonio Moreno Taquería","City":"México D.F.","Country":"Mexico"}, {"Name":"Around the Horn","City":"London","Country":"UK"}, {"Name":"B's Beverages","City":"London","Country":"UK"}, … -
Began Watching Table with Angular
Hello, I am trying to follow the following tutorials: https://www.w3schools.com/angular/angular_tables.asp <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> </div> <script> var app … -
Began Watching Function Not Working
Dear Friends, Good Day, I am facing an issue in one of the functions the code is given below if someone can help on this actually this function is supposed … -
Replied To a Post in Function Not Working
Try the following If retVal IsNot DBNull.Value Then retVal += 1 Else retVal = 4999 End If -
Replied To a Post in Notice: Undefined index: username in line 72
Try changing line #11 to: $query = "SELECT username FROM user_details WHERE username='"+$username+"'"; -
Began Watching Notice: Undefined index: username in line 72
<body class="bg-dark"> <div class="container"> <div class="card card-login mx-auto mt-5"> <div class="card-header">Change Password</div> <div class="card-body"> <form method="post" action="change-password.php"> <div class="form-group"> <label for="username">Username</label> <input class="form-control" id="username" type="text" name="username" aria-describedby="nameHelp" placeholder="Enter username" required> … -
Replied To a Post in Authentication is required for relay
If you want to be sure 100 percent, why not set a flag pending confirmation while sending an email to the user to confirm the address? -
Began Watching Authentication is required for relay
Hello I have a Web page here: http://www.dimadayoub.net/forgot.aspx for users who have forgotten their password. When I type in the email address of a user who I know exists as … -
Replied To a Post in I failed this code challenge design
I'm not a Visual Basic advocate, I just use VBasic and like it because I code with it. Here is a 'workaround' to generate a sequence of integers and iterate … -
Replied To a Post in I failed this code challenge design
Perhaps, array can do the work of Java's IntStream. For instance, to square a sequence of numbers: Sub Main() Dim arr() As Int32 = {2, 5, 6, 8, 3} Dim … -
Replied To a Post in I failed this code challenge design
I am almost new to lambda expressions, but thanks to you, I could write the same code in VB.Net: Module Module1 Dim rules As New List(Of Func(Of Int32, String)) From … -
Began Watching I failed this code challenge design
I failed this coding challenge because my solution "does not scale for new divisors and iterations" I think it is actually a design (pattern) question, and would very much appreciate … -
Replied To a Post in El numero de valores debe coincidir con el de columnas de insert into
Your language uses "," as decimal separator and "." as thousand separator and that is why instead of retrieving 1/4 (=0.25), `CDbl` is getting 25. Use `double.parse` instead, setting the … -
Began Watching El numero de valores debe coincidir con el de columnas de insert into
Ingreso una operación donde ingreso 0.25 pero me da por respuesta 25.0 , por lo tanto no puedo guardarlo en la base de datos Private Sub btningresar_Click(sender As Object, e … -
Replied To a Post in VB.net Error: cmd.ExecuteNonQuery
What an old thread, isn't it? -
Began Watching VB.net Error: cmd.ExecuteNonQuery
Hi Guys, im facing problem at cmd.ExecuteNonQuery() kindly correct me wer is the mistake? n how to correct? Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click … -
Replied To a Post in define a function with different variable
In this other way the code seems to work: x = [16.7, 16.5, 16.1, 15, 13.5,14.2, 14.9, 13.7] # an example D = [0, 1, 4, 7, 16, 31, 64, … -
Began Watching define a function with different variable
I want to define a function like this: n_H = 0.9 # constant . x = np.array([16.7, 16.5, 16.1, 15, 13.5,14.2, 14.9, 13.7])# example to test D = np.array([0, 1, … -
Replied To a Post in First and last word to proper case
Dim vplaats() As String = Split(Replace(TextBox1.Text, "'", "''"), " ") vplaats(0) = StrConv(vplaats(0), VbStrConv.ProperCase) vplaats(vplaats.Length - 1) = StrConv(vplaats(vplaats.Length - 1), VbStrConv.ProperCase) Dim platts As String = Join(vplaats, " ") -
Began Watching First and last word to proper case
Hi can someone give me the code how i make the first and last word of a string to Propr case The folowing gives all words to proper case Dim … -
Replied To a Post in Sql group by error in inner join please help me............
The message is telling that field pr.invno on line 1 should also figure in the Group By clause, or in a function like sum(pr.invno) or count(pr.invno) . -
Began Watching Sql group by error in inner join please help me............
i have 3 table i inner join with 3 table and add function but now getting error please help me how to solve the the problem please help me ERROR … -
Replied To a Post in Converting from 32-bt to 64-bit in C
Is it possible for you to change lines 58 and 59 from: ra1 = rap[j-1]; ra1 = ra1/100.0; to: ra1 = rap[j-1]; printf("DEBUG: ra1 is %lf\n", ra1); ra1 = ra1/100.0; … -
Replied To a Post in Converting from 32-bt to 64-bit in C
Another possibility is to assure the operation in line 59: `ra1 = ra1/100.0;` maybe double precision in 32 and 64 bit machines do not match the same. -
Replied To a Post in Converting from 32-bt to 64-bit in C
Where is `rap[ ]` assigned a value? You should look there because the value of `ra1`comes from `rap[ ]`, so if the values in `ra1`differ it's that `rap[ ]`values are … -
Began Watching Converting from 32-bt to 64-bit in C
Hello, my name is John McPherson, and I write C code for the U.S. Department of Labor. I am in the process of converting C code for a lot states … -
Replied To a Post in Get textbox data without POST or GET calls
Setting a session variable in javascript is not possible. Javascript executes on client side while php (php session variable) executes on server side, i.e. generaly on different machines. -
Replied To a Post in Subscript out of range
You may try [Here](http://forums.codeguru.com/showthread.php?305265-Getting-the-Line-Number-on-a-VB-error) and [Click Here](https://msdn.microsoft.com/es-es/library/aa264519(v=vs.60).aspx) -
Began Watching Subscript out of range
I have a vb based software which is very old running on sql server 2000. When I tried to take a report, it says "runtime error 9 Subscript is aout … -
Replied To a Post in Get textbox data without POST or GET calls
Then call by means of XMLHttpRequest another php that grabs the phone number and any other data to record what is necessary. <script> function checkmax(element) { if(element.value.length == 9){ var … -
Replied To a Post in Get textbox data without POST or GET calls
One way could be to assign the value to a hidden input label. For example: <?php $_SESSION['num']='4567890123'; ?> <!DOCTYPE html> <html> <body> <script> function checkmax(element) { if(element.value.length == 9){ var … -
Replied To a Post in Get textbox data without POST or GET calls
I agree in that the only way I can see is to submit the form back to the server. Something like: <!DOCTYPE html> <html> <body> <script> function chkLen() { if(document.getElementById("dCell").value.length … -
Began Watching Get textbox data without POST or GET calls
This may sound confusing but I have a textbox which is a cell number textbox and I want when the max length of 10 has been reached then fire the … -
Replied To a Post in Problem refreshing after adding data
Sincerely, I just have tried the 'add' method for which you were asking, at least I think so. The rest of code is your task. -
Replied To a Post in Problem refreshing after adding data
I get no error with the above code. You may include Try-Catchs, if you do know how, and see a more explanatory error. -
Replied To a Post in Problem refreshing after adding data
Imports System.Data.OleDb Public Class Form2 Dim provider As String Dim dataFile As String Dim connString As String Dim sql As String Dim myconn As OleDbConnection = New OleDbConnection Event UpdateDGV() … -
Replied To a Post in Problem refreshing after adding data
Besides the need of brackets for sql in reserved names as in [key] or [name], to communicate between form1 and form2 there may be a raising event. Imports System.Data.OleDb Public … -
Began Watching Problem refreshing after adding data
At the beginning welcome all. I have a big problem and I can not deal with it. I would like to refresh dategridview after adding and editing data. I try … -
Replied To a Post in Not all Attributs will be loaded in my XMLTreeView
@Josh_4 Please, take a look to the answer at your first thread [Here](https://www.daniweb.com/programming/threads/508636/set-icon-for-nodes-in-xmltreeview-via-xml-file-vb-net/2) -
Began Watching Not all Attributs will be loaded in my XMLTreeView
Hello Daniweb-Community, I got a node in my xml-File for a java-link. it looks like "C:\Program Files (x86)\Tool7\javaw.exe -splash:splash.png -cp ./cl/cl.jar; -Dawt.useSystemAAFontSettings=on" If i start the tool by double click … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
The xml file should look like the following: <?xml version="1.0" encoding="UTF-8"?> <Programme Path="1"> <Feld Icon="Folder.ico" Path="2">Feld 1<VisualStudio Path="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" Icon="VS.png">Visual Studio</VisualStudio> <Excel Path="C:\Program Files\Microsoft Office 15\root\office15\EXCEL.EXE" … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
The easiest way to store the attributes is in a new class, in order to extend the NodeTree class. So when reading the xml attributes, store them in this -let's … -
Replied To a Post in Permutations in Vb.net
Not an improved version, but just a functional code for what you ask: Module Module1 Dim vChar() As Char Dim vIndex() As Int32 Dim N, r, cnt As Int32 Sub … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
By custom arguments I mean custom attributes. In a xml file a node may have as many attributes as you wish, but Treenode control has it's own and fixed properties. … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
Think that TreeNode can't hold custom arguments. Change the xml so the path is complete: <?xml version="1.0" encoding="UTF-8"?> <Programme Path="1"> <Feld Icon="Folder.ico" Path="2">Feld 1<VisualStudio Path="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" … -
Began Watching VB.net VS C#.net
Good day guys, I've been developing softwares in different languages. But, I don't fully understand when to use a specific language where I can fully utilize it's ability. For example … -
Replied To a Post in Is there a function in c# that returns x times of given char or string. Or
  The function you're asking for may well be Regex's class: Imports System.Text.RegularExpressions Public Class SearchCharOrString Private Sub btnGo_Click(sender As Object, e As EventArgs) Handles btnGo.Click Try Dim cnt …
The End.