AitorF

1

votes
0

answer
111

views

Do I need a X11 server on server machine to do X11 forwarding from the client?

I am new to the fundamentals of X11 Forwarding. Suppose I have two machines: A 'headless' ubuntu server, no X, just the CLI. A full ubuntu, with the Desktop and the whole GUI. Now suppose that I want to use X11 Forwarding to display in the machine #2 (the machine with GUI) a Firefox that is running...
AitorF
1

votes
1

answer
42

views

How to detect from the client, a connection closed by server using nodejs request library

I am connecting (stream, long lived connection) to a server that get restarted quite often. I am connecting using http-request (nodejs). When the server gets restarted my clients stops, but not gratefully. Not sure on what's the way to detect that the connection was closed by the server. I'm using:...
AitorF
1

votes
0

answer
15

views

How to pass metadata to a gRPC call on nodejs

Once I have I gRPC client (stub) created, say client = new routeguide.RouteGuide( localhost:50051, grpc.credentials.createInsecure() ); How do I pass metadata when calling a method? I know I can use (and I do) client.methodName(params); to call a method, but can I use something like client.methodN...
AitorF
1

votes
1

answer
88

views

Why is MySQL “using_where” with this query?

I have this query: SELECT * FROM items i WHERE i.user_id = 1 AND i.source_id = 34 ORDER BY i.time DESC LIMIT 0, 30; And this composite index: idx_user_src_time (user_id, source_id, time) Explain shows that MySQL is indeed using the index: # id, select_type, table, type, possible_keys, key, key_len,...
AitorF
1

votes
1

answer
191

views

Conditional update in Elasticsearch: “Invalid op [none]”

Elasticsearch 2.3. I am firing this query to update every doc in an index based on a condition. { 'query': { 'bool': { 'must': [ { 'match_all': {} } ] } }, 'script': { 'inline': 'if (ctx._source.url.endsWith('a=6')) ctx.op = 'none' else ctx._source.url = ctx._source.url + '&b=3'' } } As stated here,...
AitorF
2

votes
1

answer
845

views

Apache VirtualHost config for folder-separated sites within a single domain

I would like to configure apache to allow per-site apache logging (access and error) and per-host php variables asignation. I have a single domain and all sites are accessed through it: http://domain/site1 http://domain/site2 ... If I use Alias directive this way... Alias /site1 /var/www/vhosts/http...
AitorF