Input Files: Allow NSRDB (SAM), PVGist, and others through PVLib iotools

NSRDB no longer provides TMY files - their file is in SAM csv output.  Include capability to read this in.  (Silvana has the code already - just include it as a separate file and connect it to Master)

def readNSRDB(NSRDBfile, decimate= False, decimatestyle = "Mean" , decimatevalue = 5 ):
   '''     decimatestyle = "Mean" or "Skip"     '''     day_all = []; month_all = []; year_all = []; hour_all = []; minute_all= []     global_all=[]; direct_all=[]; diffuse_all=[];      albedo_all=[]; temp_all=[]; pressure_all=[]; wind_all=[];    timestamps_all = []
headeracquired= 0
headererror = 0

yearloc=0
monthloc=1
dayloc=2
hourloc=3
minuteloc=4
directloc = 5
diffuseloc = 6
globalloc= 7
albedoloc=8
windspeedloc=9
temperatureloc=10
pressureloc=11

with open(NSRDBfile, "r") as filestream:

    print "Reading NSRDBfile File: ", NSRDBfile
    print "Decimation options: ", decimate
    if decimate == True:
        print "Decimate Style: ", decimatestyle, " to interval ", decimatevalue, " minutes."
    headerline = filestream.readline() # read headers labels, read values
    head1 = headerline.strip().split(',')

    meta = dict(zip(head1, filestream.readline().rstrip('\n').split(",")))

    for line in filestream:
        if headeracquired == 0:
            header = line.split(",")

            if header[yearloc] != 'Year': print "Issue reading" + header [yearloc] ; headererror = 1
            if header[directloc] != 'DHI': print "Issue reading" + header [directloc] ; headererror = 1
            if header[diffuseloc] != 'DNI': print "Issue reading" + header [directloc] ; headererror = 1
            if header[globalloc] != 'GHI': print "Issue reading" + header [globalloc] ; headererror = 1

            headeracquired = 1

            if headererror == 1:
                print "STOPPING File Read because of headers issue (expected data might not be where we think it is! Stop roll and check!"
                continue

        else:

            if headererror == 1:
                continue

            currentline=line.split(",")
            year=int(currentline[yearloc])
            month=int(currentline[monthloc])
            day=int(currentline[dayloc])
            hour=int(currentline[hourloc])
            minute=int(currentline[minuteloc])

            if decimate == True:
                if decimatestyle == "Skip":
                    if minute%decimatevalue != 0:
                          continue

            year_all.append(int(currentline[yearloc]))
            month_all.append(int(currentline[monthloc]))
            day_all.append(int(currentline[dayloc]))
            hour_all.append(int(currentline[hourloc]))
            minute_all.append(int(currentline[minuteloc]))
            direct_all.append(float(currentline[directloc]))
            diffuse_all.append(float(currentline[diffuseloc]))
            global_all.append(float(currentline[globalloc]))
            albedo_all.append(float(currentline[albedoloc]))
            wind_all.append(float(currentline[windspeedloc]))
            temp_all.append(float(currentline[temperatureloc]))
            pressure_all.append(float(currentline[pressureloc]))
            myTimestamp=datetime.datetime(year, month, day, hour, minute, 0, 0)
            timestamps_all.append(myTimestamp)

NSRDB = ({'Month': month_all, 'Day': day_all, 'Year': year_all, 'Hour': hour_all, 'Minute': minute_all,
             'Global': global_all, 'Direct': direct_all, 'Diffuse': diffuse_all,
             'Temp': temp_all, 'Presure': pressure_all, 'Wind': wind_all, 'Albedo': albedo_all})

NSRDB = pd.DataFrame.from_records(NSRDB, index=timestamps_all)

if decimate == True:
    if decimatestyle == "Mean":
        if decimatevalue == 5:
                NSRDB=NSRDB.resample('5Min', base=0).mean()
                print "Data decimated to 5 min Interval by Average"

        if decimatevalue == 10:
                NSRDB=NSRDB.resample('10Min').mean()
                print "Data decimated to 10 min Interval by Average"

        if decimatevalue == 15:
                NSRDB=NSRDB.resample('15Min').mean()
                print "Data decimated to 15 min Interval by Average"

        if decimatevalue == 60:
                NSRDB=NSRDB.resample('60Min').mean()
                print "Data decimated to 1 Hr Interval by Average"

