iPhone, iPad Issue: Owl carousel not working in an iframe when view with safari.

I have used Owl carousel recently. Everything is working fine in desktop browsers. But in iPad/iPhone safari it's not working fine with the iframe. The width of the iframe become wider base on owl-wrapper width.
Here is the example in codepen. I really need you help.
http://codepen.io/anon/pen/KppXgx
Thanks in advance.

I'm experiencing this exact same issue. It's in a codepen embed on this page: http://www.designcouch.com/home/why/2015/05/19/ux-exercise-building-a-responsive-survey/

@sanvuthy Your demo uses OwlCarousel 1, which is a separate project. You can find their issue tracker at https://github.com/OwlFonk/OwlCarousel/issues. You can also try with our newest version 2.0.0-beta.3 which seems to work in my limited testing.
@designcouch Your demo uses a quite pretty old beta version. I think it is fixed in the newest version, so try that (available on Bower or downloadable from http://smashingboxes.github.io/download/owl.carousel.2.0.0-beta.3.zip) and if it isn't resolved, please open a new issue.
Thanks!


T/G Black D’Hide

🐛 Bug Report
Black D’hide T/G (the chaps, at least) don’t seem to be recognized as the required gear for (at least) the chaos ele.
https://discord.com/channels/342983479501389826/668073484731154462/758856175999123488

Similar items #706 have been implemented and fixes this issue.

Similar items #706 have been implemented and fixes this issue.


IFTTT Recipe

Hi there, I have followed your instructions and have managed to start a server on my mac, as well as port forwarded it. I am lost on the IFTTT making a recipe part. I started making the applet and am unsure of what you mean by Value 1, Value 2 and Value 3 and where that goes in the applet-making process. If you could clarify that would be great. Sorry for any inconvenience as I am an amateur with these things.
PS for andromeda app, do I need to create a domain name or is using my public IP address with port sufficient for the setup?

These values are what you should see when you click the ingredients button when filling out the Pushbullet part. You'll need to plug them in as specified or how you feel. Where you put each value is essentially where you are putting each component of the notification.

Ah so the Pushbullet service would be the action. Would I be pushing a note or a link?

A link. The link (in the format in the instructions) will let you auto launch the app when you tap the notification

Sorry to bother you one last time, does this look anything like how it should be done?

I mean it'll work, just won't give what you want. Fill it out like I did. Next time thought please try before asking?

I apologize. I have been trying to send the messages but it has not been working.  I will keep trying to figure it out. Thank you so much for your time.

Can you post your server log file? It should be in your home directory under iMessageProxy. The file should be today's date.

2017-05-03.txt

Does the app properly work/can you see and send messages? The log doesn't tell me much since you haven't really done anything. Have you received messages while the server is running?

2017-05-03.txt
Here is an updated log file when I texted a message from myself to myself. It does not show "Got 1 new message" until i close the message proxy app and the script reopens it.

Hi there, just wanted to say that everything is now working and thank you so much for your help. This is such an excellent project and I have learnt so much.


post release 0.3.5

@chanseokoh update to 0.3.6-SNAPSHOT

Codecov Report

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

@@           Coverage Diff           @@
##           master     #424   +/-   ##
=======================================
  Coverage   65.13%   65.13%
=======================================
  Files          64       64
  Lines        1761     1761
  Branches      272      272
=======================================
  Hits         1147     1147
  Misses        499      499
  Partials      115      115

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 11b1d81...3548fd0. Read the comment docs.


Type: Symbol, etc: Cannot be used in match statements

Symbol, and any other type we define as a TaggedVal or with a RawVal cannot be used in a match statement.
They can't be used in match patterns because the RawVal type is not #[derive(Eq, PartialEq)], and types must derive those traits to be used in pattern matching. It's not sufficient that we implement the traits manually, they must be derived.
This has an unfortunate affect that mapping we need to do on Symbol's and other primitive non-object RawVal/TaggedVal types must occur within a set of if blocks, which Rust does not optimize as well as it does match blocks.
For a small match block of only 3 conditions this causes a Symbol mapping to be an extra 37 bytes in compiled WASM. Given that we use Symbols as constants in enum encoding, this problem seems to be worth solving.
Related discussion: https://discord.com/channels/897514728459468821/996186142007369778

Options:

We derive Eq, PartialEq on RawVal.

We stop aliasing TaggedVal for primitive types like Symbol, aka #197.

The underlying weirdness here is that rust marks derived-eq types as #[structural_match] since they are, by definition, treating equality as structural. There's a feature to let us mark our own types this way -- https://doc.rust-lang.org/unstable-book/language-features/structural-match.html -- but I'm not 100% sure we actually ought to be approaching this via match.
I don't think "doesn't optimize if as well as match" is exactly what's happening here; I think it's that structural equality is cheaper than the equality we have defined in our trait, and we might want to make it possible to access that from user code somehow. And possibly the right angle to do that is enabling compare-against-a-constant via constants-in-patterns. But I'm not sure. Need to think it over and play around a bit and I'm not sure it's the highest priority to get right just now.

@graydon pointed out that as an interim solution we can use the RawVal::get_payload function and then do matches on it. This works sufficiently as an optimization in https://github.com/stellar/rs-stellar-contract-sdk/pull/230.
I'm going to keep this issue open because I think we should address this problem holistically.

possibly the right angle to do that is enabling compare-against-a-constant

I was doing a compare against a constant with the if-else blocks and still seeing much more code being generated.

@graydon fixed this recently 🎉. RawVal still cannot b e used in matches but other types like Symbol can be. 🎉

Doh. I was looking at the wrong code 🤦🏻 . This hasn't happened yet.

Here's an example of where this is inconvenient:
      const DEPOSIT_RAW: u64 = symbol!("deposit").to_raw().get_payload();
         match function.to_raw().get_payload() {
             DEPOSIT_RAW => {

https://github.com/stellar/soroban-examples/pull/120/files#diff-ad9bb39cd40eef28cb328f2278447eb2eaf0ee3f7f6a24322a9d1e7ea5de1541R186-R188

So I think what I can do here is make the new small-value wrapper types (SymbolSmall and such) wrap a plain u64 rather than a RawVal (and I guess remove the AsRef/AsMut<RawVal> impls, assuming nobody's using those) and then we can do #[derive(Eq,PartialEq)] on each type done that way. Not beautiful but it ought to work. I'll move this under the value reform issue #679 to track.

I should note that this will only work with SmallSymbol rather than general Symbol -- the latter wraps possibly-host-values that can't be shallow-compared for equality at all.

(postponing this for now -- will discuss whether it's worth it on the small-value cases with @leighmcculloch when he's back)

It's not possible afaik to do match on Symbol now that Symbol's are no longer constant values. Symbols can be handles to host data, and therefore cannot be constant.


Validate updates of the AuditPolicy against the k8s version of Shoots

How to categorize this PR?

/area control-plane
/area audit-logging
/kind bug
What this PR does / why we need it:
With this PR updates to the audit policy referenced by Shoots are validated against the kubernetes versions of those Shoots. Otherwise, users can update the audit policy to an audit.k8s.io version which is not supported by the current kubernetes version of the shoot. This causes errors on subsequent reconciliations as the kube-apiserver will not be able to start. An example on how this can happen is given in the details below

1. Create an audit policy `ConfigMap` in the `Project` namespace with the following content:
    ```
    kind: ConfigMap
    metadata:
      name: audit-everything
      namespace: garden-local
    data:
      policy: |
        apiVersion: audit.k8s.io/v1
        kind: Policy
        rules:
          - level: Metadata
    ```
2. Create a `Shoot` with k8s version >= 1.24 that references the `audit-everything` audit policy `ConfigMap`
3. Update the audit policy `ConfigMap` so that its `apiVersion` is `audit.k8s.io/v1beta1` which is not supported in k8s 1.24
    ```
     kind: ConfigMap
    metadata:
      name: audit-everything
      namespace: garden-local
    data:
      policy: |
        apiVersion: audit.k8s.io/v1beta1
        kind: Policy
        rules:
          - level: Metadata
    ```
4. Reconcile the shoot and observe that the `kube-apiserver` cannot start with the following error:
    ```
      I0216 22:08:29.298604   30814 flags.go:64] FLAG: --watch-cache="true"
      I0216 22:08:29.298606   30814 flags.go:64] FLAG: --watch-cache-sizes="[]"
      I0216 22:08:29.298977   30814 server.go:158] Version: v1.24.8
      I0216 22:08:29.299005   30814 server.go:160] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
      I0216 22:08:29.299474   30814 dynamic_serving_content.go:113] "Loaded a new cert/key pair" name="serving-cert::/srv/kubernetes/apiserver/tls.crt::/srv/kubernetes/apiserver/tls.key"
      I0216 22:08:29.559357   30814 dynamic_cafile_content.go:119] "Loaded a new CA Bundle and Verifier" name="client-ca-bundle::/srv/kubernetes/ca-client/bundle.crt"
      I0216 22:08:29.559430   30814 dynamic_cafile_content.go:119] "Loaded a new CA Bundle and Verifier" name="request-header::/srv/kubernetes/ca-front-proxy/bundle.crt"
      I0216 22:08:29.559732   30814 oidc.go:283] OIDC: No x509 certificates provided, will use host's root CA set
      I0216 22:08:29.559922   30814 shared_informer.go:255] Waiting for caches to sync for node_authorizer
      E0216 22:08:29.562310   30814 run.go:74] "command failed" err="loading audit policy file: failed decoding: no kind \"Policy\" is registered for version \"audit.k8s.io/v1beta1\" in scheme \"pkg/audit/scheme.go:30\": from file /etc/kubernetes/audit/audit-policy.yaml"
      ]
    ```

Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Updates to the `AuditPolicy` referenced by `Shoot`s are now also validated against the kubernetes versions of those `Shoot` clusters. This fixes an issue where it was possible to specify an unsupported `audit.k8s.io` version when updating the `ConfigMap` which contains the `AuditPolicy`.

/assign


Can not create spark_connect.

this is result of sys.getenv(), My sytem is Win 7.
> Sys.getenv()
_DFX_INSTALL_UNSIGNED_DRIVER
                      1
ALLUSERSPROFILE       C:\ProgramData
APPDATA               C:\Users\Administrator\AppData\Roaming
asl.log               Destination=file
CommonProgramFiles    C:\Program Files\Common Files
CommonProgramFiles(x86)
                      C:\Program Files (x86)\Common Files
CommonProgramW6432    C:\Program Files\Common Files
COMMPath              C:\Program Files\Lenovo\Communications
                      Utility
COMPUTERNAME          MS-20160616HVCK
ComSpec               C:\Windows\system32\cmd.exe
DISPLAY               :0
FP_NO_HOST_CHECK      NO
GFORTRAN_STDERR_UNIT
                      -1
GFORTRAN_STDOUT_UNIT
                      -1
HADOOP_HOME           C:\Users\Administrator\AppData\Local\rstudio\spark\Cache\spark-1.6.1-bin-hadoop2.6\tmp\hadoop
HOME                  C:/Users/Administrator/Documents
HOMEDRIVE             C:
HOMEPATH              \Users\Administrator
LOCALAPPDATA          C:\Users\Administrator\AppData\Local
LOGONSERVER           \\MS-20160616HVCK
MOZ_PLUGIN_PATH       C:\Program Files (x86)\Foxit Software\Foxit
                      Reader\plugins\
NUMBER_OF_PROCESSORS
                      4
OS                    Windows_NT
PATH                  C:\Program
                      Files\R\R-3.3.1\bin\x64;C:\Windows\System32;C:\Program
                      Files (x86)\Intel\iCLS Client\;C:\Program
                      Files\Intel\iCLS
                      Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
                      Files\Intel\Intel(R) Management Engine
                      Components\DAL;C:\Program Files
                      (x86)\Intel\Intel(R) Management Engine
                      Components\DAL;C:\Program
                      Files\Intel\Intel(R) Management Engine
                      Components\IPT;C:\Program Files
                      (x86)\Intel\Intel(R) Management Engine
                      Components\IPT;C:\Program
                      Files\Lenovo\Bluetooth Software\;C:\Program
                      Files\Lenovo\Bluetooth
                      Software\syswow64;C:\Program Files (x86)\ATI
                      Technologies\ATI.ACE\Core-Static;C:\Anaconda2;C:\Anaconda2\Scripts;C:\Anaconda2\Library\bin;C:\Windows\System32;C:\Program
                      Files\Git\cmd
PATHEXT               .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
                      AMD64
PROCESSOR_IDENTIFIER
                      Intel64 Family 6 Model 69 Stepping 1,
                      GenuineIntel
PROCESSOR_LEVEL       6
PROCESSOR_REVISION    4501
ProgramData           C:\ProgramData
ProgramFiles          C:\Program Files
ProgramFiles(x86)     C:\Program Files (x86)
ProgramW6432          C:\Program Files
PSModulePath          C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC                C:\Users\Public
R_ARCH                /x64
R_COMPILED_BY         gcc 4.9.3
R_DOC_DIR             C:/PROGRA~1/R/R-33~1.1/doc
R_HOME                C:/PROGRA~1/R/R-33~1.1
R_LIBS_USER           C:/Users/Administrator/Documents/R/win-library/3.3
R_USER                C:/Users/Administrator/Documents
RMARKDOWN_MATHJAX_PATH
                      C:/Program
                      Files/RStudio/resources/mathjax-26
RS_LOCAL_PEER         \\.\pipe\33282-rsession
RS_RPOSTBACK_PATH     C:/Program Files/RStudio/bin/rpostback
RS_SHARED_SECRET<PHONE_NUMBER>1
RSTUDIO               1
RSTUDIO_MSYS_SSH      C:/Program
                      Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC        C:/Program Files/RStudio/bin/pandoc
RSTUDIO_SESSION_PORT
                      33282
RSTUDIO_USER_IDENTITY
                      Administrator
RSTUDIO_WINUTILS      C:/Program Files/RStudio/bin/winutils
SESSIONNAME           Console
SystemDrive           C:
SystemRoot            C:\Windows
TEMP                  C:\Users\ADMINI~1\AppData\Local\Temp
TMP                   C:\Users\ADMINI~1\AppData\Local\Temp
USERDOMAIN            MS-20160616HVCK
USERNAME              Administrator
USERPROFILE           C:\Users\Administrator
VBOX_MSI_INSTALL_PATH
                      C:\Program Files\Oracle\VirtualBox\
windir                C:\Windows
windows_tracing_flags
                      3
windows_tracing_logfile
                      C:\BVTBin\Tests\installpackage\csilogfile.log

I have setted System variable PATH.when I  run, it give me this Error.
> library(sparklyr)
> library(dplyr)

载入程辑包：‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> sc <- spark_connect(master = "local")
Created default hadoop bin directory under: C:\Users\Administrator\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\tmp\hadoop
Error in sparkapi::start_shell(master = master, spark_home = spark_home,  :
  Failed to launch Spark shell. Ports file does not exist.
    Path: C:\Users\Administrator\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\bin\spark-submit.cmd
    Parameters: --class, sparkapi.Backend, --jars, "C:\Program Files\R\R-3.3.1\library\sparklyr\java\sparklyr-1.6.1.jar", --packages, "com.databricks:spark-csv_2.11:1.3.0","com.amazonaws:aws-java-sdk-pom:1.10.34", C:\Program Files\R\R-3.3.1\library\sparkapi\java\sparkapi-1.6.1.jar, C:\Users\ADMINI~1\AppData\Local\Temp\RtmpwTpAcK\file2c08564216e2.out

Ivy Default Cache set to: C:\Users\Administrator\.ivy2\cache
The jars for the packages stored in: C:\Users\Administrator\.ivy2\jars
:: loading settings :: url = jar:file:/C:/Users/Administrator/AppData/Local/rstudio/spark/Cache/spark-1.6.2-bin-hadoop2.6/lib/spark-assembly-1.6.2-hadoop2.6.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
com.databricks#spark-csv_2.11 added as a dependency
com.amazonaws#aws-java-sdk-pom added as a dependency
:: resolving dep

what should I do?

@EricAugust could you run sessionInfo() and share the results?
Could you also try connecting as follows to rule-out any proxy related issues?
config <- spark_config()
config[["sparklyr.defaultPackages"]] <- NULL
sc <- spark_connect(master = "local", config = config)

Could you explain how was Spark installed? Using spark_install?

@javierluraschi
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] dplyr_0.5.0     sparklyr_0.2.30

loaded via a namespace (and not attached):
 [1] magrittr_1.5    R6_2.1.2        assertthat_0.1  rprojroot_1.0-2
 [5] parallel_3.3.1  DBI_0.4-1       tools_3.3.1     withr_1.0.2
 [9] yaml_2.1.13     rappdirs_0.3.1  tibble_1.1      Rcpp_0.12.5
[13] config_0.1.0    digest_0.6.9    sparkapi_0.3.20

I used the commands you gave to me , got this error
> config <- spark_config()
> config[["sparklyr.defaultPackages"]] <- NULL
> sc <- spark_connect(master = "local", config = config)
Error in sparkapi::start_shell(master = master, spark_home = spark_home,  :
  Failed to launch Spark shell. Ports file does not exist.
    Path: C:\Users\Administrator\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\bin\spark-submit.cmd
    Parameters: --class, sparkapi.Backend, --jars, "C:\Program Files\R\R-3.3.1\library\sparklyr\java\sparklyr-1.6.1.jar", C:\Program Files\R\R-3.3.1\library\sparkapi\java\sparkapi-1.6.1.jar, C:\Users\ADMINI~1\AppData\Local\Temp\RtmpayvMam\file53f4274e59ad.out

Warning: Local jar C:\Program does not exist, skipping.
java.lang.ClassNotFoundException: sparkapi.Backend
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.spark.util.Utils$.class

I use New Connection chose spark 1.6.2,-> connect,  then chose install

@EricAugust a fix has been pushed, could you please upgrade to the latest version of sparklyr (version 0.2.31 addresses improves this issue), restart your r-session and retry?
To upgrade sparklyr, you can run:
devtools::install_github("rstudio/sparklyr")

Feel free to reopen this issue if this does not fix this connection issue.

@javierluraschi
Thank you! I can create a spark_connect. but when I applied copy_to function got an error.
sc <- spark_connect(master = "local")
Warning message:
In create_hive_context_v1(sc) :
  Failed to create Hive context, falling back to SQL. Some operations, like window-functions, will not work
> library(dplyr)
> iris_tbl <- copy_to(sc, iris)
Error: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.NullPointerException
	at java.lang.ProcessBuilder.start(Unknown Source)
	at org.apache.hadoop.util.Shell.runCommand(Shell.java:482)
	at org.apache.hadoop.util.Shell.run(Shell.java:455)
	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715)
	at org.apache.hadoop.fs.FileUtil.chmod(FileUtil.java:873)
	at org.apache.hadoop.fs.FileUtil.chmod(FileUtil.java:853)
	at org.apache.spark.util.Utils$.fetchFile(Utils.scala:407)
	at org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$5.apply(Executor.scala:430)
	at org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$5.apply(Executor.scala:422)
	at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772

@javierluraschi
I have installed again. now it works.but when I Click SparkUI or Log got this error.
Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning message:
In open.connection(con, "rb") :
  cannot open file 'log4j.spark.log': No such file or directory
Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning message:
In open.connection(con, "rb") :
  cannot open file 'log4j.spark.log': No such file or directory

@EricAugust Glad to hear this is moving along. To troubleshoot the spark_log and spark_web issue. Could you share the contents of the hive-site.xml located under C:\Users\Administrator\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\conf\?

i am trying to install sparklyr and getting
Downloading GitHub repo rstudio/sparklyr@master
from URL https://api.github.com/repos/rstudio/sparklyr/zipball/master
Installing sparklyr
Installing 8 packages: config, curl, DBI, hms, rappdirs, readr, rprojroot, tibble
Installing packages into ‘/rstudio/rpackages-local/mkaja’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/config_0.2.tar.gz'
Content type 'unknown' length 11858 bytes (11 KB)
downloaded 11 KB
trying URL 'https://cran.rstudio.com/src/contrib/curl_1.2.tar.gz'
Content type 'unknown' length 294339 bytes (287 KB)
downloaded 287 KB
trying URL 'https://cran.rstudio.com/src/contrib/DBI_0.5.tar.gz'
Content type 'unknown' length 258316 bytes (252 KB)
downloaded 252 KB
trying URL 'https://cran.rstudio.com/src/contrib/hms_0.2.tar.gz'
Content type 'unknown' length 7082 bytes
downloaded 7082 bytes
trying URL 'https://cran.rstudio.com/src/contrib/rappdirs_0.3.1.tar.gz'
Content type 'unknown' length 12838 bytes (12 KB)
downloaded 12 KB
trying URL 'https://cran.rstudio.com/src/contrib/readr_1.0.0.tar.gz'
Content type 'unknown' length 196055 bytes (191 KB)
downloaded 191 KB
trying URL 'https://cran.rstudio.com/src/contrib/rprojroot_1.0-2.tar.gz'
Content type 'unknown' length 16550 bytes (16 KB)
downloaded 16 KB
trying URL 'https://cran.rstudio.com/src/contrib/tibble_1.1.tar.gz'
Content type 'unknown' length 46526 bytes (45 KB)
downloaded 45 KB
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
Error in library(sparklyr) : there is no package called ‘sparklyr’
Execution halted
The downloaded source packages are in
‘/tmp/RtmpCSfDRh/downloaded_packages’
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL
'/tmp/RtmpCSfDRh/devtoolsc1ef18da07e8/rstudio-sparklyr-dee4d35'
--library='/rstudio/rpackages-local/mkaja' --install-tests
ERROR: dependencies ‘tibble’, ‘readr’, ‘config’, ‘rappdirs’, ‘rprojroot’ are not available for package ‘sparklyr’

removing ‘/rstudio/rpackages-local/mkaja/sparklyr’
Error: Command failed (1)
In addition: Warning messages:
1: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘config’ had non-zero exit status
2: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘curl’ had non-zero exit status
3: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘DBI’ had non-zero exit status
4: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘hms’ had non-zero exit status
5: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘rappdirs’ had non-zero exit status
6: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘rprojroot’ had non-zero exit status
7: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘tibble’ had non-zero exit status
8: In utils::install.packages(pkgs, repos = repos, type = type, ...,  :
installation of package ‘readr’ had non-zero exit status

@javierluraschi
I have the same issue as @EricAugust , this is with the latest version of sparklyr (0.3.12) on windows, the issue is that when I click on the any of SparUI in RStudio or on the "Log" icon i get the exact same error as mentioned by EricAugust. Note that i had to do a tweak to create the spark context (this was mentioned also mentioned in this thread). i.e.,
config <- spark_config()
config[["sparklyr.defaultPackages"]] <- NULL
sc <- spark_connect(master = "local", config = config)
As requested above i have uploaded the hive-site.xml (i have zipped it to avoid error)
hive-site.zip
when i click on the SparkUI i get this error as below

Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning message:
In open.connection(con, "rb") :
cannot open file 'log4j.spark.log': No such file or directory

I've got the following errors under windows...
-------------------------------------- {r code}
library(sparklyr)
Sys.setenv(SPARK_HOME="C:/spark-1.6.2-bin-hadoop2.6")
config <- spark_config()
config[["sparklyr.defaultPackages"]] <- NULL
sc <- spark_connect(master = "local", config = config)
---------------------------------------- {error}
Error in force(code) :
Failed while connecting to sparklyr to port (8880) for sessionid (5335): Gateway in port (8880) did not respond after (60) seconds.
Path: C:\spark-1.6.2-bin-hadoop2.6\bin\spark-submit.cmd
Parameters: --class, sparklyr.Backend, --packages, com.databricks:spark-csv_2.11:1.3.0, C:\Program Files\R\R-3.3.1\library\sparklyr\java\sparklyr-1.6-2.10.jar, 8880, 5335
Traceback:
tryCatch({
timeout <- spark_config_value(config, "sparklyr.gateway.start.timeout", 60)
gatewayInfo <- spark_connect_gateway(gatewayAddress, gatewayPort, sessionId, waitSeconds = timeout, config = config, canConnect = TRUE)
}, error = function(e) {
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)
})
tryCatchList(expr, classes, parentenv, handlers)
tryCatchOne(expr, names, parentenv, handlers[[1]])
value[3]
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)
---- Output Log ----
Ivy Default Cache set to: C:\Users\chongmu.ivy2\cache
The jars for the packages stored in: C:\Users\chongmu.ivy2\jars
:: loading settings :: url = jar:file:/C:/spark-1.6.2-bin-hadoop2.6/lib/spark-assembly-1.6.2-hadoop2.6.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
com.databricks#spark-csv_2.11 added as a dependency
:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0
confs: [default]
found com.databricks#spark-csv_2.11;1.3.0 in central
found org.apache.commons#commons-csv;1.1 in central
found com.univocity#univocity-parsers;1.5.1 in central
:: resolution report :: resolve 565ms :: artifacts dl 7ms
:: modules in use:
com.databricks#spark-csv_2.11;1.3.0 from central in [default]
com.univocity#univocity-parsers;1.5.1 from central in [default]
org.apache.commons#commons-csv;1.1 from central in [default]
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      default     |   3   |   0   |   0   |   0   ||   3   |   0   |
---------------------------------------------------------------------
:: retrieving :: org.apache.spark#spark-submit-parent
confs: [default]
0 artifacts copied, 3 already retrieved (0kB/19ms)
Warning: Local jar C:\Program does not exist, skipping.
java.lang.ClassNotFoundException: sparklyr.Backend
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.spark.util.Utils$.classForName(Utils.scala:175)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:689)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
---- Error Log ----
$ Sys.setenv(SPARK_HOME="c:/spark-2.0.0-bin-hadoop2.7")
$ sc <- spark_connect(master = "local")
Error in force(code) :
Failed while connecting to sparklyr to port (8880) for sessionid (209): Gateway in port (8880) did not respond after (60) seconds.
Path: c:\spark-2.0.0-bin-hadoop2.7\bin\spark-submit.cmd
Parameters: --class, sparklyr.Backend, --packages, com.databricks:spark-csv_2.11:1.3.0, C:\Program Files\R\R-3.3.1\library\sparklyr\java\sparklyr-2.0-2.11.jar, 8880, 209
Traceback:
tryCatch({
timeout <- spark_config_value(config, "sparklyr.gateway.start.timeout", 60)
gatewayInfo <- spark_connect_gateway(gatewayAddress, gatewayPort, sessionId, waitSeconds = timeout, config = config, canConnect = TRUE)
}, error = function(e) {
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)
})
tryCatchList(expr, classes, parentenv, handlers)
tryCatchOne(expr, names, parentenv, handlers[[1]])
value[3]
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)

