1
2
3
  def save_string data
...

Ruby Saving strings as attachments

by astropanic, July 29, 2009 10:45, No refactoring, tagged with ruby, paperclip, file

Is there a better way to sa...

A391f932c5bb61131c99f8543a07f697 Talk
1
2
3
4
#!/usr/bin/perl -w
use strict;

...

Perl deldup

by tak11.myopenid.com, December 16, 2008 03:54, 4 refactorings, tagged with password, perl, file

ment to cycle through a pas...

42306c1a1e87611519fdf1811ffe2c9c Talk
1
2
3
4
# Syncronize it
# Version 0.1
# Author : kyzh@snibbits.net
...

Ruby very simple .srt resyncroniser

by kyzh, December 08, 2008 23:52, 2 refactorings, tagged with time, file, kyzh

sick of seeking into the su...

F219245be3a984ebe2b754c64866551f Talk
1
2
3
4
<?php
function unique_file($prefix, $suffix){
  $file = sprintf('%s.%s', $prefix, $suffix);
...

PHP Generate a numbered file name

by hubfactor, October 23, 2008 13:53, 2 refactorings, tagged with file

Create a file name from the...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
	public static String getRelativePath(File file, File relativeTo) throws IOException {
		/*
		 * windows seems in some cases not to stop getParent() at 'c:\', which I
...

Java get path of a File relative...

by lord alcol, August 18, 2008 17:23, 3 refactorings, tagged with java, file, path

I call:
File f = new File(...

A9c8a6d8eed437bb33d504cae365bf57 Talk
1
2
3
4
	public static boolean fileContentsEquals(File file1, File file2) {
		InputStream is1 = null;
		InputStream is2 = null;
...

Java fileContentsEquals

by lord alcol, August 18, 2008 09:09, 3 refactorings, tagged with java, io, file

This method checks if the c...

A9c8a6d8eed437bb33d504cae365bf57 Talk
1
2
3
4
<?php

class RequestFile
...

PHP Universal File Download Class

by Chris Dean, August 16, 2008 11:21, 4 refactorings, tagged with php, 5, universal, file, download, class

After finding different hos...

151e36cc7f789a4790c8ca437e3a1f60 Talk
1
2
3
public PreviewTreeModel(Collection<FileDescription> files)
	{
...

Java Create a tree out of a coll...

by Loid, March 02, 2008 19:14, 1 refactoring, tagged with tree, file, speed

I would like to transform a...

2b3b5047901ac67fefd8b392c26027b4 Talk
1
2
3
4
    def init_scite_buffer
        # Check for allready opened files
        res = @director.send_command('savesession', '/tmp/SciTE.session', false)
...

Ruby Wait for file create

by Fu86, February 27, 2008 20:58, No refactoring, tagged with file, timeout, sleep, block

This method sends a command...

Ee0505bbd355292778077fb662c88f13 Talk