errors when running image

Here are the two errors I noted:
$ sudo docker run -i caioquirino/docker-cloudera-quickstart
...
chown: changing ownership of '/var/log/hadoop-mapreduce': Operation not permitted
...
 * Starting Hue for Hadoop  hue
   ...fail!

HI gliptak, thank you for collaborating! Can you attach the full terminal's log please?

Thank you for sharing your work!
Here is the log from today (I'm noting that the Hue error is gone ... Updated version maybe?):
$ docker run -i caioquirino/docker-cloudera-quickstart
Start HDFS
starting datanode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-datanode-fbd83c227a6d.out

Started Hadoop datanode (hadoop-hdfs-datanode):
starting namenode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-namenode-fbd83c227a6d.out
Started Hadoop namenode:
starting secondarynamenode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-secondarynamenode-fbd83c227a6d.out
Started Hadoop secondarynamenode:
Start Yarn
starting resourcemanager, logging to /var/log/hadoop-yarn/yarn-yarn-resourcemanager-fbd83c227a6d.out
Started Hadoop resourcemanager:
starting nodemanager, logging to /var/log/hadoop-yarn/yarn-yarn-nodemanager-fbd83c227a6d.out
Started Hadoop nodemanager:
chown: changing ownership of '/var/log/hadoop-mapreduce': Operation not permitted
starting historyserver, logging to /var/log/hadoop-mapreduce/mapred-mapred-historyserver-fbd83c227a6d.out
15/03/08 01:19:01 INFO hs.JobHistoryServer: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting JobHistoryServer
STARTUP_MSG:   host = fbd83c227a6d/<IP_ADDRESS>
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 2.5.0-cdh5.3.0
STARTUP_MSG:   classpath = /etc/hadoop/conf:/usr/lib/hadoop/lib/commons-lang-2.6.jar:/usr/lib/hadoop/lib/jersey-server-1.9.jar:/usr/lib/hadoop/lib/jetty-6.1.26.cloudera.4.jar:/usr/lib/hadoop/lib/zookeeper.jar:/usr/lib/hadoop/lib/curator-client-2.6.0.jar:/usr/lib/hadoop/lib/curator-framework-2.6.0.jar:/usr/lib/hadoop/lib/jsch-0.1.42.jar:/usr/lib/hadoop/lib/log4j-1.2.17.jar:/usr/lib/hadoop/lib/stax-api-1.0-2.jar:/usr/lib/hadoop/lib/commons-cli-1.2.jar:/usr/lib/hadoop/lib/jaxb-impl-2.2.3-1.jar:/usr/lib/hadoop/lib/jetty-util-6.1.26.cloudera.4.jar:/usr/lib/hadoop/lib/slf4j-api-1.7.5.jar:/usr/lib/hadoop/lib/slf4j-log4j12.jar:/usr/lib/hadoop/lib/commons-math3-3.1.1.jar:/usr/lib/hadoop/lib/hue-plugins-3.7.0-cdh5.3.0.jar:/usr/lib/hadoop/lib/snappy-java-<IP_ADDRESS>.jar:/usr/lib/hadoop/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/usr/lib/hadoop/lib/api-util-1.0.0-M20.jar:/usr/lib/hadoop/lib/jasper-compiler-5.5.23.jar:/usr/lib/hadoop/lib/jsp-api-2.1.jar:/usr/lib/hadoop/lib/activation-1.1.jar:/usr/lib/hadoop/lib/apacheds-i18n-2.0.0-M15.jar:/usr/lib/hadoop/lib/commons-configuration-1.6.jar:/usr/lib/hadoop/lib/commons-logging-1.1.3.jar:/usr/lib/hadoop/lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop/lib/commons-compress-1.4.1.jar:/usr/lib/hadoop/lib/commons-digester-1.8.jar:/usr/lib/hadoop/lib/hamcrest-core-1.3.jar:/usr/lib/hadoop/lib/jasper-runtime-5.5.23.jar:/usr/lib/hadoop/lib/jaxb-api-2.2.2.jar:/usr/lib/hadoop/lib/mockito-all-1.8.5.jar:/usr/lib/hadoop/lib/api-asn1-api-1.0.0-M20.jar:/usr/lib/hadoop/lib/aws-java-sdk-1.7.4.jar:/usr/lib/hadoop/lib/gson-2.2.4.jar:/usr/lib/hadoop/lib/httpclient-4.2.5.jar:/usr/lib/hadoop/lib/jackson-jaxrs-1.8.8.jar:/usr/lib/hadoop/lib/paranamer-2.3.jar:/usr/lib/hadoop/lib/servlet-api-2.5.jar:/usr/lib/hadoop/lib/xz-1.0.jar:/usr/lib/hadoop/lib/curator-recipes-2.6.0.jar:/usr/lib/hadoop/lib/jsr305-1.3.9.jar:/usr/lib/hadoop/lib/xmlenc-0.52.jar:/usr/lib/hadoop/lib/java-xmlbuilder-0.4.jar:/usr/lib/hadoop/lib/avro.jar:/usr/lib/hadoop/lib/jackson-xc-1.8.8.jar:/usr/lib/hadoop/lib/jettison-1.1.jar:/usr/lib/hadoop/lib/commons-beanutils-1.7.0.jar:/usr/lib/hadoop/lib/commons-codec-1.4.jar:/usr/lib/hadoop/lib/jets3t-0.9.0.jar:/usr/lib/hadoop/lib/protobuf-java-2.5.0.jar:/usr/lib/hadoop/lib/asm-3.2.jar:/usr/lib/hadoop/lib/commons-io-2.4.jar:/usr/lib/hadoop/lib/commons-net-3.1.jar:/usr/lib/hadoop/lib/httpcore-4.2.5.jar:/usr/lib/hadoop/lib/netty-3.6.2.Final.jar:/usr/lib/hadoop/lib/junit-4.11.jar:/usr/lib/hadoop/lib/commons-collections-3.2.1.jar:/usr/lib/hadoop/lib/commons-httpclient-3.1.jar:/usr/lib/hadoop/lib/guava-11.0.2.jar:/usr/lib/hadoop/lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop/lib/jersey-json-1.9.jar:/usr/lib/hadoop/lib/commons-beanutils-core-1.8.0.jar:/usr/lib/hadoop/lib/commons-el-1.0.jar:/usr/lib/hadoop/lib/jersey-core-1.9.jar:/usr/lib/hadoop/.//hadoop-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop/.//hadoop-nfs-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop/.//hadoop-nfs.jar:/usr/lib/hadoop/.//parquet-scrooge_2.10.jar:/usr/lib/hadoop/.//hadoop-annotations.jar:/usr/lib/hadoop/.//hadoop-common-2.5.0-cdh5.3.0-tests.jar:/usr/lib/hadoop/.//parquet-tools.jar:/usr/lib/hadoop/.//hadoop-annotations-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop/.//parquet-format-sources.jar:/usr/lib/hadoop/.//parquet-pig.jar:/usr/lib/hadoop/.//parquet-avro.jar:/usr/lib/hadoop/.//parquet-cascading.jar:/usr/lib/hadoop/.//parquet-encoding.jar:/usr/lib/hadoop/.//parquet-format-javadoc.jar:/usr/lib/hadoop/.//hadoop-auth-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop/.//hadoop-auth.jar:/usr/lib/hadoop/.//hadoop-aws.jar:/usr/lib/hadoop/.//parquet-generator.jar:/usr/lib/hadoop/.//parquet-scala_2.10.jar:/usr/lib/hadoop/.//hadoop-aws-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop/.//parquet-hadoop-bundle.jar:/usr/lib/hadoop/.//parquet-pig-bundle.jar:/usr/lib/hadoop/.//parquet-protobuf.jar:/usr/lib/hadoop/.//hadoop-common.jar:/usr/lib/hadoop/.//parquet-hadoop.jar:/usr/lib/hadoop/.//parquet-jackson.jar:/usr/lib/hadoop/.//parquet-test-hadoop2.jar:/usr/lib/hadoop/.//parquet-thrift.jar:/usr/lib/hadoop/.//parquet-column.jar:/usr/lib/hadoop/.//parquet-format.jar:/usr/lib/hadoop/.//parquet-common.jar:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/jasper-runtime-5.5.23.jar:/usr/lib/hadoop-hdfs/lib/jsr305-1.3.9.jar:/usr/lib/hadoop-hdfs/lib/commons-codec-1.4.jar:/usr/lib/hadoop-hdfs/lib/commons-el-1.0.jar:/usr/lib/hadoop-hdfs/lib/commons-lang-2.6.jar:/usr/lib/hadoop-hdfs/lib/jetty-6.1.26.cloudera.4.jar:/usr/lib/hadoop-hdfs/lib/jetty-util-6.1.26.cloudera.4.jar:/usr/lib/hadoop-hdfs/lib/asm-3.2.jar:/usr/lib/hadoop-hdfs/lib/commons-cli-1.2.jar:/usr/lib/hadoop-hdfs/lib/commons-daemon-1.0.13.jar:/usr/lib/hadoop-hdfs/lib/commons-io-2.4.jar:/usr/lib/hadoop-hdfs/lib/guava-11.0.2.jar:/usr/lib/hadoop-hdfs/lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-hdfs/lib/log4j-1.2.17.jar:/usr/lib/hadoop-hdfs/lib/protobuf-java-2.5.0.jar:/usr/lib/hadoop-hdfs/lib/servlet-api-2.5.jar:/usr/lib/hadoop-hdfs/lib/commons-logging-1.1.3.jar:/usr/lib/hadoop-hdfs/lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-hdfs/lib/jersey-core-1.9.jar:/usr/lib/hadoop-hdfs/lib/jersey-server-1.9.jar:/usr/lib/hadoop-hdfs/lib/jsp-api-2.1.jar:/usr/lib/hadoop-hdfs/lib/netty-3.6.2.Final.jar:/usr/lib/hadoop-hdfs/lib/xmlenc-0.52.jar:/usr/lib/hadoop-hdfs/.//hadoop-hdfs-2.5.0-cdh5.3.0-tests.jar:/usr/lib/hadoop-hdfs/.//hadoop-hdfs-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-hdfs/.//hadoop-hdfs-nfs.jar:/usr/lib/hadoop-hdfs/.//hadoop-hdfs.jar:/usr/lib/hadoop-hdfs/.//hadoop-hdfs-nfs-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/lib/asm-3.2.jar:/usr/lib/hadoop-yarn/lib/commons-codec-1.4.jar:/usr/lib/hadoop-yarn/lib/commons-logging-1.1.3.jar:/usr/lib/hadoop-yarn/lib/jetty-util-6.1.26.cloudera.4.jar:/usr/lib/hadoop-yarn/lib/leveldbjni-all-1.8.jar:/usr/lib/hadoop-yarn/lib/jetty-6.1.26.cloudera.4.jar:/usr/lib/hadoop-yarn/lib/stax-api-1.0-2.jar:/usr/lib/hadoop-yarn/lib/commons-httpclient-3.1.jar:/usr/lib/hadoop-yarn/lib/guava-11.0.2.jar:/usr/lib/hadoop-yarn/lib/guice-servlet-3.0.jar:/usr/lib/hadoop-yarn/lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-yarn/lib/jaxb-api-2.2.2.jar:/usr/lib/hadoop-yarn/lib/jettison-1.1.jar:/usr/lib/hadoop-yarn/lib/xz-1.0.jar:/usr/lib/hadoop-yarn/lib/jersey-json-1.9.jar:/usr/lib/hadoop-yarn/lib/protobuf-java-2.5.0.jar:/usr/lib/hadoop-yarn/lib/commons-compress-1.4.1.jar:/usr/lib/hadoop-yarn/lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-yarn/lib/jackson-xc-1.8.8.jar:/usr/lib/hadoop-yarn/lib/javax.inject-1.jar:/usr/lib/hadoop-yarn/lib/jersey-client-1.9.jar:/usr/lib/hadoop-yarn/lib/jersey-guice-1.9.jar:/usr/lib/hadoop-yarn/lib/jersey-core-1.9.jar:/usr/lib/hadoop-yarn/lib/servlet-api-2.5.jar:/usr/lib/hadoop-yarn/lib/zookeeper.jar:/usr/lib/hadoop-yarn/lib/activation-1.1.jar:/usr/lib/hadoop-yarn/lib/jaxb-impl-2.2.3-1.jar:/usr/lib/hadoop-yarn/lib/jsr305-1.3.9.jar:/usr/lib/hadoop-yarn/lib/log4j-1.2.17.jar:/usr/lib/hadoop-yarn/lib/aopalliance-1.0.jar:/usr/lib/hadoop-yarn/lib/commons-cli-1.2.jar:/usr/lib/hadoop-yarn/lib/commons-collections-3.2.1.jar:/usr/lib/hadoop-yarn/lib/commons-io-2.4.jar:/usr/lib/hadoop-yarn/lib/commons-lang-2.6.jar:/usr/lib/hadoop-yarn/lib/jersey-server-1.9.jar:/usr/lib/hadoop-yarn/lib/jackson-jaxrs-1.8.8.jar:/usr/lib/hadoop-yarn/lib/jline-0.9.94.jar:/usr/lib/hadoop-yarn/lib/guice-3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-web-proxy-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-resourcemanager-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-distributedshell.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-tests-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-api.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-distributedshell-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-unmanaged-am-launcher.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-resourcemanager.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-web-proxy.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-api-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-client-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-client.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-common.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-applicationhistoryservice-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-common.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-nodemanager-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-nodemanager.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-tests.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-unmanaged-am-launcher-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-applicationhistoryservice.jar:/usr/lib/hadoop-mapreduce/lib/aopalliance-1.0.jar:/usr/lib/hadoop-mapreduce/lib/commons-compress-1.4.1.jar:/usr/lib/hadoop-mapreduce/lib/snappy-java-<IP_ADDRESS>.jar:/usr/lib/hadoop-mapreduce/lib/asm-3.2.jar:/usr/lib/hadoop-mapreduce/lib/avro.jar:/usr/lib/hadoop-mapreduce/lib/commons-io-2.4.jar:/usr/lib/hadoop-mapreduce/lib/hamcrest-core-1.3.jar:/usr/lib/hadoop-mapreduce/lib/javax.inject-1.jar:/usr/lib/hadoop-mapreduce/lib/leveldbjni-all-1.8.jar:/usr/lib/hadoop-mapreduce/lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/lib/log4j-1.2.17.jar:/usr/lib/hadoop-mapreduce/lib/netty-3.6.2.Final.jar:/usr/lib/hadoop-mapreduce/lib/protobuf-java-2.5.0.jar:/usr/lib/hadoop-mapreduce/lib/xz-1.0.jar:/usr/lib/hadoop-mapreduce/lib/junit-4.11.jar:/usr/lib/hadoop-mapreduce/lib/paranamer-2.3.jar:/usr/lib/hadoop-mapreduce/lib/guice-3.0.jar:/usr/lib/hadoop-mapreduce/lib/guice-servlet-3.0.jar:/usr/lib/hadoop-mapreduce/lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/lib/jersey-core-1.9.jar:/usr/lib/hadoop-mapreduce/lib/jersey-guice-1.9.jar:/usr/lib/hadoop-mapreduce/lib/jersey-server-1.9.jar:/usr/lib/hadoop-mapreduce/.//jackson-core-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//commons-el-1.0.jar:/usr/lib/hadoop-mapreduce/.//java-xmlbuilder-0.4.jar:/usr/lib/hadoop-mapreduce/.//xz-1.0.jar:/usr/lib/hadoop-mapreduce/.//jaxb-api-2.2.2.jar:/usr/lib/hadoop-mapreduce/.//hadoop-auth.jar:/usr/lib/hadoop-mapreduce/.//hadoop-azure-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-extras-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//jersey-server-1.9.jar:/usr/lib/hadoop-mapreduce/.//jsp-api-2.1.jar:/usr/lib/hadoop-mapreduce/.//api-util-1.0.0-M20.jar:/usr/lib/hadoop-mapreduce/.//jsr305-1.3.9.jar:/usr/lib/hadoop-mapreduce/.//avro.jar:/usr/lib/hadoop-mapreduce/.//commons-math3-3.1.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-gridmix-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//commons-beanutils-1.7.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-common.jar:/usr/lib/hadoop-mapreduce/.//httpcore-4.2.5.jar:/usr/lib/hadoop-mapreduce/.//commons-cli-1.2.jar:/usr/lib/hadoop-mapreduce/.//guava-11.0.2.jar:/usr/lib/hadoop-mapreduce/.//hadoop-archives-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-app-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//jettison-1.1.jar:/usr/lib/hadoop-mapreduce/.//junit-4.11.jar:/usr/lib/hadoop-mapreduce/.//asm-3.2.jar:/usr/lib/hadoop-mapreduce/.//hadoop-archives.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-core-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-streaming-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//zookeeper.jar:/usr/lib/hadoop-mapreduce/.//hadoop-distcp.jar:/usr/lib/hadoop-mapreduce/.//commons-configuration-1.6.jar:/usr/lib/hadoop-mapreduce/.//jaxb-impl-2.2.3-1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs.jar:/usr/lib/hadoop-mapreduce/.//jasper-runtime-5.5.23.jar:/usr/lib/hadoop-mapreduce/.//jersey-core-1.9.jar:/usr/lib/hadoop-mapreduce/.//jets3t-0.9.0.jar:/usr/lib/hadoop-mapreduce/.//microsoft-windowsazure-storage-sdk-0.6.0.jar:/usr/lib/hadoop-mapreduce/.//api-asn1-api-1.0.0-M20.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-extras.jar:/usr/lib/hadoop-mapreduce/.//joda-time-1.6.jar:/usr/lib/hadoop-mapreduce/.//log4j-1.2.17.jar:/usr/lib/hadoop-mapreduce/.//commons-digester-1.8.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-core.jar:/usr/lib/hadoop-mapreduce/.//jackson-xc-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//metrics-core-3.0.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-auth-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//commons-logging-1.1.3.jar:/usr/lib/hadoop-mapreduce/.//hadoop-streaming.jar:/usr/lib/hadoop-mapreduce/.//hadoop-gridmix.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-plugins-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-plugins.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-examples-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//jersey-json-1.9.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-nativetask-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//commons-beanutils-core-1.8.0.jar:/usr/lib/hadoop-mapreduce/.//commons-io-2.4.jar:/usr/lib/hadoop-mapreduce/.//commons-lang-2.6.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-app.jar:/usr/lib/hadoop-mapreduce/.//jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//xmlenc-0.52.jar:/usr/lib/hadoop-mapreduce/.//commons-net-3.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient.jar:/usr/lib/hadoop-mapreduce/.//hadoop-rumen-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//stax-api-1.0-2.jar:/usr/lib/hadoop-mapreduce/.//commons-compress-1.4.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-tests.jar:/usr/lib/hadoop-mapreduce/.//jackson-annotations-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//protobuf-java-2.5.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-azure.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-nativetask.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-shuffle-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-rumen.jar:/usr/lib/hadoop-mapreduce/.//servlet-api-2.5.jar:/usr/lib/hadoop-mapreduce/.//curator-recipes-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//jasper-compiler-5.5.23.jar:/usr/lib/hadoop-mapreduce/.//apacheds-i18n-2.0.0-M15.jar:/usr/lib/hadoop-mapreduce/.//apacheds-kerberos-codec-2.0.0-M15.jar:/usr/lib/hadoop-mapreduce/.//httpclient-4.2.5.jar:/usr/lib/hadoop-mapreduce/.//jetty-6.1.26.cloudera.4.jar:/usr/lib/hadoop-mapreduce/.//paranamer-2.3.jar:/usr/lib/hadoop-mapreduce/.//hadoop-datajoin-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-sls-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//curator-client-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//gson-2.2.4.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-examples.jar:/usr/lib/hadoop-mapreduce/.//jackson-databind-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//jackson-jaxrs-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//commons-codec-1.4.jar:/usr/lib/hadoop-mapreduce/.//commons-httpclient-3.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-datajoin.jar:/usr/lib/hadoop-mapreduce/.//hadoop-sls.jar:/usr/lib/hadoop-mapreduce/.//activation-1.1.jar:/usr/lib/hadoop-mapreduce/.//hadoop-distcp-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hamcrest-core-1.3.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-2.5.0-cdh5.3.0-tests.jar:/usr/lib/hadoop-mapreduce/.//jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//commons-collections-3.2.1.jar:/usr/lib/hadoop-mapreduce/.//snappy-java-<IP_ADDRESS>.jar:/usr/lib/hadoop-mapreduce/.//curator-framework-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-shuffle.jar:/usr/lib/hadoop-mapreduce/.//jetty-util-6.1.26.cloudera.4.jar:/usr/lib/hadoop-mapreduce/.//jsch-0.1.42.jar:/usr/lib/hadoop-mapreduce/.//activation-1.1.jar:/usr/lib/hadoop-mapreduce/.//apacheds-i18n-2.0.0-M15.jar:/usr/lib/hadoop-mapreduce/.//apacheds-kerberos-codec-2.0.0-M15.jar:/usr/lib/hadoop-mapreduce/.//api-asn1-api-1.0.0-M20.jar:/usr/lib/hadoop-mapreduce/.//api-util-1.0.0-M20.jar:/usr/lib/hadoop-mapreduce/.//asm-3.2.jar:/usr/lib/hadoop-mapreduce/.//avro.jar:/usr/lib/hadoop-mapreduce/.//commons-beanutils-1.7.0.jar:/usr/lib/hadoop-mapreduce/.//commons-beanutils-core-1.8.0.jar:/usr/lib/hadoop-mapreduce/.//commons-cli-1.2.jar:/usr/lib/hadoop-mapreduce/.//commons-codec-1.4.jar:/usr/lib/hadoop-mapreduce/.//commons-collections-3.2.1.jar:/usr/lib/hadoop-mapreduce/.//commons-compress-1.4.1.jar:/usr/lib/hadoop-mapreduce/.//commons-configuration-1.6.jar:/usr/lib/hadoop-mapreduce/.//commons-digester-1.8.jar:/usr/lib/hadoop-mapreduce/.//commons-el-1.0.jar:/usr/lib/hadoop-mapreduce/.//commons-httpclient-3.1.jar:/usr/lib/hadoop-mapreduce/.//commons-io-2.4.jar:/usr/lib/hadoop-mapreduce/.//commons-lang-2.6.jar:/usr/lib/hadoop-mapreduce/.//commons-logging-1.1.3.jar:/usr/lib/hadoop-mapreduce/.//commons-math3-3.1.1.jar:/usr/lib/hadoop-mapreduce/.//commons-net-3.1.jar:/usr/lib/hadoop-mapreduce/.//curator-client-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//curator-framework-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//curator-recipes-2.6.0.jar:/usr/lib/hadoop-mapreduce/.//gson-2.2.4.jar:/usr/lib/hadoop-mapreduce/.//guava-11.0.2.jar:/usr/lib/hadoop-mapreduce/.//hadoop-archives-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-archives.jar:/usr/lib/hadoop-mapreduce/.//hadoop-auth-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-auth.jar:/usr/lib/hadoop-mapreduce/.//hadoop-azure-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-azure.jar:/usr/lib/hadoop-mapreduce/.//hadoop-datajoin-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-datajoin.jar:/usr/lib/hadoop-mapreduce/.//hadoop-distcp-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-distcp.jar:/usr/lib/hadoop-mapreduce/.//hadoop-extras-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-extras.jar:/usr/lib/hadoop-mapreduce/.//hadoop-gridmix-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-gridmix.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-app-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-app.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-common.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-core-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-core.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-plugins-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs-plugins.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-hs.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-2.5.0-cdh5.3.0-tests.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient-tests.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-jobclient.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-nativetask-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-nativetask.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-shuffle-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-client-shuffle.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-examples-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-mapreduce-examples.jar:/usr/lib/hadoop-mapreduce/.//hadoop-rumen-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-rumen.jar:/usr/lib/hadoop-mapreduce/.//hadoop-sls-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-sls.jar:/usr/lib/hadoop-mapreduce/.//hadoop-streaming-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-mapreduce/.//hadoop-streaming.jar:/usr/lib/hadoop-mapreduce/.//hamcrest-core-1.3.jar:/usr/lib/hadoop-mapreduce/.//httpclient-4.2.5.jar:/usr/lib/hadoop-mapreduce/.//httpcore-4.2.5.jar:/usr/lib/hadoop-mapreduce/.//jackson-annotations-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//jackson-core-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//jackson-databind-2.2.3.jar:/usr/lib/hadoop-mapreduce/.//jackson-jaxrs-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//jackson-xc-1.8.8.jar:/usr/lib/hadoop-mapreduce/.//jasper-compiler-5.5.23.jar:/usr/lib/hadoop-mapreduce/.//jasper-runtime-5.5.23.jar:/usr/lib/hadoop-mapreduce/.//java-xmlbuilder-0.4.jar:/usr/lib/hadoop-mapreduce/.//jaxb-api-2.2.2.jar:/usr/lib/hadoop-mapreduce/.//jaxb-impl-2.2.3-1.jar:/usr/lib/hadoop-mapreduce/.//jersey-core-1.9.jar:/usr/lib/hadoop-mapreduce/.//jersey-json-1.9.jar:/usr/lib/hadoop-mapreduce/.//jersey-server-1.9.jar:/usr/lib/hadoop-mapreduce/.//jets3t-0.9.0.jar:/usr/lib/hadoop-mapreduce/.//jettison-1.1.jar:/usr/lib/hadoop-mapreduce/.//jetty-6.1.26.cloudera.4.jar:/usr/lib/hadoop-mapreduce/.//jetty-util-6.1.26.cloudera.4.jar:/usr/lib/hadoop-mapreduce/.//joda-time-1.6.jar:/usr/lib/hadoop-mapreduce/.//jsch-0.1.42.jar:/usr/lib/hadoop-mapreduce/.//jsp-api-2.1.jar:/usr/lib/hadoop-mapreduce/.//jsr305-1.3.9.jar:/usr/lib/hadoop-mapreduce/.//junit-4.11.jar:/usr/lib/hadoop-mapreduce/.//log4j-1.2.17.jar:/usr/lib/hadoop-mapreduce/.//metrics-core-3.0.1.jar:/usr/lib/hadoop-mapreduce/.//microsoft-windowsazure-storage-sdk-0.6.0.jar:/usr/lib/hadoop-mapreduce/.//paranamer-2.3.jar:/usr/lib/hadoop-mapreduce/.//protobuf-java-2.5.0.jar:/usr/lib/hadoop-mapreduce/.//servlet-api-2.5.jar:/usr/lib/hadoop-mapreduce/.//snappy-java-<IP_ADDRESS>.jar:/usr/lib/hadoop-mapreduce/.//stax-api-1.0-2.jar:/usr/lib/hadoop-mapreduce/.//xmlenc-0.52.jar:/usr/lib/hadoop-mapreduce/.//xz-1.0.jar:/usr/lib/hadoop-mapreduce/.//zookeeper.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-api-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-api.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-distributedshell-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-distributedshell.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-unmanaged-am-launcher-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-applications-unmanaged-am-launcher.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-client-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-client.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-common.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-applicationhistoryservice-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-applicationhistoryservice.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-common-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-common.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-nodemanager-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-nodemanager.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-resourcemanager-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-resourcemanager.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-tests-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-tests.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-web-proxy-2.5.0-cdh5.3.0.jar:/usr/lib/hadoop-yarn/.//hadoop-yarn-server-web-proxy.jar:/usr/lib/hadoop-mapreduce/lib/aopalliance-1.0.jar:/usr/lib/hadoop-mapreduce/lib/asm-3.2.jar:/usr/lib/hadoop-mapreduce/lib/avro.jar:/usr/lib/hadoop-mapreduce/lib/commons-compress-1.4.1.jar:/usr/lib/hadoop-mapreduce/lib/commons-io-2.4.jar:/usr/lib/hadoop-mapreduce/lib/guice-3.0.jar:/usr/lib/hadoop-mapreduce/lib/guice-servlet-3.0.jar:/usr/lib/hadoop-mapreduce/lib/hamcrest-core-1.3.jar:/usr/lib/hadoop-mapreduce/lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop-mapreduce/lib/javax.inject-1.jar:/usr/lib/hadoop-mapreduce/lib/jersey-core-1.9.jar:/usr/lib/hadoop-mapreduce/lib/jersey-guice-1.9.jar:/usr/lib/hadoop-mapreduce/lib/jersey-server-1.9.jar:/usr/lib/hadoop-mapreduce/lib/junit-4.11.jar:/usr/lib/hadoop-mapreduce/lib/leveldbjni-all-1.8.jar:/usr/lib/hadoop-mapreduce/lib/log4j-1.2.17.jar:/usr/lib/hadoop-mapreduce/lib/netty-3.6.2.Final.jar:/usr/lib/hadoop-mapreduce/lib/paranamer-2.3.jar:/usr/lib/hadoop-mapreduce/lib/protobuf-java-2.5.0.jar:/usr/lib/hadoop-mapreduce/lib/snappy-java-<IP_ADDRESS>.jar:/usr/lib/hadoop-mapreduce/lib/xz-1.0.jar:/usr/lib/hadoop-mapreduce/modules/*.jar
STARTUP_MSG:   build = http://github.com/cloudera/hadoop -r f19097cda2536da1df41ff6713556c8f7284174d ; compiled by 'jenkins' on 2014-12-17T03:03Z
STARTUP_MSG:   java = 1.7.0_65
************************************************************/
Started Hadoop historyserver:

Setting OOZIE_HOME:          /usr/lib/oozie
Sourcing:                    /usr/lib/oozie/bin/oozie-env.sh
setting JAVA_LIBRARY_PATH="$JAVA_LIBRARY_PATH:/usr/lib/hadoop/lib/native"
setting OOZIE_DATA=/var/lib/oozie
setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
setting CATALINA_TMPDIR=/var/lib/oozie
setting CATALINA_PID=/var/run/oozie/oozie.pid
setting CATALINA_BASE=/var/lib/oozie/tomcat-deployment
setting OOZIE_HTTPS_PORT=11443
setting OOZIE_HTTPS_KEYSTORE_PASS=password
setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.port=${OOZIE_HTTPS_PORT}"
setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.keystore.pass=${OOZIE_HTTPS_KEYSTORE_PASS}"
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
setting OOZIE_CONFIG=/etc/oozie/conf
setting OOZIE_LOG=/var/log/oozie
Using   OOZIE_CONFIG:        /etc/oozie/conf
Sourcing:                    /etc/oozie/conf/oozie-env.sh
setting JAVA_LIBRARY_PATH="$JAVA_LIBRARY_PATH:/usr/lib/hadoop/lib/native"
setting OOZIE_DATA=/var/lib/oozie
setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
setting CATALINA_TMPDIR=/var/lib/oozie
setting CATALINA_PID=/var/run/oozie/oozie.pid
setting CATALINA_BASE=/var/lib/oozie/tomcat-deployment
setting OOZIE_HTTPS_PORT=11443
setting OOZIE_HTTPS_KEYSTORE_PASS=password
setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.port=${OOZIE_HTTPS_PORT}"
setting CATALINA_OPTS="$CATALINA_OPTS -Doozie.https.keystore.pass=${OOZIE_HTTPS_KEYSTORE_PASS}"
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
setting OOZIE_CONFIG=/etc/oozie/conf
setting OOZIE_LOG=/var/log/oozie
Setting OOZIE_CONFIG_FILE:   oozie-site.xml
Using   OOZIE_DATA:          /var/lib/oozie
Using   OOZIE_LOG:           /var/log/oozie
Setting OOZIE_LOG4J_FILE:    oozie-log4j.properties
Setting OOZIE_LOG4J_RELOAD:  10
Setting OOZIE_HTTP_HOSTNAME: fbd83c227a6d
Setting OOZIE_HTTP_PORT:     11000
Setting OOZIE_ADMIN_PORT:     11001
Using   OOZIE_HTTPS_PORT:     11443
Setting OOZIE_BASE_URL:      http://fbd83c227a6d:11000/oozie
Using   CATALINA_BASE:       /var/lib/oozie/tomcat-deployment
Setting OOZIE_HTTPS_KEYSTORE_FILE:     /var/lib/oozie/.keystore
Using   OOZIE_HTTPS_KEYSTORE_PASS:     password
Setting OOZIE_INSTANCE_ID:       fbd83c227a6d
Setting CATALINA_OUT:        /var/log/oozie/catalina.out
Using   CATALINA_PID:        /var/run/oozie/oozie.pid
Using   CATALINA_OPTS:        -Doozie.https.port=11443 -Doozie.https.keystore.pass=password -Xmx1024m -Doozie.https.port=11443 -Doozie.https.keystore.pass=password -Xmx1024m -Dderby.stream.error.file=/var/log/oozie/derby.log
Adding to CATALINA_OPTS:     -Doozie.home.dir=/usr/lib/oozie -Doozie.config.dir=/etc/oozie/conf -Doozie.log.dir=/var/log/oozie -Doozie.data.dir=/var/lib/oozie -Doozie.instance.id=fbd83c227a6d -Doozie.config.file=oozie-site.xml -Doozie.log4j.file=oozie-log4j.properties -Doozie.log4j.reload=10 -Doozie.http.hostname=fbd83c227a6d -Doozie.admin.port=11001 -Doozie.http.port=11000 -Doozie.https.port=11443 -Doozie.base.url=http://fbd83c227a6d:11000/oozie -Doozie.https.keystore.file=/var/lib/oozie/.keystore -Doozie.https.keystore.pass=password -Djava.library.path=:/usr/lib/hadoop/lib/native:/usr/lib/hadoop/lib/native
Start Components

Starting Hue for Hadoop  hue
...done.
Started Impala Catalog Server (catalogd) :
Started Impala Server (impalad):
Started Impala State Store Server (statestored):
starting master, logging to /var/log/hbase/hbase-hbase-master-fbd83c227a6d.out
Started HBase master daemon (hbase-master):
starting thrift, logging to /var/log/hbase/hbase-hbase-thrift-fbd83c227a6d.out
Started HBase thrift daemon (hbase-thrift):
Press Ctrl+P and Ctrl+Q to background this process.
Use exec command to open a new bash instance for this instance (Eg. "docker exec -i -t CONTAINER_ID bash"). Container ID can be obtained using "docker ps" command.
Start Terminal
Starting HiveServer2
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Hi @gliptak,
I made a few searches on Google and this ownership error doesn't affect the map-reduce functionality.
I also tested the Hue initialization and it started well.
Please open new issues if needed.
Thank you!


Deprecate Audit Mode

The Audit Mode of Chef has been replaced by InSpec and the audit cookbook, which provide a superior experience. At this point in time we are going to remove the legacy audit mode to reduce confusion for new users and ensure everyone is directed towards the better experience that InSpec gives.
Chef 14.6 will ship with a deprecation warning if audit mode is used
Chef 15.0 will remove audit mode entirely
This aligns with the deprecation of Chef Analytics which consumed the Audit Mode data.

Deprecation was added to Chef 14


Introduce before and after hooks in API endpoints

The API endpoints inherit from a Base handler which lets the handlers configure handler specific context and for the rest of it handlers the behaviour of its own.
In certain contexts for example discovery of URLs we need to run operations to prepare the context.
This is a proposal to introduce a before_handler and after_handler hooks that run pre and post the main handler runs.

This was resolved as part of a discover process (See HATEOAS) requirement of the API endpoints.


Update django-cheatsheet.md

Change Summary
I have added more CLI commands for Django cheatsheet
Checklist
If you haven't fulfilled the below requirements or even delete the entire checklist, your PR won't be reviewed and will be closed without notice.
General

[x] This Pull Request is all my own work. (You'll be blacklisted if you are caught for plagiarism.)
[x] I've read CONTRIBUTING.md
[x] I've made some valid changes to the CheatSheet, and they are not just minor changes.

Changes

[x]  I've read and followed the Solution Template

Note: To mark the checkbox, put an x inside the [ ] (like this: [x]).

There are some conflicts with this PR due to the massive changes in the codebase. Please rebase and resolve the conflicts.
The new location of the cheatsheets is CheatSheets-for-Developers/src/pages/sheet/
Note: You can create a new PR with those changes.


[GSSoC'23] HueHero Game added

PR Description 📜
A javascript paint race game.
Return or spacebar to start.
Arrow keys to move.

Fixes #2849

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[ ] I have added working video of the game in README.md (optional)
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @Vedansh-777 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

@gurjeetsinghvirdee ?

Thank you  @Vedansh-777 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀

bro @Arun9739 gssoc already ended


[BUG] peerDependencies to Chakra v2 still show up

Description
chakra-react-select claims to require Chakra UI v3, but still has peerDepemdensies referring to v2.
yarn install
(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>(project) ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>
Is that correct? Or does that need to be updated? It keeps popping up and I would like to get this solved.
chakra-react-select Version
4.7.6
Link to Reproduction
No response
TypeScript?

[X] Yes I use TypeScript

Steps to reproduce

Add<EMAIL_ADDRESS>as a dependency
Run yarn install

Operating System

[X] macOS
[ ] Windows
[ ] Linux
[ ] iOS/iPadOS
[ ] Android

Additional Information
No response

I'm confused what you mean by this, if you look at the description in the docs, it does specifically say Charka v2:

This version of chakra-react-select is updated for Chakra UI v2 which works exclusively with React v18. chakra-react-select v3 will be maintained until the majority of users have migrated. If you're still using Chakra UI v1 check the docs for chakra-react-select v3 here.

Maybe you're getting confused by my distinguishing v3 of this package? Chakra UI (specifically the combined React package) doesn't even have a v3 yet.

They show up because they're dependencies of @chakra-ui/react and not direct dependencies of your project. It is something I have noticed specifically with yarn though, as I haven't seen these warnings with NPM >= v7 (or maybe it's v6).

That's fine for me. It's not this library, but yarn. You may close this bug.


Correction on fatal error LNK1104: cannot open file 'python38_d.lib'

On MSVC, pyconfig.h completely ignores CMake and links the Python library according to the _DEBUG preprocessor definition.
In my case, I needed to build my library in debug but link to the release version of the Python library. Therefore, setting CMAKE_BUILD_TYPE=Release wasn't an option.
Setting the Python build.bat flags to -c Release builds Python in release, but when the embedding library consumes Python.h, Python's pyconfig.h preprocessor checks for the _DEBUG definition and tries to load Python's debug library even though Python was built in release (line 271 in Python 3.10).
The Fix:
If you want to use the release build of Python with a debug build of your library/exe, first undefine _DEBUG before including Python.h.
#ifdef _DEBUG
#undef _DEBUG
#include <Python.h>
#define _DEBUG 1
#else
#include <Python.h>
#endif

A minor correction, but very important. It took me forever to solve this problem.

https://stackoverflow.com/questions/1236060/compiling-python-modules-with-debug-defined-on-msvc


Bar text color does not change when inactivated

Bar text color does not change when inactivated, but icon does

Hi @edwardyehuang,
At present, I think you'll unfortunately have to implement this yourself. But see my post at https://github.com/thrive-now/BottomNavigationBarXF/issues/82 for some pointers on how such may be done.
Best of luck,
Alexander.

try setting a color in bb_darkInActiveBottomBarItemColor


404 Not Found response from s3, function BucketExists return err!=nil,it's err should be nil, exists is false

when I call function BucketExists,  it get resp "404 Not Found" from s3. In function BucketExists, it follows
if resp.StatusCode != http.StatusOK {
return false, httpRespToErrorResponse(resp, bucketName, "")
}
error content is 		case http.StatusNotFound:
if objectName == "" {
errResp = ErrorResponse{
StatusCode: resp.StatusCode,
Code:       "NoSuchBucket",
Message:    "The specified bucket does not exist.",
BucketName: bucketName,
}
}
its logic should be the same to 		if ToErrorResponse(err).Code == "NoSuchBucket" {
return false, nil
}
rerurn code: exists is false,err is nil, but now error is not nil, error is ErrorResponse{
StatusCode: resp.StatusCode,
Code:       "NoSuchBucket",
Message:    "The specified bucket does not exist.",
BucketName: bucketName,
}

Thanks for the issue @panfengAtInspur do you mind sending a fix / PR directly. Looks like you already have it. We can then review


Added check for install.py if ksinstall is missing.

Added Modifications to include old KeystoneRegistration FrameWork installation (python version) for old google chrome versions (like Google Chrome version 34 that uses install.py instead of ksinstall)

Thanks!


Refine and update Vietnamese translations in translation.json

Update: Refine and update Vietnamese translations in translation.json.
Fix: Rename 'whitelist' to 'filter_list' in searxng.py function.

Thanks!


Skip to SignIn if Registration Disabled.

Description
MA-2907
Add a description of your changes here.
Notes
If course discovery is disabled then it will disable registration process as well.
How to test this PR
Reviewers
If you've been tagged for review, please check your corresponding box once you've given the :+1:.

[ ] Code review: @BenjiLee
[ ] Code review: @danialzahid94

Current coverage is 23.02% (diff: 16.00%)

Merging #809 into master will increase coverage by <.01%

@@             master       #809   diff @@
==========================================
  Files           677        677
  Lines         56372      56380     +8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits          12976      12980     +4
- Misses        43396      43400     +4
  Partials          0          0

Powered by Codecov. Last update c991843...329be6f

@saeedbashir If the feature flag is not set, it should default to true?

@BenjiLee Yes

👍


mount local folder as shared storage

while adding shared storage i got error like this,how to resolve this
Configuration for volume cvat_share specifies "device" driver_opt /home/naveen/Documents/test, but a volume with the same name uses a different "device" driver_opt (/mnt/share). If you wish to use the new configuration, please remove the existing volume "cvat_cvat_share" first:
$ docker volume rm cvat_cvat_share
my yml looks like this
`# docker-compose.override.yml
version: "2.3"
services:
cvat_proxy:
environment:
CVAT_HOST: <IP_ADDRESS>
ports:
- "3365:80"
cvat:
environment:
ALLOWED_HOSTS: '*'
CVAT_SHARE_URL: "Mounted from /mnt/test host directory"
volumes:
- cvat_share:/home/django/share:ro
volumes:
cvat_share:
driver_opts:
type: none
device: /home/user/Documents/test
o: bind`

Did you try delete the volume as error message suggest?

@azhavoro, am i need to delete the volume and recreate it or how to connect to this volume with my device path

Just run docker volume rm cvat_cvat_share

Error on chrome console came like this Not allowed to load local resource

@vasanththangavel Please add more details about your issue: screenshot of error from browser console.

No answer for a long time. I will close the issue. Do not hesitate reopen it if you need

Same problem here.

Try to remove all mounted volume by
docker volume rm $(docker volume ls -q)

after removed cvat_cvat_share volume and recreate cvat_cvat_share
I got "Could not send logs to the server
Open the Browser Console to get details"
Error when creating and saving task


Add Vercel Integration Page

🚀 Deployed on https://6346fe4fb2709707d1f91d3c--cozy-fox-0defec.netlify.app


Update docs

This dumps the information in the README onto the docs, and separates the docs into multiple pages.
We also change the README to rst for the sake of PyPI, and add a circle-ci badge.

Merging this shortly


[javascript]-LGTM.com - ERROR: Could not resolve type @regexp_anchor

Hello Sir,
I met some compile errors while dealing with javascript. I tried other lanague like java and it performs well. And I use OS x. Here are errors
1. ERROR: Could not resolve type @regexp_anchor ql/javascript/ql/src/semmle/javascript/Regexp.qll:304:40:304:54
2. ERROR: Could not resolve type @regexp_normal_constant
l/javascript/ql/src/semmle/javascript/Regexp.qll:564:52:564:75
3.ERROR: test is always false, as StringLiteral is incompatible with the expression type RegExpParent.
ql/javascript/ql/src/semmle/javascript/Regexp.qll:150:42:150:55
4.ERROR: StringLiteral is incompatible with RegExpParent
ql/javascript/ql/src/semmle/javascript/Expr.qll:419:32:419:33

Thanks for your report! Could you clarify where you get these errors? Is it inside the editor in the VSCode extension, or is it when trying to run the query on the command line? And are you using the starter workspace (https://github.com/github/vscode-codeql-starter), or did you clone the query repository yourself? If it is the latter, are you up-to-date with latest master?

I ran into the same problem in the OS x, vscode editor. I have implemented git pull, but the problem still exists.
 - - - COMPILATION DONE - - -
Failed to compile query programs/ql/javascript/ql/src/test.ql against database scheme study/dom-xss/测试程序/测试样本/jstest/db-javascript/semmlecode.javascript.dbscheme:
ERROR: Could not resolve type @regexp_anchor (programs/ql/javascript/ql/src/semmle/javascript/Regexp.qll:304:40:304:54)
ERROR: Could not resolve type @regexp_normal_constant (programs/ql/javascript/ql/src/semmle/javascript/Regexp.qll:564:52:564:75)
ERROR: test is always false, as StringLiteral is incompatible with the expression type RegExpParent. (programs/ql/javascript/ql/src/semmle/javascript/Regexp.qll:150:42:150:55)
ERROR: StringLiteral is incompatible with RegExpParent (programs/ql/javascript/ql/src/semmle/javascript/Expr.qll:419:32:419:33)
ERROR: The cast type StringLiteral is incompatible with the expression type RegExpParent. (programs/ql/javascript/ql/src/semmle/javascript/Regexp.qll:173:15:173:28)

Yes, I use editor in VS Code. And I think it is something wrong with javascript. cause I can run query with java code base.

Hello Sir, I reset the project's semmlecode.javascript.dbscheme with ql/src/semmlecode.javascript.dbscheme and I can run queries successfully. But when I made a test with alert.ql in example to the javascript code:
var a = location.hash;
alert(a);
I did't receive any alert.

OK, I have now managed to reproduce the problem. The issue is that the database you are trying to run your query on was created with a slightly older version of CodeQL. Normally the extension should realise this and ask you whether you want to upgrade the database before running the query, but for some reason in this case it fails to do so. This is a bug in the extension which I have reported as https://github.com/github/vscode-codeql/issues/168.
In the meantime, you can fix the problem by explicitly upgrading the database: in the "CodeQL" view, right-click on the database, then choose "Upgrade database". Afterwards you should be able to run your query without errors.

I reset the project's semmlecode.javascript.dbscheme with ql/src/semmlecode.javascript.dbscheme

This is a very bad idea and I would advise strongly against doing this in future, since it may leave you with an unusable database. Use the "Upgrade database" menu mentioned above instead.

But when I made a test (...) I didn't receive any alert.

What alert were you expecting?

https://github.com/github/vscode-codeql/issues/168 has been merged. Could you check whether this fixes the problem by upgrading to the latest version of the extension?


Check-Submission GitHub Action: add comment to the issue it triggers from

The check-submission GitHub Action (GA) should add a comment on the issue when it triggers about the status of the jobs it runs.
Currently, it just runs and you have to check the status manually by going to the Actions tab.

Successfully updated the GitHub Action.
When the word already exists in the cloud-dictionary:

When the word doesn't exists in the cloud-dictionary:

niceeee


New version: Unity.Unity.CN.2022 version 2022.3.44f1c1

Created by 🥟 Dumplings.
Microsoft Reviewers: Open in CodeFlow

@wingetbot run

This package installs and launches normally in a Windows 10 VM.

This package installs and launches normally in a Windows 10 VM.


Test help command in full screen for windows and linux

Test out help command in full screen for windows and linux. Refer to #292.

Open the application
Ensure that the application is in fullscreen.
Type out help command.
Observe if the help windows opens as a pop up or in a separate full screen window.
Repeat 3-4 for a few times in Windows and Linux and check if the app crashes

Ubuntu 22.04 - No issues, able to use help command in full screen

I tested this in both Windows 11 and Ubuntu 22.04 (Linux) and have no issues, behavior is exactly the same with a small pop up showing the help link regardless of whether the application was full screen or not full screen. Repeating a few times shows no change in behavior.


test: add test for useLgApi and useLuApi hooks

Description
add unit tests

Task Item
#minor

Screenshots

Coverage increased (+0.9%) to 39.784% when pulling d836ff303515012a024f42fc6ad62f4f08906af3 on lei9444:clienttest into 863d738930ce6353be6b82ed24417ee36f925d33 on microsoft:master.


Wishlists

When product is not available, customer should be able to set a notifications for this product.

One user has only one wishlist
Wishlist can be shared with a special URL
When combination of products does not exist, it should be possible to add it to a wishlist
When product gets back in stock, customer should be notified that observed product is now available

@artursmet

combination of products does not exist
Did you meant combination of attributes? (variant)

@krzysztofwolski Yes, there was a typo

Closing in favor of https://github.com/mirumee/saleor/issues/4040


Exception after authorizing with Clientlogin/Google

An exception occurred while executing 'INSERT INTO bolt_members_meta (userid, meta, value) VALUES (?, ?, ?)' with params ["1", "clientlogin_id_", null]: SQLSTATE[23000]: Integrity constraint violation: 19 bolt_members_meta.value may not be NULL
After processing Google Oauth and filling the members form and submitting.
Stack trace:
15. Doctrine\DBAL\DBALException
…/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php91
14. Doctrine\DBAL\DBALException driverExceptionDuringQuery
…/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php864
13. Bolt\Extension\Bolt\Members\Controller\MembersController register
<#unknown>0
12. PDOException
…/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php855
11. PDOStatement execute
…/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php855
10. Doctrine\DBAL\Connection executeUpdate
…/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php560
9. Doctrine\DBAL\Connection insert
…/extensions/vendor/bolt/members/src/Records.php222
8. Bolt\Extension\Bolt\Members\Records updateMemberMeta
…/extensions/vendor/bolt/members/src/Authenticate.php178
7. Bolt\Extension\Bolt\Members\Authenticate addMemberClientLoginProfile
…/extensions/vendor/bolt/members/src/Authenticate.php219
6. Bolt\Extension\Bolt\Members\Authenticate addMember
…/extensions/vendor/bolt/members/src/Controller/MembersController.php140
5. Bolt\Extension\Bolt\Members\Controller\MembersController register
<#unknown>0
4. call_user_func_array
…/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php145
3. Symfony\Component\HttpKernel\HttpKernel handleRaw
…/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php66
2. Symfony\Component\HttpKernel\HttpKernel handle
…/vendor/silex/silex/src/Silex/Application.php538
1. Silex\Application handle
…/vendor/silex/silex/src/Silex/Application.php515

Closing as the extension has merge with bolt/clientlogin and has been rewritten in the process.


Misinformation

Please remove this section as this is not the actual behavior. (confirmed in support case :<PHONE_NUMBER>04842 )

When sending an event to a Service Bus queue or topic as a brokered message, the messageid of the brokered message is the event ID.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 261bba89-1910-13a4-145c-4c16e2659409
Version Independent ID: 8cd0799c-6656-22f7-5e62-37563ddf15df
Content: Service Bus queues and topics as event handlers for Azure Event Grid events - Azure Event Grid
Content Source: articles/event-grid/handler-service-bus.md
Service: event-grid
GitHub Login: @spelluru
Microsoft Alias: spelluru

@olitomlinson Thank you for your feedback! We will review and update as appropriate.

@olitomlinson Thanks for reporting this item! We have updated the doc and it will be published soon. We appreciate the feedback! We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


autocommit enabled even if ays started with --dev

AYS autocommit is executed even if it's started with --dev
Installation information
In [3]: j.core.state.versions
Out[3]:
{'JumpScale9': 'v9.1.0-59-g00cdafd',
 'JumpScale9AYS': 'v9.1.1-214-g1781855',
 'JumpScale9Lib': 'v9.1.0-35-g5c454bf',
 'JumpScale9Portal': 'v9.0.3-86-gf4d395d',
 'JumpScale9Prefab': 'v9.1.0-7-g24f0a4e'}

Steps
execute blueprints in any of sample repos of ays test repos
create run
## relevant stacktraces

  File "main.py", line 74, in <module>
    main()
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "main.py", line 70, in main
    sanic_app.run(debug=debug, host=host, port=port, workers=1)
  File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 559, in run
    serve(**server_settings)
  File "/usr/local/lib/python3.5/dist-packages/sanic/server.py", line 450, in serve
    loop.run_forever()
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/RunScheduler.py", line 90, in start
    self._commit(run)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/RunScheduler.py", line 64, in _commit
    self._git.commit(message=msg)
  File "/opt/code/github/jumpscale/core9/JumpScale9/clients/git/GitClient.py", line 205, in commit

Fixed in https://github.com/Jumpscale/ays9/pull/178


Add option to specify amount of workers and max workers spawned

Adds a new flag for issue #27

-w or --workers to specify the amount of workers spawned
-W or --max-workers to specify the maximum amount of workers spawned

Codecov Report

Merging #44 into master will decrease coverage by 0.24%.
The diff coverage is 83.34%.

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
- Coverage   71.75%   71.51%   -0.23%
==========================================
  Files           8        8
  Lines         361      365       +4
==========================================
+ Hits          259      261       +2
- Misses         84       86       +2
  Partials       18       18

Impacted Files
Coverage Δ

main.go
55.68% <83.34%> (-0.24%)
:arrow_down:

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 d99d0d9...0677dad. Read the comment docs.

@rzkmak Hey, thanks for your contribution!


[Feature] Download citations as .rtf

Purpose
Closes https://github.com/CenterForOpenScience/osf.io/issues/3951
Changes
Function to parse the HTML version of citations to rtf formatting added.
Side Effects
None

Is there no way we can request the plaintext version of a citation?

You're right. Turns out, citeproc.js can output bibliographies in .rtf format.

CR complete. No bugs found, so you get a :star2:! :)

It's also worth noting that the clipboard does some funky stuff. In some applications, pasting in HTML-formatted text will preserve formatting, while in others it doesn't. Notable, Google Docs preserves formatting in OSX, Linux, and Windows.
As a result, it's possible to click the "copy citation" button and get plain text when pasted, if the target application doesn't correctly deal with the formatting.
This isn't really germane to this PR, but is in reference to Steve's question above.

That's true, but it's dependent on the external application's interpretation of the pasted text, about which there isn't much we can do. There might be some way of formatting the copied text such that the maximum number of applications accept it as enriched, but that's not really in the scope of the issue this addresses.

Merged into release/0.48.0


Neutralinojs memory consumption

Even if I am a huge fan of your project, I don't think that neutralino can take only 5 Mo of memory. The Edge webview uses at least 60 Mo. Maybe I'm wrong ...

Hi ! Will look into that asap ;)

Yup, I looked into this with #61 which will auto-benchmark everything, and neutralino was indeed too low, I might have made an error when manually benchmarking 😄
It'll be fixed with this PR being merged into main. Thanks !


Updating choco-gui to use choco-solver 4.0.2

Hi!! I have updated the choco-gui code to be used with choco-solver:4.0.2.
Can you update the MCR artifact?

Thank you for your contribution.
If you have some improvements in mind, please tell me.


Filter games based on pending change or platform

For #225 .
Work in progress, looking for feedback and help with the UI part (not familiar with the framework) and anything else I've missed.

I've managed the first filter (pending changes) already (including the ui). Will look at the other one when I have some time, because it looks like the ui does not know the origin of the save. I will have to pull the root config up a few levels

Thanks for this! I think we should just handle the change filter for this PR and do the root filter separately, since that one will be more complicated, as you noted.
Just some minor notes:

The format/lint step failed. You can turn on the pre-commit hooks so you don't have to worry about it in the future. To fix the current issues, you can run pre-commit run -a, but it'll kick in automatically before any new commits once you've set it up.
For consistency with existing phrasing (the "show {unchanged,unscanned} games" options), I would prefer:

No Changes -> Unchanged
Unknown -> Unscanned

Other than that, this looks great :+1:

Thanks for the feedback! English is not my native language and I was indeed struggling with some of the naming. I have included the changes you requested.


Possible memory leak in System.Data.SqlClient when using SqlCredential

Tested on .NET Core 2.1 with System.Data.SqlClient v4.5.1.
Also tested on .NET Framework 4.7.2 with System.Data.SqlClient v4.5.1

When using SqlCredential to specify credentials for a SqlConnection there seems to ba a memory leak in some scenarios.
Consider the following program that just repeatedly creates a new SqlConnection, opens it and then closes it:
using System;
using System.Data.SqlClient;
using System.Security;

namespace MemTest
{
   class Program
   {
      static void Main(string[] args)
      {
         SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder();
         sb.DataSource = ".";
         sb.Pooling = false;
         string connectionString = sb.ConnectionString;
         string password = "XXXX";

         using (var securePassword = ToSecureString(password))
         {
            while (true)
            {
               SqlCredential cred = new SqlCredential("sa", securePassword);
               using (SqlConnection conn = new SqlConnection(connectionString, cred))
               {
                  conn.Open();
               }
            }
         }
      }

      static SecureString ToSecureString(string str)
      {
         SecureString s = new SecureString();
         foreach (var c in str)
            s.AppendChar(c);

         s.MakeReadOnly();
         return s;
      }
   }
}

This program does not use connection pooling, but does create a new SqlCredential instance for each call.  The memory usage seems to constantly increase, and using a memory profiler also indicates that memory consumption increases. It also appears that the program slows down over time.
The memory profiler we used seems to indicate among other things that there is a bunch of new instances of SqlConnectionString held by an SqlConnectionFactory constantly being allocated without being freed.
The documentation states that using a new instance of an SqlCredential will cause a new connection rather than using a pooled connection even if the user id and the passwords are the same.  So this will obviously cause problems when using pooled connections if a new SqlCredential instance is used for each connection, but in the case above connection pooling is turned off in the connection string, so why does memory usage seem to increase here?
In our real scenario, we need to use connection pooling, but we also need to be able to indicate that a specified connection/SqlCredential will no longer be used and should be freed. If we try to use connection pooling, the memory also seems to increase, even if we call SqlConnection.ClearPool(conn) in the inner loop.  How can we forefully remove a connection using a specific SqlCredential from the pool to avoid this problem?

As recently announced in the .NET Blog, focus on new SqlClient features an improvements is moving to the new Microsoft.Data.SqlClient package. For this reason, we are moving this issue to the new repo at https://github.com/dotnet/SqlClient. We will still use https://github.com/dotnet/corefx to track issues on other providers like System.Data.Odbc and System.Data.OleDB, and general ADO.NET and .NET data access issues.

Do we know if SqlClient against .NET Framework exhibits the same memory usage?

We have same issue and resolved it by using single instance of SqlCredential object in every SqlConnection, instead of creating SqlCredential object every time.

@alphaleonis
I don't think this is an issue in the driver, you should be creating 1 single instance of SqlCredential object in order to pool the connection. The base hashcode of the every new object differs and the connection would not qualify for being pooled in this case, which is correct as per design.
On side note to answer @David-Engel 's question, the behavior is same in .NET Framework and .NET Core.

Closing as not an issue.

Hi, I'm not sure it's right close this case as not an issue - the same problem is on .net core 5. With heavy usage SqlCredential runtime easily allocates up to gigabytes of RAM and causes huge slowdown (for example initial SQL call is 3ms, after thousands calls 40ms with the same query) - it's funny the critical value is approx 60 000 of new instances - after this new instances do not cause slowdown, but memory is still allocated... Solution with single instance of SqlCredential works well - thanks God :)


Where is serverless?

I understand that the concept of serverless is latest trend in the cloud computing which provide lightweight event based microservices. It was first launched by AWS as AWS Lambda service and later similar services was announced by other cloud service providers : Microsoft Azure Functions, Google Cloud Function and OpenWhisk (by IBM Bluemix).
I think this should also be mentioned in the cloud landscape.

Agreed.
On Tue, Dec 6, 2016 at 12:22 AM, sajidh<EMAIL_ADDRESS>wrote:

I understand that the concept of serverless is latest trend in the cloud
computing which provide lightweight event based microservices. It was first
launched by AWS as AWS Lambda service and later similar services was
announced by other cloud service providers : Microsoft Azure Functions,
Google Cloud Function and OpenWhisk (by IBM Bluemix).
I think this should also be mentioned in the cloud landscape.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cncf/landscape/issues/33, or mute the thread
https://github.com/notifications/unsubscribe-auth/AC8MBkOhWpvf4l7NeEJy0OZjJ3gqzUKuks5rFPESgaJpZM4LFCTC
.

--
Dan Kohn<EMAIL_ADDRESS>Executive Director, Cloud Native Computing Foundation https://cncf.io/
tel:+1-415-233-1000

Closing since conversation continued in #70 and will be added


Add description to admin log, and reformat the display

Please provide a description of this PR:
To make the scopes in admin log better understanding like the controlZ.
From
Active scopes:
  ads:info
  adsc:info
  analysis:info

To
SCOPE                  DESCRIPTION                                  LOG LEVEL
ads                    ads debugging                                info
adsc                   adsc debugging                               info
analysis               Scope for configuration analysis runtime     info

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
fef8f26c026402fd19bea273f4e9650715a26ab6
link
true
/test lint_istio

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.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
bd11778534a444cf5916e96825025d59cd2dcfc7
link
true
/test lint_istio

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.

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-pilot_istio
38a20bb669fdfb62573fc60d92f7466c164e36d9
link
true
/test integ-pilot_istio

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


EventLoop non-smart pointers

Usage of std::shared_ptr on the implementation of the EventLoopBase pure virtual and epoll implementation increases the complexity of testing on the initial phase.
It's better if we start off using a raw pointer and make the next PR for the smart pointer re-write on the parts where we'd need them.

The issue was with the return statement on the getSharedPtr() member function, which is resolved.
It's better to use GCC compiler option when we don't have a returns statement on the function body when the function itself is a non-void function. It'd save a day of debugging :P


Activate plugin on BufReadPost, not on WinEnter/Leave

Hi! Thanks for your plugin first of all.
I've found that these autocmd settings make more sense for the way I use vim. Often when editing the same file in multiple windows, I might go to another buffer in one of the windows to reference something, and then come back. But previously when I did, the cursor would jump to where the other window is.
This doesn't seem like intentional user behavior. Anyway, let me know if that makes sense and if the PR looks good.

@fent just a heads up: apologies for not getting a chance to take a look at this sooner. I've been traveling on business the last week, and the last few weeks have been crazy with my work in general. I'll be back home later this weekend, so I'm aiming to test this Sunday or early next week.
It's on my to-do list, so I won't forget 😄

No problem, take your time :)

After mulling this over for a while, I realise two things:

I have misunderstood what the original issue is about;
Whatever the root cause of 1., this PR is misguided. One, stay dos not fire on WinEnter, but on BufWinEnter, which despite similarities in name are fundamentally different events. Two, BufWinEnter is at the core of the plug-in because it is the only event to fire reliably in all situations where we need to load views: Vim startup, with or without split (-o, -O) or tab (-p) multiple file options; loading from arglist; recovering from :bufdo etc. Significantly, this event should never fire on simply entering a split. Removing it would break plug-in functionality in all these scenarios, as does replacing it by BufReadPost (which, though its description reads as if it fired in the same situations, just before modeline application, does in fact not do so; it is essentially only firing after loading a buffer from file, IIRC).

@fent this does not mean I am denying you have an issue, and I also accept that your patch solves your specific issue; however, it would seem rather destructive to stay’s feature set beyond your specific usage, which is why I prefer to take a step back and investigate the root cause instead.
With Zach away, I will overreach, close this PR and open an issue to ferret out what exactly is going on. Please head over there (linkage following, bit of chicken and egg problem here).

@kopischke agreed on all points. Thanks for taking the initiative on this.


Feature request: something equivalent to "Array.prototype.fill" from ES6

See Array.prototype.fill. When used like this in JavaScript:
Array(5).fill(2)

It will yield the following output:
[2, 2, 2, 2, 2]

It seems to me that solidity-generators would be the right place to implement such a functionality in Solidity (better than forge-std).
The way I see it, there are a couple ways this could be implemented:

Add a new function fill that does only this.
Modify the behavior of linspace to continue filling the output with duplicated values of the second argument (ustop).

Agreed, this does seem like the right library for this method.
The existing function names/signatures are modeled after numpy's method's of the same name, so perhaps we base this one on the full method:
>>> np.full(5, 2)
array([2, 2, 2, 2, 2])

function full(uint length, uint val) pure returns (uint[] memory arr) {
  // --- snip ---
}

I won't be able to implement this until after the holidays, but PRs definitely welcome if you want it sooner


"Complete" example?

Is there an example with all features working together, like a sandbox engine?

That's out of scope of this library. Engine forces too many things to users and usually you can't just use rendering part of it. That's why bgfx intentionally is not engine/framework, but rather just rendering library.
Check Torque6:
https://github.com/andr3wmac/Torque6
LumixEngine:
https://github.com/nem0/LumixEngine
Or some of other project using it:
https://github.com/bkaradzic/bgfx#who-is-using-it

Thanks! But those are game engines, i was looking for something less intrusive. Kinda like Ogre.


how to train it to get author name and headline

@akashmondal1810 If you have a labelled dataset you can always train a custom model to extract only the author name and headline.
Hope that helps!


A11y improvment (part 1)

First part of the improvments proposed in #544 :

removing the "radio" attribute on buttons when it's not relevant
properly grouping the relevant radio button

The only thing I could not do is to translate the new locale entry to all languages

Thank you for the PR.
The project has prettier configured, but for some reason, your PR uses a different formatting which results in a massive change - this makes it very hard for me to review it; the build won't pass as well.
Can you fix the formatting? I don't think that the change you mean to introduce should change 300+lines.

Yeah, I don't know why it don't apply... I'll fix that and push a new commit

@petyosi I think we are good now

The current state of the PR has typescript failing and hooks with missing dependencies. Also, it changes the spacing of the toolbar, making it wider:

The missing imports were so weird... It should have worked at all 🤔 Anyway, it's fixed.
I also fixed the spacing but had to make some compromises to have the exact same render : I had to externalize the <div className={styles.toolbarGroupOfGroups}>. If not, there are additional margins on the sup/sub formatting (only difference).
If you think this difference is acceptable, I can rollback this change.


codecov-bash not working when using Jenkins pipeline

Hi there,
I am not able to update the codecov coverage report using the bash script in a Jenkins pipeline. After executing my tests, I call the codecov-bash script as follows:
sh "curl -s https://codecov.io/bash | bash -s - -t ${TORM_CODECOV_TOKEN} || echo 'Codecov did not collect coverage reports'"
In the Jenkins console we can check that the bash script failed:
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-d109cc7

==> Jenkins CI detected.
Codecov did not collect coverage reports

Looking for some similar open issues, I found this #68. It seems that the problem is related with the way in which environment variables such as GIT_COMMIT and GIT_BRANCH are read. I tried to solve it changing my Jenkinsfile as follows, but still no luck:
def codecovArgs = '-K '
if (env.GITHUB_PR_NUMBER != '') {
    codecovArgs += "-B ${env.GITHUB_PR_TARGET_BRANCH} " +
        "-C ${env.GITHUB_PR_HEAD_SHA} " +
        "-P ${env.GITHUB_PR_NUMBER} "
} else {
    codecovArgs += "-B ${env.GIT_BRANCH} " +
        "-C ${env.GIT_COMMIT} "
}
sh "curl -s https://codecov.io/bash | bash -s - ${codecovArgs} -t ${TORM_CODECOV_TOKEN} || echo 'Codecov did not collect coverage reports'"

Any idea? Thanks in advance.

same here

Hi, I had the same problem and after several tries, I realize what was the problem and how to fix it
the problem is that when Bash tries to know what was the last sha commit (env.GIT_COMMIT), it is getting a void value. For that reason there is going to be a 502 error: missing required fields (in Jenkins logs when trying to upload the report). To fix it, try to run "git rev-parse HEAD" and store the result in a variable (let's say resultFromGit) before you run codecov. At the end, you just need to add the parameter as:
 curl -s codecovaddress | bash -s - -C ${resultFromGit} -t yourCodecovToken
that was what worked for me to fix that error!!!

Closing stale issue, I'm not aware if this still being an problem.


[WIP] Implement rate limiting for twitter API calls

Proposed changes
This PR

Adds API call tracker for twitter
Updates the tweet retrieval strategy, set's the twitter_max_pages to 1

Fixes
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an x in the box that applies

[ ] Non-breaking fix (non-breaking change which fixes an issue)
[ ] Breaking fix (breaking change which fixes an issue)
[ ] Non-breaking feature (non-breaking change which adds functionality)
[ ] Breaking feature (breaking change which adds functionality)
[ ] Refactor (non-breaking change which changes implementation)
[ ] Messy (mixture of the above - requires explanation!)

Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the main branch (left side). Also you should start your branch off our main.
[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have locally run services that could be impacted and they do not present failures derived from my changes

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

@angrybayblade can we close this?


Tests are sometimes not running for random RPC URLs

For some RPC URLs from here https://github.com/ubiquity/ubiquity-dollar/blob/development/packages/contracts/scripts/runner/conf.ts#L3 tests are not running
This is a random problem as sometimes nodes are again alive and tests are running fine
RIght now if I set RPC_LIST to:
export const RPC_LIST: string[] = [
  "https://ethereum.publicnode.com"
];

and run yarn test:all I get the following console output:
➤ YN0000: using https://ethereum.publicnode.com for testing...
➤ YN0000: No files changed, compilation skipped
➤ YN0000:
➤ YN0000: Done in 4s 352ms

So tests are not running for RPC URL https://ethereum.publicnode.com.
But if I set RPC_LIST to:
export const RPC_LIST: string[] = [
  "https://cloudflare-eth.com"
];

And run yarn test:all again I can see that tests are running as expected:
➤ YN0000: using https://cloudflare-eth.com for testing...
➤ YN0000: No files changed, compilation skipped
➤ YN0000:
➤ YN0000:
➤ YN0000: Running 2 tests for test/dollar/core/CreditNFTRedemptionCalculator.t.sol:CreditNFTRedemptionCalculatorTest
➤ YN0000: [PASS] test_getCreditNFTAmount() (gas: 44451)
➤ YN0000: [PASS] test_getCreditNFTAmount_revertsIfDebtTooHigh() (gas: 37108)
➤ YN0000: Test result: ok. 2 passed; 0 failed; finished in 7.94s
➤ YN0000:
➤ YN0000:
➤ YN0000: Running 7 tests for test/dollar/transfer-hooks/CurveDollarIncentive.t.sol:CurveDollarIncentiveTest
➤ YN0000: [PASS] test_incentivize_buy() (gas: 190780)
➤ YN0000: [PASS] test_incentivize_revertsIfCallerNotUAD() (gas: 18240)
➤ YN0000: [PASS] test_incentivize_revertsIfSenderEqualToReceiver() (gas: 21567)
[...other output]

The same behaviour you can see in latest CI runs for latest PRs:

https://github.com/ubiquity/ubiquity-dollar/actions/runs/3790068199/jobs/6444392937 => tests are not running on the "Test" build step

Run yarn test:all
➤ YN0000: using https://eth-mainnet-public.unifra.io for testing...
➤ YN0000: No files changed, compilation skipped
➤ YN0000:
➤ YN0000: Done in 3s 468ms

https://github.com/ubiquity/ubiquity-dollar/actions/runs/3793120005/jobs/6449927279 =>  tests are not running on the "Test" build step (though currently this RPC URL https://eth-mainnet.public.blastapi.io successfully runs tests on localhost)

Run yarn test:all
➤ YN0000: using https://eth-mainnet.public.blastapi.io for testing...
➤ YN0000: No files changed, compilation skipped
➤ YN0000:
➤ YN0000: Done in 3s 811ms

https://github.com/ubiquity/ubiquity-dollar/actions/runs/3785967627/jobs/6436434604 => tests run as expected

I think a quick solution could be to manually test with each of the RPC URLs in our list and remove the duds.
A better solution would be to test if the tests run but I'm not sure how that could be done.

Hey @Steveantor as a continuation off of #383, can you do a test RPC request before selecting the RPC? I looked at the logs  somewhere earlier this morning (I can't find the exact example right now) and some appear to be returning HTML for example:
... <title>Forbidden</title>

Which is of course not expected from a JSON RPC endpoint.

Hey @Steveantor as a continuation off of #383, can you do a test RPC request before selecting the RPC? I looked at the logs somewhere earlier this morning (I can't find the exact example right now) and some appear to be returning HTML for example:
... <title>Forbidden</title>

Which is of course not expected from a JSON RPC endpoint.
I believe that this strategy will solve this issue.

I'll be working on this, some RPCs might be blocking the Github's IP address,
(despite them returning 200 Status code)
checking blockNumber>=0 (integer) would be a great indication.
@pavlovcik

I'll be working on this, some RPCs might be blocking the Github's IP address, (despite them returning 200 Status code) checking blockNumber>=0 (integer) would be a great indication. @pavlovcik

It sounds like a good plan. Be sure to test on your fork to test your hypothesis.

PR #445

Hi @Steveantor please share your wallet address here. Thanks!

Here's my address:
0x4841e8153a7b9E8B1F218E42d3cBaEb3e99C28eE
@pavlovcik

Here's my address:
0x4841e8153a7b9E8B1F218E42d3cBaEb3e99C28eE
@pavlovcik

https://etherscan.io/tx/0xfa63a7bb1e2cce9b316ed7248c2e9e1cfcb7bea42bc203e67c1b16af723c9f46
https://etherscan.io/tx/0xbc3d3ec45f3e2f0fb664b5c4cd44bbe5ee2cedccd00cf8e454dafb3ef643111a


Squishit.less adds C# file to VB project

When adding SquishIt.Less from nuget, SquishItLess.cs is added to App_Start instead of SquishItLess.vb. If you don't support VB, then you can close this issue.

related https://github.com/AlexCuse/SquishIt/commit/acc105e78d25450e8708eff4c2f93a3c892e1d20


Creation and validation of OSCAL Component Files

How are we going to create new OSCAL component files for new systems/packages?
How are going to re-use data from other systems for controls?
How do we automate the structure/schema for Lula component files?

As we evaluate the ability to generate OSCAL - this should definitely be a workflow evaluated for inclusion.
Bootstrap a new Component-definition file with any and all information that we have context about.
Given that we use the component-definition model - the file should be schema compliant when the file is written to the filesystem.

Closing as a duplicate of #272 which contains more context


cannot find index.ts in production

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
3.29.0
Plugin version
3.0.0-beta.23
Node.js version
16.15.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
archlinux
Description
hi,
I'm using fastify-vite with typescript, and after building for production (with command vite build --outDir dist/server --ssr /index.ts) I get the following error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/me/mon-app/client/dist/server/index.ts' imported from<EMAIL_ADDRESS>
To fix it I made a quick and dirty fix in mode/production.js
@@ -49,7 +49,7 @@

   // Loads the Vite application server entry point for the client
   async function loadClient () {
-    const serverFile = join('server', basename(config.clientModule))
+    const serverFile = join('server', basename(config.clientModule).replace('.ts', '.js'))
     const serverBundle = await import(resolve(config.bundle.dir, serverFile))
     return serverBundle.default ?? serverBundle
   }

maybe I miss some configuration step.
Steps to Reproduce
to reproduce use any example and rename client/index.js to client/index.ts then run
vite build --outDir dist/server --ssr /index.ts

Expected Behavior
No response

fixed in 4efd8842f2fbcfdeb4f961df0e0295fd642598e5
thanks :)


Getting a good UI design for the community website

We want to create a UI design for our website. We have started this but we need more contribution to make it standard and perfect.
https://www.figma.com/file/N8ef18pNNEN6Hkht2r44nZ/Chryz-hub?node-id=0%3A1

I feel anyone working on the design should create a copy with there name as the title of the artboard like this:

I feel anyone working on the design should create a copy with there name as the title of the artboard like this:

Okay share it to the community on discord!

I thought about that too. Great idea. Will add mine soon.

I feel anyone working on the design should create a copy with there name as the title of the artboard like this:

Okay share it to the community on discord!

Okay

You can add an extra page to work on the UI personally before making the final change on the main page. What do you think?

Ok, that's nice!


Refactor: move tests for tokenize() to its own module

Tokenization is a complicated matter.
Reorganize all the tests for tokenize() and its helper normalize_token() into their own separate test module.
This PR is a verbatim cut+paste.

This will cause pretty large merge conflicts with https://github.com/dask/dask/pull/10808
What's the motivation to do this?

This will cause pretty large merge conflicts with #10808
What's the motivation to do this?

Code cleanliness. I wasn't aware of other major work on tokenize(); I can retire this for now if it's too inconvenient.


Map Filters working

Got the filters to correctly filter by location on the browse page, meaning only jobs whose radius circles intersect with your selected one will show up.

Is there supposed to be an actual map shown on the browse page?

I just added a small check for the radius field so that users can't type in non numeric characters

Jobs are not showing up in the view jobs page.


Failed assertion: line 378 pos 10: 'data != null' : a non-null String must be provided to a Text widget

Hi guys. I'm new to writing issues here, so if I have a mistake, feel free to correct me (:
I'm having a hard time parsing JSON in the background.

Here is my code-
import 'dart:convert';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

Future<List<Photo>> fetchPhotos(http.Client client) async {
  final response =
      await client.get('https://jsonplaceholder.typicode.com/photos');

  // Use the compute function to run parsePhotos in a separate isolate.
  return compute(parsePhotos, response.body);
}

// A function that converts a response body into a List<Photo>.
List<Photo> parsePhotos(String responseBody) {
  final parsed = jsonDecode(responseBody).cast<Map<String, dynamic>>();

  return parsed.map<Photo>((json) => Photo.fromJson(json)).toList();
}

class Photo {
  final int albumId;
  final int id;
  final String title;
  final String url;
  final String thumbnailUrl;

  Photo({this.albumId, this.id, this.title, this.url, this.thumbnailUrl});

  factory Photo.fromJson(Map<String, dynamic> json) {
    return Photo(
      albumId: json['albumId'] as int,
      id: json['id'] as int,
      title: json['title'] as String,
      url: json['url'] as String,
      thumbnailUrl: json['thumbnailUrl'] as String,
    );
  }
}

class FoodApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final appTitle = 'Isolate Demo';

    return MaterialApp(
      title: appTitle,
      home: FoodPage(title: appTitle),
    );
  }
}

class FoodPage extends StatelessWidget {
  final String title;

  FoodPage({Key key, this.title}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: FutureBuilder<List<Photo>>(
        future: fetchPhotos(http.Client()),
        builder: (context, snapshot) {
          if (snapshot.hasError) print(snapshot.error);

          return snapshot.hasData
              ? PhotosList(photos: snapshot.data)
              : Center(child: CircularProgressIndicator());
        },
      ),
    );
  }
}

class PhotosList extends StatelessWidget {
  final List<Photo> photos;

  PhotosList({Key key, this.photos}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GridView.builder(
      gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 2,
      ),
      itemCount: photos.length,
      itemBuilder: (context, index) {
        return Image.network(photos[index].thumbnailUrl);
      },
    );
  }
}

