thank u for helping

Member Avatar
Member Avatar
+0 forum 1

Hey how do you install pyHook with pip? pip installs everything for me but pyHook, when trying to install pyHook it says: Could not find a version that satisfies the requirement pyhook (from versions: ) No matching distribution found for pyhook How can i fix this? i have got windows 10 and a 64 bit pc with python 3.6.3 and this pyHook: pyHook-1.5.1-cp36-cp36m-win_amd64 Thanks for helping

Member Avatar
Member Avatar
+0 forum 1

I use below code to backup mySQL database. I want to save sql database by save file dialog. I use this, Sub CreateBackupc() Dim mysqldumpPath As String = "C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin\mysqldump.exe" Dim host As String = "localhost" Dim user As String = "root" Dim pswd As String = "mysql" Dim dbnm As String = "mcs" Dim cmd As String = String.Format("-h{0} -u{1} -p{2} {3}", host, user, pswd, dbnm) SaveFileDialog1.Filter = "SQL Files (*.sql*)|*.sql" If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK _ Then My.Computer.FileSystem.WriteAllText _ (SaveFileDialog1.FileName, "mcs.sql", True) Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo() startInfo.FileName = mysqldumpPath startInfo.Arguments = cmd startInfo.RedirectStandardError …

Member Avatar
Member Avatar
+0 forum 6

