…and like it? Then join us as a Senior Distributed Systems Engineer or Client / Application Engineer. People covent your bag of tricks for troubleshooting systems and network issues? Join our Operations and QA team. See if these positions are a fit for you!
Fun and Informative Events
It's back! Join the MySQL Community at the annual Percona Live MySQL Conference and Expo in Santa Clara , April 22-25. This year's conference features an …
…processor look something like this: class KestrelTrackService def initialize(client, queue) @ client = client @ queue = queue end
def record(attrs) @client.set(@queue, MessagePack.pack(attrs)) end end
class KestrelTrackProcessor def initialize(client, queue) @ client = client @ queue = queue end
def run loop { process } end
def process record @client.get(@queue) end
def record(data) Hit.record(MessagePack.unpack(data)) end end
…users of Chef this year, which also included our release of an Chef Client Installer for Windows . There are members of the community already deploying this installer using group policy and teaming it with Windows Deployment Services ( WDS) to enable bootstrapping bare-metal into fully functional servers. This pattern prevents traditional dusty and broken build documents for meat-cloud built servers as well as golden-images with an uncertain past.
Opscode Hosted Chef experienced …
…1.6.0 26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
See this tutorial for setting up minecraft , but if you are playing with the Minecraft 1.0 client (at least of today) you'll need to install a dev build which you can find on the ci server . I found that I needed to run the server, stop it and run it again. Now it seems to work fine.
Step 2. Writing the HTTP Client The next step is to write a HTTP client by using the APISmith::Client mixin. Much like the normal HTTParty mixin, this gives us handy methods on the class like get and post , but in the case of API Smith we're also given the option to configure endpoints (separate from the base_uri ), a fairly simple hierarchical way of declaring query and body parameters as well as specifying request options for HTTParty.
Secondly, it also adds tools …
Updated the retry logic in our HTTP Client to use an exponential
backoff for 50x responses
Set a custom User Agent string in the HTTP Client.
Sending SIGQUIT to Chef Client will now cause Chef to log a stack
trace.
chef-solr-indexer now properly XML escapes keys in nested Hashes.
Invalid cache files will be deleted automatically instead of causing
an error.
knife ssh can connect to an arbitrary TCP port.
The CentOS Bootstrap Scripts now install rubygems 1.3.7 …
…controller to log in a client: class ClientsController < ApplicationController def create @ client = Client.find(params[:client]) session[:current_user] = @ client flash[:message] = "Client logged in unit!" redirect_to client_home_path(@client) end end
Some of those methods could be extracted to ApplicationController, with the same lack of cohesion (those methods would be inherited).
Instead of having the responsibility to deal with parameters, let's …
…(ruby 1.8.7 patchlevel 249) ( 2010-12-03 9cf97c3) ( Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) ( 2011-01-10 769f847) ( Java HotSpot(TM) Client VM 1.6.0 18) [ Windows 7-x86-java] Ubuntu 10.04 ( VirtualBox) ( RVM with GCC 4.4.3-4ubuntu5) :
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
ruby 1.9.3dev (2010-12-13 trunk 30194) [i686-linux] Using sudoku-solver.rb …
@ client = Client. new ( params [ :client ] )
@ client . street = params [ :address ] . split ( ' ' , 2 ) . first
@ client . city = params [ :address ] . split ( ' ' , 2 ) . last
@ client . save
end
...
end
We can now improve this method by defining the address field as a virtual attribute of the Client model.
1
2
3
4
5
6
7
8
9
10
11
12
class Client < ActiveRecord::Base
def address
[ street, city ] . join ( ' …
From Client to Server
Old GET /demo HTTP/1.1 Upgrade: WebSocket Connection: Upgrade Host: example.com Origin: http://example.com WebSocket-Protocol: sample
New GET /demo HTTP/1.1 Host: example.com Connection: Upgrade Sec-WebSocket-Key2: 12998 5 Y3 1 .P00 Sec-WebSocket-Protocol: sample Upgrade: WebSocket Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5 Origin: http://example.com
^n:ds[4U
Here are the list of changes.
Name(" Web Socket" => " WebSocket…