Skip to content

Instantly share code, notes, and snippets.

Process: Evernote [7812]
Path: /Applications/Evernote.app/Contents/MacOS/Evernote
Identifier: com.evernote.Evernote
Version: 5.5.1 (402628)
Code Type: X86-64 (Native)
Parent Process: launchd [256]
Responsible: Evernote [7812]
User ID: 501
Date/Time: 2014-04-08 11:32:59.277 -0500
@wvega
wvega / issue-description.md
Created March 21, 2014 02:20
My solution to an issue that was already [fixed](https://github.com/socrata-cookbooks/java/pull/146) :(

I'm getting the following error when I try to install Oracle's Java 6 or 7:

ERROR: java_ark[jdk] (java::oracle line 49) had an error: SystemExit: exit

I think is caused by this other error:

FATAL: Failed to extract file jdk-6u45-linux-x64.bin!

Chef output related to java recipe appears below:

@wvega
wvega / print_r_output.txt
Created February 20, 2014 04:38
Additional information for question http://stackoverflow.com/q/21897786/201354
<pre>wpdb Object
(
[show_errors] =>
[suppress_errors] =>
[last_error] =>
[num_queries] => 14
[num_rows] => 0
[rows_affected] => 0
[insert_id] => 0
[last_query] => SELECT option_value FROM wp_options WHERE option_name = 'wpseo_internallinks' LIMIT 1
# a fully-functional Python unittest example where we have a
# Tornado web application that is being tested:
#
# taken from https://groups.google.com/forum/#!topic/python-tornado/hnz7JmXqEKk
# originally posted by Jeremy Whitlock
import tornado.httpserver
import tornado.httpclient
import tornado.ioloop
import tornado.web
  1. (0.5h) Create table for Products, Product Properties, Specific Product Properties (Each Product would be associated with a Listing Category).
  2. (7.5h) Create Product admin screens:
    1. (1.5h) Create Products table.
      1. (1.0h) Create table
      2. (0.5h) Delete Products action.
    2. (1.5h) Create Add/Edit Products action.
      1. Create associated Listing Category id.
    3. (1.0h) Create action to Add/Edit (global) Product Properties.
      1. Associate related Extra Fields to the Product category.
  3. (2.0h) Create action to Add/Edit (specific) Product Properties.
<?php
echo $before_widget . $before_title . $title . $after_title;
echo '<div align="center">';
echo '<form method="post" action="'. url_searchads() .'" onsubmit="if (this.keywordphrase.value == \'Search by keyword\') { this.keywordphrase.value = \'\'; } return true;">';
echo '<input type="hidden" name="a" value="dosearch"/>';
$keywordphrase = stripslashes_deep(awpcp_post_param('keywordphrase'));
if ($instance['show_keyword'] == 1) {

Credit System

AWPCP 3.0 or newer includes a feature that allow Ads and Subscriptions to be paid using credit. Each registered user has now a balance associated to his/her account. The balance starts at zero but users can purchase credit from the Admin Dashboard using regular payment methods or administrators can add (and remove) credit to the user's accounts.

How to enable the Credit System

The Credit System has to be enabled from the Payment Settings. Just check the Enable Credit System checkbox and save the settings.

screenshot

@wvega
wvega / payments-payment-completed-page.tpl.php
Created July 10, 2013 14:42
Template file for AWPCP's Payment Completed page.
<form method="post" action=<?php echo esc_attr($action) ?>>
<h3><?php _ex('Transaction Details', 'payment completed page', 'AWPCP') ?></h3>
<?php echo $this->render_transaction_items($transaction) ?>
<h3><?php echo $title ?></h3>
<p><?php echo $text ?></p>
<?php echo $this->render_transaction_errors($transaction) ?>
@wvega
wvega / gist:5552259
Created May 10, 2013 03:46
A couple of functions to convert date and time format strings from jQuery UI Datepicker and jQuery TimePicker to PHP's date format.
<?php
$timepicker = array(
'h' => 'g',
'hh' => 'h',
'H' => 'G',
'HH' => 'H',
'mm' => 'i',
'ss' => 's',
'p' => 'A',
@wvega
wvega / bigrradio.xml
Created November 29, 2012 22:36
List of Big R Radio channels
<?xml version="1.0" encoding='UTF-8'?>
<config><sendUrl> http://www.google.com </sendUrl><chatUrl> http://www.google.com </chatUrl><StationConfiguration AutoPlayStation="1"><Channel name="100.3 The Rock Mix"><RTMP>rtmp://64.237.43.235:80/jamz</RTMP><URL>http://icecast.bigrradio.com/100point3</URL><IMAGE>xLFa_rockmix.png</IMAGE></Channel><Channel name="100.5 Classic Rock"><RTMP>rtmp://64.237.43.235:80/jamz</RTMP><URL>http://icecast.bigrradio.com/100point5</URL><IMAGE>lgKs_1005.png</IMAGE></Channel><Channel name="100.7 The Mix"><RTMP>rtmp://64.237.43.235:80/jamz</RTMP><URL>http://icecast.bigrradio.com/100point7</URL><IMAGE>laTl_station-TheMix.png</IMAGE></Channel><Channel name="100.8 The Hawk"><RTMP>rtmp://64.237.43.235:80/jamz</RTMP><URL>http://icecast.bigrradio.com/100point8</URL><IMAGE>NLIq_1008hawk.png</IMAGE></Channel><Channel name="100.9 Star Country"><RTMP>rtmp://64.237.43.235:80/jamz</RTMP><URL>http://icecast.bigrradio.com/100point9</URL><IMAGE>eH6z_station-StarCountry.png</IMAGE></Channel><Channel name