how do I run a python class without creating an object

Member Avatar
Member Avatar
+0 forum 2

in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have to include what 'input' is when coding a programme. Please help and reply as soon as possible and keep in mind i dont really understand computer or technology language/words! Plus, i remember watching my teacher show us on the board something along the lines of "end/run command/programme when enter is clicked" can anyone help me with that? Thanks!!

Member Avatar
Member Avatar
+0 forum 1

So my computer has been saying werfault.exe application error anytime i start a program. So i started a clean install and tried to reinstall my OS but it came up with another error and now i have a computer with no OS or anything. Is my HDD or SSD broken? i have both an HDD and a SSD i was planning on installing the OS onto the SSD. PLEASE can someone tell me what's wrong with my computer? My PC:AMD FX-6300 6-core Vishera Msi 990FXA-GD80 GTX 660 ti 850W PSU Adata 32gb ssd WD 750gb 7200rpm HDD Patriot 8gb ram …

Member Avatar
Member Avatar
+0 forum 10

I am working on a small application in VB.NET. The program needs administrator privilege for doing some tasks. Is there a way to ask for administrator privileges during the execution if the program? What is the general way of changing the user account under which the application is running? Actually What I want to Do? I am Having one Form in which there is "Download Button" and by clicking this button it will open "updatedownloader" which I want to run as admin, I don't want the Program to restart as by doing so I will not able to save some …

Member Avatar
Member Avatar
+0 forum 4

I learn Java programming language. I have a .exe file that was produced with lunch4j. I can easily run that application in my computer but I can't run it in other computer. I got error ""Window can't access the specified device, path or file, you have the may not have the appropriate permission to access the item". Please help me.

Member Avatar
Member Avatar
+0 forum 4

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does the "scripting engine" interpret the human readable commands directly? Any help here will be greatly appreciated. Kind Regards, Davo

Member Avatar
Member Avatar
+0 forum 2

i want to auto bind data to my textbox after user click the textbox and i already make it!! but my problem is, after i click the textbox again, it still same as the first click!!! HELP ME!!!!

Member Avatar
Member Avatar
+0 forum 5

Hey what's up everyone? I have a script here that works when i execute it from command line, and when I double-click it. Now, there is something interesting going on here. 1) When the program is executed by process.start it does not load (even when called from cmd.exe /c ...) 2) When the program is executed with system.diagnostics... it loads but does not supply ANY output. 3) Created a terminal program for vb console; it gets executed and then it executes the file... no output. When you physically click on the exe files I created and they in turn shell …

Member Avatar
+0 forum 0

these is my problem. the user enter the password and the computer output "congratulation!" if the user guess the assigned password otherwise "try again!" how could i run these program. feedback a.s.a.p. thanks.

Member Avatar
Member Avatar
+0 forum 2

Hi I want to know how to know if user is running the program for first time? I have a .txt file which will be loaded on start, but it is the first time and there is no such file. If anybody contributes, I will be happy Thanks in advance Yuvjeeth

Member Avatar
Member Avatar
+0 forum 6

Hi group, I already build a program with vb6. The problem is when the program is running and user click the exe file again then it makes program running twice in same time. Is there a way to restrict this happened? Thank you.

Member Avatar
Member Avatar
+0 forum 3

Hi, I've succesfully created a new project in Python Django, but when I try to run the server using: python manage.py runserver I receive this error: Validating models... Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x10166b250>> Traceback (most recent call last): File "/Library/Python/2.6/site-packages/django/core/management/commands/runserver.py", line 92, in inner_run self.validate(display_num_errors=True) File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 280, in validate num_errors = get_validation_errors(s, app) File "/Library/Python/2.6/site-packages/django/core/management/validation.py", line 35, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 166, in get_app_errors self._populate() File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 72, in _populate self.load_app(app_name, True) File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 96, in load_app models = import_module('.models', app_name) …

Member Avatar
Member Avatar
+0 forum 1

I am developing a VB6 application which connects with an Access 2010 database. I want the application to execute queries stored in the database. Some of the queries include Access functions in field names. For example- FieldName: IIf(Nz([AnotherFieldName],0)=0,3,[AnotherFieldName])" Is there a way in VB6 to execute the queries natively in the Access database? A code example would be very helpful.

Member Avatar
Member Avatar
+0 forum 4

string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill the data set object DataAdapter.Fill(ds, "map"); // Get the one table from the DataSet DataTable dataTable = ds.Tables[0]; // for each row in the table, display the info foreach (DataRow dataRow in dataTable.Rows) { // listBox1.Items.Add(dataRow["x"]); tb.Text = Convert.ToString(dataRow["x"]); tbb.Text = Convert.ToString(dataRow["y"]); #region Draw Icon if (drawicon) { double lon …

Member Avatar
Member Avatar
+0 forum 1

Hi, guys, I want to learn how to make big games for Android, like, Temple Run, Rail Rush or something like that. What I must do?

Member Avatar
Member Avatar
+0 forum 4

Hello all, So I just had all of my household good shipped from CT to TX, including my self-built PC's. The main PC had a downed HD upon unboxing. Re-installed WIN7 everything is good. Had some issues with internet, so I shut it down. Came home later that day and started it up...no display. I normally have three monitors running. I disconnected everything and connected it back...was moving it to another room. Still no display across any of the monitors. i then disconnected all but one, tried it on all four DVI outputs on the video cards and still nothing. …

Member Avatar
Member Avatar
+0 forum 6

