text:
Covid-19 Dead Period: Part 2
Mon, 04/27/2020 - 9:11pm — John Embry
Tennis and Track teams across the state, as well as baseball and softball, typically begin practicing in February with games and meets beginning in mid-March.
Read more about Covid-19 Dead Period: Part 2
Covid-19 "Dead Period" suspends BCHS Senior athletes' final season
Sun, 04/12/2020 - 11:00pm — John Embry
Baseball and softball teams across the state, as well as tennis and track, typically begin practicing in February with games and meets beginning in mid-March. However, with the Kentucky High School Athletic Association (KHSAA) setting forth a ruling declaring a coronavirus "dead period," the fate of these players' final high school season remains unknown.
Read more about Covid-19 "Dead Period" suspends BCHS Senior athletes' final season
Green, Runion, Smith take top spots in their divisions at Green River Road Race
Wed, 06/19/2019 - 10:55am — John Embry
The 39th Annual Green River Catfish Festival Road Race was held Saturday, June 15. The grueling 5-mile course began on South Tyler Street in Morgantown and concluded in downtown Woodbury. Over 40 participants took part in the race.
Read more about Green, Runion, Smith take top spots in their divisions at Green River Road Race
Graham to play baseball at Southern Indiana
Butler County High School three-sport athlete and standout Blake Graham has announced plans to sign to play collegiate baseball with Southern Indiana (Evansville), a Division 2 powerhouse. Graham has been a steady presence on the BCHS sports scene as a football, basketball and baseball player.
Read more about Graham to play baseball at Southern Indiana
BCHS Football wraps regular season with 4-game winning streak and 48-7 rout of Ohio County
Sun, 10/30/2016 - 5:52pm — John Embry
Eagles can fly but they weren't able to get off the ground on Friday night, October 28, as the Butler County Bears came away with an impressive 48-7 road win against Ohio County.
Read more about BCHS Football wraps regular season with 4-game winning streak and 48-7 rout of Ohio County
Bears fall short 50-42 at Russellville
Wed, 09/07/2016 - 1:59pm — John Embry
Butler County, on Friday night, came up short in its upset bid against the Russellville Panthers, 50-42. The Bears slip to a 2-1 overall record in the early part of the season. The overflow crowd at Rhea Stadium was treated to an offensive showcase by both teams. The Class A Panthers are ranked #2 in the state and look to make a run deep into the playoffs this November with an abundance of team speed.
Read more about Bears fall short 50-42 at Russellville
Bears escape with 35-28 win over Edmonson
The home opener was everything a football fan could ask for as Butler County and Edmonson County battled back and forth throughout the night. An overflow crowd battling the humid August night saw the Bears trail virtually the entire game as the visiting Wildcats executed a flawless game plan of ball control running attack to shorten the game and keep the Bears' offense off the field.
Read more about Bears escape with 35-28 win over Edmonson
Bears Maul Cougars 53-14 to open 2016 season
Thu, 08/25/2016 - 12:09pm — John Embry
The Butler County High School Bears opened the 2016 season on the road at Logan County High School. The Cougars, with new enthusiasm and a new head coach, had plans to end the streak - meaning the Logan County football losing streak dating back to September of 2013. The Bears had no intention of allowing themselves to be the headline of that streak as Butler County came away with a strong 53-14 win.
Read more about Bears Maul Cougars 53-14 to open 2016 season
BCMS Football season underway with games against McLean and Muhlenberg
Tue, 08/23/2016 - 12:51pm — John Embry
The Butler County Middle School Bears were at home Thursday, Aug 18th to face the Muhlenberg Mustangs. The 7th grade game kicked off first with the Bears wining 30-0. The 8th grade fell 0-6 in a hard-fought contest.
Read more about BCMS Football season underway with games against McLean and Muhlenberg
B.C.H.S. Softball host 2016 banquet
Thu, 06/23/2016 - 1:02pm — John Embry
A few weeks after Butler County dropped a 5-4 decision to Grayson County in the 12th District Softball Tournament, the Bears 2016 season came full circle with the team's annual awards banquet.
The Butler County varsity squad finished the season with an 18-13-2 record, while the junior varsity squad notched an 18-7 record.
Read more about B.C.H.S. Softball host 2016 banquet


Obvious observations by the elect.
Rom 11:1 I say then, Hath G-d cast away his people? G-d forbid. For I also am an Israelite, of the seed of Abraham, of the tribe of Benjamin.
We have examined the wilderness tabernacle and its outline bringing it into the present.
Paul began his efforts to destroy the Church. We know that he ends up becoming its greatest champion as he is confronted with G-d / Jesus on the road to Damascus.
Paul, Benjamin and Jesus the PB and J of success.
Benjamin we know is duplicitous his star sign assigned by G-d is Gemini his mother Rachel names him Ben Oni son of her sorrow, while Jacob calls him son of his right hand Benjamin. The place G-d has clearly given him seems to be a covering over the cross replacing a covering which failed him originally. He is the most important of all figures within scripture because he is loved by the Father of Joseph, who we know is a picture of Christ. Benjamin is the closest relative to Joseph. Joseph honors him five times more than his brothers while also making him unwittingly the Kings cup bearer. A king is what Joseph was to his brothers before they knew he was Joseph.
When Benjamin enters Egypt, the truth is revealed to us all. There is great weeping and rejoicing…Benjamin and I do have a lot in common.
A cup bearer carries to the king wine in the cup, wine represents the spirit. In the end, G-d gives one man the wisdom an added abundance of knowledge to bring peace into the world along with His harvest. He is the Son of his right hand and one also of sorrow for what follows after peace is destruction as the enemy gets his promised seven years.
The man starts with championing the church and increasing it five fold. It is the end of Christ 3.5 years of harvest. During this time, the warnings are going out about the mark and what is to come and why it is happening. The wealth of the world was ripped from it using Christ's name in vain, those who took it will be confronted to give it to the man who will use it where it will win the most souls and promote the true body of Christ. This is G-d's Benjamin brother to His only-begotten Son Jesus through adoption. Abel the first born among the angels and a picture of the promise.


text:
Q: Why can't I install this module using npm? I am very new to Node.JS and have successfully got some packages installed on my Mac. But I am trying to install a module called sbrick-protocol using:
npm install sbrick-protocol

I get all sorts of weird output that I don't understand:
Last login: Wed Jan  1 17:00:38 on ttys000
Gemixin@iMac ~ % npm install sbrick-protocol

> xpc-connection@0.1.4 install /Users/Gemixin/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:26:77: error: too few arguments to function call,
      single argument 'context' was not specified
  target->Set(Nan::New("XpcConnection").ToLocalChecked(), tmpl->GetFunction());
                                                          ~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:6283:3: note:
      'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:103:54: error: too few arguments to function call,
      single argument 'context' was not specified
    xpcObject = xpc_int64_create(value->IntegerValue());
                                 ~~~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2774:3: note:
      'IntegerValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:113:49: error: too few arguments to function call,
      single argument 'context' was not specified
    Local<Object> valueObject = value->ToObject();
                                ~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2754:3: note:
      'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:115:78: error: too few arguments to function call,
      expected 2, have 1
    if (valueObject->HasRealNamedProperty(Nan::New("isUuid").ToLocalChecked())) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3837:3: note:
      'HasRealNamedProperty' declared here
  V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:123:49: error: too few arguments to function call,
      single argument 'context' was not specified
    Local<Object> valueObject = value->ToObject();
                                ~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2754:3: note:
      'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:135:40: error: no matching member function for call to
      'GetPropertyNames'
  Local<Array> propertyNames = object->GetPropertyNames();
                               ~~~~~~~~^~~~~~~~~~~~~~~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3702:43: note:
      candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3704:43: note:
      candidate function not viable: requires at least 4 arguments, but 0 were
      provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
                                          ^