@statkclee can you try with version 0.4.13? Just pushed a fix for windows that is likely to be related with the issue you are experiencing.

@ganeshmailbox haven't been able to repro this issue in 0.4.13, mind giving this version another shot?

@javierluraschi it works... thank you....

when i run this:
config <- spark_config()
config[["sparklyr.defaultPackages"]] <- NULL
sc <- spark_connect(master = "local", config = config)
i get this error:
"Warning message:
In create_hive_context_v1(sc) :
Failed to create Hive context, falling back to SQL. Some operations, like window-functions, will not work"

Used standard version, I get the same error as ghazalg. Using dev version I get this.
"Error in force(code) :
Failed while connecting to sparklyr to port (8880) for sessionid (6961): Gateway in port (8880) did not respond.
Path: C:\Users\Randon\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\bin\spark-submit2.cmd
Parameters: --class, sparklyr.Backend, --packages, "com.databricks:spark-csv_2.11:1.3.0", "C:\Users\Randon\Documents\R\win-library\3.3\sparklyr\java\sparklyr-1.6-2.10.jar", 8880, 6961
Traceback:
shell_connection(master = master, spark_home = spark_home, app_name = app_name, version = version, hadoop_version = hadoop_version, shell_args = shell_args, config = config, service = FALSE, extensions = extensions)
start_shell(master = master, spark_home = spark_home, spark_version = version, app_name = app_name, config = config, jars = spark_config_value(config, "spark.jars.default", list()), packages = spark_config_value(config, "sparklyr.defaultPackages"), extensions = extensions, environment = environment, shell_args = shell_args, service = service)
tryCatch({
gatewayInfo <- spark_connect_gateway(gatewayAddress, gatewayPort, sessionId, config = config, isStarting = TRUE)
}, error = function(e) {
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)
})
tryCatchList(expr, classes, parentenv, handlers)
tryCatchOne(expr, names, parentenv, handlers[[1]])
value[3]
abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file)
---- Output Log ----
Ivy Default Cache set to: C:\Users\Randon.ivy2\cache
The jars for the packages stored in: C:\Users\Randon.ivy2\jars
:: loading settings :: url = jar:file:/C:/Users/Randon/AppData/Local/rstudio/spark/Cache/spark-1.6.2-bin-hadoop2.6/lib/spark-assembly-1.6.2-hadoop2.6.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
com.databricks#spark-csv_2.11 added as a dependency
:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0
confs: [default]
found com.databricks#spark-csv_2.11;1.3.0 in central
found org.apache.commons#commons-csv;1.1 in central
found com.univocity#univocity-parsers;1.5.1 in central
:: resolution report :: resolve 222ms :: artifacts dl 5ms
:: modules in use:
com.databricks#spark-csv_2.11;1.3.0 from central in [default]
com.univocity#univocity-parsers;1.5.1 from central in [default]
org.apache.commons#commons-csv;1.1 from central in [default]
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      default     |   3   |   0   |   0   |   0   ||   3   |   0   |
---------------------------------------------------------------------
:: retrieving :: org.apache.spark#spark-submit-parent
confs: [default]
0 artifacts copied, 3 already retrieved (0kB/6ms)
---- Error Log ----"