return NSRDB, meta;    `

Does this mean a SAM meteorological file can be read in Bifacial Radiance? If so would that include sub-annual albedo values and how would Radiance process these?

Hi Jenna,
It looks like we have an issue #68 open for this at the moment.  This will be rolled into a future release that also allows multiple scene files to be generated at the same time with different albedo values.  Thanks!
Chris Deline
National Renewable Energy Laboratory
(303) 384-6359
From: JennaKLH<EMAIL_ADDRESS>Sent: Wednesday, April 24, 2019 9:14 AM
To: NREL/bifacial_radiance<EMAIL_ADDRESS>Cc: Deline, Chris<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [NREL/bifacial_radiance] Allow NSRDB (SAM) climate files to be read in. (#20)
Does this mean a SAM meteorological file can be read in Bifacial Radiance? If so would that include sub-annual albedo values and how would Radiance process these?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/NREL/bifacial_radiance/issues/20#issuecomment-486285007, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFRK2OHZMOB5AKXASV4EF2DPSB2K7ANCNFSM4GC6DAPA.

Now that we're on PVLib > 0.6.1 there are iotools functions to do this pretty easily.

@JennaKLH long long after revisiting your comment --- we are using albedo from TMY3 values since one or two releases ago. It can be a TMY3 style file with any time step you want, as long as it has the right column names that are being used.
Renaming this issue to be able to read NSRDB, PVGIS and any other format from the PVLib Iotools.

This is fixed in 2e45cc89ef1ac03387cfc167348ac1e29690480c, currently just in the development branch.


Marks and (debugger) functionality

Inject (debugger) and (breakpoint) macros to clojure.core (they behave the same)
When flowstorm encounters either of these, it tracks a "mark"
Marks are displayed in the UI

The UI will navigate to the first mark encountered (unless an Exception was already navigated to)

Potentially changes/improvements:

merge this with existing "bookmark" functionality (ie. this would be a programmatic way to add bookmarks); potentially instead of debugger or breakpoint, we just call the macro bookmark
support passing a label to differentiate different marks
make macro handle a single arg transparently to allow use inside of threading macros (->> data
      (map first)
      bookmark
      (apply +))

when displaying marks in the mark list, provide a bit more context (ns + fn)

Great! I like the idea of reusing the bookmarks functionality, and I think the changes should be pretty easy.
I think they are to :

Make expression-mark-event call dbg-state/add-bookmark instead and keep  the auto jumping code
Remove the marks stuff from state
Remove the marks dropdown code

Maybe we can call the macros debugger and bookmark?
I like the debugger one also because it provides a similar behavior to the js one in the sense that it will "jump there", so it is not only about adding a bookmark.
As part of this PR I would add support for the macros to optionally receive a label, which can be used as the bookmark text.
For this we would need to change the macros to expand to symbols with meta instead of keywords, so they can carry extra info.
What do you think?

Changes since my last note:

reworked "marks" to re-use the pre-existing bookmarks functionality, including supporting passing a label
also show source of a bookmark (ui  or api) in the bookmarks combo and bookmarks window

I will undo the changes to the bookmarks data structure, and I can remove the combo box.

Removed the bookmarks-combo
Reverted bookmark state storage change

When merging this in, I recommend a squash merge.


[Event Request] Table 5223 "Detailed Employee Ledger Entry" - Procedure UpdateDebitCredit

Dear ALAppExtensions Team,
We would like to request the following change
procedure UpdateDebitCredit(Correction: Boolean)
begin
    if ((Amount > 0) or ("Amount (LCY)" > 0)) and not Correction or
       ((Amount < 0) or ("Amount (LCY)" < 0)) and Correction
    then begin
        "Debit Amount" := Amount;
        "Credit Amount" := 0;
        "Debit Amount (LCY)" := "Amount (LCY)";
        "Credit Amount (LCY)" := 0;
    end else begin
        "Debit Amount" := 0;
        "Credit Amount" := -Amount;
        "Debit Amount (LCY)" := 0;
        "Credit Amount (LCY)" := -"Amount (LCY)";
    end;
    **//--> event request
    OnAfterUpdateDebitCredit(Rec, Correction);
    //<-- event request**
end;

**//--> event request
[IntegrationEvent(false, false)]
local procedure OnAfterUpdateDebitCredit(var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; Correction: Boolean)
begin
end;
//<-- event request**

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10560.


⚠ ClamAV has degraded performance

In f89f9d4, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 363 ms

Resolved: ClamAV performance has improved in 268e6aa.


template values in custompatch

Codecov Report
Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (b653b5e) 55.49% compared to head (67a58bd) 54.91%.

Files
Patch %
Lines

pkg/patch/custompatch/custompatch.go
44.44%
3 Missing and 2 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
- Coverage   55.49%   54.91%   -0.59%
==========================================
  Files          16       16
  Lines         946      947       +1
==========================================
- Hits          525      520       -5
- Misses        361      365       +4
- Partials       60       62       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[BUG] Hide tooltip behind the scales

When the x axis is moved behind the y scales and the mouse is zoomed in to display the tooltip, it is displayed above the y scales.

Here is the JSFiddle demo

Looks like using a large pointHitRadius option lets points outside chartArea to be interacted.

Good call transferring this over


Invisibly add newline to end of file

Emacs and Vim ensure the last character in a file is always \n. Atom doesn't do this:
$ cat new-file.vim
new file
$ cat new-file.atom
new file$

This would make a nice setting (enabled by default) because in practice you usually want a newline at the end of files.

This setting is very hard to find. In fact the name is not very intuitive. I tried searching how to deactivate this (I don't want extra line breaks) and it really took me too long. Why is this invisible in the main config? How would I understand that I should go to a plugin config?

This is being tracked in atom/settings-view#284.  It is confusing to some users at first that individual packages also have settings that aren't visible in the main Settings view (I know it was for me)-the linked issue should take care of this.


Some remarks from a noob to improve documentation

Firstly, thank you for this great improvement over git-repo. Get bored working with detached heads (while using gerrit is less painful).

In https://github.com/dmerejkowsky/tsrc#overview it's always good to start explaining longer what the project is supposed to do are improve to other concurrent. I would include https://dmerejkowsky.github.io/tsrc/faq/#why_not_repo in this section because these are reason of why I quit git-repo (I'm Linux user, but the project has Window user now). Also give this explicit link https://github.com/dmerejkowsky/tsrc because thanks to these 2 paragraphs, any incoming people will immediately know if tsrc will offering the good usage for his project. And sorry, what is the tsrc name signification (Tanker source) ? I never remember its name ^^

In https://github.com/dmerejkowsky/tsrc#usage-example you give a minimal example. But this is not enough detailed for beginner. You should either give a "dumb" but complete example using the whole syntax and ideally that people can try with ie repo init -u git@github.com:dmerejkowsky/tsrc-manifest-example.git but also give a direct link to the syntax guide https://dmerejkowsky.github.io/tsrc/ref/manifest-config/ which was not easy, for me, to find.

In https://dmerejkowsky.github.io/tsrc/getting-started/#installing_tsrc you said: You can also install tsrc with pip if you know what you are doing :) (even in your README) I'm a C++ coder and I hardly code in Python, so I did not understand your terrific warning ^^ because I did not know pipx and I tried python3.9 -m install tsrc and I have the latest version working fine. My computer did not explode :)

In my particular project, I'm using SSH with GitHub, but I'm pretty sure that some people still use HTTPS with GitHub. Is tsrc offer a "or" syntax ? Idea:

 -  url: example.com/bar.git // without git@
    protocol: [ ssh, url ] // this is an or
    dest: bar

When you said Good support for Windows I just give a try with your symlink: command but Window wants the admin rights. Some people does not want to allow this right. Maybe i'm confused but for me since Windows 3.1 you have "aliases" to create shortcuts on applications on your desktop (and additionally pass some command line) so why tsrc does not offer this cheap aliases ?

Concerning the copy: git-repo sets the copied file as read-only, tsrc does not (at least for Linux). So developers will edit this copied file instead of the original one. So currently I cannot use neither copy: neither symlink: lol

In https://dmerej.info/blog/post/introducing-tsrc/#managing-merge-requests archived blog from 2017 what happened to tsrc push ?
I'm coming with v2.5.0 but this command is no longer present. Can tsrc can help making github pull requests without having to fork the project.

I would like to use http://gerrithub.io/ is tsrc offers a review: command ?

Link to this question https://github.com/dmerejkowsky/tsrc/issues/279#issuecomment-1013645449 concerning https://dmerejkowsky.github.io/tsrc/guide/manifest/#editing_the_manifest_safely because this is also doc.

Thanks you !

Thanks for the report. Getting feedback from newcomers is a great way to improve UX and documentation :)

what is the tsrc name signification (Tanker source)

Yeah the t used to stand for Tanker. Now it means tool. If you speak French, you may also think of "tes sources" to remember the name :)

I tried python3.9 -m install tsrc and I have the latest version working fine. My computer did not explode :)

For now. But in general this a bad idea. I recommend using pipx because it will create a virtual environment for you. If you keep installing tsrc this way, you risk breaking Python programs installed with your package manager.

Is tsrc offer a "or" syntax ?

No. I'm not sure how that would work anyway. See also #278. Feel free to open a separate issue if #278 is not enough.

"Good support for windows".

It says "good", not "excellent" :P. The symlink feature does not (and probably cannot) work as well on Windows than on Unix. See the relevant documentation for more details.

git-repo sets the copied file as read-only, tsrc does not

Yeah. That's because tsrc preserves file metadata, so that for instance executable scripts can still be run. This was discussed in #217.

what happened to tsrc push ?

The support for GitLab/GitHub automation has been removed. See #207 for the discussion.

I would like to use http://gerrithub.io/ is tsrc offers a review: command ?

No, and I don't think gerrit automation is inside tsrc's scope either. I heard good thinks about  https://pypi.org/project/git-review/.

Also give this explicit link https://github.com/dmerejkowsky/tsrc because thanks to these 2 paragraphs, any incoming people will immediately know if tsrc will offering the good usage for his project.

Not sure what paragraphs you are talking about here. I think you meant to use an other URL.

I've opened a separate issue for improving the README: #333

And I've opened a merge request to address some remarks from your initial message: https://github.com/dmerejkowsky/tsrc/issues/334

I'm going to close this now. Feel free to open separate issues if I missed something (it will be easier to track progress this way).

The docs changes in https://github.com/your-tools/tsrc/pull/376 include explanation why pipx is recommended and that you may still use pip but state what you lose then.


Login to Twitter seems to fail

Double-check this: Twitter seems to fail to login, for unknown reasons.

Twitter responds to a POST to https://twitter.com/sessions with a 302 redirect to the homepage. For some reason, the resulting redirect-request gets cancelled before getting fulfilled.

This is a known issue https://github.com/electron/electron/issues/3471


Travis: point at jruby-<IP_ADDRESS> to match correctly

This PR is about trying to get jruby latest release to run tests in the CI matrix.

point to jruby-<IP_ADDRESS>, so that it can try to run. (The current issue is with jruby (the shortname) on rvm - it matches a non-existent jruby-<IP_ADDRESS>0.)
also: gem install bundler - when no bundler were there before, this works (this was the case for jruby-head for a while, for example) better than gem update bundler
also: rvm does a --system update of rubygems built-in, now

Please note: there's an aruba-related failure in actually running, but this allows the CI matrix element to at least start.

The initial commit had a Travis failure to even begin building. No VM was created.


Wrong Links on wiki HomePage

On Home page of project wiki links when cliked go back to the same page instead of one metioned

Oh wow, no idea how I missed that. Fixed.
Thanks for the heads up!


Consider swapping forest data source

Very recently, the referenced data for the forest classification suggested to not use the veg & wetland dataset we are, but a different one.  See here.
This is why:

The methodology used for that dataset had some artifacts because of how it was constructed.

Closing; we'll remove this dataset.


Master Train 162

https://github.com/dcos/dcos/pull/1450
https://github.com/dcos/dcos/pull/1492
https://github.com/dcos/dcos/pull/1499
https://github.com/dcos/dcos/pull/1508
https://github.com/dcos/dcos/pull/1528 (Note: conflicts with 1508)
https://github.com/dcos/dcos/pull/1539
https://github.com/dcos/dcos/pull/1545
https://github.com/dcos/dcos/pull/1547
https://github.com/dcos/dcos/pull/1549
https://github.com/dcos/dcos/pull/1551

Code quality failure was introduced in handling the merge conflict (needs a newline)

@mellenburg (some comments).

Agains the issues, it will be good to have a titles mentioned. Easy to reference back/forth.

#1499 - bump-ee was not done for this.
#1545 - bump-ee was not done for this (due to staleness).
#1547 - The PR template was not updated. - The integration tests were not requested / added.
#1551 - no bump-ee
(For #1551, it can be argued that bump-ee is not required, I am not sure about the others)

#1549 - This looks great 👍 from a train conductor/review perspective.


[Puurfect-ui] Add table

This pull request has been deployed to Vercel.

✅ Preview:
https://matou-technologies-purrfect-ui-storybook-37.vercel.app

🔍 Inspect:
https://vercel.com/matou-technologies/purrfect-ui/GvtvXupHE55o1sqoMp9VFg6d52Kq


Please consider to add Snapshot limit to this document please.

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/faq-for-disks
What disk types support snapshots?
Premium SSD, standard SSD, and standard SSD support snapshots, without any size limit. So you can snapshot large disks (up to 32 TiB). Ultra SSDs do not support snapshots.

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

ID: 1cd57b6d-3c6f-e546-b3ea-f83892f4c23d
Version Independent ID: 27aecc7b-f107-96d4-b044-ae026bca2727
Content: Azure subscription limits and quotas
Content Source: articles/azure-subscription-service-limits.md
Service: billing
GitHub Login: @rothja
Microsoft Alias: byvinyal

@KeiroKamioka0000 Thank you for the feedback. This issue is being assigned to the content author to evaluate and update as appropriate.

@KeiroKamioka0000 Thanks for reaching out, we appreciate it. :)
In this case, this isn't a limitation but, is instead feature availability. So we don't think that information should be added to the limits article.
But again, thank you for the suggestion! It does highlight a potential issue with the wording in the FAQ. I'll make it clear that the 32 TiB is referring to the max disk size and not the snapshot size (since there's not a snapshot size limit).
#please-close


Only use oldest-supported-numpy in pyproject.toml

Codecov Report

Merging #344 (7db0be2) into master (b2294ca) will increase coverage by 0.95%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
+ Coverage   98.45%   99.41%   +0.95%
==========================================
  Files          93        9      -84
  Lines        2982      340    -2642
==========================================
- Hits         2936      338    -2598
+ Misses         46        2      -44

Impacted Files
Coverage Δ

python/turbodbc/cursor.py
98.99% <0.00%> (-0.02%)
:arrow_down:

...bc_python/Library/src/determine_parameter_type.cpp

cpp/turbodbc/Library/src/time_helpers.cpp

...bodbc/Library/src/result_sets/bound_result_set.cpp

...pp/turbodbc_arrow/Library/src/arrow_result_set.cpp

...urbodbc_arrow/Test/tests/arrow_result_set_test.cpp

...ary/src/result_sets/double_buffered_result_set.cpp

...brary/src/field_translators/boolean_translator.cpp

cpp/cpp_odbc/Library/src/level2/string_buffer.cpp

...p/cpp_odbc/Library/src/level1/unixodbc_backend.cpp

... and 75 more

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 b2294ca...7db0be2. Read the comment docs.


Replace options syntax

Personally, to use --no-open instead of -no-open looks natural like other CLI tools. What do you think of that?
If you think so, I'd like to replace.

@pixyzehn Yeah, that seems like a good idea, feel free to make that change 👍

@JohnSundell Glad to hear that 👍  I'll submit a PR.

Implemented by @pixyzehn in https://github.com/JohnSundell/Marathon/pull/15


Uploading annotation with xml rules unclear, seems have nothing to do with metadata

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

When I upload annotations.xml in CVAT format to a job as annotations, I found:

No matter which metadata I deleted, annotations will be succcessfully uploaded.

Only when I delete/edit tags like 'skeleton' insdie 'image' that would impact annotation.

This cause problems:

If job has 10 images, but annotations.xml has 7 images, what will happen?
If job has 7 images, but annotations.xml has 10 images, what will happen?
Does the matching rules follows the order of images like 1st anno match 1st images no matter the name?

Steps to Reproduce (for bugs)
Expected Behaviour
I think it should at least has a specific and clear rules for us to know how we can write a proper annotations.xml when we want to upload annotations.xml to CVAT
Current Behaviour
Uploading annotation with xml rules unclear
Possible Solution
Context
Your Environment

Git hash commit (git log -1):
Docker version docker version (e.g. Docker 17.0.05):
Are you using Docker Swarm or Kubernetes?
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Logs from `cvat` container

Metadata are not used during importing annotations, they exist for user to satisfy some requirements
If there is an image in annotation file not presented in a task, annotations from the image are not expected to be uploaded
If CVAT task has some images where annotations are not presented in annotations file, it will stay without annotations after upload

write a proper annotations.xml when we want to upload annotations.xml to CVAT

Keep correct frame names
Format specification is here: https://opencv.github.io/cvat/docs/manual/advanced/xml_format/


The sample not working in Edge

Open https://s3.amazonaws.com/praeclarum.org/wasm/index.html in Edge
There error SCRIPT5022: ValidationError mono.js (1,11239) in the console. Looks like it is somewhere in the UTF8 decoder, but I'm not sure. Either in the function lengthBytesUTF8(str) { function, or in this line var UTF16Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-16le") : undefined;. At least this is where debugger pointed

Ouch. I was testing in Edge at first so I wonder what changed. Thanks for the details.

Whatever it was it is working in Edge for me as of a couple of minutes ago.

Well that's good news? :-/ Please re-open if it happens again.


on OS X DNS link for services randomly isn't there for cli builds

Drone version:
.6
OS:
OS X 10.12.4
Repro Steps:
create any simple service and curl -v to it
fairly randomly you'll get * Hostname was NOT found in DNS cache. Might be a docker native issue on os x?
looks like something is going haywire for the dns resolution :/
here's what the reponse looks like when it works

curl -v "http://database:3000" > ./config/test.yml

Rebuilt URL to: http://database:3000/
Hostname was NOT found in DNS cache
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying <IP_ADDRESS>...
connect to <IP_ADDRESS> port 3000 failed: Connection refused
Trying <IP_ADDRESS>...
Connected to database (<IP_ADDRESS>) port 3000 (#0)

GET / HTTP/1.1
User-Agent: curl/7.38.0
Host: database:3000
Accept: /

< HTTP/1.1 200 OK
< X-Powered-By: Express
< Content-Type: text/html; charset=utf-8
< Content-Length: 45
< ETag: W/"2d-45TgH8W+lGBPVIxV0wozrBCb9S8"
< Date: Fri, 05 May 2017 03:19:25 GMT
< Connection: keep-alive
<
{ [data not shown]
100    45  100    45    0     0   1476      0 --:--:-- --:--:-- --:--:--  1666

Connection #0 to host database left intact

and here's what it looks like when it fails

curl -v "http://database:3000" > ./config/test.yml

Rebuilt URL to: http://database:3000/
Hostname was NOT found in DNS cache
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying <IP_ADDRESS>...
connect to <IP_ADDRESS> port 3000 failed: Connection refused
Failed to connect to database port 3000: Connection refused
Closing connection 0
curl: (7) Failed to connect to database port 3000: Connection refused
drone_step_1 : exit code 7

OK I reinstalled docker native and now it works every time :/ not sure what caused it but I'm closing this out.


Improve the definition of the cfPers entity

CERIF 1.6.1 has:

A person (plural: persons or people; from Latin: persona, meaning "mask") is a being, such as a human, that has certain capacities or attributes constituting personhood, the precise definition of which is the subject of much controversy.
Definition Source: http://en.wikipedia.org/wiki/Person

This is a so simple concept that it is very hard to formalize...
we should found a way to explain that a cfPers entity can be used only for "real" person to avoid forced use to introduce concepts like the name card

The definition from wikipedia is not very useful for our case.
I propose the following one:

A human being regarded as an individual.
Source: https://en.oxforddictionaries.com/definition/person

We can also mix it with the following:

a human being as distinguished from an animal or a thing.
Source: http://www.dictionary.com/browse/person

Outcome of our discussion at the TG virtual meeting today:

A human being as an individual.
The kind of involvement of a Person in the research ecosystem is specified in the links with the organisations, the services, etc. This typically includes:
(1) researchers (Persons performing research in an Organisation Unit);
(2) authors and contributors (Persons signing a publication, creator of data set, etc.);
(3) investigators and project participants (Persons involved in a project as principal investigators, co investigators, project managers, etc.);
(4) support staffs (administrative, responsible for Equipment, data curators, technicians, librarians, etc.).
One Person typically has many of these relationships.

The following was placed in the model:

A human being regarded as an individual.
Source: https://en.oxforddictionaries.com/definition/person
The kind of involvement of a Person in the research ecosystem is specified in the links with the organisations, the outputs, the projects, the services, etc. This typically includes:
(1) researchers (Persons performing research in an Organisation Unit);
(2) authors and contributors (Persons signing a publication, creators of data sets, etc.);
(3) investigators and project participants (Persons involved in a project as principal investigators, co-investigators, project managers, etc.);
(4) support staffs (administrative, responsible for Equipment, data curators, technicians, librarians, etc.).
One Person typically has many of these relationships.


Bug: While uploading code, libraries not copied to Projectpath

If i tried to upload a code with external libraries, Its getting Failed. If i tried to find the Library in project path, Library is not copied.

any update regarding this issue??

WTF? I will check what happen.

I found it. Since the new version of openblock desktop has adjusted the naming and added a space in the middle, the cache path contains space characters, which makes the arduino cli parsing error. I will fix this soon.

In v2.2.9 this problem should exist

My mistake, not the cause of the problem.. This is because in the v2.3.0 version, a cli tool will be used to optimize the external resource when it is released, and useless files will be deleted to reduce the library size. But I deleted the library.properties file by mistake, which caused the arduino cli to not recognize the library correctly and cause this error. Just update external-reource and i will fix this soon.

Fixed in https://github.com/openblockcc/openblock-resource-cli/commit/16bb06d1c931563657af123b15472fa3ea06d753.
The software will automatically detect external-resource v0.0.4 and update it to fix.


Flattening state machines from yield/for-of

Consider the following chunk of code with a couple nested for-of loops that iterate over what function * region(...) returns:
search: for (const lib of region(root, (t, s) => sameColor(s) && b.inBounds(t))) {
    // <...>

    for (const p of region(lib, (t, s) => !sameColor(t) && b.inBounds(t))) {
        // <...>

        for (const q of stone.neighbors(p)) {
            // <...>
        }

        if (!b.get(p) && !isAdjacent)
            continue search;
    }

    // <...>
}

This looks nice and concise, but it's also slow and it creates/disposes lots of those iterator objects keeping GC busy. Not so nice for a chunk of code that needs to run 100k times per second. My crazy ask is to consider merging the state machines that tsc makes when converts this stuff to es5: the result is supposed to be one huge and unreadable, but flat switch-case that does all the nested for-of loops without invoking region.

I can not see much that can be done here. each one of these calls result in an iterator object. the state machine is done inside the genarator function itself, so not sure how multiple calls of that can be merged.


New container nighres 1.5.1

Hello!
Here is a simple container for the nighres toolbox. I couldn't attach the build.sh so I made a link instead:
https://drive.google.com/file/d/1zhqMJ6oqkUHj42P3cr5ViBrdaYTzsSQH/view?usp=drive_link
README.md
Thanks for this effort, hopefully it works out well!
Cheers,
Pilou Bazin

@piloubazin - could you make the file publicly accessible? Or put it in a github gist?

I made the link open, I hope that works for you?

Yes, I was able to access it

completed :)

:partying_face:
Thanks!


Bug: Require cycles are allowed, but can  ....

Description
I use this library in my react-native project.
After upgrading to 4.0.2 I get these warning.
 WARN  Require cycle: node_modules/i18n-js/dist/import/helpers/index.js -> node_modules/i18n-js/dist/import/helpers/numberToHumanSize.js -> node_modules/i18n-js/dist/import/helpers/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules/i18n-js/dist/import/helpers/index.js -> node_modules/i18n-js/dist/import/helpers/pluralize.js -> node_modules/i18n-js/dist/import/helpers/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules/i18n-js/dist/import/helpers/index.js -> node_modules/i18n-js/dist/import/helpers/roundNumber.js -> node_modules/i18n-js/dist/import/helpers/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules/i18n-js/dist/import/helpers/index.js -> node_modules/i18n-js/dist/import/helpers/timeAgoInWords.js -> node_modules/i18n-js/dist/import/helpers/index.js

How to reproduce
install version 4.0.2 and use it this way:
import * as Localization from "expo-localization"
import { I18n } from "i18n-js"
import en from "./en_us.json"
import es from "./es_mx.json"
import fr from "./fr_ca.json"

export const i18n = new I18n({ en, es, fr }, {
  enableFallback: true,
  defaultLocale: Localization.locale || "en"
});

export const switchLocale = (code: string) => {
  i18n.locale = code
}

Hi, @lvlrSajjad. Can you please upload a sample app reproducing this issue? Thanks!

Hey! I couldn't reproduce these warnings. Here's the app I tried: foo.zip
Can you please give it a try and let me know if it seems okay? The only different is that I didn't import expo-localization.

Warnings are there, you can quickly check it with metro-plugin-cyclic-dependencies-detector
warn i18n-js/dist/import/helpers/index.js
warn └── i18n-js/dist/import/helpers/timeAgoInWords.js
warn     └── i18n-js/dist/import/helpers/index.js
warn         └── i18n-js/dist/import/MissingTranslation.js

I believe this issue has been fixed by https://github.com/fnando/i18n/pull/35.
Can you please try the latest version and see if fixes it? I'll close this issue for now.


1.2.0 was released without the v* prefix

Without that bots like Dependabot can't infer that this is a new version.

Thanks for catching that @alejandrohdezma. I released a bit too fast. It's now fixed.


Update configmap.yaml

I was confused with this configmaps, because if I deploy and check at path: localhost:9090/trickster/config to see the configure at runtime, it will be load with
[origins]
  [origins.default]
    type = "prometheus"
    scheme = "http"
    host = "prometheus:9090"

and
[caches]
  [caches.default]
    type = "memory"

So, let me check at source code, it must be
[origins]
  [origins.default]
    origin_type = "prometheus"
    scheme = "http"
    origin_url = "prometheus:9090"

and
[caches]
  [caches.default]
    cache_type = "memory"

Refer: https://github.com/Comcast/trickster/blob/next/internal/config/config.go#L103
But, i changed some configure at helm chart on this PR, it's work
What wrong with me?

@hieultan the type fields are part of previous Trickster releases. They are changed to cache_type and origin_type for clarity, which will be in the next release (1.0 Beta 10) which is forthcoming.

@jranson I use image tricksterio/trickster:1.0-beta and it works with type fields ;) Hopefully helm chart and release 1.0 Beta 10 is compatible

Ah, yes, the next branch is currently just ahead of the latest release. You can get the helm chart for the latest beta @ https://github.com/Comcast/trickster/tree/v1.09-beta9/deploy/helm However, it is not as comprehensive as the version in next. So I think if changing those two fields works for you locally, that is great and hope you'll try out the next beta where they'll need to be changed back. Thanks for using and contributing to Trickster!


Installation

Sorry for disturbing you for the second time about the similar question.
It just took me 2 days to prepare my system to use your package. Though it still not ready.
It seems the installation of undetected-chromedriver could be painful. It requires 2 files and if you haven't worked with it earlier you should somehow guess their names, versions and compability of versions. undetected-chromedriver doesn't have a good installation manual.
My current one
sudo apt-get install libc-dev

wget https://chromedriver.storage.googleapis.com/113.0.5672.63/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/
sudo chmod +x /usr/bin/chromedriver

wget dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_113.0.5672.92-1_amd64.deb
sudo dpkg -i google-chrome-stable_113.0.5672.92-1_amd64.deb

Though I'm not still sure it will work with you package. At the moment it worked for running undetected-chromedriver but I used ChromeOptions and your ChatGPT_Client doesn't allow me to do the same. I'm confused with system environments and PATH. Which of chrome files I should to specify and where.
So I ask you to consider adding my commands in case they are right and describe what environment variables and PATH additions your package expects.

Perhaps the issue is present due to version information is hardcoded in the initialization. Try updating the version argument 112 to 113.
        self.browser = uc.Chrome(
            # driver_executable_path='/usr/bin/google-chrome',
            options=options,
            headless=headless,
            version_main=112
        )

In the meantime, I will work on a solution to solve this issue.

actually, I don't understand how to use it. I mean if I create a ChatGPT_client object in order to assign a browser later, I face with the line
self.browser.get('https://chat.openai.com/auth/login?next=/chat')

that will throw an error.
At the moment, I'll try to rewrite the whole constuctor

Do you still have any problems with this? I updated the repo with 6cde457cf3dce8b3e654e176240667dbb506a90f, perhaps this can help you.

I used a workaround. Based on your constructor I created my own and added everything I needed


Feature detection seems to fail for the @stylable decorator

See failing tests in https://github.com/wix/stylable-components/tree/tobich/stylable-contract-detect
<EMAIL_ADDRESS>

Took a look at this, seems to do with how things are wrapped with Stylable.
Test case:
import {isDecorated, properties, stylable} from "wix-react-tools";

// ...

it('detects the "stylable" feature decorator', () => {
    expect(isDecorated(Component, stylable)).to.equal(true);
});

Now, the imported stylable itself is not itself a wrapper. You give it a stylesheet, and get back the wrapper to use (stylable(stylesheet)). What this means is that the isDecorated util does not find the appropriate wrapper and returns false.
The problem here is that I cannot mock the wrapper, even by importing and using the same stylesheet as the component I'm testing - the wrappers are still two separate instances (despite being identical in functionality).
import {isDecorated, properties, stylable} from "wix-react-tools";
import styles from "../src/components/my-comp.st.css";
// ...

it('detects the "stylable" feature decorator', () => {
    expect(isDecorated(Component, stylable(styles))).to.equal(true); // FAILS!
});

We'll need to figure out a different way to detect wrappers that receive arguments.

I think we can (and should) support this use case. @tomrav, It's part of our "expand decorateReactComponent to work with feature factories" internal task.


attempt to print stack trace addresses

I'm just experimenting, but I'm at
https://www.unix.com/man-page/osx/3/backtrace/
and
https://searchfox.org/mozilla-central/source/widget/cocoa/nsCocoaDebugUtils.h#11
and
https://github.com/rust-lang/rust/issues/24346

when run with our friend:
const std = @import("std");

pub fn main() !void {
    const allocator = std.debug.global_allocator;

    const args = try std.os.argsAlloc(allocator);
    defer std.os.argsFree(allocator, args);

    const count = try parseFile(allocator, args[1]);

    if (count < 10) return error.NotEnoughItems;
}

fn parseFile(allocator: &std.mem.Allocator, file_path: []const u8) !usize {
    const contents = std.io.readFileAlloc(allocator, file_path) catch return error.UnableToReadFile;
    defer allocator.free(contents);

    return contents.len;
}

looks something like
Unable to dump stack trace: Unable to open debug info: TodoSupportMachoDebugInfo
0   test                                0x0000000102f6b983 openSelfDebugInfo + 147
1   test                                0x0000000102f66ca6 getSelfDebugInfo + 150
2   test                                0x0000000102f65759 dumpCurrentStackTrace + 169
3   test                                0x0000000102f64f04 panic.6 + 212
4   test                                0x0000000102f64d3b panic + 91
5   test                                0x0000000102f650ce main.0 + 446
6   test                                0x0000000102f64ccd dsfji + 13
7   test                                0x0000000102f784aa main.0.47 + 330
8   test                                0x0000000102f78239 callMain + 73
9   test                                0x0000000102f781b9 callMainWithArgs + 361
10  test                                0x0000000102f78044 main + 36
11  libdyld.dylib                       0x00007fff7af96115 start + 1

also re: https://github.com/zig-lang/zig/issues/434#issue-253180769 see: https://www.unix.com/man-page/osx/3/dladdr/

We don't want to introduce a dependency on .h files and libc in the standard library.
What we can do is read the source for the code you're calling into and port it into zig

Yes, I know that about the libc dep, hence the "just experimenting"
But, is this headed in the right direction?

I think that the existing dwarf code can actually support macos, but it incorrectly looks for it in its own binary, whereas in reality you have to find the object files and look there. I'd start with trying to figure out, perhaps by reading the implementation of the code you just called into, how to find the actual dwarf info

:heart: SO

Yes I think these are the keys to doing it. cc @bnoordhuis are you still working on this?

Yes, but using the symtab segment from the image, not external dSYM data.  It's less precise but at least it's always available.  I'll try to PR it in the next few days.


Update main.css

100% page using

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


How i can use admin.widgets.FilteredSelectMultiple with queryset? And can i?

Hi!
I have a model whose records I would like to hide customizable. For example, by category, it does not matter.
Can I configure this using admin.widgets.FilteredSelectMultiple? If so, how?
Thanks!

I don't think is in the scope of this library.


Update search-blob-storage-integration.md

Fix minor language issues

@pallabiwrites : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off  Thanks for the edits!

#sign-off #please-sign-off


Make the creation of an ansible.cfg with inventory set non-optional

So that -i hosts does not need to be invoked in every Ansible tutorial.
I did leave -i hosts in a few tutorials because they either precede this training (ansible) or are more self-contained (monitoring, jenkins).

Awesome! So much less typing :raised_hands:


White text on white background in some places

Hello,
First of all, thank you! I'm using version v1.0.6.
I noticed that in the following places I see white font on white background:
imports:

type definitions:

Otherwise, everything looks amazing to me.
Thanks,
Alex

Hey @sluramod, thanks for this! Really appreciate you finding it. I have gone ahead and fixed this.. it seemed to be the editor.document_highlight.write_background theme variable.
Submitted the update for version 1.0.7, should be out by tomorrow.
Best,
Evan


Proposal for newly awesome Color Match Game

Dear Project Maintainer,
I hope this message finds you well. I am writing to express my sincere interest in contributing to your project. The work you have accomplished so far has truly impressed me, and I would be honored to be a part of its success.
Here's a simple game called "Color Match" that you can build using ReactJS and CSS only. The objective of the game is to match the color of the target box with the color of one of the selectable boxes.
Please assign me this issue to work under gssoc'23.
Best regards,
Urooz

Hi @urz-ahmed , please let us know the detailed plan, dummy UI/Video ? make sure you are using react js.


Erroneous code in "Rust and Neovim - A Thorough Guide and Walkthrough"

I'll keep this concise, but I strongly encourage you to add a comment function on the website, or some way to directly contact you. It's unavoidable that you'll let errors like this through, otherwise.
I fell for this error; so have several other, but they didn't find the reason, as can be seen here neovim/neovim#20465. Again, it's important to catch errors because your audience is largely beginners.
The faulty code is here:
local rt = {
    server = {
        settings = {
            on_attach = function(_, bufnr)
                -- Hover actions
                vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
                -- Code action groups
                vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
                require 'illuminate'.on_attach(client)
            end,
            ["rust-analyzer"] = {
                checkOnSave = {
                    command = "clippy"
                },
            },
        }
    },
}
require('rust-tools').setup(rt)

As you can see, rt references itself. Also, on_attach goes in the server block according to official documentation. It appears you somehow derived this nonsense from an example in the official doc:
local rt = require("rust-tools")

    rt.setup({
      server = {
        on_attach = function(_, bufnr)
          -- Hover actions
          vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
          -- Code action groups
          vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
        end,
      },
    })

rt here refers to rust-tools, which makes much more sense.
I won't open a PR, since I'm not sure if this site is compiled html instead (and I don't want to investigate), but I'll adjust the code so you can paste it straight in. Here you go:
local rt = require("rust-tools")

rt.setup {
	server = {
		on_attach = function(_, bufnr)
			-- Hover actions
			vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
			-- Code action groups
			vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
		end,
		["rust-analyzer"] = {
			checkOnSave = {
				command = "clippy"
			},
		},
	},
}

Heads up, I use tabs, so run it through your formatter to keep your code consistent.

And, for anyone who may be here, here is my own personal config, using rust-tool.nvim's codelldb integration through nvim-DAP :
local install_root_dir = vim.fn.stdpath "data" .. "/mason"
local extension_path = install_root_dir .. "/packages/codelldb/extension/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.dylib" -- not `.so`!

local rt = require("rust-tools")

rt.setup {
	server = {
		on_attach = function(_, bufnr)
			-- Hover actions
			vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
			-- Code action groups
			vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
		end,
		["rust-analyzer"] = {
			checkOnSave = {
				command = "clippy"
			},
		},
	},
	dap = {
		adapter = require('rust-tools.dap').get_codelldb_adapter(codelldb_path, liblldb_path)
	},
}

Hi @Tokarak, thanks for letting me know. Will update the guide.
Best.
Rodrigo

I may have been impolite in sections. I'm sorry; I'm just in a bit of a funny mood.

I may have been impolite in sections. I'm sorry; I'm just in a bit of a funny mood.

No prob! Thanks for raising the issue. Best.

Guide has been updated with latest example code provided by the plugin page.


extracting from html string fails

The method works smoothly when calling a url. The page mentioned it was also possible to extract from html string. So I used http package and then "result.content" contained the html string. Then next tried extractData(result.content) , however this gives undefined. Is it not possible to extract metadata from html strings?

Sincerely sorry for the hasty action, on client I must pass a callback. It works awesome now.

no problem :)


FCM java conflic with Log4j

when i used your lib. My project cant writting log. I use Log4j-1.2.15.jar  for writting log.
Excuse me, I'm using google transale.

I think the problem here is, that a dependency of FcmJava has its own log4j, which might cause problems.
There is a great project, that shows how to do logging and exclude the log4j dependencies coming with FcmJava:

https://github.com/ralscha/blog/tree/master/push/server

Take a look at the pom file to see how to exclude the problematic dependencies:

https://github.com/ralscha/blog/blob/master/push/server/pom.xml#L59


Generate final sample of OJO

Description
This PR generates a final sample of job ads by sampling job ads per itl2 code per soc4 code.
Please include a summary of the changes.
Fixes # (issue)
#95
Instructions for Reviewer
In order to test the code in this PR you need to ...
To verify that the get_soc_codes flow works, run:
python dap_prinz_green_jobs/pipeline/ojo_application/ojo_sample/get_soc_codes.py run

You can use getters to test the size of the sample here:
from dap_prinz_green_jobs.getters.ojo_getters import(
    get_large_ojo_sample,
    get_large_ojo_job_title_sample,
    get_large_ojo_location_sample,
    get_large_ojo_salaries_sample,
    get_large_ojo_skills_sample
)

ojo_data = get_large_ojo_sample()
ojo_job_titles = get_large_ojo_job_title_sample()
ojo_locations = get_large_ojo_location_sample()
ojo_salaries = get_large_ojo_salaries_sample()
ojo_skills = get_large_ojo_skills_sample()

This should be our final large sample.
Please pay special attention to ...
Checklist:

[x] I have refactored my code out from notebooks/
[x] I have checked the code runs
[x] I have tested the code
[ ] I have run pre-commit and addressed any issues not automatically fixed
[ ] I have merged any new changes from dev
[ ] I have documented the code

[ ] Major functions have docstrings
[ ] Appropriate information has been added to READMEs

[ ] I have explained this PR above
[ ] I have requested a code review

FYI I did a bit of analysis in terms of deduplication and the over/random sampling approaches (in sampling_analysis.ipynb):
For deduplication:

there are 3618729 unique, deduplicated ids
there are 7883041 unique ids from the full OJO sample job titles dataset
45.91% of job ads are duplicates

On sampling:

all ITL 2/3 codes are represented in both the over and randomly sampled job ads (with the exception of 1 itl3 code in the oversampled dataset)
For the oversampled dataset...
2.0% of itl 2 codes have less than 100 job ads
56.99999999999999% of itl 3 codes have less than 50 job ads
71.0% of itl 3 codes have less than 100 job ads

For the randomly sampled dataset...

0.0% of itl 2 codes have less than 100 job ads
2.0% of itl 3 codes have less than 50 job ads
7.000000000000001% of itl 3 codes have less than 100 job ads

I also looked into % of job ads per soc4 code per itl 2 regions + top regions more generally (see graph attached).

A few thoughts...

the weighted sample is quite skewed at the itl3 level i.e. most regions have fewer than 100 job ads and half have fewer than 50 job ads.
the deduplication method does get rid of almost half of the job adverts: I wonder if its worth re-running the script as I know jack's been collecting job ads? I don't think that will change the results drastically but could be good to be updated
we would still need to oversample in a few regions if we move forward with a totally random sample

@lizgzil this is ready for review now! I'm just randomly sampling now


ZLEMAIndicator StackOverflowError

First off I just want to thank you for creating such an awesome library!
I ran into an issue when using the ZLEMAIndicator, or more generally any class extending RecursiveCachedIndicator and using calculate logic like if (index == 0) ...
If the Indicator is used with a TimeSeries that has maximum tick count set and has more ticks than said limit, the first call to getValue(int) will result in a stack overflow.
Some sample test code to demonstrate the issue:
@Test
public void removingTimeSeriesTicksDoesNotCauseStackOverflow()
{
    TimeSeries timeSeries = createTimeSeries(150); // does what you think it does
    timeSeries.setMaximumTickCount(144);
    assertEquals(144, timeSeries.getTickCount());

    ClosePriceIndicator closePrices = new ClosePriceIndicator(timeSeries);
    ZLEMAIndicator zlema = new ZLEMAIndicator(closePrices, 1);

    try
    {
        assertDecimalEquals(zlema.getValue(143), "143");
    }
    catch (Throwable ex)
    {
        fail(ex.getMessage());
    }

}

The bug can be resolved with something like:
@Override
protected Decimal calculate(int index) {
    if (index + 1 < timeFrame) {
        // Starting point of the ZLEMA
        return new SMAIndicator(indicator, timeFrame).getValue(index);
    }
    if (index == 0 || index == getTimeSeries().getRemovedTicksCount()) {
        // If the timeframe is bigger than the indicator's value count
        return indicator.getValue(0);
    }
    Decimal zlemaPrev = getValue(index - 1);
    return k.multipliedBy(Decimal.TWO.multipliedBy(indicator.getValue(index)).minus(indicator.getValue(index-lag)))
            .plus(Decimal.ONE.minus(k).multipliedBy(zlemaPrev));
}

Generally this affects any Indicator that performs comparisons with the index. it might be good to make sure getTimeSeries() doesn't return null in the actual implementation but hopefully this example demonstrates what I'm talking about.

This might be a nice one. But how can you set a maximum tick count and have more ticks than said limit? A call to void setMaximumTickCount(int maximumTickCount) calls void removeExceedingTicks(). Did you debug this part to check the behavior?

I guess the complexity is due to the fact while Ticks are removed from the TimeSeries, the CachedIndicator's cached value list is not touched and we rely on the beginIndex, endIndex, and removedTickCount to square up the two.
On CachedIndicator.java Line: 87, result = calculate(removedTicksCount);  looks like it's causes an infinite recursion. Should it be result = calculate(0);?

I've gone ahead and submitted a pull request to fix this.

According to me it should not be result = calculate(0);. In this case you did not find anything in the cached value list, so you want to calculate the first value of this list (It is highligthed by the next line: results.set(0, result);). You do not want to calculate the value for the very first tick, but for the first not-removed tick.
Do you still have the issue? Did you manage to go further in debugging?

I've debugged to the point where I understand the issue, but I haven't given it enough thought to pose a good solution.
In the case of ZLEMAIndicator, I've simplified the test to demonstrate the issue:
@Test
public void gettingRemovedValueFromLimitedTimeSeriesDoesNotCauseStackOverFlow() {
    TimeSeries series = new MockTimeSeries(1,2);
    series.setMaximumTickCount(1);

    ZLEMAIndicator zlema = new ZLEMAIndicator(new ClosePriceIndicator(series), 1);

    try {
        assertEquals(Decimal.TWO, zlema.getValue(0));
    } catch (StackOverflowError ex) {
        fail(ex.getMessage());
    }
}

The call to zlema.getValue(0) makes it down to the CachedIndicator's getValue(int) function where, since 0 is less than the removed tick count (1), it invokes result = calculate(removedTicksCount);with removedTickCount == 1.

The calculate function in ZLEMAIndicator calls Decimal zlemaPrev = getValue(index - 1); which is just zlema.getValue(0), repeating step 1, aka infinite recursion.

This occurs anytime getValue is called with a parameter value less than the removed tick count. The base case check in ZLEMAIndicator's (and other classed extending RecursiveCachedIndicator) calculate function if (index == 0) doesn't account for the fact that requests for values on already removed ticks is akin to asking for negative index values.
One possible solution is adding to the base case check like so: if (index == 0 || index <= indicator.getTimeSeries().getRemovedTicksCount())
The downside is this check would need to be done in any Indicator extending RecursiveCachedIndicator and while the underlying cached indicator's time series' removed tick count is accessible, it almost feels like the ZLEMAIndicator shouldn't have to know about that.
There might be a more elegant, DRY-er solution, but I haven't thought that far yet.

OK. Thank you for pointing this out. Now I am sure it is a bug. However for now I don't know how to cleanly address it.

Changing CachedIndicator.java Line: 87 to: result = calculate(0);  instead of result = calculate(removedTicksCount); should work:
private TimeSeries createTimeSeries(int tickCount)
    {
        List<Tick> ticks = new ArrayList<>();
        for (int i = 0; i < tickCount; i++)
        {
            Tick tick = new MockTick(ZonedDateTime.now(), Duration.ofDays(1), i);
            ticks.add(tick);
        }
        return new MockTimeSeries(ticks);
    }

    @Test
    public void removingTimeSeriesTicksDoesNotCauseStackOverflow()
    {
        TimeSeries timeSeries = createTimeSeries(150);
        timeSeries.setMaximumTickCount(144);
        assertEquals(144, timeSeries.getTickCount());

        ClosePriceIndicator closePrices = new ClosePriceIndicator(timeSeries);
        ZLEMAIndicator zlema = new ZLEMAIndicator(closePrices, 1);

        try
        {
            assertDecimalEquals(zlema.getValue(0), "6");
            assertDecimalEquals(zlema.getValue(143), "143");
            assertDecimalEquals(zlema.getValue(149), "149");
        }
        catch (Throwable ex)
        {
            fail(ex.getMessage());
        }
    }


[question] How to find max/min of float32 vector of arbitrary size?

I only see functions where size is a template in simdpp/core/f_max.h. How do I compute when size is arbitrary?

The size of a single vector is always a template argument. It corresponds one or more hardware registers which of course have fixed width. The expectation is that a highest supported hardware register size is selected during compile time and then corresponding types are used to perform computations. If you want to perform max or min operation of arbitrary array, you should do something like this:
void compute_max(float* p1, float* p2, float* pmax, unsigned size)
{
    // assuming size % N == 0 or that sufficient amount of extra memory is allocated
    const unsigned N = SIMDPP_FAST_FLOAT32_SIZE;
    for (unsigned i = 0; i < size; i += N) {
        float32<N> a1 = load(p1);
        float32<N> a2 = load(p2);
        float32<N> res = max(a1, a2);
        store(pmax, res);

        p1 += N;
        p2 += N;
        pmax += N;
    }
}

This works, thanks!


Move explorer-client and rust codecov jobs to self-hosted runners

This change does the following:

Enables both the code coverage and the explorer builds to run on our self-hosted github runners.
Disables sending a cache of the yarn/npm build contents to the github server (600MB a build, both in and out).
Updated build runner to have some missing dependencies that previously failed when trying to self-host-build the explorer build.

Now that we have more capacity, I'm looking to move more builds to the self-hosted runners so they clear the queue faster.

@Jibz1 @bmwill - I'm looking to add more builds to the build runner pool.  This change adds code coverage and explorer builds to the list that our pool of builders will support.  It also turns of caching of node assets -- the upload of the cache was way too big and doesn't take much time to build locally on the self-hosted builders.

I want to be careful about moving too many jobs to our self-hosted runners (since we have fewer of them than the github hosted ones) so while the codecov job makes sense I'm not sure if the explorer ci needs to run on the self-hosted machines. Unless there's some other reason you're looking to move it


Config passed to CLI via arguments have to be after input file name

There seems to be a bug where the arguments have to be passed after the input file name as otherwise the shins.js script tries to use the first config argument as the input file name. This works differently to widdershins where the arguments can be passed in before and after the input file name.

Yes, the two packages use different options parsers (partly because I was fed up with the number of breaking changes in yargs which cause greenkeeper to raise pull requests).
In shins the options are untyped so always swallow a value to their right. This can be avoided by using -- between the options and the input filename.

Please continue the discussion over on slant if still an issue.


app UI: World token menu has no option to close the menu

The world token menu has no option to close the menu. Though we can open the menu by pressing
"Z" but we are unable to close it using "Z". Also there is no bar like there is one in character tab on which we can click and close the menu.
https://user-images.githubusercontent.com/35926530/154808904-a0398d73-196c-430c-a9e9-e17ccad6eb73.mp4

Fixed


Operation on ARMv7

Well, it seems that it works on arm right up until one tries to use the io portion of the library.  segfaults when dispatching the completion handler of dispatch_io_create().  If one turns the optimization in the compilation off (to debug it), well it still doesn't work....
(gdb) run
Starting program: /home/nathaniel/Projects/dispatch/dispatch_gps
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb6d43ba0 (LWP 2908)]
[New Thread 0xb5d43ba0 (LWP 2910)]
[New Thread 0xb5543ba0 (LWP 2911)]
[New Thread 0xb6543ba0 (LWP 2909)]
Hello, from a block in dispatch
[New Thread 0xb4d43ba0 (LWP 2912)]
*** glibc detected *** /home/nathaniel/Projects/dispatch/dispatch_gps: munmap_chunk(): invalid pointer: 0x00012068 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb4d43ba0 (LWP 2912)]
__libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:44
44      ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S: No such file or directory.
(gdb) bt
#0  __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:44
#1  0xb6db1f8a in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#2  0xb6db4428 in __GI_abort () at abort.c:92
#3  0xb6dd92f6 in __libc_message (do_abort=2, fmt=0xb6e595d8 "*** glibc detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#4  0xb6ddffbe in malloc_printerr (action=, str=0xb6e59604 "munmap_chunk(): invalid pointer",
ptr=) at malloc.c:6312
#5  0xb6fb2204 in _os_object_dealloc (obj=0x12068) at /home/nathaniel/build/libdispatch/src/init.c:541
#6  0xb6fb30ac in _dispatch_dealloc (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:180
#7  0xb6fb3058 in _dispatch_dispose (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:210
#8  0xb6fb2298 in _os_object_dispose (obj=0x12068) at /home/nathaniel/build/libdispatch/src/init.c:557
#9  0xb6fb2a10 in _os_object_release_internal (obj=0x12068) at /home/nathaniel/build/libdispatch/src/object.c:69
#10 0xb6fb2f04 in _dispatch_release (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:170
#11 0xb6fb8038 in _dispatch_queue_invoke (dq=0x12068) at /home/nathaniel/build/libdispatch/src/queue.c:2134
#12 0xb6fbaeac in _dispatch_continuation_pop (dou=..., dou=...) at /home/nathaniel/build/libdispatch/src/queue.c:1124
#13 _dispatch_worker_thread4 (dq=0xb6fd5240) at /home/nathaniel/build/libdispatch/src/queue.c:2417
#14 0xb6fbade8 in _dispatch_worker_thread3 (context=0xb6fd5240) at /home/nathaniel/build/libdispatch/src/queue.c:2448
#15 0xb6d8263e in ?? () from /usr/lib/libpthread_workqueue.so.0
#16 0xb6d8263e in ?? () from /usr/lib/libpthread_workqueue.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Can you post the code that causes the crash? Does this only happen on ARM or do you get the same crash with x86?
I recall running into a similar sounding crash related to the completion handler of dispatch_io_create_with_path(). Is that the call you're using? If this is the issue then I can probably backport Apple's fix from their Mavericks release to master.

On 16 Mar 2015, at 21:59, Nathaniel Lewis<EMAIL_ADDRESS>wrote:
Well, it seems that it works on arm right up until one tries to use the io portion of the library. segfaults when dispatching the completion handler of dispatch_io_create(). If one turns the optimization in the compilation off (to debug it), well it still doesn't work....
(gdb) run
Starting program: /home/nathaniel/Projects/dispatch/dispatch_gps
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb6d43ba0 (LWP 2908)]
[New Thread 0xb5d43ba0 (LWP 2910)]
[New Thread 0xb5543ba0 (LWP 2911)]
[New Thread 0xb6543ba0 (LWP 2909)]
Hello, from a block in dispatch
[New Thread 0xb4d43ba0 (LWP 2912)]
*** glibc detected *** /home/nathaniel/Projects/dispatch/dispatch_gps: munmap_chunk(): invalid pointer: 0x00012068 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb4d43ba0 (LWP 2912)]
__libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:44
44 ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S: No such file or directory.
(gdb) bt
#0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S:44
#1 0xb6db1f8a in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#2 0xb6db4428 in __GI_abort () at abort.c:92
#3 0xb6dd92f6 in __libc_message (do_abort=2, fmt=0xb6e595d8 "*** glibc detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#4 0xb6ddffbe in malloc_printerr (action=, str=0xb6e59604 "munmap_chunk(): invalid pointer",
ptr=) at malloc.c:6312
#5 0xb6fb2204 in _os_object_dealloc (obj=0x12068) at /home/nathaniel/build/libdispatch/src/init.c:541
#6 0xb6fb30ac in _dispatch_dealloc (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:180
#7 0xb6fb3058 in _dispatch_dispose (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:210
#8 0xb6fb2298 in _os_object_dispose (obj=0x12068) at /home/nathaniel/build/libdispatch/src/init.c:557
#9 0xb6fb2a10 in _os_object_release_internal (obj=0x12068) at /home/nathaniel/build/libdispatch/src/object.c:69
#10 0xb6fb2f04 in _dispatch_release (dou=...) at /home/nathaniel/build/libdispatch/src/object.c:170
#11 0xb6fb8038 in _dispatch_queue_invoke (dq=0x12068) at /home/nathaniel/build/libdispatch/src/queue.c:2134
#12 0xb6fbaeac in _dispatch_continuation_pop (dou=..., dou=...) at /home/nathaniel/build/libdispatch/src/queue.c:1124
#13 _dispatch_worker_thread4 (dq=0xb6fd5240) at /home/nathaniel/build/libdispatch/src/queue.c:2417
#14 0xb6fbade8 in _dispatch_worker_thread3 (context=0xb6fd5240) at /home/nathaniel/build/libdispatch/src/queue.c:2448
#15 0xb6d8263e in ?? () from /usr/lib/libpthread_workqueue.so.0
#16 0xb6d8263e in ?? () from /usr/lib/libpthread_workqueue.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
—
Reply to this email directly or view it on GitHub.

Sure.  I'm just using the basic call to dispatch_io_create()
https://gist.github.com/Teknoman117/be4a03faf511d46b01d8

Can you try building from the dispatch-io-fixes branch I just pushed? It contains some fixes from Apple's Mavericks release of libdispatch. I haven't had time to study them properly, but it looks like an attempt to prevent the use-after-free issue that's causing your crash.

Tried the dev branch with the patch you pushed, still segmentation faults.
Reading symbols from /home/nathaniel/Projects/dispatch/dispatch_gps...done.
(gdb) r
Starting program: /home/nathaniel/Projects/dispatch/dispatch_gps
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb6d48ba0 (LWP 2137)]
[New Thread 0xb5d48ba0 (LWP 2139)]
[New Thread 0xb5548ba0 (LWP 2140)]
[New Thread 0xb6548ba0 (LWP 2138)]
Hello, from a block in dispatch
[New Thread 0xb4d48ba0 (LWP 2141)]
[New Thread 0xb4548ba0 (LWP 2142)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6548ba0 (LWP 2138)]
dispatch_async_f (
dq=, ctxt=<error reading variable: Unhandled dwarf expression opcode 0x0>,
func=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/queue.c:1326
1326            if (dq->dq_width == 1) {
(gdb) bt
#0  dispatch_async_f (
dq=, ctxt=<error reading variable: Unhandled dwarf expression opcode 0x0>,
func=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/queue.c:1326
#1  0xb6fb8b34 in dispatch_async (dq=,
work=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/queue.c:1351
#2  0xb6fc4844 in ___dispatch_fd_entry_init_async_block_invoke_0 (.block_descriptor=)
at /home/nathaniel/build/libdispatch/src/io.c:1154
#3  0xb6fb65b8 in _dispatch_call_block_and_release (block=)
at /home/nathaniel/build/libdispatch/src/init.c:464
#4  0xb6fb65d4 in _dispatch_client_callout (ctxt=,
f=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/init.c:491
#5  0xb6fb9e88 in _dispatch_continuation_pop (dou=...) at /home/nathaniel/build/libdispatch/src/queue.c:1141
#6  _dispatch_queue_drain (dq=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/queue.c:2191
#7  0xb6fb9aa8 in _dispatch_queue_invoke (dq=) at /home/nathaniel/build/libdispatch/src/queue.c:2107
#8  0xb6fbbd44 in _dispatch_continuation_pop (dou=...) at /home/nathaniel/build/libdispatch/src/queue.c:1124
#9  _dispatch_worker_thread4 (dq=) at /home/nathaniel/build/libdispatch/src/queue.c:2417
#10 _dispatch_worker_thread3 (context=<error reading variable: Unhandled dwarf expression opcode 0x0>)
at /home/nathaniel/build/libdispatch/src/queue.c:2448
#11 0xb6d6c63e in ?? () from /usr/lib/libpthread_workqueue.so.0
#12 0xb6d6c63e in ?? () from /usr/lib/libpthread_workqueue.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
It honestly appears that for some reason the queue pointer is getting whacked somewhere.  Here's the valgrind output as well, and valgrind makes it seem that something whacky is happening in block copies...
% valgrind ./dispatch_gps                                                               Projects/dispatch kybernetes
==2159== Memcheck, a memory error detector
==2159== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2159== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2159== Command: ./dispatch_gps
==2159==
Hello, from a block in dispatch
disInstr(arm): unhandled instruction: 0xEE072FBA
cond=14(0xE) 27:20=224(0xE0) 4:4=1 3:0=10(0xA)
==2159== valgrind: Unrecognised instruction at address 0x485c118.
==2159==    at 0x485C118: _Block_copy_internal (in /usr/local/lib/libdispatch.so.0.1.1)
==2159== Your program just tried to execute an instruction that Valgrind
==2159== did not recognise.  There are two possible reasons for this.
==2159== 1. Your program has a bug and erroneously jumped to a non-code
==2159==    location.  If you are running Memcheck and you just saw a
==2159==    warning about a bad jump, it's probably your program's fault.
==2159== 2. The instruction is legitimate but Valgrind doesn't handle it,
==2159==    i.e. it's Valgrind's fault.  If you think this is the case or
==2159==    you are not sure, please let us know and we'll try to fix it.
==2159== Either way, Valgrind will now raise a SIGILL signal which will
==2159== probably kill your program.
==2159==
==2159== Process terminating with default action of signal 4 (SIGILL)
==2159==  Illegal opcode at address 0x485C118
==2159==    at 0x485C118: _Block_copy_internal (in /usr/local/lib/libdispatch.so.0.1.1)
Hello, from a block in dispatch
==2159==
==2159== HEAP SUMMARY:
==2159==     in use at exit: 2,292 bytes in 34 blocks
==2159==   total heap usage: 36 allocs, 2 frees, 2,420 bytes allocated
==2159==
==2159== LEAK SUMMARY:
==2159==    definitely lost: 0 bytes in 0 blocks
==2159==    indirectly lost: 0 bytes in 0 blocks
==2159==      possibly lost: 608 bytes in 4 blocks
==2159==    still reachable: 1,684 bytes in 30 blocks
==2159==         suppressed: 0 bytes in 0 blocks
==2159== Rerun with --leak-check=full to see details of leaked memory
==2159==
==2159== For counts of detected and suppressed errors, rerun with: -v
==2159== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 6)
[1]    2159 killed     valgrind ./dispatch_gps
%

I'm not sure if Clang's address sanitizer supports ARM, but it might be worth a shot if Valgrind isn't giving much useful output. If you haven't used ASan before, it's like a compile-time Valgrind. It's really nice.
I've pushed an update to the configure script to dispatch-io-fixes to make this work better out of the box. Can you try recompiling libdispatch with:
<path_to_src_dir>/configure --debug --enable-test-suite --with-sanitizers=address

You'll also have to add the -fsanitize=address flag to your compile/link line when building your executable.
It'd be helpful if you could run some of the test suite as well to see if this crash is limited to dispatch io or is something more general. Good ones to try are concur, starfish, io, io_net, read and timer.

I tried the latest branch.  Along with updating my compilers to clang 3.7 (considering the default debian ones were 3.0), the IO test works now.  I'm running the test suite right now.


refactor retriever file locations

Reorganize the retrievers into their own directory.
No functionality changes

Looks good! Can you re-run pre-commit?
Also, if it's not too much too difficult, would you be able to wait for this PR to go in before merging? Since you're solely moving files, I think rebasing on that PR should be straightforward, while I don't expect Git to react well to trying to make the field name change in files that were moved.

Will do but I will wait to rebase off your work to rerun.


How to simplify features?

The current feature set is too extensive. I only want to keep the "Glow" feature and remove everything else. I tried deleting the relevant cpp and h files in the code, but it didn't work. The code is too complex. Can someone give me some guidance?

why?

Just use couglow. Exactly what your looking for

funny tho glow is detected and u still wanna use it

funny tho glow is detected and u still wanna use it

Only detected if you don't use a vac bypass, cou injector has that. And I have used cou glow and all of bymynix's programs and got banned using none of them so far. So yea I suggest it.

tbh, you're better off coding your own cheat rather than stripping it off only for glow, and glow is risky,
i'd go with an external overlay made in python, very easy to make + debug and it's good for beginners


[5.1] Dispatches an event with the full query before execution from Connection

Dispatches an event with the full query to be intercepted by listeners that needs it before execution. For example to obtain the final query modified by the paginate method before execution.

I'm curious what you want to do with the query at that point?

@taylorotwell I think (IMHO) there is a problem with some methods of illuminate/database (this is not a good start for me :P).
The method toSql() that returns the sql generated by a query builder can't be applied to methods like list(), paginate(), first(), etc. because they modify the query builder right after che query execution.
In my specific case i want to have access to the "full" final query because for example I need a solution to generate an unique cache storage key to check and retrive results and store them avoiding the query execution. This is impossible to do with methods listed above without using weird tricks like getting request params or other oddities to simulate an unique key.

Based on your description of the use case, I don't see how this addition helps you. This doesn't provide any way to stop and intercept the query so you can pull results out of a cache, etc.

@taylorotwell Yes, reviewing the problem you are right this addition doesn't solve the query exectution problem but only the interception. Any Idea to stop the query ?


Cannot read property "initialize" of undefined

Hi, I've tried to implement the initialisation of the sdk with react native app but i get the error stating
"Cannot read property 'initialize' of undefined"
I've already got the app id and token from the cloud.
anything i missed out?
is there a more sequential documentation about the beacon setup?
thanks in advance

Hi, i tried several times reinstalling and linking the package based on the docs and its still not working as expected. Still showing Cannot read property "initialize" of undefined, i dropped a case on the community forum as well few days ago and no respond from the devs as well.
Kindly gives some advice at least, it seems so difficult to seek for assistance anywhere.

there is a linking mistake on my project, if anyone gone through similar error, check your MainApplication.java to make sure the RNEstimoteProximityPackage is added

there is a linking mistake on my project, if anyone gone through similar error, check your MainApplication.java to make sure the RNEstimoteProximityPackage is added

Can you show me how you did that please?

go to your RN project directory, navigate to android -> app -> src -> main -> java -> MainApplication.java. Under code block ReactPackages, make sure the package RNEstimoteProximityPackage() is added

And what should I import in there?
`package com.app;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.app.generated.BasePackageList;
import com.swmansion.reanimated.ReanimatedPackage;
import com.swmansion.rnscreens.RNScreensPackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import org.unimodules.adapters.react.ReactAdapterPackage;
import org.unimodules.adapters.react.ModuleRegistryAdapter;
import org.unimodules.adapters.react.ReactModuleRegistryProvider;
import org.unimodules.core.interfaces.Package;
import org.unimodules.core.interfaces.SingletonModule;
import expo.modules.constants.ConstantsPackage;
import expo.modules.permissions.PermissionsPackage;
import expo.modules.filesystem.FileSystemPackage;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(
new BasePackageList().getPackageList(),
Arrays.asList()
);
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new ReanimatedPackage(),
      new RNGestureHandlerPackage(),
      new RNScreensPackage(),
      new ModuleRegistryAdapter(mModuleRegistryProvider)
  );
}

