Loop issue

If you activate the loop mode on a sounds, double click it to run it then disable the loop sounds, the sounds goes on forever and we can't stop it anymore.
Solution
When a sounds is running in loop mode and you turn off the loop mode, simply stop looping it

Agree with that

Fixed in 1.3.


Add INPUT command to load a CSV file

Description
This PR is for the syntax option A described in https://github.com/opensearch-project/opensearch-spark/issues/638
The PR for option B is https://github.com/opensearch-project/opensearch-spark/pull/678.
Syntax of new command input (option A):
input <fileUrl>

Usage:
input "s3://bucket_name/folder1/folder2/flights.csv"

Issues Resolved
Resolves https://github.com/opensearch-project/opensearch-spark/issues/638
Check List

[x] Updated documentation (ppl-spark-integration/README.md)
[x] Implemented unit tests
[x] Implemented tests for combination with other commands
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@YANG-DB Which one do you think is better? #638 vs #678
The CI failed cause by

[PATH_NOT_FOUND] Path does not exist: file:/home/runner/work/opensearch-spark/opensearch-spark/integ-test/integ-test/src/integration/resources/opensearch_dashboards_sample_data_flights.csv.

Do you know why the resources path contains duplicated folders in our github build node? The actual csv file located in $PROJECT/integ-test/src/integration/resources/opensearch_dashboards_sample_data_flights.csv

Let's keep this #678 version as the one we go with

@YANG-DB Which one do you think is better? #638 vs #678 The CI failed cause by

[PATH_NOT_FOUND] Path does not exist: file:/home/runner/work/opensearch-spark/opensearch-spark/integ-test/integ-test/src/integration/resources/opensearch_dashboards_sample_data_flights.csv.

Do you know why the resources path contains duplicated folders in our github build node? The actual csv file located in $PROJECT/integ-test/src/integration/resources/opensearch_dashboards_sample_data_flights.csv

Let me try to investigate this today...

@LantaoJin can u also plz revolve latest merge conflicts ?
thanks

@LantaoJin can u also plz revolve latest merge conflicts ? thanks

@YANG-DB  I need some time to double confirm the file loading only be executed at once. Let me see how to get the metrics from Spark side in IT suite. Will rebase the code when my checking done.

@LantaoJin can u plz change to PR into draft mode ?

@LantaoJin
please add the needed documentation in the following locations:

ppl commands list
ppl functions list
ppl examples doc


Getting error at make commond.

Hello everyone,
I tried to code on Linux 16.04 and Linux 18.04.
I am getting an error at Cmake common while executing code on SEAL/native/examples.
I make changes in CMakeLists.txt, however it still giving error.
Anyone help me how to solve it?
CMake Error at CMakeLists.txt:6 (find_package):
Found package configuration file:
/usr/local/lib/cmake/SEAL-3.5/SEALConfig.cmake

but it set SEAL_FOUND to FALSE so package "SEAL" is considered to be NOT
FOUND.
-- Configuring incomplete, errors occurred!
See also "/home/god/SEAL/native/examples/CMakeFiles/CMakeOutput.log".
See also "/home/god/SEAL/native/examples/CMakeFiles/CMakeError.log".

Hello Sir,
I am getting another error at make command. I mentioned the step below:

I copied the SEAL folder into the SEALDemo file.

I set the parameter as mentioned in the image for CMakeLists.txt

cmake_minimum_required(VERSION 3.15.5)
project(SEALDemo VERSION 1.0)
set(CMAKE_CXX_STANDARD 14)
add_executable(sealdemo sealdemo.cpp)
set(CMAKE_SYSTEM_PREFIX_PATH "/home/god/SEALDemo/SEAL")
find_package (SEAL)
target_link_libraries(sealdemo /home/god/SEALDemo/SEAL:seal)

Error
/opt/cmake/bin/cmake . -DCMAKE_PREFIX_PATH="~/home/god/SEAL"
CMakeFiles/sealdemo.dir/build.make:82: *** target pattern contains no '%'.  Stop.
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/sealdemo.dir/all' failed
make[1]: *** [CMakeFiles/sealdemo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Yes, if possible kindly help me to solve those issues.
Thank you.

#213 Redirecting this to the other issue.


add R.composeK and R.pipeK

Closes #1197

LGTM. :cow2:
not sure what the deal is with the build. "npm license has expired"??? wtf?

Wow, I thought @buzzdecafe might have apoplexy about yet another compose function.  And yet he's the first to sign off?  I have no direct objections.  I understand the desire.  But I agree with the goal @buzzdecafe has been discussing of reducing these things.  So it's only a tentative :+1:

well, @davidchambers removed composeL so he is playing with house money. Also, I think we can probably unify compose and composeP. I'll do a PR for that. And then we can look at folding K in there as well, so we have one compose to rule them all.

... now if this was derived from slice and there was a test exposing the implementation, then it might be a different story.

And then we can look at folding K in there as well, so we have one compose to rule them all.

It doesn't make sense to me to combine two fundamentally different composition functions. Having one function handle all these compositions (if it's even possible) is too much magic for my liking:

b -> c ∘ a -> b
b -> c ∘ a -> m b
b -> m c ∘ a -> b
b -> m c ∘ a -> m b


Move MetricMetadata to metrics file

Coverage increased (+0.03%) to 83.596% when pulling c947f921ca600ff9221d5eb549c2684c72590c5e on fedj:metricmetadata into 94f22f211259f9c2a6fba1dadfbe13e7a42265ef on criteo:master.


HELPPPPP: How many Workers can i handle if iam having 48GB VRAM RTX A6000 (SINGLE GPU) and using 72B llama3.3 model

How many Workers can i handle if iam having 48GB VRAM RTX A6000 (SINGLE GPU) and using 72B llama3.3 model and also tell that can i use my CPU bcs it is of having 32 threads, so as per that we can run 32 workers inferencing parallely if we are using verba project in LAN network, please HELP me with this... tell me clearly what to do and how to switch from GPU to CPU if I want to do

Hey, thanks for the issue! Can you share more information about what you're trying to achieve?
I think it would make sense to direct your question to the Ollama GitHub (https://github.com/ollama/ollama) since this will be the most computationally expensive part of using Verba.


add: Tampermonkey extension in Dev Tools

Added the Tampermonkey extension under Developer Tools in the README.md file.
P.s. - There is a typo in the label, Kindly change it to "hactoberfest-accepted" instead of "hackroberfest-accepted"

LGTM

@RashakDude Kindly change the label from 'hackroberfest-accepted' to 'hacktoberfest-accepted'

@singodiyashubham87 Thanks for pointing that out. Changes done.


Unhandled Error When Messenger Switch is Off

When the main "Messenger" switch is off, and one of the other service switches is turned on an unhandled error is thrown and causes homebridge to crash. The stack trace is below:
TypeError: Cannot read property '0' of undefined
    at HomebridgeMessenger.<anonymous> (/homebridge/node_modules/homebridge-messenger/index.js:121:36)
    at On.emit (events.js:315:20)
    at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
    at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:652:12)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1461:24
    at Array.forEach (<anonymous>)
    at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1303:10)
    at HAPServer.emit (events.js:315:20)
    at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
    at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:812:12)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Seeing the same thing. Considering the default state of the Messenger switch is off, I didn't understand what I was doing wrong until I found this bug report!

Seeing the same thing. Considering the default state of the Messenger switch is off, I didn't understand what I was doing wrong until I found this bug report!

@kylemhall and @ablyler : Obviously, this is a bug. I will investigate this over the week-end.

@kylemhall and @ablyler : Obviously, this is a bug. I will investigate this over the week-end.

@kylemhall and @ablyler : Solved in new version 0.0.8. It's published and available now.

@kylemhall and @ablyler : Solved in new version 0.0.8. It's published and available now.


Add: main

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines         122    122
=====================================
  Hits          122    122

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41cfc21...a02db17. Read the comment docs.


Some of the HID  consumer codes are not working as expected using the ble_hid_device_demo example (PlayPause(0xCD) AC Home (0xDF)) (IDFGH-13227)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
V5.2.2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
What I am trying to do is to emulate an STB Remote Controller that uses the BLE connection to control a STB, when I connect the original remote control to my Android Phone I can detect the commands, and I can control i.e. the youtube player; Using the BLE example  now I am able to use most of the commands defined there, but for HID_CONSUMER_PLAY_PAUSE  that is defined in hid_dev.h file, it is not working as expected, neither in the STB or in the Youtube player, and the same is happening with the HID_CONSUMER_AC_HOME but this last one is not defined in hid_dev.h but I guess the code is the rigth one.
Most of the commands are working as expected using the HID, and HID consumer codes, exept for codes:
#define HID_CONSUMER_PLAY_PAUSE     205 // Play/Pause
and one more code not defined but acoording to some search should be :
#define HID_CONSUMER_AC_HOME        223 // AC Home
What is the actual behavior?
When I connect the BLE device to an application that identifies the keypressed, this is doing nothing, Is like the user is sending anything.
Steps to reproduce.
Basically I just modified the example to hardcode the commands:

I am sending the keycode in true,
Then I wait small period of time to simulate the keypress
Then I sent the keycode in false to release the key

            esp_hidd_send_consumer_value(hid_conn_id, HID_CONSUMER_PLAY_PAUSE, true);
            vTaskDelay(100 / portTICK_PERIOD_MS);
            esp_hidd_send_consumer_value(hid_conn_id, HID_CONSUMER_PLAY_PAUSE, false);

Build or installation Logs.
No response
More Information.

I have tried all the codes from 0x00 to 0xFF in both HID and HID Consumer codes and none of them are doing what is expected. I did it to discard that maybe there is another code expected.
I have tried adding the    0x09, 0xCD,   //   Usage (Play/Pause)to the descriptor hid_device_le_prf.c file
Also I noticed that the case to build the buffer  when calling the function: hid_consumer_build_report  has all the cases exept for the commands that I was looking for, so I have tried adding the case like:

case HID_CONSUMER_PLAY_PAUSE:
            HID_CC_RPT_SET_BUTTON(buffer, HID_CONSUMER_PLAY_PAUSE);
            break;

but none of the above solutions are working as what I was expecting.
Any help or advice is really apreciated

@rleython Thanks for choosing Espressif product! May I know which chip do you use?

Thanks for your reply @weiyuhannnn , I am using the ESP32-WROOM-32D

I have the same issue.
esp_hidd_send_consumer_value(hid_conn_id, HID_CONSUMER_PLAY_PAUSE, true);