I'm getting the same issue on the development version of sparklyr with spark 2.0.0.
Workflow:

Install sparklyr stock version, install spark 1.6.2
Troubleshoot a little to get it to work (reinstall Java 8, manually set SPARK_HOME and SPARK_LOCAL_IP)
Uninstall spark 1.6.2, install spark 2.0.0
Try with sparklyr stock and development, try all debugging from other, GitHub threads

See below for more information.
Works on spark 1.6.2 with stock sparklyr

Sys.setenv(SPARK_HOME="C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-1.6.2-bin-hadoop2.6")
Sys.setenv(HADOOP_HOME="C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-1.6.2-bin-hadoop2.6/tmp/hadoop")
Sys.setenv(JAVA_HOME='C:/Program Files/Java/jdk1.8.0_101')
Sys.setenv(SPARK_LOCAL_IP="<IP_ADDRESS>")
sc <- spark_connect(master = "local")

Does not work on spark 2.0.0 with any version of sparklyr

Sys.setenv(SPARK_HOME="C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-2.0.0-bin-hadoop2.7")
Sys.setenv(HADOOP_HOME="C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-2.0.0-bin-hadoop2.7/tmp/hadoop")
Sys.setenv(JAVA_HOME='C:/Program Files/Java/jdk1.8.0_101')
Sys.setenv(SPARK_LOCAL_IP="<IP_ADDRESS>")
sc <- spark_connect(master = "local")
sc <- spark_connect(master = "local", config = list())

Sys.getenv()