i am creating a rect in paint method. and i am trying to move it to its right by 1 px in loop. but the problem is its not going inside the run method. any idea why? import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.JApplet; public class main extends JApplet implements Runnable { //Double buffering variables Image dbImage; Graphics dbGraphics; //player information variable int x = 10; int y = 50; int width = 30; int height = 30; int dx = 1; //################################################################################################################### /*** init method ***/ public void init() { setSize(800, 400); }/*** end of init method ***/ …

Member Avatar
Member Avatar
+0 forum 1

Currently this method has a run time of O(N^2) and I am trying to get it to O(N). Any suggestion as to where I should start? public void removeAll(e removeNum) { node nodeToFind = this.find(removeNum); while(nodeToFind != null) { this.remove(nodeToFind); nodeToFind = this.find(removeNum); } } Thanks

Member Avatar
Member Avatar
+0 forum 2

import javax.swing.* ; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.Calendar; import java.util.*; import java.text.*; /* <applet code="gui.class" width=250 height=100> </applet> */ class gui extends JApplet implements ActionListener { JTextField t1,t2,t3,t4,t5; JLabel l1,l2,l3,l4,l5,l6; JButton b1,b2; Calendar c1,c2,c3; JPanel p,p1,p2; Date sd,sd1; SimpleDateFormat sdf; public void init() { SimpleDateFormat sdf = new SimpleDateFormat(“DD/MM/YYYY"); final JTextField t1 = new JTextField(1000); final JTextField t2 = new JTextField(1000); final JTextField t3 = new JTextField(1000); final JTextField t4 = new JTextField(1000); final JTextField t5 = new JTextField(1000); JLabel l6 = new JLabel(""); JLabel l1 = new JLabel("Book Name"); JLabel l2 = new JLabel("Author Namae"); JLabel …

Member Avatar
Member Avatar
+0 forum 9

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar
Member Avatar
+0 forum 4

public class Thread7 implements Runnable { public static void main(String r[]) { Thread t = new Thread(new Thread7()); t.start(); public void run() { System.out.println("C"); System.out.println("D"); } System.out.println("A"); try { t.join(); System.out.println("B"); } catch(Exception e){} } } Query1: On compiling this program I get "illegal start of expression" error pointing to public void run. But when I remove that block of code and place it outside main() the program compiles and runs successfully. What is the rule behind it? Query2: After I place run() outside main() the output is ACDB. What I don't understand is after t.start() is invoked shouldn't the …

Member Avatar
Member Avatar
+0 forum 1

Alright, so I am designing a program that contains binary trees to function as a parser. I have encounted a very strange problem that is causing my program to fail while it is running. I have done several tests and narrowed down the incidents. Ok, so this results in a successful test: #include <iostream> #include <cstdlib> #include "BinaryTree.cpp" #include "Stack.cpp" using namespace std; int main() { BinaryTree<char> treeL, treeR; Stack< BinaryTree<char> > stack1; BinaryTree<char> tree1('a'); cout << "Test"; return 0; } Output: Test RUN SUCCESSFUL (total time: 93ms) Now, whenever I throw in the push function (the method that causes …

Member Avatar
Member Avatar
+0 forum 6

how to run apriori algorithm code

Member Avatar
Member Avatar
+0 forum 3

Hi guys, I'm a student and need to practice Oracle SQL queries since we have Advance SQL in our syllabus. I have Intel-based MacBook Pro running Mac OS X Snow Leopard 10.6.8. I just downloaded the SQLDeveloper for Mac and unzipped it. The application executed and started well. But I'm not able to create any connections. I get the following error "Status: Failure -Test Failed:IO Error: The network adapter could not establish the connection." when I key in the following parameters: Connection name: hr Username: hr Password: hr Connection type: Basic Role: default Hostname: localhost Port: 1521 SID: orcl Am …

Member Avatar
Member Avatar
+0 forum 7

`Inline Code Example Here` **how to run the c program on note pad shall any one give me answer**

Member Avatar
Member Avatar
+0 forum 2

Hello Community, I was wondering if it is possible to run a php file every week that checks if a user has activated there account after 7 days they will be deleted. Please help. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 4

Hi, i m trying to ssh to a server and run a exe on that using a script file - runremote.sh All the prints generated by the exe on remote are being displayed on server 1 from where i have executed the script . But after sometime, the execution stops suddenly, dont know why .. is it that the ssh tunnel is getting broken /some ssh timeout happening?? the content in script file is something like ssh root@server2ip 'cd /export/home1/users/srinivas; sh test.sh start 1;' and test.sh is executing a exe (say test.out which is printing somestuff in while loop) Initially …

Member Avatar
Member Avatar
+0 forum 1

public class Thread8 implements Runnable { Demo d; public static void main(String r[]) { new Thread8().disp(); } void disp() { d = new Demo(); new Thread(new Thread8()).start(); new Thread(new Thread8()).start(); } public void run() { d.fun(Thread.currentThread().getId()); } } class Demo { static long f=0; synchronized void fun(long id) { for(int i=1; i<3; i++){ System.out.println(id); Thread.yield(); } } } The program compiles properly but gives a NullPointerException. Why? Why did it not give a compile error for using a non-static reference variable d [Demo d] in static context i.e. in void disp()?

Member Avatar
Member Avatar
+0 forum 2

i have created a windows application using c# 2010. i have some features accesable to administrators only and other features accessable to all users. i want administrators run the application as administrators by right clicking the installed application. but this option is not available. how can i make this option appear.

Member Avatar
+0 forum 0

how to run servlet automatically on everytime browserstart up

Member Avatar
+0 forum 0

The End.