Added italian book - Immersione in Python 3

What does this PR do?
Added "Immersione in Python 3" to the list of free italian books on python
Why is this valuable
This is a accurate translation and revision of the book  'Dive into python' by Mark Pilgrim made by Giulio Piancastelli and analyzes the differences between python 2 and python 3. Python 2 is still widely used today and this resource can be useful for Italian only speakers who wants to make the transition to python 3.
How do we know it's really free?
On the official site the license can be clearly found on the bottom stated as CC BY-SA 3.0, also this book translation is listed on the official italian python site as a resource.
Links
I used the official site link for the HTML version. The PDF version links to the generic 'latest' version so any future revision should be included without the need of URL updating.
Checklist:

[X] Not a duplicate
[X] Included author(s) if appropriate
[X] Lists are in alphabetical order
[X] Needed indications added (PDF, access notes, under construction)

Excellent.


"additionalProperties" property is adding in my dependancy models/schema and other than non "object" type models.

Hi Team,
I am generating code for resolved json for my api project using following command,
"nswag run .\nswag\server.controller.nswag /runtime:NetCore21".
I have placed "additinalProperties" as 'false' for all the internal models where as it's type is, "object". This has resolved the my issue without adding additionalPropertie fields to my code.
But, still it's adding for some of the models. For example,
1.
PartCreate:
      description: Part Creation Model
      additionalProperties: false
      properties:
        partId:
          description: A unique id.
          type: string
          example: 00000000
        brandCode:
          description: 'The part''s brand code.
          type: string
          example: XXXX
        partCode:
          description: 'The part''s code.
          type: string
          example: 8765432
        quantity:
          format: double
          description: >

            The quantity of the Part.

            > Each Part has a default `unitOfMeasure`, which indicates the
            'real' value of the numerical `quantity` field.
          type: number
          example: 1
2. For some of the models i am adding as dependencies. For this models also it's adding it in .net code.

Do, we have any option where we can able to place "additinalProperties" as false globally? Or do you guys has any solution from your side?
Regards,
Abhishek

The spec defines the default of additinalProperties as "true" - you cannot change that globally. The only option now is to preprocess the schema before generating the clients...


[haskell-updates] haskellPackages.haskell-language-server: <IP_ADDRESS> -> <IP_ADDRESS>

This bumps the version of hls. And disables one of the tests.
In my opinion, this can and should be merged with the failing test for now, as the newer version contains a lot of compatibility fixes.
I have contacted upstream about the failing test. But for now, I don‘t know how to fix it.
@GuillaumeDesforges maybe you have an idea?
Test suite wrapper-test: RUNNING...
haskell-language-server-wrapper
  --project-ghc-version
    stack with ghc 8.10.1: FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
    stack with ghc 8.8.3:  FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
    cabal with global ghc: FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)

3 out of 3 tests failed (0.07s)
Test suite wrapper-test: FAIL
Test suite logged to:
dist/test/haskell-language-server-<IP_ADDRESS>-wrapper-test.log

Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build haskellPackages.haskell-language-server

Yup, had some issues about that already, let me get to it

@GuillaumeDesforges Nice! Thanks!

@maralorn did you submit an upstream issue?

@Guillaumedesforges, I am sorry, no. I had a chat with lukelau in the hls freenode room. The issue seems to be simple and generic. The test needs the binary in the PATH and they wrote a hack accessing dist-newstyle to discover the binaries. They consider it a bug. They encouraged me to fix it because they were were. Busy, but I am also on holidays so I forgot about. You can pick between making a simple PR to hls, opening an issue or waiting for me or then to fix it. Although the latter might be risky without an issue...

I'll make an issue, I can't take this atm. It can wait anyway

Apparently fixed: https://github.com/haskell/haskell-language-server/issues/251#issuecomment-665709683
Let's update upstream issue on the next version bump of our nixpkgs hls derivation


Add GBNF grammar support

This is an updated version of #1606 that accounts for changes to the code since it was originally submitted.
Adds support for llama.cpp's GBNF grammars, which enable very specific steering of model outputs. This feature is already used on the backend by when the format option is set to json, but this allows any arbitrary grammar to be passed in. In the case where both grammar and format are specified, the format is preferred.

Please add . this works and  looks good to me.

:+1: reviewed and it looks good to me, would be really useful for the stuff I'm using ollama for locally.

It is very important feature for most LLMs to be useful at real work applications that is not free form chats.
Otherwise , Ollama is only good for testing purposes and for production we should just use llamacpp (since now they also supports OpenAI API)  .
Can we have this merged?

I really hope this can finally be merged.
It's really odd to me that this simple but essential feature hasn't been merged yet, after multiple pull request submissions, and that the inferior "JSON mode" which is literally just a tiny subset of this (and quite useless, without being able to control the actual fields and field types) has been merged for a long time.
Ollama is such a great project in many regards, but the apparent resistance against adding this feature is really puzzling to me. Anyway, I'll continue just running a custom fork until this is merged, if it ever is.

PS. https://www.promptingguide.ai/research/llm-tokenization
As pointed out by Karpathy, due to tokenization, YAML is a much better format than JSON for producing structured output from an LLM. Just one of many reasons for adding support for actually being able to specify a grammar, rather than just a format.
Including support for some pre-defined formats is fine, but to actually be useful in real-world scenarios (including function calling), you also need to be able to define a schema along with the format, to control the field names and types.
By adding the support for grammar constrained sampling schema support would be trivially added on top from the application level though, and right now when you're only able to specify a format, it's pretty much useless. Just specifying the schema in the prompt and "hoping and praying" that the output will adhere to it is a horribly unreliable workaround, and a waste of tokens requiring additional application level validation and bruteforce retry-logic.

+1 grammar support will make Ollama so much more useful.

Don't forget to update Ollama python client library, when add GBNF support in the server side.😊

Hey all, I know there's an automated ping here but just to better align everyone please check out and comment on my new call to the Ollama team for clarity here. As always please be civil and stay on topic! 😄 - https://github.com/ollama/ollama/issues/6237

Hi @jquesnelle! Thank you for contributing! Sorry for the wait on the feature 🙏🏽
Going to close this out as we're supporting structured outputs through https://github.com/ollama/ollama/pull/7900
Left a comment with some background as well: https://github.com/ollama/ollama/issues/6237#issuecomment-2518836758


PR: Download notebook should work with file storage

Fix downloading notebook from anaconda server without S3 storage.
Issue #250

(anaconda.org)goanpeca@goanpeca-kubuntu:~/Dropbox/continuum$ anaconda notebook upload testnb.ipynb
Using anaconda-server api site http://localhost:4990/api
testnb.ipynb has been uploaded.
You can visit your notebook at http://localhost:4990/notebooks/goanpeca/testnb
(anaconda.org)goanpeca@goanpeca-kubuntu:~/Dropbox/continuum$ anaconda notebook download testnb
Using anaconda-server api site http://localhost:4990/api
testnb has been downloaded as testnb.ipynb.

:+1:


About Desktop support for ComposeMultiplatformMediaPlayer  ? Use VLC ?

