My Recent Pastes (11 and counting)

Pastes by Fabricio Zuardi (11 and counting)

Below are the 11 most recent pasties by Fabricio Zuardi.

June 18, 2009
3:02PM EDT
by Fabricio Zuardi

diff --git a/server/admin/admin.preview.php b/server/admin/admin.preview.php
index 7c055a0..5657d6d 100644
--- a/server/admin/admin.preview.php
+++ b/server/admin/admin.preview.php
@@ -20,6 +20,14 @@

June 18, 2009
2:56PM EDT
by Fabricio Zuardi

      _root.addChild(mapBackground);
+      for (i in Reflect.fields(regions)){
+        var region = Reflect.field(regions,i);
+        _root.addChild(region.mc);
+        region.mc.x = region.x;

June 03, 2009
1:38AM EDT
by Fabricio Zuardi

MEncoder SVN-r29344-4.0.1 (C) 2000-2009 MPlayer Team
137 audio & 297 video codecs
success: format: 0  data: 0x0 - 0x16e4800
libavformat file format detected.
LAVF: Program 1 

June 03, 2009
1:37AM EDT
by Fabricio Zuardi

mencoder "00758.MTS" -o intermediate.avi \
-fps 60000/1001  -ofps 24000/1001 \
-noskip -mc 0 \
-demuxer lavf \
-oac copy -ovc lavc \

February 19, 2009
12:17AM EDT
by Fabricio Zuardi

diff -r 3c87fdcb0092 frontend/js/editor/editor.js
--- a/frontend/js/editor/editor.js        Wed Feb 18 15:01:22 2009 -0800
+++ b/frontend/js/editor/editor.js        Thu Feb 19 02:16:40 2009 -0300
@@ -86,7 +86,11 @@
     },

February 14, 2009
5:42PM EDT
by Fabricio Zuardi

# converts a list to a comma separated string with 'and' as the last separator
def inline_list(l, sort=True, separator=', ', last_separator=' and '):
  if(sort): l.sort()
  list_size = len(l)
  return  separator.join(l[:list_size-1]) + (last_separator if list_size > 1 else '') +l[list_size-1]

November 24, 2008
5:58PM EDT
by Fabricio Zuardi

Index: thumbnailUrlProper.php
===================================================================
--- thumbnailUrlProper.php        (revision 40441)
+++ thumbnailUrlProper.php        (working copy)
@@ -175,9 +175,9 @@

September 15, 2008
3:26AM EDT
by Fabricio Zuardi

Index: chrome/app/resources/generated_resources_pt-PT.xtb
===================================================================
--- chrome/app/resources/generated_resources_pt-PT.xtb        (revision 1692)
+++ chrome/app/resources/generated_resources_pt-PT.xtb        (working copy)
@@ -637,13 +637,13 @@

January 28, 2008
3:48PM EDT
by Fabricio Zuardi

<script type="text/javascript">
var siteHeader = document.getElementById('xg_sitename')
var headerImage = siteHeader.getElementsByTagName('IMG')[0]

//put the img outside of the a tag, we will map custom link areas

December 10, 2007
7:54PM EDT
by Fabricio Zuardi

<?php
/** 
 * Delete all tags for a given content object
 */
 

December 10, 2007
7:53PM EDT
by Fabricio Zuardi

<?php
//allow only the app owner to delete tags from any object
if (! XN_Profile::current()->isOwner()) {
    $signInUrl = XN_Request::signInUrl();
    echo 'Not allowed <a href="'.$signInUrl.'" >Sign in</a> if you are the owner of this app.';