Member Avatar

Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists and then create said file, if it does not exist. This all works fine, but somehow, I'm unable to use this created file in any way outside my IF statement. I'm trying to do the following: WritableWorkbook wb = Workbook.createWorkbook(excel); It's not working, and I'm not sure why. Any ideas?? Thanks for all help in advance :)

Member Avatar
0
22
Member Avatar

hey guys, so im not sure if this is the right forum, sorry if its not. anyway, i have to create a webpage that can do seating arrangements graphically. it would be like those seating plan softwares out there but this would be online. users can choose tables/chairs/etc which guests seats where that sort of thing. im not sure how to even start doing this, if anyone has any links/suggestions/ideas that would be great. thanks.

Member Avatar
0
27
Member Avatar

I am learning MVC and i would love to do my web site with different languages... if the site come from my domain mysite.fr i wanna show french, if comes from mysite.it i wanna show italian.. etc etc So, i did all what the e tutorial asked me to do (Creating a Multilingual Website with ASP.NET MVC 4) but... I tried to follow step by step this tutorial : [Click Here](http://www.ninjacode.com.br/Blog/2013/07/19/creating-multilingual-website-mvc-4/) But when i run my application this eerror come out... Somebody can help? This is the error (i am sorry but is written in french cause i got french …

Member Avatar
0
14
Member Avatar

SO im writing a simple map editor using c# and xna. Ive just finished with xml serilization, but when i compile i get the following error: "Unable to generate a temporary class (result=1). error CS0016: Could not write to output file 'c:\Users\Chris\AppData\Local\Temp\1vw3tjxm.dll' -- 'Access is denied. ", what does this mean? And how can I solve the problem?

0
5
Member Avatar

Hi, I am new on this all, I want to add RSS Feed to my website. But really i don't know about this anything. As I am on windows 7, The gadget RSS FEED (i look on it) and also view some pages like [THIS](http://windows.microsoft.com/en-us/windows7/Using-RSS-feeds) but the Question is How can I add it to my website so that other can subscribe me with the RSS FEED? Help Me Fast, I am waiting for the answer

Member Avatar
0
13
Member Avatar

I am using the richtextbox, and now when I am saving the File, then the File get saved but not as I want.? Example: File Name: example File extension: .txt Body: **1.)**Hey guys, Whats up? **2.)**R u Fine ??? **3.)**Reply soon Now When I save the file and open in the notepad. then its seem as: **1.)**Hey guys, Whats up?R u Fine ???Reply soon while if I open the same file with Wordpad then no problem it looks as it should... So how can I edit this things. Using Richtextbox only, reason: change specific text fonts/colour/save as rtf,txt,doc etc... If …

Member Avatar
0
16
Member Avatar

When the user finish with the order and pay then i want to create a pdf with the order receipt with email. How i can create this pdf online and sent it to the user? Thank you very much

Member Avatar
0
30
Member Avatar

