Member Avatar

Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got so far but cant seem to populate my code in order to build the tables with the specific data from a txt. been playing arround but cant seem to do this, can someone help? from tkinter import * import calendar import datetime import numpy as np import matplotlib.pyplot as plt from datetime import datetime datetime_object = datetime.strptime('Jun 1 2005 1:33PM', '%b %d %Y %I:%M%p') root = Tk() w, h = …

Member Avatar
2
329
Member Avatar

I'm new to this site and still fairlu new to PHP so not sure if this is were I need to place my question but here goes. I am currently trying to create a filter for my table using PHP. The filter options are already in my database; e.g I have a species column which currently contains Snake and Lizard. I have managed to get the options to display in a Dropdown list so when selected it correctly filters either Snake or Lizard, they work and filter correctly however the main problem I have is that when I select the …

1
46
Member Avatar

i want to display the stored image in fdpf.

Member Avatar
0
9,328
Member Avatar

/*******************************************************************************************************************| | Assignment 2 | | Program is meant to extract a record from each file and create a new file for each record | | Programs creates a new directory and uses the directory for each new file | | | | written by Raymond Chappel | | | ********************************************************************************************************************/ import java.io.*; import java.io.File; import java.util.Scanner; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Chappel_R_a1B { public static void main(String argv[]) {//start main //----ask user for name of file they wish to input, used Data Structures and Abstractions with Java texbook by Frank …

Member Avatar
0
134
Member Avatar

--Hi DaniWeb. I have been doying bulk data Uploads from Excel Sheet to MySql data base and hence thought that I may need the reverse of this process and so Export MySql Tables into Excel Format for Backup purposes (I also will be happy for a better suggestion for a better data backup solution if is any from this like saving them in .sql readable format and ready for upload Programatically as the way is there if I go to Php Myadmin). For now I just wanted to have something of the sort as I alredy have a mechanism for …

Member Avatar
1
3,304
Member Avatar

can anyone help me to make an app

Member Avatar
1
119
Member Avatar

Making a scrolling space shooting video game in C# where the player will fight one on one with their opponent. I was able to figure out how to make the missile go up if the opponent was above the player. But, I can't seem to make it work if the opponent is below or right infront of the player. Can someone help me? I know the answer is right under my nose. The function below handles the movement of the missile void movemissile() { foreach (Control y in this.Controls) { if (y is PictureBox && y.Tag == "missile") { //y.Left …

Member Avatar
1
210
Member Avatar

This button page implements "window.open()" to open a new window. I would like to ask how I can automatically bring the button page to focus if I am browsing another page and the button page is not closed. I don't want to use "window.open" again to bring the button page to focus. Before, I tried to execute a certain page in the background, and then I wanted to use the "window.location.href" to a page that open a new window of the button page after a period of time, so that the button page becomes the focus of execution, but I …

Member Avatar
0
95
Member Avatar

Good day ^^ I want to create a program using tasm that will tell if the inputted string is a palindrome or not....but i don't know how will i get the first and last char to compare..unlike in C..i can use the strlen....XD Please make the codes very simple ^^..tnx in advance XD

Member Avatar
0
3,325
Member Avatar

Homework

Member Avatar
2
117
Member Avatar

how to paste program in turbo c++ ?

Member Avatar
1
124
Member Avatar

Trying to have a script built that locks the content until user refers a friend to signup, then they are granted access. They have a set amount of time, as a timer counts down or their account is deactivated. Its for a game we are creating and want to use this type system. Is there anyone who has done this? I have hired someone to build it but i see lol he doesnt know what he is doing......help please.

Member Avatar
1
102
Member Avatar

Hello

Member Avatar
1
74
Member Avatar

I have a SQLite database that for some insane reason stores dates as the number of days since 1899-12-31. I want to create a view that will display the date as an actual date. I can calculate a specific date from a specific day number as select date('1899-12-31','Localtime','+44386 day') as dddd which returns the single value '2021-07-09'. Unfortunately there seems to be no way to replace the hard coded number with the 'day' column. The original table also has the data broken down by hour (thus the GROUP BY clause), and by data_out and data_in (thus the SUM) So far …

Member Avatar
0
30
Member Avatar

I am trying to run my game in Python, with Pygame. However, I am presented with a black screen, but my game shows up for a fraction of a second after I exit the Shell. What's wrong with my code, I think it's an issue with my timer. # Import library import pygame, sys, random, math import os import time # Initialise game engine def draw_miner(screen,x,y): pygame.draw.ellipse(screen,black,[35+x,35+y,25,25]) def draw_gold(screen,x,y): pygame.draw.ellipse(screen,black,[40+x,40+y, randint(20,370), randint(20,370)]) pygame.init() # Examples black = (0, 0, 0) white = (255, 255, 255) green = (0, 255, 0) red = (255, 0, 0) blue = (0, 0, 255) …

Member Avatar
0
3,376
Member Avatar

Task is to create a basic calculator using double value and sentinel. I cannot figure out how to get the array to avoid counting the sentinel. To me, it looks like I've put in safeguards such as only looping if the value is >=0, but it still counts, lists, and even adds the sentinel number to the final result. I've tried changing the while statement to !=-1 with no change in the results. I'm a complete Java newbie (obviously), and have tried many options, but can't find the right one. package arraypractice; import java.util.ArrayList; import java.util.Scanner; public class CashRegister /** …

Member Avatar
0
49
Member Avatar

Im new to python , trying to update my self from the time of ASP Classic. In that time i use to have a page for vars that i included in my main page. I like that method because i can keep all my vars organized. I tried to do that with python but allways get errors, yes i tried declare them as global as well but still got errors. Is there a way to do that with python or is it better to declare them as you go? thanks

Member Avatar
0
49
Member Avatar

Hi.please support my mobile

Member Avatar
0
73
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,404
Member Avatar

Hello helpers, I'm having a problem with sorting (3rd column) a flat file. flat file looks like this: 20210103|~|3 jan 2021|~|Harold|~|m| 20210121|~|21 jan 2021|~|Elly|~|f| 20210213|~|13 feb 2021|~|Silvy|~|f| 20210330|~|30 mrt 2021|~| George|~|m| Now I want to save it in a new flat file sorted on the **3rd column** Result: 20210121|~|21 jan 2021|~|**Elly**|~|f| 20210330|~|30 mrt 2021|~|**George**|~|m| 20210103|~|3 jan 2021|~|**Harold**|~|m| 20210213|~|13 feb 2021|~|**Silvy**|~|f| I already have a code for making new flat file but I'm stuck on sorting 3rd column, The sorting does not work. Can somebody help me by adding the code for sorting correctly please? Code I already have: <?php $data …

Member Avatar
1
71
Member Avatar

I kind of figured out how to put a pause in my 2d game when the player shoots. The problem is that when the player shoots once, the game will continue to shoot continously, even after the player has stopped shooting. Can someone please help me? void Bullet()//draws the players ship ammo { PictureBox bullet = new PictureBox(); bullet.SizeMode = PictureBoxSizeMode.AutoSize; bullet.Image = Properties.Resources.Shoot; bullet.BackColor = System.Drawing.Color.Transparent; bullet.Tag = "bullet"; bullet.Left = playersuper.Left + 100;//moves bullet left or right bullet.Top = playersuper.Top + 50;//55 is perfect this.Controls.Add(bullet); bullet.BringToFront(); shootimer.Interval = 1000; shootimer.Enabled = true; } private void shootimer_Tick(object sender, EventArgs …

Member Avatar
0
141
Member Avatar

Parent class with three child classes

Member Avatar
0
73
Member Avatar

Microscopic Multiply We want to simulate a small square surface of an area with micro-organisms (like bacteria) and how they spread every cycle of life (iteration) on this surface. This surface is 2-D, its size is nxn and each 1x1 space forms a block. Each can be empty or hold a micro-organism. Every cycle of life (iteration) the micro- organism can either leave the block (this block on the surface will become empty) or stay on the block. An empty surface can attract new micro-organisms or can stay empty. NOTE: When a microorganism leaves the surface, it just flies into …

Member Avatar
1
805
Member Avatar

<CODE BLOCK> is It a good IDE?

Member Avatar
0
115
Member Avatar

I had button code to print data in data grid view on vb.net program. But when I click on print all times it show print preview lost first of record. this is my code Dim mRow As Integer = 0 Dim newpage As Boolean = True With dgvreciept Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) fmt.LineAlignment = StringAlignment.Center fmt.Trimming = StringTrimming.EllipsisCharacter Dim y As Single = e.MarginBounds.Top Do While mRow < .RowCount Dim row As DataGridViewRow = .Rows(mRow) Dim x As Single = e.MarginBounds.Left Dim h As Single = 0 For Each cell As DataGridViewCell In row.Cells Dim rc As …

Member Avatar
0
1,256
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
80,498
Member Avatar

1. Use two-dimensional array with size 7 columns and 5 rows. 2. Seat numbers are populated during run-time. 3. User is asked to input a seat number. 4. Seat number chosen is replaced by 0. 5. Program displays a remark “Seat successfully reserved” when reservation is done. 6. User is not allowed to reserve a previously reserved seat. Display “Seat is taken” remarks. 7. User is not allowed to enter an invalid seat number. Display an error message. 8. Program continuously loops.

Member Avatar
1
39
Member Avatar

how do i see the youtube aglorythm?. i dont know how i see it.

Member Avatar
0
114
Member Avatar

Hi Everyone, I am looking for a way to add a username to confirm a seat choice for certain weeks, I already have the PHP Code to confirm the seat when choosing but on the image i would like for it to display the username so other people know its taken and by who. The seats are ordered from 1 - 10 and the dealer seat is not available. I have an image and i know its going to require CSS, Jquery and PHP to do this. Attached is the image for the seats. Starting at the dealer(middle top) going …

Member Avatar
0
160
Member Avatar

So, I’m trying to capture and store wave height data and cache it in a file based on the fetch timestamp in local time. I have hit an error with the last section. Here is the error - d = sorted(data['hours'], key=lambda i: i['time']) TypeError: list indices must be integers or slices, not str I have tried to fix it but I have no idea how to. Here is the full code - import requests import datetime import calendar from datetime import datetime as dt import json cache_file = 'response.json' data = [] weekno = datetime.datetime.today().weekday() #to find date if …

Member Avatar
0
138

The End.