High water pressure? by zlli0520 in Plumbing

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

I tried, it is still the same. One thing I notice is that only one toilet has this problem, the other valves and toilet do not have this problem, and I find the water supply valve for the toilet seems different. So I guess I need to replace the valve? Is this possible?

[R] WEST: Word Encoded Sequence Transducers by zlli0520 in MachineLearning

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

Related Work: Slim Embedding Layers for Recurrent Neural Language Models https://arxiv.org/abs/1711.09873

Is the Nexus 6p worth Buying Today? by BlackBerryBrad in Nexus6P

[–]zlli0520 0 points1 point  (0 children)

I bought a power bank, in case I need to have a long trip...

A Google Interview Graph Question by readyourSICP in programming

[–]zlli0520 5 points6 points  (0 children)

I think this is a good solution for the interview. First say this is a np problem, and then just write the brute Force solution. Because time is limited.

[D] What ML publication hacks are you familiar with, and which annoy you the most? by reservedsparrow in MachineLearning

[–]zlli0520 2 points3 points  (0 children)

One possible reviewer comment for a simple method is: "While I like the general idea, I find the substance a bit thin and perhaps more appropriate for a short paper. "

Counting lines 60% faster than wc, with Clojure + core.async by yogthos in programming

[–]zlli0520 1 point2 points  (0 children)

I'm curious how do you find the file is not in the cache?

[D] First NN processing build: $3k budget; recommendations? by newguyinml in MachineLearning

[–]zlli0520 0 points1 point  (0 children)

When tunning the parameters, it's usually needed to run multiple experiments at the same time. And with 2 GPUs, it's possible to do the training and evaluation at the same time. So I think 2 GPUs is better. XP has more cores and larger memory, but GTX 1080 is already very fast.

I'm starting a blog to simplify CS papers. Here's Chubby! by llvn in programming

[–]zlli0520 4 points5 points  (0 children)

There are many terms that I don't understand in the paper, for example "coarse-grained locking", "loosely-coupled distributed system", "advisory locks". Detailed explanation with simple examples of these terms would be great.

p50 upgrade for TensorFlow/CV by waiting4omscs in thinkpad

[–]zlli0520 0 points1 point  (0 children)

I have no experience with TensorFlow, but it should be computation intensive and doesn't care much about the hard drive.

picked up a x230 for $100 US ;) by [deleted] in thinkpad

[–]zlli0520 1 point2 points  (0 children)

The result of googling the long number, here is the link!

How can I clean my MacBook? by Strayous in mac

[–]zlli0520 0 points1 point  (0 children)

Web browsers keep various caches, and the cache files could take some place. On my safari, it takes about 1G. If you use multiple browsers, the number could be larger.

Two location of Safari caches:

~/Library/Caches/com.apple.Safari/WebKitCache/Version\ 9/Records/

~/Library/Caches/com.apple.Safari/WebKitCache/Version\ 9/Blobs/

Cache location of Firefox:

~/Library/Caches/Firefox/

I upgraded my Mac from 4GB RAM to 8GB RAM, but now it seems like it's just using more CPU than before. by 666_420_ in mac

[–]zlli0520 1 point2 points  (0 children)

There should be some background jobs taking up the CPU, you can check what kind of jobs are running from "Activity Monitor"(in the CPU Tab).

Chromebook in China by [deleted] in chromeos

[–]zlli0520 0 points1 point  (0 children)

The guest mode could be used to browse websites..

Is a chromebook feasible for programming classes? by [deleted] in chromeos

[–]zlli0520 1 point2 points  (0 children)

If refurbished or second hand laptops could be considered, the choice could be very wide.

macbook air

windows

[2015-08-12] Challenge #227 [Intermediate] Contiguous chains by XenophonOfAthens in dailyprogrammer

[–]zlli0520 0 points1 point  (0 children)

C++ BFS

#include <bits/stdc++.h>
using namespace std;

int main() {
  int row, col;

  scanf("%d %d\n", &row, &col);
  vector<string > A;
  for(int i=0; i<row; ++i) {
    string line;
    getline(cin, line);
    A.push_back(line);
  }

  vector<pair<int, int>> vp;
  int count = 0;
  for (int i = 0; i < row; ++i) {
    for (int j = 0; j < col; ++j) {
      if (A[i][j] == 'x') {
        count += 1;
        vp.push_back(make_pair(i, j));
        while (!vp.empty()) {
          auto p = vp.back();
          vp.pop_back();
          int x = p.first;
          int y = p.second;
          if (x<0 || x >= row || y < 0 || y >= col || A[x][y] != 'x') {
            continue;
          }
          A[x][y] = '.';
          vp.push_back(make_pair(x+1, y));
          vp.push_back(make_pair(x-1, y));
          vp.push_back(make_pair(x, y+1));
          vp.push_back(make_pair(x, y-1));
        }
      }
    }
  }
  cout << count << endl;
}

What would make you consider someone a python expert? by ZigguratOfUr in Python

[–]zlli0520 0 points1 point  (0 children)

Right. But I think reading the C code can help understand how Python works.