Member Avatar

Visual Tkinter is Python 2.6 GUI builder. Visual Python programming language for advanced Visual Python IDE that offers the possibility. As of December 2008 starting and writing fasting Editor. This software is using Scintilla editing component. <URL SNIPPED>

Member Avatar
-4
1,117
Member Avatar

I'm reading a book about C++. I'm on arrays now. It seems that a two-dimensional array is taken in this way: void Function( int arr[][numberof2nddimension] ) { } Why is that so? Help please. Thanks

Member Avatar
1
151
Member Avatar

I am a developer who recently started working on my own, and I've come across some projects that I can't handle by myself (mostly in React). What resources would you guys recommend for finding / putting together a team of remote developers to join me on these projects?

Member Avatar
5
73
Member Avatar

Hello all! I have an excel file that looks like this: Time of Day Lap Lap Tm Speed 14 - Stoicescu Dan - Regularitate Coupe 9:40:50.835 1 2:47.462 88.763 9:43:37.584 2 2:46.749 89.142 9:46:33.319 3 2:55.735 84.584 9:49:58.901 4 3:25.582 72.304 9:53:13.988 5 3:15.087 76.194 9:55:50.639 6 2:36.651 94.889 9:58:49.884 7 2:59.245 82.928 10:02:33.328 8 3:43.444 66.524 20 - Dima Viorel - Regularitate Coupe 9:40:56.287 1 2:46.284 89.392 9:43:39.673 2 2:43.386 90.977 9:46:18.075 3 2:38.402 93.84 9:48:57.580 4 2:39.505 93.191 9:51:38.104 5 2:40.524 92.599 9:54:18.371 6 2:40.267 92.748 9:57:01.825 7 2:43.454 90.939 9:59:51.986 8 2:50.161 87.355 10:02:33.040 9 2:41.054 92.295 …

Member Avatar
0
152
Member Avatar

Hi all, I've been having a problem adding a record to an Access database using datasets and da.update etc. I'm trying to create a simple program that displays the records of a database table in a series of text boxes. I've managed to get my next and previous buttons working correctly and my update button works correctly too. The problem occurs when I try to add a new record. I keep getting a "Syntax error in INSERT INTO statement" whenever I click my add button. My database table has JobID(number), ElectricianID(number), CustomerID(number), Price(number), Date(date), Time(time), Paid(yes/no) Eventually I will have …

Member Avatar
0
1,097
Member Avatar

I'm writing a utility that will likely be called by a script that uses `argparse`, but should be useable by any script. The engine object constructor needs a dozen or so parameters to tune its behavior. The question is: What is the best way to allow the caller to send the necessary parameters without requiring extra work setting params that have defaults. First thought: Since some users will have an `argparse.Namespace` instance already, I might make use of that. But other users would need to create a Namespace (or just a subclass of `object`) which seems like a problem. Second …

Member Avatar
0
163
Member Avatar

I have been browsing the web for days now trying to find a solution to my problem and have yet to come up with anything so far so I figured I would ask some professionals. Basically I need to read a text file which contains records along the lines of: ClientNum LName FName 123456 XX YY etc.. etc.. and then let the user input either a range of ClientNum's or one specific ClientNum and display all data for that one record. So far I have been using getline and have successfully displayed all records with a while loop but I …

Member Avatar
0
5,333
Member Avatar

So I am trying to wrap my head around link lists and the theory is there but the magic isn't (at least in my program)... my problem runs with the void traverseRecord() function. For some reason it automatically shows all the nodes. Maybe I haven't totally grasped the concept of traversing, because I am thinking it will only show one at a time and I know my code isn't exactly right. Ideas anyone? [CODE]// studentGPAquery.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <list> using namespace std; struct student { string …

Member Avatar
0
3,911
Member Avatar

Write a complete C++ program for WorldParking Sdn Bhd. to perform the following: a. Write a return-value function named calcCharges() to calculate and return the parking charges for the customers. The company charges a RM1.00 minimum fee to park for up to one hour. An additional RM0.50 will be charged for each hour exceeding the first one hour. The maximum charge for any given 24-hour period is RM10.00. Assume that no car parks for longer than 24 hours at a time. b. Write a void function named calcTotal() to calculate the total charges for all the customers. c. Write the …

Member Avatar
1
163
Member Avatar

I programmatically edit my datagridview cell values. I use the vertical scrollbar to find the row I want to edit, select the row then click an edit button that takes me to another form where changes to the record are made. I then click a button which saves the changes and returns me to the datagridview form. No problems here. When I return to the grid, the records are displayed with the first record at the top of the grid. That is, the vertical scroll bar has repositioned itself to the very top. Is it possible for the datagridview to …

