This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Person has_many cards has_many transaction_feeds. | |
# I would like to find all of the people with at least one transaction feed with the is_ach bool set to true: | |
SELECT DISTINCT(people.id) AS person_id FROM `people` | |
INNER JOIN `cards` ON cards.person_id = people.id | |
INNER JOIN `transaction_feeds` ON transaction_feeds.card_id = cards.id | |
WHERE (transaction_feeds.is_ach = 1) | |
GROUP BY person_id | |
HAVING COUNT(transaction_feeds.id) > 0; | |
# This works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nokia-N900-42-11:~# gst-inspect-0.10 |grep nokia | |
nokiag729dec: nokiag729dec: Nokia G729 decoder | |
nokiartpasf: nokiartspextwms: RTSP extension for Windows Media Server | |
nokiartpasf: nokiartpasfdepay: RTP packet depayloader | |
nokiag711dec: nokiag711dec: Nokia G711 decoder | |
nokiailbcdec: nokiailbcdec: Nokia iLBC decoder | |
nokiamp3dec: nokiamp3dec: Nokia MP3 decoder | |
nokiaamrnbenc: nokiaamrnbenc: Nokia AMR-NB encoder | |
nokiaasf: nokiaasfdemux: ASF Demuxer | |
nokiaamrnbdec: nokiaamrnbdec: Nokia AMR-NB decoder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--(jadams@quadtopus)-(26/pts/3)-(1330/29-Dec-09)-- | |
--($:~/software/mysql-sha256-3)-- sudo mysql -uroot | |
Welcome to the MySQL monitor. Commands end with ; or \g. | |
Your MySQL connection id is 134 | |
Server version: 5.1.37-1ubuntu5 (Ubuntu) | |
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | |
mysql> create function sha256 returns string soname 'sha256.so'; | |
ERROR 1126 (HY000): Can't open shared library 'sha256.so' (errno: 22 /usr/lib/mysql/plugin/sha256.so: failed to map segment from shared object: Permission denied) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> require 'CSV' | |
LoadError: no such file to load -- CSV | |
from (irb):1:in `require' | |
from (irb):1 | |
irb(main):002:0> require 'csv' | |
=> true | |
irb(main):003:0> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> txt = "thing1,,thing2" | |
=> "thing1,,thing2" | |
irb(main):002:0> a = txt.gsub!(/,,/, ',"",') | |
=> "thing1,\"\",thing2" | |
irb(main):003:0> puts a | |
thing1,"",thing2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The 100 Best Business Books of All Time: What They Say, Why They Matter, and How They Can Help You | |
Jack Covert, Todd Sattersten | |
Create Your Own Economy: The Path to Prosperity in a Disordered World | |
Tyler Cowen | |
Body of Secrets: Anatomy of the Ultra-Secret National Security Agency | |
James Bamford | |
Gray's Anatomy: The Classic Collector's Edition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--(jadams@quant)-(3/pts/8)-(1026/14-Apr-10)-- | |
--($:~/rails/insight_card_services)(phase_2)-- /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby script/console | |
Loading development environment (Rails 2.3.3) | |
/home/jadams/.gem/ruby/1.8/gems/rails-2.3.3/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
foo | |
>> foo | |
NameError: undefined local variable or method `foo' for #<Object:0x7fe8c12fe2a0> | |
from (irb):1 | |
>> Time.zone.parse("Asdfasdfsadf") | |
=> nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/call_handler_v1.rb b/lib/call_handler_v1.rb | |
index d3022c2..cfcb271 100644 | |
--- a/lib/call_handler_v1.rb | |
+++ b/lib/call_handler_v1.rb | |
@@ -541,7 +541,7 @@ class CallHandlerV1 | |
:funding_account => @card.sponsoring_bank.cardholder_funds_account, :card_id => @card.id, | |
:amount => -1 * (@card.creation_fee_amount.abs), :store_id => @card.store.id, | |
:fee_date => Time.zone.now, | |
- :user_id => options[:user].id, :memo => "Card Origination Fee", :fee_type => :misc_fee) | |
+ :user_id => options[:user].id, :memo => "First Monthly Fee", :fee_type => :misc_fee) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC test_conformance-test-cogl-premult.o | |
CC test_conformance-test-cogl-materials.o | |
CC test_conformance-test-cogl-viewport.o | |
CC test_conformance-test-cogl-offscreen.o | |
CC test_conformance-test-cogl-readpixels.o | |
CC test_conformance-test-cogl-multitexture.o | |
CC test_conformance-test-cogl-texture-mipmaps.o | |
CC test_conformance-test-cogl-texture-rectangle.o | |
CC test_conformance-test-cogl-pixel-buffer.o | |
test-cogl-pixel-buffer.c: In function ‘create_map_tile’: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Utility Belt == | |
http://utilitybelt.rubyforge.org/ | |
`gem install utility_belt` | |
`vim ~/.irbrc` | |
require 'rubygems' | |
require 'utility_belt' |