@Override
protected String getJSMainModuleName() {
  return "index";
}

};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
`

import com.estimote.react.RNEstimoteProximityPackage;
under Arrays.<ReactPackage>asList:
new RNEstimoteProximityPackage()

I've tried that but still have this error: package com.estimote.react does not exist. Any idea?

try re-install the package


The preflight.log file is written even when simply asking for --help.

This is because the initial implementation is called in an init() function[1] which is always executed. Instead, we want to explicitly initialize logging functionality once we've parsed the user provided configuration.
Was previously a part of #15 and has been separated into its own issue due to descoping the rest of the work in that issue.

/kind bug
/assign komish


cannot install rai-chem

Hi,
Sadly, I can't install rai-chem...
I just wrote this issue in github/rai-chem:
"The requirement rdkit-pypi==2022.9.1, can't be resolved by pip.  Pip does not want to install rdkit 2022.9.1.  I can install this version through conda but it still does not want to go through.
I am stuck as rai-chem is needed for pocket-cfdm.
ERROR: Could not find a version that satisfies the requirement rdkit-pypi==2022.9.1 (from rai-chem) (from versions: 2022.9.2, 2022.9.3, 2022.9.4, 2022.9.5, 2023.3.1b1)
ERROR: No matching distribution found for rdkit-pypi==2022.9.1"
Is there a way around this?
Thanks,
Christian

Thank you,


change scope to healthwatch.read

@vikafed I'd like this corrective change to get published. Will you please merge. Thanks!


reported version in published docs

After a mishap publishing from another bluesky repo replaced the published ophyd docs, the ophyd docs were restored but the version number is wrong.  @danielballan suggested adding git fetch --tags before the call to make html to informa versioneer.  (Note that the checkout procedure specifically has --no-tags in its fetch.
Writing to master directly since that is the rule which triggers publishing.

Nope, still reported as 0.post1+g78aa510

Since the hklpy docs were published with correct version number by almost identical workflow, checked the command line version reported by versioneer against the reported online version (now 0.post1+g8125320):
(bluesky_2021_1) prjemian@poof ~/.../Bluesky/ophyd $ git branch
  2020-10-test
  925-signal_set_timeout
  927-default-auto_monitor
  938-CreateDirectory
  944-TypeError-enums-vs-int
  enh_use_monitor
  escape-another-set-in-progress
  gh-actions
* master
(bluesky_2021_1) prjemian@poof ~/.../Bluesky/ophyd $ python ./setup.py version
running version
keywords are unexpanded, not using
got version from VCS {'version': '1.5.4.post74+g8125320', 'full-revisionid': '81253209c0314dc98321344cafd8659311a84384', 'dirty': False, 'error': None, 'date': '2020-12-10T20:20:43-0600'}
Version: 1.5.4.post74+g8125320
 full-revisionid: 81253209c0314dc98321344cafd8659311a84384
 dirty: False
 date: 2020-12-10T20:20:43-0600

The commit hash is a match: 8125320


There are many incorrect verses in the 'quran' package. The Arabic script is wrong. Avoid using this package.

There are many incorrect verses in the 'quran' package. The Arabic script is wrong. Avoid using this package.
Here is just few examples and it's just the start

Nothing wrong.

How do u see this as "Nothing wrong". I have posted the screen shots from my app, where I used this package to get the quraan. even a blind can see the mistakes in it. How it's "nothing wrong"??????????

Yes there are many mistakes in this package. It is not useful ❌

Nothing wrong.

It is totally wrong

Nothing wrong.

There are mistakes. Either fix the issues or remove it. We are going to raise awareness against this package anyway

It's problem with the font you are using. Try to use a different font like "Amiri Quran" for example:

You could've pointed out the issue in detail. Took some time to find out the issue (بِّ - punctuation kether below shadd). Jazakallah khairan. will add documentation for font setup.


Arch Linux error building on AUR

Description

I'm trying to compile ALVR on Arch LInux and it seems to fail everytime on yay due to a missing dependency.  Here's the full trace: error: failed to get ndk as a dependency of package client v17.0.0-dev.1 (/home/[username]/.cache/yay/alvr/src/alvr/alvr/experiments/client)
Caused by:
failed to load source for dependency ndk
Caused by:
Unable to update https://github.com/zarik5/android-ndk-rs?rev=0a547b5ab2d698d80bde1b8ebb6dfe06d550baff#0a547b5a
Caused by:
object not found - no match for id (0a547b5ab2d698d80bde1b8ebb6dfe06d550baff); class=Odb (9); code=NotFound (-3)
==> ERROR: A failure occurred in prepare().
Aborting...
-> error making: alvr
General Troubleshooting

[X] I carefully followed the instructions in the README and successfully completed the setup wizard
[X] I read the ALVR Wikis here and here

Environement
Hardware
Note: for Linux, an upload to the hw-probe database is preferred: hw-probe -all -upload
CPU:  Intel i7-9850H
GPU: Quadro RTX 3000
Audio: HDA Intel PCH, HDA NVidia
Installation
ALVR Version: N/A
SteamVR Version: N/A
Install Type:

[ ] Packaged (exe, deb, rpm, etc)
[ ] Portable (zip)
[X] Source

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): Arch Linux 5.16.15-zen1-1-zen and 5.16.15-arch1-1.

Alvr-git has this patch merged 18 hours ago, so as such, I will close this issue. Thank you so much! I'll probably switch back to stable soon enough. :)


Test failure: types::HexNumber is failing on fedora arch i686

When adding sscanf as a fedora package, I had to disable this test because it failing on arch i686.
Build log:
https://kojipkgs.fedoraproject.org//work/tasks/8219/110718219/build.log
https://koji.fedoraproject.org/koji/taskinfo?taskID=110718219
Failure:
test src/types.rs - types::HexNumber (line 67) ... FAILED
test src/regex_representation.rs - regex_representation::RegexRepresentation (line 62) ... ok
failures:
---- src/types.rs - types::HexNumber (line 67) stdout ----
warning: use of deprecated struct `sscanf::HexNumber`: use "{:x}" with the desired number type instead
 --> src/types.rs:71:40
  |
7 | let output = sscanf!(input, "{} + {}", HexNumber, HexNumber).unwrap();
  |                                        ^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
warning: use of deprecated struct `sscanf::HexNumber`: use "{:x}" with the desired number type instead
 --> src/types.rs:71:51
  |
7 | let output = sscanf!(input, "{} + {}", HexNumber, HexNumber).unwrap();
  |                                                   ^^^^^^^^^
error: literal out of range for `usize`
 --> src/types.rs:73:22
  |
9 | assert_eq!(output.1, 0x123456789abcdef);
  |                      ^^^^^^^^^^^^^^^^^
  |
  = note: the literal `0x123456789abcdef` (decimal `81985529216486895`) does not fit into the type `usize` and will become `2309737967usize`
  = note: `#[deny(overflowing_literals)]` on by default