has no effect

Hello,
Please find the attached patch for instructions on sending the commands you asked for.
To send more custom commands, you need to adjust the report map in hid_device_le_prf.c as well as the hid_dev.h file and the hid_consumer_build_report function.
0001-patch-add-support-for-sending-PLAY-PAUSE-and-AC-home.patch


Check if log4j bug is fixed after merge with master

The log4j security incident is not fixed in the merged version -> ToDo: Update log4j to newest version

Upgraded log4j to log4j 2


Update memory offsets for Desolate Tomb (2016/08/24) patch

Thanks for the pull request and the updated offsets!


possible performance regression?

the second one used to be very fast but is now on par with going straight through duckdb

ds = lance.dataset('s3://eto-public/datasets/oxford_pet/oxford_pet.lance')

CPU times is very low for the second one: not sure where the rest of its Wall time is coming from

I will check whether limit pushdown has been passed through the new versioned dataset.


why is my mAP very low?

Why is the mAP score very low even though the dets and gts number is very high? How is gts and dets related to the calculation of recall and ap? In general how is recall and ap calculated?
I am using pascal voc dataset format.

There is so much related material and you can easily find it via google.
Just an example,
https://datascience.stackexchange.com/questions/25119/how-to-calculate-map-for-detection-task-for-the-pascal-voc-challenge

Feel free to reopen the issue if there is any question


Update goreleaser to use boring

Change Overview
This PR updates goreleaser to build boring versions of kanister tools
Pull request type
Please check the type of change your PR introduces:

[ ] :construction: Work in Progress
[ ] :rainbow: Refactoring (no functional changes, no api changes)
[ ] :hamster: Trivial/Minor
[ ] :bug: Bugfix
[x] :sunflower: Feature
[ ] :world_map: Documentation
[ ] :robot: Test

Issues

fixes #issue-number

Test Plan

[ ] :muscle: Manual
[ ] :zap: Unit test
[ ] :green_heart: E2E

@sirish see inline question above.


pixhawk-pi connection

I connected pixhawk and pi following the tutorial. I don't find serial device node in /dev  directory and there is no change in /dev directory when I remove or connect.

Did you disable the serial network use by os?
Regards,
Jay Patrikar
Integrated BT-MT
Dual Degree Student
Unmanned Aerial Vehicles Lab
Department of Aerospace Engineering
IIT Kanpur
Kanpur-208016
M: +91-7752846441
On Wed, Aug 30, 2017 at 9:23 PM, b-rohit<EMAIL_ADDRESS>wrote:

I connected pixhawk and pi following the tutorial
http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html. I don't
find serial device node in /dev directory and there is no change in /dev
directory when I remove or connect.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PX4/Firmware/issues/7880, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVUhEb-l8IbQHq8u3Rbij7cmhPwtiqZiks5sdYWRgaJpZM4PHmoX
.

yes I disabled it.

I guess you are using PX4 and not Arducopter. In which case you have to enable the sys_companion parameter to a specific baud rate. U can also try using a FTDI/USB and see if the problem is from pixhawk side or rpi.
Hope it helps!

thanks @jaypatrikar . Yes I am using  PX4 and I have set sys_companion to 921600.

Please reopen if this is still an issue.


Possible to show some benchmark against haproxy etc?

Possible to show some benchmark against haproxy etc? Nice software btw

Hey @gitmko0, I meant to add benchmarks to the repo but still haven't gotten around to it.  The closest thing would be my notes in a couple blog posts: initial and update
Hope this helps and thanks for taking a look!


oauth2_proxy: create new module for service

This patch adds a module for oauth2_proxy, exposing all of the options for the binary in what I hope is a sensible manner.
I've tested the module on my own (alas, private) NixOS deployment. I looked through the todo list below and they all seem like options relevant to packages rather than modules.
This is my first substantive patch to NixOS, so please let me know if I'm missing any conventions.
Thanks,
jml
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

This change is

Thank you for the comments & sorry for the delay in replying. I think I've addressed everything that has been raised, so please take a look.

According to travis there's a problem with one of the option declarations

Option declaration fixed. AFAICT the remaining build failure isn't one of mine.

Please squash when you're ready to merge.

Done.

@joachifm - I tested this and it works as advertised so I think we can merge.

@tel cool, thank you for additional testing. @jml thank you for the contribution.


change cloudevents.HTTPOption and cloudevents.HTTPOption from type redefine to type alias

hello!
I want to use opts to create client as blow:
func main() {
	// instead of `var opts []http.Option`
	//  everything is ok, build pass
	var opts cloudevents.HTTPOption
	opts = append(opts, cloudevents.WithTarget("http://target_url"))
	opts = append(opts, cloudevents.WithShutdownTimeout(5*time.Second))
	// ...  other options

	cloudevents.NewClientHTTP(opts...)
}

then, build error occur:
cannot use v2.WithTarget("http://target_url") (type "github.com/cloudevents/sdk-go/v2/protocol/http".Option) as type v2.HTTPOption in append
expect:
cloudevents/sdk-go/v2/alias.go:24
type ClientOption client.Option -> type ClientOption = client.Option
cloudevents/sdk-go/v2/alias.go:45
type HTTPOption http.Option -> type HTTPOption = http.Option

I think it is better to change cloudevents.HTTPOption and cloudevents.HTTPOption from type redefine to type alias.
Is this written for other considerations or a historical legacy?
I already create a pr in here
#805

Thanks for the PR!


some fileds should be final

MyBatis version
3.5.3
Database vendor and version
Test case or example project
Steps to reproduce
Expected result
add modifier final to field
Actual result
`
class
org.apache.ibatis.type.JdbcType
//  this could be final
private static Map<Integer,JdbcType> codeLookup = new HashMap<>();
org.apache.ibatis.datasource.pooled.PoolState
// if no subclass , this could be final
protected PooledDataSource dataSource;
org.apache.ibatis.datasource.unpooled.UnpooledDataSource
//  this could be final
private static Map<String, Driver> registeredDrivers = new ConcurrentHashMap<>();
// field registeredDrivers  is used
in static code block
static {
........
registeredDrivers.put(driver.getClass().getName(), driver);
}
}
AND synchronized code block
private synchronized void initializeDriver() throws SQLException {
....
registeredDrivers.put(driver, driverInstance);
.....
}
because registeredDrivers  is private and has no get method,
can replace registeredDrivers (ConcurrentHashMap) with HashMap?
`

Hi @galleChristian ,
Could you just send a pull request? It's much easier for us to review.
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
And please use the proper syntax for code blocks in a comment.
https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown

No reply.


Fix xarray

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes issue #xyz

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Documentation has been added / updated (for bug fixes / features)
[ ] HISTORY.rst has been updated (with summary of main changes)
[ ] I have added my relevant user information to AUTHORS.md

What kind of change does this PR introduce?:

Added a subset operation test for xarray metadata with cmip6 data.

Does this PR introduce a breaking change?:
no

Other information:

@agstephens update for clisops and additional tests.


advanced search

"actomyosin contractile ring, "
does not find
actomyosin contractile ring, distal actin filament layer
actomyosin contractile ring, intermediate layer
actomyosin contractile ring, proximal layer
(primary names)

Unfortunately there are 15 GO terms that start with "actomyosin contractile ring" and 56 that contain those three words and it's not showing the three you're actually interested in.  We could make the autocomplete list longer but that's not going to solve the general problem.
I'm still getting the hang of Solr/Lucene but we might be able to tweak the results to make them more relevant.

OK, I thought I would find them if I  included the comma
actomyosin contractile ring,
since these are the only ones with a comma  which is why I was confused....
but no worries

OK, I thought I would find them if I included the comma

Only letters are significant when searching all other characters are ignored.

ok, makes sense


[SPARKTA-509][WEB]: Show confirmation window when edit input or output

When editing an input or output if the policies related are stopped show a confirmation message showing the following message:
"Checkpoints of related policies are going to be deleted. Do you want to continue?"
This message will only be showed when the input or output edited has related policies

:shipit:

Comment accepted. Will treat it ASAP

Squashing and checks in progress.


Number of font files

Adding too many font files in the font folder causes the game to crash

Can you give me a rough number of how many font files are needed to reproduce this issue? Also what are your system specs hardwarewise (espacially RAM)?

I can't remember exactly how many it was and I can't test it right now but I think I just downloaded the entire Roboto font family which has 12 fonts + I had like 3-4 other fonts. Removing the fonts solved the issue. I have 16GB of RAM.

I will have a look into it soon.


iostrem error

while including PubSubClient getting error as
#include <iostream.h> //library isn.t there..please help me in resolving this while connecting to mqtt library using GSM.

Sorry, but if you don't share the actual error or the code, we cannot begin to help.

In file included from gsmserverconnection.ino:2:0:
/home/praveen/sketchbook/libraries/pubsubclient5/trace.h:3:20: fatal error: iostream: No such file or directory
#include
^
compilation terminated.
 It is picking up code from the tests subdirectory, which indicates you haven't installed the library correctly.

I have installed it from github

Ok, that still doesn't tell me how you did it, just where you got the files from. Rather than try to debug it, here's what you should do:

delete /home/praveen/sketchbook/libraries/pubsubclient5
use the arduino ide's built-in library manager, Sketch->Include Library...->Manage Libraries and search for PubSubClient and click Install.

