Skip to content

Instantly share code, notes, and snippets.

17:40 < Obsidian|server> one day the world will leave java for the promised land
17:40 < mbreslin> i hope it doesn't, i'll be out of a job
17:40 < mbreslin> i hate java but i hate being unemployed more
17:40 < rnowak> mbreslin: just pretend you're doing stuff with $newtech, just like you do with java now
17:41 < Obsidian|server> "I'm a java refugee"
17:41 < rnowak> "I survived java"
17:41 * Obsidian|server waits for donations to start pouring in
17:41 < Obsidian|server> do commercials like the ones for the poor children in africa, for the charities that have like 80% administrative costs
17:42 < mbreslin> i was at work at 6am this morning trying to unfuck myself from a bad thing i did before new years
17:42 < Obsidian|server> "With just $300 a day, you too can help support recovering java programmers like mbreslin"
@katanacrimson
katanacrimson / gist:1515305
Created December 23, 2011 20:40
why phpbb failed
why phpbb has failed the open source movement
in response to the daydreaming present in http://www.phpbb.com/community/viewtopic.php?f=64&t=2143698
note: this is from the standpoint of the everyday admin, running 3.0.x - changes already patched into 3.1.x are not taken into consideration as they are not readily available for public use. if you want pending changes considered, get off your ass and get a release of 3.1.x out.
---
issues
- contributing
@katanacrimson
katanacrimson / gist:1388127
Created November 23, 2011 07:41
Get just the relevant timezones, not all of the damn ones that PHP decides to spam us with.
<?php
// Figure out timezones.
$timezones = \DateTimeZone::listIdentifiers(\DateTimeZone::PER_COUNTRY, 'US');
$_timezones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC);
$_p_timezones = $_n_timezones = array();
foreach($_timezones as $timezone)
{
if($timezone == 'Etc/GMT-0' || $timezone == 'Etc/GMT-13' || $timezone == 'Etc/GMT-14')
{
continue;
@katanacrimson
katanacrimson / test.php
Created October 25, 2011 21:54
A test of the stopforumspam integration library in development at https://github.com/emberlabs/sfslib
$ php test.php
object(emberlabs\sfslib\Transmission\Request\Response)#31 (1) {
["data":protected]=>
array(1) {
["username"]=>
array(1) {
["test"]=>
object(emberlabs\sfslib\Transmission\Request\Result)#32 (8) {
["type":protected]=>
int(1)
@katanacrimson
katanacrimson / gist:1242961
Created September 26, 2011 18:24
logic for refactored whitefire (extends emberlabs/materia) - loading phar addons
on load:
- compare hardcoded signature file in code to signatures.phar pubkey against before using signatures file
- identify user-supplied signature files
( new addons are dropped into a temporary dir for verification )
for addons being loaded from temporary dir:
if no pubkey file for phar:
if loading with LOAD_PARANOID:
- refuse to load addon
if loading with LOAD_WARY:
// My own version, slightly modified version of what github released (added the stuff for relatizeDateTime so it plays nice with html5 and <time> tags)
//
// Github's original version: https://github.com/github/jquery-relatize_date
// All credit goes to Rick Olson.
(function($) {
$.fn.relatizeDate = function() {
return $(this).each(function() {
$(this).text( $.relatizeDate(this) )
<?php
$tungsten = new \Codebite\Tungsten\TextParser();
$tungsten->loadStack('UniqueSelector')
->loadStack('SimpleYoutube')
->loadStack('LinkedImage')
->loadStack('Link')
->loadStack('TokenRemover');
$text = "super fancy embedding!
@katanacrimson
katanacrimson / gist:1097240
Created July 21, 2011 13:58
parsing a printf formatted string (sql statement) and translating it to PDO param bindings
<?php
$match = 'SELECT p.*, u.*
FROM posts, users
WHERE p.post_author = %3$d
AND u.user_id = %3$d
AND
(
u.username = %s
OR u.usertype = %s
diff --git a/Router/RouteInstance.php b/Router/RouteInstance.php
index ed05a85..e4e5202 100644
--- a/Router/RouteInstance.php
+++ b/Router/RouteInstance.php
@@ -164,7 +164,7 @@ class RouteInstance
if(substr($callback, 0, 2) != '::' && substr($callback, -2, 2) != '::')
{
- if(!is_callable($callback))
+ if(!is_callable($callback) && !is_file($callback))
The included report was submitted as an "inappropriate content" report to SourceForge regarding the project "TCPDF", located at the URL http://sourceforge.net/projects/tcpdf/report_inappropriate
It is regarding the license of the project, which violates the GNU Lesser General Public License, version 3 -- under which the library is licensed. By extension, as the library is violating its own license, it is also in violation of the Sourceforge.net Terms of Use.
The report was sent to the Sourceforge team as of 06/16/2011 4:37 PM UTC-6(+DST).
A response from the Sourceforge team has not yet been received.
---
Update - 06/16/2011 5:09 PM UTC-6(+DST)