OS X Mavericks, failing specs and libxml
3 Quick Tips for Coding with OS X 10.9 Mavericks Some good tips on homebrew and xcode to get compiling working
Install Ruby on Rails · Mac OS X Mavericks RVM / Homebrew / Git
Show me a snippet of code that types out characters inside of a p tag | |
Can you change it so that it performs that on a couple of p tags | |
That's great. Can you have it so that the text is in the p tag and not in the textsToType? | |
Sweet, can you show me some css that will place those p tags in the center of the page and also have the colors styled like an old VDU terminal | |
Can you show some small text in the bottom right corner of the screen stating the page was proudly built with AI on earth. |
# Use from console, was required as old messages were incorrectly encoded and placed on the failed queue | |
# preventing us to view the failed queue. | |
include Resque::Helpers | |
Resque::Failure.count.times do |index| | |
puts "Checking #{index}" | |
begin | |
decode Resque.redis.lindex(:failed, index) | |
rescue Resque::Helpers::DecodeException |
OS X Mavericks, failing specs and libxml
3 Quick Tips for Coding with OS X 10.9 Mavericks Some good tips on homebrew and xcode to get compiling working
Install Ruby on Rails · Mac OS X Mavericks RVM / Homebrew / Git
>> require 'bigdecimal' | |
=> true | |
>> BigDecimal.new(0.75,2) | |
=> #<BigDecimal:7fc6fc0f2330,'0.75E0',9(36)> | |
>> _.to_f | |
=> 0.75 | |
>> RUBY_VERSION | |
=> "1.9.3" | |
>> RUBY_DESCRIPTION | |
=> "ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0]" |
$ ruby -v | |
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0] | |
$ ruby test_time.rb | |
Parsing the timestamp 2012-12-11 18:01:54.246524000 | |
The float compare to string formatted output: false | |
"1355277714.2465239" | |
"1355277714.246524" |
cd ~/Library/Application\ Support/Skype | |
ruby -e 'puts File.read("shared.xml").to_s.gsub("<VoiceEng>","<VoiceEng>\n<AGC>0</AGC>\n<EC>0</EC>")' > new_shared.xml | |
mv shared.xml shared.xml.bak | |
mv new_shared.xml shared.xml |
# requires root permissions in /usr/bin/ | |
star = String.new | |
8.times { star += "*" } | |
Star = "\n#{star * 3}\n" | |
def newblock string | |
puts "\n#{Star}#{string}#{Star}\n" | |
end |
raw_data = <<-EOF | |
0000 0048 0000 0005 0000 0000 0000 0092 | |
0001 0134 3437 3739 3935 3734 3435 3200 | |
0101 3434 3739 3835 3133 3937 3331 0000 | |
0000 0000 0000 0000 0f41 626f 7574 20bb | |
3435 302c 3030 303f | |
EOF | |
raw_data = <<-EOF | |
0001 0134 3437 3739 3935 3734 3435 3200 |
source :rubygems | |
gem 'exceptional' | |
gem 'json' |
These are the changes that i did to the router. Obviously some assumptions made here but last week the changes made a difference, I think resetting the box yesterday lost the changes.
Wanting to improve the wifi as at the moment believe the adsl is good but the box is crap at wifi and juggling everything else it needs to do.