#include <PubSubClient.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);
PubSubClient mqttClient(client);
void setup()
{
mySerial.begin(9600);               // the GPRS baud rate
Serial.begin(9600);    // the GPRS baud rate
}
void loop()
{ startMqtt();
datasend();
mqttClient.loop()
}
void startMqtt()
{
//client.setServer(server, 1883);
mqttClient.setServer("mqtt.carriots.com", 1883);
mqttClient.connect("myclientID");
if(mqttClient.connected())
{
//connect with LWT
byte willQoS = 0;
const char* willTopic = "willTopic";
const char* willMessage = "My Will Message";
boolean willRetain = false;
 boolean a= mqttClient.connect("myClientID", willTopic, willQoS, willRetain, willMessage);
//connect with username/password
 boolean b=mqttClient.connect("myClientID","myusername","mypassword")

 mqttpubsub();

}
else()
{
startMqtt();
}
}
void datasend()
{
mySerial.println("AT");
delay(2000);
ShowSerialData();
mySerial.println("AT+CGATT?");
delay(2000);
ShowSerialData();
mySerial.println("AT+CIPSHUT");
delay(2000);
ShowSerialData();
mySerial.println("AT+CIPSTATUS");
delay(2000);
ShowSerialData();
mySerial.println("AT+CIPMUX=0");
delay(2000);
ShowSerialData();
mySerial.println("AT+CSTT="airtelgprs.com","","" ");
delay(1000);
ShowSerialData();
mySerial.println(" AT+CIICR ");
delay(5000);
ShowSerialData();
mySerial.println("AT+CIFSR");
delay(2000);
ShowSerialData();

//mySerial.println("AT+CMQTTSTART");
//delay(1000);
//ShowSerialData();
//mySerial.println("AT+CMQTTACCQ=0,client1");
//delay(1000);
//ShowSerialData();
//mySerial.println("AT+CMQTTCONNECT=0,tcp,test.mosquitto.org/ws.html:1883,20,1" );
//delay(1000);
//ShowSerialData();
//mySerial.println("AT+CMQTTOPIC=0,13,praveen");
//delay(1000);
//ShowSerialData();
//mySerial.println("AT+CMQTTPAYLOAD=0,62,hai");
//delay(1000);
//ShowSerialData();
mySerial.println("AT+CIPSTART=\"tcp\",\"<IP_ADDRESS>\",\"80\"");
delay(2000);
ShowSerialData();
mySerial.println("AT+CIPSEND? >");
ShowSerialData();

//mySerial.println("#026");
//delay(2000);
//ShowSerialData();
//mySerial.println("AT+CIPSHUT");
//delay(2000);
//ShowSerialData();
mySerial.println(startmqtt);
}
void ShowSerialData()
{
while(mySerial.available()!=0)
Serial.write(mySerial.read());
}
void mqttpubsub()
{
boolean c = mqttClient.publish("myTopic", "myMessage");
boolean d = mqttClient.subscribe("INtopic");
ShowSerialData();
}
///Below is the error
gsmconnection2.ino:6:1: error: ‘PubSubClient’ does not name a type
gsmconnection2.ino: In function ‘void loop()’:
gsmconnection2.ino:18:3: error: ‘mqttClient’ was not declared in this scope
gsmconnection2.ino:19:1: error: expected ‘;’ before ‘}’ token
gsmconnection2.ino: In function ‘void startMqtt()’:
gsmconnection2.ino:24:3: error: ‘mqttClient’ was not declared in this scope
gsmconnection2.ino: In function ‘void mqttpubsub()’:
gsmconnection2.ino:113:14: error: ‘mqttClient’ was not declared in this scope

Have you reinstalled the library as I suggested?
If so, check you can successfully build one of the example sketches the library provides.

Closing as this is an installer error, not an issue with the library.
If you are still having problems, please let me know on this issue.


Remove MPI Comm Tags

Uses MPI_Comm_dup in the Halo to avoid the need for users to input an MPI tag for the point-to-point communication as the duplicated communicator will operate in a separate communication space.
Note that this change breaks backwards compatibility.
Fixes #12

@dalg24 MPI_Comm_free has been added. Also found one for a Cartesian topology communicator that wasn't being freed.


Add default option to #attribute in collection

Suppose we have this mapper
mapper = Lotus::Model::Mapper.new do
   collection :users do
     entity User

     attribute :id,    Integer
     attribute :name,  String
     attribute :admin, Boolean, default: -> { false }
   end
 end

 u = User.new(name: 'Luca', admin: true)
 UserRepository.persist(u)
 u.admin #=> true

 u = User.new(name: 'Luca')
 UserRepository.persist(u)
 u.admin #=> should be false instead nil

There's a bigger problem here: imagine that the admin column in the example above is non-NULLable in addition to having a default set. Currently, if you don't explicitly set the value in the entity then Lotus sends column => nil on serialisation. This causes Postgres, at least, to choke and error - you can't explicitly set a non-nullable value to null.
It also suggests that we're explicitly setting columns with default values to null when we might expect them to use the column default

$ LOTUS_ENV=test bundle exec lotus db prepare
Unsupported ruby class used as database type: Boolean (Sequel::Error)

How did you define the Sequel's TrueClass FalseClass?

@theCrab We use Sequel as migration engine. The list of Ruby types is defined here: http://lotusrb.org/guides/migrations/create-table/ :smile_cat:

Closing this for now, as we want to narrow the scope as much as possible before to hit 1.0.


Language Identification not working for Javascript SDK on recognizing part.

JS SDK speech recognition

I would like to inquire whether the intermediate confidence level for speech recognition in the JS SDK is currently in progress or if it is already available.

Describe the bug

When utilizing the speech recognition feature, the intermediate part still does not function correctly. Based on my research, it appears that there is no support for the JS SDK for the intermediate part, as I continue to encounter the issue of privLanguageDetectionConfidence being undefined.
This is what we have so far in JS.

let audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();
recognizer = SpeechSDK.SpeechRecognizer.FromConfig(
  speechConfig,
  autoDetectSourceLanguageConfig,
  audioConfig
);

 recognizer.recognizing = (s, e) => {
    let asr = e.result.text;
    var languageDetectionResult =
      SpeechSDK.AutoDetectSourceLanguageResult.fromResult(e.result);
    detectedLanguage = languageDetectionResult.language;
    console.log(
      detectedLanguage
    );

recognizer.recognized = (s, e) => {
    let asr = e.result.text;
    var languageDetectionResult =
      SpeechSDK.AutoDetectSourceLanguageResult.fromResult(e.result);
    detectedLanguage = languageDetectionResult.language;
    console.log(
      detectedLanguage
    );

To Reproduce
Steps to reproduce the behavior:

We incorporate audio input in the script, but after receiving the input, the recognizing process fails and displays an undefined detected value.

Expected behavior

Upon receiving the audio input, the recognizing module is designed to identify and detect the language embedded in the audio content. However, currently, there seems to be an issue, as the recognizing process fails to perform this language detection, resulting in an undefined value for the detected language. This limitation is affecting the accurate interpretation of the audio content in terms of language identification. Interestingly, we're getting results using the Python SDK.

Additional context

This refers to our earlier discussion in which you mentioned that final confidence == intermediate confidence. This is the issue link

@glharper
Can you answer about the current state of language autodetection API in the JS SDK?
Thanks

@amin45666 From my services contact: "Intermediate LID confidence is not technically possible today and not in the pipeline. Language detection itself only happens at segmentation (as in only when a Recognized event is sent back from the service)."
I wonder if the Python SDK is saving the previous recognized value and carrying it to each intermediate result before the next recognized result. Would such behavior be helpful for your use case in the JS SDK?

To keep our open issues list up to date, this item will be closed since it's been inactive and needs more information to proceed. Please file a new issue (and feel free to reference this one) if there's new information we can follow up on. Thank you!


results

Can you provide these model's results.Thank you!

I am sorry, but I have not got enough time to test models. You can try ask the help from the main contributor:  https://github.com/meetshah1995/pytorch-semseg


Mark fence in use after the check.

:+1: for the focused fix, but this function is still poorly-behaved in validation and driver failure cases.

cherry-picked and pushed to master


Dead link in Framework Design web page

In http://dubbo.apache.org/en-us/docs/dev/design.html
In design.md
More design principles refer to: [Framework design principle](./principals/introduction.md)

dead link to http://dubbo.apache.org/en-us/docs/dev/principals/introduction.html

Hi, it is an issue, because these  articles does not have English version, would you help to translate them into English?
To help on this issue (as an example), copy /docs/zh-cn/dev/principals/code-detail.md to /docs/en-us/dev/principals/code-detail.md and replace the content with English.

Sure! I'll take it from here.

@ralf0131 Please assigned to me, I can solve the issue.

hi @caojiele
I have translated several files, would you mind to have a look and left some comment?
There are still several files to be done, maybe we can co-work on this.
It's located at #297

hi @caojiele
I have translated several files, would you mind to have a look and left some comment?
There are still several files to be done, maybe we can co-work on this.
It's located at #297

hi, @biyuhao let us try.

@ralf0131 Please assigned to me, I can solve the issue.

Sorry Github can only assign issue to committer...
If you want to take please leave a message and go ahead.

@ralf0131 Please assigned to me, I can solve the issue.

Sorry Github can only assign issue to committer...
If you want to take please leave a message and go ahead.

hahaha, I also want to become a committer.


Support for gorm v2

Curious if this is planned or not?

This still works with gorm v2, just need to open the database connection in a different way. It would be useful to update the docs to include this.
import (
	mocket "github.com/selvatico/go-mocket"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
        "testing"
)

var dbconnecton *gorm.DB

func setupTest(t *testing.T) {
        var err error

        mocket.Catcher.Reset()
	mocket.Catcher.Register()
	mocket.Catcher.Logging = true

	dialect := mysql.New(mysql.Config{
		DSN:                                 "mockdb",
		DriverName:                      mocket.DriverName,
		SkipInitializeWithVersion: true,
	})

	dbconnection, err = gorm.Open(dialect, new(gorm.Config))
        if err != nil {
           t.Fatalf("failed to open mock database connection: %s", err)
        }
}


Bug: Searching by name on Advanced Search returns awful results

Describe the bug
If you search by name using the advanced search (https://botc-scripts.azurewebsites.net/script/search), then you get returned very bizarre results. For example, if you search for "Trouble Brewing", Catfishing is the top result and Trouble Brewing appears nowhere near.
If you use the normal search on the homepage, you get 3 Trouble Brewing like results which it what I would expect.

So I've identified the problem. The problem is in the Results page display. It gets sent the correct list of scripts and then it filters the results on that but then has no way to order them.
I think this can be resolved by annotating the queryset that's been filtered with the order, so enumerate over the list in order and then sort by that.

Resolved by #204


enhancement Add soft memory limit check to reduce the occurrence of OOM

Proposed changes
Issue Number: close #xxx
Problem summary
Soft memory check means that the memory usage of the query has exceeded 90% of the mem limit. It is expected to wait for the memory to be released to continue. Otherwise, the exceeded mem limit may occur, and the query will be canceled.
Checklist(Required)

Does it affect the original behavior:

[x] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[x] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

Which type of nodes we should prefer soft limit? Could you give some description.

sleep_for may keep waiting when exceeding mem limit, I will remove the logic here


Do not install tests

"Why not" writeup at https://gist.github.com/scop/5910ee85a1352988554e8b8d5d675e65

While I have sympathy for the argument of not installing tests for disk usage reasons in general, the other arguments listed on that page don't make sense to me:

there may be no single standard way of running tests; there is no single standard way of invoking other python code once installed either. And while there is no single standard, there are various standards for specifying tests, such as test_suite in setup.cfg, a directory name tests, simply doing test discovery with pytest
dependencies can be specified with tests_require in setup.cfg, or could e.g. be specified with a "tests" extra
it's obviously a bad idea to install test code that is not ready for that, but that's just an argument for fixing that or only installing test code that is safe to run

The fact that it's not necessarily easy to run tests out of the box could just be an argument for making it easier.
In this particular case, we're talking about 16k; is that really worth it?


Title: Enhancing the design of Dark mode toggle and project search bar

Which pre-existing JavaScript project will you be working on?
Home page.
Describe your enhancement/improvement
Currently the home page search bar and dark mode toggle switches seems to have not utilized the functionalities of CSS well .
I intend to make the homepage a bit more tidy.
Please assign me this issue so that i can work on making the home page a little more exquisite.
( Requesting as a part of GSSoC '24 )
Anything you need to say to the Reviewers
No response
Add any other context or relevant screenshots about the enhancement here.
No response

@AnandK-pm Thank you for providing your insight but it is not required as of now.


Reason for Generic Access Rights in CreateFile Callback?

We noticed that the generic access flags (GENERIC_READ, GENERIC_WRITE, etc) are propagated directly into our user mode implementation via the DokanOperations.CreateFile callback, i.e., a conversion into file specific access rights is not performed.
Looking at the code, it seems like the conversion actually does happen in the kernel driver/library but is reverted in the .NET-wrapper in DokanOperationProxy.ZwCreateFileProxy https://github.com/dokan-dev/dokan-dotnet/blob/85165d5da69f51b9b6ae0df5e2ce35d8e0a1bb51/DokanNet/DokanOperationProxy.cs#L293-L300
Is there a specific reason for this?

Hi @lumip ,
Yes, there is an obscure logic reason for this 😄
See https://github.com/dokan-dev/dokany/issues/197#issuecomment-250967638
https://github.com/dokan-dev/dokany/blob/0da77870161c101d3133fd76938951c200f12868/dokan/dokan.h#L844
Do not hesitate if you need more information.

hm.. there are several things I don't really understand here:

How does the simple act of re-introducing the Generic Access Rights towards the user mode callbacks fix the bug in that discussion?

Why does this back-conversion only happen in the .NET-wrapper when the linked discussion is actually part of the core dokany repository?

Kernel add/convert additional flags before forwarding it to the driver. These flags used as it is directly to the userland created an invalid parameters error.

The "issue" is that Kernel CreateFile is more advanced than the userland CreateFile, there are options that only exist at this point and "some" users would probably want/need to get the full information. Therefore we chose not to convert them and let the user implementation convert the flag with a helper.
This function is used in the C/C# Mirror.

That's about as far as I understood it, but thanks for summing it up again :) It just makes me wonder why that is since the Windows documentation is pretty explicit about that the generic access should be mapped to specific access for file objects. To me, this suggests that a file system driver implementation should be pretty agnostic about generic access rights.. Basically I don't understand how this solution fixes the bug described in the conversation you linked (and apparently I'm not the only one: https://github.com/dokan-dev/dokany/issues/197#issuecomment-251147310 )

I'd believe that most userland code does not need the generic rights and would need to map them again to the specific ones, making a total of three conversions (generic -> specific in the driver, specific -> generic in the .NET-wrapper, generic -> specific in the user application).. in that case I would argue not to do the re-mapping in the .NET-wrapper by default but expose the conversion function (DokanMapKernelToUserCreateFileFlags) in the interface so that those who actually do need can then use it. I agree with the other conversions that take place in the mapping function (disposition, attributes, ..) but really take issue with the desired access mask mapping.

Also: what if the initial call to CreateFile (to the driver) had a desired access of FILE_READ_ATTRIBUTES | FILE_READ_DATA | FILE_READ_EA | STANDARD_RIGHTS_READ | SYNCHRONIZE (i.e., everything that would constitute GENERIC_READ but not explicitely being GENERIC_READ)? The DokanMapKernelToUserCreateFileFlags would then map this to GENERIC_READ and pass this into the userland file system callbacks even though this is not what was given in the original call to CreateFile...

Example (not tested, just from my mind):

User app call CreateFile GENERIC_READ
Kernel convert the GENERIC_READ into STANDARD_RIGHTS_READ, FILE_READ_DATA, FILE_READ_ATTRIBUTES, FILE_READ_EA, and SYNCHRONIZE.
Kernel forward to driver STANDARD_RIGHTS_READ, FILE_READ_DATA, FILE_READ_ATTRIBUTES, FILE_READ_EA, and SYNCHRONIZE.  not GENERIC_READ
Dokan userland gets STANDARD_RIGHTS_READ, FILE_READ_DATA, FILE_READ_ATTRIBUTES, FILE_READ_EA, and SYNCHRONIZE.  And call CreateFile directly with it. This creates an invalid parameters.

The conversion back fixes the invalid parameters during the CreateFile in userland.
https://github.com/dokan-dev/dokany/blob/af8ddfc372246b01832ea37924ef513ddc3ed299/dokan/dokan.c#L914

The goal of the C# wrapper is simplicity that’s why we preferred to make the conversion by default in the proxy. More over, it is to give to the user a clean FileAccess (framework available flags). If you would like to get all the values of the createfile in c#, would probably need to find a way to by pass the ZwCreateFileProxy.

https://github.com/dokan-dev/dokany/blob/af8ddfc372246b01832ea37924ef513ddc3ed299/dokan/dokan.c#L916
See that FILE_GENERIC_READ is used and not GENERIC_READ

Dokan userland gets STANDARD_RIGHTS_READ, FILE_READ_DATA, FILE_READ_ATTRIBUTES, FILE_READ_EA, and SYNCHRONIZE. And call CreateFile directly with it. This creates an invalid parameters.

Is that explicetly a problem for the mirror sample implementation? Why would those be invalid parameters in general?

The goal of the C# wrapper is simplicity that’s why we preferred to make the conversion by default in the proxy. More over, it is to give to the user a clean FileAccess (framework available flags). If you would like to get all the values of the createfile in c#, would probably need to find a way to by pass the ZwCreateFileProxy.

I'm confused by this.. FileAccess would be cleaner without the generic rights (as they are duplicating specific rights inconveniently). In my opinion, this conversion in the wrapper actually decreases simplicity for the programmer of the callbacks (and the wrapper code itself).

https://github.com/dokan-dev/dokany/blob/af8ddfc372246b01832ea37924ef513ddc3ed299/dokan/dokan.c#L916
See that FILE_GENERIC_READ is used and not GENERIC_READ

The next line ( https://github.com/dokan-dev/dokany/blob/af8ddfc372246b01832ea37924ef513ddc3ed299/dokan/dokan.c#L917 ) sets GENERIC_READ and another line ( https://github.com/dokan-dev/dokany/blob/af8ddfc372246b01832ea37924ef513ddc3ed299/dokan/dokan.c#L933 ) removes all attributes that constitute GENERIC_READ (which are ored together as FILE_GENERIC_READ)
I'm sorry, I don't want to be contrary but I still don't understand why this is necessary or even beneficial. Please enlighten me :)

See my comment here https://github.com/dokan-dev/dokany/issues/197#issuecomment-250535936 both flag was set and created the invalid parameters. Yes this is an issue for the mirror because we use the userland CreateFile that create this error. if you do not use it and have no issue with managing this flag, you can not to use the convert function.

C# Access rights https://msdn.microsoft.com/fr-fr/library/4z36sx0f(v=vs.110).aspx
C CreateFile https://github.com/dokan-dev/dokany/blob/master/samples/dokan_mirror/mirror.c#L243-L262
C# is an enum compared to C. Having a clean enum variable means only existing enum value is set.
What would be the point as giving corrupt enum to the userland ?

#define FILE_GENERIC_READ         (STANDARD_RIGHTS_READ     |\ //0x00020000L
                                   FILE_READ_DATA           |\ //0x0001
                                   FILE_READ_ATTRIBUTES     |\ //0x0080
                                   FILE_READ_EA             |\ //0x0008
                                   SYNCHRONIZE) //0x00100000L
#total = 0x00120089
#define GENERIC_READ                     (0x80000000L)

Both are fully different flags.

Shouldn't this be fixed in the mirror then instead of the wrapper?

If you do not use it and have no issue with managing this flag, you can not to use the convert function.

currently, I do not have this choice because the conversion happens automatically in the wrapper..

 Just one without generic access rights :)

Yea, the are represented by different values but semantically they are the same and thus I'd say to remove the GENERIC_{READ|WRITE|EXECUTE|ALL} (in the DokanNet.FileAccess enum and thus the call into DokanOperations.CreateFile) to avoid more complicated/duplicated handling routines in that callback.

but.. I'll stop here. I see you made your choices about this, even though I can't really comprehend them. It's not too bad, it just seems unclean to me so I wanted to suggest changing that. I guess that's not going to happen.
Thanks for taking the time for this discussion!

Like I said, the C# wrapper is not made to be a low level as the C. If you would like to control this part, you will need to change the proxy not to call the DokanMapKernelToUserCreateFileFlags or to direct C that does not call this function by default.

So here is the case 👍 The conversion is made to give the proper generic access rights.

Yes, I understand the point here. I would totally agree with you.

But really, I have looked for a long time why CreateFIle would create an invalid parameters error during VHD mount. I have reproduced the param calls on a sample. Eliminated all the parameters one by one to find the conflict. I see which one and tried why the kernel would ask incompatible createfile params and then I found the previous link that explains the kernel conversion. I wrote the function to convert back and it worked directly, had no issue with other tests to it felt to me to be the right fix. It is rare in case such to find a Microsoft documentation that can be linked to an apply fix so I am pretty happy of it 😄
If you find that it is not the correct way to do it, I would be glad to see another solution. I am totally open since this comes only from my own thought.
Just a point, I do not take bad your words if you feel it like this, I am just having difficult to explain this fix/situation where I cannot point a code/documentation that tells, "how to convert desired access kernel to users".

I looked into that a bit more and it really seems that Microsoft kind of messed up the semantics for their Generic access rights.. nothing to do about it here, I guess sigh


Cannot put sclr in monitors.

originally tried this:
In [108]: dets = [fccd]

In [109]: sd.monitors = [fccd_temp,sclr]

In [111]: RE(single_ph_ct(50))
Transient Scan ID: 83073 @ 2017/09/11 16:54:49
Persistent Unique Scan ID: '3cc99817-49f6-4d03-9bee-8ff413b1782f'
New stream: 'fccd_temp_monitor'
LivePlot did not get any data that corresponds to the x axis. time
LivePlot did not get any data that corresponds to the y axis. fccd_temp
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
~/Beamline/Commissioning/2017_09/startup.py in <module>()
----> 1 RE(single_ph_ct(50))

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in __call__(self, plan, subs, raise_if_interrupted, **metadata_kw)
    644                     # it (unless it is a canceled error)
    645                     if exc is not None:
--> 646                         raise exc
    647

then tried with just sd.monitors = [sclr] and turned on RE.msg_hook. Get the same error.  'sclr' has multiple read attributes. Not wanting to remove all but one read attribute  because sometimes we want to use more than one read attribute in this capacity.
In [126]: dets
Out[126]: [ProductionCamStandard(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5', 'cam.acquire_time', 'cam.acquire_period', 'cam.num_images'], configuration_attrs=['cam.acquire_time', 'cam.acquire_period', 'cam.image_mode', 'cam.num_images'])]

In [127]: sclr
Out[127]: PrototypeEpicsScaler(prefix='XF:23ID1-ES{Sclr:1}', name='sclr', read_attrs=['channels', 'time'], configuration_attrs=['preset_time', 'presets', 'gates', 'names', 'freq', 'auto_count_time', 'count_mode', 'delay', 'auto_count_delay', 'egu'])

Here is the output with dets = [fccd] and sd.monitors = [sclr] .
In [120]: sclr.hints
Out[120]: {'fields': ['sclr_ch4', 'sclr_ch5']}

In [121]: sclr.hints = {'fields': ['sclr_ch5']}

In [122]: sd.monitors = [sclr]

In [123]: RE(count(dets,num=2))
stage: (data keys (* hints)
-------------------
 fccd_cam_acquire_period
 fccd_cam_acquire_time
 fccd_cam_num_images
 fccd_stats1_total
 fccd_stats2_total
 fccd_stats3_total
*fccd_stats4_total
 fccd_stats5_total

read attrs
----------
hdf5                 HDF5PluginWithFileStore('fccd_hdf5')
stats1               StatsPlugin         ('fccd_stats1')
stats2               StatsPlugin         ('fccd_stats2')
stats3               StatsPlugin         ('fccd_stats3')
stats4               StatsPlugin         ('fccd_stats4')
stats5               StatsPlugin         ('fccd_stats5')
cam.acquire_time     EpicsSignalWithRBV  ('fccd_cam_acquire_time')
cam.acquire_period   EpicsSignalWithRBV  ('fccd_cam_acquire_period')
cam.num_images       EpicsSignalWithRBV  ('fccd_cam_num_images')

config keys
-----------
fccd_cam_acquire_period
fccd_cam_acquire_time
fccd_cam_image_mode
fccd_cam_num_images

configuration attrs
----------
cam.acquire_time     EpicsSignalWithRBV  ('fccd_cam_acquire_time')
cam.acquire_period   EpicsSignalWithRBV  ('fccd_cam_acquire_period')
cam.image_mode       EpicsSignalWithRBV  ('fccd_cam_image_mode')
cam.num_images       EpicsSignalWithRBV  ('fccd_cam_num_images')

Unused attrs
------------
configuration_names  ArrayAttributeSignal('fccd_configuration_names')
cam                  AreaDetectorCam     ('fccd_cam')
roi1                 ROIPlugin           ('fccd_roi1')
roi2                 ROIPlugin           ('fccd_roi2')
roi3                 ROIPlugin           ('fccd_roi3')
roi4                 ROIPlugin           ('fccd_roi4')
trans1               TransformPlugin     ('fccd_trans1')
proc1                ProcessPlugin       ('fccd_proc1')), (), {}
open_run: (None), (), {'detectors': ['fccd'], 'num_points': 2, 'num_intervals': 1, 'plan_args': {'detectors': ["ProductionCamStandard(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5', 'cam.acquire_time', 'cam.acquire_period', 'cam.num_images'], configuration_attrs=['cam.acquire_time', 'cam.acquire_period', 'cam.image_mode', 'cam.num_images'])"], 'num': 2}, 'plan_name': 'count', 'hints': {'dimensions': [(('time',), 'primary')]}}
Transient Scan ID: 83076 @ 2017/09/11 16:57:36
Persistent Unique Scan ID: '1b6039ef-9a8c-49cd-a9fd-ad37cab8510a'
monitor: (data keys (* hints)
-------------------
 sclr_ch1
 sclr_ch2
 sclr_ch3
 sclr_ch4
*sclr_ch5
 sclr_ch6
 sclr_time

read attrs
----------
channels             PrototypeEpicsScalerChannels('sclr_channels')
time                 EpicsSignal         ('sclr_time')

config keys
-----------
sclr_auto_count_delay
sclr_auto_count_time
sclr_count_mode
sclr_delay
sclr_egu
sclr_freq
sclr_preset_time

configuration attrs
----------
preset_time          EpicsSignal         ('sclr_preset_time')
presets              PrototypeEpicsScalerPresets('sclr_presets')
gates                PrototypeEpicsScalerGates('sclr_gates')
names                PrototypeEpicsScalerNames('sclr_names')
freq                 EpicsSignal         ('sclr_freq')
auto_count_time      EpicsSignal         ('sclr_auto_count_time')
count_mode           EpicsSignal         ('sclr_count_mode')
delay                EpicsSignal         ('sclr_delay')
auto_count_delay     EpicsSignal         ('sclr_auto_count_delay')
egu                  EpicsSignal         ('sclr_egu')

Unused attrs
------------
count                EpicsSignal         ('sclr_count')
update_rate          EpicsSignal         ('sclr_update_rate')
auto_count_update_rate EpicsSignal         ('sclr_auto_count_update_rate')), (), {'name': 'sclr_monitor'}
unstage: (data keys (* hints)
-------------------
 fccd_cam_acquire_period
 fccd_cam_acquire_time
 fccd_cam_num_images
 fccd_stats1_total
 fccd_stats2_total
 fccd_stats3_total
*fccd_stats4_total
 fccd_stats5_total

read attrs
----------
hdf5                 HDF5PluginWithFileStore('fccd_hdf5')
stats1               StatsPlugin         ('fccd_stats1')
stats2               StatsPlugin         ('fccd_stats2')
stats3               StatsPlugin         ('fccd_stats3')
stats4               StatsPlugin         ('fccd_stats4')
stats5               StatsPlugin         ('fccd_stats5')
cam.acquire_time     EpicsSignalWithRBV  ('fccd_cam_acquire_time')
cam.acquire_period   EpicsSignalWithRBV  ('fccd_cam_acquire_period')
cam.num_images       EpicsSignalWithRBV  ('fccd_cam_num_images')

config keys
-----------
fccd_cam_acquire_period
fccd_cam_acquire_time
fccd_cam_image_mode
fccd_cam_num_images

configuration attrs
----------
cam.acquire_time     EpicsSignalWithRBV  ('fccd_cam_acquire_time')
cam.acquire_period   EpicsSignalWithRBV  ('fccd_cam_acquire_period')
cam.image_mode       EpicsSignalWithRBV  ('fccd_cam_image_mode')
cam.num_images       EpicsSignalWithRBV  ('fccd_cam_num_images')

Unused attrs
------------
configuration_names  ArrayAttributeSignal('fccd_configuration_names')
cam                  AreaDetectorCam     ('fccd_cam')
roi1                 ROIPlugin           ('fccd_roi1')
roi2                 ROIPlugin           ('fccd_roi2')
roi3                 ROIPlugin           ('fccd_roi3')
roi4                 ROIPlugin           ('fccd_roi4')
trans1               TransformPlugin     ('fccd_trans1')
proc1                ProcessPlugin       ('fccd_proc1')), (), {}
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
~/Beamline/Commissioning/2017_09/startup.py in <module>()
----> 1 RE(count(dets,num=2))

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in __call__(self, plan, subs, raise_if_interrupted, **metadata_kw)
    644                     # it (unless it is a canceled error)
    645                     if exc is not None:
--> 646                         raise exc
    647
    648             if raise_if_interrupted and self._interrupted:

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in _run(self)
   1084             self.log.error("Run aborted")
   1085             self.log.error("%r", err)
-> 1086             raise err
   1087         finally:
   1088             # Some done_callbacks may still be alive in other threads.

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in _run(self)
    982                         resp = self._response_stack.pop()
    983                         try:
--> 984                             msg = self._plan_stack[-1].send(resp)
    985                         # We have exhausted the top generator
    986                         except StopIteration:

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in __call__(self, plan)
   3338         plan = monitor_during_wrapper(plan, self.monitors)
   3339         plan = fly_during_wrapper(plan, self.flyers)
-> 3340         return (yield from plan)
   3341
   3342

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in fly_during_wrapper(plan, flyers)
   1482     plan1 = plan_mutator(plan, insert_after_open)
   1483     plan2 = plan_mutator(plan1, insert_before_close)
-> 1484     return (yield from plan2)
   1485
   1486

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    162                     continue
    163                 else:
--> 164                     raise ex
    165         # if inserting / mutating, put new generator on the stack
    166         # and replace the current msg with the first element from the

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    115             ret = result_stack.pop()
    116             try:
--> 117                 msg = plan_stack[-1].send(ret)
    118             except StopIteration as e:
    119                 # discard the exhausted generator

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    162                     continue
    163                 else:
--> 164                     raise ex
    165         # if inserting / mutating, put new generator on the stack
    166         # and replace the current msg with the first element from the

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    115             ret = result_stack.pop()
    116             try:
--> 117                 msg = plan_stack[-1].send(ret)
    118             except StopIteration as e:
    119                 # discard the exhausted generator

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in monitor_during_wrapper(plan, signals)
   1424     plan1 = plan_mutator(plan, insert_after_open)
   1425     plan2 = plan_mutator(plan1, insert_before_close)
-> 1426     return (yield from plan2)
   1427
   1428

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    162                     continue
    163                 else:
--> 164                     raise ex
    165         # if inserting / mutating, put new generator on the stack
    166         # and replace the current msg with the first element from the

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    115             ret = result_stack.pop()
    116             try:
--> 117                 msg = plan_stack[-1].send(ret)
    118             except StopIteration as e:
    119                 # discard the exhausted generator

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    162                     continue
    163                 else:
--> 164                     raise ex
    165         # if inserting / mutating, put new generator on the stack
    166         # and replace the current msg with the first element from the

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    115             ret = result_stack.pop()
    116             try:
--> 117                 msg = plan_stack[-1].send(ret)
    118             except StopIteration as e:
    119                 # discard the exhausted generator

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in baseline_wrapper(plan, devices, name)
   1763         return (yield from plan)
   1764     else:
-> 1765         return (yield from plan_mutator(plan, insert_baseline))
   1766
   1767

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    162                     continue
    163                 else:
--> 164                     raise ex
    165         # if inserting / mutating, put new generator on the stack
    166         # and replace the current msg with the first element from the

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    115             ret = result_stack.pop()
    116             try:
--> 117                 msg = plan_stack[-1].send(ret)
    118             except StopIteration as e:
    119                 # discard the exhausted generator

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in count(detectors, num, delay, md)
   2082         return (yield from infinite_plan())
   2083     else:
-> 2084         return (yield from finite_plan())
   2085
   2086

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/utils.py in dec_inner(*inner_args, **inner_kwargs)
    920                 plan = gen_func(*inner_args, **inner_kwargs)
    921                 plan = wrapper(plan, *args, **kwargs)
--> 922                 return (yield from plan)
    923             return dec_inner
    924         return dec

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in stage_wrapper(plan, devices)
   1609         return (yield from plan)
   1610
-> 1611     return (yield from finalize_wrapper(inner(), unstage_devices()))
   1612
   1613

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in finalize_wrapper(plan, final_plan, pause_for_debug)
   1110     cleanup = True
   1111     try:
-> 1112         ret = yield from plan
   1113     except GeneratorExit:
   1114         cleanup = False

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in inner()
   1607     def inner():
   1608         yield from stage_devices()
-> 1609         return (yield from plan)
   1610
   1611     return (yield from finalize_wrapper(inner(), unstage_devices()))

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/utils.py in dec_inner(*inner_args, **inner_kwargs)
    920                 plan = gen_func(*inner_args, **inner_kwargs)
    921                 plan = wrapper(plan, *args, **kwargs)
--> 922                 return (yield from plan)
    923             return dec_inner
    924         return dec

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in run_wrapper(plan, md)
    910         metadata to be passed into the 'open_run' message
    911     """
--> 912     rs_uid = yield from open_run(md)
    913     yield from finalize_wrapper(plan,
    914                                 close_run())

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in open_run(md)
   1036     :func:`bluesky.plans.close_run`
   1037     """
-> 1038     return (yield Msg('open_run', **(md or {})))
   1039
   1040

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
     99             # if we have a stashed exception, pass it along
    100             try:
--> 101                 msg = plan_stack[-1].throw(exception)
    102             except Exception as e:
    103                 # if we catch an exception,

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in pre_baseline()
   1745         if msg.command == 'open_run':
   1746             def pre_baseline():
-> 1747                 ret = yield msg
   1748                 yield from trigger_and_read(devices, name=name)
   1749                 return ret

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    187         try:
    188             # yield out the 'current message' and collect the return
--> 189             inner_ret = yield msg
    190         except GeneratorExit:
    191             # special case GeneratorExit.  We must clean up all of our plans

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
     99             # if we have a stashed exception, pass it along
    100             try:
--> 101                 msg = plan_stack[-1].throw(exception)
    102             except Exception as e:
    103                 # if we catch an exception,

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in new_gen()
   1407         if msg.command == 'open_run':
   1408             def new_gen():
-> 1409                 yield from ensure_generator(monitor_msgs)
   1410             return single_gen(msg), new_gen()
   1411         else:

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/utils.py in <genexpr>(.0)
    106     if not isinstance(gen, PLAN_TYPES):
    107         # If plan does not support .send, we must wrap it in a generator.
--> 108         gen = (msg for msg in gen)
    109
    110     return gen

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    187         try:
    188             # yield out the 'current message' and collect the return
--> 189             inner_ret = yield msg
    190         except GeneratorExit:
    191             # special case GeneratorExit.  We must clean up all of our plans

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    187         try:
    188             # yield out the 'current message' and collect the return
--> 189             inner_ret = yield msg
    190         except GeneratorExit:
    191             # special case GeneratorExit.  We must clean up all of our plans

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    187         try:
    188             # yield out the 'current message' and collect the return
--> 189             inner_ret = yield msg
    190         except GeneratorExit:
    191             # special case GeneratorExit.  We must clean up all of our plans

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/plans.py in plan_mutator(plan, msg_proc)
    187         try:
    188             # yield out the 'current message' and collect the return
--> 189             inner_ret = yield msg
    190         except GeneratorExit:
    191             # special case GeneratorExit.  We must clean up all of our plans

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in _run(self)
   1033                         # exceptions (coming in via throw) can be
   1034                         # raised
-> 1035                         response = yield from coro(msg)
   1036                     # special case `CancelledError` and let the outer
   1037                     # exception block deal with it.

~/conda_envs/dev/lib/python3.6/site-packages/bluesky/run_engine.py in _monitor(self, msg)
   1428
   1429         self._monitor_params[obj] = emit_event, kwargs
-> 1430         obj.subscribe(emit_event, **kwargs)
   1431         yield from self.emit(DocumentNames.descriptor, desc_doc)
   1432         yield from self._reset_checkpoint_state_coro()

~/conda_envs/dev/lib/python3.6/site-packages/ophyd/ophydobj.py in subscribe(self, cb, event_type, run)
    190             raise ValueError('Subscription type not set and object {} of class'
    191                              ' {} has no default subscription set'
--> 192                              ''.format(self.name, self.__class__.__name__))
    193
    194         try:

ValueError: Subscription type not set and object sclr of class PrototypeEpicsScaler has no default subscription set

You cannot monitor a device*. You can only monitoring a specific signal, like a channel of the sclr.
*Actually, you can monitor a device if you configure it specially. You must customize the ophyd class to indicate which "subscription" you would like to watch for updates. Hence, the error, ValueError: Subscription type not set and object sclr of class PrototypeEpicsScaler has no default subscription set

Is there an example ophyd class in the wild?  I think there could be a lot of interest for having this option.  For instance the quadem has for channels to monitor the four individual blades of an exit slit.

I think in that case it would be better to monitor all signals individual (by adding them to sd.monitors for example). Monitoring a device would still in one event stream, and I think in this case you would want four streams with individual update rates. Is that right?

The weird mis-match here is that at the hardware level the values of the quadem / scaler are in lockstep, but epics (v3) does not provide a way to express that (other than a blind waveform) so at the ophyd layer we have lost that connection and instead we get independent signals.
I think the tricky part of writing a subscription for this is deciding when to fire it (need to wait for all N signals to update before firing, but if one of them gets lost and never arrives and then values start to update for the next measurement do you just drop the previous measurement on the floor or fire it with nan in the missing values?).


"scan" definition is not correct on 5.0.1

"rxjs": "5.0.1"
If my scan has a seed, "A" is used yet "B" is expected.
// node_modules/rxjs/operator/scan.d.ts
import { Observable } from '../Observable';
export declare function scan<T>(this: Observable<T>, accumulator: (acc: T, value: T, index: number) => T, seed?: T): Observable<T>; // A
export declare function scan<T>(this: Observable<T>, accumulator: (acc: T[], value: T, index: number) => T[], seed?: T[]): Observable<T[]>;
export declare function scan<T, R>(this: Observable<T>, accumulator: (acc: R, value: T, index: number) => R, seed?: R): Observable<R>; // B

My solution is comment out "A" but this is not ideal.
import { Observable } from '../Observable';
// export declare function scan<T>(this: Observable<T>, accumulator: (acc: T, value: T, index: number) => T, seed?: T): Observable<T>; // A
export declare function scan<T>(this: Observable<T>, accumulator: (acc: T[], value: T, index: number) => T[], seed?: T[]): Observable<T[]>;
export declare function scan<T, R>(this: Observable<T>, accumulator: (acc: R, value: T, index: number) => R, seed?: R): Observable<R>; // B

I think this is a good idea.
import { Observable } from '../Observable';
export declare function scan<T>(this: Observable<T>, accumulator: (acc: T, value: T, index: number) => T): Observable<T>;
export declare function scan<T, R>(this: Observable<T>, accumulator: (acc: R, value: T, index: number) => R, seed: R): Observable<R>;

It's a bit hard to think given suggestion is expected signature of operator behavior, as in case of T->T, it is still available to supply seed as needed. Provided signature in https://github.com/ReactiveX/rxjs/issues/2192#issuecomment-266630569 prohibits to supply those use cases.
Before getting a conclusion, I'd like to ask code snippet you've tried to get some more detailed clarification. what type of value supplied in seed? is it <T> and type definition still infers to have <R>? I just tried on my end,
class TypeA {
  a: boolean;
}

class TypeB {
  b: string;
}

//infers to  '(acc: TypeA, value: TypeA, index: number) => TypeA',
//which (acc: T, value: T, index: number) =>T
Rx.Observable.of(new TypeA()).scan((acc, value) => { }, new TypeA());

//infers to  '(acc: TypeB, value: TypeA, index: number) => TypeB'
//which (acc:R, value:T, index: number) =>R
Rx.Observable.of(new TypeA()).scan((acc, value) => { }, new TypeB());

looks type inference works as expected.

In my case.
import { Subject } from 'rxjs/Rx';

class Increment {
  constructor() { }
}

class Decrement {
  constructor() { }
}

type Action = Increment | Decrement;

const dispatcher = new Subject<Action>();

const num: number = 0;

dispatcher.scan((state, action) => {
  if (action instanceof Increment) {
    return state + 1; // <--- state is recognized as Action, so this line becomes type error.
  } else {
    return state;
  }
}, num);

dispatcher.next(new Increment());

@ovrmrw that's because your signature of scan is actually scan<Action, number>, since original Observable is Observable<Action> by type of dispatcher, so supplied seed num is  number as <R> and state becomes Action as <T>.
I hope this clarifies your issue, closing it now as I believe there isn't issue related with type inference.

@ovrmrw that's because your signature of scan is actually scan<Action, number>, since original Observable is Observable<Action> by type of dispatcher, so supplied seed num is  number as <R> and state becomes Action as <T>.
I hope this clarifies your issue, closing it now as I believe there isn't issue related with type inference.

Actually thinking bit more, it explains why your signature falls back into given signature but have to think a bit more if this is legit ergonomics. (maybe I'm also confused) - reopening.

/cc @david-driscoll as well - I think I was totally off and this seems bit weird. if given type <R> is supplied as seed, shouldn't typeof acc need to be <R> as well? (which means, my original comment above is invalid and I've strikethrough it)

@kwonoj I found very confused solution. Is this a bug of TypeScript... ?
import { Subject } from 'rxjs';

class Increment {
  constructor() { }
  value; // <--- add a property in class.
}

class Decrement {
  constructor() { }
  value; // <--- add a property in class.
}

type Action = Increment | Decrement;

const dispatcher = new Subject<Action>();

const num: number = 0;

dispatcher.scan((state, action) => {
  if (action instanceof Increment) {
    return state + 1; // <--- then, state is recognized as "number". why ... ??
  } else {
    return state;
  }
}, num);

dispatcher.next(new Increment());

I'm not sure where this landed but it's quite old, guess new TS compiler improved ergonomics. Closing for now, will revisit if needed.

@kwonoj I am seeing this issue with ts 2.4 now. not sure if anyone found a workaround

me too, same issue in ts 2.4


Change the scope and assign to *.component.html by default

Hello, @princemaple :)
I've created LSP-angular package and want to use it with your syntax. These small changes will allow to differentiate Ngx syntax from default HTML one.
Best regards,
Ihor

A quick search didn't find your repository. Is it open / online on GitHub yet?

It's ready for publishing, just waiting for a repo in @sublimelsp.

Thanks :) Looking forward to that!


Hide the side Drawer

Hello How can I hide the side Drawer for example if we clicks that it will show the classifications, Regions and history. i want to disable that how can I do that. please respond to this if anybody know the answer.
Thanks

Hello @bhargav123m, I have the same problem with you, do you have any solution? can you share it?


Running MongoDB entrypoint as non-root user

Use case: As a sys admin, I need to run a MongoDB Docker container with a custom "approved" service account. This is company IT policy.
Today, the mongodb Docker container starts up the docker-entrypoint.sh as root and spins up mongod running as mongodb user, which is created at image build time.
Trying to use a custom --user user:group fails as the file system permissions are not good.
$ docker run --rm --name mongo --user 202:202 mongo:3.6.9-stretch
2018-11-19T08:27:39.395+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=f267c856d149
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] db version v3.6.9
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.0f  25 May 2017
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] modules: none
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] build environment:
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten]     distmod: debian92
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten]     distarch: x86_64
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2018-11-19T08:27:39.396+0000 I CONTROL  [initandlisten] options: { net: { bindIpAll: true } }
2018-11-19T08:27:39.397+0000 I STORAGE  [initandlisten] exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db, terminating
2018-11-19T08:27:39.397+0000 I CONTROL  [initandlisten] now exiting
2018-11-19T08:27:39.397+0000 I CONTROL  [initandlisten] shutting down with code:100

