This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am macasek on github. | |
* I am macasek (https://keybase.io/macasek) on keybase. | |
* I have a public key ASDFBWhqku4VOf4X5lh95v7U_QoME90Pb8HdAjGm65_qGwo | |
To claim this, I am signing this object: |
This file contains 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
Verifying that +macasek is my openname (Bitcoin username). https://onename.io/macasek |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am macasek on github. | |
* I am macasek (https://keybase.io/macasek) on keybase. | |
* I have a public key whose fingerprint is 8577 408A 709E 230C 9093 D3EC 3E73 E0A6 7A9E 1372 | |
To claim this, I am signing this object: |
This file contains 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
# Basically I am building a multi-domain/tenant app and in some cases I need to specify what users are valid on what domains. A dumbed down contrived example would be: | |
class User < ActiveRecord::Base | |
has_and_belongs_to_many :domains | |
end | |
class Domain < ActiveRecord::Base | |
has_and_belongs_to_many :users | |
end |
This file contains 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
# application_controller.rb | |
class ApplicationController < ActionController::Base | |
helper_method :get_ab | |
private | |
def do_thing(val) | |
a, b = 0, 0 |
This file contains 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
Please hold for a Verizon Wireless sales representative, we appreciate your patience. Your current estimated wait time is 0 min 57 secs. | |
You are now chatting with 'Mike C' | |
Mike C: Hello. Thank you for visiting our chat service. May I help you with your order today? | |
You: hello | |
Mike C: How can I help you today? | |
You: i am trying to figure out if it is possible ot add a second line to an existing phone | |
Mike C: You can add a line online by signing into your My Verizon and clicking Add a New Device on the main page. It will ask you to upgrade to a shared plan since you would be coming from a single line. | |
You: so i am already on a shared plan with 2 lines and devices. i want to add an additional line that points to one of those existing devices such that the device will have 2 lines | |
You: perhaps it is best if i describe what i am ultimately trying to achieve | |
Mike C: Do you mean you want two numbers on the same phone? |
This file contains 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
As the description above suggests there are issues that arise when you attempt to use Dropbox sync for 1Password and your Dropbox is not setup to use the default location for it's files. This appears to only be an issue starting with OSX Lion and has to do with the application sandboxing that OSX Lion has started to introduce. Sadly a simple soft link from your home directory to your Dropbox file location will not work as this appears to violate the sandboxing restrictions. Perhaps/Hopefully this will be addressed on Mountain Lion. | |
** Read this whole thing first so you know what you are getting into and backup your 1Password files before you do anything! Don't blame me if you screw anything up. I wont care. | |
Here is my current setup: | |
Assuming you already have Dropbox setup and you have already adjusted the location where your Dropbox files are stored; on your primary computer (the one you wish to have the 1Password application installed, etc) create a folder in your home directory called "Dropbox" (Yes you |
This file contains 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
YAML.load("--- \nreview_comment: |\n \r\n I used Shared Minds for about five minutes earlier today and promptly jettisoned TweetDeck. \r\n \r\n \r\n I really like how fast Shared Minds is. The navigation panel is tidy and easy to handle - it isn't a deficit to lose the multiple columns of TweetDeck when this is how you move between the various tweet streams. The choice of default, column view, or list for displaying tweets is very powerful - much better to have a scrollable list of 150 tweets, one per line, than the too narrow TweetDeck columns. The search function provides graphical access to the query options - it's the best I've seen for that sort of work. So far I'm deeply unimpressed by the preview pane, which is used to view the details of an account, but it's not a common thing for me to use and like everything else in Shared Minds it's very simple to recover the screen space by dismissing it. \r\n \r\n Having used it for all of twelve hours these are things that either the program cou |
This file contains 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
<html> | |
<head> | |
<style> | |
.clearfix:after { | |
content: "\0020"; | |
display:block; | |
height:0; | |
clear:both; | |
visibility:hidden; | |
overflow:hidden; |
This file contains 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
IPv4_PART = /\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]/ # 0-255 | |
URL_REGEX = %r{ | |
(^$)| | |
(\A | |
https?:// # http:// or https:// | |
([^\s:@]+:[^\s:@]*@)? # optional username:pw@ | |
( (xn--)?[^\W_]+([-.][^\W_]+)*\.[a-z]{2,6}\.? | # domain (including Punycode/IDN)... | |
#{IPv4_PART}(\.#{IPv4_PART}){3} ) # or IPv4 | |
(:\d{1,5})? # optional port | |
([/?]\S*)? # optional /whatever or ?whatever |