I accidentally added, committed and pushed a huge binary file with my very latest commit to a Git repository.
How can I make Git remove the object(s) that was/were created for that commit so my .git directory shrinks to a sane size again?
Edit: Thanks for your answers; I tried several solutions. None worked. For example the one from Gi...
Hi,
I have a bunch of frames (generated by a function) that I want to write to a MP3 file using Python. I tried using pymedia but I always get a Segmentation fault.
Doe anyone know an extension to write MP3 files using Python?
Thanks!
...
i have this include function in a file inside another folder called ajax, but it wnt let me access this include file:
include("includes/connect.php");
i dont know what to do, thanks, and im using localhost?
Warning: include(includes/connect.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\f...
I am trying to use qt to write an application that connects back to my computer to retrieve files. Example: My friend would open up the app and when it opens, it connects to my computer and takes off of it the file it needs then disconnects. How would I do that and or what tools would I use?
...
Hi all,
I've figured out how to draw Arabic characters properly (connected and right to left) using string literals like this:
textView.setTypeFace(Typeface.createFromAssets(getAssets(),"DejaVuSans.ttf"));
textView.setText("\uFEB3\uFE92\uFE98\uFE94");
But for some reason I cannot get the arabic to format properly if I read anything f...
Hello,
I'm looking for a ready-to-use piece of code that would be able to read and modify Delphi .res files. The thing is that I need to create an application that will be compiling many Delphi projects at once (using the dcc32.exe file). However, it is necessary for me to change file version and language before compilation, and as far a...
I want to allow users to download a file, but in order to do so they have to supply an email address. When they enter their address, a link/code is emailed to them, then they have to click that link, and the file downloads.
My question is- how can I restrict access to the file so that only people with a valid code can download it? I und...
Hi
I would like to save settings for an AIR application to a local SQLLite database.
Wherever i read, it's recommended that you use File.applicationStorageDirectory to save the database file.
My problem is that in most cases, the AIR application will be first started by an administrator that configs and setup the application (and save t...
How can I read only X lines from a a.txt file?
The file contains all the names of a directory, I would like to read only x lines.
X can be a number that can varies from 1 to 99
...
I configured cache dependency on a file on the server, the cache dependency event stops responding to file changes once in 2 or 3 days. After I perform IISReset on the server, it works fine.
How to debug this type of issues?
Thanks in advance!
...
I have two questions regarding Erlang file i/o; what is the best way to achieve in Erlang:
reading large binary files (many gigabytes) without copying the whole file into memory
reading a gzipped binary file as a decompressed stream
Thanks!
...
Okay, so this is the line that's returning null. What am I doing wrong while creating this FileInputStream?
FileInputStream fin = new FileInputStream(new File(getClass().getResource("data/levellocks.lv").toURI()));
...
Need to create a function with two params, a filename to open and a pattern.
The pattern will be a search string.
Eg. the function will open sentence.txt that has something like "The quick brown fox" (can possibly be more than one line)
The pattern will be "brown fox"
So if found, as this will be, it should return a line number and i...
I'm trying to determine if a file or directory doesn't exist. I tried the following commands to see if a file does exist and they work correctly:
if [ -a 'settings.py' ]; then echo 'exists'; fi
exists #output
if [ -a 'foo' ]; then echo 'exists'; fi #outputs nothing
But when I try this:
if [ ! -a 'settings.py' ]; then echo 'does not e...
Hi all!
I list out files in '/' by:
File directory = new File("/");
fill_listview(directory.listFiles());
And I get those in list:
sqlite_stmt_journals
config
cache
sdcard
d
etc
system
sys
sbin
proc
init.rc
init.goldfish.rc
init
default.prop
data
root
dev
I have two questions:
1.Why cann't I access '/data' folder just like Eclips...
Hello all, I am currently saving images to the iphone's local space whenever I finish loading them. I was wondering if I need a separate thread to do that. I.e
The iphone can be requesting multiple images at the same time and when they are loaded, I call the save to HD method.
Since there are a lot of save to HD method being called a...
My Code:
std::ofstream m_myfile,
m_myfile.open ("zLog.txt");
m_myfile << "Writing this to a file " << " and this " << endl;
when this C++ Program runs, I have another program that needs to read this file. The problem is that the file is locked by C++ and I cannot read it from the other program. I know there is something I have to d...
Hi there,
I need to create a list of files which are located on my hard disk in order of when they arrived on the hard disk. To do so, I have used the following:
ls -lat
which lists all the files in date/time order, however, it only orders them to the nearest second. The problem here is that there are thousands of files and every so...
Hi all!
A newbie question perhaps... :-S
In config of my app I've a path, for example "logs\updater\updater.log"
Starting the app, I wanna create the file updater.log, creating all subfolders if they not exists.
So, if tomorrow my user changes the path in config to "logs\mypathisbetter\updater.log", my app continues to work, writing lo...
Is it possible to disable access of some program to files completely?
Because I don't want it to have any kind of access to files on system, is it possible to compile it so it doesn't have access to file stream or to run it someway it cant access files?
...