Hello to all! I made a small project using Netbeans8. I named my project smallCalcApp. And then i add a new JFrame File in my project and in that file I handled events of components which i put on form. When I run that file , it ran successfully and frame appeared on screen and I used my application . but when I run project, it only shows a statement "build successfuly" but no any form appears. Please tell me that how I can run a project in a way that all the GUI files in it also run along …

Member Avatar
Member Avatar
+0 forum 1

I have a python code that reads a specific folder for specific files. Once it finds a file that matches the re.split peramiters that it is given it then writes the data to a csv file. The issue is that for every file that it loops through and writes it will write everything multiple itmes when im only wantinf it to write things once. Can anyone help me figure out what im doing wrong. import datetime,glob,os,csv,fnmatch,StringIO,smtplib,argparse,math,re parser = argparse.ArgumentParser(description='Search art folders.') parser.add_argument('-b', help='The base path', required=False, dest='basePath', metavar='Base directory path',default='/home/hatterx/Desktop/beds') parser.add_argument('-o', help='File Output Location', required=False, dest ='fileOutput', metavar='File Output', default='/home/hatterx/Desktop/bedsused') …

Member Avatar
Member Avatar
+0 forum 2

I have two python script the first once contains my def callers and my command line arguments. The second one contains my defs that i want to use the command line arguments in. I was wondering if there was a way to call the command line arguments into the second script cause they do call some of the items that are needed in the second one from the comman line.

Member Avatar
Member Avatar
+0 forum 8

I have a python code that reads a file into a stringio. This works great but now i need to do is http post from the stringio and i can not figure it out. Any help would be greatly appriciated cause this is really conffusing and i dont know what to do. The url is a dummy website but this is my full code maybe someone could help. import requests, shutil, datetime, glob, os, csv,fnmatch, StringIO def convertToSor(fileLoc, fileName, mode, listName): s=StringIO.StringIO() os.chdir(fileLoc) for FILE in glob.glob("SOR935*"): filepresent = os.path.isfile('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv') with open(FILE, 'r') as f1: #, open('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv', 'ab') as f2, …

Member Avatar
+0 forum 0

I have a block of code that i reads a file and then converts it to a add and update file and im looking to change it to where insead of it having a hard copy created every time for it to use stringio if it is possible. Sence im new to python still im reading over the python webpages and they dont explain what i need to do. If someone could help me i would be geartly appriciative. Below is the code that reads and converts. os.chdir(fileLoc) for FILE in glob.glob("SOR935*"): filepresent = os.path.isfile('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv') with open(FILE, 'r') as f1, …

Member Avatar
+0 forum 0

So i am trying to take some code that i had working before and turn it into a function but every time i run my code it kicks it to line 9 in my code which is a continue statement and says the its not properly in the loop. I was wondering if someone could please explain to me where im goign wrong with this and how to fix it and if there are any other errors that would mess my code up.Any help would be greatly appriciated thank you. def convertToSor(saleDate,Amount,Fname,Lname,Email,Franchise,osg,State,Postal,OrderID,DateAdded,EmailSource): for row in cf1: nr = newrow nr[saleDate] …

Member Avatar
Member Avatar
+0 forum 6

I am working on a python code that is supose to search a directory and see if a file in the directory has a _add_ or a _update_ and to change a few fields in my code that call the add and updata and change the directory name to match it. Is there a way to do that which is simple and easy for a new python coder to understand. If you need my code i will post it also

Member Avatar
Member Avatar
+0 forum 2

I am new to cURL and im trying to get it to add new contacts to my database. i have all my information right but when it reads my csv file it tells me no email column was found in the file you are uploading> I know for a fact that i put my email column in it could someone tell me what i could be doing wrong and i will post my curl code if it is needed.

Member Avatar
Member Avatar
+0 forum 1

The following piece of code outputs 0.1000000000001 float a=0.1; printf("%lf",a); But if I add a 10 times as long float b=0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1; printf("lf",b); It outputs as 0.999999999999989 But if a=0.1 is stored as 0.1000000000001 then the answer should be greater than 10 due to the 1 in last column.Then why is the output less then 10

Member Avatar
Member Avatar
+0 forum 3

hi everybody,i know c very well and now a days learning java myself. i have decided to choose a main field as my carrer.i am just confused to selct among these fields. 1-php(i am most intrested in it) : i know there is big oppurtunity in job market but i fear that they are low paid. 2-android development : i have read while googling that they are not paid fully for their hard work since most apps are available few. 3-iphone development : i have read that the syntax is very difficult but iphone devlpers are highly paid. 4-java development(i …

Member Avatar
+0 forum 0

The output of the following line of code is: Not Done End boolean notDone = false; if (notDone = true) System.out.print("Not "); if( notDone = false) System.out.print("Done "); System.out.println("End"); The answer is false but I am having a hard time understanding why. Aren't the if statements setting notDone equal to true which would print Not and then go to the second loop and set notDone equal to false then print out Done and then End since none of the if statemends are comparing notDone to the initial notDone variable. Thanks!

Member Avatar
Member Avatar
+0 forum 7

The End.