3,013 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Liam_12

I have been looking for a good way to embed vlc in a python tkinter frame. I found a script on stackexchange that does the basic work, but - to embed the vlc in a frame - the script relies upon an oop technique I have asked about before but …

Programming python
Member Avatar for Reverend Jim
1
861
Member Avatar for Logic_Brown

I found this peaice of code to import a Access database table to sql server Private Sub btnImport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImport.Click Dim fileName As String = "" Dim ofd As New OpenFileDialog If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then fileName = ofd.FileName PerformImportToSql(fileName) End If End …

Member Avatar for SoftBa
0
592
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to implement the Type-safe Builder pattern using Kotlin. This pattern allows developers to create declarative and concise DSLs. Our implementation will be a Burger Builder that enables our users to create Burger objects expressively. ## Goals ## At the end of the …

2
412
Member Avatar for mir_sheely

I am in trouble. I need to convert a signed 16-bit Hexadecimal no to short. Say I have a string s = "f2f7" Which is a negative number and lies in the range -32768 to 32767 so is the range of type short. But when I do short num ; …

Member Avatar for Andrey_7
0
1K
Member Avatar for Mohamed_167

I am attaching my complete code. I am not able to get why doesn't my KeyListener work. None of the KeyListener events are fires on pressing the keyboard. Please have a look and tell me the flaws in my code package swing; //First Class (separated class) import javax.swing.JFrame; public class …

Member Avatar for JamesCherrill
0
486
Member Avatar for GLentooth

hi i just came here if theres someone who coudl help me with my problem whenever i add a new user this keeps on appearing\ "INSERT INTO teacher_info (firstname,middlename,lastname,gender,address,date_joined,username,password) VALUES ('John','Doe','Doenut','Male','New york USA','2021-06-11','john','admin') Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of …

Member Avatar for pritaeas
0
229
Member Avatar for ianhaneybs

I have managed to get blog posts displayed from each blog category but I want to limit it to 1 article from each blog category but unsure how to do it in the sql query I have, below is what I have so far (SELECT BP.postID,postTitle,postSlug,postDesc,postDate,postImage FROM blog_posts BP, blog_post_cats …

Member Avatar for le5691
0
60
Member Avatar for razstec

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 …

Member Avatar for Schol-R-LEA
2
492
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to create a Spring Boot application that provides RESTful API Endpoints. These endpoints are best consumed by other applications or for integrating with a SPA (Single Page Application) frontend such as Angular. For the purpose of this tutorial, we will create a …

2
344
Member Avatar for rajii93
Member Avatar for Dorian_3
1
373
Member Avatar for Ricky_4

Hello I am currently learning Android app development, and using Android Studio 4.1.3. I have noticed that when I run any project, even like a simple "Hello World", the Gradle build takes more than 10 minutes to complete. I have a laptop which is a Core i5 7th Gen, with …

Member Avatar for jwenting
1
111
Member Avatar for Rahul47

Hello fellas, recently i hit upon an to develop a small program to lock screen. As a part of it, I need to lock taskbar from functioning, i.e should not show up when pressed Start Button, or Ctrl + esc or not even Ctrl + alt + Del. I dont …

Member Avatar for Rythorian
0
792
Member Avatar for Suraj_45

i need to show the image displayed in database but it shows default image <?php $link = new PDO("mysql:host=localhost;dbname=campusdrive", "root", ""); $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $Sql = "SELECT Image FROM student_form WHERE Sessionid = :Sessionid"; $stmt = $link->prepare($Sql); $stmt->bindParam(":Sessionid", $sessionid, PDO::PARAM_STR); $sessionid = session_id(); $stmt->execute(); $count = $stmt->fetchAll(); if($users = $stmt->fetchColumn()){ echo …

Member Avatar for Dani
0
116
Member Avatar for ajmeel

Hello everyone, Hope you are doing , I am too much confuse to buy a gaming laptop for my younger brother, Someone suggest a website like https://pcmag.com, https://cartvela.com, and Techradar but there are too much content, I can't make a decision.

Member Avatar for Antone_1
3
4K
Member Avatar for TheBeast32

Hi, how would I use mouse_event to simulate the mouse wheel? I can only do clicks. [Code=C++] void Left_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0); } void Right_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); …

Member Avatar for Oliver _2
1
514
Member Avatar for complete

What are the pros and cons of plain PHP or Classic ASP? PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with …