Member Avatar
0
3,317
Member Avatar

First - so I don't get in any trouble - I've posted a similar question on other forums but have not gotten any responses so branching out in my quest for help as well as changing the question a little. Previously I was trying to find out why calling LoadUserProfile(...) was not creating the User Profile if it did not already exist (for example when creating an account programmatically) - MSDN had the following article on HOW TO but it doesn't seem to work (copy/paste the code and switched it to C# - account is created, no failures or exceptions, …

Member Avatar
0
3,527
Member Avatar

Following The New Boston on youtube, he is using is in an if statement and doesnt show any error, on mine I get a syntax warning and it asks if I meant ==, but still displays the output the way it should be.

Member Avatar
1
198
Member Avatar

Hi have 2`springboot` applications running on ports `8085` and `8084`. When I try to use `RestTemplate` to try to connect from one service to another, I get a `BadGateway 502` exception. Below is the stacktrace head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.17.9</center> </body> </html> ]] with root cause org.springframework.web.client.HttpServerErrorException$BadGateway: 502 Bad Gateway: [<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.17.9</center> </body> </html> ] at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:108) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:186) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:125) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:782) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:740) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:674) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:612) ~[spring-web-5.2.7.RELEASE.jar:5.2.7.RELEASE] Any reason why I might be getting this. Below is the …

Member Avatar
0
145
Member Avatar

Hello everyone, I am working on a project, which corrects user input (reads input stream from keyboard with keyboard module hook) based on some rules. I am trying to find the fastest way to delete and write the corrected word, after a user enters a wrong one. Currently I am using pynput, but I noticed that it faces problem when the user types very fast. To give you a better idea of what I am looking for, I quote the above pseudocode. user enters a word some_checks_are_made if (ok): do nothing else: press_the_backspace_button_until_delete_of_wrong_entered_word write_the_new_word To make it even more clear, …

Member Avatar
0
327
Member Avatar

Hello, Can someone assist me how to create here buttons - Button7 - First - Button5 - Next - Button6 - Previous - Button8 - Last To search in database and display the results. Here is my project until now: - Also if there are mistakes or suggestions to make it better i'm open for ideas to learn too :) <pre> Public Class Form2 Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load Using con As New OleDbConnection(ServerStatus) Using cmd As New OleDbCommand("SELECT * FROM Table", con) cmd.CommandType = CommandType.Text Using sda As New OleDbDataAdapter(cmd) Using dt As New …

Member Avatar
0
179
Member Avatar

What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } }

Member Avatar
0
1,111
Member Avatar

I am using CPU Sim to change wombat1 to wombat2 by adding stack. I have done adding a Stack RAM and a Stack pointer SPR. I have implemented a push instruction as such: acc->mdr mdr->Stack[SPR] End The implementation is able to push the acc value to Stack but not able to point to the next location to store the next value. For incrementing am I suppose to use Inc2-pc? And the pop instruction is popping out the address of the value instead of the value. The implementation of pop is: ir(4-15)->mar Stack[SPR]->mdr mdr->acc End Can anyone point out what I …

Member Avatar
0
1,115
Member Avatar

I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, I am limited to streaming files in the mp4 format. Fortunately, ffmpeg allows me to convert other formats to mp4. Unfortunately, figuring out what parameters to use can be daunting. So far I have determined the commands to use to convert avi, flv and mkv. The last two are a simple repackaging of the contents (takes but a few seconds). The first, avi, requires a complete recoding. The following commands …

Member Avatar
1
1,595
Member Avatar

