Skip to content

Instantly share code, notes, and snippets.

# to create a new student
s1 = Sevis::Student.new(
:personal_info => {
:birth_date => '1986/12/01',
#...
},
:educational_info => {
:edu_level => {
:level => '...'
#...
PUT /api_key/contacts/7730778
<?xml version="1.0"?>
<request>
<userid>33068</userid>
<contact>
<homestate>MA</homestate>
<ownername>turingstudio</ownername>
<leadsourceid>33068</leadsourceid>
<homephone>9898239898</homephone>
I wanted to provide everyone an update on the issues related to the iPhone 4.0 Terms of Service. While we have yet to receive any formal word from Apple as it relates to Titanium, this morning, Steve Jobs posted some thoughts on why Apple is banning Flash on the iPhone/iPad. The focus of the article is on making two important arguments: how to ensure a high-quality iPhone experience and the importance of using open technologies. Based on his piece, we have a few followup points as this news relates to Appcelerator Titanium.
- If there was any doubt, Apple's specific target is Adobe Flash.
- At the crux of every one of Jobs' points is a single overriding theme: ensuring application quality. More specifically, Apple wants to make sure that applications written for the iPhone/iPad are developed using all the great features in the iPhone SDK and that they should not be developed using a lowest common denominator approach. We couldn't agree more. Split views, popovers, cover flow views, native table views, nativ
mysql> set profiling=1;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from wp_users where user_login like '%test%';
+------+------------------------------------+------------------------------------+---------------------------------+------------------------------------+----------+---------------------+---------------------+-------------+------------------------------------+------+---------+
| ID | user_login | user_pass | user_nicename | user_email | user_url | user_registered | user_activation_key | user_status | display_name | spam | deleted |
+------+------------------------------------+------------------------------------+---------------------------------+------------------------------------+----------+---------------------+---------------------+-------------+------------------------------------+------+---------+
| 38 | march19 | $P$Bx7mtrhR1FDfPGChTGb9 | m
#!/usr/bin/env ruby
require 'rubygems'
require 'savon'
require 'nokogiri'
require 'pp'
# force SOAP 1.2
Savon::SOAP.version = 2
#!/usr/bin/env ruby
require 'rubygems'
require 'savon'
require 'xmlsimple'
require 'pp'
# force SOAP 1.2
Savon::SOAP.version = 2
module ActiveProject #:nodoc:
module RubyExt #:nodoc:
module Class # :nodoc:
module PublicizeMethods
def self.included(klass) # :nodoc:
klass.send(:include, InstanceMethods)
end
module InstanceMethods # :nodoc:
location / {
# serve assets with timestamp directly with max expires header
if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
expires max;
break;
}
# If the file exists as a static file serve it directly without
# running all the other rewite tests on it
if (-f $request_filename) {
@fs
fs / gist:13122
Created September 26, 2008 15:08
undefined
check "Differing MX-A records" do
@mx ||= resolve_mx(domain)
@mx.each do |mx|
ips = resolve_a(mx)
if parent_domain_for(mx) == domain
# resolve from domain ns
nameservers(domain, :need_ip => true).each do |ns|
resolve_a(mx, :nameservers => ns[:ip]).each do |ip|
raise "#{ns[:name]} got different IPs than your server" if ips.include?(ip)
end