Rundeck is unable to connect to nodes when using jumphosts.

Hello,
I have an issue with rundeck & ansible while connection via a jumphost.
The setup works when only running ansible, but it can't connect when it's performed by rundeck.
Our setup:
The following command is configured to let a group of hosts use the jumpserver.
ansible_ssh_common_args: '-o StrictHostKeyChecking=no -J ansible-***@jmpserver -l ansible-***'
This gives the expected result when using ansible:

[ansible-****@rundeckserver Git]$ ansible -m ping -i Atlas targetserver
targetserver | SUCCESS => {
"changed": false,
"ping": "pong"
}

But when trying to get the node rundeck fails as seen in /var/log/rundeck/service.log:

fatal: [targetserver]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,keyboard-interactive).\r\nssh_exchange_identification: Connection closed by remote host\r\n", "unreachable": true}

Connection to a server without using a jumphost works fine.
Rundeck Project configuration:
#Wed Oct 24 16:12:47 CEST 2018
#edit below
ansible-become-method=sudo
ansible-become=true
ansible-ssh-auth-type=privateKey
ansible-ssh-key-storage-path=keys/ansible-****
ansible-ssh-user=ansible-***
project.ansible-become-method=sudo
project.ansible-become=true
project.ansible-config-file-path=/etc/ansible.cfg
project.ansible-debug=true
project.ansible-executable=/bin/bash
project.ansible-ssh-auth-type=privateKey
project.ansible-ssh-key-storage-path=keys/ansible-****
project.ansible-ssh-user=ansible-****
project.ansible-windows-executable=cmd.exe
project.description=Rundeck project for Atlas
project.disable.executions=false
project.disable.schedule=false
project.gui.motd.display=projectList,projectHome
project.gui.readme.display=projectList,projectHome
project.jobs.gui.groupExpandLevel=1
project.label=Atlas
project.name=Atlas
project.nodeCache.delay=5
project.nodeCache.enabled=true
project.nodeCache.firstLoadSynch=true
project.ssh-authentication=privateKey
project.ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
resources.source.1.type=local
resources.source.2.config.ansible-become-method=sudo
resources.source.2.config.ansible-become=false
resources.source.2.config.ansible-config-file-path=/etc/ansible/ansible.cfg
resources.source.2.config.ansible-debug=true
resources.source.2.config.ansible-disable-limit=false
resources.source.2.config.ansible-gather-facts=true
resources.source.2.config.ansible-ignore-errors=true
resources.source.2.config.ansible-inventory=/etc/ansible/Git/Atlas
resources.source.2.config.ansible-ssh-auth-type=privateKey
resources.source.2.config.ansible-ssh-keypath=/var/lib/rundeck/var/storage/content/keys/ansible-****
resources.source.2.config.ansible-ssh-user=ansible-****
resources.source.2.type=com.batix.rundeck.plugins.AnsibleResourceModelSourceFactory
service.FileCopier.default.provider=com.batix.rundeck.plugins.AnsibleFileCopier
service.NodeExecutor.default.provider=com.batix.rundeck.plugins.AnsibleNodeExecutor
service.NodeExecutor.provider=com.batix.rundeck.plugins.AnsibleNodeExecutor
Could you assist with this issue?
Thanks in advance!

Are you able to reproduce the problem while running the job with the logging level set to DEBUG, and post the results here?


Remove Location & On Site Requirements from Opportunities

Do we need this for an opportunity? Can remove if not.

These fields have been removed from Opportunities and are no longer required.


Unhandled nil when partitioning is in use

Environment

Oban v2.17.10, Oban.Pro v1.4.9
Elixir 1.16.2 (compiled with Erlang/OTP 26)