ALLUSERSPROFILE               C:\ProgramData
APPDATA                       C:\Users\Nick\AppData\Roaming
CHARSET                       cp1252
ChocolateyInstall             C:\ProgramData\chocolatey
CommonProgramFiles            C:\Program Files\Common Files
CommonProgramFiles(x86)       C:\Program Files (x86)\Common Files
CommonProgramW6432            C:\Program Files\Common Files
COMPUTERNAME                  DESKTOP-5UUOR7I
ComSpec                       C:\WINDOWS\system32\cmd.exe
configsetroot                 C:\WINDOWS\ConfigSetRoot
DISPLAY                       :0
GFORTRAN_STDERR_UNIT          -1
GFORTRAN_STDOUT_UNIT          -1
GIT_SSH                       C:\Program Files (x86)\PuTTY\plink.exe
HADOOP_HOME                   C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-2.0.0-bin-hadoop2.7/tmp/hadoop
HOME                          C:/Users/Nick/Documents
HOMEDRIVE                     C:
HOMEPATH                      \Users\Nick
JAVA_HOME                     C:/Program Files/Java/jdk1.8.0_101
LOCALAPPDATA                  C:\Users\Nick\AppData\Local
LOGONSERVER                   \DESKTOP-5UUOR7I
NUMBER_OF_PROCESSORS          4
OS                            Windows_NT
PATH                          C:\Program
Files\R\R-3.3.1\bin\x64;c:\Rtools\bin;c:\Rtools\mingw_32\bin;C:\ProgramData\Oracle\Java\javapath;C:\app\Nick\product\11.2.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\Program Files
(x86)\Skype\Phone;C:\Program Files\Git\cmd;C:\Program
Files\OpenVPN\bin;C:\Program Files
(x86)\PuTTY;C:\ProgramData\chocolatey\bin;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program
Files
(x86)\scala\bin;C:\Users\Nick\Anaconda3;C:\Users\Nick\Anaconda3\Scripts;C:\Users\Nick\Anaconda3\Library\bin;C:\Users\Nick\AppData\Local\Microsoft\WindowsApps;
PATHEXT                       .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE        AMD64
PROCESSOR_IDENTIFIER          Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
PROCESSOR_LEVEL               6
PROCESSOR_REVISION            4e03
ProgramData                   C:\ProgramData
ProgramFiles                  C:\Program Files
ProgramFiles(x86)             C:\Program Files (x86)
ProgramW6432                  C:\Program Files
PSModulePath                  C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC                        C:\Users\Public
R_ARCH                        /x64
R_COMPILED_BY                 gcc 4.9.3
R_DOC_DIR                     C:/PROGRA~1/R/R-33~1.1/doc
R_HOME                        C:/PROGRA~1/R/R-33~1.1
R_LIBS_USER                   C:/Users/Nick/Documents/R/win-library/3.3
R_USER                        C:/Users/Nick/Documents
RMARKDOWN_MATHJAX_PATH        C:/Program Files/RStudio/resources/mathjax-26
RS_LOCAL_PEER                 \.\pipe\17863-rsession
RS_RPOSTBACK_PATH             C:/Program Files/RStudio/bin/rpostback
RS_SHARED_SECRET<PHONE_NUMBER>1
RSTUDIO                       1
RSTUDIO_MSYS_SSH              C:/Program Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC                C:/Program Files/RStudio/bin/pandoc
RSTUDIO_SESSION_PORT          17863
RSTUDIO_USER_IDENTITY         Nick
RSTUDIO_WINUTILS              C:/Program Files/RStudio/bin/winutils
SCALA_HOME                    C:/Program Files (x86)/scala/bin
SESSIONNAME                   Console
SPARK_HOME                    C:/Users/Nick/AppData/Local/rstudio/spark/Cache/spark-2.0.0-bin-hadoop2.7
SPARK_LOCAL_IP                <IP_ADDRESS>
SVN_SSH                       C:\Program Files (x86)\PuTTY\plink.exe
SystemDrive                   C:
SystemRoot                    C:\WINDOWS
TEMP                          C:\Users\Nick\AppData\Local\Temp
TMP                           C:\Users\Nick\AppData\Local\Temp
USERDOMAIN                    DESKTOP-5UUOR7I
USERDOMAIN_ROAMINGPROFILE     DESKTOP-5UUOR7I
USERNAME                      Nick
USERPROFILE                   C:\Users\Nick
VBOX_MSI_INSTALL_PATH         C:\Program Files\Oracle\VirtualBox
windir                        C:\WINDOWS

sessionInfo()

R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base
other attached packages:
[1] sparklyr_0.4.16    pryr_0.1.2         doParallel_1.0.10  iterators_1.0.8    foreach_1.4.3
[6] ROracle_1.2-1      DBI_0.5-1          ggplot2_2.1.0      nycflights13_0.2.0 dplyr_0.5.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7      magrittr_1.5     devtools_1.12.0  rappdirs_0.3.1   munsell_0.4.3
[6] colorspace_1.2-6 R6_2.1.3         httr_1.2.1       stringr_1.1.0    plyr_1.8.4
[11] tools_3.3.1      grid_3.3.1       gtable_0.2.0     config_0.2       git2r_0.15.0
[16] withr_1.0.2      lazyeval_0.2.0   yaml_2.1.13      assertthat_0.1   rprojroot_1.0-2
[21] digest_0.6.10    tibble_1.2       readr_1.0.0      codetools_0.2-14 curl_1.2
[26] memoise_1.0.0    stringi_1.1.1    compiler_3.3.1   scales_0.4.0

@nickshffer your are hitting this issue unning command '"C:\Users\Nick\AppData\Local\rstudio\spark\Cache\spark-2.0.0-bin-hadoop2.7\bin\spark-submit2.cmd" --class sparklyr.Backend --packages "com.databricks:spark-csv_2.11:1.3.0" "C:\Users\Nick\Documents\R\win-library\3.3\sparklyr\java\sparklyr-2.0-2.11.jar" 8880 4035' had status 127 which is being tracked by https://github.com/rstudio/sparklyr/issues/263, that's the best place to follow up / contribute on this issue.

@ghazalg you are hitting an issue while initializing Hive, there have been other issues with workarounds for this issue posted, are you working on windows? If that's the case see this comment "JackHo327 commented 14 days ago" on this issue: https://github.com/rstudio/sparklyr/issues/229 - Which points out that something like this should work (let me know if it does! that way we can push a fix directly into sparklyr!)
config <- spark_config()
config[["spark.sql.warehouse.dir"]] <- file.path(sparklyr::spark_home_dir(), "tmp", "hive")
spark_connect(master = "local", config = config)

@Edge363 since you were getting the same issue as ghazalg I would try with the script I mentioned to ghazalg which sets the spark.sql.warehouse.dir, that script would work with the CRAN version and the development version, let me know how it goes.

Same error : Sparklyr Error in force(code) : Failed while connecting to sparklyr to port (8880) for sessionid (792): Gateway in port (8880) did not respond. Path: /home/ubuntu/spark-1.6.2-bin-hadoop2.6/bin/spark-submit Parameters: --class, sparklyr.Backend, --packages, 'ai.h2o:sparkling-water-core_2.10:1.6.7','ai.h2o:sparkling-water-ml_2.10:1.6.7','ai.h2o:sparkling-water-repl_2.10:1.6.7', '/usr/local/lib/R/site-library/sparklyr/java/sparklyr-1.6-2.10.jar', 8880, 792 Traceback: shell_connection(master = master, spark_home = spark_home, app_name = app_name, version = version, hadoop_version = hadoop_version, shell_args = shell_args, config = config, service = FALSE, extensions = extensions) start_shell(master = master, spark_home = spark_home, spark_version = version, app_name = app_name, config = config, jars = spark_config_value(config, "spark.jars.default", list()), packages = spark_config_value(config, "sparklyr.defaultPackages"), extensions = extensions, environment = environment, shell_args = shell_args, service = service) tryCatch({ gatewayInfo <- spark_connect_gateway(gatewayAddress, gatewayPort, sessionId, config = config, isStarting = TRUE) }, error = function(e) { abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file) }) tryCatchList(expr, classes, parentenv, handlers) tryCatchOne(expr, names, parentenv, handlers[[1]]) value[3] abort_shell(paste("Failed while connecting to sparklyr to port (", gatewayPort, ") for sessionid (", sessionId, "): ", e$message, sep = ""), spark_submit_path, shell_args, output_file, error_file) ---- Output Log ---- Ivy Default Cache set to: /var/www/.ivy2/cache The jars for the packages stored in: /var/www/.ivy2/jars :: loading settings :: url = jar:file:/home/ubuntu/spark-1.6.2-bin-hadoop2.6/lib/spark-assembly-1.6.2-hadoop2.6.0.jar!/org/apache/ivy/core/settings/ivysettings.xml ai.h2o#sparkling-water-core_2.10 added as a dependency ai.h2o#sparkling-water-ml_2.10 added as a dependency ai.h2o#sparkling-water-repl_2.10 added as a dependency :: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0 confs: [default] Exception in thread "main" java.io.FileNotFoundException: /var/www/.ivy2/cache/resolved-org.apache.spark-spark-submit-parent-1.0.xml (No such file or directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.(FileOutputStream.java:213) at java.io.FileOutputStream.(FileOutputStream.java:162) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter.write(XmlModuleDescriptorWriter.java:70) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter.write(XmlModuleDescriptorWriter.java:62) at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFile(DefaultModuleDescriptor.java:563) at org.apache.ivy.core.cache.DefaultResolutionCacheManager.saveResolvedModuleDescriptor(DefaultResolutionCacheManager.java:176) at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:245) at org.apache.ivy.Ivy.resolve(Ivy.java:523) at org.apache.spark.deploy.SparkSubmitUtils$.resolveMavenCoordinates(SparkSubmit.scala:1066) at org.apache.spark.deploy.SparkSubmit$.prepareSubmitEnvironment(SparkSubmit.scala:287) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:154) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) ---- Error Log ---- Calls: spark_connect ... tryCatchOne -> -> abort_shell -> -> force Execution halted


[2.11.0 - 2.11.1 ] Wrong version number

hello
just a small bug in auto update
after reboot code is well upgrade to 2.11.1  in file google/cloud/forseti/scanner/audit/kms_rules_engine.py :
 state = key.primary_version.get('state') if not state == 'ENABLED': return violations
but version number is not correct in log file
2019-02-26 05:50:06,645 INFO [forseti-security][2.11.0]

#2600


Operator evaluation only works on quantum registers named 'q'

What is the expected enhancement?
In the class Operator() the evaluation in 'Pauli' or 'Grouped-Pauli' modes seems to be restricted to quantum registers named 'q'. At the moment it doesn't seem possible to create different registers (with different names) and evaluate an operator on each of them.

thanks for pointing out the issue, I created a PR #519 to address this issue. Basically, you will be able to provide your quantum register which is associated with the input circuit as an argument.
please let me know your thought. Thanks.

yes that sounds great. thanks a lot !


file_share does not work, fire_shared fired twice

Hi,
I use botkit to listen to a channel to capture the shared files, I used to use file_share one year ago.  it worked well. But now, it does not go to file_share when I shared a file (upgraded botkit lib). I changed to use file_shared but it fired twice on some channels. my sample codeL
var Botkit = require('Botkit');