I suggest if vlc can be used universally?
Use on Android
Exoplayer_VLC (may need to be modified and improved, but it can be submitted later so that Exoplayer can officially support it - for example, Exoplayer previously supported FFMPEG)
(https://github.com/tyazid/Exoplayer_VLC)
Then the Desktop side follows this example Kashif-E
/
Compose-Multiplatform-Video-Player (https://github.com/Kashif-E/Compose-Multiplatform-Video-Player/blob/a9c00c7b6e7f4683eda27d0cc3cd3df3ff79c09d/common/build.gradle.kts#L76) uses vlc directly
https://github.com/caprica/vlcj
https://blog.csdn.net/wangkai13810651628/article/details/124007319
https://github.com/timo-drick/cfd_video/tree/main
Then there are many examples of direct VLC (which can support more playback formats) on iOS.
This is my idea
THX

@CMingTseng That's good suggestion we will explore it for sure, and get back to you!

@CMingTseng we have explored possibility of VLC in every platform but as per initial testing it was not performing as great as current library, also we have desktop support now, so in future we might explore this option again.
But thanks again for suggestion!


Wait for javascript to finish executing on the page

I have a test that submits a form via ajax andthen does a page redirect. Is there a way to block until these actions are finished before the next hound command is run? Currently I have to throw a :timer.sleep(5000) into my code to make the tests pass.
I'm using page_source as a poor stand in for expect(page).to have_text("some_text"). If there is a more direct way of doing either of these things, I'd love to know. Thanks! :).

The second half of this is irrelevant now after this PR: https://github.com/HashNuke/hound/pull/36

@jontonsoup In an Ember app I had a func to load app and check if Ember loaded every 3 seconds using execute_script. If loaded then return.

I think we could have a helper like wait_for_javascript. Not sure if there's anything generic.

I thought about it a little more. The problem lies in that page_source returns immediately (without blocking for JS) and the assertion is done after this.
How does adding a function is_visible_text?/1 sound? It would retry several times before failure like the finders do.
I can implement this if you think it makes sense.
On Mon, Jun 29, 2015 at 12:34 AM, Akash Manohar<EMAIL_ADDRESS>wrote:

I think we could have a helper like wait_for_javascript. Not sure if there's anything generic.
Reply to this email directly or view it on GitHub:
https://github.com/HashNuke/hound/issues/35#issuecomment-116432039

@jontonsoup I would look at capybara's implementation of wait_for_javascript instead.
That aside, we could have a separate matchers module to use with assert() easily.

@HashNuke I'm thinking of this functionality in capybara: https://github.com/jnicklas/capybara#asynchronous-javascript-ajax-and-friends, which seems to be implimented with a retry mechinism.
I do think this functionality is important as well (https://robots.thoughtbot.com/automatically-wait-for-ajax-with-capybara) but it wasn't the use case I was thinking.
Let me know which one you prefer (I like the former), and I can take a crack at it.

@jontonsoup elements are already retried by default. Finders in Hound accept a retry argument in the end to change the default.
I'm open to ideas. Below are some notes:

wait_for_element/1 seems implementable, to return only when an element appears.
wait_for_ajax/0: I'm not sure how they are implementable across frameworks (plain jQuery, Ember, React, Angular, etc)
wait_for_javascript/0 should be possible. Could use best practices to check for Ember, React & jQuery app loads. For others we can allow wait_for_javascript/1, where the first arg is the javascript to run in execute_script to run the check.

@HashNuke ah I see, digging deeper into the docs it seems capybara implements this with custom rspec matchers. I assumed it was done with the retry functionality inside capybara itself. https://github.com/jnicklas/capybara/blob/master/lib/capybara/rspec/matchers.rb#L166
IMO seems like we should strive for a couple things:

Abstraction from the implementation detail (the same functions should work regardless of if ajax is on the page)
JS  Framework agnostic

My goal is to be able to write this code without knowing the implementation of how the text gets there.
expect(page).to have_text("some_text")
Adding wait_for_X seems counter to the idea of abstracting away from the implementation. It seems like everything should wait (which is currently done via retry).
If we went the custom matcher route as you proposed, how do you see that being implemented under the hood?

@jontonsoup Hound provides no matchers right now. With ExUnit you would write something like this
element_text = find_element(:css, ".post") |> visible_text
assert Regex.match?(~r/foo/, element_text)

find_* helpers already accept an arg for number of retries - http://hexdocs.pm/hound/Hound.Helpers.Page.html

Adding wait_for_X seems counter to the idea of abstracting away from the implementation. It seems like everything should wait (which is currently done via retry).

That's the problem with testing all frontend-heavy apps.
Abstracting the waiting increases the time to run tests that will fail since every element will end up being checked for a long time. Adding a wait_for_* would mean that the user knows that there's going to be a delay for the element to appear and can explicitly use it when required.

@HashNuke Ah yes, I was using espec notation. Regardless of the notation / matchers, my concern is that feature testing that conflates implementation with user actions can lead to brittle tests, which is my hesitation around explicitly waiting for javascript.
We always try to test from the perspective of the user (preferring user actions over CSS finders etc), which has a long term advantage of more stable tests. If the test is independent from the implementation of the feature, I can switch my feature's implementation while preserving the functionality without having to refactor the tests. This has saved our company countless hours over the years as we've transitioned front end technologies.
Hound does a great job of doing this for clicking / form interaction etc, but is missing the ability to do this for text assertions. I love the idea of having the option to explicitly use a wait for javascript if I need to, but also would prefer for the framework to take care of javascript for me in the majority of simple cases, which would make using wait_for_javascript reserved for exceptional cases.
My main concern is having to use find_element in your example. I should be able to find text without knowing the underlying HTML structure. Although the example works fine with javascript as written, there is no way to write this currently that works with javascript and does not require me to know the underlying implementation.
I'd love to be able to write or something like this
assert visible_on_page?(element_text)

and have this work with javascript.
Capybara allows me to do this very easily. What do you think?

@jontonsoup

I should be able to find text without knowing the underlying HTML structure

Go ahead and see if you can implement visible_on_page?/2 in a new module called Hound.Matchers.
The second arg being the number of retries or interval in seconds, depending on how you implement it.

@HashNuke thanks! I'll take stab at it asap.

@jontonsoup if you have any other matchers in mind, please do create an issue(s) with todo list if required. I'll pitch in too if required.

@HashNuke will do. I have another one in mind.

PR here: https://github.com/HashNuke/hound/pull/39

Closing issue since PR has been merged.

In an Ember app I had a func to load app and check if Ember loaded every 3 seconds using execute_script. If loaded then return.

@HashNuke Could you share a gist with your Ember-related functions?


Add support for simulating EEG data

Simulate events and EEG data based on

StatsBase @formula
Trials, Times, channels (more flexibility, in terms of choosing covariate)

combining formulas with betas is not straight forward. One always need to specify levels and coding as well. I have simulation code for MixedModelsSim
Multiple subjects => use MixedModelsSim as a basis and just simulate n=1 with no random effects.
temporal overlap (results in continuous EEG)
basis-functions (e.g. hanning)
several noise functions (white, pink, brown, exponential autocorr, AR1) =>Ask Felix, he implemented those already

=> Have a look at SEREEGA toolbox again, but I think it is too detailed. I.e. we do not need variability in component latencies etc. that is too much imho.

combining formulas with betas is not straight forward. One always need to specify levels and coding as well. I have simulation code for MixedModelsSim

I agree, it can be complicated and maybe not worth the effort. I had this thought when I was going through the StatsModels package (https://juliastats.org/StatsModels.jl/stable/formula/#The-@formula-language)

Also see this: https://github.com/RePsychLing/MixedModelsSim.jl/pull/40
Once I find some time, I will put up a rough sketch for a UnfoldSimulation.jl package with the code that is laying around. I think I have lot's of components already, just need to move them together and combine them

Slowly designing some thoughts on UnfoldSim
Design Module

per eventtype, call MixedModelsSim => one DataFrame per event, + one formula
e.g. `Dict(:eventA => (table,formula), eventB =>(table2,formula2)

This allows the user to get perfect control of any balancing issues.
Signal Module

per event: one set of coefficients => Maybe we can also employ MixedModelsSim here
per event: able to simulate random effect structure subject + item
stretch-goal: correlation between two coefficients of different events. That is, e.g. continuousB is always larger, when event B is following event A, but not when it is following event B. It is unclear to me how to make the tool flexible enough to allow for such cases.

Overlap Module

per-event: Distribution of lags (e.g. uniform, ex-Gaussian) with sensible parameterization
relation of events (e.g. "AABAABAAB" or "ABABABA" or "AAAABBBBAAAA") needs to be specified. Maybe we can do this already in the Design Module?
dependence of distribution parameter on events. In some sense we need a second set of formulae + coefficients, just to describe the mean + variability of the duration (it is necessary that we allow for biased  overlap, e.g. more overlap in one condition than another; tricky is, that we dont want to allow any type of overlap (e.g. negative values).

Noise Module

default: add noise to continuous signal
allow noise-structure per event (e.g. linear increase allows for heteroskedasticity), but careful, with overlap, noise-levels adds!

Types: white, pink, brown, exponential,real EEG


Two SELinux Changes.

daemon/volumes.go
This SetFileCon call made no sense, it was changing the labels of any
directory mounted into the containers SELinux label.  If it came from me,
then I apologize since it is a huge bug.
The Volumes Mount code should optionally do this, but it should not always
happen, and should never happen on a --privileged container.
The change to
daemon/graphdriver/vfs/driver.go, is a simplification since this it not
a relabel, it is only a setting of the shared label for docker volumes.
Docker-DCO-1.1-Signed-off-by: Dan Walsh<EMAIL_ADDRESS>(github: rhatdan)

LGTM

LGTM

I just woke up, I think I passed out after seeing how fast this got merged.  Thanks.


Internal link refactor to be more resilient across different markdown renderers

Hello!
While working on an OpenAPI spec for the first time the other day, I noticed that internal links on github didn't seem to be working. Upon closer inspection, I noticed that the links were trying to reference an anchor tag within the header which used a camelCase convention as opposed to a snake-case one. I believe when Github renders markdown, it removes these explicit anchor tags and instead uses the traditional snake-case ones which are generated by markdown.
For example, rather than the line ####  Parameter Object being rendered as
Parameter Object
, it was instead rendered as
Parameter Object
.
To rectify this, I replaced all of the old camelCase references with snake-case versions. However, I didn't want to disrupt any downstream workflows which utilized this  tag, so I also converted that value found there from camelCase to snake-case. I believe this should improve the viewing experience on Github while not breaking anything downstream.
I'd love to hear opinions on this solution, or if it is even one y'all are interested in!
Thanks

FYI today also needed the specification, whilst reading noticed that the section links are broken & updated them as well.
Noticed now that my PR is a duplicate of Yours.
https://github.com/OAI/OpenAPI-Specification/pull/3160

@kexoth @SethAngell I did not see this when I made the comment just now on @kexoth 's PR.
If y'all could also target this fix to versions/3.0.4.md on the v3.0.4-dev branch (as it seems to apply there as well), that would be fantastic.  However you arrange it among yourselves :-)  Or perhaps wait and see if this approach gets approved and then apply it to 3.0.4.

@handrews Apologies, just now seeing your comments. Best to keep this target at 3.1 or switch it to 3.0.4?

The link fixes have been consolidated for all versions in PR #3408 (and follow-up PRs as noted in its description), so I am closing all other link fix PRs in favor of that one.


Reverse a LinkedList

Program to Reverse a LinkedList in C++. Kindly merge it with hacktoberfest-accepted label.

Hello @sarthakkalra216 ,
I hope this message finds you well. I wanted to take a moment to express our appreciation for your contributions to our open-source project. Your efforts have been invaluable to our community.
We have been working hard to improve and expand the project to provide more value to our users. We kindly invite you to consider showing your support by starring our repository. Starring the repository helps us grow and reach a wider audience, making it easier for others to discover and benefit from the project.
🌟 https://github.com/UzairHussain193/Get_Start_with_OpenSource_Contributions 🌟
Your star would mean a lot to us and would help us continue to make meaningful contributions to the open-source community.
Thank you for being a part of our project, and we look forward to your continued support. If you have any questions, feedback, or suggestions, please don't hesitate to reach out.
Warm regards,
Uzair Hussain
<EMAIL_ADDRESS>https://github.com/UzairHussain193/


local  Click to  index.html , run  success .?

How can I run it directly without setting up a proxy. I can reply, I am a developer in China.

You would need to break the spa to three different html files
On Wed, Jul 18, 2018, 9:43 AM 余胜灵<EMAIL_ADDRESS>wrote:

How can I run it directly without setting up a proxy. I can reply, I am a
developer in China.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/DiegoRBaquero/BTorrent/issues/61, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB6fN1rOXDYspb25bhyPTc1BXMTYy0Alks5uHucRgaJpZM4VUGYg
.

Can you integrate a copy of the email sent to me? Thank you very much.
Single page mode development, I found that you need to run a background service. My idea is to click on index.html. Run it. My email is<EMAIL_ADDRESS>

What do you mean by integrate a copy?
On Wed, Jul 18, 2018, 10:11 AM 余胜灵<EMAIL_ADDRESS>wrote:

Can you integrate a copy of the email sent to me? Thank you very much.
Single page mode development, I found that you need to run a background
service. My idea is to click on index.html. Run it. My email is
<EMAIL_ADDRESS>—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DiegoRBaquero/BTorrent/issues/61#issuecomment-405847723,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB6fNynZY7XL3O3hG6-ONQNXZvEQ2vR2ks5uHu2ngaJpZM4VUGYg
.

I clicked directly on the project BTorrent's index.html.run download page. I got an error and how to fix it.
How to edit to SPA. You are willing to edit the SPA mode and send it to my Email.
Your code needs to settting ngix to run. I don't need to set ngix..,

Website powered by jsDelivr and CloudFlare. I use nginx in my server.
HTML5 serving
You must serve index.html as the default
For nginx, use this conf:
location / {
    try_files $uri$args $uri$args/ /index.html;
}

Enable Debugging
Enable βTorrent (Debug logging) and WebTorrent (Logs logging) debug logs by running this in the developer console:
localStorage.debug = '*'
Disable by running this:
localStorage.removeItem('debug')

No, sorry. Code is available for you to do anything with it. I don't
provide support.
On Wed, Jul 18, 2018, 10:34 AM 余胜灵<EMAIL_ADDRESS>wrote:

I clicked directly on the project BTorrent's index.html.run download page.
I got an error and how to fix it.
How to edit to SPA. You are willing to edit the SPA mode and send it to my
Email.
Your code needs to settting ngix to run. I don't need to set ngix..,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DiegoRBaquero/BTorrent/issues/61#issuecomment-405854214,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB6fN7d5rq9zc3Ee44YAzCPqfA3Ah81uks5uHvMQgaJpZM4VUGYg
.

thank, you


Heap dumps and timeline traces for every PR

Having a baseline heap dump for every PR is insanely useful for comparison purposes. We should be saving a heap snapshot with every PR and see how it changes

/cc #19, #22


WebServer serving issue

creating the following handler definition:
HttpServer* pHttpServer = new HttpServer();
std::regex ppath("\\/hello.*");
pHttpServer->addPathHandler("GET",   &ppath,      		           handleROOT);

will result correct handling & serving by the handler, monitor however shows:
I (33489) HtttpResponse: Opening file: /hello
E (33490) HttpResponse: Unable to open file /hello for reading
means although the handler was found and processed, the server tries to get the file from file system (should happen only if handler was not found).

Does your handleROOT add a proper prefix to the filename, f.i. '/spiffs/hello' or 'sdcard/hello' so that an actual filesystem is searched?


MKLivestatus reports critical error if there is no top app

Currently my query of MKLivestatus is failing because I'm getting the following report when I query
GET services
Columns: host_name state state_type plugin_output
Filter: description = dockapp_top1
OutputFormat: json
ColumnHeaders: on

response is
[["host_name","state","state_type","plugin_output"],
["supernova.mfo.de",2,1,"CRIT - CRITICAL - no running TOP app!"],
["vb-hb-test-1",0,1,"OK - TOP: hb_test_a@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":18299,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-  26T23:20:13.433016885Z\",\"Status\":\"running\"}]"],
["vb-hb-test-2",0,1,"OK - TOP: hb_test_b@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":16964,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-  26T23:20:05.60906792Z\",\"Status\":\"running\"}]"],
["vb-hb-test-3",0,1,"OK - TOP: hb_test_c@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":2367,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:21:01  .460639047Z\",\"Status\":\"running\"}]"],
["vb-hb-test-4",0,1,"OK - TOP: hb_test_b@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":2478,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:21:28  .003647053Z\",\"Status\":\"running\"}]"],
["vb-hb-test-5",0,1,"OK - TOP: hb_test_c@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":2865,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:22:43  .6794875Z\",\"Status\":\"running\"}]"],
["vb-hb-test-6",0,1,"OK - TOP: hb_test_a@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":2890,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:32:12  .044423391Z\",\"Status\":\"running\"}]"],
["vb-hb-test-7",0,1,"OK - TOP: hb_test_c@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":3274,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:22:59  .103161861Z\",\"Status\":\"running\"}]"],
["vb-hb-test-8",0,1,"OK - TOP: hb_test_a@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":3593,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-26T23:23:09  .743623052Z\",\"Status\":\"running\"}]"],
["vb-hb-test-9",0,1,"OK - TOP: hb_test_b@[{\"Dead\":false,\"Error\":\"\",\"ExitCode\":0,\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"OOMKilled\":false,\"Paused\":false,\"Pid\":21852,\"Restarting\":false,\"Running\":true,\"StartedAt\":\"2016-08-  26T23:23:28.995734875Z\",\"Status\":\"running\"}]"]]

Notice the first row returned:
["supernova.mfo.de",2,1,"CRIT - CRITICAL - no running TOP app!"],

I consider that no top running app is a "normal(ish)" situation, not a critical error... it'd be better if the standard return could contemplate the fact that no app is running so I can parse critical errors as such and generate an error in the log.
PS: I'm parsing the return with a regexp, so we should have a well defined (documented, ideally) response... otherwise the regexp will break if something I've never seen before appears, like with this case.

Well i think missing top GUI application must be a critical error on a station.
On a server i think we should monitor OMD server and your nodeJS back-end per heartbeat.
How do you get the host status? I will look into adding more Business Intelligence (see https://mathias-kettner.de/checkmk_bi.html) to reflect the framework health better...

It's not a critical error from the viewpoint of MKLivestatus, so it shouldn't report it as such. MKLivestatus doesn't know about GUI applications, exhibits, etc... it's further down the path, in dockapp, where there's a configuration that states "what things should look like", that the status reported by MKLivestatus can be interpreted as an error.
Case in point: Right now it's reporting a critical error that is not a critical error so I had to add a special case to my code saying "this is not a critical error, don't log it or throw an exception, and instead report no app is running"...
... If no top app is running in a station that's what I should report: "there's no app running here"... not shutdown the system because there's a critical error.

PS:
I get host info through
GET hosts
Columns: name state state_type
OutputFormat: json
ColumnHeaders: on

To make it clearer: My current query to MKLivestatus means "Tell me which top apps are running in the stations and their status"... so "no app" is a valid answer I can see what to do with. It's better for me to have an answer I can parse and interpret instead of a "critical error" with a human readable message that could be anything.
It's as if you were querying a database with valid SQL and instead of getting an empty recordset because there are no matching records you got a critical error. Sometimes an empty result is a valid result.

The idea is that OMD knows about the dockapp-specific checks and is supposed to derive the host status on it's own. Current logic is that there must be a single running GUI  application on each station.
Note that supernova is currently commented out in the STATIONS/list - it should not be visible via your UI (at least by default).  Also there may be other monitored agents at OMD (not listed in the list). But all the listed stations (excluding the commented-out) must be monitored via OMD under the same host-name  (== station_id from their corresponding station.cfg)

That assumes:

During switching an app or starting or stopping a server there's a top app running... which I don't think is true. There are many states in which no app should be a valid thing.
At no point a user would want to shut down all top apps without shutting down the station. If it's a "possible" high level requirement it shouldn't be treated like a low level error.

But AT LEAST I ask:
Give me an error code for "no top app" instead of a generic critical error. I can parse and interpret an error code. Right now I have a line in my code that reads:
    if (station.app_id === 'CRIT - CRITICAL - no running TOP app!') {
      // handle the case
    }

and that's unacceptable for something new (not legacy) we're developing ourselves. It makes no sense I'm parsing an arbitrary human readable string to handle an error condition I can understand and work around and inform the user of, instead of having to say "There's something wrong... either it's on fire or no top app running".


Right clicking links opens native context menu with greyed out options

Aknowledgements

[X] I have checked that there's no other issue describing the same or
similar problem that I currently have, regardless if it has been
closed or open.

[X] I can confirm that this is not an issue with the Discord website,
but it is a problem specific to the WebCord itself. I have tested
if this bug occurs on Chromium/Chrome or any other Chromium-based
browser that uses unpatched/upstream Chromium engine.

[ ] I have tried running the build from the master branch and it does
not have any fixes implemented according to my issue.

[ ] My issue describes one of the unstable and/or not fully implemented
features.

[ ] I have found a workaround to mitigate or temporarily fix this issue
in affected releases (please write it in Additional context section
below).

Operating System / Platform
🐧 Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
v20.0.1
Application version
v3.7.1
Bug description
Right-clicking links shows me this menu

I would like it not to show the greyed out options, as they aren't really useful.
In the same manner, right clicking an image while it's magnified, only the 3 greyed out options appear. I think it would be very useful to have the "copy" button working, along with a "save" button if possible.
Additional context
No response

It is actually an expected behaviour. To grey out these options, WebCord checks if specific action is possible to be done (or at least that's how Electron thinks). If you would try to copy this element, probably nothing would happen (or your clipboard would be replaced with an empty string?).

I would like it not to show the greyed out options, as they aren't really useful.

I think I could implement this just by checking if all these options are greyed out.

I've built webcord with the latest commit and when right-clicking on an image, the result was this:

Have I built it incorrectly?

I've built webcord with the latest commit and when right-clicking on an image, the result was this: image.
Have I built it incorrectly?

I'll test packaged distributables from actions, meanwhile you could check out them on your own from SpacingBat3/WebCord/actions/runs/3697141873. All of them are zipped into one archive, so they might weight a bit on you computer. locked uses the dependencies from the lockfile from the repository, latest contains updated dependencies.


chore: update project name

I've already done this. Also, I think you wanted the name to be OWASP CRS.


[Vcxproj] All text within <Command> node should be highlighted as .bat (.cmd) code.

Issue Type: Bug
All text within this node
<Command>
echo Text
for /L %%A in (1,1,10) do echo %%A
<Command>

is a valid .bat code. And it should be highlited appropriately.
VS Code version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:46:47.128Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz (4 x 2675)

Memory (System)
8.00GB (3.64GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe -r C:\Dev\Projects\ITC\Icad\trunk\IntelliCAD\Source

Screen Reader
no

VM
50%

Extensions (3)

Extension
Author (truncated)
Version

hg
mrc
1.2.3

vscode-fileutils
sle
2.8.1

cmake
twx
0.0.17

(2 theme extensions excluded)

Reproduces without extensions

What is the file extension on the file where you have this code?

It's a well known Microsoft Visual Studio project files.

vcxproj files use the builtin xml extension. The xml grammar is not aware of any other embedded languages  and so cannot provide the appropriate highlighting.
@aeschli Are there any existing feature requests for supporting syntax highlighting of embedded languages as a generic feature?

@ramya-rao-a There are requests for generic solutions, but I don't think there is a generic solution.
To get better support for vcxproj, someone should come up with specific support for that file type.
That means implementing a TextMate grammar for vcxproj which can be based on the XML one.

@aeschli

There are requests for generic solutions, but I don't think there is a generic solution

I was hoping to get a link to one such feature request so that @DmitrySokolov can understand all the discussions we've had in this topic till now

@DmitrySokolov #1751 #670 #46133 #47288 cover most of the discussions in this area


Music playback is broken

Broke the music playing as I extracted out functionality for separation of concern and also ease the length of the file to something smaller

Fixed in the latest release v0.0.10


.btn:active corrupted

The active state on pressed button is not working. When you press the button it should have a inset look.
In /lib/patterns.less line:584 should be &:active instead of :active

Fixed in master. Added another & to make sure it works for pseudo selectors and classes.


(feat) add a new payment on IoT template

Signed-off-by: Dan Selman<EMAIL_ADDRESS>

I've merged the latest changes from master and fixed the emit.

I've merged the latest changes from master and fixed the emit.

I've merged the latest changes from master and fixed the emit.

I've merged the latest changes from master and fixed the emit.


Update CONTRIBUTING.md

Motivation

Clarify expectations around review timeline, and when to reach out to the core team to discuss features.
Test plan

See included automated tests.

See included automated tests.

Where are they? 😂


[Feature] Disable YouTube 60 FPS (Force 30 FPS)

Tells YouTube that your browser only supports videos at 30FPS or less, which switches all 60FPS videos to 30FPS and allows old computers to watch high-resolution videos without stutter.

I will not implement. This is due to the speed of plugins initialization (it is slower than the init of the player itself).
h264ify does not always work.
It is enough to set the quality to 720p and the result will be the same:
https://greasyfork.org/en/scripts/23329-disable-youtube-60-fps-force-30-fps/feedback
Therefore, using an external script/extension will always be better than a plugin.
I recommend use - Invidious
or https://github.com/rainart/youtube-to-smplayer


GriddlyJS: Sometimes "open project" dialog opens while tutorial still open

Sometimes "open project" dialog opens while tutorial still open. I think it happened after I checked the "don't show this again" box. It's awkward that they're both open because the UI doesn't make it clear which you should interact with now, i.e. who's on top.

Actually I now saw it happening (from a blank local storage) even when I didn't touch the checkbox.

do you mean the loading dialog? I guess it should probably load everything before the tutorial starts... or blank out the entire UI while loading.

Oops you're right, I meant the loading dialog.


Add ecto support for range operators

Postgres ranges have convenient operators for doing set math on ranges. We can extend the Ecto DSL to provide convenience macros for working with these operators
e.g.
CREATE TABLE reservation (room int, during tsrange);
INSERT INTO reservation VALUES
    (1108, '[2010-01-01 14:30, 2010-01-01 15:30)');

-- Containment
SELECT int4range(10, 20) @> 3;

-- Overlaps
SELECT numrange(11.1, 22.2) && numrange(20.0, 30.0);

-- Extract the upper bound
SELECT upper(int8range(15, 25));

-- Compute the intersection
SELECT int4range(10, 20) * int4range(15, 25);

-- Is the range empty?
SELECT isempty(numrange(1, 5));

For the complete list, see the Postgres docs.

@davydog187 do you have an idea of how you'd like to handle operators which exist for ranges within postgres but are not valid operators in elixir or are otherwise in use (e.g. @>, &&, -|-)?

postgres operator
supported in elixir?

@>, <@
❌

>>, <<
❌

&<, >&
❌

-|-
❌

&&, +, *, -
✅ (i assume these are already translated by the Ecto query builder)

there are some unused operators which are maybe similar to the missing operators that could be used: |||, >>>, ~>, <->, etc.
Operators - Custom and overridden operators

@sloanelybutsurely I haven't given it much thought, but I don't find any of these operators particularly readable. My preference would be to use atoms with clearer names rather than try to mimic the SQL syntax 1-1


Added the dropProps doc, when truncate='tip'

Signed-off-by: GurkiranSingh<EMAIL_ADDRESS>Added the dropProps doc, when truncate='tip'.
PR

Closing, since we don't need this anymore


Transfer Zeek log to ElasticSearch

Hi, I want to transfer zeek log to elasticsearch server. As I research, I need filebeat to ship log and normalize (but filebeat is not supporting FreeBSD fully). Or I just need to config Zeek log send directly to elastic server?
Thanks

Hi, could we change the log into json format?
I see normal zeek server has that option but can't find in zeek for pfsense
Thanks

Hi, could we change the log into json format?
I see normal zeek server has that option but can't find in zeek for pfsense
Thanks

All you need is to load tuning/json-logs.zeek into zeek configuration file. Loading this script will cause all logs to be written out as JSON by default.
Edit share/zeek/site/local.zeek and add @load tuning/json-logs.zeek.

Thank you a lot :D

After changing config, turn off and enabled the zeek on pfsense frontend to restart service, right?
Service zeek restart command does not work

If restarting service from Pfsense UI doesn't work, just run this command from the shell: zeekctl install or zeekctl deploy

Hi, I want to transfer zeek log to elasticsearch server. As I research, I need filebeat to ship log and normalize (but filebeat is not supporting FreeBSD fully). Or I just need to config Zeek log send directly to elastic server?
Thanks

There is a FreeBSD port for that https://www.freshports.org/sysutils/beats

Thanks. This one is very old version and not support zeek.
I just try to remove and reinstall but got some error
# pkg uninstall -y zeek
pkg: unknown command: uninstall

For more information on available commands and options see 'pkg help'.
# pkg remove -y zeek
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        pfSense-pkg-zeek: 0.1.1
        zeek: 3.0.6_1

Number of packages to be removed: 2

The operation will free 63 MiB.
[1/2] Deinstalling pfSense-pkg-zeek-0.1.1...
Removing zeek components...
Menu items... done.
Services... done.
Loading package instructions...
Deinstall commands... done.
[1/2] Deleting files for pfSense-pkg-zeek-0.1.1: 100%
Removing zeek components...
Configuration... done.
[2/2] Deinstalling zeek-3.0.6_1...
[2/2] Deleting files for zeek-3.0.6_1: 100%
==> You should manually remove the "zeek" user.
==> You should manually remove the "zeek" group
# pkg update && pkg install -y zeek
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: cannot open sqlite3 db: No such file or directory
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.txz: 100%    6 MiB  18.9kB/s    05:47
Unable to create repository FreeBSD
Unable to update repository FreeBSD
Updating pfSense-core repository catalogue...
pkg: Repository pfSense-core load error: cannot open sqlite3 db: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%    2 KiB   1.7kB/s    00:01
Unable to create repository pfSense-core
Unable to update repository pfSense-core
Updating pfSense repository catalogue...
pkg: Repository pfSense load error: cannot open sqlite3 db: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%  140 KiB 143.8kB/s    00:01
Unable to create repository pfSense
Unable to update repository pfSense
Error updating repositories!

There is anyway to remove and fresh install?
Thanks

Verify that upstream pkg repositories are enabled.
Check these config files /usr/local/etc/pkg/repos/FreeBSD.conf
/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf and enable it FreeBSD: { enabled: yes }

Thanks. This one is very old version and not support zeek.
What is the current version you are using?

My solution now is use rsync to transfer log to my ES cluster and config filebeat on ES to read from file. But now input type is "log" not "zeek"

My solution now is use rsync to transfer log to my ES cluster and config filebeat on ES to read from file. But now input type is "log" not "zeek"

Great solution too. All logs type is .log.  .zeek concerns the zeek scripts

Verify that upstream pkg repositories are enabled.
Check these config files /usr/local/etc/pkg/repos/FreeBSD.conf
/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf and enable it FreeBSD: { enabled: yes }

Thanks. This one is very old version and not support zeek.

What is the current version you are using?

There is two previous releases of the package. So, based on your firewall version , you can check which release is suitable for you.

I see some type of log in my filebeat/zeek.yml:
module: zeek
  capture_loss:
    enabled: true
    var.paths: ["/opt/zeek/capture_loss.log"]
  connection:
    enabled: true
    var.paths: ["/opt/zeek/conn.log"]
  dce_rpc:
    enabled: false
  dhcp:
    enabled: true
    var.paths: ["/opt/zeek/dhcp.log"]
  dnp3:
    enabled: false
  dns:
    enabled: true
    var.paths: ["/opt/zeek/dns.log"]
  dpd:
    enabled: false
  files:
    enabled: true
    var.paths: ["/opt/zeek/files.log"]
  ftp:
    enabled: false
  http:
    enabled: true
    var.paths: ["/opt/zeek/http.log"]
  intel:
    enabled: false
  irc:
    enabled: false
  kerberos:
    enabled: false
  modbus:
    enabled: false
  mysql:
    enabled: false
  notice:
    enabled: true
    var.paths: ["/opt/zeek/notice.log"]
  ntlm:
    enabled: false
  ocsp:
    enabled: false
  pe:
    enabled: false
  radius:
    enabled: false
  rdp:
    enabled: false
  rfb:
    enabled: false
  signatures:
    enabled: false
  sip:
    enabled: false
  smb_cmd:
    enabled: false
  smb_files:
    enabled: false
  smb_mapping:
    enabled: false
  smtp:
    enabled: false
  snmp:
    enabled: true
    var.paths: ["/opt/zeek/snmp.log"]
  socks:
    enabled: false
  ssh:
    enabled: true
    var.paths: ["/opt/zeek/ssh.log"]
  ssl:
    enabled: true
    var.paths: ["/opt/zeek/ssl.log"]
  stats:
    enabled: true
    var.paths: ["/opt/zeek/stats.log"]
  syslog:
    enabled: false
  traceroute:
    enabled: false
  tunnel:
    enabled: false
  weird:
    enabled: true
    var.paths: ["/home/zeek/weird.log"]
  x509:
    enabled: true
    var.paths: ["/home/zeek/x509.log"]

Some of above I disable because I don't find it in log view

Something like intel.log is existed in Zeek from 3.1.3 and current version using in pfSense is 3.0.6
Are there any way to bring all-new log to the current version? like, add Zeek script?
Thanks

You don’t have to disable it because the generated log files are based on the activities on your network. If there’s more activities implicating more protocols, other log files will be generated.
For the version of Zeek, we are using the latest port available on FreeBSD fresh ports. When a new update will be released, you can update it.
I don’t actually know how you can get intel.log.


Hide max buy multi octeracts

For Sing Upgrades and Octeracts:

added "Hide Maxed" button
added buy modes button "Buy 1 / Any / Max"
For Quark Shop:
changed buy modes button behavior to be the same as Octeracts/Sing upgrades: the "Buy Any" mode is now available without using the Shift key (useful for mobile users).

On those 3 screens, multi buy is still available with shift+click on the upgrade, not depending on the current multi buy mode

@KhafraDev please merge this PR or at least approve it, it's 6 weeks old, I've already had to change it 3 times to resolve conflicts and I've implemented the changes you asked for. Several people are waiting for those changes. Thank you


sensu-extensions-system-profile-wmi not found in repos

Windows 10, sensu 0.29
C:\opt\sensu\bin>sensu-install -e sensu-extensions-system-profile-wmi
[SENSU-INSTALL] installing Sensu extensions ...
[SENSU-INSTALL] determining if Sensu gem 'sensu-extensions-system-profile-wmi' is already installed ...
false
[SENSU-INSTALL] Sensu extension gems to be installed: ["sensu-extensions-system-profile-wmi"]
[SENSU-INSTALL] installing Sensu gem 'sensu-extensions-system-profile-wmi'
ERROR:  Could not find a valid gem 'sensu-extensions-system-profile-wmi' (>= 0) in any repository
ERROR:  Possible alternatives: sensu-extensions-system-profile, sensu-extensions-proc-net-snmp, sensu-extensions-snmp-trap, sensu-extensions-occurrences, sensu-extensions-notifu
[SENSU-INSTALL] failed to install Sensu gem 'sensu-extensions-system-profile-wmi'
[SENSU-INSTALL] you can run the sensu-install command again with --verbose for more info
[SENSU-INSTALL] please take note of any failure messages above
[SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)
[SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-extensions-system-profile-wmi ...
ERROR:  No gem matching 'sensu-extensions-system-profile-wmi (>= 0)' found

It looks like no one has setup rubygem deploys for this. As I just got access to this org I need to figure out what's up and report back before making any further assumptions that apply to the sensu-plugins org.

I have verified the 0.0.1 version is working as intended under Sensu 1.1.1, despite the appveyor build failing on Ruby 2.4.
Since it's working despite the failing build, I've manually built the gem on a Windows VM and uploaded version 0.0.1 to rubygems. Should now be able to install it using sensu-install -e as documented.


Flavor identifiers need to match OCCI-OS identifiers

Flavour names use to be something like "m1.tiny", this is not a valid OCCI identifier so OCCI-OS does the following substitutions:
term = term_name.strip().replace(' ', '_').replace('.', '-').lower()
this must be correctly shown in the bdii provider

Any progress on this?

Fixed in #21


None of the features work anymore

I've been using this mod for about 3-4 weeks and all of the sudden, all my settings and stuff is gone. I can't use anything in the mod besides /sbapi (to view profiles) and /skyblockcatia gui (to edit the gui and stuff) plz help I wanna use this mod again!

Crash or something? Or did you ever try only with my mod?


Online Resume Builder

Online Resume Builder Platform
Try it
https://soumyo-jeet.github.io/Resume-Builder-Website/

The committed file is in submodule form. Try to fix this.

https://soumyo-jeet.github.io/Resume-Builder-Website/


Unable to set compressed as true by default

6cd989f removed compressed from the defaults object preventing it from being set by default using needle.defaults.

+1

Fixed in b5c3a26

Just pushed 2.3.2 with this update. Thanks!


🐛 Bug Report — Runtime APIs: D1 Does Not Allow CURRENT_TIMESTAMP In Queries

The Experimental Backend doesn't allow using CURRENT_TIMESTAMP when running any type of query.
It's supported perfectly when it's set as default value for a column.

CC: @geelen


Make core modules builtin, and load these from memory

I think it might be better to load most of the core modules from memory, as they're small enough that they don't really need to be external shared libraries.
The change is rather minor:
    int load_arrays(vm_t* vm);
    int load_io(vm_t* vm);
    int load_math(vm_t* vm);
    int load_os(vm_t* vm);
    int load_strings(vm_t* vm);

    static struct
    {
        const char* name;
        load_module_t func;
    } builtin_modules[] = {
        { "arrays", load_arrays },
        { "io", load_io },
        { "math", load_math },
        { "os", load_os },
        { "strings", load_strings },
        { NULL, NULL },
    };

    static inline const char* get_home_dir(void);

    static inline const char* get_home_dir(void)
    {
        const char* home_dir = getenv(HOME_VAR);
        if(!home_dir)
        {
    #ifdef _WIN32
            const char* drive = getenv("SystemDrive");
            ASSERT(drive, "environment variable 'SystemDrive' not set");
            char* path[MAX_PATH + 1];
            snprintf(path, MAX_PATH, "%s\\hook", drive);
            strncpy(path, drive, MAX_PATH);
            home_dir = (const char*)path;
    #else
            home_dir = "/usr/local/hook";
    #endif
        }
        return home_dir;
    }

    load_module_t get_builtin(string_t* name)
    {
        int i;
        for(i = 0; builtin_modules[i].name != NULL; i++)
        {
            if(strcmp(builtin_modules[i].name, name->chars) == 0)
            {
                return builtin_modules[i].func;
            }
        }
        return NULL;
    }

    int post_load(vm_t* vm, load_module_t load, string_t* name, string_t* func)
    {
        if(!load)
        {

            runtime_error("no such function %.*s()", func->length, func->chars);
            string_free(func);
            return STATUS_ERROR;
        }
        string_free(func);

        --vm->top;
        if(load(vm) == STATUS_ERROR)
        {
            runtime_error("cannot load module `%.*s`", name->length, name->chars);
            return STATUS_ERROR;
        }
        return STATUS_OK;
    }

    int load_module(vm_t* vm)
    {
        int rt;
        bool isbuiltin;
        load_module_t load;
        value_t* slots;
        string_t* name;
        string_t* file;
        string_t* func;
        #ifdef _WIN32
            HINSTANCE handle;
        #else
            void* handle;
        #endif

        slots = &vm->slots[vm->top];
        value_t val;
        val = slots[0];
        ASSERT(IS_STRING(val), "module name must be a string");
        name = AS_STRING(val);
        load = get_builtin(name);
        isbuiltin = (load != NULL);
        if(load == NULL)
        {
            file = string_from_chars(-1, get_home_dir());
            string_inplace_concat_chars(file, -1, FILE_INFIX);
            string_inplace_concat(file, name);
            string_inplace_concat_chars(file, -1, FILE_EXT);
        #ifdef _WIN32
            handle = LoadLibrary(file->chars);
        #else
            handle = dlopen(file->chars, RTLD_NOW | RTLD_GLOBAL);
        #endif
            if(!handle)
            {
                runtime_error("cannot open module `%.*s`", name->length, name->chars);
                string_free(file);
                return STATUS_ERROR;
            }
            string_free(file);
        }
        func = string_from_chars(-1, FUNC_PREFIX);
        if(!isbuiltin)
        {
            string_inplace_concat(func, name);
            #ifdef _WIN32
                load = (load_module_t)GetProcAddress(handle, func->chars);
            #else
                load = dlsym(handle, func->chars);
            #endif
        }
        rt = post_load(vm, load, name, func);
        DECR_REF(name);
        if(IS_UNREACHABLE(name))
        {
            string_free(name);
        }
        return rt;
    }

this just loads the core modules (math, io, os, etc) by calling their respective load callbacks. I hadn't yet tested whether this conflicts with normal module loading, but I doubt it does.
This makes the build process easier, since one could now just do something like gcc *.c and immediately get a running program, fully standalone.

@apfeltee good idea. Currently, Hook doesn't have a complete modularity system because I haven't decided which way to go yet, but it's time. I was already thinking of implementing a global hash table to serve as a cache for loaded modules. We can after that, initialize the table with the core modules. So let's get rid of the libs.

Glad you agree.
My version doesn't cache the result of course, so a hash table is a great idea.

I already implemented the hash table that I mentioned. I guess we can now think about rewriting the core modules (arrays, io, math, and strings).

Sorry, I'm going to close this issue without implementing this so cool improvement, but it's for a very good reason: I decided to make Hook as small as possible. This means that it will not be coupled to libraries like "io", "math", etc. The loading of these libraries must be optional. Hook will be a C library having a default host program, and standard libraries to be loaded on-demand, just like Lua.


Don't rate text that isn't in English if the form is bilingual

Some users have forms where English is presented alongside translations to other languages. The presence of the other language, however, throws off the evaluation. As a workaround they edited their forms to block out the translations. However, it was suggested that if this could be done automatically, it would be a nice feature. Note: I can see a possible path to this using LLMs.

This one doesn't seem very plausible yet, but maybe? There are some Python libraries that detect language:
I guess we'd also need to "chunk" the form's text so we detect on a per-paragraph basis.
https://pypi.org/project/langdetect/

@KindBill it would be good to get Kind's help at least with setting up the UI for this feature

Use Cases:

English only forms
English + non-English language(s) forms
Non-English language forms only

Notes:

Should we display, "Looks like this form has (languages) included."?
Language detections without LLMs: ( langid / Lingua  / langdetect ); can start with langdetect and see if it works
Another option, but could be pricey depending on the number of API usage: https://cloud.google.com/translate/docs/basic/detecting-language (Would focus on the first few options first); $20 per million characters

We'll start on the original list first and see where we're at before looking at this one: https://github.com/SuffolkLITLab/RateMyPDF/issues?q=is%3Aissue+is%3Aopen+label%3Akind

Here's a summary of our research into language detection:

Pretty good on all non-Latin alphabet forms (e.g. Chinese)
Langdetect is poor on bilingual Spanish forms. A lot of English is misclassified as German or Vietnamese.
The following libraries were tested. Should be pretty easy to plug in others for testing.

langdetect - https://pypi.org/project/langdetect/
langid.py - https://github.com/saffsd/langid.py
Lingua - https://github.com/pemistahl/lingua-py

Lingua had the best performance based on anecdotal testing
All the libraries had issues
Hard to find good universal config settings for chunking the text
Ended up w/ a simple paragrapher that has configurable minimum lines and minimum characters. Default is 3 and 30.
Some docs have no non-English but the false positives will trigger the suggestion, so a minimum threshold % is useful. This defaults to a threshold of 5% non-English text before we use the alternate text
PoC strips out non-English paragraphs and passes that through the stats calc

Didn't affect the complexity or time to complete in many cases
Suggestions improved for difficult words & gender neutral terms.
Detailed stats were more accurate as the non-English parts were not considered.

The experimental branches are pushed up to RateMyPDF and FormFyxer. They should not be merged in the current condition, but can be useful for refining the approach/gathering better data on how to configure paragraph chunking.
RateMyPDF:
FormFyxer:
Some source docs that we tested:

https://selfhelp.courts.ca.gov/jcc-form/FL-680
https://selfhelp.courts.ca.gov/jcc-form/FL-600

ENV Configuration
export LANGUAGE_DETECTION_PRIMARY_LIBRARY=langdetect # langdetect, langid, lingua
export DEBUG_LANGUAGE_DETECTION_PRINT_ALL=FALSE
export USE_LANGUAGE_DETECTION=TRUE
export DEBUG_LANGUAGE_DETECTION=TRUE
export LANGUAGE_DETECTION_PARAGRAPH_MIN_LINES
export LANGUAGE_DETECTION_PARAGRAPH_MIN_CHARS
export LANGUAGE_DETECTION_THRESHOLD_PERCENTAGE=0.1
Examples illustrating the various edge cases/issues/weirdness mentioned in the intro. Note that these were captured on an older iteration that only used langdetect. Current debug output will look different.
** Example 1 **
===== Start Paragraph len: 78
GOVERNMENTAL AGENCY (under Fam. Code, §§ 17400 and 17406):
FOR COURT USE ONLY
===== End Paragraph lang: de confidences: [de:0.9999957743680956]
** Example 2 **
===== Start Paragraph len: 30
Modify
Order
Beginning
Date
===== End Paragraph lang: de confidences: [de:0.9999935651105715]
** Example 3 **
===== Start Paragraph len: 36
BRANCH NAME:
PETITIONER/PLAINTIFF:
===== End Paragraph lang: vi confidences: [vi:0.9999958307268626]
** Bad Paragraph Break because our logic is too simple leads to Spanish sneaking pass. **
===== Start Paragraph len: 256
pay or other property without further notice. See the attached statement of your rights and responsibilities for more information.
La agencia local que vigila la manutención de menores ha registrado la presente demanda contra usted. Esta demanda dice que
===== End Paragraph lang: en confidences: [en:0.9999962147279318]
** Chinese as English **
===== Start Paragraph len: 60
（键入或打印姓名）
（本地子女抚养机构辩护律师）
FL-600 C [Rev. January 1, 2020]
===== End Paragraph lang: en confidences: [en:0.857138603438145, zh-cn:0.14285660702774805]
** Spanish as Romanian **
===== Start Paragraph len: 39
Imprimir formulario
Guardar formulario
===== End Paragraph lang: ro confidences: [ro:0.9999965586847656]
** Spanish as German **
===== Start Paragraph len: 30
Fecha:
FUNCIONARIO JUDICIAL
===== End Paragraph lang: de confidences: [de:0.8571398401729963, pt:0.1428571115230109]
** Different Lang, Same Doc **
Detection seems unstable. These paragraphs are from the same document but classified differently for some reason. Also don't understand how the confidence is 71% German but it returns language as English. You would expect the detect and detect_langs methods use the same underlying logic, but apparently not. We use the detect response for the purposes of filtering. The detect_langs is purely informational.
===== Start Paragraph len: 37
RESPONDENT/DEFENDANT:
OTHER PARENT:
===== End Paragraph lang: de confidences: [de:0.5714273010344291, en:0.42857232144158824]
===== Start Paragraph len: 37
RESPONDENT/DEFENDANT:
OTHER PARENT:
===== End Paragraph lang: en confidences: [de:0.7142828187149544, en:0.2857171599270042]

Example of the how this might get displayed on the RateMyPDF website. It's mostly invisible and the stats/suggestions/etc are calculated from the English text only. A single suggestion will be added to the accordion to inform the user that we excluded the non-English from those calculations.


[SPARK-35045][SQL] Add an internal option to control input buffer in univocity

What changes were proposed in this pull request?
This PR makes the input buffer configurable (as an internal option). This is mainly to work around uniVocity/univocity-parsers#449.
Why are the changes needed?
To work around uniVocity/univocity-parsers#449.
Does this PR introduce any user-facing change?
No, it's only internal option.
How was this patch tested?
Manually tested by modifying the unittest added in https://github.com/apache/spark/pull/31858 as below:
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
index fd25a79619d..b58f0bd3661 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
@@ -2460,6 +2460,7 @@ abstract class CSVSuite
       Seq(line).toDF.write.text(path.getAbsolutePath)
       assert(spark.read.format("csv")
         .option("delimiter", "|")
+        .option("inputBufferSize", "128")
         .option("ignoreTrailingWhiteSpace", "true").load(path.getAbsolutePath).count() == 1)
     }
   }

Test build #137281 has started for PR 32145 at commit 2420be1.

Test build #137282 has started for PR 32145 at commit f1f92fb.

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41860/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41860/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41861/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41861/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41861/

Test build #137281 has finished for PR 32145 at commit 2420be1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

+1, LGTM. Merging to master/3.1/3.0.
Thank you @HyukjinKwon .

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137281/

Test build #137282 has finished for PR 32145 at commit f1f92fb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137282/

Thx Max.


Feature Request

is it possible for a nightclub extension to use more then one location with just one song YT or MP3
LG Minkh

Well, this question is tricky.. you can choose two location to play same song but one of them will have delay (like 0.3s if it loads fast) and if they're too close together you will hear them both and it will not sound good... My system isnt really ready for multiple positions for single song, it is possible do it but would required heavy change to code... maybe i will do it in my next sound system i am planning to do, but i cannot give any date cause i got lot work to do on other projects and real life is also thing. Hope i helped somehow.
However this sound system support
direct url
youtube link
stream radio
youtube stream


Off-policy RL algorithms support

Hi, first of all, great work. This is a very useful library for research on RL and NLP. It will be very helpful if it's possible to add off-policy RL methods like Q-learning, SAC, etc. along with benchmarks.
Also, new offline RL methods applied to NLP like ILQL can be very interesting for human alignment, and support for such methods will further enhance the value of this codebase.

Agreed! This is on our to-do list too. If you are interested and have time, you can contribute..

Hi,
Probably somewhat related to this, having a forced_decoder_ids argument in the policy.generate() function might help with the offline RL setting, so is there a specific reason to not have that in the current generate function under hf_generation_utils.py? Also, is there a plan to add it in the near future?

@ghadiaravi13  I think this is probably because of the transformers library version that we adapted to hf_generation_utils.py. Once we upgrade it to recent versions, we can support this.

Got it, thanks!

Hi @rajcscw,
Any update on this issue?
I'm wondering if Q-Learning methods can work for LLM training 🤔 Would be extremely grateful if you can share your experience on this.


Rename languages as data.

[x] Updated Unreleased in CHANGELOG.md to reflect the changes in code or data.

Thanks, that's what I was worried about but couldn't think of anything either.


Remove showcase

Remove showcase from focus-components. See https://github.com/KleeGroup/focus-showcase/issues/5

@pierr you might want to rebase :)

I'm lazy

Fix https://github.com/KleeGroup/focus-showcase/issues/5


Memo External URL Change

Summary
Since React's official documentation has changed, I thought it was appropriate to change the Memo reference link in the Options section.
Test plan
I just changed the url with the new url.

Thanks!


[Compute] API version 2023-01- 02 track2

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.Compute

Hi @ArcturusZhang recorded the tests and changed the names. Please review again.


[Question]: Two simultaneous p2p streams on one station

Ask your question
Hi!
We currently have an issue that is partly caused by two doorbells that try to start a p2p at the same time. Both doorbells are connected to the same station. It seems that only one can get the stream. It only depends which device asks first.
So I wondered: Should it be possible to stream two devices at the same time? Until now I thought so, since the client differs by the device channels. But maybe I was wrong.

Unfortunately, the station can only actively provide 1 livestream at a time. As soon as another one is started, the current one is terminated.


Black screen. Does not draw initially on MacOS Mojave (10.14)

Seems many others getting exact same issue
https://github.com/go-gl/glfw/issues/231
Basically the window opens and its just all black.
Once you maximise the window its ok and renders the FLutter scene
Also when you resize it goes black as you resize and then comes back to Flutter scene.

Known isssue, seems to be fixed : glfw/glfw#1334

I cannot reproduce this issue at Mac OS Mojave 10.14.3. The window is black for a short time but then automatically renders. Perhaps this has been solved by glfw, or because by a recent change in go-flutter's handling of window redrawing. @gedw99 Is this still an issue for you?

This is now fixed thanks to Hover !!


[Question] get issue error: listing backups: setting backup-target is empty

[Question] get issue error: listing backups: setting backup-target is empty
how to fix

Do you see it on all the pages or just Backup page? The later is expected since without backup target there is no backup to be seen.

If you are trying to setup a backup target have a look at the documentation here


Jupyter-sphinx-theme on readthedocs.

Is there a readthedocs page that (at least) demo the theme ? Or a GitHub Pages  Page ?
Should we (at least) grab the name ?

There isn't, but @willingc and I have been testing it on nbconvert here: http://test-nbconvert.readthedocs.org/en/nicedocs-please/  I think we could/should use the docs folder in this repo to host demo docs.  The docs folder here is mostly content from the forked theme, sphinx bootstrap.

Just grabbed jupyter-sphinx-theme on RTD.


Exception when deleting PHPCR content containing Categories

When deleting custom entities from database, at "flush" call to entity manager the following exception is thrown:
"An exception occurred while executing 'INSERT INTO ca_category_translations (translation, locale, idCategories) VALUES (?, ?, ?)' with params [null, null, 2]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'translation' cannot be null"
Like discussed the code is there:
Class: Sulu\Bundle\CategoryBundle\Api\Category
Line: 355
See also: #1556

seems to be duplicated @stemod i will close this issue


some corrections

StorageUri parameter of New-AzureRmSqlDatabaseExport cmdlet misses dash
AdministratorPassword > AdministratorLoginPassword
$exportRequest .OperationStatusLink > $exportRequest.OperationStatusLink

Hi @jiyongseong, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@jiyongseong : Thanks for your contribution to the Azure documentation! The author, @stevestein, has been notified to review your proposed change.

@jiyongseong - thanks for the fix! Because it's a code edit I'll review and update in the next few days.

@jiyongseong - thanks again for the fix!
@cjgronlund - this PR is ready to merge

#sign-off


Feature Request: add a code snippet component

Feature request
Provide a simple component that can render code snippets in a webview with syntax highlighting, themes, and settings considered.
They could be read-only initially, but perhaps making the editable could make sense.
I think in general, we strongly prefer creating editors or using VS Code's builtin APIs for showing code (peek view, etc).
However, there are several use cases, such as a conversational language model describing some code mixed with text, where having a small code snippet rendered would be nice.
Perhaps the implementation could be from wrapping around a Monaco editor in a web-component (example) that takes VS Code variables or some wrapping around settings, I did not invest much time thinking on the implementation, but I could after hearing your thoughts.

Expected behavior
We could be able to render small snippet with all the settings and themes coming from VS Code.
I imagine something like this.
<vscode-snippet language="typescript">
   function foo(bar: string) {
       return 'fuzzy wuzzy was a bear';
   }
<vscode-snippet>

Current behavior
Currently, it's not possible, we have a few options:

Highlighting them manually based on some pre-defined semantic coloring and use a code mirror editor (similar to what chrome devtools does).
Show a standalone Monaco editor similar to this example. The issue with this one is that, themes are not loaded by default, and user settings are not respected (font-size, indentation, etc).

Use case
We have several use cases:

Rendering snippets coming from ML extensions / LLMs.
Rendering snippets of search results from our custom code search extension.
Rendering inline code for our bug tracking extension.

Screenshots/references
This is similar to https://github.com/microsoft/vscode-webview-ui-toolkit/issues/315.

Hi @guiherzog,
Again as I mentioned in your other issues, I'm very sorry to say that the toolkit is being deprecated and all active development will be coming to a close.
Here's the announcement link where you can learn more details and leave any questions or comments you may have.


register_font broken on Windows with Pango 1.50.12 + Cairo 1.17.6

Looks like Pango by default switched to the Dwrite backend, which means our previous method to add a font file into system fonts is not possible.
See https://github.com/GNOME/pango/commit/3c947ecb260977724f2e53a3379df88b26713d1a
Test suite failure: https://github.com/ManimCommunity/ManimPango/actions/runs/3572206031/jobs/6143567659#step:5:166

Upstream issue: https://gitlab.gnome.org/GNOME/pango/-/issues/720

This is fixed in https://github.com/ManimCommunity/ManimPango/pull/111


Create mail.txt

黎明技術學院
lee ming institute of technology

@sannyasi1975 Pull request merged. Thank you!


Runtime Error

When I press 3 or any other button I get this error. This program worked fine for me then I reinstalled windows and started having this issue. It also doesnt seem like the delay works at all I just constantly misses.

Based on my previous understanding, after replacing the UE5 engine, it is difficult for the image recognition Python script to continue to successfully assist in repairing the machine with peace of mind. As for the error, my suggestion is that you can delete the corresponding code.

the same issue

no "keyboard" file folder


Update RodCut.rkt

Updated so it will print like this:
Running tests...
cpu time: 0 real time: 0 gc time: 0
Test case 1: Length 10: Passed
cpu time: 0 real time: 0 gc time: 0
Test case 2: Length 20: Passed
cpu time: 62 real time: 117 gc time: 0
Test case 3: Length 30: Passed
cpu time: 10578 real time: 12733 gc time: 453
Test case 4: Length 40: Passed
cpu time: 1266625 real time: 1431026 gc time: 63312
Test case 5: Length 50: Passed

Second test:
Running tests...
cpu time: 0 real time: 0 gc time: 0
Test case 1: Length 10: Passed
cpu time: 0 real time: 0 gc time: 0
Test case 2: Length 20: Passed
cpu time: 125 real time: 141 gc time: 15
Test case 3: Length 30: Passed
cpu time: 10796 real time: 12464 gc time: 625
Test case 4: Length 40: Passed
cpu time: 1267593 real time: 1403022 gc time: 61203
Test case 5: Length 50: Passed

Third Test:
Running tests...
cpu time: 0 real time: 0 gc time: 0
Test case 1: Length 10: Passed
cpu time: 0 real time: 0 gc time: 0
Test case 2: Length 20: Passed
cpu time: 140 real time: 162 gc time: 0
Test case 3: Length 30: Passed
cpu time: 10234 real time: 11993 gc time: 531
Test case 4: Length 40: Passed
cpu time: 1260218 real time: 1435057 gc time: 63375
Test case 5: Length 50: Passed


Explicitly add the chain Id to the JSONRPCPROVIDER

Without this ether js JsonRPC provider seems to call a detectNetwork Function every event loop which makes a call the node like  {method: eth_ChainID, params: [], id: randomNumber()}

relates to #63

@aaronmgdr I've tested this solution in Celo Wallet and haven't found it reduced the eth_chainId calls. I think the recommended fix is to use the StaticJsonProvider: https://github.com/ethers-io/ethers.js/issues/901#issuecomment-647836318
Though that may not work here before we need the provider to respond to network changes (like in Metamask) cc @dckesler


can not request voucher after failure

Describe the bug
after the first failure in Request New Voucher
the request button is disabled even if the data are filled

To Reproduce
Steps to reproduce the behavior:
1. Go to profile
2. Click on Request New Voucher
3. fill the fields for the first time
4. click on request
5. Click on Request New Voucher again
6. fill the data
7. the request button is disabled

Screencast from 04-04-2023 05:02:23 PM.webm

fixed
inputs and fields are being reset after requesting
Screencast from 04-06-2023 11:58:55 AM.webm


Fixed #9475 -- allow add(), create(), etc for m2m with through

just a proof of concept

replaced by #9609