Can you provide instructions or a Dockefile with support for such a requirement?

You just need to allow permissions for the user in the container, so you could mount the /data/db and give it appropriate permissions, however without a corresponding user in the /etc/passwd you will have a template name. Also for using a name over a UID with --user, mongo wants an entry in the /etc/passwd
$ mkdir db && sudo chown 777 db

$ docker run --rm -dit -v $PWD/db:/data/db -v /etc/passwd:/etc/passwd:ro --user 1000:1001 --name mongo mongo
6c4a4e74b314a2a01893bc0b7405106db3100db37e9ad466772f56f2f88ec2b2

$ echo $UID
1000

$ docker exec -it mongo bash
groups: cannot find name for group ID 1001
rei@6c4a4e74b314:/$ echo $UID
1000

@wglambert is correct; we have had arbitrary user support since #81, but then the operator running the container is in charge of providing a data directory that the chosen user can access.  The percona, postgres, mariadb, and mysql images have the same issue.

Thanks @wglambert. You are right. I had to set the volume on the host to be writable by the user:group I was using and it worked!
$ mkdir db && sudo chmod 777 db

$ docker run --rm --name mongo -v $(pwd)/db:/data/db --user 202:202 mongo:3.6.9-stretch
2018-11-20T10:11:33.934+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=26c28438ec0f
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] db version v3.6.9
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.0f  25 May 2017
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] modules: none
2018-11-20T10:11:33.949+0000 I CONTROL  [initandlisten] build environment:
2018-11-20T10:11:33.950+0000 I CONTROL  [initandlisten]     distmod: debian92
2018-11-20T10:11:33.950+0000 I CONTROL  [initandlisten]     distarch: x86_64
2018-11-20T10:11:33.950+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2018-11-20T10:11:33.950+0000 I CONTROL  [initandlisten] options: { net: { bindIpAll: true } }
2018-11-20T10:11:33.960+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2018-11-20T10:11:42.091+0000 I STORAGE  [initandlisten] WiredTiger message [1542708702:91595][1:0x7f23665f0600], txn-recover: Set global recovery timestamp: 0
2018-11-20T10:11:42.117+0000 I CONTROL  [initandlisten]
2018-11-20T10:11:42.117+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-11-20T10:11:42.117+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2018-11-20T10:11:42.117+0000 I CONTROL  [initandlisten]
2018-11-20T10:11:42.128+0000 I STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: 4dcc25bf-9e9d-43ea-904a-1fdc2421f8ac
2018-11-20T10:11:42.145+0000 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 3.6
2018-11-20T10:11:42.158+0000 I STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: 112dfe5f-5c4e-4318-849d-537c7fbbddbe
2018-11-20T10:11:42.180+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2018-11-20T10:11:42.182+0000 I NETWORK  [initandlisten] waiting for connections on port 27017