var controller = Botkit.slackbot({
    debug: true,
});

var bot = controller.spawn({
    token: '...'
}).startRTM();
controller.on('file_shared', function(bot, message) {
	console.log(message);
});
/*
//no longer works
controller.on('file_share', function(bot, message) {
	console.log(message);
});
*/

the output
...
notice: RTM websocket opened
debug: RECEIVED MESSAGE
debug: CUSTOM FIND CONVO undefined undefined hello
debug: RECEIVED MESSAGE
debug: CUSTOM FIND CONVO undefined undefined file_public
debug: RECEIVED MESSAGE
debug: CUSTOM FIND CONVO undefined undefined file_public
debug: RECEIVED MESSAGE
debug: CUSTOM FIND CONVO undefined undefined file_shared
{ type: 'file_shared',
  channel_id: '...',
  file_id: '...',
  user_id: '...',
  file: { id: '...' },
  event_ts: '1536945919.000200',
  raw_message:
   { type: 'file_shared',
     channel_id: '..',
     file_id: '...',
     user_id: '...',
     file: { id: '...' },
     event_ts: '1536945919.000200' },
  _pipeline: { stage: 'receive' } }
debug: RECEIVED MESSAGE
debug: CUSTOM FIND CONVO undefined undefined file_shared
{ type: 'file_shared',
  channel_id: '...',
  file_id: '',
  user_id: '',
  file: { id: '...' },
  event_ts: '1536945919.000300',
  ts: '1536945919.000300',
  raw_message:
   { type: 'file_shared',
     channel_id: '...',
     file_id: '..',
     user_id: '..',
     file: { id: '...' },
     event_ts: '1536945919.000300',
     ts: '1536945919.000300' },
  _pipeline: { stage: 'receive' } }

Does anyone know what happened?

Duplicate of #1434
https://api.slack.com/events/message/file_share

This event will be deprecated in July 2018. In the RTM API, it will no longer dispatch. In the Events API, subscriptions and deliveries will continue until further notice.

@Naktibalda , thanks for the answer
Are you referring file_share or file_shared depreciation? How about the issue with file_shared? Also, what is the alternative solution for catching the shared file in RTM using botkit?
Thanks

file_share is a deprecated one.
file_shared works on RTM (according to documentation and your experience).
I have no idea what's causing your issue with duplicated events, but it looks more like an issue of Slack than an issue of Botkit, because those are different events and not the same event fired twice.


Assertion when iterating over segments() when there are params present

When there are params in the url string ie "/path/to/file.txt?w=3"
the iterator never reaches the end()
Example
boost::url_view const v{ "/path/to/file.txt?w=3" };
auto const ps = v.segments();
std::size_t loop = 1;
for (auto i = ps.begin(); i != ps.end(); ++i)
    std::cout << "loop = " << loop << std::endl;
    std::cout << "s = " << i->string() << std::endl;
}

Output
loop = 1
s = path
loop = 2
s = to
loop = 3
s = file.txt?w=3
loop = 4
s =

