I want to put some numbers from Excel to array.
Let's say I have an Excel file with some numbers like this:
23
34
1
3
100
56
45
43
56
4
87
6
89
9
this is just one column in excel (or any file)
And i want to put those numers in arraylist as integer numbers, i dont need the result as one number but all those numbers to be in int valu...
Hi,
I have a Ubuntu server and PHP5, and the PHP script files, and all output are in UTF-8.
I'm trying to send an image to the output stream, but just garbled chinese characters shows up in the output:
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text Stri...
Hi guys, i have a question. I need in file-viewer for some directory. It could be wroted in php/java script. I saw examples in some panel-settings of web-sites, where i could follow the files on web-server. Could you tell me name of need extension? Thanks
...
Is there any ways to create my own audio file format?
I'm planning to create simple player with its codec.
What should I learn before now?
thanks.
...
In the HTML head section:
<script type="text/javascript" src="Scripts/editScripts.js"></script>
Just above the </body> tag(closing tag, bottom of the html page). Also: this is the old code, this is how it was when it was not working:
<script type="text/javascript">if(document.getElementById)initialize();loadEvents();</script>
<...
A friend and I are both working in xCode. We send each other the most recent version of the application files as a .zip or upload to our ftp whenever the other person needs to work on their area of the project. However, we have had some issues. When I last sent it to him, xCode wouldn't let him open and run the project. However, when he ...
I have recently learnt how to program in java, I was looking at some open source programs from sourceforge.net and after downloading these programs I don't understand the file structure most of the programs follow. Pretty much every program has src,bin,lib etc folders, how do I know the standard way of organizing my program. Is there any...
On the site I am developing, I have a file input that users can upload files from. It uses "Ajax" (not really) to send the file to a php file that is bound to an iframe. My question is that Firefox automatically fills in the file input element. Is there a way I can give users the option of clicking the submit button without sending the f...
I am writing a Cross platform application using C++/STL/Boost and I realized they do not provide a way to check if a folder or file is hidden or is a system file in Windows.
What's the simplest way to do this in C/C++ for Windows ?
Ideally I have a std::string with the path (either to a file or folder), and would return if it's hidde...
Hi there!
To be able to log and trace some events I've added a LoggingHandler class to my java project. Inside this class I'm using two different log4j logger instances - one for logging an event and one for tracing an event into different files. The initialization block of the class looks like this:
public void initialize()
{
System....
I'm needing to locate a string on a particular line in a text file that is composed of several lines of strings. However, my loop to find the text or the end of the file is eternally searching. I know the string is in the file. Here is the code I am using to locate the text - but be warned, if you try it on your system even with a simple...
Hi is this totally safe or not? I would like a totally safe fileuploading script for my new project. Thanks in advice. Here is the one i found:
<?php
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
{
if ($_...
Hello there!
If I have a code like this:
$file = basename($filename);
How do i get the file extension of $file? The variabel file could contain any kind of file, like index.php or test.jpeg.
...
The users will be downloading multiple files at a time. The files would be zipped and sent to the user. Since the user base is very large for the application, there will be a limit on the zip size that the user can download at a time (e.g., 50 MB)? What is the best way to implement this?
...
Using PHP, it's possible to read off the contents of a file using fopen and fgets. Each time fgets is called, it returns the next line in the file.
How does fgets know what line to read? In other words, how does it know that it last read line 5, so it should return the contents of line 6 this time? Is there a way for me to access tha...
Hey. I have a function I want to memoize, however, it has too many possible values. Is there any convenient way to store the values in a text file and make it read from them? For example, something like storing a pre-computed list of primes up to 10^9 in a text file? I know it's slow to read from a text file but there's no other option i...
can we set single file as external in subversion
...
I am trying to create a file in Windows XP that is only the extension (".classpath" and ".project"). While my Linux box handles this appropriately, Windows gives me the error, "You must type a file name."
Any suggestions how to do this? I am attempting to setup an Eclipse project where I can bring in the classpath and project files fr...
I'm trying to copy one file to another directory, but the way I am copying the file is not working when the source path has a directory with spaces in it, e.g.
/Volumes/public/Music/Directory With Spaces/01.mp3
I am using: http://commons.apache.org/io/
I can't find a way around this, any ideas?
Edit: The problem should probably be p...
I want to open a file on my VB6 application by pressing a command. The file is a filetype read by another program. I want it to open it and the program that reads the filetype should open as well because when it finds that filetype it opens automatically. Can anyone help me with this I'm kind of a newb at VB6 (just got it yesterday).
...