Help?

Thank u guys, iDo.

@idocalm
Your question is better suited for StackOverflow, as this repo is for tracking bugs and feature requests for flutter framework. Please see https://flutter.dev/community for resources and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing from here, as it's a code implementation issue.


can't use python3

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
version: 2.0.5
In the Environment management, I had set  PYTHON_HOME=/usr/bin/python3 . But when I exec the python scripts, it still used the default python2.7
What you expected to happen
I want to use python3
How to reproduce
It still exists.
Anything else
No response
Version
2.0.5
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

2.0.5 doesn't support set PYTHON_HOME, you need to link your python3 to python


Playlist thumbnail, Python package

Checklist

[x] I'm asking a question
[x] I've looked through the README and FAQ for similar questions
[x] I've searched the bugtracker for similar questions including closed ones

youtube_dl version
>pip show youtube_dl

Name: youtube-dl
Version: 2021.3.25
Summary: YouTube video downloader
Home-page: https://github.com/ytdl-org/youtube-dl
Author: Ricardo Garcia
Author-email<EMAIL_ADDRESS>License: Unlicense
Location: \venv\lib\site-packages
Requires:
Required-by:

Python script
from json import dump
from youtube_dl import YoutubeDL

url = 'https://www.youtube.com/playlist?list=OLAK5uy_lR-TqR-DobKiF9DtVzELCPz7_v-bUr5fM'
info_filename = './info.json'