url/include/boost/url/impl/url_view.ipp:415: boost::urls::url_view::segments_type::iterator& boost::urls::url_view::segments_type::iterator::operator++(): Assertion `off_ != pt_->offset[ detail::id_frag]' failed.
Aborted

I'm not working on this library at the moment, and it is unfinished. However, it is next up on my to-do list, after the current formal review of Boost.JSON is finished and the next version of Boost is released. Thanks!

The read-only views url_view, path_view, and query_params_view should work perfectly now - give it a try!!


Add powershell script for servicehub ip retrieval

The documentation of Synapse self hosted integration runtime (SHIR) mentions that the SHIR requires access to the Azure Service Bus IP addresses
https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime
It is a requirement to use a wildcard (*.servicebus.windows.net) in your firewalls.
While this is the easiest way to clear the firewall, it also opens the firewall to all Azure Service Bus IP addresses, including malicious_actor.servicebus.windows.net.
This might be restricted by your security policies.
This script resolves the Azure Service Bus IP addresses used by an integration runtime and adds them to the network security group (NSG) rule for the Synapse self-hosted integration runtime (SHIR).
As the mapping of IP addresses to Domain Names might change, we recommend to run at least once a day to keep the NSG up to date.
An alternative to running this script is to use the "Self-contained interactive authoring" feature of the self hosted integration runtime.

@lrtoyou1223
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Merged in https://github.com/MicrosoftDocs/azure-docs-pr/pull/290432. #please-close


Generating clean ASCII-only report

By default report generated by unused command include progress log and color symbols, so command like this:
unused > unused.log
result in pretty unreadeble reports that looks like this:

Is there an option to generate just ASCII-code reports? Or any kind of custom formatter support?

Hi @ShockwaveNN, I'm rewriting Unused in Rust. In addition to being more performant, I've introduced a flag to allow for disabling of color output because of this issue you'd highlighted here. Since I won't be addressing it within this repo, I'm going to close this issue out.

OK, thank you. Is rust version will be at another repo?

@ShockwaveNN yes, it's in a separate repo, to be hosted under this org: https://github.com/unused-code, in private alpha now


Create CONTRIBUTING.md

I am closing the issue as I cannot find an issue about this PR assigned to you. Feel free to re-open and provide me the URL if I missed the issue.


Reorganize connector

Creates new projects: fs, qscript, qsu
Removes scoverage plugin
Cleans up the project dependencies and ASCII art in build.sbt
Adds many explicit type parameters
Factors out some identical calls to matryoshka functions
Optimistically removes travis_wait calls from .travis.yml

Here are the test:compile timings as of a80e625. frontend and qscript are the slowest.
foundation: 12s
effect: 4s
ejson: 13s
js: 5s
common: 2s
frontend: 336s
sql: 11s
fs: 15s
qscript: 459s
qsu: 56s
connector: 6s
core: 69s
mimir: 131s (includes precog, blueeyes, niflheim, yggdrasil)
mongodb: 134s

Travis made it through :tada:


Support tables in cards (Gist provided)

Prerequisites

[X] I have searched for duplicate or closed feature requests
[X] I have read the contributing guidelines

Proposal
Hello,
I'd like to suggest to officially support tables inside of cards. I'm aware that this comes with a lot of edge cases to consider. Cards are a great way to display mixed content or even just work as a visual container. Tables should be one element, as it allows to annotate tables with additional context in the same visual container. There's another ticket #17395, but that one's locked, so I cannot add a comment to that.
I tried to come up with a fix and I think it is pretty clean and catches most of the cases a user could have. At least in my project, I couldn't find a combination that doesn't work with my snippet.
Please have a look at my gist:
https://gist.github.com/tinyoverflow/999c7797ce51582ea4481b2501e7ad20
Motivation and context
In my current project, I make heavy use of tables inside of cards. They don't look good by default. Researching this topic resulted in a lot of people with this issue, so I decided to try to tackle this one.

This is how we do it (super simple), with an added a class of '.table-flush', similar to the other '.table-XXX; feature classes. Also follows the convention of the '.list-group-flush' feature.
The option for top or bottom borders/margins seems like a per dev preference that can be solved for easily using existing features (m-2, border-top-1, border-bottom-1 etc.), versus being a native part of a table-flush feature.
As in our case, we prefer the margin at the bottom as we use rounded cards, and having space at the bottom makes sense (for us).
`
.table-flush > :not(caption) > * > *:first-child {
border-left-width: 0;
}
.table-flush > :not(caption) > * > *:last-child {
border-right-width: 0;
}
`


safari浏览器中数字输入框 InputNumber组件样式bug

[ ] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version<EMAIL_ADDRESS>Browser: chrome<IP_ADDRESS>

What is expected?
正常显示
Steps to reproduce
输入数字后删除输入框内容，就可以复现

https://github.com/arco-design/arco-design/assets/40122311/83fd1d49-67c2-462b-aec3-64a030219500


update binary download

https://github.com/Code52/pretzel/downloads
The download over there seems to be outdated compared to the master.

Would be great i fo use a CI server (like TeamCitiy or Appveyor) to create a new compiled version with every commit to master. Then automatically push the artifacts (compiled) to Github Releases http://www.appveyor.com/docs/deployment/github and Chocolatey

@laedit has been doing some improvements to the CI process (see #190 for example) - I've not seen anyone integrate GH Releases into an official TeamCity plugin though (prove me wrong!)

@shiftkey @laedit If you want I can help with the CI process and pushing the artifacts using Appveyor (I dont have experience with TeamCity). I have worked in some projects where we compile a new Nuget version (for chocolatey in this case) with every commit

Since it was the build & deploy tool in place when I arrived I'd prefer to use Team City, but it doesn't play well with GitHub so I think to switch to AppVeyor.
@ricardopolo The aim here would be to tag the source, upload the binaries to GitHub and generate and push the package to Chocolatey. The last two are handled by AppVeyor but I think the first isn't. In any case you are welcome if you have any examples :smile:

Not sure if this is helpful for you guys https://github.com/dazinator/GithubReleaseCreator

Thanks but this part is handled directly by AppVeyor: http://www.appveyor.com/docs/deployment/github
But it require a tag on GitHub source that isn't handled.
I think that the new deploy workflow could be:

Tag the source manually on GitHub
AppVeyor will build & deploy to the newly created GitHub release and to Chocolatey

An alternative could be to call the GitHub API to create a release but I prefer a manual action to launche the deploy.
@shiftkey @JakeGinnivan What do you think?

What about deploying to Chocolatey? It's basically a NuGet feed and NuGet package, could we trick this into deploying a built package?

The Nuget Deployment Provider on AppVeyor does not let us define the source server, but we can invoke nuget directly: nuget push <package>.nupkg <api key> -source http://chocolatey.org

@shiftkey I am trying to add code coverage to the AppVeyor build with coveralls.io but only the admin of the GitHub repo can have access to the repo token.
Can you go to https://coveralls.io/r/Code52/pretzel, sign in with GitHub, get the repo token and after go to https://ci.appveyor.com/tools/encrypt, encrypt the token and add it as environment variable on https://ci.appveyor.com/project/laedit/pretzel/settings/environment?
Sorry, it's complicated but I can't do it myself.

About the chocolateyInstall.ps1 script, is there a reason that the package installs in c:\tools and not in the lib folder of chocolatey?

@Shiftkey, @JakeGinnivan If that's ok with you I will update the chocolateyInstall to install Pretzel in the chocolatey/lib folder like the other package and uninstall the previous version/path of pretzel.
Also I am updating the build process for the GitHub / chocolatey release, I have all what I need for GitHub but I don't have access to the chocolatey package. Is it possible to have a key or the rights to push the package?
Thanks :smiley:

Yep, just email me jake at Ginnivan dot net with your Chocolatey username and I'll sort that out
Sent from my Windows Phone

From: Jérémie<EMAIL_ADDRESS>Sent: ý22/ý01/ý2015 18:19
To<EMAIL_ADDRESS>Cc: Jake<EMAIL_ADDRESS>Subject: Re: [pretzel] update binary download (#170)
@Shiftkeyhttps://github.com/Shiftkey, @JakeGinnivanhttps://github.com/JakeGinnivan If that's ok with you I will update the chocolateyInstall to install Pretzel in the chocolatey/lib folder like the other package and uninstall the previous version/path of pretzel.
Also I am updating the build process for the GitHub / chocolatey release, I have all what I need for GitHub but I don't have access to the chocolatey package. Is it possible to have a key or the rights to push the package?
Thanks [:smiley:]
—
Reply to this email directly or view it on GitHubhttps://github.com/Code52/pretzel/issues/170#issuecomment-71069733.

Thanks!

i downloaded this from chocolatey:
pretzel.<IP_ADDRESS>.nupkg
pretzel.<IP_ADDRESS>\tools\chocolateyInstall.ps1
Points to
http://deploy.code52.org/pretzel/release/Pretzel-v<IP_ADDRESS>.zip
But that is a 404

Yes, the package haven't been updated yet.
But the zip is now included in the artifacts of the build: https://ci.appveyor.com/project/laedit/pretzel/build/artifacts

Probably worth pushing a new release so the chocolatey package is not broken?

I was planning to do that today.
Are you ok with the package will install Pretzel in the chocolatey/lib folder like the other package and uninstall the previous version/path of pretzel?

Yep, that sounds good

Ok, that was a little bit laborious but it is done! :smiley:
The new release process is:

Create a new tag
Push the newly created tag
Enjoy (and optionally watch the build & deploy on AppVeyor)

If you prefer another process just let me know.

Up to you, but I tend to use https://github.com/ParticularLabs/GitVersion for versioning.
So the builds will constantly build the next version to deploy. Then the deploy process is

Push artifacts
Tag with the build version

Then GitVersion sees the tag and the version is automatically bumped. http://jake.ginnivan.net/blog/2014/07/09/my-typical-teamcity-build-setup/ talks a bit about the idea.
Happy with whatever you choose though

Yes, I already read your article which is great by the way.
You are right, for the release process all is already taken care of by AppVeyor except for the number version.
I am thinking to integrate it in the process, I will try it for the next release.
But right now it doesn't work great with PowerShell ConvertFrom-Json, I will look into that.
And I have forgot in my previous message but it's only possible to change the version number used by AppVeyor as build name through appveyor.yml so we face the risk that the build name and version are not related.

pretty sure @gep13 has sorted the appveyor support with GitVersion story. He can probably point you at the scripts chocolatey uses with GitVersion

Thanks for the tip.

@laedit @JakeGinnivan just wanted to chime in here...
Yes, ChocolateyGUI makes use of GitVersion to get the current version number, based on the state of the repository.  GitVersion has out of the box support for AppVeyor, and it allows the setting of the current build number, as well as setting environment variables that can be consumed in other parts of your build process.
For ChocolateyGUI, we call GitVersion here:
https://github.com/chocolatey/ChocolateyGUI/blob/develop/BuildScripts/default.ps1#L375
Which sets the Build Number so AppVeyor correctly reports it in the Web Interface, and also updates the applications AssemblyInfo.cs files, and then here:
https://github.com/chocolatey/ChocolateyGUI/blob/develop/BuildScripts/default.ps1#L376
We immediately set a script level variable to the value of the generated Environment Variable by GitVersion, that is then used when packaging the associated Chocolatey Package.
We tend to do the latter in the build script, rather than relying on any specific features of AppVeyor, that way, if we needed to, it would be a small change to move to another CI platform.
Hope that helps!  If you have any questions, feel free to ask.

How about pushing a new version to chocolatey. The version there is outdated and even displays a security notice - might scare some people :)

This is/was part of the moderation process that was recently added to Chocolatey.org.  We are trying to improve the overall quality of packages by ensuring that all packages go through (at the minute) a manual moderation process.  This is hoping to be replaced with an automated approval process.
For more information on the moderation process, you can see the blog post here:
http://codebetter.com/robreynolds/2014/10/27/chocolatey-now-has-package-moderation/

I have worked in some projects where we compile a new Nuget version (for chocolatey in this case) with every commit

Just a small note on this...
If this is something that happens with Pretzel, or other packages that target Chocolatey.org, you might run into some issues.  When a packages hit the moderation queue, it isn't immediately available, instead, we wait and make sure that there aren't any issues with the package version.  If there are issues, we will ask you to fix them, and then push the same package version again.  If your CI process creates a new package version number each commit, then this will likely run into issues.

@gep13 INMO that a package does not have any issue is reposanbility of the creator or the software no of Chocolatey. So I would allow creationg in the CI process and not a human validation by Chocolatey. It is not its responsability

@ricardopolo Since chocolatey.org is a public facing repository of packages, the Chocolatey Team does have a level of responsibility to ensure that all packages there are what they say they are, and are maintained at a level of quality, so that the end user knows what they are getting.

@gep13 Thanks a lot for the tips! :smiley:
I will study your build script and make some changes to our AppVeyor build.


edit code coverage CI command

Code coverage was being reported artificially low

Coverage increased (+2.5%) to 94.454% when pulling d0ab8bfe39645eeec6a5cda78eaf19a6002a01f1 on code-cov into f93621339517a09bcff0abce7c3e8051e1438a12 on main.


Windows desktop support

Use case
Windows desktop applications / games
Proposal
Win32? Ahm, a lot of new Windows app and game development is moving in the UWP/WinRT direction. Microsoft have been moving in that direction for years now. Even WinForms and WPF are moving to .Net Core (which is a sister technology to UWP with all the UWP technologies being integrated). It seems to me like targeting C based Windows (or .Net Framework) is a little bit old school. Not many people go back to Win32/GDI/.Net Framework after adopting WinRT/.Net Core/UWP. Time moves in one direction generally.
Do you intend to make this usable from both C# and C++ like Windows Runtime Components?
If going UWP route, I don't know if you intend to wrap WinUI like the other frameworks or if you intend to use a custom DirectX layer - if that's the case then CoreWindow would obviously be the choice?
It's hard to imagine how the Win32 approach is going to be useful in 5-10 years. Just a few years ago, Win32 still seemed relevant. But I would be very cautious about investing in that approach now. I'm just curious how you're going to get this to the people that want to use it. Isn't it more likely that people using UWP and WinUI today are the same people that will look at flutter. Legacy apps already have their code base in place. It's greenfield projects you want to be targeting.
Anyway, excited to see some interest in Windows!

It's not clear to me what exactly the proposal here is; as far as I can tell though this is a duplicate of #14967.

I don't know if you intend to wrap WinUI

Flutter on Windows will use the same approach as it does on every other platform, so no.


[StableHLO] Add StableHLO to TTIR conversion for logistic OP

We should add conversion for stablehlo.logistic OP to TTIR and then map it to ttnn.logit op

Implemented with https://github.com/tenstorrent/tt-mlir/pull/1122


Will there be a way of adding tags to the 360 pictures?

It would be a great feature if you could tag certain areas on a 360 deg picture, add points which you can click (links?) similar to this plugin: https://pannellum.org/

that would be interesting, I might try to spike something later

May we use Key Board controls for panning images up and down or Rotate the view and also zooming.

@yasirnazir64 The need to implement, the operation 'viewer. Controls. Phi' such as a variable


Add keywords to logs

keywords is a string that gets emitted in LogRecordAdded event. Database indexing services that listen for contract events can store the keywords along with the hash of a file, allowing record searching by keywords.

LGTM overall
Open question, no PR blocker wouldn't it be interesting to have keywords indexed as well? So I could look for a type of data directly without making any intermediate DB.

@buendiadas posibly, but keywords right now aren't editable after adding. also the keywords aren't attested.

@libertylocked I don't think it can be done with string, sth like bytes.
Even something like a namehash could be interesting (could enable meta inheritance, and a bit extra privacy)
Food for thoughts!


Invoice duplicates?

Further Procedure
Resend and check on receipt of invoice
No reference in electronic context
No direct possibility to mark duplicates
Best practice recommended?
Process question / process documentation?

In Austria an invoice duplicate must be flagged as such, e.g. by printing the term "Duplikat" onto the invoice

In Germany, the concept of a "similar multi-piece" has existed since around 2011. This means that the mandatory VAT information is identical in both documents. In this case, the word "duplicate" no longer needs to be printed or the indicator no longer needs to be set in the electronic file.
Nevertheless, I currently have the following case that is relevant in this context. There is a CIUS with a validity date. For example, a certain version of the CIUS is only valid until 31 January. An invoice is sent on 15 January. On 10 March, the recipient informs you that he has not received the invoice and needs it again. A new CIUS version with a different specification identifier has been valid since 1 February. Technically, invoices with the old identifier are no longer accepted. In this case, it is a challenge to resend a duplicate of the January invoice electronically.

@AP-G  this is not a task for the CEN TC. This is a German national issue with the validity dates of XRechnung versions

@phax For the special national situation I agree. But this is just an example that can be valid for any CIUS/Extension when a specification identifier changes.

Agree. But the versioning of CIUS and/or Extensions is not part of the TC 434. It's the responsibilities of the publishers/creators of these specifications

That is true. What about the EN itself? Isn't it likely that the specification identifier will be updated soon? But you might be right that it is more a question on the VAT legislation experts at EU level. On the other hand, for them, it might be too technical…


Upgrade JS node env and dependencies

Fixes #632

build image from node 0.10 to 4.2
react from 0.13 to 0.14
react-motion from 0.2 to 0.3
removed material-ui dependency
jest from 0.4 to 0.7
babel from 5 to 6
enabled linter for test files
added airbnb-lint rules as npm package
reduced buillt js bundle size by 25%

Other than the make frontend step producing a lot of output, LGTM


tpl: change  to  for non-link elements in pagination internal template

When on the first or last page, the previous/next link would be disabled and no href would be generated. This impacts the SEO score in LightHouse. The modification changes  tags to
 elements.
mage check returned no errors. The Contribution Guide mentioned having test cases for the new code, but I'm not sure how this modification can be tested.

This will visually break existing sites where the CSS targets the paginator's anchor tags.

@jmooring True, and unfortunately fixing this accessibility issue without introducing breaking changes seems impossible. Is the page-link class targeted anywhere in the template itself?

The solution to this dilemma is to add a disabled and add proper aria attributes. (2021 vs. 2010 solution) ;)
Section name

fixing this accessibility issue without introducing breaking changes seems impossible.

@y1zhou When did this become an accessibility issue? I thought it was about SEO. This is the lighthouse report using the existing pagination template:

The suggestions from @davidsneighbour are great, and we should re-work this entire template at some point. But for now, the only thing that needs to change is the href value (use # instead of omitting the attribute). That change will produce this:

And it shouldn't break anything.

@jmooring Ah yes it's about SEO. Should have read my own PL with more care. Thank you @davidsneighbour for the great (modern) suggestions and I'll integrate these into the PL.

Resolved with https://github.com/gohugoio/hugo/pull/8602.


dublicated entries in config

https://github.com/thomas-maurice/ansible-role-gitea/blob/4dfd30306104ada0c38f126d39a3727b1739713d/templates/gitea.ini.j2#L56-L68
LFS_CONTENT_PATH and LFS_JWT_SECRET appear multiple times in the config.
And there are different ansible variables that will define the same secret (LFS_JWT_SECRET)

can probably be fixed together with issue #96, since it affects similar file sections.

Yep, still happens...

> ansible-playbook playbooks/3_service/gitea.yml --limit prod*
[WARNING]: While constructing a mapping from /home/mg/ansible/roles/tmaurice.gitea/defaults/main.yml, line 2, column 1, found a duplicate dict key (gitea_lfs_content_path). Using last defined value only.

See #114


Error on redirect when using bandit with phoenix_live_view

Hi! I am encountering an issue when I try to use the BanditAdapter with phoenix live view. In my application, I have a gen server called ApplicationContext that is started in a Registry in the following way:
DynamicSupervisor.start_child(
  ApplicationContext.Supervisor,
  %{
    id: {:via, Registry, {ApplicationContext.Registry, self()}},
    start:
      {GenServer, :start_link, [ApplicationContext.Server, init, [name: {:via, Registry, {ApplicationContext.Registry, self()}}]]},
    restart: :transient
  }
)

That is, only one instance ApplicationContext can be created for any given context, since self() is used in the process name. For a user's live view session, I start the application context server in a mount hook.
My issue is that if I use the redirect(socket, to: ~p"/some/path") pattern in a live view, I get the following error when attempting to start the application context.
Error starting context: {:error, {:already_started, #PID<0.2000.0>}}

Is bandit reusing connection processes under the hood? I'm kind of confused why this error would happen since :already_started should only be returned if the ApplicationContext.Server had been created previously in the past for that process. It's worth noting that this issue does not happen when using cowboy with the same code.
I'd like to start using bandit but I'm worried about breaking my implementation.
For context I am using:
* bandit 1.2.0 (Hex package) (mix)
  locked at 1.2.0 (bandit) 05688b88
* phoenix 1.7.11 (Hex package) (mix
  locked at 1.7.11 (phoenix) b1ec57f2
* phoenix_live_view 0.20.4 (Hex package) (mix)
  locked at 0.20.4 (phoenix_live_view) d8930c9c

Thanks.
P.S. If you need a minimal reproduction, I can try to whip something up. I mostly just want to ask the question in case anything immediately obvious pops out.

One thing that jumps out initially: :already_started occurs when the id you provide in your child_spec already exists within the supervisor you're starting it in (specifically, id is a 'supervisor-local' concern). On the other hand, the registry pattern is intended to be used for process names and not ids. I don't think passing it as your child_spec's id is going to work exactly how you expect (I believe that your supervisor will use the literal tuple {:via, Registry, ....} as the id for that spec.
Put another way: ids are a property of the child spec (ie: of the template for how to supervise a process), and names are a property of an actual running process itself (this is why you specify name as an argument to the GenServer). One is used to identify and de-dupe a supervisor's children, and one is used to find processes in a node. Different properties for different purposes.
So, for starters I don't think things are working quite as you think they are there. That being said, my fist hunch is that this ought to be working for you, since (as you say), the tuple {:via, Registry, {ApplicationContext.Registry, self()}} SHOULD be unique for every place that starts this (note that it won't be interpreted as a Registry call when used for an id property, but even as a literal tuple it still ought to be unique). Some ideas about why this is happening now:

Bandit serves HTTP/1 requests on the Thousand Island process that represents the underlying client connection. Subsequent keepalive on from the same client connection will be handled on the same process. This is different from Cowboy which spins off a one-off handler process for every separate request
Cowboy is notorious for silently swallowing log output. Bandit on the other hand is designed quite specifically to swallow no logs at all. This may well have been happening forever on you Cowboy install and you just didn't know.
Are you sure that the process starting this is an HTTP process at all? There's a really delicate back and forth at live view startup where mounts may be called from either / both the HTTP process and the live view process (see eg here). If the above ends up being called from a live view process, it may well be re-used from previous connections entirely within the LiveView stack (I'm not familiar enough with the internal process model used there to speak with any authority however).

@mtrudel Thanks for the response.

The registry pattern is intended to be used for process names and not ids. So right off the top, passing it as your child_spec's id is not going to work exactly how you expect. What I believe will happen here is that your supervisor will interpret the id as the opaque literal tuple {:via, Registry, ....} without interpreting it as anything special. It's just another tuple as far as it's concerned

I think this is irrelevant. In this case the Registry I'm using is running in :unique mode and I am passing the same value for name in the GenServer start_link call as I am for the id value in the child_spec. The uniqueness would be guaranteed in both places.
As some additional context, the ApplicationContext.Server is monitoring the process that spawned it, and terminates itself on :DOWN. Also this server is being created in a live view hook. I believe these run both on the initial HTTP request and when the Websocket is starting.

Bandit serves HTTP/1 requests on the Thousand Island process that represents the underlying client connection. Subsequent keepalive on from the same client connection will be handled on the same process. This is different from Cowboy which spins off a one-off handler process for every separate request. You could identify this by logging out self() at the start of each of your Plug.call/2 implementations, and seeing if these process IDs are the ones you're seeing in the id that errors.

After running some tests, I think that this is the issue. As suggested, I started logging self() in the part of the code where the error was being thrown. The behavior was like this:
# during the initial HTTP request
self: #PID<0.1919.0>

# during the socket mount
self: #PID<0.2111.0>

# after clicking refresh in the browser and triggering another HTTP request
self: #PID<0.1919.0>

** Error

It appears as if the initial HTTP connection process is being kept alive even after the app transitions to the live view process, and it is this process that is being reused during redirect or when refreshing the page.
From what you've described, this sounds like the intended behavior and I understand this is probably better for performance (keeping the connection alive and reusing the connection process). It is a bit unintuitive however, because I'm not used to having to "clean up" a process in Elixir.
Would you have a recommendation on how to work around this? Is there a way to hook into the request lifecycle and "clean up" the process before it is reused?
Thanks!

I think this is irrelevant. In this case the Registry I'm using is running in :unique mode and I am passing the same value for name in the GenServer start_link call as I am for the id value in the child_spec. The uniqueness would be guaranteed in both places.

Yes, 100%. it's still unique, but maybe not quite doing what you thought. That's all I was trying to say.

From what you've described, this sounds like the intended behavior and I understand this is probably better for performance (keeping the connection alive and reusing the connection process). It is a bit unintuitive however, because I'm not used to having to "clean up" a process in Elixir.

That's exactly what's happening. The browser is keeping a single HTTP connection to the server open and is reusing it for multiple HTTP calls, in this case even on different reloads of the same page. Bandit is quite explicitly designed to reuse processes here; this is a large part of what makes it so simple and fast. This has always been 'behind the curtain' and not part of the Plug API. There's never been a sanctioned way to interact with or control the underlying process model behind a given Plug connection, by design. The fact that Bandit and Cowboy have differing process models internally ought to be entirely opaque to the user, though this is getting blurrier and blurrier by the day with liveview, long running processes, etc.
I've started sketching out some formalizations of controls & hooks with the Phoenix folks, but it's all a long way away (there's usefulness beyond your use case, for hosting things like grpc connections, liveview processes directly on the connection, etc).
Just so I'm clear, what lifecycle are you looking to attach this process lifecycle to? Are you interested in hooking on the request lifetime, the underlying client connection lifetime, the liveview session lifetime?

That's exactly what's happening. The browser is keeping a single HTTP connection to the server open and is reusing it for multiple HTTP calls, in this case even on different reloads of the same page. Bandit is quite explicitly designed to reuse processes here; this is a large part of what makes it so simple and fast. This has always been 'behind the curtain' and not part of the Plug API. There's never been a sanctioned way to interact with or control the underlying process model behind a given Plug connection, by design. The fact that Bandit and Cowboy have differing process models internally ought to be entirely opaque to the user, though this is getting blurrier and blurrier by the day with liveview, long running processes, etc.

This makes a lot of sense. Thanks for sharing the context.

Just so I'm clear, what lifecycle are you looking to attach this process lifecycle to? Are you interested in hooking on the request lifetime, the underlying client connection lifetime, the liveview session lifetime?

Ideally what I would like is for this process to live for the lifetime of the live view session. As mentioned, I have explicit monitors for the :DOWN event of the live view session that shutdown the gen server when received e.g.
    @impl GenServer
    def handle_info({:DOWN, _ref, :process, _pid, reason}, state) do
      # Shutdown this server when the init process dies.
      {:stop, reason, state}
    end

I think the only challenge here is that live view on_mount hooks run both on the HTTP process and the live view process, and the HTTP process isn't shutdown when I expect it to be e.g. at the end of the request.
I can probably workaround this by forcefully terminating the application context process, on my end when I detect it's already been started, but this isn't ideal because it could potentially mask other issues. A platform solution would be preferred in the future if possible.
Alternatively, perhaps I can use Plug.Conn.register_before_send/2 to terminate the process at the end of the HTTP request. @mtrudel to your knowledge, would this callback still be run even if the underlying Bandit connection process is reused? I think this would be the least intrusive solution.
Thanks!

The liveview process is guaranteed to call your mount function in its process; see the connected? casing described at https://github.com/mtrudel/bandit/issues/264#issuecomment-1812614445. Would that help you?
Otherwise, yep, register_before_send runs on the plug lifecycle, so it runs on every request (it's actually part of Plug, not Bandit. It's implemented entirely within Plug, and actually gets called 'within' the Plug lifecycle, before the response is sent out to the client.

The liveview process is guaranteed to call your mount function in its process; see the connected?
I thought about using connected? but unfortunately I need the process during the HTTP call as well because the tenant id is stored in the context and used for data fetching.

Otherwise, yep, register_before_send runs on the plug lifecycle, so it runs on every request (it's actually part of Plug, not Bandit. It's implemented entirely within Plug, and actually gets called 'within' the Plug lifecycle, before the response is sent out to the client.
I will give this a try. Thanks for the help. I'm excited to get bandit working in my application. During my initial testing, apart from this error, everything was super smooth and consistent.

I thought about using connected? but unfortunately I need the process during the HTTP call as well because the tenant id is stored in the context and used for data fetching.

This is more LiveView than Plug, but could you split out those two steps, and pass things from the HTTP mount to the liveview mount via assigns? (ie: grab your properties as needed in your HTTP mount and stash them in assigns, then pull them out and start your process up in the liveview mount?)
Another idea: instead of using self as the unique bit in your registry call, could you use something that liveview maintains on your socket (I think this is what id on your LV socket is?) Then you can stop worrying about process concerns almost entirely.

As an update, register_before_send ended up working pretty smoothly and in an uninstrusive way for me.

This is more LiveView than Plug, but could you split out those two steps, and pass things from the HTTP mount to the liveview mount via assigns? (ie: grab your properties as needed in your HTTP mount and stash them in assigns, then pull them out and start your process up in the liveview mount?)

Another idea: instead of using self as the unique bit in your registry call, could you use something that liveview maintains on your socket (I think this is what id on your LV socket is?) Then you can stop worrying about process concerns almost entirely.

I appreciate the ideas, though in my case I use this process for more than just live views (channels, background jobs etc) so keeping it linked to the process is important (too much detail but i have ecto autogenerate look up values from the context like current user and tenant_id when writing to the database for bulletproof multitenancy).
I will close this issue since I have an easy workaround. Thanks for all the help and context @mtrudel!


Depth loading leads to a lot of additional requests

Hey there,
it is me again *narf :).
I played around a little bit deeper and i do not get it why the "depth" option leads to such a mass of additional requests.
e.g. I have blog Posts -> connected to a Set of Comments and Tags.
When i do the following:
db.Post.find().resultList({depth: 1})

There is a request for each comment. What is quite heavy and costs time, bandwidth and requests ;).
I would expect (from a mongodb/mongoose background) that there is one request populateing the comments and retrieve them as a list.

yeah, for sure... i understand the things you described.
Comments are individual per post. so i could drop the additional comments scheme for embedding objects.
But tags are shared so i can easily implement something like "get posts by tag".
Do i have access to the ids of tags and comments without deep loading?
so Post -> has a field "tags" as a Set. So i can request all tags by one additional get:
db.Tag.find().in('id', post.tags).resultList()

?

Yes, sure.
Just the Set type is introducing a problem here.
We should make this more clear in the guide.
The collection operators expect a List or Array type.
You can for example do:
db.Tag.find().in('id', Array.from(post.tags)).resultList()

Yeah, you are totally right. I forget sometimes that there are the "new" types in javascript and we have to use .size and not .length and so on :)
i close this issue. Thanks!


Exec tachikoma update<PHONE_NUMBER>3333

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Coverage remained the same at 67.742% when pulling 2f35cd05ce57d5fad038339bea8ed2dfb8b90144 on pazjacket:tachikoma/update-20170319163333 into 83bfeb9a109b66006c80db32c31e77b9ae1c9dcb on sanemat:master.


Added check for key down target to not allow it if target is input or…

… textarea.
We added the timeline to this site https://oregontheaterproject.uoregon.edu/ as a region on the homepage. We enabled the keyboard controls but noticed that when using the site search we couldn't enter a space because it triggered the timeline autoplay.
The changes in this pull request are one way to fix it (got the idea from https://stackoverflow.com/a/2167725) but I am open to alternate suggestions.

Thanks! I'll merge and publish this as 1.4.2.


Allow install on older versions of VSCode (version 1.84.1)?

Thank you for this!
I am on a corporate network and unable to upgrade Visual Studio Code to the latest. Is there a tweak to allow installs on older version of VSCode?
Error for reference . . .
Can't install 'jacobcassidy.css-nesting-syntax-highlighting' extension because it is not compatible with current version of Visual Studio Code (version 1.84.1)
TIA!

@dragontheory I updated the VSCode engine to allow versions from 1.84.0 and above, so it should work for you now. I haven't tested it since I have the latest VSCode installed, so let me know how it goes (make sure you are installing version 0.1.0 of the CSS Nesting extension).

Thank you very much! I will check it out at corporate tomorrow and let you know.

It worked! Thank you again!


Need onTouch callback

Was thinking about the latency issues. I'm trying to detect if the user is touching an object. currently adding an actor object with a collider on it attached to hands to register when the user touches an object.
The onButton callback is much more responsive then this physics based touch detection.
So I think it would be nice if there was a onTouch for buttonBehavior. if that ran locally (the same way onClick seems to do) I think it would make interactions faster/smoother.

Hi David! Proximity interaction with buttons is something that we want to implement with the button behavior.  Much of the infrastructure is in place to do this, it just needs a bit more implementation to get it working. The plan was to have this just fire off existing events for onButton and onClick, just through proximity interaction.  Do you find a need for a separate event, when it would be raised as a button and click event?

Hmmm. Thinking about it now. Not sure I have a use case for a seperate event type. Re-using onButton should work.

I think as long as there was a distance/proximity parameter, this would work.
P.S. The new physics sync seems to interpolate, so my previous method (of attaching kinematic rigidbodies to the users hand attachment point), performs even worse (sluggish as the hand collider needs to "catch up" to the hand. ie, the onButton proximity is even more needed.


Cannot read properties of null (reading 'hasOwnProperty')

2021-11-07T21:01:08.917 ERROR (pid:14258) [source-language] - Complete "phpls" error: TypeError: Cannot read properties of null (reading 'hasOwnProperty')
    at /home/vallabh/github/coc-phpls/lib/index.js:98:29
    at async LanguageSource.doComplete (/home/vallabh/.vim/vendor/coc.nvim/build/index.js:59366:20)

Not sure the root of the problem, but the following fixed the php comments issue as a workaround:
Plug 'neoclide/coc.nvim', {'branch': 'release', 'commit': '0d9e7f65db1df0ff0946798c81097abafc018068'}
cd ~/.vim/bundle/coc.nvim
yarn install
yarn build

Not sure the root of the problem, but the following fixed the php comments issue as a workaround:
Plug 'neoclide/coc.nvim', {'branch': 'release', 'commit': '0d9e7f65db1df0ff0946798c81097abafc018068', 'do': 'yarn install --frozen-lockfile'}

Thanks @scottperlitch for the workaround. For everyone else, don't burn 10 minutes like me and remember to:

:CocRestart
yarn install (In your CoC plugin directory)

Plug 'neoclide/coc.nvim', {'branch': 'release', 'commit': '0d9e7f65db1df0ff0946798c81097abafc018068', 'do': 'yarn install --frozen-lockfile'}

This help but creates another problem for me:
[coc.nvim] Error on activate extension coc-prettier: import_coc6.window.onDidChangeActiveTextE ditor is not a function

I have created and maintain my own extension of coc.nvim for intelephense. Until the problem is fixed in coc-phpls, please try if you need.

coc-intelephense

https://github.com/yaegassy/coc-intelephense
:CocInstall @yaegassy/coc-intelephense

For me, this bug happens on macOS but not Linux.


[AMHACK] Incorrect percentages appearing in stats for the number of API invocations per API versions

Description:
Incorrect percentages appearing in stats for the number of API invocations per API versions
Suggested Labels:
Bug
APIM Publisher
Affected Product Version:
APIM wum updated - wso2am-<IP_ADDRESS>0928473100.zip
APIM analytics - wso2am-analytics-<IP_ADDRESS>0935606971.zip
OS, DB, other environment details and versions:
Standalone
Ubuntu 15.10
JDK - jdk1.8.0_66
DB - Postgres 9.6.3
Browser - Chrome Version 58.0.3029.96 (64-bit)
Pre -requisites

Several APIs with versions
API invocations should be available

Steps to reproduce:

Go to Publisher console -> Analytics -> API -> Top API Users section

Observations
Incorrect percentage appearing for the number of API calls
ex: There are overall 42 API calls (22 for version 3.0.0 and 20 for 4.0.0) for all these percentages is shown as 100% which is incorrect.

For version 3.0.0 - > it should show the percentage based on the API calls received for the API ( around 52%)

Hi,
This percentage value shows the percentage each user did for that particular api (not the percentage amonge all versions).
For example, User Shakila has done 20 requests for the version 4.0.0 and there are no other users done any requests for this version. So all the requests are done by shakila. that is 100% of the request. If there is another user called version 4.0.0, then the % value will be divided among them. See below image for two users


Incorrect "Date string" shown for recent played

Playnite Version: 9.18
Startpage Version: 2.7.0
Hi there,
just recently I found that  the Startpage date string ('Today','Yesterday',etc.) are not correctly updated. It all works fine when Playnite is started, but when it runs 24h+ the day changed and it should update the labels. The update process worked correctly in previous versions, but I cannot say in which one(s), but now I may have multiple 'Today' strings shown. Interesting the games shown are sorted correctly, only the label is incorrect.
I'll append some screenshots when I have the time. (Did updates this morning so everything's ok right now)

done via fd8a88142e2ed33daa1380c2f28f4cea2c87bbe0


Outline view doesn't work for newly created untitled file

Testing #50614

create an untitled file, my default language for untitled file is markdown
nothing shows up in outline view
switch to another file, say Readme.md
switch back, the outline shows symbols.

Likely that we first need to active the extension in question, or that the extension doesn't support untitled files...

This is an issue with the markdown extension, it seems to fail to outline untitled files

I see a few second delay, but I do end up with symbols in the untitled file without opening another file.

That's likely because of a heuristic that's in place: Whenever the amount of symbols changes by a lot between two edits we delay updating. That's to prevent flicker but likely gets in your way when having empty files. See https://github.com/Microsoft/vscode/issues/49975 for details

I can't repo on bfd155e6039f64d2795c6b514a029ebd01a33527 with a simple file:

@rebornix Any other steps? What was the content of the new file?

now I can see the outline but it took around 2~3 seconds with one line content # a.

Yeah, that's due to aggressive back-off when the outline changes between edits. That's a heuristic to keep the outline view stable. Tho, I have pushed to change to be more aggressive when the text model is small (less than 25 lines)

Sounds good to me. Feel free to close this issue.


app-data PTO is set to the past sometimes

See here just after completion of the handshake: https://qvis.edm.uhasselt.be/#/sequence?file1=https://github.com/lucas-clemente/quic-go/files/4882832/client_b999aa04ee056eef2a.qlog.txt?ext=.qlog&file2=https://github.com/lucas-clemente/quic-go/files/4882833/server_b999aa04ee056eef2a.qlog.txt?ext=.qlog

Here's what's happening in this trace:
The server sends 0.5-RTT data in its first flight, but the whole first flight is lost. It is retransmitted after the PTO fires for the Initial packet number space after 200ms. The handshake then completes successfully, establishing an RTT of ~60ms.
As soon as the handshake completes, the server arms the PTO timer based on the time the first 1-RTT packet was sent. Because the 200ms the first PTO took is so much longer than the actual RTT, the timer ends up being armed in the past, and then fires immediately.