rust2rpm spec file: https://jordalgo.fedorapeople.org/review/rust-sscanf/rust-sscanf.spec

Seems like that test assumes usize == u64. I have fixed this for the current dev branch, which will eventually be released with the next version.
I don't plan on releasing a new version for this yet as it only affects the unit tests of a deprecated component. The crate itself should already be platform-independent. Unless you need this to be a separate version?

@mich101mich Thanks for the quick response! No separate version needed if this is only affecting a unit test and fixed on dev.


What happens to messages after exceptionCaught

For ChannelInboundHandler, if an exception is thrown in channelRead, do I need to manually release the message?

@kwang108 yes...


How to specify connection parameters on connection

I am trying to give specific connection parameters when connecting to a BLE peripheral, but I cannot find the related information in the documentation. Is it doable with noble?

@lijundr there is no API for this in noble currently.
However, it would be possible on Linux, my changing: https://github.com/sandeepmistry/noble/blob/master/lib/hci-socket/hci.js#L263

Please can you update status of this issue on this latest release:
<EMAIL_ADDRESS>


Stop! The archive was corrupt and has been removed! Please try installing again.

I keep getting this error, no matter what module I try to install. I am running on a windows 7 machine (64-bit).
Downloading: groovy 2.0.5
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 27.0M  100 27.0M    0     0  4733k      0  0:00:05  0:00:05 --:--:-- 5190k
Stop! The archive was corrupt and has been removed! Please try installing again.
It does seems it finished downloading, but why it is flagged as corrupt is beyond me.
Please help!