info =  YoutubeDL({}).extract_info(url, download=False)
with open(info_filename, 'w') as info_file:
    dump(info, info_file, indent=4)

Result info.json
{
    "_type": "playlist",
    "entries": [
        ...
    ],
    "id": "OLAK5uy_lR-TqR-DobKiF9DtVzELCPz7_v-bUr5fM",
    "title": "LAUNCH",
    "extractor": "youtube:tab",
    "webpage_url": "https://www.youtube.com/playlist?list=OLAK5uy_lR-TqR-DobKiF9DtVzELCPz7_v-bUr5fM",
    "webpage_url_basename": "playlist",
    "extractor_key": "YoutubeTab"
}

Question
Does it possible to retrieve playlist thumbnails urls with current youtube_dl python package?
Does it possible to download playlist thumbnails with current youtube_dl python package?

Playlist thumbnails are not part of the extraction, it seems.


Fix small typo in README.md

Fix minor typo in the denomination problem present in the "Greedy Algorithms" section of README.md

Good catch thanks!


how can i get the return value of the global dependices?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from uvicorn import run
from fastapi import FastAPI, Depends, Request

def dependence(params_a: str, params_b: str):
    return {'a': params_a, 'b': params_b}

app = FastAPI(
    docs_url="/docs",
    dependencies=[Depends(dependence)]
)

