199,114 Archived Topics
Remove Filter ![]() | |
I'm developing a login page for my web-based(asp.net)visual basics application, I want the user name entered on the login page be visible on a label on the redirected form. I page redirect depeding on various occations, for example if the entered user name is for a system administrator I want … | |
If you're in one of those predicaments where `cls.__private` attributes just aren't enough since they can easily be accessed through `inst._cls__private`, and you need something a little more secure, here's a method I've been playing with for a while that fills that gap. Note that this uses `__slots__`, more info … Programming python | |
For all the above functions i get "`*****' was not declared in this scope". I searched days for an answer to find out what am i doing wrong, and what do i have to do to make it work, but all i could find, peaople saying: it depends on the … | |
Hi DW. Is there anyone know how to detect a pre-recorded sound on an audio? What I mean is taking a face detection as an example. To recorgnize that face you need to first have the image you want to use to match or compare with on other image or … | |
I'm working on assignment that requires me to generate and store 50 random PPS Numbers in an array but I'm not sure as to how to go about doing this. Keep in mind that I'm not asking anyone to do this assignment for me, this is just the part I … | |
Hi guys have a python software that i want to freeze for distribution. The problem is after freezing it with cx_freeze and i run it, it works fine on my development computer but when i sent it to my testing computer (window XP sp3 32bit) it give me this error … | |
Hello Everybody I want to print the value of alternative element of a 2D array. For Example- 23, 54, 76 37, 19, 28 62, 13, 19 Output should be- 23 76 19 62 19 I am trying to get this output since 5 hours. Here is my code - #include … | |
Write a python script for mass renaming music files according to labels. The script takes an existing format of files in current directory and an expected output format and prints a list of old -> new file name tuples. Format can be any string that contains any number of the … | |
I have an If Statement that isnt loading the right image any help would be great <?php if($formattedNum6 > $PeriodSalesTarget):{ echo '<img src="images/TargetMetGreen.png" alt="" />';} elseif($formattedNum6 > $CummulativePeriodSalesTarget):{ echo '<img src="images/TargetMet.png" alt="" />';} else:{ echo '<img src="images/TargetNotMet.png" alt="" />';} endif; ?> $formattedNum6 = 515,839 $PeriodSalesTarget = 1,366,000 $CummulativePeriodSalesTarget = 503,600 … Programming perl php programming-construct | |
from PyQt5 import QtCore, QtGui, QtWidgets # Import the PyQt5 module we'll need import sys # We need sys so that we can pass argv to QApplication import design # This file holds our MainWindow and all design related things # it also keeps events etc that we defined in … | |
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); Date date = sdf.parse(d); Calendar cal = GregorianCalendar.getInstance(); cal.setTime(date); for (i=0;x>i;i++){ cal.add(GregorianCalendar.DATE, 7); String t = sdf.format(cal.getTime()); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); model.addRow(new Object[]{t,c}); } | |
heyy can anyone please help me with this homework in java because i am new at this Create a program where it should appear in a dialog box your name,last name and the avarage of four exams :) | |
i couldnt install numpy in python3.3 windows 7 i have installed setuptools bt easy_install is unavailable if i try to install NumPy i get an error like "Command "python setup.py egg_info" failed with error code 1 in c:\users\20149308 \appdata\local\temp\pip-build-b5n89o\NumPy\" | |
I have an urgent assignment. It would be so great if anyone could help me with the codes of this as I am not able to understand this: Here's the question: Enumerations make it possible to define a new type that contains a limited number of values e.g. the TokenType … | |
I declare an integer and input value from user when i check this program i give the value 40,000 its a overflow but program generate no any type of error why? | |
I have the below codes working for only the first user. The challenge here is; only the first user can change password, new users can't. Error Messaage "Old password is wrong" I am hoping that someone can assist me in correcting what I have already done to make it work. … | |
I'm stuck on converting hex or decimal to 16-bit binary,and I don't know how to start. Here is the tasks I need to do: Decimal Conversion Task: Add code that displays the value in R3 to the console as a binary string. It should convert R3 one bit at a … Programming assembly | |
I'm about to make code that read the text file line by line, then store it to stucture, then use quicksort. But my code doesn't print anything. Here is my code and text file. #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> struct city{ char nation[2]; char region[10]; char name[50]; … | |
Hi friends i am working for an shopping cart using php script, i placed a drop down option to display currency rate as per user selection(INR and USD). By default it will display all the price in INR, if any user select USD, then it has to show all the … | |
Project C++: A player engine for RPG fighting Hello everyone, I'm beginner programmer and got a task to finish but I'm lost. Please help me to start the project: An engine is needed to create a player and non-playable character objects. Players will require an inventory of Weapons, Armor, and … | |
Hello i just started to use Ionic and i have some questions. First of all i downloaded an existing ionic project on GitHub to start. I do these commands and works fine. $ git clone https://github.com/srinivastamada/ionic-restful-authentication.git $ cd ionic-restful-authentication $ npm install $ ionic serve The project starts at localhost:8100 … | |
Sir Please help me about MenuStrip Control used. I create a project there one parents form and two child form MenuStripControl-1 is on parents form (main_form) Menu Item name a) Trans. b)Report c) Setting and MenuStripControl-2 is on child form (purchase_Entry_Form) Menu Item name a) File. b)Close I want to … | |
hi pple I am building this electronic role using an interface. during the course of designing the interface, tried running it just to see the look and feel of it and it is not showing can someone tell me why this happen. here is the code. havent start coding it … | |
I can't go into my Toshiba laptop. It is just beeping and asking for HDD password Programming laptop | |
Hello Evreryone, I am new here and would love some help with a project I have. I have to create a MIPS program where we implement different funcntions. I was able to do strcopy but Im having trouble finding how to code the strchr, strcmp, and memset functions. Unfortunately I … | |
Sir i am new in vb.net, plz help me how to create a new pop up window form in the same form? | |
Hello, so im trying to use PyQt5 on my windows 7 but I might not be doing it right or something. So ive done `pip install SIP` and `pip install pyqt5`. Following [this](http://projects.skylogic.ca/blog/how-to-install-pyqt5-and-build-your-first-gui-in-python-3-4/) post, Ive done `from PyQt5 import QtCore, QtGui, QtWidget` and I should have a **designer.exe** somewhere for … | |
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 … | |
Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load … | |
Hi, I want to find all the words(scabble words) that can be made out of given set of letters. ex: abnana results: a aa ab an baa ban banana na nab How could i achieve this? Do i need a binary tree? Plz some one help me... | |
I am working on implementing a binary search tree as an array implementation, but I am having trouble with correctly printing out all of the students' records using the showAll() method and my application also doesn't print out anything for the insert and fetch methods. What am I doing wrong? … | |
con.Open() cmd.Connection = con dataGrid.SelectedIndex = dataGrid.CurrentItem(0) MessageBox.Show("User Has Selected " & dataGrid.SelectedIndex) Dim id As Integer = dataGrid.SelectedIndex(0).cells("Appid").value.ToString() Dim fname As String = dataGrid.SelectedRows(0).cells("Fname").value.ToString() Dim mname As String = dataGrid.SelectedRows(0).cells("Mname").value.ToString() Dim lname As String = dataGrid.SelectedRows(0).cells("Lname").value.ToString() Dim fthname As String = dataGrid.SelectedRows(0).cells("Fthname").value.ToString() Dim mthname As String = dataGrid.SelectedRows(0).cells("Mthname").value.ToString() Dim … | |
HI! I have made an desktop application, which i have to install on my client's pc. But I want that, except that particular cleint's pc, no other pc could run it. For this purpose i got a solution to get mac address of that pc and make a check for … | |
how to reverse words in a sentence without using split or string tokenizer. I/p :- how are you O/p :- you are how | |
i like c++, Is C++ enough to bring me a job or should i study something else? | |
NEED THE CODE FOR THIS: The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in C++ that achieves this. The program is in a number of parts. … | |
I'm currently doing some encoding work to protect a site from XSS attacks. We've stuck a bunch of `<script>debugger;</script>` tags in the db. Dispite my best efforts, the strings I've encoded to stop the debugger getting hit (to prevent an XSS attack), are still getting hit in developer tools. Is … | |
numbers = [2,3,1,5,7,8,9,5,4,6] print(numbers) tool_1 = int(input()) tool_2 = int(input()) x = numbers.index (tool_1) y = numbers.index (tool_2) numbers[x] = (tool_2) numbers[y] = (tool_1) print(numbers) So I want this code to run until the numbers list is in this exact order 1,2,3,4,5,6,7,8,9 Is there a Do until loop or someway … | |
I am trying to write some symmetric cryptography for holding an FtpCredential in the database, unfortunately I am having a few problems, one of which is getting back gobbley gook from a crypto decoder. I have trimmed it down to just the bare minimum code. Please look at the SetPassword … | |
I was looking around the web for a "selectable label" in tkinter, everyone seems to point to a disabled text entry. I wanted to share mine thus far. I plan to modify this so that when the label is selected, you can click an "edit" button elsewhere in the program … | |
I am trying to a % in a printf statement represent 10%. How do I do that? My compiler warnings are complaining about it. I tried a backslash but that didn't work. printf(" 10\% of people \n"); | |
![]() | Hi, I would like to use Google JavaScript code prettifier: https://github.com/google/code-prettify for code syntax highlighting on a forum that is built using PHP, is there anyone who knows how to do it? _1_6 |
So I am confused as to how to generate random integers between a range, in the first one it says to make the range from 0 to n-1 and the precondition is that n has to be greater than 0. For the second import java.util.Random ; /** * This class … Programming java | |
Hey everyone, So I'm new to this js visualizer thing. I tried to follow a youtube video on a tutorial for an audio visualizer (https://www.youtube.com/watch?v=IBHpSkGZtNM), however the support for issues that I'm having aren't very helpful. What I'm basically trying to accomplish is for now, to play one song (..and … | |
Where or can someone help me on using Visual Studio Code; as I installed a Python extension and I can't get the console / debugger to show the results of the code ? Programming python visual-studio | |
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 … | |
Hi every one. I am having some problem with calculation in datagridview. i have 3 columns in datagridview which are Date,location,Payment. What i want to do now is i want to calculate the total of the payment and my total is a textfield out side the data gridview under the … | |
I'm developing a video download website. We strore videos in FLV format. We convert them to 3GP,MP4 or AVI on user request. But the problem is people re-distribute those videos without our copyright. So we thought to add a watermark to videos. We want to add a our banner image … | |
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 … |
The End.