Thank you

Thank you!

I can confirm the comment written by @gordolio .
I had installed zip package, but I also found out I had another unzip in my path. Fixing that did the trick.


Version 0.9.1 failed to load on installation

Installed v 0.9.1 on Grafana version 7.2.1.  The new plugin doesn't load and throws the below error.

You'll see this error whenever you're trying to load a plugin that's using features from a more recent Grafana version. Since 0.7.0, the minimum Grafana version supported is 7.3. Could you try loading it using a more recent Grafana?


MsalInterceptor relative url fix

Codecov Report

Merging #3729 (18e0a6e) into dev (5ef570f) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Flag
Coverage Δ

*Carryforward flag

msal-angular
96.01% <100.00%> (+0.20%)
:arrow_up:

msal-browser
84.55% <ø> (ø)

Carriedforward from 5ef570f

msal-common
83.32% <ø> (ø)

Carriedforward from 5ef570f

msal-core
73.02% <ø> (ø)

Carriedforward from 5ef570f

msal-node
78.48% <ø> (ø)

Carriedforward from 5ef570f

msal-react
93.77% <ø> (ø)

Carriedforward from 5ef570f

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files
Coverage Δ

lib/msal-angular/src/msal.interceptor.ts
100.00% <100.00%> (ø)


1.7.10, 1.12.2... Crash on load