@app.get("/test")
def api_test(name: str):
    return {'name': name}

if __name__ == '__main__':
    run("run:app", host="<IP_ADDRESS>", port=9114, reload=True, debug=True)

Description
I define a dependency(dependence) and use it globally, it return a dict.
how can i get the return value of this global dependency in router 'api_test' ?
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.70.0
Python Version
python3.9.7
Additional Context
No response

you cant, since Dependencies in path operation decorators or Global Dependencies is introduced in the docs for dependencies that didnt return value
the way around is you store the return to request.state

Thank for the res, thats how i resolve this problem. but thought there was a better way to solve it.

@negadive Thank for the res, thats how i resolve this problem. but thought there was a better way to solve it.

@negadive  Thank for the res, thats how i solved this problem. but i thought there was a better way to solve it.

is there a way to save this in the app context instead. ie. app.state .
I have it working on a single file, but with multiple files, I run into a circular import error.

To my understanding, FastAPI should cache the resolved results of dependency functions (for each request, I think?)
So in most cases you could do something like this without any real performance penalty:
from fastapi import FastAPI, Depends

def dependence(params_a: str, params_b: str):
    return {'a': params_a, 'b': params_b}

app = FastAPI(
    docs_url="/docs",
    dependencies=[Depends(dependence)]
)

