I would like to find the height/width of an image on disk without opening it, if possible (for performance reasons).
The Windows properties pane for images contains information like width, height, bit depth, etc., which leads me to believe that it is storing metadata on the file somewhere. How can I access this information?
...
I'm trying to make an action that returns a file from disk to the user (via little download dialog popup box.) I've got it working great, except somehow a newline is being inserted as the first character. This breaks jpeg and doc files, for example. If I remove the newline from the downloaded file, the files work.
I've also looked throu...
How to get a fully qualified path to MS Explorer in .NET?
The path will be used to launch a new instance of MS Explorer with some command line parameters.
...
I have a java app that uses log4j.
Config:
log4j.rootLogger=info, file
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.File=${user.home}/logs/app.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%t] %c %p %m%n
So all the log statements a...
I would like to publish some files to be downloaded through my joomla-made site, but I can`t find the tool to do it. How can I achieve this? Any help?
...
I'm trying to set flag that causes the "Read Only" check box to appear when you right click \ Properties on a file.
Thanks!
...
Looking for something similar to Modelmaker that was for Delphi.
Showing dependecies of modules. Any help is appreciated.
Doxygen has been great so far. If someone know if it's possible to
achieve what I want with Doxygen, then please let me know :)
...
The official documentation for TemporaryFile reads:
The mode parameter defaults to 'w+b'
so that the file created can be read
and written without being closed.
Yet, the below code does not work as expected:
import tempfile
def play_with_fd():
with tempfile.TemporaryFile() as f:
f.write('test data\n')
f.wri...
I have to work with some image files. They are named as .png and .jpg, but I tried 3 different image viewers, and none of them could open the files. I found out that the first 8 bytes of these files were CF10rUrm, and DROID told me it was a JTIP (JPEG Tiled Image Pyramid).
I need to use these from Python. Does anybody know of any way to...
I read
FileTreeDragSource
Can I get file path from Swing to explorer.
Not explorer -> Swing!!
Swing -> explorer
I wanna get path with explorer
...
I want to find if certain files are changed within the last three minutes in order to decide if the cp was successful, and if I should exit or continue the script. How can I do that?
Thanks
...
Hello,
I'm just trying to load an xml file witch can be anywere in the hdd, this is what I have done to browse it, but later when I'm trying to load the file it would only look in the same path of the swf file
here is the code
package {
import flash.display.Sprite;
import flash.events.;
import flash.net.;
public class carg...
I have two different PHP files that both write to the same file. Each PHP script is called by a user action of two different HTML pages. I know it will be possible for the two PHP files to be called, but will both PHP files attempt to write to the file at the same time? If yes, what will happen? Also, it is possible to make one of the PH...
I'm looking to apply a KMP (or similar) search to a large file (> 4GB).
I'm expecting this to give me problems though.I can't copy it all to memory because there isn't enough space there.
My question is, what is the best way to go about doing this search? Should I simply create a FILE* and do the search directly in the file, should I c...
I'm working my way up towards creating a script that will create image galleries for me.
When I run what I have it tells me
No such file or directory at photographycreate line 16.
------------
(program exited with code: 2)
Here is the code that I've gotten so far.
#!/etc/perl -w
#CHANGE THIS
$filecategory = "cooking";
$filenumber...
I want to download only .htm or .html files from my server. I'm trying to use ncftpget and even wget but only with limited success.
with ncftpget I can download the whole tree structure no problem but can't seem to specify which files I want, it's either all or nothing.
If I specify the file type like this, it only looks in the top fo...
Hi
I have been working on a upload file that works fine on localhost (windows) but wont work on my linux server I rent. I want it to move it to a subdir '/files' from where the file is.
it gives the errors:
Warning: move_uploaded_file(/home/taalhulp/domains/taalhulpmanager.nl/public_html/files/6) [function.move-uploaded-file]: failed ...
I'm having difficulty with the linker when it comes to compiling a sample program that uses the POSIX aio library (e.g. aio_read(), aio_write(), etc) on Linux.
I'm running Ubuntu with a 2.6 kernel, and have used the apt-get utility to install libaio. But even though I'm linking with the aio library, the compiler still gives me linker er...
I've worked with reading and writing text files with PHP. Now, I'd like to read and write binary files. I've not found any useful resources/tutorials for doing this with PHP5. Is it possible? How?
Specifically, I'll be searching for specific 2-byte patterns.
If it matters, I'm on a Mac (OS X 10.4 Tiger).
...
Hi,
I have a .txt file with product data, which I want to read in php. Each line contains one product, and the product details (number, name and price) are separated by tabs. As you can see below, it is not always true that the prices are nicely aligned vertically, because of the difference in length for the prodcut names. The data look...