Thanks for the help. Closing.


Calendar Events.List returns 404 error

KerbyShedden on 13 May 2012 at 4:16:
What steps will reproduce the problem?

I use this Go code in my application:

## t is an oauth.transport that has been authenticated with tokens
svc,_ := calendar.New(t.Client())
A,e := svc.Events.List(cal_id).MaxResults(10).SingleEvents(true).Do()

where cal_id is a string containing a Google calendar id of the form
<EMAIL_ADDRESS>
What is the expected output? What do you see instead?

I expect A.Items to contain some calendar events, instead I get a 404 error.

What version of the product are you using? On what operating system?

Appengine API and google-api-go-client downloaded from repositories within last
week.  Using calendar v3 interfaces.

Please provide any additional information below.

If I change one line in `func (c *EventsListCall) Do() (*Events, error)` in the
API source code things work.

I changed

urls = strings.Replace(urls, "{calendarId}", cleanPathString(c.calendarId), 1)

to

urls = strings.Replace(urls, "{calendarId}", c.calendarId, 1)

and it works.

It appears that cleanPathString removes the . characters from the calendar id
so instead of<EMAIL_ADDRESS>we get
####@groupcalendargooglecom, hence the 404.

bobert5064 on 11 Jul 2012 at 5:05:
I would like to second this error. I am experiencing the same problem.