import java.util.Scanner; class bank{ public void termDeposit(){ int principle; double rate,years; Scanner sc=new Scanner(System.in); System.out.print("Enter Principle Amount : "); principle = sc.nextInt(); System.out.print("Enter rate od interest : "); rate = sc.nextDouble(); System.out.print("Enter time period in years : "); years = sc.nextDouble(); double maturityAmount = (principle*(Math.pow(1+(rate/100),years))); System.out.println("Maturity Amount after " +years+ " years is : "+maturityAmount); } public void reccuringDeposit(){ int monthlyInstallmentPayment,months; double rate; Scanner sc=new Scanner(System.in); System.out.print("Enter Monthly payment : "); monthlyInstallmentPayment=sc.nextInt(); System.out.print("Enter Number of months : "); months=sc.nextInt(); System.out.print("Enter rate of interest : "); rate=sc.nextDouble(); double maturityAmount = ((monthlyInstallmentPayment*months)+(monthlyInstallmentPayment*(months*((months+1)/100)))*(rate/100)*(1/12)); System.out.println("Maturity Amount after " +months+ " months is : " …

Member Avatar
1
165
Member Avatar

This is Python 3.4.2 The documentation says that s2 = s1.strip('a') will strip out all the 'a' in s1. When I run it, only the leftmost character - and only if it is 'a' - is stripped. The default s2 = s1.strip() takes out all whitespace. PS: I understand that the chars in () are a list. This is from an IDLE shell: >>> s2 = 'qazxswedc'.rstrip('x') >>> s2 'qazxswedc' (Also with .lstrip('x') and .strip('x') ) Have I found the very last bug in Python?

Member Avatar
0
7,375
Member Avatar

I was doing GUI based application, when i run the MyChatPage particularly, it able to send the text to the server and send to the client textarea, which is my objective, but if i run from MyChatIP class and create new object to open the MyCHatpage frame, it will hang, and i know is because due to the run() method from MyChatpage that i called the question is, if i not allowed to call the run()method in MyCHatIP, the what i suppose to do to make it run automatically when open the MyChatPage frame without hang, so i able to …

Member Avatar
0
401
Member Avatar

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much appriciated

Member Avatar
0
36,420
Member Avatar

How can I show a div when menu item is clicked in angular? The Div show fine when I click list item, but dsn't disappear when I navigate to other menu items. <li><a class="nav-link slots" (click)="showme = true" >Slots</a> <div ng-hide="showme"> <div class="ribbon" *ngIf="game.categories[0]"> <span>TOP</span> </div> <div class="ribbon" *ngIf="game.categories[2]"><span>NEW</span></div> </div> TS file: showme : boolean = false;

Member Avatar
1
516
Member Avatar

which code can i use to make enemy shoot at the player non stop and when the bullet catches the player the health decreases any kind of help i appreciate - pygame

Member Avatar
0
115
Member Avatar

Hi all I Have a CalendarvProject with a 3rd party Calendar control. the application was working fine untill I upgraded the Calendar Control . When I opened the solution two references were no longer availabe, so I had errors. One of the references was ExtremeCalenderControl the other AxXtremeCalendarControl. I was able to find the ExtremeCalenderControl but can't seem to find ExtremeCalenderControl. I contacted support for the Calender Control but they said they weren't responsible with what Microsoft does. So I need help to where can I find this reference. Thank you in advance.

Member Avatar
0
134
Member Avatar

Hello! I am creating a turtle code where I want to create multiple circles on a map. However, my turtle is currently coninuing to go around in a circle over and over again, and so the other circles cannot happen. Any help or advice will be greatly appreciated! Thanks! This is my code: def mapofbins(): #sig: str -> turtle #campus map is the background #shows where on campus the compost bins on a campus map #setting the background image screen = turtle.Screen() screen.setup(600,500) screen.bgpic("campusmap") #creates a circle around x circle = turtle.Turtle() circle.speed(0) circle.penup() circle.forward(50) circle.right(90) circle.forward(50) circle.pendown() while True: …

Member Avatar
0
191
Member Avatar

Hi, guys i am trying to create a String in the Windows Registry to imput some nice Proxy Adress. But i failed to input the correct datatype. I do not have any problems with Type (DWORD)... But (REG_SZ) has not work. Can someone tell me how can i input in the Registry a HTTPs Adress like "HTTPS://www.google.com" as a test. :) Thank you Below my code the secound part works fine :) I am struggling with REG_SZ :( #include <iostream> #include <Windows.h> void add_proxy() long pro; HKEY hKeyp; // under this field should be the Type REG_SZ to input a …

Member Avatar
0
476
Member Avatar

I am doing a project that must convert each string in X to an integer and save it in the corresponding location in Y. A dollar sign is used to mark the end of a string. I have 90% of the code, but it only works for the first string value. How can I step through this so that it does all the strings in the array. [CODE]include irvine32.inc .data X byte "12345$", "-12345$", "99999$", "-99999$" ;Strings to be converted. Y sdword 4 dup (?) .code start: mov esi, offset X cmp byte ptr [esi],'-' je negative ;if X ='s …

Member Avatar
0
5,834
Member Avatar

What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you find these snippets somewhat helpful in your learning process in the comments section at the end.

Member Avatar
1
20,990
Member Avatar

Hi guys, I was trying to test a method which takes a user input, does something and then returns that input but I'm having some issues with it. I've attempted a few solutions, mostly described in SE, I will leaave them out of this post and discuss instead the one that seemed the most likely to work instead. This is the method that I'm trying to test (other code omitted for brevity): public int getUserInput() { int choice = 0; boolean isValidInput = false; System.out.printf("Welcome. Select action: %d for READ, %d for CREATE, %d for UPDATE, %d for DELETE, %d …

Member Avatar
0
676

The End.