First reported over https://github.com/xJon/Hexxit-II/issues/230:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
https://mclo.gs/d7kVwP0#L71
This is using version 1.5, and has been reported by players who ran the modpack and mod before.

I have the same problem, Minecraft version 1.12.2, Mod version 1.3

serializationisbad.json
I put this file into config folder, it works

serializationisbad.json I put this file into config folder, it works

Confirmed it works for me too. Thanks Eva

It looks like Github changed their SSL certificate on the raw.githubusercontent.com domain to a new one which isn't trusted in very old Java versions (8u51 in this case).
SiB downloads its config from there if there isn't one locally in the config directory:

either serializationisbad.json
(Versions >= 1.5) or the serializationisbad-remotecache.json which gets created after a successful download from Github

I'm currently looking for another reliable static file host where I can upload the config file to, which also has a certificate that is trusted by ancient Java versions.
In the meantime, like @EvaLinn already mentioned, adding the file manually to the config directory works as a workaround.

I just published version 1.5.1 on Github with a changed URL for the remote config.
Could you please check if that resolves the issue on your end as well?

I just published version 1.5.1 on Github with a changed URL for the remote config. Could you please check if that resolves the issue on your end as well?

I don't think I can check this out. That's not me holding a server. I can change it on my side but I don't think it's gonna work

