The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
75 views

Image Upload Script Security Review

<?php $filename = $_FILE['inputfile']['name']; $upload_path = 'images/'; //extract extension $ext = strtolower(substr($filename, strrpos($filename, '.') + 1)); // return mime type ala mimetype ...
0
votes
0answers
38 views

A Ruby file-find strategy with the Find library?

I recently wrote a bit of code to fix broken aliases. (A dropbox backup changed all their types to look like true files) I iterate through all files in O(m•n) form. I recognize that there are ...
2
votes
1answer
72 views

Monitor filesystem for continuous integration and build

I've written a simple Python module that depends on watchdog to monitor for modified files, thens runs various integration and build processes. I'm fairly new to Python, so I'd appreciate all ...
2
votes
2answers
48 views

Better way to create directories using File

I have this code that generally creates directories within a directory. File userFolder = new File(rootPath+"/media/"+userBean.getUsername()); File userPhotosDir = new ...
0
votes
1answer
162 views

'How to debug Buffer Overrun Issues' erro. Can someone help me to fix my code? [closed]

I have this code that reads a file that already exists, but in the first "for" when it read the file and copies it to the "struct" when the index is 1, I get an error: (A buffer Read overrun has ...
4
votes
1answer
179 views

Renaming Files and/or Directory

I'm quite new to Python and would love to gather feedback on my code. I've written a piece a script that allows me to search all file or directory names within a folder matching a particular pattern. ...
3
votes
4answers
143 views

Improving file reading

I am programing in C language and have created the below functions to read files. There are two functions that I can use to read files. I wanted to know how I can further improve these two in terms of ...
2
votes
2answers
243 views

Python script for a git repository

I am a newbie regarding Python and I would like to improve my Python-fu. As a learning exercise, I decided to write a script for helping me maintain my Unix configuration/dot-files under a git ...
3
votes
1answer
151 views

Execute multiple query from a text file

I am just wondering if this is a correct way to execute multiple query from a text file. Connection conn = Utility.getConnection(); Statement stmt = null; try{ JFileChooser chooser = new ...
5
votes
1answer
458 views

Replacing files with symlinks to other files

I wrote a little Python script to replace some files in usr/bin with symlinks to files in a different location. I wouldn't mind anyone telling me where I could do better. #!/usr/bin/env python -tt ...