This is my custom module: [CODE]class Player(object): def __init__(self, name, score = 0): self.name = name self.score = score def __str__(self): rep = self.name + ":\t" + str(self.score) return rep def ask_yes_no(self, question): response = None while response not in ("y", "n"): response = input(question).lower() return response def ask_number(self, question, low, high): response = None while response not in range (low, high): response = int(input(question)) return response[/CODE] The program: [CODE]import games, random print "Welcome to the world's simplest game!\n" again = None while again != "n": players = [] num = games.ask_number(question = "How many players? (2-5): ", low = …

Member Avatar
Member Avatar
+0 forum 10

Hi Friends i am trying to isert this data to mysql database. However I cannot get this done because I do not know what is happening. I would appreciate any help. This is the code <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <div id="wrapper"> <div class="box-header"> <h2>NEW USER</h2> </div> <form action="" method="post"> <legend>information</legend> <fieldset style="float: left; width: 40%"> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-user"></i> </div> <input type="text" name="name"/> </div> <div class="input-group"> </div> <input type="text" name="f_name"/> </div> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-phone"></i> </div> <input type="number" name="phone_no" class="form-control"/> </div> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-flag"></i> …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am testing a Tcp client C# windows form application I am able to send data to Tcp server Software(Hercules 3.2.8) But when i sent data from Tcp server to windows form then i am getting the following error: System.InvalidOperationException: Cross-Thread operation not valid: Control 'MessageList' accessed from a thread other than the threa it was control on. at System.Windows.Forms.ListBox.ObjectCollection.Add(Object item) at WindowsFormsAppication1.Form1.MessageCallBack(IAsyncResult ar) in From1.cs:line 55 Line 44 is at Messagelist.items.Add(response); public partial class Form1 : Form { Socket sck; EndPoint remoteEp; byte[] buffer; IPAddress ip = IPAddress.Parse("192.168.42.143"); int port = 8061; public Form1() { InitializeComponent(); } private …

Member Avatar
Member Avatar
+0 forum 1

Hello Guys, So im a student at 12 grade and im trying to build a website from scratch and i've been successfull until now, i've been stuck in this error for 2 or 3 days, i cant send the text area + other input to database at the same type and when i do it goes in separate ways example in 1st print. <textarea name="txtDesc" row = "50" cols = "50" id="txtDesc"></textarea> <?php if(isset($_POST['formSubmit'])) { $con = mysql_connect ('localhost','usename','password') or die(mysql_error()); mysql_select_db('database') or die(mysql_error()); $desc = ($_POST['txtDesc']); $sql = "INSERT INTO registo_anomalias (`desc`)"."VALUES('$desc')"; $result = mysql_query($sql) or die(mysql_error()); } ?> …

Member Avatar
Member Avatar
+0 forum 1

So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is a rendering of the page up to the first error" <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="fonts.css"> <link rel="stylesheet" href="normalize.min.css"> <link rel="stylesheet" href="main.css"> </head> <body> <section> <header> <!-- TOP SECTION OF THE LETTER --> <div id="name-address-from"> …

Member Avatar
Member Avatar
+0 forum 2

Hi, first timer here so sorry before hand if I forget to mention something. My code run the window fine but when I hit the calculate button I receive an error message. Firstly this is my code package Chapter12; import javax.swing.*; import java.awt.event.*; public class TheaterGUI extends JFrame { JTextField adultTicketPriceTextField; JTextField adultTicketSoldTextField; JTextField childTicketPriceTextField; JTextField childTicketSoldTextField; public TheaterGUI() { final int windowWidth = 350; final int windowHeight = 275; setTitle("Theater Revenue "); setSize(windowWidth, windowHeight); JButton button = new JButton("Calculate "); button.addActionListener(new buttonListener()); JTextField adultTicketPriceTextField; adultTicketPriceTextField = new JTextField(20); JTextField adultTicketSoldTextField; adultTicketSoldTextField = new JTextField(20); JTextField childTicketPriceTextField; childTicketPriceTextField = new …

Member Avatar
Member Avatar
+0 forum 5

Hello, this is my first post here. I'm playing around with Gtk+ and Xlib. I'm trying to get the X window ID of the active window, and then display that ID in a Gtk label. However, when I run it, it seg faults. I've narrowed it down to `XGetInputFocus`, but I'm stuck, because it seems like I'm supplying it with the parameter types it needs. All three parameters are `*Display`, `*Window` and `*int`, which is what I'm supplying it, according to https://tronche.com/gui/x/xlib/input/XGetInputFocus.html 1. What am I doing wrong? 2. Also, when I compile with `gcc -Wall `pkg-config --cflags gtk+-3.0` -o …

Member Avatar
Member Avatar
+0 forum 1

There's no compiling errors but for some reason I'm always directed to the "Invalid Choice" option after inputing my desired password length. Any advice on how to repair this glitch? Thanks. import java.util.Scanner; import java.util.Random; public class Password { public static void main(String [] args) { Scanner in = new Scanner(System.in); Random randNum = new Random(); String upperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String lowerCase = "abcdefghijklmnopqrstuvwxyz"; String symbols = "!@#$%^&*()_+{}|<>?[]=-"; String numbers = "1234567890"; System.out.println("Password Generation Menu"); //Determine Character Sets System.out.println("[1] Lowercase Letters)"); System.out.println("[2] Lowercase & Uppercase Letters)"); System.out.println("[3] Lowercase, Uppercase, and Numbers"); System.out.println("[4] Lowercase, Uppercase, Numbers, and Punctuation"); System.out.println("[5] Quit"); //Determine …

Member Avatar
Member Avatar
+0 forum 4

please help me ... i have a problem in my VB.net software when i transit it to another computer the crystal report asking for userName and PassWord . I programming it by visual Basic and Access DB .

Member Avatar
Member Avatar
+0 forum 1

Hello Everyone

Member Avatar
-1 forum 0

I just did the latest updates to Microsoft Office 2016. But after updates I cannot open one very important .RTF document. I click the file to open, the following message came: 'Check the file permissions for the document or drive.' So i uninstalled it and reinstalled Office and same thing. What's wrong? Any solution for this issue?

Member Avatar
Member Avatar
+0 forum 2

So I have to write a program that takes the amount and weight of pumpkins entered by a person and then outputs them back with their corrisponding weight class that i specify. I keep getting a syntax error on the elif statement and I was wondering if i could have some guidance as to what I'm doing wrong. The code is listed below, Thank you in advance ! def intro(): print("Program to calculate the average of a") print("group of pumpkin weights.") print("You will be asked to entr the number of") print("pumpkins, followed by each pumpkin weight.") print("Written by Gregory Navestad.") …

Member Avatar
Member Avatar
+0 forum 2

I wrote the code that using txt file, but error "0 [main] assignment4 16012 cygwin_exception::open_stackdumpfile: Dumping stack trace to assignment4.exe.stackdump" is only thing that printed to console. Here is my code. #include <stdio.h> int main() { FILE *fp; char buff[255]; fp = fopen("moby_dick.txt", "r"); printf("%c\n", fgetc(fp)); fscanf(fp, "%s", buff); printf("1 : %s\n", buff ); fgets(buff, 255, (FILE*)fp); printf("2: %s\n", buff ); fgets(buff, 255, (FILE*)fp); printf("3: %s\n", buff ); fclose(fp); }

Member Avatar
Member Avatar
+0 forum 1

I made first board, but when I use function next_generation, it prints wrong result. For example, since first board is 01000 00100 11100 00000 00000, next one should be 00000 10100 01100 01000 00000 . But my program prints 00000 00100 01100 00000 00000. Here is my code. #include <stdio.h> #define WIDTH 10 #define HEIGHT 10 int lifegame[WIDTH][HEIGHT]; int x; int y; void initialize(){ for (x=1;x<WIDTH;x++) for (y=1;y<HEIGHT;y++){ lifegame[x][y]=0; } } void next_generation() { for(x=1;x<WIDTH;x++) { for(y=1;y<HEIGHT;y++) {int count=0; if(lifegame[x-1][y-1]==1){ count++;} if(lifegame[x-1][y]==1){ count++;} if(lifegame[x-1][y+1]==1 ){ count++;} if(lifegame[x][y-1]==1 ){ count++;} if(lifegame[x][y+1]==1){ count++;} if(lifegame[x+1][y-1]==1){ count++;} if(lifegame[x+1][y]==1){ count++;} if(lifegame[x+1][y+1]==1){ count++;} if(lifegame[x][y]==0 && count==3){ …

Member Avatar
Member Avatar
+0 forum 5

I use cPanel hosting sometimes the error message "500 Internal Server Error" when accessing your website. Help me how to fix it ?? Thanks

Member Avatar
Member Avatar
+0 forum 2

I am following this **tutorial** to display **custom opacity control** in wordpress **default** color picker scheme, [Click Here](https://github.com/BraadMartin/components/tree/master/customizer/alpha-color-picker) i want my color picker looks like this, after adding opacity bar. ![dani.PNG](/attachments/large/4/735831d60c76788bcc1ce819a383ce49.PNG "align-center") I am using **twenteen seventeen theme** to display alpha color picker in the **apperence->customize->text**, but it is only showing the alpha text field with default set value. kindly help me thanks in **advance**

Member Avatar
+0 forum 0

#include<iostream.h> void main() { int a,b,r; cout<<"a=";cin>>a; cout<<"b=";cin>>b; while (r!=0) { r=a%b; a=b; b=r;} cout<<"cmmdc="<<a;

Member Avatar
Member Avatar
-1 forum 2

So I have the following code contained within a class labeled book. public void setPublication(int bookVersion, String bookISBN, double bookPrice) { bookVersion = pub.setVersion(bookVersion); bookISBN = pub.setISBN(bookISBN); bookPrice = pub.setPrice(bookPrice); It refers to the following class, called publication. //Getter method to get the book ISBN public String getISBN(String bookISBN){ return ISBN; } //Getter method to get the book Version public int getVersion(int bookVersion){ return version; } //Getter method to get the book Price public double getPrice(double bookPrice){ return price; } //Setter method to set the book ISBN public void setISBN(String bookISBN){ ISBN = bookISBN; } //Setter method to set the …

Member Avatar
Member Avatar
+0 forum 2

Please I have an autocomplete textbox which fetches value from a tabe in the database. But after i choose the name i want to get the id of the value selected and save it in the database. Am using mysql and c#. using (MySqlConnection con = new MySqlConnection(MyConString)) { connection.Open(); string command = "select * from suppliers"; MySql.Data.MySqlClient.MySqlCommand myCommand = new MySql.Data.MySqlClient.MySqlCommand(command, connection); MySqlDataReader reader = myCommand.ExecuteReader(); AutoCompleteStringCollection MyCollection = new AutoCompleteStringCollection(); while (reader.Read()) { MyCollection.Add(reader["Name_of_Supplier"].ToString()); } txtSupplier.AutoCompleteCustomSource = MyCollection; connection.Close(); }

Member Avatar
Member Avatar
+0 forum 7

Hi, I have written a code for Roman Numeral basic mathematical operation in C++. How to do unit testing for it/ How to write unit testing program for it? Here is the code: #include <iostream> #include <string> using namespace std; //Function to convert decimal number to roman string decimal_to_Roman(int number) { string roman = ""; while (number > 0) { if (number >= 1000) { roman += "M"; number -= 1000; } else if (number >= 500) { roman += "D"; number -= 500; } else if (number >= 100) { roman += "C"; number -= 100; } else if …

Member Avatar
Member Avatar
+0 forum 4

Hello, I was testing a class in a GUI, and that error message showed up. Please help. Code: [CODE]from Tkinter import * class Application(Frame): def __init__(self, master): super(Application, self).__init__(master) self.grid self.create_widgets() def create_widgest(self): self.bttn1 = Button(self, text = "I do nothing!") self.bttn1.grid() self.bttn2 = Button(self, text = "Me too.") self.bttn2.grid() self.bttn3 = Button(self, text = "Same here..") self.bttn3.grid() root = Tk() root.title("Lazy buttons") root.geometry("200x100") app = Application(root) root.mainloop[/CODE]

Member Avatar
Member Avatar
+0 forum 11

Hello everyone! Basically a user is able to select one or multiple rows using checkboxes in a GridView and then a delete button which deletes selected rows. The problem is, the code behind for deleting works until I started using UpdatePanel. It just broke and I have no idea what went wrong. Here's my ASPX code; <asp:UpdatePanel ID="upl" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="serverclick" /> <asp:AsyncPostBackTrigger ControlID="GvGrade" /> <asp:PostBackTrigger ControlID="BtnRegister" /> </Triggers> <ContentTemplate> <asp:GridView ID="GvGrade" runat="server" AutoGenerateColumns="false" ClientIDMode="Static"> <Columns> <asp:TemplateField HeaderText="Task ID" HeaderStyle-HorizontalAlign="Center"> <HeaderStyle Width="100" BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <ItemStyle HorizontalAlign="Center" /> <ItemTemplate> <asp:Label ID="lblID" CssClass="lblID" runat="server" Text='<%# Eval("drug_id") %>'></asp:Label> </ItemTemplate> …

Member Avatar
Member Avatar
+0 forum 2

Can anyone help me out to create multiple check boxes for attendance purpose

Member Avatar
Member Avatar
-2 forum 1

Using Crystal Reports XI, and using the command feature with this simple query: select Field1 AS Item, Field2  AS Customer from Server.DB.dbo.Table whereField1 =   {?Parameter_String} Returns an error: Conversion of Value overlowed an Int Column. If the parameter value is one that matches a record, it works. If the value is hard coded, then zero records are returned and there is no error - it works. If the parameter value is one where no records match, then the error occurs.

Member Avatar
Member Avatar
+0 forum 1

My computer was working fine until today I opened it up and clicked the power button then I realized that it was not working. I then proceeded to hold it after a while I can hear the fan start up but nothing else when I let go of the power button it stops I have one light on the lightbulb light so I guess it's still on but when I plug in the charger it doesn't charge it's been like this for a while now help

Member Avatar
Member Avatar
+0 forum 5

I wonder how to handle exception in `ResponsesEntity`. When it receive wrong url, it supposes to go to the `catch` block and display the `log`. But I keep getting error message in console. The `try-catch` not working as it not display log message. @GetMapping("abc/{Id}") public ResponseEntity info(@PathVariable("Id") String id) { HttpEntity httpEntity = new HttpEntity(buildHttpHeaders()); String theUrl = url + "/xxx ..."; ResponseEntity<TDto> responseEntity = restTemplate.exchange(theUrl, HttpMethod.GET, httpEntity, TDto.class); TDto tdto = responseEntity.getBody(); Tran tran = new Tran(); try { tran.setDate(new Date()); tran.saveAndFlush(tran); // save to database }catch(Exception e) { log.info("Log: "+e); } return responseEntity; } Error org.springframework.web.client.HttpClientErrorException: 404 Not …

Member Avatar
Member Avatar
+0 forum 3

hi there, I'm coding in windows, c++, but when I traslate my code to ubuntu, g++, I get this error: [B]lvalue required as left operand of assigment[/B] This is the line where I get the error: [COLOR="Red"][/COLOR][CODE]&*raiz=&*p;[/CODE] What could be the problem? *raiz and *p are pointers to an avl structure: [CODE] typedef struct nodo{ int dato; int fe; int color; struct nodo *izq; struct nodo *der; struct nodo *padre; }nodo; typedef struct nodo *avl; [/CODE] and this is the method where I have the problem: [CODE] void RSD(avl *raiz){ avl *p; p=new avl; *p=NULL; avl *q; q=new avl; *q=NULL; …

Member Avatar
Member Avatar
+0 forum 11

The End.