199,114 Archived Topics
Remove Filter ![]() | |
# Split a dataset based on an attribute and an attribute value def t_split(x, y, z): l, r = list(), list() for row in z: if row[x] < y: l.append(row) else: r.append(row) return l, r # Calculate the Gini index for a split dataset def gini_index(grp, class_values): gini = 0.0 … | |
I am learning to code and found interesting task, but i do not know where to start in solving it. So i have a file with some titles and comments which need to be placed under the right title. So the first line of the input contains a number N … | |
Hi everyone! I need your assistance in creating a c# based web browser. I want to change the useragent string but i don't know how to. I'm a newbie, I'm curious and finding this interesting. There are few things I like to implement with this browser and i need your … | |
The Canadian Forest Service wants to do a simple simulation of the growth and pruning of forests. Each forest has a name and exactly 10 trees. The trees are planted when they are 1' to 5' tall, and each tree has a individual growth rate of 50%-100% per year. For … | |
Hello, Any idea how to change the css codes just by pressing a button? I wonder how to do this? Any clue? | |
Good day, I have to make a data scraper and after I take the informations I have to get them in a CSV file.This is the original request:For the final java academy test you have to create a small crawler. What do I mean by "crawler"? A crawler it is … | |
hi all, im realising motion detection that compare two successive frame saved in directory , using OpenCv but, the code is successfully debugged, but when i run the app it displays an exception, any help please  my source code #include <iostream> #include <fstream> #include "opencv2/opencv.hpp" #include "opencv2/highgui/highgui.hpp" #include … | |
Hi everyone, I've been searching through these forums to find a way to transfer my program output [including the user's input] to a .txt file. The program basically gets the user's name and their choice of ingredients and then prints out a receipt of their order. Below I've attached what … | |
I am new to Java Programming, I need help on this.. Any help would be appreciated. Write a java program that generates a random number between 50 and 100 for a student grade and determines the letter grade of the student. The student grade is determined based on the following … | |
I have to create a sign up and log in forum in Java . But I have no idea how to do, or what to do I really need help otherwise. | |
![]() | so i've been trying to do this multiple times but stil didnt get the answer. i have a column named closed in my database and close button in my view, whenever i click the button close, i want it to update my closed column to '0' if it is closed … |
I tried making a code that displays images in a tkinter window along with a text underneath however its positioned in the top but I want it in the center. The path "C:\Users\ariel\Desktop\arrayofimages.txt" has: > C:\\Users\\ariel\\Pictures\\photoimage1\\1.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\2.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\3.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\4.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\5.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\6.jpg > C:\\Users\\ariel\\Pictures\\photoimage1\\7.jpg The path … | |
These are the options available in t_plan table id plan_name -- --------- 4 - free 5 - Gold 6 - Silver 7 - Platinum etc My object is to as user click on an option in the form it will populate the following input boxes next to select box from … | |
I have input string in shape of:polygons=[(4,5),(6,8),(5,3),(11.4,6);(3,8),(2,9),(1,2)],each semicolon tells me 1polygon entered user can input up to 100 polygons and 100 points in each polygon i want to store the x- coordinates of all points in 2D array how can i do that in c++? User can input any value … Programming c++ | |
I have a custom control set up like this [code] Public Class ctrlAddSitesMenu 'Declares Buttons for Opening Websites Dim OpenTraker As New Button Dim OpenDynamics As New Button Dim OpenInetPortal As New Button Dim OpenFrontPortal As New Button Dim OpenLoopcare As New Button Dim OpenViryNet As New Button Dim OpenSmpl … Programming vb.net | |
I have a DataGridView of 4-5 columns. The DataGridView is Editable. When I enter a value in the Reference Column then immediately it will fill the other values in the others cells from mysql database. But when I go to the next row and I want to add another value … | |
# print ('Let me help you order a pizza. What size would you like?' ' a. small ($7.99) b. medium ($14.99) c. large ($18.99)') choice = input('Please enter a or b or c: ') prices = {'a':7.99 , 'b':14.99 , 'c':18.99} if choice == 'asdf' : print("Ok fam, you became … | |
To all database genius out there, I hope you can help me with this error I encountered when importing excel file to SQL Server 2005. This is the error: [CODE]Executing (Error) Messages Error 0xc020901c: Data Flow Task 1: There was an error with output column "Description" (21) on output "Excel … | |
I am trying to cast/ convert varchar to a numeric value. I have done this succesfuly when I eval the lower range, however I get an error when I do the upper range. this is my evaluation section that works. isnull(cast(measurmentdata.measvalue as numeric),0) < productinfo.lowerrange however when I try to … | |
Requirements: Use a class, an array, file input/output. Goal: Compare the student answers (.txt) to the answer key (.txt) and output the students name, missed questions and overall score to a .txt. Firstly, is my design decent? What I need to do now is to compare student answers to the … | |
**how to solve unfortunately myapp has stopped????** | |
i have vb.net windows app and i can insert data to acomputer where sqlserver is installed in the same lan but could not connect from another network(different lan)to the computer. | |
can someone explain to me how to put the current time into a tekstbox... i'm totaly new with this language and need to finish a program before school starts again. it should be like this: if i push button "BtnStart" then current time should be inputted in "textbox1" if i … | |
I am having a trouble not knowing how to do a java code that will take user string then encrypt it using Elgamal algorithm as following Elgamal algorithm Pseudo code: - Select Q where Q is a prime number - Select α where α is a primitive root of Q … Programming algorithm encryption java | |
I need help with some questions.They were 20 of them but this 5 have been so hard for me. Any help I get will be highly appreciated. Cheers!!! 1.When mergesort is implemented on a linked list it is possible to implement it as a stable sort. True or False? These … | |
A few weeks ago my laptop browsing and windows apps error. When i am on my facebook account i can watch youtube videos posted on feeds but other videos pos unable to watch and play just black screen and keep on loading. Even some FB games is not working properly. … | |
I have a form that requires several Comboboxes and TextBoxes when I tried it on one box it works: Public Class frmStart 'Code for Combobox Borders Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. AddHandler Me.Paint, AddressOf DrawComboBlueBorder … Programming vb.net | |
Q. On this page: https://www.tutorialspoint.com/php/php_variable_types.htm On section "Interpreting other types as Booleans", it says: **"Don't use double as Booleans".** I do not understand this. Why can't you use a double as a boolean ? Why can't we use the following example ? EXAMPLE 1: $int_var = 100.10; If($int_var != 100.10); … | |
Experts, I do not understand this atall. Here: https://www.tutorialspoint.com/php/php_constants.htm It says: "PHP Magic constants PHP provides a large number of predefined constants to any script which it runs. There are five magical constants that change depending on where they are used. For example, the value of __LINE__ depends on the … ![]() | |
Hiya, http://www.tizag.com/phpT/php-string-strpos.php On the above link, it is stated: PHP Code: $numberedString = "1234567890"; // 10 numbers from 1 to 0 $fivePos = strpos($numberedString, "5"); echo "The position of 5 in our string was $fivePos"; Display: The position of 5 in our string was 4 Notice that the position is … ![]() | |
@model Stattips.Models.MatchesList <br /> <div class="col-sm-8 container-fluid"> <table class="table table-striped "> <tr rowspan="3"><ul class="breadcrumb"> <li><a href="#">Soccer</a></li> <li><a href="#">Albania</a></li> <li class="active">Kategoria Superiore</li> </ul></tr> <tr> <th>Matches</th> <th>Country</th> <th>Odds</th> </tr> @using (Html.BeginForm("AddMatches", "Matches")) { for (int i = 0; i < Model.Matches.Count(); i++) { <tr> <td> @Html.CheckBoxFor(m => Model.Matches[i].IsCheck) @Model.Matches[i].HomeTeam-@Model.Matches[i].AwayTeam @Html.HiddenFor(m => Model.Matches[i].HomeTeam) … | |
I work in MVC 5 c# in visual studio 2015 web applications I have table pictures in SQL server 2012 have two fields ID Image ID have number of image inserted like 1,2,3,4,5 Image field store picture added what i need actually browsing images found in table pictures in database … | |
Dear Sir I have access data table and vb . project .access data table include ID ,word and description Colum v b project include three text box and one list box. If I search any word in text box through word Colum .I want show description Colum next text box … | |
Problem with my website [object Object]Internal Server Error Please Help me! | |
I am using an Arduino to prototype a project in which the real time is important. My device has a real time clock and internet access. I have some NTP code I can use to get the current time in GMT and I can apply an offset for the timezone … | |
i put this code name = raw_input ('please enter your name-->') print 'hello ' + name age = raw_input ('enter you age-->') if age < 5: print 'what the...how did you understand on me' elif age < 18: school = raw_input ('in wich school you are') print "I don't care" … | |
(Ubuntu Server) I have a folder full of files in pairs (one is a log, another is a DB backup) They are basically create/modified at the same time. I need a shell script that detects if the folder has more than 28 or 30 files (always will be a pair), … | |
Im doing some work with C# and AD and Im missing something right now that I cant seem to see. I want to get a description of a security group in Active Directory and use that in a tooltip. I have all the security groups but Im not sure how … | |
Hi guys, as I'm looking into the MVC pattern, I thought I'd create a small application to understand a bit more. Let's look at the code: //model package model; public class StudentModel { private String name; private String surname; private int number; public String getName() { return name; } public … | |
Hi thaks in advance if I am steered rightly I have created a form in which a combobox and a submit button are present. when i select an integer value from combobox (Ex: 5) and click submit button, those many number of textboxes (Ex: 5) are to be created dynamically … | |
hi i am new to c#programming and i need help on how to create a GPA calculator software application using visual studio. the purpose of this application is to keep track of the grades obtained by a student for the modules he is taking. the application allows student to enter … | |
Folks, What does it really mean by "escaping" in a string ? Eg. https://www.tutorialspoint.com/php/php_strings.htm The escape-sequence replacements are − \n is replaced by the newline character \r is replaced by the carriage-return character \t is replaced by the tab character \$ is replaced by the dollar sign itself ($) \" … | |
i have to get 2 numbers (each of length 20 digits) from user and have add them and display the result (using arrays) . i have no idea how to add such a long digit number...please tell me how can i add both numbers. your quick response will be highly … | |
Hi, 1. I would like to ask how can I adjust array.csv like this: ,,,-00.000146400000, 0.08000, ,,,-00.000146200000, 0.00000, ,,,-00.000146000000, 0.00000, ,,,-00.000145800000, 0.00000, so I can have in first column -00.000146400000 and in second column 0.08000? (thanks, I am begginer). 2. How can I pick out information(number) from 20 separate files … | |
It is said on the following link: **Using the strpos() function** **The strpos() function is used to search for a string or character within a string.** **If a match is found in the string, this function will return the position of the first match. If no match is found, it … | |
I have an assignment to output contents from a .txt file to html. I'm able to output the information from the .txt to the console but how would I output it into an html page? The txt and html files are in the same folder as my .cpp file. #include … | |
Hi Experts, I had completed a database in vb.net with access database. Now my question is, how to make it accessible online? Thanks. | |
I've tried following the Microsoft instructions to add multiple Textboxes to my form, but just cannot get it to work. Thus, I've deleted everything I wrote, so I don't have code to post. Is there a very simple way to add multiple TextBoxes to a form and be able to … | |
Hello All, I am new in this language and want to access the run time value In other words, I want make a program in which ask the value from User like scanf() function in C and cin>> function in Cpp So is there any function or method by which … |
The End.