I don't think I can check this out. That's not me holding a server. I can change it on my side but I don't think it's gonna work

Updating it only on the client side should work just fine

I don't think I can check this out. That's not me holding a server. I can change it on my side but I don't think it's gonna work

Updating it only on the client side should work just fine

I deleted that config file and changed to new version and... Nope, it doesn't work

Could you send me your game log?

latest.log

Could you send me your game log?

Lol I noticed, why it says 1.3

I can't delete the file because my launcher loads it again :( Modpack in TLauncher. You should ask someone else to help XD

You should update the SerializationIsBad mod to 1.5.1. If your launcher doesn't allow you to do this, there is nothing we can do on our end. (Considering that you're using an illegal cracked version of the game, you should probably just buy the game and use another launcher)

I can't delete the file because my launcher loads it again :( Modpack in TLauncher. You should ask someone else to help XD

You should update the SerializationIsBad mod to 1.5.1. If your launcher doesn't allow you to do this, there is nothing we can do on our end. (Considering that you're using an illegal cracked version of the game, you should probably just buy the game and use another launcher)

I have license, but I don't like official Minecraft Launcher. It's much easier for me to make modpacks in TLauncher. And yeah, it doesn't allow me to update the mod

I have license, but I don't like official Minecraft Launcher. It's much easier for me to make modpacks in TLauncher. And yeah, it doesn't allow me to update the mod

