199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ankit_30

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 …

Member Avatar for rproffitt
0
460
Member Avatar for Raju_3

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?

Member Avatar for dannette
0
455
Member Avatar for rajesh_32

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
Member Avatar for rproffitt
0
618
Member Avatar for FarrisFahad

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 …

Member Avatar for FarrisFahad
0
861
Member Avatar for Poushali

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
Member Avatar for PsychicTide
0
480
Member Avatar for shreyas_3

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 == …

Programming asp asp.net
Member Avatar for PsychicTide
0
386
Member Avatar for Madhuri_2

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 …

Member Avatar for PsychicTide
0
326
Member Avatar for John_165

The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/)

Member Avatar for JamesCherrill
0
2K
Member Avatar for Rebecca_7

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
Member Avatar for rproffitt
0
409
Member Avatar for seularts

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 …

0
562
Member Avatar for Cisco_1

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

Member Avatar for rproffitt
0
553
Member Avatar for Shaun_10

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
Member Avatar for ddanbe
0
774
Member Avatar for novice20

[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 …

Member Avatar for Cisco_1
0
37K
Member Avatar for tapuwa2002

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 …

Member Avatar for happygeek
0
4K
Member Avatar for davBro

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, …

0
524
Member Avatar for Charles_38

<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"); } …

Member Avatar for benanamen
0
333
Member Avatar for Rock Ridge Farm

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 …

Member Avatar for rproffitt
0
441
Member Avatar for Sameer_8

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 …

Member Avatar for Sameer_8
0
408
Member Avatar for Sameer_8

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 …

Member Avatar for rproffitt
0
379
Member Avatar for chandan_14

#include<iostream.h> #include<conio.h> class game { int a,b,c; public: void g() { cout<<"Enter value of a<<endl; cin>>a>>b; if(a<b) { cout<<a,<<endl; c++; } } }; void main() { game g1; g1.g(); getch(); }

Member Avatar for Reverend Jim
0
343
Member Avatar for ALosh99

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
Member Avatar for ALosh99
0
1K
Member Avatar for Raju_3

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

Member Avatar for happygeek
0
333
Member Avatar for tony75

Hi Is there any simple way or online website that can convert The numerical string like"123-322-14365" to regular expression?

Member Avatar for Reverend Jim
0
446
Member Avatar for Jon_7

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 …

Member Avatar for AndrisP
0
20K
Member Avatar for Xhino_1

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

Member Avatar for alan.davies
0
371
Member Avatar for GadiK

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 …

Member Avatar for Riadh_1
0
12K
Member Avatar for Jag_1

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 …

Member Avatar for 2teez
0
1K
Member Avatar for Mirty

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 …

Member Avatar for pty
0
287
Member Avatar for SimonIoa

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?

Member Avatar for Dani
0
1K
Member Avatar for Jessica_16

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 …

Member Avatar for Jessica_16
0
564
Member Avatar for Olaoluwa_1

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 …

Member Avatar for alan.davies
0
448
Member Avatar for divinity02

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 …

Member Avatar for Armand_2
0
287
Member Avatar for newbie_1

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 …

Member Avatar for Tpojka
0
815
Member Avatar for nufftalon

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

Member Avatar for Shubham_15
0
1K
Member Avatar for JModak

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 …

Member Avatar for Reverend Jim
0
358
Member Avatar for Mohrorless

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
Member Avatar for pty
0
530
Member Avatar for mahdi_2

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
0
301
Member Avatar for ami_2

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 …

0
341
Member Avatar for [TMMG]

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
Member Avatar for JamesCherrill
0
547
Member Avatar for Z33shan

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 …

Member Avatar for Samuel_25
0
1K
Member Avatar for tun712

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 …

Member Avatar for tun712
0
577
Member Avatar for Saboor880

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for biswa2ray

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..

Member Avatar for alan.davies
0
6K
Member Avatar for Hazardous_Byte

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 …

Member Avatar for rakesh_15
0
2K
Member Avatar for Victor_20

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 …

0
197
Member Avatar for r3bol

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") …

Member Avatar for happygeek
0
6K
Member Avatar for galeej

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 …

Member Avatar for Kevin_40
0
2K
Member Avatar for ami_2

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 …

Member Avatar for Bill_26
0
288
Member Avatar for davy_yg

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 …

Member Avatar for techbeamers
0
695
Member Avatar for chandan_pathak

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 …

Member Avatar for rproffitt
0
512

The End.