The OP also seems to be correct about reason for the problem. Once I removed
the clearPathString function and cleaned the URL manually (for testing purposes
only of course) everything worked fine.

After looking into this further is seems like the cleanPathString function is
not needed and is basically an attempt to reimplement url.QueryEscape(s string).

For now I've replace the entire function with the following:

func cleanPathString(s string) string {

	return url.QueryEscape(s)

}

Maybe I am missing something, but this is working for me for now.

<EMAIL_ADDRESS>on 29 Mar 2015 at 3:39:
This was fixed with the replacement of cleanPathString by googleapi.Expand().
Marking as obsolete and closing.

Status changed to Done.


Disable flakey meshcfg tests until they can be rectified.

@geeknoid: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

e2e-bookInfoTests-trustdomain-master
7483d7c9322e6cb18eb1a3c007bba4167f046ba2
link
/test e2e-bookInfoTests-trustdomain-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@geeknoid: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

e2e-bookInfoTests-trustdomain-master
7483d7c9322e6cb18eb1a3c007bba4167f046ba2
link
/test e2e-bookInfoTests-trustdomain-master

istio-pilot-e2e-envoyv2-v1alpha3-master
7483d7c9322e6cb18eb1a3c007bba4167f046ba2
link
/test istio-pilot-e2e-envoyv2-v1alpha3-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Add global stats