@app.get("/need-dep")
def api_test(val = Depends(dependence)):
	# Do something with the dependency's return value
    ...

@app.get("/no-dep")
def api_test():
	# Don't need the dependency's returned value, but it gets called anyway
    ...

While this doesn't really solve the issue of having to repeatedly request the dependency in every one of your view functions, this is the approach I use to enforce authentication on all of my routes, and just request the (hopefully cached) auth information in the view functions that need it.


Events tab bar changes

What was changed
Made the tab bar look more like new UI without the pieces we don't have yet
Images

I love it… I just have the tiniest nit.


Fix tab padding

Pull Request Test Coverage Report for Build 1841

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 80.317%

Totals

Change from base Build 1832:
0.0%

Covered Lines:
1573

Relevant Lines:
1886

💛  - Coveralls


Overlays should not require default.nix

Issue description
I've been using overlays for a while but recently noticed edge cases:
❯ nix-prefetch-url -A wget.src
error: getting status of ‘/data/dermetfan/.dotfiles/.config/nixpkgs/overlays/default.nix’: No such file or directory

Hydra fails to evaluate my jobsets and gives an error about overlays not being found. Unfortunately I have no copy of the error at hand as my server recently died.
If I place an empty default.nix (self: super: {}) the error changes, but probably only due to me using nix-prefetch-url incorrectly:
❯ nix-prefetch-url -A wget.src
error: the expression selected by the selection path ‘wget.src’ should be a set but is a function

