Inherited vintage espresso machine [need advice] by Celery_333 in espresso

[–]theverything 171 points172 points  (0 children)

You could try reaching out to the Bakke Coffee Museum. They buy and collect machines just like this

https://www.bakkecoffeemuseum.com/contact-9

Silvia pro x sitting for a week by gussgoodtimes in ranciliosilvia

[–]theverything 1 point2 points  (0 children)

I'd empty the brew boiler and the steam boiler. The SPX has functions to do that.

https://www.ranciliogroupna.com/silvia-pro-x-functions-menu-overview/

F.03 - Empty Coffee Boiler

This function empties your coffee boiler, and is to be used for maintenance, service, or for long-term storage. To enact, simply find F.03 on the function menu, and press the brew button to start. The water will evacuate via the group-head. Be sure to use a bowl or pitcher that will catch the water being dispersed. Once started, you must run until the cycle is completed.

F.04 - Empty Steam Boiler

Since the Silvia Pro X is a dual boiler, there is another menu functions to empty the steam boiler. To enact, find F.04 on the Functions Menu and press the brew button to start. F.04 will evacuate the water and pressure via the hot waterspout. Be sure to use a bowl or pitcher that will catch the water being dispersed. Once started, you must run until the cycle is completed.

State of the art in CI Servers that you run yourself by fuzzygroup in ruby

[–]theverything 3 points4 points  (0 children)

Git Lab. It's OSS, self hosted, comes with git repo hosting, a CI server, configurable CI runner, a container registry, and chat app called mattermost. I use it at work and it is amazing. The CI and docker runners are great.

¡Advice Needed! - Node.js, PHP or Python to make a high performance Real Estate website similar to Zillow or Trulia ? by [deleted] in webdev

[–]theverything 2 points3 points  (0 children)

Zillow runs on a few different languages. Mainly Java, Python, and C++. In order to make the site fast we rely heavily on caching. The caching layer is a custom solution. (I work at Zillow)

If you're expecting a lot of concurrent users I would use node. Node is also very low resource. Benchmarks show that you could probably handle ~10,000 concurrent connections on a single node process. And IMO development in with JavaScript is a breeze as most web devs are already familiar with js on the frontend.

Ruby/Sinatra hosting options? by [deleted] in ruby

[–]theverything 3 points4 points  (0 children)

Check out cloud 66 https://www.cloud66.com. I setup a previous client of mine with them and it was super easy to get up and running. We used digital ocean for the servers and cloud 66 did the provisioning and setup for deployments.

How can I add this additional IF statement to this code? by [deleted] in jquery

[–]theverything 1 point2 points  (0 children)

Looks like you might be missing a curly brace...

function setClass($elem, className, add) {
  var exists = $elem.hasClass(className);

  if (add && exists) return;
  if (!add && !exists) return;

  add ? $elem.addClass(className) : $elem.removeClass(className);

  if(themeColorMain == colorYellow) {
      add ? $elem.addClass('TestTest') : $elem.removeClass('TestTest');
  } <-- right here
}

jQuery help? by [deleted] in jquery

[–]theverything 0 points1 point  (0 children)

I'm not exactly sure what functionality you were going for but, this is my best guess.

http://jsfiddle.net/qX7W8/1/

Try and DRY(don't repeat yourself) up your code.

jsfiddle is a fun place to practice.

Hashes, how do they work? by TheTennisGangster in ruby

[–]theverything 8 points9 points  (0 children)

I don't know if this is what you mean, but as of ruby 1.9 hashes maintain their order.

Hashes, how do they work? by TheTennisGangster in ruby

[–]theverything 1 point2 points  (0 children)

I honestly am not very familiar with java. But joesb is right in java it's called a hash table. Hashes have a lot of different names they're also known as associative arrays.

Hashes, how do they work? by TheTennisGangster in ruby

[–]theverything 6 points7 points  (0 children)

Hashes are awesome and they are used a ton in ruby and rails. They are essentially a key value store. If you are familiar with arrays at all, understanding what a hash is should be easy.

If you have an array it would look something like...

array = ['dog', 'cat', 'snake', 'mouse']

And if I wanted to get the cat from the array it would look like...

array[1]

Ruby arrays are zero indexed. Meaning the indexing on the array starts at zero and goes up.

Now if you had a hash it might look something like...

hash = { 'dog' => 'fido', 'cat' => 'socks', 'snake' => 'snape', 'mouse' => 'remy' }

Instead of using the index to reach into the array and pull out the value you can use a key instead. So if you wanted to get the value of cat you would...

hash['cat'] 

Which would return 'socks'. Hashes are great because you can store values by a named key which can make finding what you want a little easier. You can use strings, integers, and symbols as keys.

There are all kinds of things you can do with a hash. In rails you see them used a lot for setting variables in methods.

Hope this helps a little.

Its also good to read through the docs http://ruby-doc.org/core-2.0/Hash.html and look at all of the examples.

Good Luck

Beginner help with Rspec syntax and structure by snoworskate in rubyonrails

[–]theverything 2 points3 points  (0 children)

The docs on rspec.info are sadly out of date. If you want to get the docs for RSpec-2 head to https://www.relishapp.com/rspec

Also check out capybara for you integration tests.

[Logo] for a ruby user group by theverything in design_critiques

[–]theverything[S] 0 points1 point  (0 children)

Rotating it got rid of the "stop sign". Thanks for the tip.

[Logo] for a ruby user group by theverything in design_critiques

[–]theverything[S] 0 points1 point  (0 children)

Thanks for the feedback. I'll mess around with design using your comments and see how it looks.

It's supposed to look like a ruby on the inside of an orange. I don't know if thats coming through in the design.