Total events parsed
Total of each event type (duplicate for all the stats types but there are many events that aren't being turned into stats)
Total items created
Total unique unusuals held in inventory (maybe too much work)
Total unique item names (#15 dependent)

Partially done in 0.7.5


Fix buildCompositeUnique [and add tests]

🤦🏼
Welcome to Node.js v16.16.0.
Type ".help" for more information.
> const a = ["banana", "apple", "pear"]
undefined
> const b = { fields: ["banana", "apple", "pear"] }
undefined
> typeof a
'object'
> typeof b
'object'
> Array.isArray(a)
true
> Array.isArray(b)
false

Since this has now bitten me, I have added support for jest unit tests and added 3 tests to make sure this doesn't happen again.
yarn jest
yarn run v1.22.17
warning ../../../package.json: No license field
$ /Users/lee/Code/nous/schemix/node_modules/.bin/jest
 PASS  lib/util/options.test.ts
  buildCompositeUnique
    with fields array
      ✓ should return correct composite unique value (1 ms)
    with options object
      without map
        ✓ should return correct composite unique value
      with map
        ✓ should return correct composite unique value

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        0.373 s, estimated 1 s
Ran all test suites.
✨  Done in 1.03s.

I would suggest adding a GHA CI workflow to run this for PRs.
I would also suggest updating the package.json to reflect the new ability to run jest unit tests:
diff --git a/package.json b/package.json
index 9bb4364..959b963 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,9 @@
     "lib": "lib"
   },
   "scripts": {
-    "test": "yarn build && cd example && yarn && yarn start",
+    "test": "yarn test:unit && yarn test:integration",
+    "test:unit": "yarn jest",
+    "test:integration": "yarn build && cd example && yarn && yarn start",
     "build": "tsc --declaration && tsc-alias"
   },
   "keywords": [

Lastly, I updated the .eslintrc to only lint *.ts files (since there is now a commonJS babel.config.cjs file due to jest) and also fixed the type roots in tsconfig.json (i.e. adding jest to types and also fixing the typeRoots to point to top level node_modules - FYI I believe typeRoots actually overrides types)

Nice, would like to eventually switch to vitest though. Just a little smoother and nice DevEx.

Nice, would like to eventually switch to vitest though. Just a little smoother and nice DevEx.

I've wanted to checkout vite for a while. Just went with jest + babel as it is my current stack

No worries, thankfully vitest can be used without buying into the entire eco-system. No rush though, for now any tests are better than no tests. c:


Best practice for hierarchial design

I have migrated a design for a coffeetable from plain freecad python script into a cadquery/cqparts script.
I wonder what the best practice is to pass values between parts in an assembly.
Some of the dimensions for the parts depend on each other. The coffee table assembly needs only length, width and height but calculates some other variables that are used for other parts of the table.
When I did the design I studied your ball bearing script in parallell. You collect variables for the ball bearing assy like so:
outer_diam = PositiveFloat(30, doc="outer diameter")
and then you pass them to the components, like so:
    def make_components(self):
        return {
            'outer_ring': _Ring(
                outer_radius=self.outer_diam / 2,
                inner_radius=(self.outer_diam / 2) - self.outer_width,
                width=self.width,
                ball_radius=(self.ball_diam / 2) + self.tolerance,
                rolling_radius=self.rolling_radius,
),

and then the subcomponents need to collect the variables again in the same way as the assembly did.
outer_radius = PositiveFloat(10, doc="outside radius")
Doesnt this feel like duplicated effort?
Wouldnt it be possible for a subcomponent to get the variables directly from the parent?
My suggestion is to use for example super.outer_diam in the subcomponent, is there something inherently bad with this approach?

@gntech

Doesnt this feel like duplicated effort?

It definitely does. sometimes every parameter is copied over without being modified... that gets tedious.
Nested Dict Idea
I've been considering creating a means to pass a nested dict of parameters to build an assembly.
The plan has some holes in it, but it's more a plan for serialising an assembly's nested parameters.
Parent Parameters

My suggestion is to use for example super.outer_diam in the subcomponent

That's a good idea, but I'm reluctant to have it as a permanent fixture for the Component class. I'd rather encourage each Component to be independent of it's parent where possible.
However, I can introduce a parameter type that's a Component instance, called ComponentRef:
import cadquery
from cqparts import Part, Assembly

class _Leg(Part):
    parent = ComponentRef(doc="table-top assembly")
    def make(self):
        return cadquery.Workplane('XY').box(
            self.parent.length / 10.,
            self.parent.width / 10,.
            self.parent.height - self.parent.thickness,
        )

class Table(Assembly):
    length = PositiveFloat(1000, doc="table length (mm)")
    width = PositiveFloat(500, doc="table width (mm)")
    height = PositiveFloat(800, doc="table's height (mm)")
    thickness = PositiveFloat(20, doc="tabletop thickness")
    def make_components(self):
        return {
            'front_left': _Leg(parent=self),
            # and so on
        }
    def make_constraints(self):
        # blah blah my point's been made

I think ComponentRef is a quite nice solution

Thank you for the discussion @gntech, it's exciting to see cqparts get more usable.

cqparts is brilliant! When I get some time I will share the coffetable design file. I think it could serve as an advanced example for cadquery/cqparts usage.

@gntech yes please!
I'd love to see how more people design their models, it would greatly help evolve cqparts.
This addition of ComponentRef is a perfect example of that.

@fragmuffin
I have now uploaded the design files for the coffee table I mentioned to here
https://github.com/gnhdesign/ct1
I have also written a blog post about it on my website
https://www.gntech.se/en/projects/ct1/

@gntech that is so cool!


WASM Support

Hi! This might be a bit of a weird one, but it would be great to have WASM support for this crate :smile:
... which I have gotten to work, but now I am not sure how to contribute back to you guys :) there are two major changes that I had to implement:

using rand's PRNG (the OS RNG doesn't work yet...) for here
remove/make timing optional here :+1:

Now I'd be happy to integrate this somehow, but I am not sure how to do this without rewriting half the seq module or removing things like the timing and replacing thread_rng (where I don't know the difference in quality to XorShiftRng). Alternatively it could live as its own compilation unit for the wasm target, but that would duplicate code which is also not great :sweat_smile:
What are your ideas? I am happy to help :+1:

Cool! Thanks for implementing WASM support.
I see you have forked the repository. If you would push your code to your local repository I could have a look and get a better idea.
In the mean time, we might get this to work with conditional compilation without having to change too much, i.e. use #[cfg(...)]. Do you think that would be possible?

Hi @m-decoster - I'll push the code as soon as I can :+1:
I think the #[cfg()] path would definitely work, we'll need to figure out where it should go though :smile:


Update issue templates

Added new template

I was checking the checklist for community ready, that is one of the requirements so it can hit 100%


Not correct example on site

Subj,
http://redux-form.com/6.0.0-alpha.4/examples/submitValidation/
in SubmitValidationForm.js you are missing
import submit from 'submit';

and it to
<form onSubmit={handleSubmit}>

This is a very old doc page for an unstable version of Redux Form.
If you think something is unclear in newer docs (eg v6.3.0 onwards), please let us know by opening a new issue (or even better, open a PR directly!).


Add entry point for 2-Way Nesting pkgs

What changes does this PR introduce?
While nest-2way packages are still in development phase, the standard pkg calls
and switch on/off flags are ready to be merged; this would avoid the need to frequently update
this set of (modified) files every time the main code reference version changes.
Does this PR introduce a breaking change?
no change
Suggested addition to tag-index
o eesupp & model:

add entry point for 2-way nesting pkgs.

LGTM!


Toggle margin on tray display

Right now I'm forced to set padding-right = 0 on my bar to keep the spacing the same but as soon as the tray icon is gone for whatever reason there is this inconsistency in spacing:

I don't know if there is a workaround right now but I'd like to request an option to toggle a specific behavior when there is nothing in the tray area

What do you mean by inconsistency? Are those two bars created from the exact same config? Why can't you set padding-right to anything else than 0?

I think I might have used the wrong word but if I hide a margin there is an additional space between the modules and the tray area. I would rather have the same space that modules use.No matter what padding or margin I use with the tray anyway since it is not going to shrink more so I have to use margin 0 on the right modules

What exactly is the problem with setting padding-right to something greater than 0? Is the additional space really that noticeable?

Can't the tray also have tray-margin like module-margin? Because without tray-margin, it butts up against a module when it shouldn't.

Bump. I may have OCD and that is the reason, but that extra space is very noticeable. I tried floats but that did not work. I wish there was tray-margin-left and tray-margin-right as well.

In the next release, the tray will be a module as well (see #2689) and things like format-margin to add space before and/or after the tray will work (I think that's what you want @gavsiu).
I think though the underlying issue is that tray-padding is also applied around the entire tray and there is no way to only control spacing between the individual icons. I think we'll overhaul some of the formatting in the tray module to fix this.

@odiferousmint By the way, you can specify a pixel value for label-margin-right (at least starting with polybar 3.6). For example label-margin-right = 20px. Of course this doesn't protect you from the number of tray icons changing.

@odiferousmint By the way, you can specify a pixel value for label-margin-right (at least starting with polybar 3.6). For example label-margin-right = 20px. Of course this doesn't protect you from the number of tray icons changing.

Thank you, I did not know that!

In the next release, the tray will be a module as well (see #2689) and things like format-margin to add space before and/or after the tray will work (I think that's what you want @gavsiu).
I think though the underlying issue is that tray-padding is also applied around the entire tray and there is no way to only control spacing between the individual icons. I think we'll overhaul some of the formatting in the tray module to fix this.

That's great news. I read through https://github.com/polybar/polybar/issues/2689 and can't wait. Thanks.

The new tray module now has better handling for margin and padding


RHBRMS-349: New Item Menu: No Project selected, all items enabled after Perspective reset

See https://issues.jboss.org/browse/RHBRMS-349
The cause appears to be when a PerspectiveChange event is fired the WorkbenchMenuBarPresenter calls the Perspective's getMenus() method. These methods could set the MenuItems enabled/disabled state however when the menu is passed to the View the UI Elements' state is not synchronized with the MenuItem. This fix forces the MenuItem state to be reflected in the UI Elements.

Part of an ensemble:

uberfire/uberfire#483
#437

@ederign @cristianonicolai @paulovmr Mind taking a look?

thanks @manstis +1


Add iOS 11 Style Large Navigation Bars

Current Behavior
Does not provide large navigation bars as presented with ios11.
Expected Behavior
ios11 style large navigation bars (including search) bars should be available.

it very cool https://www.youtube.com/watch?v=oW7N6-_92Lg
@React Navigation, did you have plan to add iOS 11 style large and animation navigation header text?

This would be awesome to do! Can we tap into the native iOS headers instead of recreating them?

Just wanted to throw in some support for this!

looking forward!

is this being considered? +1

I think so, @spencercarli was on iOS11 implementation.

Though this issue was created earlier, I already posted a reply in #2749 and would like to point you there (thus closing this issue).


Not working

not a single thing even works from this project. fix it or just remove it.

This is an old unmaintained project, the versions might be outdated, but the code might still be helpful for someone out there. Please provide constructive input, or don't open issues. Thank you.

@keshav1002 it worked locally after downgrading node to node 16. but sls deploy is still failing throwing this error
Error:
Error: npm ls -prod -json -depth=1 failed with code 1
    at ChildProcess.<anonymous> (/Users/rijwan/code/tutorial/pdf-lambda-puppeteer/node_modules/serverless-webpack/lib/utils.js:91:16)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1093:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

any idea?

deployment was successful after downgrading to node 14. but still doesn't work. and nothing shows up in the console either


Non-static transfer capacity for machines / Optimisation / Increased version

Dynamic transfer capacity :
As cable transfer capacity depends on other cables connected to it, the energy.transfer_capacity score is mandatory.
But as long as a machine's transfer capacity depends only on itself, it shouldn't use this objective but instead energy.transfer_rate. To allow machines transfer rate upgrades able to perform.
So I made changes to fix that: https://github.com/ICY105/DatapackEnergy/commit/e9d9e9cd634be2ceeb049d33b6e921ede50b288a
Another thing, I recently discovered using * in scoreboard players reset * energy.update_queue is harmful because the execution time do not depends on the amount of score holders using the objective but the amount of score holders using any objective. Meaning that having 10000 scoreboard constants in another objective make this commands runs much slower.
I noticed that, it's pretty useless to reset machines that uses this objective so we can remove the line without any issue.
(https://github.com/ICY105/DatapackEnergy/commit/4848bc19c8b6a02488e91b4b17af336e56f194fb)

After some investigation, I think this is fine as is. While it's not technically correct, having a machine hooked up to multiple networks is uncommon and I don't think the extra overhead is worth it.