The manual explains the layout of the overlays directory like this:

If the path is a directory, then we take the content of the directory, order it lexicographically, and attempt to interpret each as an overlay by:

Importing the file, if it is a .nix file.
Importing a top-level default.nix file, if it is a directory.

If I understand correctly that means ~/.config/nixpkgs/overlays/default.nix should not be required.
Technical details

System: 18.03pre117013.aebdc892d6 (Impala)
Nix version: nix-env (Nix) 1.11.15
Nixpkgs version: 18.03pre117013.aebdc892d6
Sandboxing enabled: no

What is the contents of /data/dermetfan/.dotfiles/.config/nixpkgs/overlays/?

With the same technical details, I get:
$ nix-prefetch-url -A wget.src
error: getting status of ‘/home/u/default.nix’: No such file or directory

I think the issue is entirely unrelated to overlays, but due to where you invoke your command. You can only use commands with --attr or -A on a Nix expression or a tree of Nix expressions. If you execute what you've shown in your home, which does not have a default.nix, then it will fail, simply because there is Nix expression.

@Fridh oh that was a dense moment by me. :woman_facepalming:
@dermetfan ok so it works for me with the same technical details as you:
$ nix-prefetch-url -A wget.src
downloading ‘http://ftpmirror.gnu.org/wget/wget-1.19.1.tar.xz’... [1755/2062 KiB, 305.7 KiB/s]
path is ‘/nix/store/2s5kb131v8fd27ws3ch5f957mq5vs1qn-wget-1.19.1.tar.xz’
1ljcfhbkdsd0zjfm520rbl1ai62fc34i7c45sfj244l8f6b0p58c

