199,114 Archived Topics
Remove Filter ![]() | |
Hello, here is my code: import tkinter as tk import tkinter.font as tkFont from tkinter import ttk from tkinter import * root = tk.Tk() pressed = False class Example(tk.Frame): def _create_circle(self, x, y, r, **kwargs): return self.create_oval(x-r, y-r, x+r, y+r, **kwargs) tk.Canvas.create_circle = _create_circle def __init__(self, root): tk.Frame.__init__(self, root) self.customFont … | |
How can i show my website only display on a mobile phone not in pc. Here the sample website 2gud.com,this website content only shows in mobile not in desktop.Is there any plugin in wordpress? | |
Hi i am having a code to check the input and output rates of ports on few cisco mds switches. i will be saving yesterday and today values to two separate csv files. I am trying to write a python code where it will check the difference in values and … Programming python | |
I want to protect my site from hacking. Currently I know about XSS and SQL injection. Do I need to use mysqli instead of mysql? And why? When should I use `htmlentities()` and `striptags()`? I also don't want users to upload melicious files and since I accept file uploading, is … | |
Hi, In my application two fields are the user id and user name,i want to show the user name and user id along with other details in a html table. user id is a numeric dropdown menu and user name is text only.How can i show the specfic record in … Programming html-css javascript mysql | |
string minute = "15"; string minute2 = "20"; string minute3 = "27"; string minute4 = "02"; TimeSpan first = TimeSpan.Parse(minute); TimeSpan second = TimeSpan.Parse(minute2); TimeSpan Third = TimeSpan.Parse(minute3); TimeSpan fourth = TimeSpan.Parse(minute4); TimeSpan now = DateTime.Now.TimeOfDay; if (now == first|| now == second || now == Third || now == … | |
Hello, Iam new to programming.Can someone please help me out how can i read URL process it and return the number to browser in jsp. Actually I have a URL which returns an integer now what i want is I have to write a program to take the URL as … | |
The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/) | |
I am doing a java caesar cypher application and i need your help.I am supposed to Implement a Caesar cipher, both encoding, and decoding. The key is an integer from 1 to 25. This cipher rotates the letters of the alphabet (A to Z). The encoding replaces each letter with … Programming java | |
I have a very standard code where I use a CRUD interface on my Database. The issue is that every attempt I made to redraw/update the table with the new data [ $('.table').DataTable().draw(); ] has failed miserably. Here is my targeted code: function manageData(key) { var name = $("#countryName"); var … | |
Hi guys : Any help with this please! script1.py in 192.168.1.10 x = 10 script2.py in 192.168.1.20 if x == 10: print x else: print "sorry" how can apply this between two scripts in same network. Thanks for all | |
Im not sure what code to use as I am not that experienced with VBA. No matter what i try i cannot get this macros to stop once it reaches a blank cell in E column. Here is the code: Option Explicit Sub PDFTemplate() Dim PDFFldr As FileDialog Set PDFFldr … Programming pdf | |
[B]Hi all.. I need to do a condition check in a script. The same condition check needs to be repeated in another script. So, I am looking for a way, where i can set, say a flag in the first script ,upon meeting the condition, and be able to access … | |
I would like to fill in the empty spaces of a csv column and its in one column using phpexcel I have added a demo for your viewing: The flow check B2 is its not empty go the next B3 if B3 is empty take value from B2. Here is … | |
Hi, I haven't been on this community forum for quite a while. I have been getting an annoying problem with my file uploads (i.e. pdf documents), to my remote server. The upload_file form was working great for a long time, but just recently it stopped working. The problem there, was, … | |
<html> <head></head> <link rel="stylesheet" type="text/css" href="style.css" <body> <?php $db = mysqli_connect('localhost', 'root', '', 'formdb'); $formId = ''; $LastName = ''; $FirstName = ''; $Email = ''; $Birthday = ''; $Birthplace = ''; $Comment = ''; if (isset($_GET['upd'])){ $formId = $_GET['upd']; $results = mysqli_query($db, "SELECT * FROM tbl_form WHERE formId=$formId"); } … | |
I am having problems with this program. It assembles but will not run. it will not even start - anyone see the error? global _start section .data $STR00000 db "hello world",0 section .bss $u_exitcode resd 1 section .text extern _iwbstrcpy extern _iwb_finish extern _iwbprint _start: push rbp ; set up … | |
Hello I have java Script code was working but it crash in line 44 it says: > 437anxious.html:44 Uncaught ReferenceError: Particle is not defined at animate (anxious.html:44) My questions is " Particle is not define !! why it war defined and was working fine!! but i tried to play with … | |
Hello, I have a questions in TCP client to server communication: This is what is require me to do: First of all, if we run the program from multible command line or multible PC it will run the same program. ( of cource ) Second, the program should read from … | |
I am trying to calculate some thing called directional derivatives of a vector b (which defined in attached file as an example) to calculate the directional derivatives of the vector b . the result of the example is also in the attached file. I serached in goolge to find how … Programming python | |
How to display cart totals in right side in cart page Here the image link: https://prnt.sc/kys6oj In the above image link the cart page total display in left side i want to show cart totals in right side in cart page | |
Hi Is there any simple way or online website that can convert The numerical string like"123-322-14365" to regular expression? | |
On my page https://fiftyallstars.com/50/curriculum.html , I have some basketball drills loading from a google spreadsheet of mine. Only thing is after it loads, I can't seem to get the datepicker to show today's date. My players get confused by having to select the date each time, and I'd rather it … | |
Hello i'm to make a vacations script calculator <div id="content"> <form class="form-container"> <input class="emri" type="text" placeholder="Name"> <input class="mbiemri" type="text" placeholder="Last Name"> <input class="Vendosni-Datelindjen" type="text" placeholder="Birthday"> <select class="drop-down-select"> <option selected="selected" value="Select Zone">Select Zone</option> <option value="Zone A">Zone A</option> <option value="Zone B">Zone B</option> </select> <select class="drop-down-select"> <option selected="selected" value="Nr of persons">Nr of persons</option> … | |
Hi guys, I took it upon myself to learn the mysteries of linux. I'm trying to write a shell that can handle more than one pipe. Here's the code: [CODE] typedef struct command_link{ char *command; char *argv[MAX_ARGS]; int argc; struct command_link* next; int isPiped; }command_t; int pipedCommand(command_t *command) { int … | |
I am trying to process the data in a single file . i have to read the file and create a hash structure,get the value of fruitname append it to fruitCount and fruitValue and delete the line fruitName and write the entire output after the change is done.Given below is … | |
This is a program that ask input from the user about the characteristics of a gemstone then prints to the screen. Things like color, price and name. I have written it to an extend where the user enters all this and prints them out. Am now stuck where I should … | |
Hello i want to create an app -not native- to work with iOS, Android, and Windows. I am working with Ionic Framework to do that. A programmer told that i should use CodeIgniter because i am good with PHP. Whats your opinion about Ionic and CodeIgniter? | |
Hi Guys! I have a website but we don't host in GoDaddy or any hosting website, because we use SQL database. And we have a large database that we are using , the website is for productions. We store a lot of data. We use the IP address because we … | |
I have a Table that displays titled and first name columns and delete link on the 3rd column. Unfortunately for a reason i don't understand, records are not deleting when the Delete link is clicked. Please friends, help me figure out what's wrong here. Table <?php $user_id = $_SESSION["user_id"]; //brought … | |
hi people I am building a atm machine but havent actually coding it as yet, just the gui interface part i have done so far because i am doing something else at the moment but in between i would do someting with it. so i have put in an if … | |
Hello, I can't display images from database. I have folder called "images" next to index.php where I keep images. I suppose I have wrongly defined folder path with images or sth else. <?php $connection = new mysqli("localhost", "root", "", "crud"); $sql = "SELECT * FROM test"; $res = $connection->query($sql); if(@$res->num_rows … | |
Without going into each of the products pages and setting sidebar to appear on left, how can I code it into the woocomerce product single page using php? http://www.mabridalplus.com/?product_cat=bridal-wear | |
How to change the color of a cell(back or fore color) of listview item according to item value with if condition. I do it but it is not work and show no error Please help me...... For k = 0 To ListView1.Items.Count - 1 If ListView1.Items(k).SubItems(6).Text > 100 Then ListView1.Items(k).SubItems(6).ForeColor … | |
HI everyone, I recently inherited a project that has been in production for a number of years. They want a new field added. Easy peasy - or so you would think..... The solution is checked into Team Foundation (back in 2012), so I was able to get the code there … Programming visual-studio | |
Hi guys I was having issues with reading 3 files and merging them into an array, I tried fgetc, which then let me to have issues with sorting them so I tried to change my array and allocate a counter variable to get the size of it but not sure … Programming c | |
Hi All, I want to select specific drop down option to a selected post, for example the post is on Honda Fit, the the Drop Down should select Honda Fit automatically. The below code works fine but shows all posts instead of selecting specific to a post, e.g. select guid … | |
public class Gradesv2 { public static void main(String[ ] args) { //local variables int numTests = 0; //counts number of tests int testgGrades = 0; //individual test grade int totalPoints = 0; //total points for all test double average = 0.0; //average grade int test1 = 95; int test2 = … Programming daniweb-bug java | |
hello :) i wanted to know, how can i change the shutdown mode of my Windows Form Application, @ MS Visual studio 2010. i.e, my application should exit only when i close my last form.. & not when the main form is closed.. i remember, in .NET 2003 windows form … | |
I’ve created animated `rect` shape with **greensock**. It's not working on jsfiddle so created on [codepen](https://codepen.io/anon/pen/PdezOj) I’ve three shapes. I need help with following, 1. make it 100% height & width of viewport 2. it stops for a while before repeating, move `rect` without any gaps 3. they bacomes one … | |
Hello to all! I have added a jcombobox in a jpanel by dragging it from palette (Netbeans IDE). I am populating jcombobox with database without any problem. For example i have following 5 items in my jcombobox: Italy, Uganda, America, Canada, Austria When my jtable is focused and i type … | |
hai all, i want to convert indian rupees into words, is there any function in javascript or any useful links are appreciated.. how to convert indian rupees to words for ex 234.45=Two hundred thirty four rupees and fourty five paise only. this want for any number upto billions.. | |
I have written a bootloader in ASM (I can post code if you like) and I plan to write a kernel in C /c++ because I don't want to have to deal with a Kernel written ENTIRELY in ASM. Is there any way (Got to keep this under or at … | |
1) What I'm trying to do: Uploading a file with aws s3 and then taking the filename and filetype and placing it at the end of the url to save it in sql so that every time the person logs in, it will pull the picture up by user image … | |
I made a scraper for a web site, but I'm having problems runninf my code... #!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 import re # Get the links... html = urllib2.urlopen('http://www.blah.fi/asdf.html').read() links = re.findall(r'''<a\s+.*?href=['"](.*?)['"].*?(?:</a|/)>''', html, re.I) links_range = links[6:len(links)] # Scrape and append the output... f = open("test.html", "a") … | |
Hi, I have an application which sends mail wen a new post is made in my blog.my blog is setup in local server using xampp.wen i send mail to a single address its working fine and wen i tried to send mail to multiple address i get an error saying … | |
Hi, i have a plugin called wp deposits and a template called automotive, i need the client to be able to pay a non refundable fee of 5% which is working fine through wp deposits, the thing is wp deposit is picking price from woocommerce, i want it to pick … | |
Hello, This is my first time using Python. I only know the basic syntax of python but I never actually run the code itself. Therefore, I am trying to figure out how to install Python web server on localhost ? I have this installer - GoogleCloudSDKInstaller When trying to install … | |
Hello everyone, I bought one tutorial to learn how to design Android App which used to install Android Studio to work on. However am getting continuous Gradle Sync error in it due to which I couldn't go ahead. Tried all the ways to sort it out given on the internet … |
The End.