199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for omprakash_1

# 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 …

Member Avatar for rproffitt
0
327
Member Avatar for Josh_3

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 …

Member Avatar for tinstaafl
0
453
Member Avatar for Sammie_1

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 …

Member Avatar for rproffitt
0
1K
Member Avatar for Heather_6

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 …

Member Avatar for ignacio.camachoortiz
0
450
Member Avatar for davy_yg

Hello, Any idea how to change the css codes just by pressing a button? I wonder how to do this? Any clue?

Member Avatar for cereal
0
402
Member Avatar for Petrisor

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 …

Member Avatar for happygeek
0
402
Member Avatar for yosri_1

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 ![fd.png](/attachments/large/4/15ef48aa38ace106bfefbeb623106185.png "align-center") my source code #include <iostream> #include <fstream> #include "opencv2/opencv.hpp" #include "opencv2/highgui/highgui.hpp" #include …

Programming app-store c++
Member Avatar for rproffitt
0
3K
Member Avatar for George_23

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 …

Member Avatar for JamesCherrill
0
533
Member Avatar for Lena_1

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 …

Member Avatar for Tarek_2
0
389
Member Avatar for Syed Suleman

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.

Member Avatar for Tarek_2
0
182
Member Avatar for kayla_95

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 …

0
101
Member Avatar for Mae_3

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 …

Member Avatar for rproffitt
0
3K
Member Avatar for Arjun_9

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 …

Member Avatar for rproffitt
0
1K
Member Avatar for Khaled_9

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++
Member Avatar for AssertNull
0
254
Member Avatar for Rabastan

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
Member Avatar for xrjf
0
321
Member Avatar for Jim_11

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 …

Member Avatar for tinstaafl
0
581
Member Avatar for Ace_4

# 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 …

Member Avatar for rproffitt
0
194
Member Avatar for aplee

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 …

Member Avatar for Sai_421
0
1K
Member Avatar for Joe_10

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 …

Member Avatar for Sai_421
0
397
Member Avatar for Joe_29

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 …

Programming c++ storage
Member Avatar for thines01
0
288
Member Avatar for palash_1
Member Avatar for sisay_3

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.

Member Avatar for xrjf
0
846
Member Avatar for thijscream

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 …

Member Avatar for HaxNain
0
8K
Member Avatar for Aob

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
Member Avatar for Aob
0
5K
Member Avatar for Mirty

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 …

Member Avatar for Mirty
0
291
Member Avatar for yosri_1

hi all , i search for motion detector documents and code source with systemC programming language, any help pls

Programming c
Member Avatar for yosri_1
0
928
Member Avatar for Nancy_11

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. …

Member Avatar for JamesCherrill
0
406
Member Avatar for Rabastan

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
Member Avatar for xrjf
0
252
Member Avatar for UI

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); …

Member Avatar for Reverend Jim
0
282
Member Avatar for UI

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 …

Member Avatar for diafol
0
323
Member Avatar for UI

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 …

Member Avatar for diafol
0
259
Member Avatar for Stat_1

@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) …

Member Avatar for rproffitt
0
348
Member Avatar for _1_14

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 …

Member Avatar for _1_14
0
175
Member Avatar for Karuna_2

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 …

Member Avatar for xrjf
0
705
Member Avatar for Stat_1
Member Avatar for rubberman
0
190
Member Avatar for SalmiSoft

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 …

Member Avatar for rubberman
0
264
Member Avatar for kiyo_1

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" …

Member Avatar for Gribouillis
0
221
Member Avatar for riahc3

(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), …

Member Avatar for rproffitt
0
515
Member Avatar for riahc3

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 …

Member Avatar for rproffitt
0
290
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for baabjitvk

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 …

Member Avatar for rproffitt
0
194
Member Avatar for yayaza

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 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for UI

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 ($) \" …

Member Avatar for UI
0
389
Member Avatar for AmerJamil

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Katarína_1

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 …

Member Avatar for Gribouillis
0
240
Member Avatar for UI

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 …

Member Avatar for AssertNull
0
218
Member Avatar for Joe_29

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 …

Programming c++ html-css
Member Avatar for rproffitt
0
303
Member Avatar for judd

Hi Experts, I had completed a database in vb.net with access database. Now my question is, how to make it accessible online? Thanks.

Member Avatar for xrjf
0
213
Member Avatar for major_lost

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 …

Member Avatar for Reverend Jim
0
4K
Member Avatar for john_beginner

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 …

Member Avatar for Reverend Jim
0
21K

The End.