**Task:** "pass these four variables (x,y,w,h) into the getSubimage method of the original_image object." That method returns a BufferedImage, which i need to directly return from my getImageRect method. I have not included my whole code, but i was wondering if anybody could help me out with this? If you need me to include other aspects of my code to help understand this program then i can paste them. BufferedImage getImageRect(int thisCol, int thisRow) { // if input is out of range, return "null" if(thisCol <0 || thisRow < 0) return null; if(thisCol>=numCols || thisRow>=numRows) return null; // otherwise, make …

Member Avatar
0
18
Member Avatar

Hello. I am curious if it is possible to create functions dynamically in such a way, that (1) the names of the functions to be retrieved from an array and (2) these names could be used also inside the functions. I have a code that is solving the first problem, any ideas how to solve problem 2? Thanks. <?php $myarray = ['myvalueone','myvaluetwo','myvaluethree','myvaluefour','myvaluefive']; for($i=0, $n=count($myarray); $i<$n; $i++) { $functionname = $myarray[$i]; $$functionname = function(){ echo 'The name of the function is ... .'; }; } $myvaluetwo(); // The result need to be: The name of the function is myvaluetwo. ?>

Member Avatar
0
63
Member Avatar

Hi all, As i mentioned in thread title, i want to create and delete folder. How i can create and delete folder/directory with vb6. Please help Regard

Member Avatar
0
16
Member Avatar

1. I am trying to use this code snippet, to learn how to create a dropdown menu, populated by a mysql database. 2. I have worked out the kinks of the database credentials. 3. I have created and populated a test database. 4. This does actually work, now that it is morning time and the sun is coming up already.. 5. I do get mostly a blank screen, but with a drop down menu (in the top left corner), with the 2 fields i inserted in my database shown.. So stoked there! 6. BUT! I receive the error @ the …

Member Avatar
0
61
Member Avatar

Hi. I have a select box with the id=1. I need a solution for: when changing the select box with the id=1 to appear another select box with the id=2 and when changing the select box with the id=2 to appear another with the id=3, and so on. I have writen a code, and I do not understand why it does not work the way I need. It works only when I change the first select box. Can somebody advise, please. <select id="1" name="1"> <option value="Value 1">Text 1</option> <option value="Value 2">Text 2</option> <option value="Value 3">Text 3</option> <option value="Value 4">Text 4</option> …

Member Avatar
0
3
Member Avatar

Hello perhaps you could help me with a problem please. I wish to display a table of results using a JTable. Customarily I use a 2D Object array which is initialized with the data in a manner as follows: public Object[][] data={ {"Biology",25},{"Additional Math", 54},{"Geography",43},{"History",21},{"Spanish", 47}, {"Information Tech.",110},{"Technical Drawing",54},{"French",45},{"Physics",76},{"Chemistry",76}, {"Principles of Accounts",34},{"Principles of Business",30} }; However this time, initialising won't work because the data that I am receiving will be subject to change, thus the 2D array needs to be created at a later point. The added data that I will be receiving, will come from two(2) arrays, one containing …

Member Avatar
0
4
Member Avatar

Hello, do you guys recomend any CLASS or script to create Thumbnails? what are you using these days?

Member Avatar
0
3
Member Avatar

Hi, I'm writing a VB.net application that runs off a SQL database. If the application can not connect to the database or the connection has not been set up I'm giving the user the option to create the database on the SQL server instance of their choice I then create the database and it's tables, dedicated user for the application to use and Stored Procedures. All this worked fine when testing yesterday including the user creation BUT for some reason, the User creation is throwing an error today. The Scripts I use to set up the user are as follows: …

Member Avatar
0
4
Member Avatar

i want to create a text report and i have use this coding:- <?php $f=fopen("c:\amit.txt", "wb"); // adding header $text="\n Your text to write \n ".date('d')."-".date('m')."-".date('Y')."\n\n"; fputs($f, $text); fclose($f); ?> which results me some thing like when i open it in windows [i.e my computer->c drive->mit.txt] :- > []Your text to write[]09-09-2012[][] but i want it like this Your text to write 09-09-2012 and in fanfold paper size 14" * 12" as i have a huge data to create a report for ex payslip of all employee in my company plz help me

Member Avatar
0
8
Member Avatar

i have write a code for making a string that is being read from CSV file. i want to make a string from particular location of each and every line. i have attached a code what i have done.but i want it as it for any number of location. In dataset.csv file there is rows like abc,12,male,12345,flu,yes apm,15,female,32165,fever,no plz,45,female,32154,flu,no ert,32,female,32564,fever,yes If i run following code with identifier =3 and location are 1,2,3 then i need output as 12,male,12345 in first iteration 15,female,32165 in second iteration and so on. public static void main(String args[])throws IOException { int q,i,loc[]; DataInputStream din = …

Member Avatar
0
5
Member Avatar

My Table create is giving me problems. i probably missed something small but i cant find it. $dbase = $_COOKIE['ID'] . "char"; // Create table mysql_select_db($dbase, $con); $sql = "CREATE TABLE games ( gameID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), gameName varchar(25), intro TEXT, bground TEXT, cast ENUM( '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), created TIMESTAMP DEFAULT NOW() )";

Member Avatar
0
2
Member Avatar

my code is messing up. help: if (mysql_query("CREATE DATABASE $dbname",$con)) { echo "Database Created<br>"; $dbase = $_POST["CallSign"]."char"; mysql_select_db($dbase, $con); $sql = "SELECT * FROM $dbase"; $result = mysql_query($sql); if ($result) { echo "CallSign Accepted<br>"; mysql_select_db("my_db", $con); $sql="INSERT INTO users ( CallSign, Email, FirstName, MiddleName, LastName, Gender, BirthMonth, BirthDay, BirthYear, Location, Password, Origin, ) VALUES ( '$_POST[CallSign]', '$_POST[Email]', '$_POST[FirstName]', '$_POST[MiddleName]', '$_POST[LastName]', '$_POST[Gender]', '$_POST[BirthMonth]', '$_POST[BirthDay]', '$_POST[BirthYear]', '$_POST[Location]', '$_POST[Password1]', Now() )"; if (mysql_query($sql,$con)) { echo "Values Posted<br>"; $dbase = $_POST["CallSign"]."char"; mysql_select_db($dbase, $con); $sql = "CREATE TABLE chars ( charID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(charID), CharName varchar(15), CharPub TEXT, CharPriv TEXT, CharGame int …

Member Avatar
0
6
Member Avatar

My goal is to create a clone of minesweeper. I've created a custon component that extends the JButton class, for each of the minesweeper buttons. I've called this new class SweeperButton. the game board is going to be made in another class by creating a two deminsional array of SweeperButtons, displaying them, and handling the logic for the game. That having been said, there's somewhere between 12 and 15 images that I need to load into the program as ImageIcons, so that my SweeperButtons can use them as icons. although I'd like the array of images to be loaded into …

0
3
Member Avatar

Im not seeing it but its not working here is the code: mysql_select_db("my_db", $con); $sql = "CREATE TABLE stream ( waveID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), userID int, wave varchar(25), waveTime TIMESTAMP DEFAULT NOW() )"; // Execute query if(!mysql_query($sql)) { echo "Couldn't do it"; } else { echo "alright"; }

Member Avatar
0
5
Member Avatar

Good Morning All, This is a question I touched on previously, but don't think I presented what I really need to do. I need to get this accomplished ASAP, and really have no clue how to go about it. Would even be willing to pay someone else if they have the solution and can get it implemented. On the membership site I've been developing, they are ordering products of various types... the orders are gathered together and fulfilled periodically (daily generally). When the order is fulfilled, I need to print labels (30 up on an 8 1/2 x 11 sheet) …

Member Avatar
0
38
Member Avatar

[CODE]sizeA = 2**28 M = [0]*sizeA[/CODE] The above code creates an array but, each element is 4 bytes each. How do create a large byte array with type 'B' (eight bits unsigned)? I would like it to be as large as possible. I need it for a sieve prime number program.

Member Avatar
0
13
Member Avatar

Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks

Member Avatar
0
41
Member Avatar

In JavaScript (preferably jQuery) how could I create a new element and set its values, but I want it in a specific place In the document. My divs are structured like this : [code]/* container item [item to be created inserted here] */ [/code] I know how to do this and insert it before the end body tag, but not like this. I also say in jQuery, as most of my site is written in jQuery (only the js parts) Thanks, Matthew.

Member Avatar
0
4
Member Avatar

I want to create a function or a class method that will create a dictionary named by a variable that is passed in. By way of example, I'm creating a class method to read data from a table (in this case it's an ArcGIS table, but that's not critical) and I'd like the method to give me a dictionary identified by the string stored in OutputDictionaryName (see below). class ReadTableIntoDictionary(): def __init__(self, TableSource, KeyField, OutputDictionaryName): self.TableSource = TableSource self.KeyField=KeyField self.DictName = OutputDictionaryName (rest of code goes here to extract the data from the table into a dictionary ... no problem, …

Member Avatar
0
7
Member Avatar

Hi i need to create about 100 files in a numbered sequence like : file1.txt,file2.txt,file3.txt . so how can i create these files using c#.

Member Avatar
0
3
Member Avatar

hi, i am making a program that kills a process [CODE]system("taskkill /im explorer.exe");[/CODE] and i need to restart the process using CreateProcess. [CODE]CreateProcess(NULL,("C:\\WINDOWS\\explorer.exe"), NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &siStartupInfo, &piProcessInfo);[/CODE] but i keep getting these errors: 27 `siStartupInfo' undeclared (first use this function) and 27 `piProcessInfo' undeclared (first use this function) any solutions?

Member Avatar
0
5
Member Avatar

How can i create a task to run a program by coding in vb6 and 2010

Member Avatar
0
7
Member Avatar

Hi Friends i am having one master table for category which contain 7 fields, i am having sitename as a table which contain 8 fields, if i create [B]newsite[/B] name then it has to copy all the fields from master table in addition to that it has to display the [B]newsitename[/B] in each and every datas. like wise n number of newsite. Pls i dont know how to explain clearly, in written, Please help me to solve the issue

Member Avatar
0
4

The End.