Member Avatar for Dani
1
111
Member Avatar for Andrea_25

Hi guys. I have just created an intranet in my online store and I'm new at programming so need some help. I'm developing a system that makes this possible: when a user registers, the database detects that they are already a customer who has bought previously and it makes their …

Programming database php sql
Member Avatar for Dani
1
82
Member Avatar for soibac

Hi all, I have 2 form and a main.py in the project: ffrend.py and fmain.py main.py: from PyQt4 import QtCore, QtGui from fmain import * if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() app.exec_() fmain.py (there is a button to execute …

Member Avatar for RespectedCow
0
10K
Member Avatar for harshchandra

This is a simple archery Game developed in C language . The aim of the game is to shoot the balloons and score as much points as you can . The game have three levels. Platform used is Turbo C++ IDE . Standard Graphics.h functions are used.

Member Avatar for 26_Anuja
0
4K
Member Avatar for aphry1303

from sympy import Symbol, Derivative, cos import math pi= math.pi t= Symbol('t') function_t = 2*cos(2*math.pi*t)*2.718**(-(math.pi*t)/2) f1 = (function_t.doit().subs({t:1.5})) print("When t=1.5,", f1) I can't find a way to calculate cos in degrees in this function.

Programming python
Member Avatar for yqqwe123
0
246
Member Avatar for DB12

I am trying to connect MySQL(8.0.25) and python(3.8) using mysql.connector but getting the error: mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Windows 10 same code working for pymysql.connect the code used: import mysql.connector as sql s=sql.connect(host='localhost' ,user='root', password='<correct password>) The password I entered is the one …

Programming mysql python
Member Avatar for yqqwe123
0
192
Member Avatar for ianhaneybs

I am trying to output data for selected dates and think I have managed to do the sql query but it's currently not outputting the total amount, below is what it is currently outputting I am looking for the following From To Expense Category Expenses Total 01/01/2018 31/12/2018 Accounting Costs …

Member Avatar for michel.cote
0
113
Member Avatar for nalb4242

Hello , i am using free 3 of 9 barcode to create a bar code of each student in my DB , the problem that in my card it is not shown as it is supposed to be but as *98777* ![barCode.PNG](https://static.daniweb.com/attachments/4/73daedb60096264ee7decb34db04e4f4.PNG) so any one knows how i can solve …

Member Avatar for rproffitt
0
97
Member Avatar for techlifelk

``` if (credits >= 30) { pnlSuccess.setVisible(true); pnlpass.setVisible(false); busdocRef.update("onbus", FieldValue.arrayUnion(txtRFID.getText())); busdocRef.update("passengers", FieldValue.increment(1)); docRef.update("travelling", Data.busid); docRef.update("slat", slat); docRef.update("slon", slon); txtRFID.setText(""); Thread.sleep(2000); pnlSuccess.setVisible(false); pnlpass.setVisible(true); txtRFID.requestFocus(); } ``` This si the code But the pass pnl do not hide and the success panel do not show up

Programming java
Member Avatar for JamesCherrill
0
80
Member Avatar for nalb4242

Hello , i am creating new website using asp net and c# .. what i am basically doing is that i have somedata in my database and will let the user show them in report based on what he is gonna choose to display for example i have in my …

1
91
Member Avatar for Harry cruise

A grayscale digital image is a two-dimensional raster image in which the picture elements, or pixels, store a single value representing a shade of gray that varies from black to white. In a discrete grayscale image, the shades of gray are represented by integer values in the range [0 to …

Programming c c++ python
Member Avatar for Schol-R-LEA
0
302
Member Avatar for Essam_4
Member Avatar for SoftBa
0
267
Member Avatar for pawangupt

Hi, I am developing one web application. In which I want to display pdf file on the web browser by selecting the pdf file or any fixed pdf file. so, if anyone knows then please tell me the script code so will develop it for my web application. i will …

Member Avatar for akeane
0
186
Member Avatar for ray.chappel

/*******************************************************************************************************************| | 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 | | | …

Member Avatar for LohithS
0
180
Member Avatar for varmela

Create a table with following rules and regulations ma 1)Id should b identity 2)Name should allow only starting Letter with a to p 3)city should not allow Chennai,cbe, Salem 4) department should allo only cse,it,ece, 5) college default should b anna university 6) per should above only 70% 7) year …

Member Avatar for Schol-R-LEA
0
58

The End.