Then use something like Prism Launcher. TLauncher is illegal and is known for stealing legitimate accounts.
There's also the official Modrinth and Curseforge launchers.

@dogboy21 Replacing 1.5 with 1.5.1 does not appear to work - https://mclo.gs/zthspOM

If you already have a serializationisbad.json in your config folder, try deleting that before starting the game.

@dogboy21 Resetting it appears to work 🎉

1.5.2, which replaces the old URL with the new one, is now released as well :)
Will also upload it to CF/Modrinth in a few minutes

@dogboy21 I can confirm it works :)

Alright, thank you for testing!

Hey, sorry for the dumb question, but do I need to update the mod or just delete the mod config ? Thanks!

Both

If you're currently using version 1.4 or above, setting remoteConfigUrl in the config to https://serializationisbad.dogboy.io/serializationisbad.json should be enough.
Otherwise update to 1.5.2 which already has that fix builtin.
Deleting the config file isn't neccessary with 1.5.2.

Perfect! Thanks


how can use this in mac clion?

I think that would be a question for the CLion documentation.  In any case, this project is no longer actively developed, so I would strongly recommend not using it.


Find a way to autowire datasources into servlets

It's a huge problem that the datasources are defined statically. The datasources should be managed and provided by spring boot. What we could as a first Step is to autowire the datasource and set it statically the nondynamic Code to Access.
Alternatively rewrite servlets into rest controllers.

this seems to be a huge change. Maybe later, not now.


Passenger and Heroku docs suggest cloning from git

We should suggest installing released versions.

So Passenger doc has been removed from the v3 doc redesign, and Heroku doc has been marked as "unofficial". It has another issue or 2 on top of this, do we want to keep it alive? No one in the core team uses Heroku and it makes maintaining the guide a hassle.
@xPaw, thoughts?
@dideler, @kosmita123, would you be willing to help on the Heroku doc?

I think we can replace Build The Lounge section with yarn install?

@dideler, @kosmita123, would you be willing to help on the Heroku doc?

Sorry can't help here as I've moved away from Lounge and IRC in general over a year ago.


chained .Where().Where() clauses grouping incorrect

The way GORM applies () grouping mechanisms around where clauses has changed between minor versions (I can say specifically in our case, v1.22.5 -> 1.23.8), resulting in drastically different meanings of the WHERE clauses.
Previously (v1.22.5):
gorm.Where('a=b OR c=d').Where('x=y').Find(&thing)
// the sql would be: SELECT * FROM thing WHERE (a=b OR c=d) AND (x=y)

In v1.23.8:
gorm.Where('a=b OR c=d').Where('x=y').Find(&thing)
// the sql would be: SELECT * FROM thing WHERE a=b OR c=d AND x=y

In short, changing GORM's grouping behavior in the where clauses has drastic side effects, and is absolutely a breaking change.

For clarification, we are using .Scopes() to decorate GORM w/ Where clauses, if that's at all relevant.

Is this a documented change, or was this a planned change?
Thanks in advance and let me know if more details are helpful.

I didn't find this problem in the last version, please provide a minimal reproduction.
DB.Where("name = ? or name = ?", "jinzhu", "").Where("age = 0").Find(&result)

SELECT * FROM `users` WHERE (name = 'jinzhu' or name = '') AND age = 0 AND `users`.`deleted_at` IS NULL