(I don't have a ~/.config/nixpkgs/overlays/default.nix.)

Indeed, no problem from inside <nixpkgs>. I may reopen when I get the Hydra machine running again so we can look into the other problem. Thanks for the clarification so far!


Reduce log noise while managing Connection session

Hello, thanks for the work you've done here !
I'm using this lib to run queries against databricks using DBT. While doing that it creates lots of logs related to session management (see below), which makes it not easy to read/debug. It seems related to logger statements logger.info L242 & L355 in src/databricks/sql/client.py

Logs
...
12:10:47  databricks-sql-connector adapter: Closing session 01ee9a79-d0a2-1670-bfb3-dfdfe4cb9208
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0d9-14f7-a643-e7d43bf4c85a
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0be-1fa9-8b0b-4c61e6bbab13
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0c2-106d-a003-b2b6e95afe0b
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0e2-1f5c-b406-9b796c9c3748
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0c1-1778-9c57-41d8ac72bc3a
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0e3-17e7-93bf-f552ccf11dd9
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0ec-1b19-85cc-a7c394215e9e
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0d9-14f7-a643-e7d43bf4c85a
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0f4-119f-823f-15547898104e
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0f6-1ef3-9f85-304a48e7e6ce
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0fa-19f9-aff4-dbf9e8c7cda3
12:10:48  databricks-sql-connector adapter: Successfully opened session 01ee9a79-d0fd-1ab9-a6bb-c06708a4da92
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0e2-1f5c-b406-9b796c9c3748
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0e3-17e7-93bf-f552ccf11dd9
12:10:48  databricks-sql-connector adapter: Closing session 01ee9a79-d0ec-1b19-85cc-a7c394215e9e
...

Some questions :

Why are those statements in info mode ? (and should I submit a PR to update it to debug statements)
Any idea how can I deactivate this ? If I was using the client directly, I could deactivate the logger. But using the dbt cli, it becomes quite complex

from databricks.sql.client import logger

logger.setLevel(logging.WARNING)

If you want to keep this level of log, would it be possible to use some kind of parameters to deactivate ? like an env variable ?

Thanks for your help !

Why are those statements in info mode ?

We believe this is the correct level of detail for these log messages.

Any idea how can I deactivate this ? ... would it be possible to use some kind of parameters to deactivate ? like an env variable ?

Yes, it's already built-in to dbt-databricks to control the log-level of databricks-sql-connector. You can set the environment variable DBT_DATABRICKS_CONNECTOR_LOG_LEVEL to any valid python log level (DEBUG, INFO, WARNING, ...).

Oh, nice, thanks for your help !


fix(ngSrc) don't update the src property for iframe elements in IE:

no longer set the "src" property on iframe elements in Internet Explorer to avoid sending a duplicate request for iframe content
Closes #9843

Would it be possible to know for what specific IE versions this fix is aimed at? Also, please open an issue with Microsoft and post the link to the issue here

As mentioned in the issue, this fixed the bug for at least IE 8, 10 and 11.

Any news on this merge? Is it going to happen?

As an alternative to "hacking" this for IE, could we consider whether we need to actually set the attribute on the element at all? Instead only ever set the property, rather than the attribute. Perhaps that will be enough to trigger the href or src to become active.
Some initial playing got me to this:
forEach(['src', 'srcset', 'href'], function(attrName) {
  var normalized = directiveNormalize('ng-' + attrName);
  ngAttributeAliasDirectives[normalized] = function() {
    return {
      priority: 99, // it needs to run after the attributes are interpolated
      link: function(scope, element, attr) {
        var propName = attrName,
            name = attrName;

        if (attrName === 'href' &&
            toString.call(element.prop('href')) === '[object SVGAnimatedString]') {
          name = 'xlinkHref';
          attr.$attr[name] = 'xlink:href';
          propName = null;
        }

        attr.$observe(normalized, function(value) {
          console.log(attr, element.href)
          if (!value) value = null;
          attr.$set(name, value, !propName);
          if (propName) {
            element.prop(propName, attr[name]);
          }
          console.log(attr, element.href)
        });
      }
    };
  };
});

It fails a dozen unit tests but these could be because they are expecting the attributes rather than the properties to have changed.