Current Behavior
Previously, we had a queue declared in following way:
my_queue: [
      local_limit: 1,
      global_limit: [allowed: 1, partition: [fields: [:args], keys: [:company_id]]]

Recently we have decided to:

Reconfigure queue:

my_queue: [
      local_limit: 5,
      global_limit: [allowed: 3, partition: [:worker, args: :company_id]]
    ]

add a new queue:

my_queue_2: [
      local_limit: 5,
      rate_limit: [
        allowed: 2000,
        period: {30, :minutes},
        partition: [:worker, args: :company_id]

reconfigure workers to use a new queue: my_queue_2

We have two kind of jobs currently available:

jobs with company_id key included in args,
jobs without that particular key.

Some of them were enqueued before configuration change.
During deployment we observed this error:
GenServer {Oban.Registry, {Oban, {:producer, "my_queue"}}} terminating
** (ArgumentError) comparison with nil is forbidden as it is unsafe. If you want to check if a value is nil, use is_nil/1 instead
    (ecto 3.11.2) lib/ecto/query/builder.ex:1069: Ecto.Query.Builder.not_nil!/1
    (oban_pro 1.4.9) lib/oban/pro/engines/smart.ex:1071: anonymous fn/5 in Oban.Pro.Engines.Smart.demands_to_conditions/2
    (ecto 3.11.2) lib/ecto/query/builder/dynamic.ex:79: Ecto.Query.Builder.Dynamic.expand/3
    (ecto 3.11.2) lib/ecto/query/builder/dynamic.ex:49: Ecto.Query.Builder.Dynamic.fully_expand/2
    (ecto 3.11.2) lib/ecto/query/builder/filter.ex:133: Ecto.Query.Builder.Filter.filter!/7
    (oban_pro 1.4.9) lib/oban/pro/engines/smart.ex:986: Oban.Pro.Engines.Smart.fetch_subquery/4
    (oban_pro 1.4.9) lib/oban/pro/engines/smart.ex:886: Oban.Pro.Engines.Smart.fetch_jobs/2
    (ecto 3.11.2) lib/ecto/multi.ex:883: Ecto.Multi.apply_operation/5
    (elixir 1.16.2) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3
    (ecto 3.11.2) lib/ecto/multi.ex:856: anonymous fn/5 in Ecto.Multi.apply_operations/5
    (ecto_sql 3.11.3) lib/ecto/adapters/sql.ex:1358: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
    (db_connection 2.7.0) lib/db_connection.ex:1756: DBConnection.run_transaction/4
    (ecto 3.11.2) lib/ecto/repo/transaction.ex:18: Ecto.Repo.Transaction.transaction/4
    (oban_pro 1.4.9) lib/oban/pro/engines/smart.ex:536: anonymous fn/4 in Oban.Pro.Engines.Smart.fetch_jobs/3
    (oban_pro 1.4.9) lib/oban/pro/engines/smart.ex:1420: Oban.Pro.Engines.Smart.with_retry/3
    (oban 2.17.10) lib/oban/engine.ex:223: anonymous fn/4 in Oban.Engine.fetch_jobs/3
    (oban 2.17.10) lib/oban/engine.ex:319: anonymous fn/3 in Oban.Engine.with_span/4
    (telemetry 1.2.1) /app/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
    (oban 2.17.10) lib/oban/queue/producer.ex:245: Oban.Queue.Producer.start_jobs/1
    (oban 2.17.10) lib/oban/queue/producer.ex:236: anonymous fn/2 in Oban.Queue.Producer.dispatch/1
Last message: :dispatch

The only way to get the system working again quickly was to pause the queue.

How are the queues defined? Was the existing queue reconfigured while the system was running, or as part of a deploy?

We had to restore previous configuration of my_queue to maintain system operability. Current configuration which just work is:
iex(node@node)1> Oban.check_queue(queue: :my_queue)
%{
  name: "Oban",
  node: "node@node",
  running: [],
  queue: "my_queue",
  started_at: ~U[2024-10-30 14:22:48.081766Z],
  uuid: "0192ddce-c311-7193-b3d7-1a21b2a2464f",
  updated_at: ~U[2024-10-31 06:53:41.989277Z],
  rate_limit: nil,
  paused: false,
  local_limit: 5,
  global_limit: %Oban.Pro.Producer.Meta.GlobalLimit{
    allowed: 3,
    tracked: %{},
    partition: %Oban.Pro.Producer.Meta.GlobalLimit.Partition{
      fields: [:args],
      keys: ["company_id"]
    }
  },
  retry_attempts: 5,
  retry_backoff: 1000
}

iex(node@node)2> Oban.check_queue(queue: :my_queue_2)
%{
  name: "Oban",
  node: "node@node",
  running: [],
  queue: "my_queue_2",
  started_at: ~U[2024-10-30 14:22:48.082374Z],
  uuid: "0192ddce-c312-777f-9778-c6f95ac34a9a",
  updated_at: ~U[2024-10-31 06:54:54.158268Z],
  rate_limit: %Oban.Pro.Producer.Meta.RateLimit{
    allowed: 2000,
    period: 1800,
    window_time:<PHONE_NUMBER>,
    windows: [%{"curr_count" => 9, "prev_count" => 16}],
    partition: %Oban.Pro.Producer.Meta.RateLimit.Partition{
      fields: [:args, :worker],
      keys: ["company_id"]
    }
  },
  paused: false,
  local_limit: 5,
  global_limit: nil,
  retry_attempts: 5,
  retry_backoff: 1000
}

Queues were not reconfigured in runtime. We just edited config files, as a part of standard deployment process.

This is an edge case caused by the change from just args to both worker and args. It's fixed on main for inclusion in v1.5


How to only crawl latest post?

Hey,
how to only get the latest content of the last post?

@null15 this depends on the website that you are crawling. You will get all the content from the page and then you will have to parse the content via an HTML parsing module or library. For python you can use html.parser
As this is more an issue related to a website than to the library itself, I'm closing the issue. Please contact directly our support team for further assistance here.


Jetty stand-alone jar Monitoring didn't return success transaction

Currently i'm monitoring a stand-alone jar runed by jetty,jvm information is returned normally ,but there no transaction returnd.
After modify jetty runtime param now the application that i want to monitor start like this
nohup java -DSTOP.PORT=XXXX -DSTOP.KEY=secret  -javaagent:/app/weblogic/pinpoint-agent/pinpoint-bootstrap-1.6.0-SNAPSHOT.jar -Dpinpoint.agentId=25_smsFront -Dpinpoint.applicationName=XXX.XXX.XXX.25_smsFront -jar /app/jetty/smsFront/start.jar /app/jetty/smsFront/etc/jetty-logging.xml -Xloggc:/app/atglogs/smsf/smsFront/gc/gc_$$.log --daemon > /dev/null 2>&1 &
but during test ,there no successful transaction returned

So i just consider it as a tipical stand along jar just run by java command,and put the method that i need to monitor in pinpoint.config in pinpoint agent.just like this.
profiler.entrypoint=org.gridkit.jvmtool.MBeanCpuUsageReporter.probe, org.gridkit.jvmtool.MBeanCpuUsageReporter.report, org.gridkit.jvmtool.MBeanCpuUsageReporter.format
but still return nothing.

after a long time test,i write a self made war and deployed is in jetty .shource code like this
`public class MyFirstServlet extends HttpServlet {
/**   **/
private static final long serialVersionUID =<PHONE_NUMBER>421139662L;

@Override
protected void service(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {

    // 获取用户的name
    String name = request.getParameter("name");

    // 对name进行转码
    if (name != null) {
        name = new String(name.getBytes("ISO-8859-1"), "GBK");
    } else {
        name = "陌生人";
    }

    // 设置输出
    response.setContentType("text/html;charset=GBK");
    PrintWriter printWriter = response.getWriter();
    printWriter.println("<TITLE>myFirstServlet</TITLE>");
    printWriter.println("");
    printWriter.println("

" + name + ":您好!
");
    printWriter.println("");
    printWriter.close();
}

}`
it.s just return a page sayed hello base on the name you insert in the url
and it return just like this page

base on the start up comand ,it seems that in jetty,just conside the war you want to monitor a start alone application 。You want to monitor the stuff in the War,you have to define it  in pinpoint.config in pinpoint agent home.

Needs to be a comma separated list of fully qualified method names. Wild card not supported.
profiler.entrypoint=com.myservlet.app.servlet.MyFirstServlet.service
Ex: foo.bar.MyClass.myMethod, foo.bar.MyClass.anotherMethod

like this ,the  service(HttpServletRequest request, HttpServletResponse response) can be monitored


I want to test my controller algorithm on apollo , what steps i have to do?

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04):
Apollo installed from (source or binary):
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0):

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:

Supporting materials (screenshots, command lines, code/script snippets):

Here is a doc How to add a new control algorithm


Flux example raise HCL error when multi-samples as input.

System Info
U22
HABANA G3
ubuntu22.04
pt 2.5.1
v 1.19.0
b 486

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[X] My own task or dataset (give details below)

Reproduction
@huijuanzh
caption_10.tsv file as following.

A woman looking at a polar bear through glass.
Two briefcases are used as decoration above these clothes
A couple snugging together on a wooden bench.
a young boy playing video games with her friends
Three women wearing long dresses standing behind a dog.
This is an RV kitchen area next to a tv.
a lady that is on some skies on some snow
A dog that is standing in the grass with a bull.
Two men standing around a table with bottles of wine.

LOG_LEVEL_ALL=2 python text_to_image_generation.py     --model_name_or_path black-forest-labs/FLUX.1-schnell     --prompts_file /home/changwang/workspace/mlperf_sd_inference/caption_10.tsv     --num_images_per_prompt 1     --batch_size 1     --num_inference_steps 4     --image_save_dir ./tmp/flux_1_images     --scheduler flow_match_euler_discrete    --use_habana     --use_hpu_graphs     --gaudi_config Habana/stable-diffusion     --bf16

Synapse detected a device critical error that requires a restart. Killing process in 5 seconds (hl: 0) 11:05:15 [HCL error]

Expected behavior
no error raised.

I cannot reproduce it, what is the version of the Docker image you used?


Setup Codecov

Hey, can I take this up?

Hey, can I take this up?

Yes, that would be awesome! 😎

I will be using https://app.codecov.io/gh for the same.
I would require permissions to the repo settings, as I will be adding secrets etc. I think you'll have to add me as a collaborator under repository settings 😅

I would require permissions to the repo settings. I think you'll have to add me as a collaborator under repository settings 😅
https://app.codecov.io/gh/Crazy-Marvin/VacationDays/settings

Done. 👌🏽

I already added the Codecov secret. Please let me know if you need anything else.

Please let me know if you need anything else.

https://github.com/apps/codecov
Requesting you to install this app to this repository

Please let me know if you need anything else.

https://github.com/apps/codecov
Requesting you to install this app to this repository

The Codecov GitHub app is already active on this repo. 🤔

JaCoCo fails (example).
May you please have a look when you have your Android setup available again, @tharun634?


Conditional Background Color Formula in tileProps not loading properly (List View JSON Formatting)

Category

[x] Bug

Describe the bug
Background conditional color using an if formula for a single choice field works only some of the time. The rest of the time JSON does not even load, and thus the list shows a blank page. This formula I am using was provided by @thechriskent, but didn't seem to solve the issue.
Steps to reproduce

DELETE THIS LINE BEFORE SUBMITTING - Provide steps to reproduce the behavior:

Go to 'a list that has a tileProps JSON list view formatting'
Click on 'the tile view'
Add JSON background color to the style inside the children of the formatter div
"background-color": "=if(toLowerCase([$Status]) == 'pending', '#98FB98', if(toLowerCase([$Status]) == 'reviewed', '#FFEC8B', if(toLowerCase([$Status]) == 'referred for review', '#FF6F61', '')))"
Save the JSON
Update the page, and it will show a blank page. Click on any other view, and click back on the tile view you just formatted, you should now see the formula.

Expected behavior
The formula should be loaded every single time regardless of how you access the list view. If I set this tile view as the default view for the list it should still format correctly.
Environment details (development & target environment)

OS: Windows 10
Target Environment: SharePoint Online
Browser(s):  Chrome v79
Tooling: VS Code

Additional context
Thanks for your contribution! Sharing is caring.

I'm having trouble recreating this. I created a simple format that seems to work regardless of refresh. Could you give this a try and confirm if you are still seeing the issue?
{
  "tileProps": {
    "width": "80",
    "height": "80",
    "formatter": {
      "elmType": "div",
      "txtContent": "Wowee!",
      "style": {
        "background-color": "=if(@rowIndex % 2 == 0, 'steelblue', 'teal')"
      }
    }
  }
}

If the above format works consistently, could you provide the full format you are using? Thanks!

Thanks for you quick response, I can confirm the last code snippet provided works as intended all the time. I think I found the reason why the background-color was only applying half them time, was due to an override of the class using some sp-color class.


Dictionary for candidate selection

Hi,
In the paper, it is mentioned that a dictionary built from a large Web corpus (crosswikis) is used.  Actually, it (crosswikis) provides 8 dictionaries, could you please tell me which one is used and if some pre-processing operations have been applied to the original dictionary?
I noticed that the original dictionary.bz2 is 2.7G, which is much larger than the dictionary (crosswikis_p_e_m.txt: 789M) extracted from basic_data.zip.
Thank you.

I created the crosswikis_p_e_m.txt from the original Crosswikis very long time ago and unfortunately I do not have the code for it. But afaik I only removed mentions that contain the subtring "wikipedia" and converted the remaining dictionary in the format of crosswikis_p_e_m.txt .

Thank you.


export within crontab won't work

Use crontab to write into a intermediary file in f.e. ~/.local/tmp and read that file in a wrapper.
For example instead of a cron entry of
6-12 * * 1-5 export TOD=`-aft -eve -night -wknd`

(also using backticks would try to execute a string, so the above won't work)
do
6-12 * * 1-5 echo '-aft -eve -night -wknd' > /tmp/TOD && chmod 0600 /tmp/TOD

and then use a wrapper, as perhaps:
function tw_tod_wrapper {
    some_other_tw_wrapper $(cat /tmp/TOD) $other_options
}

Thanks @DDzwiedziu , I will try that!


merge package template from Kronos-Tools/npm-package-template

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template

Coverage remained the same at 79.545% when pulling 895defea5767d42dc165a51ecd0f644de18a7651 on template-sync-1 into 83900ad693f369700677c413095cc0c85bf35a6c on master.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #179   +/-   ##
=======================================
  Coverage   83.33%   83.33%
=======================================
  Files           1        1
  Lines          54       54
=======================================
  Hits           45       45
  Misses          9        9

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 83900ad...895defe. Read the comment docs.


Missing translation for 'code_label' on tablecolumnview.

Missing translation for 'code_label' on tablecolumnview, that will throw a js error.


Test failures fixes

Enabling user mode exposed some problems with how ARC uses the STACK_ALIGN macro with user mode, some tests with very large stacks, and some footprint tests.
Fixes #7819

Codecov Report

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

@@           Coverage Diff           @@
##           master    #7827   +/-   ##
=======================================
  Coverage   55.02%   55.02%
=======================================
  Files         483      483
  Lines       53960    53960
  Branches    10499    10499
=======================================
  Hits        29694    29694
  Misses      19978    19978
  Partials     4288     4288

Impacted Files
Coverage Δ

kernel/init.c
67.85% <ø> (ø)
:arrow_up:

tests/ztest/src/ztest.c
62.28% <ø> (ø)
:arrow_up:

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 14fe272...a1b8622. Read the comment docs.


AttributeError: 'ColorFormat' object has no attribute 'brightness' when using a theme color

the documentation suggests I should be able to increase or decrease brightness of font when using a theme color:
https://python-docx.readthedocs.io/en/latest/dev/analysis/features/text/font-color.html?highlight=brightness
here is the code in question:
obj_charstyle2 = obj_styles.add_style('AddressStyle', WD_STYLE_TYPE.CHARACTER)
obj_font2 = obj_charstyle2.font
obj_font2.size = Pt(10)
obj_font2.name = 'Lucida Calligraphy'
obj_font2.color.theme_color = MSO_THEME_COLOR.ACCENT_6
obj_font2.color.brightness = -0.5

@ProgrammerMatt the page you linked to is a design document, which in this case has not yet been fully implemented. You can see the same operation at work in the python-pptx package here:
https://github.com/scanny/python-pptx/blob/master/pptx/dml/color.py#L35 .
and in more detail here:
https://github.com/scanny/python-pptx/blob/master/pptx/dml/color.py#L130:L152 .
if you want to take a crack at adding it locally for your own use.


TimeTable doesn't open

Hi There!
Today I've installed your app (downloaded the .dmg-file, macOS Sierra).
If I try to open the app, there's an alert:

Whoops! I'll get a new build up ASAP.

Ok, thanks for your very quick response! 👍

In the meantime you could probably download an older build (just fyi)

For example, https://github.com/willyb321/electron-menubar-timetable/releases/download/build-490-master-2016-10-20-01-58/TimeTable-darwin-x64.zip

Ok, thanks, I will try it out. 👍

@w3code ok this should in theory be fixed in the latest version. Sorry for late reply! Been quite busy!

No problem for the late reply, @willyb321 . But it still doesn't work.
I made a clean install, but there's still this error:

ah, ive actually fixed it this time, ill ping you when the release goes up. Its building now!

BTW, the problem was a capital letter. LOL

Oh, I'm sorry, a misunderstanding. :)

Yeah, sometimes the errors seem to be big, but they aren't. :D

Lol yep. I was trying to set the icon to IconTemplate.png but its called iconTemplate.png lol

Ok, its now up.


Implement unique()

This follows on from #1780, and implements a solution for #1779
I changed the name of the function to unique() as discussed in #1780, and also fixed up a couple of literal tabs that snuck into composer_widgets.js

Codecov Report

Merging #2063 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2063      +/-   ##
==========================================
+ Coverage   72.22%   72.25%   +0.03%
==========================================
  Files          79       79
  Lines        7622     7631       +9
  Branches     1487     1490       +3
==========================================
+ Hits         5505     5514       +9
  Misses       1870     1870
  Partials      247      247

Impacted Files
Coverage Δ

webapp/graphite/render/functions.py
90.55% <100%> (+0.04%)
:arrow_up:

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 e0a48b8...8a98369. Read the comment docs.


Chapter 4 - Migrations.

$table->boolean('amenity_wifi')->default(false);
Does not work with Laravel 5.7,
Replaced that with
 $table->boolean('amenity_wifi')->default(0);
and it worked fine.

Thanks


How to avoid validaton when button is pressed?

I'm validating this form with: $("form#edit").validate();
The form has 3 buttons: save & close, save, cancel
Cancel is a button that post
How can i avoid validate() when cancel is pressed?

solved using the "cancel" class


Hot-loading sealed trait - MatchError

When hot-loading code, if I try to match on an old instance of a sealed trait, I get a MatchError.
ReactState
object ReactState extends Component {
  type Props = Unit
  sealed trait State
  case object A extends State
  case object B extends State

  class Def(jsProps: js.Object) extends Definition(jsProps) {
    def initialState = A

    def render() = {
      state match {
        case A => button("B!!", onClick := {(e: dom.Event) => setState(B)})
        case B => button("A!!", onClick := {(e: dom.Event) => setState(A)})
      }
    }
  }
}

[HMR] Waiting for update signal from WDS...
game-bundle.js:14403 creating proxy
game-bundle.js:735 [HMR] Accepted.
game-bundle.js:62597 [WDS] Hot Module Replacement enabled.
2game-bundle.js:62600 [WDS] App updated. Recompiling...
game-bundle.js:62726 [WDS] App hot update...
game-bundle.js:63154 [HMR] Checking for updates on the server...
0.e46a8a1eea7683d4b3a3.hot-update.js:sourcemap:13665 updating proxy
0.e46a8a1eea7683d4b3a3.hot-update.js:13663 scala.MatchError: A (of class com.jc776.motorcycle.dev.ReactState$A$)
...
game-bundle.js:63156 [HMR] Cannot apply update. Need to do a full reload!
[HMR] Error
    at $c_s_MatchError.webpackHotUpdate../client/target/scala-2.12/motorcycle-client-fastopt.js.$c_jl_Throwable.fillInStackTrace__jl_Throwable (http://localhost:8080/0.e46a8a1eea7683d4b3a3.hot-update.js:6415:14)
...
Navigated to http://localhost:8080/
game-bundle.js:sourcemap:63154 [HMR] Waiting for update signal from WDS...
game-bundle.js:14403 creating proxy
game-bundle.js:735 [HMR] Accepted.
game-bundle.js:62597 [WDS] Hot Module Replacement enabled.

HMR is otherwise set up correctly - modifying a component with simpler state still works.
This isn't directly a slinky problem (example) but it's a pretty big limitation on what state you can use with slinky-hot. Is there a workaround to convert old instances to new ones that could go either in my code or the library?

Thanks for the bug report!
I think this can be solved by slinky. Right now, there are no specialized readers or writers for sealed traits, which causes slinky to just wrap the Scala object when storing the state and cause the problem you are experiencing.
I'll work on adding support for sealed traits to the reader/writer type class derivation macros, which should fix this issue.

@jc776 I've been looking into implementing this, and it's turning out to be quite complicated to handle at the Slinky level in a way that supports all use cases. For now, I recommend manually writing a Reader and Writer for the sealed trait, which Slinky should automatically pick up.

Right, that makes sense. Thanks for looking into it!
A simple Reader/Writer doesn't solve it immediately, since the {__: ...} state after a setState doesn't get re-read before use.
import scalajs.js
import org.scalajs.dom

import me.shadaj.slinky.core.Component
import me.shadaj.slinky.web.html._
import me.shadaj.slinky.core.{Writer, Reader}

object ReactSwap extends Component {
  type Props = Unit
  sealed trait State
  case object A extends State
  case object B extends State
  val time = new js.Date()
  implicit val stateWriter: Writer[State] = (inst, root) => {
    println(s"${time} write $inst")
    val str = inst match {
      case A => "A"
      case B => "B"
    }
    js.Dynamic.literal(value = str)
  }
  implicit val stateReader: Reader[State] = (obj, root) => {
    val str = obj.asInstanceOf[js.Dynamic].value.asInstanceOf[String]
    println(s"${time} read ${js.Dynamic.global.JSON.stringify(obj)}")
    str match {
      case "A" => A
      case "B" => B
      case _ => throw new Exception("This isn't a serialized State.")
    }
  }

  class Def(jsProps: js.Object) extends Definition(jsProps) {
    def initialState = A

    def render() = {
      state match {
        case A => button("B!!", onClick := {(e: dom.Event) => {println("change to B"); setState(B)} })
        case B => button("A!!", onClick := {(e: dom.Event) => {println("change to A"); setState(A)} })
      }
    }
  }
}

creating proxy
sketch-fastopt.js:11853 Sat Sep 23 2017 17:11:23 GMT+0100 (GMT Daylight Time) write A
sketch-fastopt.js:11853 Sat Sep 23 2017 17:11:23 GMT+0100 (GMT Daylight Time) read {"value":"A"}
index.js:425 [HMR] Websocket connection successful.
sketch-fastopt.js:11853 change to B
sketch-fastopt.js:11853 Sat Sep 23 2017 17:11:23 GMT+0100 (GMT Daylight Time) read {"value":"A"}
sketch-fastopt.js:11853 change to A
sketch-fastopt.js:11853 change to B
sketch-fastopt.js:11853 change to A
sketch-fastopt.js:11855 updating proxy
index.js:511 [HMR] Error applying update $c_s_MatchError {s$1: null, e$1: null, stackTrace$1: null, objString$4: null, obj$4: $c_Lcom_jc776_sketch_example_ReactSwap$A$, …}

For my uses, serialising out state at the top level isn't too much work:
import io.circe.Json
import io.circe.syntax._

type Model = ...
type Msg = ...

def update(model: Model, action: Msg): Model = ???
def view(model: Model, send: Msg => Unit): ReactElement = ???

val stored = js.Dynamic.global.stored.asInstanceOf[js.UndefOr[Json]].toOption
var state = stored match {
  case None => init
  case Some(json) => json.as[Model]
}

def send(action: Msg): Unit = {
  val next: Model = update(state, action)
  state = next
  js.Dynamic.global.stored = next.asJson.asInstanceOf[js.Dynamic]
  render()
}

val root: dom.Element = dom.document.getElementById("app")
def render(): Unit = {
   ReactDOM.render(program.view(state, send), root)
}

render()

Ah, that is a bug and something I can fix! In the 0.2.0 changes I introduced the __ optimization, but forgot that using that would break hot loading. I'll work on a change to disable the optimization when hot loading is enabled.

@jc776 Can you try with a custom Reader/Writer and the latest snapshot build? I fixed the bug with not using Readers and Writers when hot loading is enabled.

Here's a simpler setup, without the 'server' part.
It's now storing the Reader/Writer values, but reads them with the 'old' Reader after an update, returning old instances of A/B that don't compare:
sketch-fastopt.js:12835 change to B
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) write B
sketch-fastopt.js:12835 {"value":"B"}
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"B"}
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"B"}
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"B"}
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"A"}
sketch-fastopt.js:12837 main()
sketch-fastopt.js:12837 updating proxy
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"B"}
sketch-fastopt.js:12835 Sat Sep 30 2017 22:21:42 GMT+0100 (GMT Daylight Time) read {"value":"B"}
sketch-fastopt.js:12835 scala.MatchError: B (of class com.jc776.sketch.example.ReactSwap$B$)
sketch-fastopt.js:12835   at $c_s_MatchError.$c_jl_Throwable.fillInStackTrace__jl_Throwable(eval at <anonymous> (http://localhost:9966/bundle.js:24503:20), <anonymous>:6097:14)
sketch-fastopt.js:12835   at $c_s_MatchError.$c_jl_Throwable.init___T__jl_Throwable(eval at <anonymous> (http://localhost:9966/bundle.js:24503:20), <anonymous>:6196:8)
sketch-fastopt.js:12835   at scala.MatchError.<init>(eval at <anonymous> (http://localhost:9966/bundle.js:24503:20), <anonymous>:10293:52)
sketch-fastopt.js:12835   at com.jc776.sketch.example.ReactSwap$Def.render(eval at <anonymous> (http://localhost:9966/bundle.js:24503:20), <anonymous>:9843:35)
sketch-fastopt.js:12835   at com.jc776.sketch.example.ReactSwap$Def.render(eval at <anonymous> (http://localhost:9966/bundle.js:24503:20), <anonymous>:9872:14)
sketch-fastopt.js:12835   at com.jc776.sketch.example.ReactSwap$Def.proxiedMethod [as render](http://localhost:9966/bundle.js:55172:30)
sketch-fastopt.js:12835   at {anonymous}()(http://localhost:9966/bundle.js:43471:21)
sketch-fastopt.js:12835   at measureLifeCyclePerf(http://localhost:9966/bundle.js:42751:12)
sketch-fastopt.js:12835   at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext(http://localhost:9966/bundle.js:43470:25)
sketch-fastopt.js:12835   at ReactCompositeComponentWrapper._renderValidatedComponent(http://localhost:9966/bundle.js:43497:32)
index.js:511 [HMR] Error applying update $c_s_MatchError {s$1: null, e$1: null, stackTrace$1: ArrayClass, objString$4: "B (of class com.jc776.sketch.example.ReactSwap$B$)", obj$4: $c_Lcom_jc776_sketch_example_ReactSwap$B$, …}
index.js:514 [HMR] Updated modules (2) ["client\target\scala-2.12\sketch-fastopt.js", "client\index.js"]

@jc776 just an update on fixing these issues: Magnolia (https://github.com/propensive/magnolia), the library used by Slinky for deriving instances of Reader and Writer, has received a lot of updates recently that I think will make it possible to fix this issue, so I'm going to update Slinky to use the latest version soon to try and fix these hot-loading bugs.

@jc776 can you try with the changes at https://github.com/shadaj/slinky/pull/45? The latest version of Magnolia allows Slinky to support sealed traits and case objects properly so hot-loading should work now.

With 0.1.1+23-0771ecb1, it's the same as before. The proxy uses the old StateReader (printed time 21:50:19 before and after updating proxy) which produces an old A that fails to match.
After the hot-swap, it should instead read the state with the new code's StateReader
It would be better to update the classes/methods in place, instead of this 'old/new' split. workbench used to be able to do this, but I don't think it works with the new fastOptJS format.
full log
bundle.js:13322 main()
bundle.js:13322 creating proxy
bundle.js:13322 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) write A
bundle.js:13322 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
bundle.js:24913 [HMR] Websocket connection successful.
sketch-fastopt.js:13309 change to B
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) write B
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"B"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"B"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"B"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 change to A
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) write A
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"B"}
sketch-fastopt.js:13311 main()
sketch-fastopt.js:13311 updating proxy
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 Thu Nov 16 2017 21:50:19 GMT+0000 (GMT Standard Time) read {"value":"A"}
sketch-fastopt.js:13309 scala.MatchError: A (of class com.jc776.sketch.example.ReactSwap$A$)```

Just merged https://github.com/shadaj/slinky/pull/48, which fixes sealed trait hot loading! Thanks so much @jc776 for the detailed logs and reproduction, those were very helpful in fixing this bug!


Test: Animal class

Summary
Cover the base animal class.
Detailed description
Most important: Cover the Mate() method implemented in #1

Unit tests did not get the required priority.


Add comments with a list of regexes to ForbiddenComment

Fixes https://github.com/detekt/detekt/issues/3508

CI is crashing on rule code here:
 Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
	at java.lang.String.substring(String.java:1931)
	at io.gitlab.arturbosch.detekt.rules.style.ForbiddenComment.checkForbiddenComment(ForbiddenComment.kt:87)
	at io.gitlab.arturbosch.detekt.rules.style.ForbiddenComment.visitKtFile(ForbiddenComment.kt:65)

FYI: just to show what power this will give to users https://github.com/detekt/detekt/issues/6090#issuecomment-1553156297
Note: having multiple regexes is still a good addition, because of reason:

Really nice! Thank you for your patience. Few tiny detail suggestions and some more test coverage and I think we're there! Please review all the unresolved threads.
I'm happy to write the docs if you want, I can do it tomorrow morning.

Sure if you have something in mind. Do add it. Thanks for giving so much valuable feedbac

Pushed ~6 7~ 8 commits, mainly the docs, and some more test cases and minor fixes. Also noticed a few more things while writing the docs, please have a look.

Thanks a lot for contributing in this

Let's aim to resolve the rest of the threads and GO!

Yesss... It got stretched way too much but yes it was a nice experience to learn about new things. Thanks for your support


add: missing mdbook plugins

Feel free to not accept it since you should have something better

thanks for the PR @sven-hash - requested @raphael-walther to have a look at it since he's the one looking after the workflows

Thanks @sven-hash
Could you remove the two extra 'v' prefix in the versions ? That works here:
cargo install --vers "^0.4" mdbook && cargo install --vers "^0.2.0" mdbook-variables && cargo install --vers "^1.8.0" mdbook-admonish && cargo install --vers "^0.1.2" mdbook-last-changed && cargo install --vers "^0.1.2" mdbook-theme

I don't quite understand,
You mean removing the --vers parameters ? Or correct the version cargo install --vers "^0.1.2" mdbook-last-changed && cargo install --vers "^0.1.2" mdbook-theme , mdbook-last-changed and mdbook-theme have the same version
Feel free to edit the file in the PR, normally you have the rights

There was two typo in the version specification that cargo didn't like. I fixed it in the commit. Thanks again for helping.


Could not browse (read) the uploaded pdf file

Environment: Safari Version 17.0 (196<IP_ADDRESS>.1)
Frequency: every time
Steps to reproduce error:

Input the Chat GPT API-key
Browse file from local source (pdf)
Error happened when executed

TypeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/appuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
File "/app/document-qa/streamlit_app.py", line 262, in <module>
    st.session_state['doc_id'] = hash = st.session_state['rqa'][model].create_memory_embeddings(tmp_file.name,
File "/app/document-qa/document_qa/document_qa_engine.py", line 204, in create_memory_embeddings
    texts, metadata, ids = self.get_text_from_document(pdf_path, chunk_size=chunk_size, perc_overlap=perc_overlap)
File "/app/document-qa/document_qa/document_qa_engine.py", line 169, in get_text_from_document

Thank you for your reply. I just sent it via email to your address above.

Dear @libragirl-dewiyana,
I tested the PDF you sent me but I could not find anything wrong with it.

Can you send me a screenshot, next time you have a problem?
In mac you can use command + shitf + 4 and then select the area to delimit the screenshot, then you can just drag and drop here or via email.
Thanks!

Thank you for your reply. I also tried the above pdf file (SID-47482.pdf) at the moment, and there is no any problem browsing it. Since I can't reproduce the bug that I experienced yesterday, I'm not able to provide you the error screenshot for that file.
However, I can provide you with the screenshots of the previous bugs with different pdf files as following.
First image> October 30th 9:35 am for the file (SID-47456.pdf)

Second image> October 30th 9:38 am for the file (SID-47152-pdf)

For the second image, I also provided the comparison with the previous successful browsing for the same file (SID-47152) on Oct 27th 9:24 am.
All attempts were made on the same environment: Safari Version 17.0 (196<IP_ADDRESS>.1)
I'll send both files I mentioned above via email.
Thank you.

@libragirl-dewiyana thanks for the screenshots.
It seems that these errors were due to bugs that should have solved in recent development. In fact I updated the application several time in the last few days.
It seems that now it works well, then I think we can close this issue.
Feel free to open a new one if you have other problems.

Just now (Mon, Nov 6, 15:00 PM) I tried to browsed the previous PDF file (SID-47482.pdf), however the same error message occurred like the previous case.
I wonder why the error messages happened randomly, even though the environment is the same?
Thank you.

oh! Could you try this URL from now on? It should be working better: https://lfoppiano-document-qa.hf.space/

The above URL is working. Thank you very much!

I've opened #11 on what I think is the problem. If you still have troubles, please write directly there.
Terima kasih!


API&GM: FL adds transmitter interface

1. What this PR does:

this PR adds FL API tranmitter and GM adds it.

2. Which issues this PR fixes:

fix issues:  #161

/lgtm
/approve


mat-selection-list: selectAll and deselectAll methods should trigger selectionChange event

Please describe the feature you would like to request.
selectAll() and deselectAll() methods on MatSelectionList should automatically trigger the selectionChange event.
What is the use-case or motivation for this proposal?
Select some documents from a list.
The MatListOptions have [value] populated with an object containing a number of properties of the document (name, file size, last edited date, expiry date, etc.).
You want to communicate a warning to the user that specifies the number of expired documents in their current selection.
It's easy enough to calculate the number of expired documents in the current selection when the selectionChange event is fired, but if the user decides to selectAll, this event is not triggered, so additional workarounds need to be made to cover this case.
Is there anything else we should know?

I believe the intention with selectionChange is that it emits only if the option changed as a result of a user interaction and selectAll/deselectAll are programmatic changes.

@crisbeto: Thanks, I see your point.
If this is the case, then I'd want to update the documentation to make this explicitly clear.

Sure, feel free to send in a PR to update the docs.

What if you have a user interaction wired up to selectAll/deselectAll?
I think it would be nice to have the option to trigger this event without having to write extra code.
How about an optional extra parameter to the selectAll and deselectAll methods which would fire the event?
E.g.
selectAll(fireSelectionChange: boolean = false): void {
  ...
}

Was puzzled by this aswell, we expose select all / deselect all buttons to the user

would be nice with an option to fire the change event from these.

Seeing this now- I believe we should emit the event when the change comes from the user pressing Ctrl + A to trigger the select-all / deselect-all.


WIP: 388 zone facts table

What's new

Added a function that runs after all data loading is completed that drops the existing records from the zone_facts table and rebuilds the table.

Includes function that generates the values used in zone column ensuring that they match the relevant standard column name and zone_specific match the value for that column that is used in other tables.

Populate the zone_facts table with calculated fields from the "census_with_weighting" api endpoint: 'poverty_rate', 'fraction_black', 'income_per_capita', 'labor_participation', 'fraction_foreign', 'fraction_single_mothers'.

Testing
I need to complete unit test code so it is more robust.
To test:

simply rebuild the database by running python python/housinginsights/ingestion/LoadData.py docker - assuming your currently at the ..\housing-insights folder
review db to confirm zone_facts table exists and its populated with zone_specifics for ward, census_tract, and neighborhood_cluster zone_types along with calculated fields.

Thanks @jkwening ! I'll be able to review this tonight or tomorrow morning, and ideally merge it in before Tuesday's work session (I'll be virtual again this week).

@NealHumphrey it only took minor code changes to also populate the acs rent quartile data so I went ahead included it in this PR. The process for testing is unchanged.
Quick question: for my edification - why are we using 'population_weight_counts' instead of 'population_weight_proportion' for census to ward/neighborhood_cluster weight factor? I would have expected the latter. Thanks.

@jkwening it actually depends on the data source which weighting factor we should use. Here is the description of which to use where. We'll probably need to add some sort of configuration variable for each data source telling it which weighting factor to use (suggestion where to put that welcome).  In short, any thing that is a total sum for the zone (i.e. total income, total people working, etc.) should use population_weight_counts and anything that is a median/average/etc. should use population_weight_proportion. On the UI we should also flag anything that is weighted using a proportion since it's not quite as statistically accurate so should be used only when the source data size is not useful.


Wrapper export

ref: https://github.com/AllenDang/cimgui-go/issues/74

I wanted to to move this into internal directory, but because of #74  and https://github.com/golang/go/issues/13467 I will leave them as-are


Do not choke on web seeds

Web seeds should be considered as pure uncheked seeds according to BEP19
So we should never choke on them. Otherwise when there are no other
seeds, the downloads will hang

After the PR is updated, feel free to land this PR

are we good now? :)

Looks great, thanks!

Great! Something we needed. @feross Can we get this published?

@DiegoRBaquero Sorry for the delay. Just published this as 0.98.1.


Something small to start off!

Hey there! So I did some minor changes, needed to start off somewhere :)

I added an npm command for the project to start , you can also create commands for building / etc.
So now the project runs with, npm start , regardless of IDE settings.

Added all the JavaScript libs and css libs that were used, as local assets, to avoid any delays and using the internet for such matters.

Hope you agree with these small changes! More to come!

thanks mate. all good


DropboxError: server response does not have offset key

What went wrong?
Dropbox storage is not working
It works for me about 6 months, but now it raise error:
DropboxError: server response does not have offset key
What steps did you follow?
check it with 4.3.0 and 4.4.0 versions
ruby 2.3.3p222
Operating system: Debian GNU/Linux 8.7 (jessie)
Thanks All!

I think they have finally turned off api v1 support at dropbox. Has anyone adapted the dropbox script for dropbox_api usage instead of dropbox_sdk gem?

Try to adapted for dropbox_api

Same problem here... is there any switch I can use on the backup script to use the correct api version or will it be necessary to develop something at the backup gem level?
Thank you

i have tried to delete dropbox app and recreate all configuration steps from the beginning - now it is even not creating the .cache/... file of the session
just gives this:
[2017/09/30 09:53:05][info] Creating a new session!
[2017/09/30 09:53:21][error] Model::Error: Backup for MyModel backup (my_model_backup) Failed!
[2017/09/30 09:53:21][error] --- Wrapped Exception ---
[2017/09/30 09:53:21][error] Storage::Dropbox::Error: Upload Failed!
[2017/09/30 09:53:21][error] --- Wrapped Exception ---
[2017/09/30 09:53:21][error] Storage::Dropbox::Error: Authorization Failed
[2017/09/30 09:53:21][error] --- Wrapped Exception ---
[2017/09/30 09:53:21][error] Storage::Dropbox::Error: Could not create or authenticate a new session
[2017/09/30 09:53:21][error] --- Wrapped Exception ---
[2017/09/30 09:53:21][error] DropboxAuthError: Error getting request token.  Is your app key and secret correctly set?  Server returned 400: Bad Request.

The Dropbox API V1 has been recently shutdown and Backup doesn't have support for V2 yet. There's an issue open for it #838 , but it hasn't been fixed yet. @nynhex any update on this?

meantime, maybe someone can advice an alternative to dropbox?
official documentation http://backup.github.io/backup/v4/ proposes
    CloudFiles
    Dropbox
    FTP
    Local
    SCP
    SFTP
    RSync
    S3

and only dropbox i could use as a FREE external cloud service (CloudFiles as far as i tried - needs credit card and so on)

local - not an option at all
(S)FTP - if my server will be compromised then it will compromise my ftps too over backup setup files (so, again, not really an easy-to-setup option)
RSync/S3 - never used. looks like need much time to get how and what...

so, for now my backups are stopped and it is, obviously, not good :(
any suggestions?
thanks

I made a working fork with api V2, it's require api_token instead key and secret. Token can be generated in dropbox accout settings. Code is't very good, but it works.  Need to refactor tests. But there too many mocks)) and deep dependency with dropbox-sdk-gem.  May be after I'll refactor them amd make PR. Thanks all! https://github.com/vtm9/backup/tree/dropbox_api_v2

Hi
Gemfile
source 'https://rubygems.org'

gem 'backup', github: 'vtm9/backup', branch: 'dropbox_api_v2'
gem 'dropbox_api', github: 'vtm9/dropbox_api', branch: 'chunked_file_uploader'

bundle install - ok
but backup perform -t model_backup
[2017/10/01 09:18:52][error] CLI::Error
[2017/10/01 09:18:52][error] --- Wrapped Exception ---
[2017/10/01 09:18:52][error] NoMethodError: undefined method `api_key=' for #<Backup::Storage::Dropbox:0x00000001553f60>
[2017/10/01 09:18:52][error] Did you mean?  api_token=
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/config/helpers.rb:122:in `method_missing'
[2017/10/01 09:18:52][error] /home/deploy/Backup/models/tavie_backup.rb:30:in `block (3 levels) in load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/storage/base.rb:40:in `instance_eval'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/storage/base.rb:40:in `initialize'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/storage/dropbox.rb:33:in `initialize'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/model.rb:153:in `new'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/model.rb:153:in `store_with'
[2017/10/01 09:18:52][error] /home/deploy/Backup/models/tavie_backup.rb:29:in `block (2 levels) in load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/model.rb:127:in `instance_eval'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/model.rb:127:in `initialize'
[2017/10/01 09:18:52][error] /home/deploy/Backup/models/tavie_backup.rb:12:in `new'
[2017/10/01 09:18:52][error] /home/deploy/Backup/models/tavie_backup.rb:12:in `block in load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/config.rb:48:in `instance_eval'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/config.rb:48:in `block in load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/config.rb:47:in `each'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/config.rb:47:in `load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/lib/backup/cli.rb:129:in `perform'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bundler/gems/backup-c6e7aa56be38/bin/backup:5:in `<top (required)>'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bin/backup:22:in `load'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bin/backup:22:in `<main>'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `eval'
[2017/10/01 09:18:52][error] /home/deploy/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `<main>'

what to do?
Thx

Hi @lorenso, you need to specify your API token instead api_key and api_secret. Token you can generate in your dropbox account in apps tab.
  store_with Dropbox do |db|
    db.keep        = 5
    db.retry_waitsec = 1
    db.api_token  = "DROPBOX_TOKEN"
  end

This works for me

I made PR in WIP state. It can be merged after 'dropbox_api' gem updated. #901

@okliv - I think that S3 is by far the best option on that list. Personally, I would not recommend using Dropbox as a backup or archive, or a solution that just transfers data from one machine to another single machine.

@stuartellis @tombruijn I'm trying to find time to integrate the Dropbox API V2 into backup, but due to my time constraints this is slow moving juggling a day job and family.  Happy to continue to work on it, but honestly I think that we should stay away from Dropbox and focus on S3 support.  I've switched all of my backups with the gem to S3 and it works so well out of the box.
Thought on this anyone?

I'm of the same opinion. I mean, I started using Backup with Dropbox as well, but more as a hobby thing. I would not recommend it for storing business backups.
I'm using AWS S3 as well for backups. My hobby projects, the only thing I still use the Backup gem for, are about $1 per month. I've spent a lot more on backups. Good backups, stored on multiple locations, will cost some amount of money to store. Plus, free services aren't actually free.
Dropbox is a good entry-type of backup store for new users, but I wouldn't recommend using it for long. If no one considers Dropbox to be real good storage solution for backups, I'm okay with dropping it.
I'm much happier to see @nynhex have a good work-life balance than to support Dropbox APIv2 anytime soon.

I ought to add that I am really impressed with Dropbox as a sync solution: I just don't think that it is the best option where you might want to keep versions around for a long time (or forever).
Also, not supporting Dropbox in the "official" repository would really just mean that we don't feel that we can maintain or support code for it ourselves. I'm writing a PR for the documentation to note that Dropbox does not currently work, and would not be opposed to adding a link to another fork with Dropbox support.

Just to confirm that I have updated the documentation, with pull request #902.

@vtm9 Thank you, it works good! =)

@vtm9
Bundler could not find compatible versions for gem "dropbox_api":
  In Gemfile:
    dropbox_api

    backup was resolved to 5.0.0.beta.2, which depends on
      dropbox_api (= 0.1.10)

Could not find gem 'dropbox_api (= 0.1.10)', which is required by gem 'backup', in any of the relevant sources:
  git://github.com/vtm9/dropbox_api.git (at chunked_file_uploader@541bb9d)

It seems you have a 0.1.9 version in this branch.

@ulitiy, it's work for me:
gem "backup", git: "https://github.com/vtm9/backup.git", branch: "dropbox_api_v2"

https://github.com/Jesus/dropbox_api/pull/34
My PR for dropbox_api with chunked uploader was merged.
So, it's simple to change V1 to V2 dropbox adapters.
Now my fork works good, but if upgrade current gem it's will be better to create new PR with new version of dropbox_api gem.

I use your fork, too. Thanks a lot Vitaly!

Quick note for future visitors. If you're receiving errors like this:
[2017/12/12 21:12:48][error] Config::Error: Invalid Configuration File
[2017/12/12 21:12:48][error]   The configuration file at '/home/deployer/Backup/config.rb'
[2017/12/12 21:12:48][error]   does not appear to be a Backup v5.x configuration file.
[2017/12/12 21:12:48][error]   If you have upgraded to v5.x from a previous version,
[2017/12/12 21:12:48][error]   you need to upgrade your configuration file.
[2017/12/12 21:12:48][error]   Please see the instructions for upgrading in the Backup documentation.

then you might want to replace line # Backup v4.x Configuration with # Backup v5.x Configuration at the very top of your config.rb.

I'm so sad. why did not support Dropbox?


Documentation changes

Dictionary type hints are now in [key -> value] style. Previously
they were in [key, value] style.
Update page streaming return type to reflect changes to the page
streaming implementation in GAX.

Fixes #41
Fixes #43
cc: @tbetbetbe

LGTM


chore: Update NPM lockfile

This PR resolves the following warning and can speed up dependency installation:
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.

@rajivshah3 sorry my bad 🙏🏼 can you open the PR against master? AFAIK develop is super outdated right @GalRogozinski?


Hang when copy/pasting file with large number

Have file named file-9007199254740992.txt in explorer
Copy/paste it
Window hangs

This is from https://github.com/Microsoft/vscode/pull/50003. We shouldn't attempt this when the number is >= Number.MAX_SAFE_INTEGER.
It loops forever here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/files/electron-browser/fileActions.ts#L1049
This bug will happen whenever incrementFileName fails to modify the file name.

@isidorn, I guess only interesting thing about this what we should do in this case as we need to create some new file name?  Add .1 without changing the original number?

@Krzysztof-Cieslak that sounds reasonable


Fieldset Inconsistency?

Why are there two different rules for the fieldset element
Line 322 in the pre-compiled CSS
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em; }

Line 1673 in the pre-compiled CSS
fieldset {
  border: 0;
  padding: 0;
  margin: 0; }

Right below that rule is a fieldset class rule that doesn't even match the first fieldset rule
.fieldset {
  border: 1px solid #cacaca;
  padding: 1.25rem;
  margin: 1.125rem 0; }

.fieldset legend {
    background: #eeeeee;
    padding: 0 0.1875rem;
    margin: 0;
    margin-left: -0.1875rem; }

Seems inconsistent and I'm not sure why the first fieldset rule exists if it's going to be replaced by the second.

The forms documentation explains it:

To encourage their use as an accessibility tool, the  element is no longer styled by default. Those styles are now contained in the .fieldset class.

The fieldset tag styles are a CSS reset, while the .fieldset class styles apply visual styles.

Okay, that explains the last one with the class, but why have the first two then or if to make sure the border, margin, and padding are not applied why not just use the second rule in place of the first rule, since the first rule can't be used anyway?

Ah yeah, the first <fieldset> styles are added by Normalize. We've never really messed with the Normalize code, but in the interest of not repeating ourselves, it's probably worth removing that specific style.

Ah, okay. I wasn't thinking about Normalize doing things. Kinda forgot it was there since it's added seamlessly. Thanks for clarify though. :D


Add Presto inverse_laplace_cdf function

implementation of inverse laplace cdf

@aditi-pandit @majetideepak

Hi @jobbine-joseph, just in case you are not aware, we are holding on merging any inverse function implementations for now due to this issue https://github.com/facebookincubator/velox/pull/5382#issuecomment-1651920130. We are waiting for a fix from Meta.
CC @aditi-pandit

@aditi-pandit can you review this ?
Thank you


refactor(vite-plugin-angular): use for loop with continue statement

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/analogjs/analog/blob/main/CONTRIBUTING.md#-commit-message-guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Which package are you modifying?

[x] vite-plugin-angular
[ ] vite-plugin-nitro
[ ] astro-angular
[ ] create-analog
[ ] router
[ ] platform
[ ] content
[ ] nx-plugin
[ ] trpc

What is the new behavior?
Refactor processNgScript to use for loop to reduce the amount of nested ifs
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information
[optional] What gif best describes this PR or how it makes you feel?

Failing e2e test is unrelated


Transaction 'Pending' for Two Weeks — Still Churning on App, URL is Not Valid

I've long since given up on this transaction, but my wallet app still shows it as "Pending".
The URL returns a 404.
https://explorer.stacks.co/txid/0xf9bd590f045730166fac318f9b7041403b7471dd32897efb96c9a93c4cf2fbb1?utm_source=stacks-wallet&chain=mainnet

I'm closing but please reopen with a comment if you're still having issues with transactions.


HTTP 404 issues

Description
Some movies keeps saying http 404 which is very annoying needs to be fixed
Provider
The Movie DB
Reproduction steps
Some movies keeps saying http 404 which is very annoying needs to be fixed
Operating system
Android 13
Logs
Some movies keeps saying http 404 which is very annoying needs to be fixed

Please confirm the following

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] If related to a provider, I have checked the site and it works, but not the app.

What movies?

Long list mostly the 1980's and 70's movies and 2024 movies that recently came out thats the only bad thing about that provider needs improvements
the invitation (1984)
Python II  (2002)
Boa vs Python (2004)
Boa (1999)
Maybe even more but can't name all of them thats the only bad thing when vidsrc.to is the only server in that provider

The same thing happens to me I get that problem with tmdb provider HTTP 404  @stantanasi @anon45-ui

It really needs to be fixed

It really needs to be fixed

I also think the same as you

When the movie show a 404 error, it means that the movie is not available. For example, really old and not famous movie or too recent movies.
I could and will add more video source, but sometimes the movie can just be impossible to watch on streaming

When the movie show a 404 error, it means that the movie is not available. For example, really old and not famous movie or too recent movies. I could and will add more video source, but sometimes the movie can just be impossible to watch on streaming

Hello friend can you add more Streamflix movie and series providers that are in Spanish and English, it would be great if you added more movie and series providers that have more content as Streamflix add-ons and also free movie and series websites for 2024 We are in July

Closing this because I can't do anything about the 404 error, the movie is not available
Will implement more extractors (servers): #98


Keep flowtypes during compliation

Keep the flowtypes introduced in #36 during the compilation, making them available to consumers of redux-actions.

Hey thanks for all your PRs. I will get these merged soon... my attention has been elsewhere lately. I appreciate your efforts. :)

No worries, actually I'm not sure this one should be merged yet. I didn't have the time to check if this even works propperly with flow. There are some issues open at the babel-plugins/babel-plugin-flow-comments. Maybe it makes more sense to ship a lib of pure flow types.

I think for introducing typing, TypeScript is a better target because it has significantly larger adaptation.

How does this contribute to this PR? Flow and TypeScript are not mutually exclusive, so what is your point?

I don't think the source should be converted to Facebook Flow.

And neither should it be converted to TypeScript. You could have stated your opinion directly instead of posting some trollish comments.
If you had payed a bit more attention to this PR, you would have noticed it was opened in October 2015 and since than has gone stale.

Hi @clentfort nice effort,
Is there any chance the work in these PRs could be distilled in a contribution
to https://github.com/marudor/flowInterfaces?

@clentfort I think @alexgorbatchev meant the source rather than library definitions. That said I agree with @clentfort that having one definition has no effect on the other, but this PR has changes to the source.
That said, has anyone seen or built (perhaps just partially) a flow definition file for redux-actions? It's not so fun to switch to flow and have your type snow flow through redux-actions :(

@clentfort I created an external flow type definition for createAction to start, but am I'm running into some issues in getting real use out of it. I discuss it in this issue:
https://github.com/acdlite/redux-actions/issues/183
I was wondering if you had any thoughts on the matter??


Add version

I have read your readme, and I am aware that dnaapler is in a "Refactoring is in progress" state.
Even so, I would like to create a Docker container for this repository in https://github.com/StaPH-B/docker-builds. It would be very helpful to me if there was a version on github - even a pre-release one.

Hi Erin,
This is done now - pypi, conda or GitHub release are available :)


Feature Request: Clojure Code formatter

A built-in Clojure code formatter that formats code on save similar to the gofmt tool would be very nice and save a lot of keystrokes indenting and formatting. Thanks!

so basicly
(clojure.pprint/write
 	THE-FORM-OF-INTEREST
 	:dispatch clojure.pprint/code-dispatch)

bound to a key, replacing the actual form?

concept: https://gist.github.com/birdspider/97a8a13ac49383a90cc5
but for some reason the pprint replace, results in a "string"
;;; from find - replace
(defn y [] (x))
java.lang.String
;;; from pprint-replace-form!
"(defn y [] (x))"
java.lang.String

See this


az eventgrid event-subscription create fails...

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
I can't get the az eventgrid event-subscription create command to work.  Here is, to the best of my ability to read and consume the documentation, my best guess:
az eventgrid event-subscription create --name EndPointCheckerDynatrace --endpoint 'https://.azurewebsites.net/runtime/webhooks/EventGrid?functionName=' --endpoint-type webhook --subject-begins-with Dynatrace --subject-case-sensitive false --event-delivery-schema eventgridschema --labels functions-endpointtypedynatrace --source-resource-id '/subscriptions/xxxxx/resourceGroups//providers/Microsoft.EventGrid/topics/' --subscription xxxxxx
and here is the error message:
The attempt to validate the provided endpoint https://.azurewebsites.net/runtime/webhooks/EventGrid failed. For more details, visit https://aka.ms/esvalidation.
Expected behavior
I want it to work
Environment summary
shell command from terraform script
Additional context
What am I missing?

@dwhanger, thank you for raising this question. We are trying to reproduce your problem and we should be able to provide you with our findings or actual way to create a subscription.

Thanks for reporting it. From the description, it seems that the endpoint info is not in the correct/expected format for EventTrigger function.
The provided endpoint is
https://.azurewebsites.net/runtime/webhooks/EventGrid?functionName=
while the expected format should be something like this: https://{FuncAppName}.azurewebsites.net/runtime/webhooks/EventGrid?functionName={EventGridTriggerFunctName}&code={Key}
The provided endpoint is missing the function app name, function name and the key parts. To get this info please navigate to your function app --> Event Triggered function --> Integrate --> Event Grid Subscription URL --> Copy the context of the text box and use it in the az eventgrid event-subscription create command.
here is a sample of working cli command:
az eventgrid event-subscription create --source-resource-id /subscriptions/{XXXXXX}/resourceGroups/{RgName}/providers/Microsoft.EventGrid/topics/{TopicName} -n {EventSubscriptionName} --endpoint-type webhook --endpoint
https://{FuncAppName}.azurewebsites.net/runtime/webhooks/EventGrid?functionName={EventGridTriggerFunctName}&code={Key}
Please let us know if you are still hitting any issue. thanks

yeah, unfortunately, when I posted this originally I did not choose the { } and instead used less than and greater than signs which got "filtered"....
let me try with these paramenters.....one question though, how do I get the {Key} programmatically ?
I don't want to have to navigate to the portal and have any manual steps....

so, this can probably work as suggested if I have a way of programmatically getting the code so that I can send that in when I register the function to handle the eventgrid events....any suggestions on how to do that?

hello....given this:
az eventgrid event-subscription create --source-resource-id /subscriptions/{XXXXXX}/resourceGroups/{RgName}/providers/Microsoft.EventGrid/topics/{TopicName} -n {EventSubscriptionName} --endpoint-type webhook --endpoint
https://{FuncAppName}.azurewebsites.net/runtime/webhooks/EventGrid?functionName={EventGridTriggerFunctName}&code={Key}
....how do I get the {Key} programmatically so I can pass it in when I register the function without having to go to the portal UI interface?  Surely I can't be the first person wanting to do this....
Thanks.

I am having the similar issue. The endpoint does support subscription validation handshake as it is a function with EventGridTrigger binding. Even after passing function name and key, az cli command is throwing the error The attempt to validate the provided endpoint https://{functionappname}.azurewebsites.net/runtime/webhooks/eventgrid failed.
But same is working with Azure powershell command New-AzEventGridSubscription.
Thanks,
Rama.

Adding Function servide tag to provide a way for customer to get the key programmatically as this is function app issue and not event grid specific issue (We provided a workaround through the portal but customer is looking for programmatic way to get this info).

Hi Ahamad,
This is not a FunctionApp issue. I am able to get the key programmatically. The issue is with the az cli command.  The command should not complain about validation hand shake, as the subscriber is a function with EventGridTrigger binding.
Expected: The az cli command should succeed and not ask for validation handshake.
az eventgrid event-subscription create --source-resource-id /subscriptions/{XXXXXX}/resourceGroups/{RgName}/providers/Microsoft.EventGrid/topics/{TopicName} -n {EventSubscriptionName} --endpoint-type webhook --endpoint
https://{FuncAppName}.azurewebsites.net/runtime/webhooks/EventGrid?functionName={EventGridTriggerFunctName}&code={Key}

Hey @rcreddy435 and @dwhanger since this was opened, we also released support for Functions as a 1st classed destination type. With this, rather than pointing to the function URI & explicitly giving the key, you can just point to the Function ARM ID like so:
az eventgrid event-subscription create --name es1
--source-resource-id
/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1
--endpoint /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Web/sites/{fun
ctionappname}/functions/{functionname}
Event Grid will then take care of doing a RBAC check to ensure you have access to publish to the function, getting the function key, and setting up the event subscription. This also has the added benefit of Event Grid taking care of keeping the key up-to-date if you roll keys etc.
To use this in CLI, just make sure you have the latest Event Grid CLI extension added az extension add --name eventgrid and if you had an older version of the extension, uninstall it before installing the newest version of the extension (extension version 0.4.4).

Hello @rcreddy435 … I am referring to the original issue reported by @dwhanger as the request is clearly stated he needed a way to get this key programmatically. If you can share how you get it programmatically it will be great.
As for the issue you are reported, this is different than the original one and we need additional info to investigate. Can you please raise a support ticket with the following information (since the info include your subscription Id, the GitHub issue might not be a good place to share this sensitive info):

your subscription id
Location/region.
topic name.
destination name.
Time when this issue happens.

thanks

Hi @banisadr, thanks for your response!  I tried the az eventgrid event-subscription form of the command like you have above but I get this back: 'Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.'  I have the eventgrid extension installed at version 0.4.4...that was already the case.  What am I doing incorrectly?  Thanks.

@banisadr - I am having the same issue as @dwhanger when using the eventgrid extension you mentioned.

@rcreddy435  - I'm having he same issue as you with the az command but as @ahamad-MS mentioned,  that is a separate issue from what the OP submitted.  Have you entered a github issue for the error you are encountering?

Hi Mike,
I haven't created an issue.
Thanks
Rama
On Mon, Dec 16, 2019 at 10:30 AM AlphaCreative-Mike <
<EMAIL_ADDRESS>wrote:

@rcreddy435 https://github.com/rcreddy435 - I'm having he same issue as
you with the az command but as @ahamad-MS https://github.com/ahamad-MS
mentioned, that is a separate issue from what the OP submitted. Have you
entered a github issue for the error you are encountering?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-cli/issues/10879?email_source=notifications&email_token=AEL5KQUVQHAW4CPDLRREFE3QY6UL5A5CNFSM4JBSTVZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG7JAXY#issuecomment-566136927,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEL5KQXVU2DYBFIHLQHJL3DQY6UL5ANCNFSM4JBSTVZA
.

btw, @banisadr, the Powershell command does work....it is just cumbersome given that I have to go to the portal after the deploy, find the function app, and copy paste the eventgrid_extension key into a powershell script that I run manually after the fact.  Less than ideal for an infrastructure as code automated approach......this needs attention!!!

@banisadr : i have the eventgrid extension "0.4.3". I will update to "0.4.4" and try again.

@rcreddy435 - Do you mind sharing how you got the key programmatically?  I've tried several examples online but the subscription fails.  If I hardcode the key it works.

Task: create Storage Account Event Subscription to trigger Azure Function
The problem in PowerShell with
az eventgrid event-subscription create
is that endpoint is URL with '&' symbol. The same command works on: shell.azure.com.
Tried escaping it <- does not help
local PowerShell
PS C:\> $triggerEndpoint
https://[webAppName].azurewebsites.net/runtime/webhooks/EventGrid?functionName=[triggerName]&code=[key]
PS C:\> az eventgrid event-subscription create --debug --name $eventSubscriptionName --source-resource-id $storageid.id --endpoint $triggerEndpoint
Command arguments: ['eventgrid', 'event-subscription', 'create', '--debug', '--name', '[eventName]', '--source-resource-id', '/subscriptions/[subId]/resourceGroups/[rsGroup]/providers/Microsoft.Storage/storageAccounts/[accountName]',
 '--endpoint', 'https://[webAppName].azurewebsites.net/runtime/webhooks/EventGrid?functionName=[triggerName]']
...other output

Argument endpoint drops code query parameter and it does become invalid endpoint.
For getting more information:
shell.azure.com CorrelationId: 3b65c124-0f63-4789-8e9e-b38528133d35
local PowerShell CorrelationId: 3b8ae7ea-bb49-407b-a137-dd9343678294
Ps. running this command with VS Code installed is really funny :)

Tried to us AzureRM with same arguments(changed names to corresponding) and it worked.
If someone is having this problem I would suggest using AzureRM for now.
https://docs.microsoft.com/en-us/powershell/module/azurerm.eventgrid/new-azurermeventgridsubscription?view=azurermps-6.13.0

@rcreddy435 - Do you mind sharing how you got the key programmatically? I've tried several examples online but the subscription fails. If I hardcode the key it works.

@Mike: Did you check this url? https://markheath.net/post/managing-azure-functions-keys-2

Clarifying above

az eventgrid event-subscription create --name es1
--source-resource-id
/subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1
--endpoint /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.Web/sites/{fun
ctionappname}/functions/{functionname}

As of v 0.4.8 this command works IF you add --endpoint-type FunctionApp.

cool...I will try that out!  thanks!

@dwhanger Can you please confirm that this is working for you as well? Thanks.

@anthonychu - It's not working for me.
I'm getting "az eventgrid event-subscription create: 'FunctionApp' is not a valid value for '--endpoint-type'. See 'az eventgrid event-subscription create --help'"
Here is my az --version output:
`azure-cli                          2.5.1
command-modules-nspkg              2.0.3
core                               2.5.1
nspkg                              3.0.4
telemetry                          1.0.4
Extensions:
eventgrid                          0.4.8
front-door                         1.0.6`

Yes!  I can confirm that it works!  But, you have to use the --endpoint-type azurefunction as opposed to FunctionApp as stated above.  There doesn't seem to be documentation yet on this that I can find but the commandline help on the command has the info about using 'azurefunction'.  Also, once you have this, he --endpoint needs to be adjusted to point at the resource id of the function which I was able to determine with http://resources.azure.com portal.  Once that is done, it works great!

I corrected my comment: the endpoint type is azurefunction, not functionapp. I also added a link to the documentation.

az eventgrid event-subscription create  --name esclitest     --source-resource-id "/subscriptions/<id>/resourceGroups/<id>/providers/Microsoft.Storage/storageaccounts/<id>"   --endpoint-type azurefunction 	--endpoint /subscriptions/<id>/resourceGroups/<id>/providers/Microsoft.Web/sites/<id>
when I use above cmd I am getting below error
The behavior of this command has been altered by the following extension: eventgrid
Invalid ARM Id.
Need help in above cmd
Also az --version output is
command-modules-nspkg              2.0.3
core                               2.6.0
nspkg                              3.0.4
telemetry                          1.0.4

Extensions:
eventgrid                          0.4.9

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensi
```ons directory 'C:\Users\venkataakhil\.azure\cliextensions'

Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32
 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

I can confirm that the using resources for both the source and subscriber and endpoint type worked for me. Somebody really really needs to get this out into the current az client install. I spent days with this exact issue, worked through getting keys, got past the '&' in the url from powershell and always got an invalid response result. Also before adding the extension, even manually added subscriptions didn't not show up with az eventgrid event-subscription list --. With the extension update, everything works but I get a warning with every command the the command has been overridden with the extension.

one quick followup question. where do I go with an issue with the eventgridtrigger attribute on a function? The funtion.json it generates does not include the required direction parameter set to "in" and a warning shows up on every function in the project in the azure portal. It does work though

@dwhanger Apologies for the late reply. Thanks for providing the update on this. We are glad that the issue is resolved. Please let us know if you need any further assistance on this. Awaiting your reply.


[6.x] Improve Str::startsWith performance

Moving PR https://github.com/laravel/framework/pull/30949 to 6.x branch

It is counter-intuitive, but strpos actually performs worse than substr. This has been changed and reverted before, see https://github.com/laravel/framework/pull/16761#issuecomment-266558361

@taylorotwell Why was this closed? This actually reduces my app's latency by 1.5% due to it registering so many events.

It is counter-intuitive, but strpos actually performs worse than substr. This has been changed and reverted before, see #16761 (comment)

That is true very large haystacks, but false for small haystacks.
An even faster approach would be to use preg_match but only if we use a fixed delimiter, which would limit the usefulness of the function.
Maybe we can identify where startsWith is being called and replace it with preg_match in places where we know the allowed range of characters?

@GrahamCampbell because it's slower.

Adapted the benchmark in the linked PR to test over a range of haystack lengths and also compare calling the functions directly to calling the current implementation of Str::startsWith:
$nb = 100000;
    $haystack_length = 10;
    while ($haystack_length < 100000000) {
      $haystack = (string) str_repeat('a', $haystack_length);
      $needle = 'b';
      $t1 = microtime(true);
      for ($i = $nb; $i--; ) {
        substr($haystack, 0, strlen($needle)) === (string) $needle;
      }
      $t2 = microtime(true);
      for ($i = $nb; $i--; ) {
        strpos($haystack, (string) $needle) === 0;
      }
      $t3 = microtime(true);
      for ($i = $nb; $i--; ) {
        preg_match("/^$needle/", $haystack);
      }
      $t4 = microtime(true);
      for ($i = $nb; $i--; ) {
        Str::startsWith($haystack, $needle);
      }
      $t5 = microtime(true);

      $times = [
        'substr' => $t2 - $t1,
        'strpos' => $t3 - $t2,
        'preg_match' => $t4 - $t3,
        'startswith' => $t5 - $t3,
      ];
      asort($times);
      $this->info("Haystack Length: $haystack_length");
      print_r($times);
      $haystack_length *= 10;
    }

Test results on my laptop, PHP 7.2.10:
Array
(
    [strpos] => 0.0066189765930176
    [substr] => 0.0094060897827148
    [preg_match] => 0.016417026519775
    [startswith] => 0.042016983032227
)
Haystack Length: 100
Array
(
    [strpos] => 0.0068380832672119
    [substr] => 0.010514974594116
    [preg_match] => 0.017052888870239
    [startswith] => 0.043543815612793
)
Haystack Length: 1000
Array
(
    [substr] => 0.0099210739135742
    [strpos] => 0.012561082839966
    [preg_match] => 0.015492916107178
    [startswith] => 0.043156862258911
)
Haystack Length: 10000
Array
(
    [substr] => 0.010730028152466
    [preg_match] => 0.016089916229248
    [startswith] => 0.042931795120239
    [strpos] => 0.054877042770386
)
Haystack Length: 100000
Array
(
    [substr] => 0.009943962097168
    [preg_match] => 0.01657509803772
    [startswith] => 0.041932106018066
    [strpos] => 0.5598418712616
)
Haystack Length: 1000000
Array
(
    [substr] => 0.0098121166229248
    [preg_match] => 0.016644954681396
    [startswith] => 0.0452561378479
    [strpos] => 5.5760638713837
)
Haystack Length: 10000000
Array
(
    [substr] => 0.010479927062988
    [preg_match] => 0.015511035919189
    [startswith] => 0.040539979934692
    [strpos] => 84.734483003616
)```

`strpos` is clearly unusable for long strings, but it is faster for small strings.
`preg_match` isn't actually faster as I stated earlier. I had run a couple of tests but either I misread the results or they were too small to account for timing variations.

One of the reasons mentioned for this PR was startup time when many events are registered. I am unsure of where `startsWith` is used in that process, but event names are likely to be small (< 100 characters) so it might be worth going through and replacing `startsWith` with straight `strpos` in those instances, assuming the extra features of startsWith aren't needed.

I agree that if there is a hot location in the framework where we use startsWith consistently on small strings then we could just switch to using regular strpos in those cases.

Fair enough. I'll see which cases I think should change shortly. The biggest optimisation I found for the framework bootup was to comment out the notification service provider, actually. It takes a while to boot, so if people are not using notifications, they can get a decent improvement (larger than the speedup from this PR).

The biggest optimisation I found for the framework bootup was to comment out the notification service provider, actually. It takes a while to boot, so if people are not using notifications, they can get a decent improvement (larger than the speedup from this PR).

Do you think this could be documented? I'll try to remove and do some benchmarks in my apps


Add in progress state to RuntimeInformation

This allows a future version of qlever-ui to highlight steps that are currently being computed

Do you plan to perform the "filtering" for the "actually active" computation in the UI? I could live with that (it is not functionally important), I just wanted to make sure that that is on purpose not part of this PR here.

Yes, this is also the reason why I decided to use the wording "in progress" here. Of course this is a topic up for debate, but in this case I decided to consider an operation that is currently waiting for a child to be computed also as being "in progress" of being computed. The UI can than decide to highlight all of them or just a single one.
This makes keeps the code simpler in my opinion. No need to introduce complexity just for a rendering "issue".
Also speaking of it, I should also include the bugfix to this PR that prevents the totalTime from being negative at times.
I agree on the tests.

@joka921 I added the tests, and added the fix to this PR that prevents negative timing values.
While doing this I (again) stumbled above the double that stores the duration of the computation time, which I found odd. So while I was already at it, I also refactored the code to use std::chrono types instead, which revealed that only the tests were ever making use of fractions, non-test code always used the double like any other int + rounding errors and verbose static casting.

Thanks for checking, can you setup that pr after this one is finished?
RobinTF @.***> schrieb am Fr., 3. Nov. 2023, 18:19:

@.**** commented on this pull request.
In src/engine/Operation.cpp
https://github.com/ad-freiburg/qlever/pull/1131#discussion_r1382002658:

@@ -8,6 +8,10 @@
#include "util/OnDestructionDontThrowDuringStackUnwinding.h"
#include "util/TransparentFunctors.h"

+std::chrono::milliseconds toMs(const ad_utility::Timer& timer) {
This is something for a separate PR. CLion reports 24 other usages all
across the codebase
—
Reply to this email directly, view it on GitHub
https://github.com/ad-freiburg/qlever/pull/1131#discussion_r1382002658,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADS6SAXH5PT74RH5EPMCQWLYCURRNAVCNFSM6AAAAAA62AYM5OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMJTGE4TEOJZGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@joka921

Thanks for checking, can you setup that pr after this one is finished?

Yes, but it will probably land after #1125 because this PR touches the timer class too (trying to minimize merge conflicts). Also I plan to remove the usage of std::chrono::high_resolution_clock in favour of std::chrono::steady_clock, because that depending on the standard lib this has different behaviour with regard to clock changes of the system.


Backport" HBASE-28600 Enable setting blockcache on-heap sizes in bytes (#6422)" to branch-2.6

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 29s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 11s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m 24s

branch-2.6 passed

+1 :green_heart:
compile
1m  6s

branch-2.6 passed

+1 :green_heart:
javadoc
0m 55s

branch-2.6 passed

+1 :green_heart:
shadedjars
5m 34s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 14s

Maven dependency ordering for patch

-1 :x:
mvninstall
1m 19s
/patch-mvninstall-root.txt
root in the patch failed.

-1 :x:
compile
0m 34s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javac
0m 34s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javadoc
0m 28s
/results-javadoc-javadoc-hbase-server.txt
hbase-server generated 1 new + 25 unchanged - 0 fixed = 26 total (was 25)

-1 :x:
shadedjars
4m 26s

patch has 20 errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 24s

hbase-common in the patch passed.

-1 :x:
unit
0m 31s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

24m 26s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6531

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux a2e249969775 5.4.0-200-generic #220-Ubuntu SMP Fri Sep 27 13:19:16 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / b3b3f909e5042725c126b48eded23ef5a8567d82

Default Java
Temurin-1.8.0_412-b08

shadedjars
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/artifact/yetus-jdk8-hadoop2-check/output/patch-shadedjars.txt

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/testReport/

Max. process+thread count
355 (vs. ulimit of 30000)

modules
C: hbase-common hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 39s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
hbaseanti
0m  0s

Patch does not have any anti-patterns.

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 13s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m 14s

branch-2.6 passed

+1 :green_heart:
compile
3m 29s

branch-2.6 passed

+1 :green_heart:
checkstyle
0m 51s

branch-2.6 passed

+1 :green_heart:
spotbugs
2m  4s

branch-2.6 passed

+1 :green_heart:
spotless
0m 47s

branch has no errors when running spotless:check.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 15s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
3m  6s

the patch passed

+1 :green_heart:
compile
3m 29s

the patch passed

+1 :green_heart:
javac
3m 29s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 50s

the patch passed

+1 :green_heart:
xmllint
0m  0s

No new issues.

+1 :green_heart:
spotbugs
2m 17s

the patch passed

-1 :x:
hadoopcheck
1m 16s

The patch causes 20 errors with Hadoop v2.10.2.

+1 :green_heart:
spotless
0m 46s

patch has no errors when running spotless:check.

_ Other Tests _

+1 :green_heart:
asflicense
0m 18s

The patch does not generate ASF License warnings.

37m 30s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6531

Optional Tests
dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless xmllint

uname
Linux f4446a82354a 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / b3b3f909e5042725c126b48eded23ef5a8567d82

Default Java
Eclipse Adoptium-11.0.23+9

hadoopcheck
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/artifact/yetus-general-check/output/patch-javac-2.10.2.txt

Max. process+thread count
79 (vs. ulimit of 30000)

modules
C: hbase-common hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/console

versions
git=2.34.1 maven=3.9.8 spotbugs=4.7.3 xmllint=20913

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m  1s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 11s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m 58s

branch-2.6 passed

+1 :green_heart:
compile
1m 18s

branch-2.6 passed

+1 :green_heart:
javadoc
0m 50s

branch-2.6 passed

+1 :green_heart:
shadedjars
7m  2s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 20s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
4m 14s

the patch passed

+1 :green_heart:
compile
1m 32s

the patch passed

+1 :green_heart:
javac
1m 32s

the patch passed

+1 :green_heart:
javadoc
0m 50s

the patch passed

+1 :green_heart:
shadedjars
7m 13s

patch has no errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 38s

hbase-common in the patch passed.

-1 :x:
unit
23m 44s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

57m 15s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6531

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux 9c6b2f466d3b 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / b3b3f909e5042725c126b48eded23ef5a8567d82

Default Java
Eclipse Adoptium-11.0.23+9

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/testReport/

Max. process+thread count
2201 (vs. ulimit of 30000)

modules
C: hbase-common hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6531/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.


Feature: select continugous comment region

Select a region by comment

This needs to be done per language, as a word unit setting on user-by-user basis.


Support for Google Cloud Functions

How to run on GCF? getting this error -
could not start chrome: Error: spawn google-chrome-beta ENOENT

Possibly, this helps you out.
https://github.com/phantombuster/nickjs/issues/5


Interactive examples for scroll snapping

User story
As a user I want to be able to try out the various scroll snapping properties when visitig a page on MDN.
Acceptance criteria
All property pages have a related example.

PR for everything but the troublesome scroll-snap-align https://github.com/mdn/interactive-examples/pull/1260

Raised an issue for scroll-snap-align https://github.com/mdn/interactive-examples/issues/1263


Must add MultipleInputFeatureRequirement if there are multiple inbound links to a single parameter in CWL v1.0.x

We talked about removing the need for this in a future version of the standard, but that has yet to happen.
Source: https://github.com/common-workflow-language/cwltool/issues/579

I believe an earlier round of fixes addresses this. 1.0.1 certainly has this behavior.