199,114 Archived Topics
Remove Filter ![]() | |
Hello, I have this code: [CODE] #include <iostream> #include <string> void main() { std::string a = "Sample"; printf("%s", a); std::cin.get(); } [/CODE] and it prints some I think random letters. Where i made mistake? And how should i change the code to write "Sample"? Thanks for answers and sorry for … | |
Hi All, I'm having a problem with this one. This is my directory tree: [CODE]MAIN FOLDER -Second Folder -Third Folder -2012011 (folder) -INVALID (folder)[/CODE] My input path in FolderBrowse is MAIN FOLDER. Now I used the code: [CODE]MsgBox(IO.Directory.GetDirectories(myFolder, SearchOption.AllDirectories)(0).ToString)[/CODE] It throws an error. I just want to process the 2012011 … | |
bonjour, j'ai un probléme de compilation concernant un projet,malgré que j'ai un main class voici les erreurs: run: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at com.anthonyeden.lib.util.XArrayList.<clinit>(XArrayList.java:86) at com.anthonyeden.jnm.JNM.<clinit>(JNM.java:174) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 2 more Could not find the main class: … | |
Hello This is my first post so I’m sorry if I ramble and don’t explain my issue clearly. I am binding a dataset (dsTest) with a table called “TempResult” to a datagrid (DatagridView1). The purpose of the datagrid is to display test labels (set elsewhere in the software) and to … | |
Hello, I'm trying to insert values from a form to a table (employee) on my database using prepared statements. From what I can tell the connections are fine, am able to query the database (as shown in the code to check the user type of the current logged in user). … | |
Hi everyone. Suppose I have my database in postgresql, with around 100 tables. I would like to know if there is any way to know which table(s) is affected after running a specific query. For example, if I add a new row, that software for example, should be able to … | |
I want to run a multiline AppleScript command from a Python script. For a singleline command I can do: [CODE]def stupidtrick(): os.system(cmd) cmd = """osascript -e 'tell app "Finder" to sleep'""" stupidtrick(); [/CODE] however I want to run multiline commands, (such as with multiple 'tell' statements, as in [ICODE]tell application … | |
Hey guys and girls, I'm now on this forum, but looking forward to some interesting debates :) I work at an "advokat (advokatkontor)" meaning a lawfirm in danish. I work with different things, but im the only person that knows any IT advokater/lawyers = knows nothing about computers :p My … | |
Hi guys, Recently I have been trying to make a program, and Im stuck. I am trying to create a login function where by the first time a user logs in, their username and password are encrypt and placed in a file. Then each time that user logs in, the … | |
Hi ALL, Can any one suggest me on below requirements with less memory and cpu time. I have used below code and seems it is not efficient for huge files. fgrep -v -f file2 file1 >file3 This will output file3 containing all lines from file1 that are not in file2. … | |
i am a c++ beginnner nd i am not getting the point why class is defined before main()function i.e globally:-O | |
when i run my source code on winows xp then progress bar work fine but on linux it just stuck and not run at all, My Code is as follows [CODE]import java.sql.Connection; import java.sql.Statement; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.sql.DriverManager; import java.text.DateFormat; … | |
Friends i want to submit project in my college on employee management system.... front end should be c# and back end sql server 2008... i got one project on net but its backend is microsoft access I want to change this to sql server 2008.... what changes i have to … | |
Hi, I am trying to add buttons to a Panel which is located on JFrame after the JFrame has been set to visible. My aim is to be able to click "File --> Load" then have it loop through a folder of images, creating buttons which have the images on … | |
I just started learning python and decided to try and put what I have learned to use in a program and I am having issues with the math I believe. Any suggestions? [CODE] print ("Lets get some utlities information") rent=input("What is your monthly rent: $") pge=input("Estimated PG&E Bill: $") water=input("Estimated … | |
Good Everyone. I have added 2 more column for supervisor and manager for verified.Once engineer done the work he will select done from dropdown column.supervisor verified engineer's "done" work. ALTER TABLE [dbo].[Record] ADD CONSTRAINT [verify] DEFAULT ((0)) FOR [VerifiedbySupervisor] ALTER TABLE [dbo].[Record] ADD CONSTRAINT [mgr] DEFAULT ((0)) FOR [VerifiedbyManager] GO … | |
Hi folks. I have a java application which plays a audio file . SO before the audio file or sound is played by my java application , i want to mute all other application sounds like Windows media player , VLC player (etc) if those are currently playing at that … | |
In linux whenever i run my gui java programe it does not show Image My Code Is As Follows look at line 77. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class bank implements ActionListener { JFrame mainframe; JMenuBar mbar; JMenu file,view,help,edit; JMenuItem newacc,exit,login,helpcontent,cust_detail,emp_detail,delEmp,delCust,addEmp; public bank() { mainframe=new JFrame("Bank Application"); try … | |
Hey everybody, I just made an application for Android, and In the developer console it reads as published, but when I search the application, it does not find it... any help on this? | |
how to set up frame such that user cannot click other side than the current active frame if click then frame prompt for actvation. Thankx in advanced. | |
Hey, I'm developing a processor-intensive app for Android, which includes nested loops. The development process is still going on, but I'm already trying to find ways to optimize the performance. And I need tips and tricks for it. :) Mainly I've been changing all the for-loops from (int i = … | |
hi, i'm very new to python. i downloaded pyserial on win7 64bit. using Dell N5010 (it doesn't really have serial port) i tried to open port with ser = serial.Serial(0) but it gave error that [COLOR="red"][Error 2] The system cannot find the file specified.[/COLOR] but with ser = serial.Serial(3) and … | |
Good Day Programmers ^_^ i need a help... how do i Update the record based on the Date & Time?? here's the code: [CODE] Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick lblTimeOfDay.Text = Format(TimeOfDay, "hh:mm:ss tt") UpdateItem() End Sub Private Function UpdateItem() Dim xSQL As … | |
I want to delete selected column values only... I have this statement: [ICODE]strsql = "delete book1, author1, from book_Load where Book_ID_no = '" & bkIDnum.Text & "'" With sqlcmd .CommandText = strsql .Connection = sqlconn .ExecuteNonQuery() End With[/ICODE] the error is "Incorrect syntax near ','." please help me with this... … | |
What is difference between transaction of saving account and current account? I Am New Please Help Me. Thanks .:$ | |
See I probably have the littlest knowledge on working with Linked Lists and I was thinking of creating a program that will accept three numbers which will be arranged on the list. However, I need to display the numbers everytime I input them, which I don't know how. My goal … | |
Hi everyone! Here's my problem. I created a random guesser game (A school project) and then my instructor said they want them to put a hall of fame on the game. But... The problem is how do i put a hall of fame? If its saving 1 line per file. … | |
I want to know if there is anyway of getting a discography from this page? [url]http://www.oasisinet.com/Discography.aspx[/url] I want to use it on a website that I'm updating at the moment. I right clicked on the flash interface and it said powered by Trinity St. I googled that but couldn't find … | |
[url]http://www.healthviewone.com/PHP/Meds/med-update.php[/url] The URL above takes me to the following URL which is coming out blank. Can someone review my code below and tell me why I am getting this blank page? P.S. the patient information is bogus, not real. So no HIPPA concerns at all. [url]http://www.healthviewone.com/PHP/Meds/meds-change-form.php[/url] <html><head><title>Change Record form</title> <style … | |
I am trying to add cc & bcc in below code but its not working. need suggestion [CODE]$email_from = "av@gmail.com"; // Who the email is from $email_subject = $_POST['hiddensubject']; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message … | |
I have created few files and Makefile in the same place. I have read in below link about the special variables $@ and $< and used as so. [URL="http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/"]http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/[/URL] but when the say make i keep getting the error [ICODE]gcc -o calc *.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start': (.text+0x18): undefined reference … | |
hi, i'm looking out for a parser script that stores information like name, dob, address, contact no. from the resume. the resume can be of .doc,.txt format thanks in advance | |
Hello. I am working on many c++ programs right now that are mostly run in the form of an exe. I have noticed that most programs that i aquire from other people have some sort of installer. I can see how you would need to get all program files in … | |
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class WasteSchedul { public void start() { int choice = -1; while (choice != 0) { WriteMenuText(); choice = int.Parse(Console.ReadLine()); switch (choice) { case 1: { Bin1(); break; } case 2: { Bin2(); break; } } } } public … | |
Hi Friends, I am having a pdf which has to be watermarked.But the code below I use is writing contents of my PDF into another PDf which is being watermarked.Please suggest any ideas which helps me watermark the same pdf without creating a new one. Please find the code below. … | |
Say in index.html you set variable x to be 5. You navigate to a different page, lets say pageone.html. How can you keep x to 5? And if you change x to 3 on pageone.html, how can you keep it to 3 on pagetwo.html? (the whole website also, every webpage) … | |
Can someone explain how I would go about checking that the new valid word entered is only one character different from previous word??? | |
Except for GUIs, could anyone give me an example of why we need inner classes? | |
Hi, I'm trying to extract certain things from a web page. The website is TVRage.com, and the example I'm using at the moment is [URL="http://www.tvrage.com/Warehouse_13/episode_list"]the Warehouse 13 episode list[/URL]. So far I've managed to get the title of the show using this code: [CODE]#!/usr/bin/env python import urllib def save_page(site="http://www.tvrage.com/Warehouse_13/episode_list"): mypath … | |
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Call ImageRetrieve() End Sub Private Sub ImageRetrieve() imgsave2.Update() Dim OleDbConnection1 As New System.Data.OleDb.OleDbConnection("PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\Testing\DATABASE\TESTING.MDB;PERSIST SECURITY INFO=FALSE;") OleDbConnection1.Open() Dim OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand() Dim OleDbReader1 As System.Data.OleDb.OleDbDataReader 'Access (OleDb) OleDbSelectCommand1.CommandText = "Select h1_img,h2_img,h3_img,h1_sign,h2_sign,h3_sign from vLOCKER WHERE lockerno … | |
dont know the why this modified JTextField did not show up..help me out [CODE] import java.awt.*; import javax.swing.*; public class JBgtextfield extends JTextArea{ public void paint(Graphics g) { setOpaque(false); ImageIcon ic=new ImageIcon("image1.png"); Image i=ic.getImage(); g.drawImage(i,0,0,this); super.paint(g); } } [/CODE] i then created an instance of this class and added it … | |
Code attached in the attachment is not my own and was supplied by an instructor. I am to create a word morphing game. The computer will provide a starting word and an ending word. I am to enter a new word, that either adds or removes a letter from the … | |
When I try to output an ASCII value to a file, it sometimes writes the wrong value. Example: [CODE] import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.PrintWriter; public class test { public static void main(String args[]){ //Supposed to: writeFile("./test.txt"); //write ASCII 147 readFile("./test.txt"); //read ASCII 147 } public … | |
I thought that my problem was how I was declaring a manifest file. But now I think I can safely rule this out. I think the probem lies in the way I am loading the DLL/COM object that the manifest file references. The program runs -- sort of. After I … | |
Would it be possible to use JavaScript with C# (or Java, Python etc) for the sake of getting a sweet UI. Say for example I have a program written in C# with a ok-looking GUI which holds some panels, a few buttons, radiobuttons, the usual stuff. Would I then be … | |
I want to make a project on Audio Fingerprinting. There will be recorded file preferably .wav, that will be matched with all the audio files present in a song database and will return the best match. First I wish to try this on my own computer, then I will try … | |
i have this coding...when i burn into pic it does not work...anyone can help me to solve this coding...this is urgent case..need help. ;************************************************************************ ; Digital Thermometer * ; * ;************************************************************************ list p=16f84A #include <p16f684A.inc> __CONFIG _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & … | |
Hello! I am working on a problem to count characters (without using strings) and I got my program to work! However, I got it to work before I put the code that counts characters into a function (countChar), which is required for this assignment. I'm not sure I understand how … | |
I would like to create a notebook type application that will accept touch input and allow you to draw on the surface view. I'm unsure what I'm doing wrong since I have not programmed for the Android before. Here is what I have: [CODE]findViewById(R.id.pageSurface).setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, … | |
hi! i need help by creating a program that will divide using loops wihout using any division or multiplication sign. the allowed signs are just addition and subtraction. Thank you! i will post my program if someone replies with this. |
The End.