../src/XpcConnection.cpp:138:48: error: no matching member function for call to
      'Get'
    Local<Value> propertyName = propertyNames->Get(i);
                                ~~~~~~~~~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3594:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3597:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/XpcConnection.cpp:143:88: error: too few arguments to function call,
      single argument 'context' was not specified
  ...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
                                                  ~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2750:3: note:
      'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:160:33: error: no matching member function for call to
      'Get'
    Local<Value> value = array->Get(i);
                         ~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3594:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3597:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/XpcConnection.cpp:200:13: error: no matching member function for call to
      'Set'
    object->Set(Nan::New<String>(key).ToLocalChecked(), XpcConnection::X...
    ~~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3547:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3550:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/XpcConnection.cpp:212:12: error: no matching member function for call to
      'Set'
    array->Set(Nan::New<Number>(index), XpcConnection::XpcObjectToValue(value));
    ~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3547:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3550:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated
      [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
           ^
../../nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked
      deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated
      [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
           ^
../../nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked
      deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
2 warnings and 11 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/Gemixin/.nvm/versions/node/v13.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:305:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/Users/Gemixin/.nvm/versions/node/v13.5.0/bin/node" "/Users/Gemixin/.nvm/versions/node/v13.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Gemixin/node_modules/xpc-connection
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN gemixin@1.0.0 No description
npm WARN gemixin@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for bluetooth-hci-socket@0.5.1: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ sbrick-protocol@3.0.0
updated 1 package and audited 464 packages in 6.624s

1 package is looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

I tried running the commands as suggested:
Gemixin@iMac ~ % npm fund
gemixin@1.0.0
└─┬ glob@7.1.6
  └── url: https://github.com/sponsors/isaacs

Then:
npm audit fix

But that just printed out a similar ouput to the original install command, ending with:
fixed 0 of 1 vulnerability in 464 scanned packages
  1 vulnerability required manual review and could not be updated

The folder "sbrick-protocol" has been created in my modules folder so I thought I'd try and run a simple JS program using it, but I get told it's missing module 'xpc-connection'. So I try and run npm install xpc-connection and I get a similar output to before:
Gemixin@iMac ~ % npm install xpc-connection

> xpc-connection@0.1.4 install /Users/Gemixin/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:26:77: error: too few arguments to function call,
      single argument 'context' was not specified
  target->Set(Nan::New("XpcConnection").ToLocalChecked(), tmpl->GetFunction());
                                                          ~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:6283:3: note:
      'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:103:54: error: too few arguments to function call,
      single argument 'context' was not specified
    xpcObject = xpc_int64_create(value->IntegerValue());
                                 ~~~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2774:3: note:
      'IntegerValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:113:49: error: too few arguments to function call,
      single argument 'context' was not specified
    Local<Object> valueObject = value->ToObject();
                                ~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2754:3: note:
      'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:115:78: error: too few arguments to function call,
      expected 2, have 1
    if (valueObject->HasRealNamedProperty(Nan::New("isUuid").ToLocalChecked())) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3837:3: note:
      'HasRealNamedProperty' declared here
  V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:123:49: error: too few arguments to function call,
      single argument 'context' was not specified
    Local<Object> valueObject = value->ToObject();
                                ~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2754:3: note:
      'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:135:40: error: no matching member function for call to
      'GetPropertyNames'
  Local<Array> propertyNames = object->GetPropertyNames();
                               ~~~~~~~~^~~~~~~~~~~~~~~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3702:43: note:
      candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3704:43: note:
      candidate function not viable: requires at least 4 arguments, but 0 were
      provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
                                          ^
../src/XpcConnection.cpp:138:48: error: no matching member function for call to
      'Get'
    Local<Value> propertyName = propertyNames->Get(i);
                                ~~~~~~~~~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3594:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3597:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/XpcConnection.cpp:143:88: error: too few arguments to function call,
      single argument 'context' was not specified
  ...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
                                                  ~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:2750:3: note:
      'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
  ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8config.h:419:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:160:33: error: no matching member function for call to
      'Get'
    Local<Value> value = array->Get(i);
                         ~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3594:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3597:43: note:
      candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/XpcConnection.cpp:200:13: error: no matching member function for call to
      'Set'
    object->Set(Nan::New<String>(key).ToLocalChecked(), XpcConnection::X...
    ~~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3547:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3550:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/XpcConnection.cpp:212:12: error: no matching member function for call to
      'Set'
    array->Set(Nan::New<Number>(index), XpcConnection::XpcObjectToValue(value));
    ~~~~~~~^~~
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3547:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/Gemixin/Library/Caches/node-gyp/13.5.0/include/node/v8.h:3550:37: note:
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated
      [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
           ^
../../nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked
      deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated
      [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
           ^
../../nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked
      deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
2 warnings and 11 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/Gemixin/.nvm/versions/node/v13.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:305:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/Users/Gemixin/.nvm/versions/node/v13.5.0/bin/node" "/Users/Gemixin/.nvm/versions/node/v13.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Gemixin/node_modules/xpc-connection
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN gemixin@1.0.0 No description
npm WARN gemixin@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for bluetooth-hci-socket@0.5.1: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xpc-connection@0.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xpc-connection@0.1.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Gemixin/.npm/_logs/2020-01-01T17_40_53_996Z-debug.log

Can anyone point me in the right direction?

A: So, the library apparently has some native add-on code in it that install is trying to compile. And, it's getting lots of warnings/errors which I would guess means that it's written for an older version of node.js than you are using. It ends with a build error so the desired target is not properly created. I'd suggest doing some searching on node version compatibility for that library. Or contact the author and ask.
In looking at the github repository, it does not look like it's been meaningfully updated in 3 years so you may have to try an older version of node.js or find a different library.
Note: You may want to think twice about basing a project on an unmaintained library (particularly one that's an add-on and uses native code) unless you plan on maintaining it yourself so it can work with future versions of node.js.

A: I downgraded Node.JS to version 8.15.1 and it worked.

redpajama_set_name: RedPajamaStackExchange


text:
\section{Introduction}
The existence of dark matter (DM) is crucial from cosmological observations,
however its mass and interaction are not known yet.
There are a lot of theoretical
DM candidates such as Weakly Interacting Massive Particle
(WIMP), axion, gravitino and asymmetric DM. In particular, WIMP
is the most promising DM candidate, and experiments are focusing on WIMP detection.

One of the ways to identify nature of DM is indirect detection in
which experiments observe such as gamma-rays,
neutrinos, positrons and anti-protons coming from the galaxy.
Since DM may annihilate or decay into
the Standard Model (SM) particles, if observational
excess is found over background estimation, it can be a DM signature.
Focusing on gamma-rays, known astrophysical sources of gamma-rays induce only
smooth spectra, while the DM annihilation or decay may produce a sharp gamma-ray
peak. Thus exploring such a line shape spectrum coming from the galaxy
is extremely important, and DM models which can induce a strong
sharp gamma-ray are fascinating from experimental
viewpoint.
In fact, the gamma-ray excesses from the galactic center have been
reported by several papers~\cite{Bringmann:2012vr, Weniger:2012tx}
and~\cite{Hooper:2011ti, Abazajian:2014fta, Carlson:2014nra}.
The former implies the DM mass to be $130$-$135~\mathrm{GeV}$
with its partial annihilation cross section
$\sigma{v}\sim10^{-27}~\mathrm{cm^3/s}$ into gamma-rays.
However this signal has disappeared after the dedicated
analysis by the Fermi Collaboration~\cite{Ackermann:2013uma}.
The latter has found rather mild excess around $10~\mathrm{GeV}$ which
could be caused by $30$-$60~\mathrm{GeV}$ of the DM
mass with a specific annihilation mode such as a pair of bottoms or taus.
The partial cross section should be
$\sigma{v}\sim10^{-26}~\mathrm{cm^3/s}$ that is very close to the
cross section for thermal production of the observed relic density.

Representative processes inducing sharp gamma-rays are two-body
annihilations such as $\chi\chi\to\gamma\gamma$ and
$\chi\chi\to\gamma{Z}$.
Since the energy of the photon is kinematically determined as
$E_\gamma=m_\chi$ for $\gamma\gamma$ channel and
$E_\gamma=m_\chi\left(1-m_Z^2/(4m_\chi^2)\right)$ for $\gamma{Z}$
channel, gamma-rays become monochromatic.
However, the cross sections for these processes are typically expected
to be small
because of loop suppression. Another process of sharp gamma-rays is
internal bremsstrahlung
$\chi\chi\to{f}\overline{f}\gamma$~\cite{Bergstrom:1989jr,
Flores:1989ru, Bringmann:2007nk,
Ciafaloni:2011sa, Barger:2011jg, Garny:2013ama,
Kopp:2014tsa}.\footnote{There is also a model which produces a
characteristic box-type gamma-ray spectrum mediated by a light
axion-like scalar~\cite{Ibarra:2012dw, Ibarra:2013eda}.}
When the two-body process $\chi\chi\to{f}\overline{f}$ is
chirally-suppressed, the internal bremsstrahlung process becomes important for
the gamma-ray source of DM.
The cross section for this process becomes larger than monochromatic
gamma-ray processes since this is three-body process at tree level.
The gamma-ray spectrum of internal bremsstrahlung can be very
sharp if mass of the mediate particle is not far from the
DM mass.
This is because fermion and anti-fermion with soft energy is produced in the final
state and the most energy of the initial state is taken away by the other two
particles. As a result, the energy of photon is almost fixed to half
of the total energy of the initial state
$2m_\chi$.
In particular for real scalar DM, stronger sharp gamma-rays can be
induced than the Majorana DM case due to d-wave suppression of the
two-body process $\chi\chi\to f\overline{f}$~\cite{Toma:2013bka,
Giacchino:2013bta, Ibarra:2014qma, Giacchino:2014moa}.
In the case of Majorana DM, it is known that the
cross section for internal bremsstrahlung $\chi\chi\to
f\overline{f}\gamma$ cannot be large enough to be detected in near
future if thermal production of DM is concerned~\cite{Garny:2013ama}.
This is because suppression for $\chi\chi\to f\overline{f}$ is p-wave and
once the interaction strength is fixed in order to
obtain the observed relic density of DM, the cross section for internal
bremsstrahlung is also determined.
It has been claimed that the gamma-ray spectrum of internal
bremsstrahlung can reproduce nicely the $130$-$135~\mathrm{GeV}$ line
mentioned above, however this is not compatible with thermal relic
density of DM~\cite{Bringmann:2012vr}.
One should note that the internal bremsstrahlung process is also constrained by
AMS positron observation since a pair of high energy electron and
positron is also produced~\cite{Aguilar:2013qda, Bergstrom:2013jra}.

In this paper, we consider enhancement of the internal bremsstrahlung
process for Majorana DM due to increase of DM effective degrees of
freedom taking into account degenerate particles with DM.
Assuming that the degenerate particles weakly interact with
the SM particles, the effective annihilation cross section for relic
density would be smaller than the DM self-annihilation cross section.
Thus the interaction of DM should be
larger in order to satisfy the observed DM relic density. As a
result, it is expected that the cross section for internal
bremsstrahlung is also increased.
Moreover we will consider the constraints from perturbativity, positron
observation by the AMS experiment and direct
detection experiments.
A similar work has been done for a Higgsino- or
Wino-like neutralino DM in a supersymmetric
model~\cite{Profumo:2006bx}. In this reference, the authors have considered
co-annihilations with sleptons. Because of increase
of DM couplings for the correct relic density due to weak
co-annihilations, annihilation rates into neutrinos and anti-protons
have been enhanced as indirect detection signals of DM. Our work in this
paper is an application to internal bremsstrahlung in a simplified
Majorana DM model.

This paper is organized as follows.
In the next section, we quantitatively review the standard
internal bremsstrahlung of a single Majorana DM, and
explicitly show the cross section for the process cannot be large enough to be
detected by future gamma-ray experiments.
In Section~\ref{sec:3}, we introduce several degenerate particles with
DM and show enhancement of the cross section is derived due to the
degenerate particles. Our conclusions are given in Section~\ref{sec:4}.

\section{Standard Internal bremsstrahlung}
\label{sec:2}
\subsection{Interactions and cross sections}

We consider the leptonic Yukawa interaction
\begin{equation}
\mathcal{L}=y\varphi\overline{\chi}P_R\ell+\mathrm{H.c.},
\end{equation}
where the Yukawa coupling $y$ is assumed to be real for simplicity, $\chi$ is a singlet Majorana
DM in the SM gauge group, $\varphi$ is an electromagnetically
charged scalar mediator with hypercharge $Y_\varphi=1$ and $\ell$ is a
right-handed charged lepton.
Although DM can couple to three generations of the charged leptons in
general, we consider an interaction with only one generation for simplicity.
DM is regarded to be stabilized by a $\mathbb{Z}_2$ symmetry.
In our case, $\mathbb{Z}_2$ assignment should be odd for DM
$\chi$ and the mediator $\varphi$ and even for the charged lepton $\ell$.

The thermal relic density of DM is determined by the annihilation cross
section into a pair of leptons through the Yukawa coupling, and should
satisfy the observed one $\Omega h^2\approx0.120$~\cite{Ade:2013zuv}.
When the DM mass is much heavier than the charged lepton mass $m_\ell/m_\chi\ll1$, the
annihilation cross section into $\ell\overline{\ell}$ is calculated as
\begin{equation}
\sigma{v}_{\ell\overline{\ell}}=\frac{y^4}{48\pi m_\chi^2}
\frac{1+\mu^2}{\left(1+\mu\right)^4}v^2,
\label{eq:p-wave}
\end{equation}
where $\mu=m_\varphi^2/m_\chi^2$ is the mass ratio between DM
and the mediator, and $v$ is the relative velocity of DM.
There is no s-wave due to chiral suppression.
The required strength of the Yukawa coupling for the several fixed mass
ratios $m_\varphi/m_\chi$ is shown in the left panel in
Fig.~\ref{fig:yukawa}. As one can see from the figure, $\mathcal{O}(1)$ Yukawa
coupling is needed for the measured relic density.
When the mass ratio is
$m_\varphi/m_\chi=1.01$, the required Yukawa coupling becomes rather
small since the co-annihilation with the mediator is strong.
In this case, the DM mass being less than $170~\mathrm{GeV}$ gives too small
relic density and cannot satisfy the measured relic density.
There is a small dip around $m_\chi\approx40~\mathrm{GeV}$ for
$m_\varphi/m_\chi=1.1$. This is because DM and the mediator $\varphi$
are $10\%$ degenerate, and the effective annihilation cross
section of DM becomes large due to the $\varphi$ self-annihilation channel:
$\varphi^\dag\varphi\to f\overline{f}$ mediated by the $s$-channel $Z$ boson
where $f$ is a SM fermion.
The region of the DM mass more than a few TeV tends to be ruled
out by perturbativity of the Yukawa coupling.

As one can see from Eq.~(\ref{eq:p-wave}), the cross section is
suppressed by the relative velocity squared (p-wave) due to
the helicity suppression. Because of that, this channel is extremely
suppressed in current times since the averaged DM relative
velocity is roughly $v\sim10^{-3}$.
As a result, three-body process $\chi\chi\to \ell\overline{\ell}\gamma$
becomes important for indirect detection of DM~\cite{Bergstrom:1989jr,
Flores:1989ru, Bringmann:2007nk,
Ciafaloni:2011sa, Barger:2011jg, Garny:2013ama,
Kopp:2014tsa}.
There are three diagrams contributing to the process.
The total amplitude is separated to Final State
Radiation (FSR) and Virtual Internal Bremsstrahlung (VIB) parts in a
gauge invariant way~\cite{Bringmann:2007nk, Ciafaloni:2011sa}.
Among them, the differential cross section of the FSR contribution
is model-independently given by
\begin{equation}
\frac{d\sigma{v}_{\ell\overline{\ell}\gamma}^{\mathrm{FSR}}}{dx}=
\sigma{v}_{\ell\overline{\ell}}\frac{\alpha_{\mathrm{em}}}{\pi}
\frac{(1-x)^2+1}{x}\log\left(\frac{4m_\chi^2\left(1-x\right)}{m_\ell^2}\right),
\end{equation}
where $x=E_\gamma/m_\chi$.
Since this cross section is proportional to the chirally-suppressed two-body cross section
$\sigma{v}_{\ell\overline{\ell}}$, the FSR contribution to the gamma-ray
source is negligible.
Therefore the other VIB contribution becomes dominant.\footnote{The interference term with the
amplitude for FSR is also negligible in the region of $E_\gamma\sim m_\chi$.}
This process may induce sharp gamma-ray spectrum when the $\varphi$ mass is not
far from the DM mass ($\mu\lesssim2$).
In the limit of $m_\ell/m_\chi\to0$, the cross section for internal
bremsstrahlung $\chi\chi\to \ell\overline{\ell}\gamma$ is calculated
as~\cite{Bringmann:2007nk}
\begin{eqnarray}
\sigma{v}_{\ell\overline{\ell}\gamma}\hspace{-0.2cm}&=&\hspace{-0.2cm}
\frac{y^4\alpha_{\mathrm{em}}}{64\pi^2m_\chi^2}
\left[
\left(\mu+1\right)\left\{
\frac{\pi^2}{6}-\log^2\left(\frac{\mu+1}{2\mu}\right)
-2\mathrm{Li}_2\left(\frac{\mu+1}{2\mu}\right)
\right\}
+\frac{4\mu+3}{\mu+1}\right.\nonumber\\
&&\hspace{1.5cm}\left.
+\frac{(4\mu+1)(\mu-1)}{2\mu}\log\left(\frac{\mu-1}{\mu+1}\right)
\right].
\label{eq:ib}
\end{eqnarray}

\begin{figure}[t]
\begin{center}
\includegraphics[scale=0.6]{m-y.pdf}
\hspace{0.5cm}
\includegraphics[scale=0.6]{m-ib.pdf}
\caption{Contours satisfying the measured DM relic density on
 ($m_\chi$, $y$) plane (left panel). Comparison
 of the cross section for internal bremsstrahlung with gamma-ray
 experiments and the AMS positron observation (right panel).}
\label{fig:yukawa}
\end{center}
\end{figure}

There are also the loop-induced channels $\chi\chi\to\gamma\gamma$ and $\chi\chi\to\gamma
Z$ as the other gamma-ray sources. In this model, the annihilation
cross section for $\chi\chi\to\gamma\gamma$ is calculated as~\cite{Giacchino:2014moa}
\begin{equation}
\sigma{v}_{\gamma\gamma}=\frac{y^4\alpha_\mathrm{em}^2}{256\pi^3
 m_\chi^2}
\left|\mathrm{Li}_2\left(\frac{1}{\mu}\right)
-\mathrm{Li}_2\left(-\frac{1}{\mu}\right)\right|^2.
\end{equation}
This cross section is typically smaller than the cross section for
internal bremsstrahlung at $\mu\sim1$ due to the loop suppression as have discussed in
ref.~\cite{Giacchino:2014moa}, and the cross section for
$\chi\chi\to\gamma{Z}$ is also small.
If DM $\chi$ has the other interactions with
the SM particles and annihilates as $\chi\chi\to b\overline{b}$, $W^+W^-$, $ZZ$,
continuous broad gamma-rays are produced and it should be included in
total gamma-ray sources from DM.
In particular, if the mediator $\varphi$ has a $SU(3)_c$
charge, anti-protons are produced due to gluon internal bremsstrahlung
$\chi\chi\to q\overline{q}g$ through the interaction
$y\varphi\overline{\chi}q$ which is obtained by replacing the charged
lepton $\ell$ with a quark $q$~\cite{Asano:2011ik}.
This gluon internal bremsstrahlung would give a stronger constraint than
photon internal bremsstrahlung.
However in this simplified model, such annihilations do not occur
since the $SU(3)_c$ singlet mediator $\varphi$ is concerned.

The cross section for internal bremsstrahlung is numerically calculated
by using the
Yukawa coupling which satisfies the observed relic density as shown in the
right panel in Fig.~\ref{fig:yukawa}.
In the region of $m_\chi\lesssim300~\mathrm{GeV}$ for
$m_\varphi/m_\chi=1.01$, since the co-annihilation and self-annihilation
of $\varphi$ are dominant, the Yukawa coupling needed for the observed relic
density becomes small. Therefore, the
cross section for internal bremsstrahlung is also small.
For $m_\varphi/m_\chi\approx1.10$, the cross section can be maximal,
and for larger mass ratio, although the required Yukawa
coupling for the observed relic density can be sizable,
the cross section for internal bremsstrahlung remains small
since it decreases rapidly as
$\sigma{v}_{\ell\overline{\ell}\gamma}\propto \mu^{-4}$ for
$\mu\gg1$.

\subsection{Gamma-ray bounds, prospects and AMS positron observation}
In order to set an upper bound for the cross section generating sharp
gamma-rays, the cross section is translated to gamma-ray flux and
specific target region of interest for observation is taken as followed
by ref.~\cite{Garny:2013ama}.
The Fermi/H.E.S.S. limit has been obtained by assuming
an Einasto DM profile with appropriate parameter setting in
ref.~\cite{Garny:2013ama}. The Fermi and H.E.S.S. data were taken from search region $3$ Pass
$7$ SOURCE sample in ref~\cite{Weniger:2012tx} and the central Galactic
halo (CGH) region in ref.~\cite{Abramowski:2013ax} respectively.
As shown in the right panel of Fig.~\ref{fig:yukawa}, the blue
region is excluded by Fermi-LAT and H.E.S.S. at $95\%$
Confidence Level (CL)~\cite{Garny:2013ama}, and the prospected
sensitivities of the future gamma-ray experiments GAMMA-400 and
Cherenkov Telescope Array (CTA) are
described by the brown and black
lines~\cite{Galper:2012fp, Bernlohr:2012we}.
As one can see, the maximal cross section for sharp gamma-rays in the
case of standard internal bremsstrahlung is about
$\sigma{v}_{\ell\overline{\ell}\gamma}\approx2\times10^{-28}~\mathrm{cm^3/s}$
which is about one order of magnitude below the GAMMA-400 and CTA prospects.

Since high energy charged leptons are also produced by internal
bremsstrahlung, the cross section for $\chi\chi\to\ell\overline{\ell}\gamma$ is
constrained by the AMS positron observation~\cite{Aguilar:2013qda}.
The upper bound of the cross section for internal bremsstrahlung
$\chi\chi\to e^+e^-\gamma$ has been studied by in
ref.~\cite{Bergstrom:2013jra} where an Einasto DM profile is assumed.
This upper bound is shown as the red region in the right panel of Fig.~\ref{fig:yukawa}.
Note that even if $\ell=\mu,\tau$, high energy electrons and positrons
are emitted from the $\mu,\tau$ decays.
However since their energy is softer than that of direct produced $e^+e^-$, the
constraint for $e^+e^-\gamma$ would be strongest and regarded as
conservative upper bound for $\chi\chi\to\ell\overline{\ell}\gamma$.

As we have discussed here,
the cross section for the standard internal bremsstrahlung of Majorana
dark matter cannot reach the prospected sensitivity of the future
gamma-ray experiments.
Hence we move on to our scenario to obtain a larger cross section for
internal bremsstrahlung in the next section.

\section{Internal Bremsstrahlung with Degenerate Particles}
\label{sec:3}
\subsection{Interactions and cross sections}

Now we consider $k$ degenerate Majorana fermions with DM. The Yukawa
interaction is extended by
\begin{equation}
{\cal L}= \sum_{i=1}^ky_{i} \varphi\overline{\chi_i}P_R\ell+{\rm H.c.},
\end{equation}
where $\chi_1$ is the lightest and regarded as DM with the mass
$m_1\equiv m_\chi$,
$\chi_i~(i\neq1)$ is assumed to be degenerate with DM whose
mass is denoted as $m_i~(i\neq1)$.
In general, we can choose the diagonal base for the mass matrix of $\chi_i$.
When DM is degenerate with these particles,
co-annihilation effect has to be taken into
account to evaluate thermal relic density of DM.
Following ref.~\cite{Griest:1990kh}, the effective annihilation
cross section is given by
\begin{equation}
\sigma_{\mathrm{eff}}v=\sum_{i=1}^k\sum_{j=1}^k\frac{g_{i}g_{j}}
{g_{\mathrm{eff}}^2}\sigma_{ij}v
\left(1+\Delta_i\right)^{3/2}\left(1+\Delta_j\right)^{3/2}
e^{-(\Delta_i+\Delta_j)x},
\label{eq:coann}
\end{equation}
where $g_{\mathrm{eff}}$ is the effective degrees of freedom
\begin{equation}
g_{\mathrm{eff}}=\sum_{i=1}^kg_{i}\left(1+\Delta_i\right)^{3/2}e^{-\Delta_ix},
\end{equation}
and $\Delta_i\equiv (m_i-m_1)/m_1$ is the mass difference between DM
and the other degenerate particles, $g_i=2$ is the degrees of freedom
for each Majorana particle $\chi_i$, $x=m_1/T$ and $\sigma_{ij}v$ is
(co-)annihilation cross section between $i$ and $j$. If a lot of degenerate
particles exist, the effective degrees of freedom $g_\mathrm{eff}$
increases. In addition, the Yukawa coupling
$y_i~(i\neq1)$ is larger than $y_1$, its effective annihilation cross section
$\sigma_\mathrm{eff}{v}$ also becomes large and the relic density of the
DM is much reduced.
On the other hand, if the Yukawa coupling $y_i~(i\neq1)$ is smaller than
$y_1$, the
effective annihilation cross section becomes smaller than the standard
cross section of DM for non-degenerate case ($k=1$). Thus to compensate the lack
of the cross section, a larger coupling of DM $y_1$ is
required to satisfy the observed relic density.
We consider such a small Yukawa coupling $y_i~(i\neq1)$ for the degenerate fermions
to increase the strength of the DM Yukawa coupling $y_1$.
The cross section for internal bremsstrahlung is given by the same
formula with Eq.~(\ref{eq:ib}) and replacing $y\to y_1$.
\begin{figure}[tbc]
\begin{center}
\includegraphics[scale=0.6]{sigmav_y010.pdf}
\hspace{0.5cm}
\includegraphics[scale=0.6]{sigmav_y001.pdf}
\caption{$m_\varphi/m_1$ dependence of the cross section for internal
 bremsstrahlung.
 The strength of the Yukawa coupling $y_i~(i\neq1)$ compared to $y_1$ is
 taken as $y_i/y_1=0.10$ (left panel) and $y_i/y_1=0.01$ (right panel).}
\label{fig:coanni}
\end{center}
\end{figure}

\begin{figure}[t]
\begin{center}
\includegraphics[scale=0.6]{yukawa_y010_r110.pdf}
\hspace{0.2cm}
\includegraphics[scale=0.6]{yukawa_y001_r110.pdf}\\
\includegraphics[scale=0.6]{yukawa_y010_r101.pdf}
\hspace{0.2cm}
\includegraphics[scale=0.6]{yukawa_y001_r101.pdf}
\caption{Mass degeneracy dependence of the Yukawa coupling required for
 thermal relic density where $y$ in the y-axis is the Yukawa coupling
 for non-degenerate case, and all the degenerate fermion masses
 $m_i~(i\neq1)$ are assumed to be same.}
\label{fig:ib}\end{center}\end{figure}

We give some numerical results for effect of the DM Yukawa
coupling due to the degenerate Majorana fermions.
The effective cross section has been calculated by
micrOMEGAs~\cite{Belanger:2013oya}.
The cross section for internal bremsstrahlung obtained in the degenerate
scenario in
terms of the mass ratio between DM and the mediator ($m_\varphi/m_1$)
is shown in Fig.~\ref{fig:coanni}, where the DM mass $m_1$ is fixed to
be $300~\mathrm{GeV}$ and the mass ratio between the degenerate
particles and DM $m_i/m_1$
is fixed to $1.01$ as an example. We assumed that all the degenerate fermions have
same masses for simplicity. The strength of the
Yukawa coupling $y_i/y_1~(i\neq1)$ is fixed  to be $0.10$ in the left panel, and $0.01$ in the right panel.
The figure shows that larger enhancement of the cross section can be
obtained in the case of a smaller
 $y_i/y_1$ and a larger number of degenerate particles as we expected.
One also finds that a mild peak exists at a value of
$m_\varphi/m_1$ depending on the parameters.
The position of the peak is in the range of
$1.06\lesssim m_\varphi/m_1\lesssim 1.12$.

The dependence on the mass degeneracy $m_i/m_1$ of the DM Yukawa coupling required for
thermal DM production is shown in
Fig.~\ref{fig:ib} where the mass ratio $m_\varphi/m_1$ and the strength of the
Yukawa coupling $y_i$ are fixed as shown in the figure.
The mass ratio $m_\varphi/m_1$ should be $\mu\lesssim2$ to get
a sharp gamma-ray peak of internal bremsstrahlung.
As one can see from the figure, when the number of the particles increases and they are
strongly degenerate, the required strength of the DM Yukawa coupling for the
observed relic density is enhanced. According to the figure, it is
possible to obtain one order of magnitude increase of $(y_1/y)^4$.
We should note that for $m_\varphi/m_1=1.01$, large enhancement of the
Yukawa coupling occurs, however the cross section for internal
bremsstrahlung cannot be so large since the absolute value of the Yukawa
coupling is small.
Although the DM mass must be fixed to
calculate thermal relic density, there is almost no dependence on the DM
mass. The reason is that we take the ratio of the cross sections
Eq.~(\ref{eq:p-wave}) and $\sigma_{11}{v}$ in Eq.~(\ref{eq:coann}) to
derive the ratio of the Yukawa coupling $(y_1/y)^4$, and the ratio of the
cross sections is dimensionless.

\subsection{Gamma-rays and the other constraints}

\begin{figure}[t]
\begin{center}
\includegraphics[scale=0.6]{ib-deg_y010_r110.pdf}
\hspace{0.2cm}
\includegraphics[scale=0.6]{ib-deg_y001_r110.pdf}\\
\includegraphics[scale=0.6]{ib-deg_y010_r101.pdf}
\hspace{0.2cm}
\includegraphics[scale=0.6]{ib-deg_y001_r101.pdf}
\caption{Comparison of the cross section for internal bremsstrahlung with
 gamma-ray experiments where $m_\varphi/m_1$ and $y_i/y_1$ are fixed as
 in each figure, and $m_i/m_1=1.01$. The grey, green and red
 regions are excluded by perturbativity of the
 Yukawa coupling $y_1$, the LUX experiment and the AMS positron
 observation respectively.}
\label{fig:exp}
\end{center}
\end{figure}

The comparison with the Fermi/H.E.S.S. bound and the future gamma-ray
experiments GAMMA-400 and CTA is shown in Fig.~\ref{fig:exp}
where the mass ratio $m_\varphi/m_1$ and the Yukawa coupling of the
degenerate fermions are fixed as same as Fig.~\ref{fig:ib}.
In particular, one can see that for $m_\varphi/m_1=1.10$ and
$y_i/y_1=0.01$ (upper right panel), the cross section for internal bremsstrahlung is
largely enhanced and testable by GAMMA-400 and CTA~\cite{Galper:2012fp, Bernlohr:2012we}. For
$m_\varphi/m_1=1.01$, the cross section is rather smaller than the case for
$m_\varphi/m_1=1.10$ due to the strong co-annihilation with
$\varphi$.

Some other constraints are also shown in Fig.~\ref{fig:exp}.
The conservative perturbativity bound $y_1\leq\sqrt{4\pi}$ is taken into
account and the excluded region is shown in
the figure as grey color. This bound depends on the mass ratio
$m_\varphi/m_1$.
The red region is excluded by the AMS positron observation as discussed above.
In addition, we should note that when DM and the mediator $\varphi$ are extremely
degenerate as less than $1\%$, direct searches for DM may affect to the
analysis even if a leptophilic DM is concerned because an interaction
between DM and quarks is derived at one-loop level.
For Majorana DM, only anapole interaction $a$ which is given by
\begin{equation}
\mathcal{L}_{\mathrm{eff}}=a\overline{\chi}\gamma^\mu\gamma_5\chi\partial^{\nu}F_{\mu\nu},
\end{equation}
is relevant for direct detection of DM where $F_{\mu\nu}$ is the electromagnetic field
strength.\footnote{When a Majorana DM and an excited DM
$\chi_i~(i\neq1)$ are degenerate as in our framework, transition
dipole interactions among them may be obtained if CP phase exists in the
Yukawa coupling~\cite{Schmidt:2012yg}. However in this paper, since we assumed
real Yukawa couplings, the transition dipole moment does not exist.}
The concrete expression of the anapole moment and the related
loop function have been obtained
in ref.~\cite{Kopp:2014tsa}.
The elastic cross section with nuclei derived from the anapole
moment is suppressed by the DM velocity squared.
However according to ref.~\cite{Kopp:2014tsa}, when DM $\chi_1$ and
the charged mediator $\varphi$ are extremely degenerate as less than a few
$\%$, direct searches for DM would give a constraint on the cross
section for internal bremsstrahlung due to the existence of a pole of the anapole moment at
$m_\varphi/m_1=1$. Enhancement of the anapole moment is especially large when DM
interacts with electron, not but muon and tau since the anapole moment
is proportional to $\log(m_\ell^2/m_\chi^2)$ for $|q|^2\ll m_\ell^2$
where $|q|\lesssim m_\mu$ is the transfer momentum of photon. For
$|q|^2\gg m_\ell^2$,
this factor is replaced by $\log(|q|^2/m_\chi^2)$. Thus the strongest constraint
is obtained for electron.
The green region in Fig.~\ref{fig:exp} is excluded by the LUX experiment
where the coupling with electron is assumed.
In particular, the mass degeneracy between DM and the mediator is
$m_\varphi/m_1=1.01$, a lower DM mass region expected to be tested by
the future gamma-ray experiments is excluded.

DM and the charged scalar masses may be constrained by the LHC as
well since a
pair of the charged scalar $\varphi$ can be produced via the Drell-Yan process.
The bound for slepton search via the channel
$q\overline{q}\to\gamma/{Z^*}\to\tilde{\ell}\tilde{\ell}^\dag\to\ell\overline{\ell}+E\!\!\!/$
would be applied for our case as good approximation because the
charged scalar $\varphi$ can be regarded as a kind of slepton.
The ALTAS and CMS Collaborations have analyzed $20.3~\mathrm{fb}^{-1}$
and $19.5~\mathrm{fb}^{-1}$ of the LHC data at $\sqrt{s}=8~\mathrm{TeV}$
respectively, and the constraints for the DM and slepton masses have been
derived~\cite{Aad:2014vma, Khachatryan:2014qwa}.
However since we are interested in degenerate mass region between DM and
the charged scalar, the constraint of the LHC is relaxed and there is
no substantial constraint for $m_\varphi/m_1\lesssim1.2$.
Note that if the charged lepton $\ell$ in our framework is replaced to a quark, much
stronger constraint is imposed by the LHC.

\section{Conclusions and Discussions}
\label{sec:4}
Identifying DM is one of the primary issues in (astro-)particle physics.
Looking for line like gamma-rays coming from the galaxy is important
for DM searches since some DM candidates can generate sharp gamma-rays
which  are not expected to be induced by astrophysical sources. In
particular, internal bremsstrahlung of DM shows an
interesting sharp gamma-ray spectrum.
We have considered internal bremsstrahlung for leptophilic Majorana DM with
degenerate particles. When the degenerate particles have the Yukawa
coupling which is smaller than that for DM, we need a larger Yukawa
coupling for DM to satisfy the measured relic density. As a result, the
cross section for internal bremsstrahlung has been enhanced.
More than one order of magnitude of increase has been achieved for some parameter
sets, and it can be testable by the future gamma-ray experiments.
We have also considered the constraints from perturbativity of the DM Yukawa
coupling, the AMS positron observation and direct search for DM via anapole moment.
While the elastic cross section with nucleon derived from anapole
moment is suppressed by the DM velocity, a parameter space has
been excluded because of huge enhancement
of the anapole moment at $m_\varphi/m_1\approx1$.

Finally we briefly comment on the other aspects.
Small mass difference as we have considered would be induced by
introducing an extra $U(1)$ or a flavor symmetry.
For example, one can construct a model that one Dirac fermion DM with a
charge of the extra $U(1)$ symmetry is split to two degenerate Majorana fermions after
symmetry breaking.
Furthermore, the leptophilic DM we have considered in this paper can be
identified as the TeV scale right-handed neutrino. Such a TeV or
electroweak scale right-handed neutrino is included in some models with radiative neutrino
masses. Thus our framework discussed in this paper naturally
works in these models.

\section*{Acknowledgments}
T. T. acknowledges support from the European ITN project
(FP7-PEOPLE-2011-ITN, PITN-GA-2011-289442-INVISIBLES) and P2IO
Excellence Laboratory (Labex).

redpajama_set_name: RedPajamaArXiv


text:
Students Place Fourth at International Science & Engineering Fair
Two Sycamore High School students placed fourth in the Energy Chemical category at the Intel International Science and Engineering Fair just days before graduation.
New Aves alums and twin brothers Aaron and Ben Charnay were selected by the Ohio Academy of Science to represent the Buckeye State at the world's largest international pre-college science competition in Los Angeles May 14-19. Each year, approximately 1,800 high school students from more than 75 countries are awarded the opportunity to showcase their independent research and compete for on average $4 million in prizes.
The twins have turned bamboo into a fuel source for their project. It took them four years to develop an efficient way to extract glucose from the bamboo plant. The idea came from watching a friend eat bamboo at lunch.
"Reusable fuels are a big deal right now, so we decided to make ethanol out of bamboo and the sugar that is in it," Ben Charnay said. "We found there is almost no sugar in bamboo. You have to break down the cellulose into glucose and ferment that, so that's where our project ended up taking us."
Once that process was fine tuned, it became simple to distill it into a useable fuel source.
"It took us four years, but we did it," Ben said. "So to go to present this on the international stage is gratifying."
The Charnays are heading to the Ohio State University in the Fall to pursue degrees in chemistry. They hope to one day explore battery and large-scale energy storage solutions.
"Science is kind of the thing we do, the Charnays do science," Aaron Charnay said. "We've been working so long and so hard on this, there were nights where we would just cry because something isn't working and we can't figure things out. To get to do this is really cool."

redpajama_set_name: RedPajamaCommonCrawl


Located in Enping city with convenient traffic, Brun Audio Equipment Factory is a professional manufacturer of audio equipment, power amplifier and mixer. We integrate design, research, production and sales and adopt advanced technology.
Base in EnPing, the manufacturing centre of audio equipment in the world,WinsAudio Equipment Co.,Ltd is one of the factories that specialized at providing professional audio solution to our customers all over the world.
Zhuhai Sanjin Industrial Co. Ltd.
Shenzhen Fulais Car Audio Co.,LTD ,a OEM/ODM/OBM manufacturer specialized in car capacitors and amplifiers with R & D, production and marketing. Our main products are amplifiers of CLASS AB and CLASS D and Capacitors.
ACLON working many years have rich experience and ability for OEM /ODM. Offering over 50 various kinds of professional audio products and monthly output up to 6 thousands pieces. We are the best manufacturer that you can trust in China.
GO-JOYTY Audio (HK) Co., Ltd integrates R&D in professional audios, manufacture medium& high-end professional audio equipments and marketing as one.
Zhong Shan YoSun AutoPart Co ., LTD : A professional Manufacturers of car accessories,such as Car Speaker ,Loudspeaker, Radio Speaker ,Car Audio,car alarm Car bluetooth at a very competitive price.
"DSPPA Audio Co., Ltd. (DSPPA), founded in 1988, is a global famous manufacturer of professional audio products.
Shenzhen Fulais Car Audio Co.,Ltd is a specialized OEM/ODM/OBM manufacturer of car audio who supply amplifier and power capacitor.
We are China factory, founded in 2002, EXW-factory price, quickly shipment, alibaba trade assurance, 10 years of OEM, services OEM and ODM.
supply pcb making machine parts ,such as collet , cylinder, cleaning brush , pressure foot , pressure gasket ,fiber , fuse, amplifier , break detection , sensor , needle measurer and so on .otherwise , we can help maintain your machine .
We are supplying Professional Audio, Audio Visual Equipment, Audio conference system, Interactive Teaching System, Wired&wireless Microphone System, Microphone Headset, Pro Audio Speakers, Mixers, Amplifier, PA System and Teaching System etc.


You could almost equate gold and cryptocurrencies to the story of the tortoise and the hare, with the precious metal being the slow and sure participant, and Bitcoin being the rapid but volatile front runner.
And if we were to track each one's distance here on March 30 we would find that in relation to the famous fable, the two are right now about in the middle of the race with the gold price having moved up for the third quarter in a row despite ending the week down a bit, and with Bitcoin's price still in the lead but now taking a nap as it has fallen by 70% over the past three months.
Gold futures settled lower on Thursday, posting a decline for the week, as concerns over a potential global trade war continued to ease and benchmark U.S. stock indexes strengthened, dulling haven-related demand for the precious metal.
Gold marked a third-straight quarterly gain, but it was the smallest quarterly rise in seven years.
June gold GCM8, -0.03% the most-active contract, fell $2.70, or 0.2%, to settle at $1,327.30 an ounce. The contract edged down by 2.1% for the week and ended around 0.3% lower for the month of March. For the quarter and year to date, it was 0.7% higher.
Based on the most-active contract settlement of $1,309.30 at the end of 2017, however, gold futures were up 1.4% for the first quarter and year to date—the smallest quarterly rise since the three months ended March 2011, according to FactSet data.


Airnet AN-2020S is a basic feature multimedia phone. Check out the latest reviews, features, specifications and the price in India for this mobile phone.
Airnet AN 2020S is a stylishly designed basic feature multimedia phone that comes with excellent features and user-friendly interface. It is equipped with 1.8� inch TFT Screen Display, Dual Sim-Dual Standby, Digital Camera, Expandable Memory up to 4 GB, MP3/MP4 Player, Double Torch Light, Embedded Games, Wireless FM Radio, Video Recording, and has many more other basic features. It comes with super-long lasting Li-ion 1050mAh battery with talk time up to 6 hours and standby time up to 17 days. The handset is measured in a dimension of 110 x 44 x 14mm and operates at Dual Band GSM 900/1800 MHz frequency.


Peep this Video. Real Nice cutting and lots of skillz on the tables by various DJs. Thats what djing is and the reason why WE got on to the DJ World.
Big up to head of Supremus Sounds Ent. USA (San Diego) DJ Slowhand!
This Friday night Wolf Pack is heading to Fluxx to join Dj Steve Supreme and Dj Slowhand throw down an some music for an epic night!
Palomar San Diego, Supremus Sounds and Wolfpack invite!
It finally feels like summer has begun so let's kick it off with a Sunday party for the masses. We have a great line up, along with Steve Supreme and Mike Steez coming all the way from Switzerland to do a US tour!!
Join the monthly night with Supreme at Pravda's Ladies Night.
WE READY TO ROCK, ARE YOU?


Yesterday I received an email from a business colleague that really annoyed me.
When I asked him about it, he told me that he just wanted to let me know what he was doing with his business. The problem with that is that the email he sent me had absolutely no personalization in it whatsoever. The opening line said "Hey There!" (as opposed to Hi Sharon, Dear Sharon, etc.), and after that it was nothing more than a generic sales pitch, with a personalized link that I could use to register for the seminar (from which he would then earn a commission).
In life, people seem to fall into two categories: leaders and followers. Leaders dare to be different and pave the way for change. Followers don't make waves; maintain the status quo and support the leaders whose visions they subscribe to. You can't have one without the other. However, there are also times when leaders need to maintain the status quo and followers need to make waves. The challenge often comes in discerning which time is which.
Each one of us was born with our own unique gifts and talents, so why are we so eager to be like everyone else?
When it comes to your career, there are times when you do need to conform to industry standards. For example: your headshot and resume need to be 8x10; you need to look like your picture and your website needs to be very easy for casting directors, agents and others to navigate. Beyond that, however, your look is your look, your audition is your audition; your talent is your talent; and so on and so on.
As I said earlier, the fact that this gentleman sent me an email wasn't the issue. The issue was that there wasn't one ounce of him in it!
For the next week, I would like to offer you a challenge, and my challenge is this: I dare you to be yourself every single day, no matter what! Are you up for it? I hope so!
And, for those of you who take me up on my challenge, drop me a note and let me know how it goes!
Copyright © 2008 Sharon Moist. All Rights Reserved.


text:
Q: Can a query be written in ArangoDB to aggregate values within joined documents? Let's say you have a movie subscription service with normal and premium memberships.
Here is a sample of data generated by user activity and stored as documents in a collection:
[
    {
        "eventType": "sessionInfo",
        "userType": "premium",
        "sessionGroupID": 1
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "starwars",
        "sessionGroupID": 1,
        "elapsed": 200
    },
    {
        "eventType": "sessionInfo",
        "userType": "premium",
        "sessionGroupID": 2
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "xmen",
        "sessionGroupID": 2,
        "elapsed": 500
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 3
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "xmen",
        "sessionGroupID": 3,
        "elapsed": 10
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 4
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "xmen",
        "sessionGroupID": 4,
        "elapsed": 100
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 5
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "xmen",
        "sessionGroupID": 5,
        "elapsed": 5
    },
    {
        "eventType": "mediaPlay",
        "productSKU": "starwars",
        "sessionGroupID": 5,
        "elapsed": 25
    }
]

You can see that there are two "eventTypes":

*

*"sessionInfo" documents that have information common to an entire
user session

*"mediaPlay" documents that store how many seconds of a
movie was viewed.
(Each "mediaPlay" event contains the sessionGroupID so it can be associated with that session.)

Question #1:
Given tens of millions of documents total, how would you write a query that totaled the elapsed viewing time of each movie, grouped by userType?
Desired query results:
premium users - total of "elapsed":
    xmen: 500
    starwars: 200

normal users - total of "elapsed":
    xmen: 115
    starwars: 25

Question #2:
If the data is not structured optimally for such a query, what would be the ideal structure?

*

*For example, would it be better to nest the "mediaPlay" events inside each "sessionInfo" docs as a nested array?

Like this?
[
    {
        "eventType": "sessionInfo",
        "userType": "premium",
        "sessionGroupID": 1,
        "viewLog": [
            {
                "eventType": "mediaPlay",
                "productSKU": "starwars",
                "sessionGroupID": 1,
                "elapsed": 200
            }
        ]
    },
    {
        "eventType": "sessionInfo",
        "userType": "premium",
        "sessionGroupID": 2,
        "viewLog": [
            {
                "eventType": "mediaPlay",
                "productSKU": "xmen",
                "sessionGroupID": 2,
                "elapsed": 500
            }
        ]
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 3,
        "viewLog": [
            {
                "eventType": "mediaPlay",
                "productSKU": "xmen",
                "sessionGroupID": 3,
                "elapsed": 10
            }
        ]
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 4,
        "viewLog": [
            {
                "eventType": "mediaPlay",
                "productSKU": "xmen",
                "sessionGroupID": 4,
                "elapsed": 100
            }
        ]
    },
    {
        "eventType": "sessionInfo",
        "userType": "normal",
        "sessionGroupID": 5,
        "viewLog": [
            {
                "eventType": "mediaPlay",
                "productSKU": "xmen",
                "sessionGroupID": 5,
                "elapsed": 5
            },
            {
                "eventType": "mediaPlay",
                "productSKU": "starwars",
                "sessionGroupID": 5,
                "elapsed": 25
            }
        ]
    }
]

Thanks for any and all guidance and advice!

A: The following query iterates over the collection and collect all session IDs grouped by the userTypes. Then it creates a subquery which iterates over the collection and collect all movies and the sum of the elapsed time where eventType is "mediaPlay" and the collected sessions contains the sessionGroupID.
The @@coll is a bind parameter which includes your collection name.
FOR doc IN @@coll
  FILTER doc.eventType == "sessionInfo"
  COLLECT userTypes = doc.userType INTO sessions = doc.sessionGroupID
  RETURN {
    "userTypes" : userTypes,
    "movies" : (
      FOR event IN @@coll
        FILTER event.sessionGroupID IN sessions
        FILTER event.eventType == "mediaPlay"
        COLLECT movie = event.productSKU INTO elapsed = event.elapsed
        RETURN { "movie" : movie, "elapsed" : SUM(elapsed) }
      )
  }

The result of this query is:
[
  {
    "userTypes": "normal",
    "movies": [
      {
        "movie": "starwars",
        "elapsed": 25
      },
      {
        "movie": "xmen",
        "elapsed": 115
      }
    ]
  },
  {
    "userTypes": "premium",
    "movies": [
      {
        "movie": "starwars",
        "elapsed": 200
      },
      {
        "movie": "xmen",
        "elapsed": 500
      }
    ]
  }
]

Regarding your second question. Nested arrays/objects wouldn't optimise this query but you should split your data into two collections. One for every eventType (e.g. name the collections like the eventType sessionInfo and mediaPlay). This reduces the number of needed filter statements and more important, it allows you to query separately over sessionInfos and mediaPlays which highly boost your performance.
The query would then look like:
FOR doc IN sessionInfo
  COLLECT userTypes = doc.userType INTO sessions = doc.sessionGroupID
  RETURN {
    "userTypes" : userTypes,
    "movies" : (
      FOR event IN mediaPlay
        FILTER event.sessionGroupID IN sessions
        COLLECT movie = event.productSKU INTO elapsed = event.elapsed
        RETURN { "movie" : movie, "elapsed" : SUM(elapsed) }
      )
  }


The Visa-Canada-eTA Agency offer you withtheopportunity of getting VISA for admission in Canada. Withtheservices provided by www.canadaeta.mobi you will receive yourETAin maximum 72 hours, mostly it takes even less than 24hours.
The Canada eTA Agency offers you the opportunity of gettingofficialtravel Authorization. Through our Services, you willreceive yourCanada eTA in less than 24 hours.
The Visa-Canada-eTA Agency offer you with the opportunity ofgetting VISA for admission in Canada. With the services provided bywww.canadaeta.mobi you will receive your ETA in maximum 72 hours,mostly it takes even less than 24 hours.The Canada eTA Agencyoffers you the opportunity of getting official travelAuthorization. Through our Services, you will receive your CanadaeTA in less than 24 hours.
The Visa-Canada-eTA Agency offer you withtheopportunity of getting VISA for admission in Canada. Withtheservices provided by www.canadaeta.mobi you will receive yourETAin maximum 72 hours, mostly it takes even less than 24hours.The Canada eTA Agency offers you the opportunity of gettingofficialtravel Authorization. Through our Services, you willreceive yourCanada eTA in less than 24 hours.
Visa checking software for android...!!!!!Online visa check app is now here for you. You can check yourvisa from any where any time by using this app. I think this onlinevisa check app would be little bit helpful for you.Finally, Online visa checking software is now available forandroid. Now you can check your visa status from home. For checkyour visa status you need to know your passport number and visareference number (its various by country). And that's all youneed.With this visa checking software you can check Saudi Arabiavisa status, Saudi Arabia iqama status, Oman visa check, Indianvisa check. If you want a Qatar visa checking software then thisvisa checker app is also for you.It also use as Malaysia visa checking software. Kuwait visachecking software and so on..You just need to take your passport number for visa check andthen try this app for visa check.visa check available countries are listed belowOnline Visa Checker's Country List :-- Saudi Arabia's Visa Check,-- United Arab Emirate's Visa Check,-- Oman's Visa Check,-- Bahrain's Visa Check,-- Malaysia's Visa Check,-- Qatar's Visa Check,-- Kuwait's Visa Check ,-- Italy's Visa Check,-- Turkey's Visa Check,-- Singapore's Visa Check,-- Canada's Visa Check-- America Visa Check-- Australia Visa Check-- Chine Visa Check-- Japan Visa Check-- Cyprus Visa Check-- Greece Visa Check-- Austria Visa Check-- England Visa Check-- India Visa Check-- Maldives Visa CheckNew visa checking country added...-- Vietnam visa check-- Indonesia visa check-- Germany visa check===============================This online visa checking software is 100% safe and give yourvisa check result 100% accurate.So you should give a try with this online visa checking software.So enjoy and leave your comment for us.Still Not Convince?? Then download this app and share us youropinion.More Countries Will be Added Soon........ Stay with us......Thank YouNumber One visa checking software for android. DownloadNow!!!


text:
Ship to or from Spain (ESP)
Commercial Business Relocation To Spain - Moving Services
Spain (ESP)
International Company Relocation Opportunities Spain
Anti-Avoidance Law
Ip Administration
Expatriate Issues
International Company Relocation Opportunities: Spain
Spain is generally chosen as a place for investments because of its good investment company regime and powerful treaty network.
Business Climate:
Currency: Euro (€);
Esteemed Administrative Regime;
Skilled / Semi- Skilled workforce that includes widely available professional and technical workers.
Quality of Life:
Nice climate;
In good relations with USA, Africa, and Europe.
Linguistically and culturally, Spain has been recognized as a tactical place to access Latin America. Its favorable network bond with other countries makes it attracting to investors.
Spain recently reduced its corporate tax rate from 28% in 2015 to 25% in 2016. Spain has a decent holding company organization that offers an interest exception for capital gain and profits and a favorable treaty network. Its economy is mainly service-oriented, where service represents over 66% of its GDP.
Spain has wireless technology and a modern transport infrastructure you can find anywhere in the country. Main industries include real estates, tourism, constructions, and manufacturing. Life quality is outstanding with a relatively low cost of living compared to other countries in Europe, which makes it a very appealing destination for expatriates.
With regards to IP, Spain offers a favorable R&D tax system that provides liberal tax credits. If combined with an IP exception, a company can get a low IP income tax rate.
Because of its dependable treaty network and investment companies, Spain is a common choice for investments in South America.
Corporate Tax Policies: Spain's standard tax rate has been reduced from 28% in 2015 to 25% from 2016 onwards. There's an additional 2.5% reduction that can be added in certain circumstances, like when earnings / profit are not dispersed to stockholders.
There's no further deductible on worthless stocks. Losses from foreign or local subsidiary transfers will become deductible when there are more dividends participating than just the exempted ones. Tax restrictions also happen if the companies' monetary expenses are more than 30% higher than their operational profit (i.e. EBIDTA).
Capital Duties and Stamp Taxes: There are no stamp or capital duties in effect in Spain since January 01, 2011.
Corporate Tax Exemption: In the event an organization is classified as a Spanish holding company or an ETVE, if certain requirements are met, the company does not have to pay taxes on foreign sourced income (along with the dividends) and on the profit it receives from the sales of foreign participation.
Spain does not impose the tax if the ETVE income (capital gains and dividends) is acquired from non-resident stockholders.
For a company to be ETVE qualified it must have international subsidiary shares with enough significance, and the Spanish Tax Authorities must be notified.
Spain's CFC Legislation rule applies when the company holds 50% of its stocks and the non-resident tax rate is 75% less than the tax percentage. This rule only applies to certain income types. The anti-avoidance law also applies to capital gains and dividends from subsidiaries residing in a region where taxes are low.
On March 2012, the thin capitalization rule in Spain was changed with a general restriction on Gross monetary expense deductibility. Deductions can be up to 30% of the company's operating profit within the financial year (Earning – Stripping Law), though monetary expenses are going to be 100% taxable up to €1,000,000.
This limitation applies to the deficit of EU and non –European corporations, and to Spanish enterprises, regardless if the organization is made from connected entities (though there are still some exceptions in the rule application). There's a particular restriction for the non-deductibility of monetary expenses taken for intra-group loans that are used to sponsor intra-groups' procurement of stocks or used to boost the capital of their subsidiaries (unless proved for economic reasons).
Withholding taxes: ETVE can convey to its non- Spanish resident stockholders (with no permanent operation in the country), that the profits resulting from receiving a foreign income exemption are WHT free. The WHT's domestic rate of yearly interest is 19% starting from 2016). The rate can be lowered to 0% within the EU main subsidiary directive. This can be applied to those under treaty countries as well.
Value Added Taxes: 21% is the standard VAT rate. A lower 10% rate applies to recently built properties, restaurants, hotels, and entertainment establishments. A 4% tax rate is applied to food, books, and newspaper products. Insurance, medical services, and financial institutions are VAT exempted.
Dual Tax Arrangements: Spain has 80 arrangements or more in effect in addition to several information exchange agreements with other foreign jurisdictions that allows it to be taken out of the Spanish tax haven negative list.
Foreign Stockholders: A released capital gain from ETVE liquidation or a full/partial sale of a company is tax exempted. However, any parts of the consideration relating to Spanish counterparts are not exempted.
Legal: Spain provides top level recognition and legal protection for trademarks, patents, copyrights, goodwill, know-how, and industrial models and designs.
IP Rules: IP ruling applies to most registered impalpable assets. Business firms can get a 60% IP tax exemption on net income garnered from using (or transferring) qualified IP rights. Qualified IPs may come from information or patents having to do with a commercial, industrial, or a scientific background.
Payments from other sources are not included in this incentive. There's a 100% reduction in any IP development costs as well. Some exceptions to this rule should be noted if the business that's applying for the IP incentive is situated in a specific location in Spain. The incentive is reconcilable with an R&D tax credit and the two incentives can be used simultaneously.
R&D rules: Under Spain's Research and Development regime, a company can get a tax reduction of 25% to 42% of their R&D expenditure within the taxable year. In case R&D expenses are higher than the average cost of the past 2 years, a 25% rate will be applied while a 42% rate will be applied to the excess.
A supplementary 17% credit is provided for the costs associated with staff payroll that is exclusively designated to R&D tasks, and an 8% deduction on tangible assets that are used for R&D activities exclusively.
Personal Income Tax: Taxes are applied to each individual's earned and passive income. The rates ranged between 20% and 47% in 2015 and were reduced to 19% - 45% in 2016. Savings income is also taxed between 20% - 24% in 2015, 19% - 23% in 2016, and 25% - 27% onwards.
Contributions to Social Security: Workers pay 6.35% for social security contributions. However, some plain cost has been presented in particular cases.
Expatriate Policy: Spain provides a distinguished administration assigned as a result of a work contract. The eligible expatriates are taxed only for the income acquired in Spain. The tax is a 24% flat rate (47% / 45% if the excess is over €600,000).
House Moving to or from Spain
Bilbao, Spain
Las Palmas, Spain
Málaga, Spain
Moving Services Alicante, Spain
Murcia, Spain
International House Moving
Amadora, Portugal
Portugal (PRT)
Greece (GRC)
Bari, Italy
Italy (ITA)
Barreiro, Portugal
Germany (DEU)
Białystok, Poland
Poland (POL)
France (FRA)
Bregenz, Austria
United Kingdom (GBR)
Bydgoszcz, Poland
Can I Retire to Finland from USA?
Finland (FIN)
Can I Retire to Germany from the USA?
Cheapest Way to Move to Germany
Corinth, Greece
Cost to Move to Germany
Drogheda, Ireland
Dun Laoghaire, Ireland
Dundalk, Ireland
Evora, Portugal
Family Relocation to Finland
Family Relocation to Germany
Gdańsk, Poland
Gdynia, Poland
Hanover, Germany
Ioannina, Greece
Kallithea, Greece
Katowice, Poland
Klagenfurt, Austria
Larissa, Greece
Limerick, Ireland
Linz, Austria
Liverpool, UK
Lubin, Poland
Łódź, Poland
Moving Companies Almada, Portugal
Palermo, Italy
Patras, Greece
Piraeus, Greece
Poznań, Poland
Sankt Polten, Austria
Steyr, Austria
Student Relocation to Germany
Swords, Ireland
Tallaght, Ireland
Villach, Austria
Volos, Greece
Waterford, Ireland
York, UK


text:
Regulatory and Standards
The NAB 2018 Agenda Series
All Digital Editions
White Papers/eBooks
New Al Jazeera International global news centers to rely on Vizrt
The systems are being installed in the network's headquarters in Doha, as well as broadcast centers in London, Kuala Lumpur and Washington, D.C
TVTechnology
English-language Al Jazeera International, which will begin broadcasting globally in the first quarter of 2006, has ordered an HD Vizrt package as the core graphics system for its four broadcast centers.
The systems are being installed in the network's headquarters in Doha, Qatar, as well as broadcast centers in London, Kuala Lumpur, Malaysia, and Washington, D.C. The installations are due to be completed by the end of the year.
The Vizrt HD system will provide the latest technology for breaking news graphics, maps and template graphics, all accessible through an Octopus newsroom system. News producers will be able to access animations and template files created in any of the broadcast centers through constantly mirrored graphics file servers permanently connected to one another across the globe.
For more information, visit www.vizrt.
Al Jazeera International chooses HD Vizrt graphics
The English-language channel has selected a high-definition graphics system from Vizrt for its four broadcast centers in Doha (HQ), London, Kuala Lumpur and Washington DC
Al Jazeera Taps Vizrt for Graphics
English-language news channel Al Jazeera International has selected Vizrt for its template graphics. The high-definition Vizrt package will be will be used in its Doha, Qatar headquarters as well as facilities in London, Kuala Lumpur and Washington. D.C. The deal will be completed during the third and fourth quar
Al Jazeera Goes HD with Vizrt Graphics
Al Jazeera International, the 24-hour English-language news channel--which reports it will begin broadcasting "globally" in early 2006--has ordered an HD Vizrt package as the core graphics system for its four broadcast centers at its headquarters in Doha, London, Kuala Lumpur and Washington, D.C. The deal is the se
Al Jazeera Satellite News adds Vizrt technology
Broadcasters throughout the Middle East are embracing new Vizrt systems
Al Jazeera English relies on AstuceMedia for U.S. election coverage
Montreal-based AstuceMedia provided Al Jazeera English with the AstuceMedia Election System, which helped the broadcaster project winners on-air and online
IP and Networking
Front Porch Digital spans four Al Jazeera sites
Al Jazeera International is deploying DIVArchive at four broadcast centers worldwide
BE Blogs
Al Jazeera Balkan Launches With Mosart(R) Newscasting System
BERGEN, Norway -- March 27, 2012 -- Al Jazeera Balkan, the newest addition to the Qatar-based broadcaster's international portfolio, has gone live with the Mosart(R) newscasting system at its Sarajevo news studio. The first of Al Jazeera's channels to ...
© 2019 TV Technology is part of Future plc, an international media group and leading digital publisher. Visit our corporate site.