AttributeError: CarwingsLatestBatteryStatusResponse instance has no attribute 'state_of_charge

After merge of PR https://github.com/jdhorne/pycarwings2/pull/22  (see issue #https://github.com/jdhorne/pycarwings2/issues/13) to obtain SOC. I now get the following error when running on my 24kwh leaf. I assumed this is because my 24kwh leaf does not support SOC response?
/get-leaf-info.py
Prepare Session
Login...
get_latest_battery_status
date 01-Dec-2017 04:39
date 2017/12/01 03:40
battery_capacity2 12
battery_capacity 12
charging_status NOT_CHARGING
battery_capacity 12
battery_remaining_amount 9
charging_status NOT_CHARGING
is_charging False
is_quick_charging False
plugin_state NOT_CONNECTED
is_connected False
is_connected_to_quick_charger False
time_to_full_trickle 5:30:00
time_to_full_l2 3:00:00
time_to_full_l2_6kw 2:30:00
leaf_info.battery_percent 75.0
Traceback (most recent call last):
  File "./get-leaf-info.py", line 47, in <module>
    print "leaf_info.state_of_charge %s" % leaf_info.state_of_charge
AttributeError: CarwingsLatestBatteryStatusResponse instance has no attribute 'state_of_charge

@glynhudson I thought I covered that by testing
if "SOC" in bs:
https://github.com/jdhorne/pycarwings2/blob/master/pycarwings2/responses.py#L545
end else set it to None...
Are you sure you run both the test + module from the same version?
Or do you see a route in the code which is possible which is NOT setting the state_of_charge attribute?
With me when I do not have a SOC I get
leaf_info.state_of_charge None
Happy to add an extra if here, but I would think it is just not needed....?

Yes, just double checked I'm running the latest master branch. I've just tested again and I seem to have a new error when I run get-leaf-info.py:
pi@emonpi(rw):~/pycarwings2$ git pull
Already up-to-date.
pi@emonpi(rw):~/pycarwings2$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   exemples/config.ini

no changes added to commit (use "git add" and/or "git commit -a")
pi@emonpi(rw):~/pycarwings2$ rpi-rw^C
pi@emonpi(rw):~/pycarwings2$ cd exemples/
pi@emonpi(rw):~/pycarwings2/exemples$ ls
config.ini  control_climate.py  get-leaf-info.py  get-leaf-location.py
pi@emonpi(rw):~/pycarwings2/exemples$ ./get-leaf-info.py
Prepare Session
Login...
get_latest_battery_status
Traceback (most recent call last):
  File "./get-leaf-info.py", line 28, in <module>
    leaf_info = l.get_latest_battery_status()
  File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 372, in get_latest_battery_status
    return CarwingsLatestBatteryStatusResponse(response)
  File "/usr/local/lib/python2.7/dist-packages/pycarwings2/responses.py", line 542, in __init__
    self.battery_percent = 100 * float(self.battery_remaining_amount) / float(self.battery_capacity)
ZeroDivisionError: float division by zero
pi@emonpi(rw):~/pycarwings2/exemples$ ./get-leaf-location.py
Prepare Session
Login...
request_location
Traceback (most recent call last):
  File "./get-leaf-location.py", line 32, in <module>
    result_key = l.request_location()
AttributeError: Leaf instance has no attribute 'request_location'

Did you install pycarwings2 using the pip command? If you did it's not enough to clone/pull from git.
Try to run pip list
If pycarwings2 is there do a pip uninstall pycarwings2  and then install.

Ah ok, sorry I forgot to re-install via pip. I just did a git pull. After a re-install I get the following error related to get location:
./get-leaf-location.py
Prepare Session
Login...
request_location
ERROR:pycarwings2.pycarwings2:carwings error -5256: [MyCarFinder] API call error
Traceback (most recent call last):
  File "./get-leaf-location.py", line 32, in <module>
    result_key = l.request_location()
  File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 415, in request_location
    "UserId": self.session.gdc_user_id, # this userid is the 'gdc' userid
  File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 101, in _request_with_retry
    ret = self._request(endpoint, params)
  File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 141, in _request
    raise CarwingsError
pycarwings2.pycarwings2.CarwingsError

@glynhudson I think you should close this issue, at it was related to the soc/state_of_charge status.
You could create a new  issue for this get-leaf-location request.
But... my guess is it is not available for your model, as earlier people showed that the get location was not available to them in the official app for 2014 model too: https://github.com/jdhorne/pycarwings2/issues/15
The get-leaf-location.py works for me (2016 model), thought it takes a looooong time at first, and the script has to login a couple of times.
Waiting for response (sleep 10)
Waiting for response (sleep 10)
Waiting for response (sleep 10)
ERROR:pycarwings2.pycarwings2:carwings error; logging in and trying request again: {u'status': 401}

@rduivenvoorde the app is also painfully slow when getting location... and everything else as well.

Your totally correct, my 2014 model does not support location. I will close this issue. Thanks for your excellent support.


Mac OS sensor/support

Bug description
Cannot build using Mac OS.
To Reproduce
cargo build
Relevant Output
error[E0433]: failed to resolve: could not find `linux` in `os`
  --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:62:14
   |
62 | use std::os::linux::fs::MetadataExt;
   |              ^^^^^ could not find `linux` in `os`

error[E0599]: no method named `st_uid` found for struct `Metadata` in the current scope
   --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:562:23
    |
562 |             owner: md.st_uid(),
    |                       ^^^^^^ method not found in `Metadata`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
            `use std::os::macos::fs::MetadataExt;`

error[E0599]: no method named `st_mode` found for struct `Metadata` in the current scope
   --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:763:30
    |
763 |                     mode: md.st_mode() & libc::S_IRWXU,
    |                              ^^^^^^^ method not found in `Metadata`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
            `use std::os::macos::fs::MetadataExt;`

error[E0308]: mismatched types
   --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:182:22
    |
182 |         const READ = libc::S_IRUSR;
    |                      ^^^^^^^^^^^^^ expected `u32`, found `u16`

error[E0308]: mismatched types
   --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:183:23
    |
183 |         const WRITE = libc::S_IWUSR;
    |                       ^^^^^^^^^^^^^ expected `u32`, found `u16`

error[E0308]: mismatched types
   --> /Users/luiscruz/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.8.1/src/process/mod.rs:184:25
    |
184 |         const EXECUTE = libc::S_IXUSR;
    |                         ^^^^^^^^^^^^^ expected `u32`, found `u16`

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0308, E0433, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `procfs`

Environment

Mac OS 10.15.7
Kernel version: 19.6.0

Context
I have just realised that this project is targeting linux distributions only. That kinda makes sense from a production perspective. From a dev perspective is quite limiting. Any ideas?

Hi,
Thanks for the try. This was somehow expected. The powercaprapl sensor is based on a linux kernel module. We will need to create a new sensor for mac os I guess. Discussions about that have started in the ARM related issue (about apple m1) that may be redundant but just to mention.
I have an old macbook air somewhere so I may start digging on that topic but not before february/march. If anyone with a macbook (maybe better to start with x86 macbooks to tackle one topic at a time) is willing to give it a shot before, it would be awesome :)

Hi,
Thanks for the try. This was somehow expected. The powercaprapl sensor is based on a linux kernel module. We will need to create a new sensor for mac os I guess. Discussions about that have started in the ARM related issue (about apple m1) that may be redundant but just to mention.
I have an old macbook air somewhere so I may start digging on that topic but not before february/march. If anyone with a macbook (maybe better to start with x86 macbooks to tackle one topic at a time) is willing to give it a shot before, it would be awesome :)

I'd be happy to help but that might be a bit too much for me…
Still, it feels like it should be possible to build without having a Mac OS sensor ready. I can imagine that a Mac OS sensor will not be compatible with Linux, but it should still be possible to build it on a Linux machine.

I'd be happy to help but that might be a bit too much for me…
Still, it feels like it should be possible to build without having a Mac OS sensor ready. I can imagine that a Mac OS sensor will not be compatible with Linux, but it should still be possible to build it on a Linux machine.

Hi @luiscruz I looked into some of this myself over the holidays.
My notes are here for OS X, but the TLDR is that if we want RAPL data, we likely need to look for the output from apple's powermetrics cli command.
https://github.com/hubblo-org/scaphandre/issues/35

Hi @luiscruz I looked into some of this myself over the holidays.
My notes are here for OS X, but the TLDR is that if we want RAPL data, we likely need to look for the output from apple's powermetrics cli command.
https://github.com/hubblo-org/scaphandre/issues/35

Ah, here's what you can get out. You can access the RAPL code with a command like so:
sudo powermetrics -i 2 -n 1 -s cpu_power --format plist

this runs powermetrics, pulling out only the cpu_power info, and formats it as a dialect of XML (the --format plist) bit, taking a sample for 2 milliseconds, and doing it once.
I can't see a way to read a stream of info through :(

Ah, here's what you can get out. You can access the RAPL code with a command like so:
sudo powermetrics -i 2 -n 1 -s cpu_power --format plist

this runs powermetrics, pulling out only the cpu_power info, and formats it as a dialect of XML (the --format plist) bit, taking a sample for 2 milliseconds, and doing it once.
I can't see a way to read a stream of info through :(

FWIW I just realized I'm oftentimes using CoconutBattery, which is a macOS utility to view battery state and usage. It has a "show watt usage" thing. I'd be curious to know how it does that. It doesn't seem to be open source (hmm… should I be using it then? 😝), but the author's email is at the bottom of the landing page. (I don't know their github @, else we could have pinged them here…)

FWIW I just realized I'm oftentimes using CoconutBattery, which is a macOS utility to view battery state and usage. It has a "show watt usage" thing. I'd be curious to know how it does that. It doesn't seem to be open source (hmm… should I be using it then? 😝), but the author's email is at the bottom of the landing page. (I don't know their github @, else we could have pinged them here…)

Great to see there are userspace tools that get such metrics, this is a good sign !
Looking at your message @florimondmanca I just want to mention that battery based metrics, may be a bit different than rapl. Like building a macos sensor based on battery metrics wouldn't work on a mac mini server for instance. It's not necessary an issue, if we name the sensor appropriately and document it to indicate that this is only suitable for a laptop. (it reminds me of powertop, that gets metrics from battery related sensors if available and fallbacks to something else if not...)
@mrchrisadams it would be interessting to look at what libraries/bsd internals powermetrics calls. Maybe there we could get a stream/more suitable sort of data ?

Great to see there are userspace tools that get such metrics, this is a good sign !
Looking at your message @florimondmanca I just want to mention that battery based metrics, may be a bit different than rapl. Like building a macos sensor based on battery metrics wouldn't work on a mac mini server for instance. It's not necessary an issue, if we name the sensor appropriately and document it to indicate that this is only suitable for a laptop. (it reminds me of powertop, that gets metrics from battery related sensors if available and fallbacks to something else if not...)
@mrchrisadams it would be interessting to look at what libraries/bsd internals powermetrics calls. Maybe there we could get a stream/more suitable sort of data ?

@luiscruz yes maybe we could build. But the powercaprapl sensor being the only available right now it wouldn't be very helpful for mas users to have a binary that gets no metrics :/

@luiscruz yes maybe we could build. But the powercaprapl sensor being the only available right now it wouldn't be very helpful for mas users to have a binary that gets no metrics :/

So, on OS X there is this:
https://github.com/beltex/dshb - a nice open source CLI exposing the similar stats as coconut battery.
Under the hood, that uses this library, in Swift:
https://github.com/beltex/SystemKit
And that in turn uses an open sourced library from apple:
https://opensource.apple.com/source/PowerManagement/
And this issue here  in system kit is about where I ran out of steam when looking at it.
https://github.com/beltex/SystemKit/issues/2
I think you'd need to find someone who really understands the powermetrics code to provide pointers, and get an idea of what it's reading to get these numbers.
I don't think the powermetrics is open, and but this post here might shed some more light:
https://www.cmdsec.com/macos-performance-monitoring-collection/
The metrics are exposed, because iStat pro shows me stuff like this on my mac:

But I don't have experience working this close to the metal with OS X.

So, on OS X there is this:
https://github.com/beltex/dshb - a nice open source CLI exposing the similar stats as coconut battery.
Under the hood, that uses this library, in Swift:
https://github.com/beltex/SystemKit
And that in turn uses an open sourced library from apple:
https://opensource.apple.com/source/PowerManagement/
And this issue here  in system kit is about where I ran out of steam when looking at it.
https://github.com/beltex/SystemKit/issues/2
I think you'd need to find someone who really understands the powermetrics code to provide pointers, and get an idea of what it's reading to get these numbers.
I don't think the powermetrics is open, and but this post here might shed some more light:
https://www.cmdsec.com/macos-performance-monitoring-collection/
The metrics are exposed, because iStat pro shows me stuff like this on my mac:

But I don't have experience working this close to the metal with OS X.

That may be a good news for developing scaphandre support on the m1:

The procfs crate is designed specifically for Linux. From the brief discussion in eminence/procfs#42 it looks like an alternative approach is needed for macOS, probably using conditional compilation to bring in a separate platform specific library on macOS and Windows.

Absolutely. We need to rewrite a part of the sensors logic. I'll should start this refactoring next week as I plan to work on the windows support (#74).

Hello,
I just looked into Intel Power Gadgets which uses a kernel driver to read/write from/into MSRs.
Sadly, I do not own an Apple computer so I only tested on a VM running under qemu/KVM.
Obviously, required MSRs are not available but I have a list of the used MSRs (which are mainly the same used by the Windows version):
[244872.306699] kvm [927770]: ignored rdmsr: 0x606 data 0x0
[244872.306699] kvm [927770]: ignored rdmsr: 0x610 data 0x0
[244872.306699] kvm [927770]: ignored rdmsr: 0x611 data 0x0
[244872.306699] kvm [927770]: ignored rdmsr: 0x614 data 0x0
[244872.306710] kvm [927770]: ignored rdmsr: 0x38f data 0x0
[244872.306714] kvm [927770]: ignored rdmsr: 0x38d data 0x0
[244872.306724] kvm [927770]: ignored rdmsr: 0x38f data 0x0
However, I use to run a modified Linux kernel which implements these MSRs so it could be possible to inject (a/k/a write) values into these MSRs and make them available to Scaphandre inside the VM (I already did that for Windows VMs).
I also looked into the solution purposed by @mrchrisadams but syspower does not return any value on my Mac OS VM. I did not dig more than that.
Now I'm thinking about writing an OS X driver with the capability to read MSRs values, like the Windows driver. As the Scaphandre engine is being rewritten to support multiple OSes, the same method would be applied to read from OS X or Windows NT, right @bpetit?

Hi !
Yes @Vic063 I think we could use the same methodology in the Scaphandre codebase to plug to a dedicated MSR based driver. Even if we find a less invasive way to monitor power consumption on MacOS at some point, it may be included in a new sensor, in addition to this one anyway. So your help would be very helpful here 😁  (but we also have to release the windows driver codebase soon :P).
I also add to this topic this recent very interesting blog post : https://www.rdegges.com/2022/how-to-calculate-the-energy-consumption-of-a-mac/
It seems the author uses battery data, which is something we could have used for Linux technically, but didn't use because it didn't fit a server use case. However, on this MacOs topic, I have the feeling that most of the use cases are for laptops (if anyone has a mac mini or a mac server raise a hand ! 😂). So maybe, if getting RAPL data on macos is too time consuming, we could use the data from battery consumption as a first iteration ? WDYT ? (I don't say we should do it, but having a sensor based on those data seems interessting too, in this context, especially for MacOS and M1 CPU that are ARM CPU and don't provide RAPL for example...).

Happy to test stuff out for ya -- the approach I outlined in that article is using Apple's ioreg CLI utility which inspects hardware devices and returns information. They have a low-level API within their "battery" metrics that allows you to read the current amount of watts being pulled from a power adapter -- which is what I used to measure total consumption over time.
In my experience, this is the best way to do it if you want to get an accurate reading (I verified it was accurate using hardware monitors) for the OVERALL energy consumption of the device. The downside (I think?) for your usecase is that it returns the number of watts overall, it isn't looking at how many volts particular components are using at any given moment (CPU vs GPU etc.).

Firefox 104 introduced a new power profiler for Windows (Windows 11 or Windows 10 with an EMI) and Mac (Apple Silicon only). This provides output in watts in the profiler UI, but the internals are measuring in picowatt-hour. On Mac it's using the task_info API.
Discussed in https://www.green-coding.org/blog/firefox-104-energy-measurements/


Add team label on resources

towards https://github.com/giantswarm/giantswarm/issues/28871

There seems to be a problem linting the chart.


Get parsing error when using :: without version on modules-to-cache

I get and error when using this configuration. Shoukd it be wriiten differently?
      - name: PowerShell Module Cache
        uses<EMAIL_ADDRESS>        with:
          modules-to-cache: PSScriptAnalyzer::, ConvertToSARIF::
          allow-prerelease: false
          updatable: true

Gives the error

I needed to add qoutes around the string for it to work, but didn't show in the README so might be worth changing docs?

so might be worth changing docs?

I will fix this in the next PR. This point is specified but may not be in the right place :

This also :

Thanks.

Into the next PR ( consideration of module dependencies ) :

Suggest that all examples containg :: are changed to use double-qoutes to surround the string. Then the note text can be removed entirely.
I didn't read further than directly looking at the example that specfied
modules-to-cache: PSFramework,Pester::, dbatools:1.1.0

Suggest that all examples containg :: are changed to use double-qoutes to surround the string

If this syntax is identical I can indeed correct that.
It is the presence of one or two ':' at the end of a string that causes problems for the YAML parser .
By implicit convention (of the Action examples) I tested without the presence of double-quotes.

Yes, I would think without specifying any :: it will work. Not tested if colon followed by a version number is a problem, but I think colon might indicate to the parser that it is another type other then string.

Not tested if colon followed by a version number is a problem

Updating the same version of a module will not generate a new cache key, we test and disallow this syntax.


Add constraint that # of letters must equal one of the hidden_word lengths

Currently the MiniZinc script terminates as a valid board is found, however this board may contain too many blanks to fill with a hidden word.
Therefore keep optimizing until a board is found having the appropriate number of blanks

Dumb and unnecessary


Mic, Camera and Share icon always visible in develop branch

Hi - there seems to be a change in the develop branch vs. the master branch in terms of the vertical icons for mic, camera and share. These icons are always visible, even in the flimstrip view.
I feel the current implementation in master branch is cleaner. Users know where the icons are as they see it when the app launches.
Additionally, on flimstrip view, the icon don't fit nicely in the small strip at the bottom in a small laptop.
Is there a setting for this or something I can change in the code?

It was this change because we got from some of the users that feedback that they don't find the buttons and even it is problematic on mobile. If you like we can make it configurable this, until it check the commits in dev for the change..
Do you want to make it configurable? If yes please send a PR and help us, we are busy with other features actually. Thanks for your cooperation!

Hi @misi
I would like to definitely contribute. Although I'm not a full fledged developer, I can find my way through using Google to figure things out.
What files should I be looking at?

One comment :-)
I think that when now the hiding of the controls is enabled, the text "You are muted, hold down SPACE-BAR to talk" will never appear. In my opinion this is like a toast message and should appear wherever the buttons ar shown or not.

@havfo thank you for implementing this. The screen is neat again  :)

Thanks. I will test tomorrow.

Works fine!

Currently "Hidden media control" setting controls the media buttons in the Me window. It does not have any effect on the participant window as the button(s) are hidden by default. They become visible on cursor over the window.
I wonder if "Hidden media control" setting is intended to work in this fashion?

Fixed in 02b6c617c5957c2c044ddc19cedff886fd07c7e5

That is by intent, but not something that is set in stone.

I also think it is fine like this.

I feel it's little inconsistent. From a user perspective it would be nice to have a consistent hover over functionality.
I know I can control it on my install. But just my thought...


Reduce the verbosity of the solution in 400-nextjs-prisma-client-dev-practices.mdx

Hey @alecmev 👋 Thanks for the PR! We feel that being verbose can, in most cases, improve the readability of the code and help people to understand what is actually happening. For that reason im going to decline this PR.

Hi @molebox! I agree with the sentiment, but I believe an inline union might be a more familiar concept to TypeScript users than creating a new type through the extension of an existing one. And the comment that accompanies it - "add prisma to the NodeJS global type" - might make somebody think that the global type has a prisma property on it throughout the project, which isn't the case, it has an effect only in this file. I also added ? to to the property, which reflects the reality better.

Hi @molebox! I agree with the sentiment, but I believe an inline union might be a more familiar concept to TypeScript users than creating a new type through the extension of an existing one. And the comment that accompanies it - "add prisma to the NodeJS global type" - might make somebody think that the global type has a prisma property on it throughout the project, which isn't the case, it has an effect only in this file. I also added ? to to the property, which reflects the reality better.

Hey @alecmev , those are some solid reasons. Ive had a chat with our typescript dept and they agree with your reasoning. So im happy to merge this PR 🙌

I appreciate you giving consideration to my "appeal", in most projects it would just get ignored :wink:


treebank tokenizer leaves commas at the end of sentences

when trying to tokenize the following sentence:
print(nltk.word_tokenize("hi, my name can't hello,"))

the output is:
['hi', 'my', ',', 'name', 'ca', "n't", 'hello,']

which means that there is a new feature, 'hello,'
I am not too good with regex but my suggestion is in treebank.py +67
  text = re.sub(r'([:,])([^\d])', r' \1 \2', text)
+ text = re.sub(r'([:,])$', r' \1 ', text)
  text = re.sub(r'\.\.\.', r' ... ', text)

@helmanofer is it still happening with the fixes on #996 and #1000 ?


Add manual refresh of open interest

Description
When opening or modifying a position, Open Interest under MarketDetailsdoes not refresh immediately in order to reflect the recently updated position. This PR is fixing this issue.
Related issue
#498
Motivation and Context
Add a manual refresh of marketQuery after the confirmation of the order.
How Has This Been Tested?
Case 1:

Open a position
Confirm the order and Open Interest is refreshed automatically.

Case 2:

Modify the position open in Case 1
Confirm the order and Open Interest is refreshed automatically.

Screenshots (if appropriate):
N/A

@platschi I didn't reproduce the refreshing issue of PositionCard so I only fix Open Interest in this case.


Ultraleap for hand

Hi, I'm contacting you because I really like your application, I'd like to use Ultraleap for hand movements and I'd like to know if it's possible to add it.
you have a unity package here : https://developer.leapmotion.com/unity

@Sheiylanie
Thanks for proposal, but I do not have plan to support LeapMotion.
It is by design that VMagicMirror does not use devices which is specialized to body, head, or hand tracking.
Supporting iFacialMocap is because it is smartphone based solution.
Please consider to introduce other app for example Luppet, VSeeFace, etc.


Digitigrade does nothing for bare feet

SwipeStatePlayer in Java

ConnectSwing / GameClient.sendHitCharacter don't seem to be exposed enough to add a damage bonus that way. Gonna have to implement hooves like the barefeet item.

0a797ea solves this issue


How are ambiguous bases in reads (or reference) handled?

It is not uncomming to have N bases in reads.
Also sometimes in bacteria we get other IUPAC codes in the reference eg. R

How are these each handled in MapCaller?

In fact, bwt_index handles the issues. When there are N bases or other IUPAC codes in the reference, it just replaces them with random ACGT bases since the encoding scheme is optimized to use 2 bits for indexing DNA sequences.

That solves (2).
How do you handle (1) ?

If there are Ns in a read sequence, they are still aligned with the reference if the read is mapped. They are not considered as mismatches when evaluating alignment quality, however, the they will affect the alignment score. If they occurs at either ends with a block, they will be clipped from the read sequence. Do you have other suggestions to handle N bases that I missed in the MapCaller?

So they do not count for -maxmm ?
Do they count for -maxclip ?

Since Ns are normally appear at the ends of short reads, they will be identified when MapCaller checks the mapping quality at both ends and discards the sub-alignment including Ns. So, yes, they count for -maxclip.


🧠 @connormaglynn Introduction to FinOps

👀 Purpose

To ensure the entire team has dedicated time to commit to learning and developing their knowledge of FinOps

✅ Definition of Done

[x] @connormaglynn has completed Introduction to FinOps

🆙 Update

Got my certificate 🥳

👀 Remaining Work

None


Does MXNet support locally-connected layer with unshared weights?

Need I write one by myself?

You mean convolution without weight sharing? No

@piiswrong Got it.

Seems it is a simple op. You can modify convolution implementation to do
that
On Wed, Jul 20, 2016 at 18:27 Jia Zheng<EMAIL_ADDRESS>wrote:

@piiswrong https://github.com/piiswrong Got it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/2775#issuecomment-234132032, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABM13rHHkxn3EW09gjGAsoJ4IGr8z41Sks5qXssBgaJpZM4JQmLK
.

--
Sent from mobile phone


Add command required to install tool; resolves #12

This adds the following command to README.md.
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

This command will error if the package source already exists (which it should do by default). Can you change the PR to rather list this as a troubleshooting step if package install fails?

@stebet Moved to troubleshooting step.


Providing array of integers to num_hidden and molecular_num_hidden doesn't work

Looks like the parameters molecular_num_hidden and num_hidden do not except multiple values when provided through the command line. For example, command:
python p2b1_baseline_keras2.py --num_hidden 512 32
returns
p2b1_baseline: error: unrecognized arguments: 32
The command works when “‘default’: None” is deleted from parameter definition in p2b1.py.

@W4RJ4 Thanks for pointing this out! I removed default:None for both parameters.

Looks like the parameters molecular_num_hidden and num_hidden do not except multiple values when provided through the command line. For example, command:
python p2b1_baseline_keras2.py --num_hidden 512 32
returns
p2b1_baseline: error: unrecognized arguments: 32
The command works when “‘default’: None” is deleted from parameter definition in p2b1.py.

Do you know if the eval_bool parameter is working?


Sema: Fix crash when synthesizing RawRepresentable conformance with non-Equatable raw type [5.2]

The error recovery logic around derived conformances is a little bit
tricky. Make sure we don't crash if a type explicitly provides a
RawValue type witness that is not equatable, but omits the witnesses
for init(rawValue:) and the rawValue property.
Fixes rdar://problem/58127114.

@swift-ci Please test


Major update of tasks

Feedback will be welcome, but we are currently still working on this plan.

The plan below aims at reaching these high-level goals:

It introduces TaskGroupV2 collections of TaskV2s.
It fully revamps the access-control rules for tasks and task groups, going from the current owner/username matching to using database relationships.
It makes it possible to non-disruptively revoke a user's access to a task, even after the user already used that task (ref #1744).

A few parts are still partly undefined, either because they are TBD or because we'd rather postpone them to a different update. The main undefined areas are:

Task lifecycle - this is clearly postponed to a different update.
How are attributes precisely distributed into TaskV2 vs TaskGroupV2, and which new metadata we may want to include. Part of this has to be addressed here.
How is the identity of tasks or task groups defined, in two areas:
a. What kind of checks prevent/allow two independent collections of the same task package by two different users? Are they based on folder paths, on TaskGroupV2 metadata, or on something else?
b. Is the TaskV2.source still a suitable attempt towards a unique task identifier? This is relevant both for point a above and for how to make tasks portable across different fractal-server instances.
Will we able to fully drop/upgrade the current owner/username access-control logic? Or do we need to remain backwards compatible.
How will we handle v1 tasks? Ideally we'd like to not modify teir data structure and access-control rules at all; if this would introduce too much friction, then we'll have to make changes to V1 tasks as well.

Database structure
Tasks and task groups

[x] We add a new model TaskGroupV2, with its new table taskgroupv2.
[x] We include an optional foreign key taskv2.taskgroupv2_id -> this means that all tasks must belong to a group (even if the group size is one).
[ ] FUTURE RELEASE: We make the FK required
[x] We include a ORM attribute TaskGroupV2.task_list, with cascade delete (deleting a task group also deletes all its tasks).

Tasks and users or user groups

[x] Required foreign key taskgroupv2.user_id.
[x] Optional foreign key taskgroupv2.user_group_id.
[x] Test that when a UserGroup is deleted, all corresponding taskgroupv2.user_group_id values are set to None. Show that you cannot delete a UserGroup if it is linked to a TaskGroupV2, but you have to manually perform "cascade" operations and set FKs to None.

update-db-data script
This set of changes will certainly come with a corresponding fractalctl update-db-data script.

[ ] Check that the list of UserOAuth.username or UserOAuth.slurm_user has unique elements (i.e. there are no two users with the same username/slurm_user). If not, fail or handle this case.
[ ] Create trivial task groups (one per task), associated to some arbitrary user.
[ ] Actually associate existing tasks to new task groups, based on their metadata (that is, whether we want the task groups to also work as the ones created in the future would).
[ ] Link all these newly-created task groups the the All user group.
[ ] Use existing TaskV2.owner and match it to existing users, to determine which user will own each task group.
[ ] Update database-validation script

API changes and definition of access control rules
The new API for task groups will live at /api/v2/task_group/{task_group_id}/, and some existing endpoints (e.g. those in /api/v2/task/) will also change.
Who can create a task group and how?

[ ] No one can create a task group directly via the API.
[ ] Every endpoint that creates tasks (e.g. when POST-ing a single task or upon task collection) creates a task group and establishes the relationship with the new tasks.
[ ] Every endpoint that creates tasks accepts a request-body parameter that determines the usergroup to associate to the new tasks. This can be one of three options: no group, a specific group, the "All" group.
[ ] Setting taskgroupv2.user_group_id to a certain id is successful only if taskgroupv2.user_id belongs to that group.

Implementation steps

[ ] The single-task POST endpoint should create a TaskGroupV2 db entry and establish the association with the new TaskV2

[ ] user_id is the one of the user making the API request
[ ] user_group_id is the one of the All group - for the moment
[ ] TBD: user_group_id is an request-body parameter (not yet defined how to pass the argument through the API)

[ ] The same logic applies to the two (local/ssh) task-collection endpoints
[ ] The same applies to the custom task-collection endpoint
[ ] For testing, the task_factory_v2 should create a TaskGroupV2 for each task that it creates. Note that we need to add an user_id argument to task_factory_v2, to be used when creating the task group.

Who can GET an existing task group?

[ ] The user in taskgroupv2.user_id.
[ ] Any user in group taskgroupv2.user_group_id (if set).
[ ] Any superuser.
[ ] No other user (Unauthorized response).

Some details

[ ] TaskGroupV2Read has a validator that sorts the task_list attribute by TaskV2.id

Who can GET a single task?

[ ] Anyone who can GET the correspnding task group.
[ ] No other user (Unauthorized response).

How does GET /api/v2/tasks/ change?

[ ] It will return only tasks to which the current users has access, either because they are the task-group owner or because they belong to the task-group user group.
[ ] Precise format of the response is TBD. First plan is to have it flat (i.e. a list of task objects, rather than a list of nested task groups). Depending on how this fits with the webclient UI, we may even have two different endpoints with different formats (e.g. at /api/v2/task/ and /api/v2/task_group/).

Who can PATCH a TaskGroupV2 association to individual tasks (i.e. TaskGroupV2.user_id) via the API?

[ ] No one, the association between tasks and task groups is immutable.

Who can PATCH a TaskGroupV2 owner (i.e. TaskGroupV2.user_id) via the API?

[ ] No one, this operation is forbidden.

Who can PATCH a TaskGroupV2 association to a UserGroup via the API?

[ ] The user in taskgroupv2.user_id.
[ ] Any superuser.
[ ] No other user (Unauthorized response).
[ ] Note: changing taskgroupv2.user_group_id from None to a certain id is successful only if taskgroupv2.user_id belongs to that group.

Who can DELETE a TaskGroupV2 via the API?

[ ] The user in taskgroupv2.user_id.
[ ] Any superuser.
[ ] No other user (Unauthorized response).
[ ] Note: deleting a TaskGroupV2 also includes bulk deletion of all tasks in the group.
[ ] Note: This deletion cannot go through if it would break some existing DB relationship (that is, if any of the group tasks is in use in a workflow).

Who can DELETE a TaskV2 via the API?

[ ] No one, in principle, as we should not change the identity of which tasks belong to which task groups. TBD.

Who can run a Workflow which includes a given task?

[ ] Only users who could GET all the corresponding tasks.
[ ] No other user (Unauthorized response).

Admin API

[ ] Superuser will have access to all users' endpoints, and then also to some specific /admin API - TBD

Description of loss of acess
Some API operations indirectly lead to the loss of access to a given task group (and hten to one or more tasks):

The TaskGroupV2.user_group_id is changed from being set to being unset, so that only the task-group owner mantains access.
A TaskGroupV2 is associated to a UserGroup, and a user is removed by that group.

If a user looses access to a task that they never imported into a workflow, this requires no special handling.
Here we are concerned with the case where a user looses access to a task that they had already imported into a workflow. We describe a user story based on case 2 above:

User<EMAIL_ADDRESS>belongs to user group team1
Task group my_pkg_1.2.3 is associated to user group team1
When the users gets a task list, this list also includes task from my_pkg_1.2.3. In the webclient: when the user wants to add a task into a workflow, they also see my_pkg_1.2.3 tasks in the dropdown menu.
The user imports a given my_pkg_1.2.3 task into their workflow my_wf
The user possibly runs some jobs based on workflow my_wf
An admin removes the user from user group team1
When the users gets a task list, tasks from my_pkg_1.2.3 are not there any more.
If the user tries to get a given my_pkg_1.2.3 task via its ID, the API responds with some Unauthorized error.
The database WorkflowTaskV2/TaskV2 relationship still exists and is still valid.
When the user gets the information about their workflow my_wf, the API responds correctly. This means that the user can still see the task in the workflow task list, as if they had access.
When the user tries to run my_wf, the API responds with some Unauthorized error.

The crucial point here is that if a user ever imported a task, we cannot fully remove their knowledge of such task. We can prevent them from importing it again in new workflows, and we can prevent them to run an old workflow including such task. But the user should still be able to see what they did in the past.
To rephrase it: we are stating that the access-control rules should not apply to the read operation for something you already had access to in the past.

Thanks for writing up the great summary @tcompa

Will we able to fully drop/upgrade the current owner/username access-control logic? Or do we need to remain backwards compatible.

Let's list anything that would stop us doing that. I'm strongly in favor of dropping it.
High-level:

Only admins can currently delete tasks, so I'm not worried about keeping access of some users to e.g. task editing of existing tasks.
All current tasks are visible to everyone anyway

How will we handle v1 tasks? Ideally we'd like to not modify their data structure and access-control rules at all; if this would introduce too much friction, then we'll have to make changes to V1 tasks as well.

We anyway deprecate running V1 workflows. If we keep an admin way to remove the envs (could also be manually removing env folders), we don't need to maintain V1 task ownerships in >2.5.0 server releases. We can deactivate relevant endpoints if that helps.

Create task groups and make sure that each existing task belongs to one of them - TBD how to define the associations (that is, whether we want the task groups to also work as the ones created in the future would).

If they do, that could be great. The thing I want to achieve (as admin) is being able to deactivate (& reactivate) old tasks

To rephrase it: we are stating that the access-control rules should not apply to the read operation for something you already had access to in the past.

Agreed!
And interface-wise, it would be great to handle this similarly to how deactivated tasks will be handled.

b. Is the TaskV2.source still a suitable attempt towards a unique task identifier? This is relevant both for point a above and for how to make tasks portable across different fractal-server instances.

Anything collected for group ALL: Nobody can collect the same version of this task again => this wouldn't be done via source, but via task metadata
Generally moving away from source seems reasonable to me
Portability:
Can we export more structured metadata? Yes
Would allow for more structured imports (e.g. package name needs to match, version can be more flexible if needed, Python version likely shouldn't matter)
Backwards compatibility to import old workflows?
We keep source in place, but we stop relying on it. We can keep the source-based import for the moment (e.g. look for structured metadata upon import. If not available, look for source and use old import)
=> We keep the source around (in old tasks & supporting the import), but we stop using it as the default way to figure out tasks
New tasks don't need to have source anymore

To add:

[ ] Include metadata for active/non-active status of tasks, to set the stage for task/venvs lifecycle work.

All currently-open items here were moved to separate issues. Closing.


feat:Update zh_CN translation

Fix a tons of issues

Thank you very much for the contribution ^^
I'm not 100% sure I'll be doing another patch release before 1.11 comes out, so it might be a little bit before you see these end up in a release.


Feat/route as adlib actions

About the Contributor
This PR is made on behalf of BBC

Type of Contribution
This is a feature.
Current Behavior
It was only possible to change a routeSet state from the UI and from the REST API

New Behavior
It is possible to change a rouseSet state from an Ad.Lib

Testing Instructions
As the API and UI control also has been moved, the functionality should be tested from UI, API, the new Ad.lib functionality, and depending on the integration Action Triggers.

Time Frame
This is a part of BBC's contributions to Sofie.

Other Information

Status

[x] PR is ready to be reviewed.
[ ] The functionality has been tested by the author.
[ ] Relevant unit tests has been added / updated.
[ ] Relevant documentation (code comments, system documentation) has been added / updated.

Closing this PR, as it will be part of a new PR (containing route as adlib actions and routesetconfig from Blueprints)


add frida action to copy methods/classes as frida snippets

PR for #1355.
Adds Copy as frida snippet option to code area popup.

Adds correct overload signature to function snippets.
Adds arguments (with names) as function parameter.
Tracks which class definition already given to user. ( no duplicate definitions )
Inserts kinda dummy information logging to function body.
Inserts $ to inner class names so frida will be happy.

@eybisi thanks!

This PR has one major mistake: The created frida snippet uses the deobfuscated class and method names which only exist in Jadx, instead of the real class names.

@jpstotz oh, I see. Funny that class copy uses correct name.
Anyway, it is better to use ClassInfo.getRawName() to get class name used in bytecode.


Support for faster processing

I am using this driver to get the data from MySQL, apply some business logic and put it back to another MySQL[Downstream].
This process takes up some IO but memory usage is fairly less, I have use parallel threads to improve but all taking up IO and not using memory. Is there a way that we can make use of memory as a buffer?

Can you share some more details on how you are using this and how you measure the IO? Is this filesystem I/O, network I/O or something else?

It's filesystem IO, it's local VM not EBS mount.
It will connect to MySQL using this package --> read logs --> apply business logic --> Write the data to destination MySQL.
If you look at the top command output, it doesn't use the memory. Do we have any buffers to do these operations in memory.  And this package does not use much filesystem IO, can you check what's the call stack?


Introduce a "thumbnailrendered" event to simplify cleanup after thumbnail rendering (PR 12613 follow-up)

The way that the cleanup was implemented in PR #12613 has always bothered me slightly, since the isPageCached-method that I introduced there always felt quite out-of-place in the IPDFLinkService-implementations.
By introducing a new "thumbnailrendered" event, similar to the existing "pagerendered" one, we're able to move the cleanup handling into the PDFViewer-class instead.

/botio integrationtest

/botio-linux preview

Looks good!


Problem building on fresh MacOS install

this is a copy of a stackoverflow post
similar to issue #17457
This concerns firebase-auth plugin for flutter.
I have the same code running on two mac computers.
I just did a fresh install on the latter, and get a build error on FirebaseAuthPlugin.m : Incompatible block pointer
/Users/sergebesnard/Development/flutter/.pub-cache/hosted/pub.dartlang.org/
firebase_auth-0.5.9/ios/Classes/FirebaseAuthPlugin.m:69:53:
Incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')

On my MacBook, the code builds smoothly, the only difference being the beta version, which is 0.3.1 and that the android toolchain is installed (EDIT  installed in the meantime, no effect confirmed)
On the iMac (failing) :
flutter doctor -v
[✓] Flutter (Channel beta, v0.3.2, on Mac OS X 10.13.4 17E202, locale fr-BE)
    • Flutter version 0.3.2 at /Users/sergebesnard/Development/flutter
    • Framework revision 44b7e7d3f4 (3 weeks ago), 2018-04-20 01:02:44 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3, Build version 9E145
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.0

[✗] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] VS Code (version 1.23.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.12.1

[✓] Connected devices (1 available)
    • iPhone X • 780C4B10-21A6-41E0-9A05-A6175FC20FA0 • ios • iOS 11.3 (simulator)

! Doctor found issues in 2 categories.

on the macbook (working):
[✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.4 17E199, locale fr-BE)
    • Flutter version 0.3.1 at /Users/sergebesnard/flutter
    • Framework revision 12bbaba9ae (3 weeks ago), 2018-04-19 23:36:15 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/sergebesnard/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3, Build version 9E145
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 20.0.1
    • Dart plugin version 171.4424
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 23.2.2
    • Dart plugin version 173.4700

[✓] VS Code (version 1.23.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.12.0

[✓] Connected devices (1 available)
    • iPhone X • 03F5FA6E-7332-46A2-9BF8-A1CACE723CC8 • ios • iOS 11.3 (simulator)

• No issues found!

the Podfile is the same :
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  use_frameworks!
  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf Pods/.symlinks')
  system('mkdir -p Pods/.symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('Pods', '.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('Pods', '.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

The pod version is 1.5.0 in both cases.
Pubspec.yaml :
dependencies:
  flutter:
    sdk: flutter
  google_sign_in: "^3.0.2"
  firebase_analytics: "^0.3.3"
  firebase_auth: "^0.5.5"
  firebase_database: "^0.4.6"
  firebase_storage: "^0.2.6"
  cloud_firestore: "^0.6.3"

  simple_permissions: "^0.1.2"

  diff_match_patch : 0.2.1
  path_provider: "^0.4.0"
  intl: "^0.15.6"
  #timeago: 1.2.0
  #side_header_list_view: "^0.0.2"
  uuid: "^1.0.0"

  robyn_nlp:
    path: ../robyn-nlp

  async_message_queue_controller:
    path: ../AsyncMessageQueueProcessor

  oscillo_wave_painter:
    path: ../oscillo-wave-painter

  voice_recorder:
    path: ../voice_recorder

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.0

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
  - assets/logo-solo.png
  - assets/banner.png

I frankly would prefer not to test upgrading the flutter sdk on my working setup, I still need to work on that stuff...
I don't know if this is helpful, but during setup, I ran into a problem on the installation of flutter on XCODE, because XCODE was not fully setup when at the time.
flutter doctor did ask me to install the package six, and had problem because of a conflict in python@2 versions, so I force uninstalled via brew python@2 and reinstalled it, then could install via pip install six
If this is the cause, I will have to reinstall XCODE & Flutter. Hopefully not the case.
Thanks
Serge

If i know flutter too much error i will not com


Use portable builds on all platforms

Replaces #7 (closes #7)
Fixes #3
Fixes #4

CI was working fine before I transferred the repo to julia-actions, but now CI is not working. So I think the repo transfer broke something.

CI was green on this PR before the transfer, so I'm going to merge this PR, and we can figure out the CI issue later.


[WIP] Add region name parameter

Adds region name parameter.
Not tested, so don't merge yet! I think what's in the PR is all that is needed though.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Closed and reopened PR to trick travis into rebuilding. Something went wrong with init of a 2.7 env.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

I'll leave it here for a couple of hours. Travis is angry today.

Might be caused by this commit in django master:
https://github.com/django/django/commit/3cc5f01d9bd52930cec3c08d6ec7e19d0c2a6489

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Coverage increased (+0.02%) to 96.507% when pulling 7545f13fb0fe33bd16aa2fc4f3016b82cb591d18 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

@blacktorn You are right. functools.lru_cache is python 3 only.
It seem that master is now Django 2.0 that dropped support for python 2.

Coverage increased (+0.02%) to 96.507% when pulling fee6a5b9d7239d7fcfc1ef245537d997680e78af on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

@blacktorn Yep. Just coffee overdose today :D

Coverage increased (+0.02%) to 96.507% when pulling 8121c8f15450e62d38df18f59ac3bc28b4597272 on ZettaIO:region-name into 142c4ed2790910e4e0feba9025b932c98c4c891b on blacktorn:master.

Tested. Works!


Broken Pickaxe

Description:
Added Ore Pack and Broken Pickaxe to VM
Changes:
Added Ore Pack and Broken Pickaxe to VM
Other checks:

[x] I have tested all my changes thoroughly.

I would recommend this be handled in a different way. The Ore Pack from volcanic mine is an actual item in-game: https://oldschool.runescape.wiki/w/Ore_pack_(Volcanic_Mine) . This code auto gives the loot from the ore pack when purchased.
This would remove alot of functionality and user experience such as:

/lb opens openable:
/data name:Personal Open Stats
Bank log
Sac log
No functionality to the ore pack in BSO when received from a mystery box.

Having an openable function differently than 99% of other openables probably isn't the way to go.
There is already a way to easily handle openables with oldschooljs. Trying to re-invent the wheel here would just add to player confusion and frustration in my opinion.

I don't agree with this,
It adds extra unnecessary steps for the user.
We already have Ore Pack from Giant's Foundry and would have to separate them.
The Ore Pack doesn't have a CL itself, Giant's Foundry one does.
There is plenty of items that are unopenable in BSO, making extra work for a mystery box item to be openable isn't really a priority.

I don't agree with this, It adds extra unnecessary steps for the user. We already have Ore Pack from Giant's Foundry and would have to separate them. The Ore Pack doesn't have a CL itself, Giant's Foundry one does. There is plenty of items that are unopenable in BSO, making extra work for a mystery box item to be openable isn't really a priority.

Why make this one openable function differently than 99% of the other ones though?

Dragon Pickaxe broken has been added in: https://github.com/oldschoolgg/oldschoolbot/pull/5709


Add filter by resource type to version get request

Codecov Report

Merging #859 (a7d9d75) into 8.x (1551141) will increase coverage by 0.00%.
The diff coverage is 50.00%.

:exclamation: Current head a7d9d75 differs from pull request most recent head 7b6ac77. Consider uploading reports for the commit 7b6ac77 to get more accurate results

@@            Coverage Diff            @@
##                8.x     #859   +/-   ##
=========================================
  Coverage     60.60%   60.60%
- Complexity    11097    11099    +2
=========================================
  Files          1651     1651
  Lines         54342    54346    +4
  Branches       5278     5278
=========================================
+ Hits          32933    32938    +5
  Misses        19278    19278
+ Partials       2131     2130    -1

Impacted Files
Coverage Δ

...nowowl/core/rest/codesystem/VersionRestSearch.java
71.42% <33.33%> (-28.58%)
:arrow_down:

...owowl/core/rest/codesystem/VersionRestService.java
93.75% <100.00%> (+0.20%)
:arrow_up:

...onal/snowowl/snomed/core/tree/TerminologyTree.java
85.71% <0.00%> (-2.05%)
:arrow_down:

...national/index/revision/BaseRevisionBranching.java
85.06% <0.00%> (-1.30%)
:arrow_down:

.../snomed/core/ecl/SnomedEclRefinementEvaluator.java
85.90% <0.00%> (-0.27%)
:arrow_down:

...nternational/snowowl/core/events/util/Promise.java
71.42% <0.00%> (+1.78%)
:arrow_up:

...e/request/version/VersionSearchRequestBuilder.java
41.17% <0.00%> (+5.88%)
:arrow_up:

...owowl/core/context/TerminologyResourceRequest.java
77.41% <0.00%> (+6.45%)
:arrow_up:

...om/b2international/index/es/log/Slf4jAppender.java
68.42% <0.00%> (+10.52%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1551141...7b6ac77. Read the comment docs.


Makefile cleanup

Set dependencies to enable parallelism
Remove any reference to location of system installed libraries and
includes.
Use ROOT to convey top level dir to sub makes
Use WHAT to compile single component
Fixes: #5
Signed-off-by: Saikrishna Edupuganti<EMAIL_ADDRESS>

Merged to master.

retest this please

retest this please


Update AD-FS-Scenarios-for-Developers.md

Small text correction.

Thanks for fixing this typo! - Liza


Add scrape intervals to each metric?

I've heard that there was confusion over the default scrape interval being used when scraping metrics.
The default is 60s, which is set in prometheus.scrape. However, a user not familiar with flow might not know that is the default. They wouldn't necessarily know to dig down into agent documentation.
If we set:
node-exporter:
  scrapeInterval: 60s

And use that in the generated config, it would make it explicit.

Question: Is this useful, or adding config that will likely never be changed?

Hello @petewall,
would be nice to have posibility to configure scrape interval for all "prometheus.scrape" in configuration.
In my case: I have been using Grafana Cloud Pro and would like to decrease DPM. I have been scraping own app's metrics in higher resolution so I need to set lower resolution elsewhere.


Lucene config template requires unused property

Tested on RDF4J 1.0.1.
If you create a template without defining indexDir defined then you can't create a repository but the property has no effect on where indexes are stored. It appears that is now controlled by lucenedir.

I'm not entirely sure I understand. What exactly do you mean when you say "creating a template" - are you trying to define your own template-file for instantiating a lucene-based repository (presumably for use in the Console)?  What I mean is: what happens if you try, and which part of RDF4J "complains" about the missing indexdir?


Can't preload a scene in AutoLoad script when the scene's script references the AutoLoad

Godot version
4.0.alpha3
System information
Windows 10
Issue description
This appears to be a regression in 4.0, as this works in 3.4.3. Running the scene causes a ParserError crash, when I expect it to run fine.
Steps to reproduce
If you have a simple AutoLoad script like so:

Which preloads this simple scene with just one script:

And that script references the AutoLoad script:

Then running the scene causes a crash:
Parser Error: Could not preload resource file "res://Scene.tscn"
Minimal reproduction project
Working project in 3.4.3:
AutoloadBugGodot3.4.3.zip
Identical project but in 4.0.alpha3:
AutoloadBugGodot4.zip

I just came here to report this very issue in alpha 6. Glad to see it's already a known issue. Hope to see it resolved soon.

Just had the same issue in v4.0.alpha13.official [59dcddc45]  And maybe this is relevant for fixing this:
When running the project from the editor, one can just 'Continue' twice in the debugger and everything seems to work as expected. This can also be seen in the minimal reproduction project above.
In my case I can even confirm that both the reference to the preloaded scene, aswell as the usage of the autoload works afterwards.

Still present in the v4 beta, and continuing twice also proceeds past it

Using load instead of preload does work fine though (at least in 4.0-beta1).
Not sure if there's actually any practical difference between load and preload for a variable in an AutoLoad script, if the loading is done at the top (outside of any function)? Either way it gets loaded immediately, right?


Accuracy error: "Work in the area" should be "Own a business in the area"

@sanjaypoyzer is this a specific thing for Sunderland? Because you can get a business / trade permit without working in the area. Have commented on this in another issue (will link to when find).

@lizziebruce It Katie, Sunderland do no offer a business permit if you work in the PMS.
Businesses can apply for 1 permit (registration specific) at the cost of £50, If any additional permits are required then they will only be issued for a vehicle essential to the operation of a business during the operational hours of the scheme, and an operational requirement will need to be provided.
Permits will not be issued to vehicles used solely for commuting to or from work.

@GWSunderland thanks for this explanation Katie

This has been fixed for Sunderland:


Create tabs in a widget

Hi,
Can someone point me in the right direction on how to create tabs in a widget? I tried to use ui.bootstrap.tabs but can't get it working. As a new angular-dashboard-framework user I'm missing the overview to know that using ui.bootstrap.tabs is a workable way or not.
Thanks,
Albert.

+1
I have the same question, which can expand to "Is it possible to have several 'states' inside a widget? If so, how? I do not think they are, but are ui-router concepts usable within a widget?"

You can absolutely use ui.bootstrap tabs in a widget.  Here is a Plunker that demonstrates a widget with tabs.  I believe there are several options for managing the state, either by loading data in the controller and scope of the widget or through the config data storage.
What problems did you have?  Are there errors?

Hi, I'm not pretty sure about that, but I think I know what's the problem. UI Bootstrap (https://angular-ui.github.io/bootstrap/) has recently been updated, and its syntax has changed.
If you're trying to create tabs using the new syntax shown in the previous website. (uib-tabset, ui-tab). Until the dependency is not upgraded in adf, you can use the old syntax to make it work (the previous plunker example uses it).
Please let me know if it was your problem! :)


Downloader crash on using ddg history

I run this application as root. All features worked fine before the latest release.
Steps to reproduce:
type ddg history in the monitored channel
error log:
`panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0xa83cdd]
goroutine 80 [running]:
main.isLocalAdmin(0xc000139a20, 0x11)
/home/travis/gopath/src/github.com/get-got/discord-downloader-go/discord.go:283 +0x19d
main.handleCommands.func6(0xc00007a320)
/home/travis/gopath/src/github.com/get-got/discord-downloader-go/commands.go:256 +0x1c9a
github.com/Necroforger/dgrouter/exrouter.WrapHandler.func1(0xbcf4e0, 0xc00007a320)
/home/travis/gopath/pkg/mod/github.com/!necroforger/dgrouter@v0.0.0-20200517224846-e66453b957c1/exrouter/router_wrapper.go:128 +0x42
github.com/Necroforger/dgrouter/exrouter.(*Route).FindAndExecute(0xc00050e508, 0xc000f52240, 0xc0002be8f8, 0x4, 0xc00050b2c0, 0x12, 0xc000139a20, 0x0, 0x0)
/home/travis/gopath/pkg/mod/github.com/!necroforger/dgrouter@v0.0.0-20200517224846-e66453b957c1/exrouter/router_wrapper.go:114 +0x622
main.handleMessage(0xc000fc7b80, 0x0, 0x0)
/home/travis/gopath/src/github.com/get-got/discord-downloader-go/handlers.go:67 +0x104e
main.messageCreate(0xc000f52240, 0xc00050e8b0)
/home/travis/gopath/src/github.com/get-got/discord-downloader-go/handlers.go:31 +0x35
github.com/bwmarrin/discordgo.messageCreateEventHandler.Handle(0xc851f8, 0xc000f52240, 0xb6d620, 0xc00050e8b0)
/home/travis/gopath/pkg/mod/github.com/bwmarrin/discordgo@v0.22.0/eventhandlers.go:497 +0x4b
created by github.com/bwmarrin/discordgo.(*Session).handle
/home/travis/gopath/pkg/mod/github.com/bwmarrin/discordgo@v0.22.0/event.go:171 +0x111`

Try compiling the latest commit ( https://github.com/get-got/discord-downloader-go/commit/f8bcf41f4b7d1e3924107408d520fa8edcb22937 ) or tell me which platform you're on and I'll build it for you. Added nil/error checks to that function you crashed on, and logging for why it may crash if you have debugOutput enabled.

Try compiling the latest commit ( 7699029 + f8bcf41 ) or tell me which platform you're on and I'll build it for you. Added nil/error checks to that function you crashed on, and logging for why it may crash if you have debugOutput enabled.

The latest release fixed the issue. Thanks!


docs: Test (and fix) examples in README.mds

Closes #393

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
11 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.1%) to 92.448%

Files with Coverage Reduction
New Missed Lines
%

imap-codec/src/codec/encode.rs
2
91.41%

imap-codec/src/fetch.rs
9
94.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
8728

Relevant Lines:
9441

💛  - Coveralls


fix a bug of updating network policy

...

@liubog2008 great spot - thanks! How did you notice it?

Note Kubernetes currently prohibits updating of network policies


fix(config): add missing device MCOHome MH-S220

fixes #2763

Sorry, this was a bit poor as I just modified an existing device from the same manufacturer/family.


redeclaration of enumerator

I use asn1c to build 3gpp 36331-bh0. Got the c and h file.
use make -f Makefile.am.sample build the C file.and get PHICH-Config.h:25:2: error: redeclaration of enumerator ‘PHICH_Config__phich_Duration_phich_Duration’
how can i fix the error!

Please provide a minimal example.

Fixed, thank you!


remove unused import

test

 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.

recheck

Thanks, sign this then recheck

I have read the CLA Document and I hereby sign the CLA

recheck


Skip invalid files when iterating a directory.

This PR skips any file that starts with '.'. These are ether a relative link or a hidden file on *nix and should not be iterated.

@JeffM2501 I'm afraid this change could break my custom GuiFileDialog() implementation...

Just tested and it skips  the .., I prefer to let the user manage it...

Yes, that was the point, to skip the . and a .. files. There is no valid use of those entries when doing iteration. Every user would need to skip them or you'll end up iterating the entire file system.


create-react-app my-app failed -- Unexpected end of JSON input while parsing near '...22.1.0","jest-util":"'

Is this a bug report?
Yes

Did you try recovering your dependencies?

No project directory created.
Which terms did you search for in User Guide?

None.
Environment

npx: installed 1 in 2.176s
Path must be a string. Received undefined
npx: installed 67 in 4.773s
C:\Users\Martin\AppData\Roaming\npm-cache_npx\13704\node_modules\create-react-app\index.js
Environment:
OS:  Windows 7
Node:  6.9.5
Yarn:  Not Found
npm:  6.1.0
Watchman:  Not Found
Xcode:  N/A
Android Studio:  Not Found
ERROR: package.json not found!
Steps to Reproduce

npx create-react-app my-app
Expected Behavior

I expected it to create my-app directory.
Actual Behavior

D:\work\CLRVSN\projects>npx create-react-app my-app
npx: installed 1 in 2.481s
Path must be a string. Received undefined
npx: installed 67 in 6.55s
C:\Users\Martin\AppData\Roaming\npm-cache\_npx\12000\node_modules\create-react-app\index.js

Creating a new React app in D:\work\CLRVSN\projects\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

npm ERR! Unexpected end of JSON input while parsing near '...22.1.0","jest-util":"'

npm ERR!      C:\Users\Martin\AppData\Roaming\npm-cache\_logs\2018-05-29T16_12_43_855Z-debug.log

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... package.json
Deleting my-app / from D:\work\CLRVSN\projects
Done.

The end of the log file is:
2078 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...22.1.0","jest-util":"'
2078 verbose stack     at Object.parse (native)
2078 verbose stack     at parseJson (C:\Users\Martin\AppData\Roaming\npm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
2078 verbose stack     at consumeBody.call.then.buffer (C:\Users\Martin\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
2078 verbose stack     at process._tickCallback (internal/process/next_tick.js:103:7)
2079 verbose cwd D:\work\CLRVSN\projects\my-app
2080 verbose Windows_NT 6.1.7601
2081 verbose argv "D:\\open\\nodejs\\node.exe" "C:\\Users\\Martin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
2082 verbose node v6.9.5
2083 verbose npm  v6.1.0
2084 error Unexpected end of JSON input while parsing near '...22.1.0","jest-util":"'
2085 verbose exit [ 1, true ]

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

I've managed to fix this by deleting everything from C:\Users\Martin\AppData\Roaming\npm-cache


Modified readme(grammatical error), added a photo , added a song sugg…

This time I also added a song and a photo, along with that a few changes in the comments.
If something is wrong with the PR please do tell me.

Okay I'll revert them. :)
On Tue, 20 Sept 2022, 22:21 Kendall, @.***> wrote:

@.**** requested changes on this pull request.
Grammatical error is fixed perfectly.
The photo gallery is for photos related to Ludwig Ahgren's, "A Very Mogul
Christmas", I see that you've added a christmas image, but it's not related
to Ludwig Ahgren's album so request you to please delete it.
For the song suggestion, the file is so the webpage can be displayed,
actually it doesn't work if you add anything in HTML, you just have to fill
the form located at:
https://mogulchristmas.kendalldoescoding.gq/you-may-like/song-suggestion/
..
Request you to please revert the above changes.
Thanks,
KendallDoesCoding
—
Reply to this email directly, view it on GitHub
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#pullrequestreview-1114173662,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASHLXGIGIECVTSN7AEGNESTV7HTRDANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

No, lemme look into it once more.
Maybe I did a mistake, I'll correct it by tommorow as it is almost midnight
here.😅
This way I'll learn from my mistakes.
On Tue, 20 Sept 2022, 23:08 Kendall, @.***> wrote:

@.**** requested changes on this pull request.
The photo looks perfect, but you have completely deleted the
song-suggestion file now and the grammatical changes are gone.
Do you want some help?
—
Reply to this email directly, view it on GitHub
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#pullrequestreview-1114234334,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASHLXGOT3NBV3TLQQQJPAGDV7HY75ANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah, I too am from India.
If you need any help, feel free to lemme know.
On Tue, 20 Sept 2022 at 23:19, Mukul Ojha @.***> wrote:

No, lemme look into it once more.
Maybe I did a mistake, I'll correct it by tommorow as it is almost midnight
here.😅
This way I'll learn from my mistakes.
On Tue, 20 Sept 2022, 23:08 Kendall, @.***> wrote:

@.**** requested changes on this pull request.
The photo looks perfect, but you have completely deleted the
song-suggestion file now and the grammatical changes are gone.
Do you want some help?
—
Reply to this email directly, view it on GitHub
<
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#pullrequestreview-1114234334
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ASHLXGOT3NBV3TLQQQJPAGDV7HY75ANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#issuecomment-1252702660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUGJUTORBMJ2QTLHJTUWSHLV7H2LDANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because your review was requested.Message ID:
@.***>

That's nice.
If I'm stuck somewhere I'll let you know.
On Tue, 20 Sept 2022, 23:51 Kendall, @.***> wrote:

Yeah, I too am from India.
If you need any help, feel free to lemme know.
On Tue, 20 Sept 2022 at 23:19, Mukul Ojha @.***> wrote:

No, lemme look into it once more.
Maybe I did a mistake, I'll correct it by tommorow as it is almost
midnight
here.😅
This way I'll learn from my mistakes.
On Tue, 20 Sept 2022, 23:08 Kendall, @.***> wrote:

@.**** requested changes on this pull request.
The photo looks perfect, but you have completely deleted the
song-suggestion file now and the grammatical changes are gone.
Do you want some help?
—
Reply to this email directly, view it on GitHub
<

https://github.com/KendallDoesCoding/mogul-christmas/pull/326#pullrequestreview-1114234334

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ASHLXGOT3NBV3TLQQQJPAGDV7HY75ANCNFSM6AAAAAAQPXHIGI

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#issuecomment-1252702660
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AUGJUTORBMJ2QTLHJTUWSHLV7H2LDANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because your review was requested.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/KendallDoesCoding/mogul-christmas/pull/326#issuecomment-1252743074,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASHLXGJB6277IDH6BSOHEMTV7H6BFANCNFSM6AAAAAAQPXHIGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Done in #328


New additions to robots.txt file are not getting deleted by Norconex crawler

@essiembre
Hi Pascal
Norconex version: 2.9.0-SNAPSHOT
We have encountered an issue where new additions to robots.txt file are not honored by Norconex crawler. The new disallows are not being removed from the index. I am using Norconex 2.9.0.snapshot version. The initial run did honor the robots.txt file and rejected the documents that were specified in the robots.txt file.
 #inital robots.txt
  User-agent: *
  Disallow: /pdfs/holidays2015.pdf
  Disallow: /pdfs/holidays2016.pdf
  Disallow: /pdfs/holidays2017.pdf
  Disallow: /pdfs/holidays2018.pdf

Later, we added 2 more disallows to the robots.txt file -
#robots.txt
 User-agent: *
 Disallow: /pdfs/holidays2015.pdf
 Disallow: /pdfs/holidays2016.pdf
 Disallow: /pdfs/holidays2017.pdf
 Disallow: /pdfs/holidays2018.pdf
 Disallow: /pdfs/test_annual_report_2011.pdf
 Disallow: /pdfs/test_annual_report_2012.pdf

The crawler logs indicated these 2 documents are not modified and ignored them.
INFO  (CrawlerEventManager.java:67) -          DOCUMENT_FETCHED: http://edev.test.com/pdfs/test_annual_report_2011.pdf
 INFO  (CrawlerEventManager.java:67) -       CREATED_ROBOTS_META: http://edev.test.com/pdfs/test_annual_report_2011.pdf
 INFO  (CrawlerEventManager.java:67) -       REJECTED_UNMODIFIED: http://edev.test.com/pdfs/test_annual_report_2011.pdf
 INFO  (CrawlerEventManager.java:67) -          DOCUMENT_FETCHED: http://edev.test.com/pdfs/test_annual_report_2012.pdf
 INFO  (CrawlerEventManager.java:67) -       CREATED_ROBOTS_META: http://edev.test.com/pdfs/test_annual_report_2012.pdf
 INFO  (CrawlerEventManager.java:67) -       REJECTED_UNMODIFIED: http://edev.test.com/pdfs/test_annual_report_2012.pdf

#norconex configuration
<crawlers>
   <crawler id="Test Intranet Page">
     <startURLs stayOnDomain="true" stayOnPort="true" stayOnProtocol="true">
       <url>http://edev.test.com/</url>
     </startURLs>
     <maxDepth>-1</maxDepth>
     <maxDocuments>-1</maxDocuments>
     <numThreads>2</numThreads>
     <sitemapResolverFactory ignore="true" />
     <robotsTxt ignore="false" />
     <orphansStrategy>DELETE</orphansStrategy>
     <delay default="10" />
     <userAgent>gcs-norconex-crawler</userAgent>

     <urlNormalizer class="com.norconex.collector.http.url.impl.GenericURLNormalizer">
       <normalizations>
           removeFragment, lowerCaseSchemeHost, upperCaseEscapeSequence, decodeUnreservedCharacters, removeDefaultPort, encodeNonURICharacters, removeDotSegments, addDomainTrailingSlash, removeTrailingHash
       </normalizations>
     </urlNormalizer>

     <importer>
       <postParseHandlers>
         <tagger class="com.norconex.importer.handler.tagger.impl.ForceSingleValueTagger">
               <singleValue field="rawContent" action="keepFirst"/>
         </tagger>
         <tagger class="com.norconex.importer.handler.tagger.impl.CopyTagger">
           <copy fromField="collector.referenced-urls" toField="referencedurls" overwrite="false" />
         </tagger>
         <tagger class="com.norconex.importer.handler.tagger.impl.KeepOnlyTagger">
   	      <fields>title,keywords,description,document.contentType,document.reference,referencedurls,rawContent</fields>
         </tagger>
       </postParseHandlers>
     </importer>

     <committer class="com.sada.norconex.SADACommitter">
       ...
     </committer>

   </crawler>
 </crawlers>

Rejected documents are not sent for deletions.  Only documents that no longer exist, or "orphan" ones.  You could think your <orphansStrategy>DELETE</orphansStrategy> would do it, but orphans are URLs that are no longer being referenced.  In your case, those URLs are still being referenced, simply rejected (i.e., they will not be sent to your search engine).
This is related to feature request #211.  If you think it is the same request, I will mark this one as a duplicate.

Thanks for looking into this issue.
My understanding is that the HTTP collector will honor the robots.txt entries.

The crawler should always check the document against the updated robots.txt entries irrespective of their modification state and send a delete call for indexed documents. The crawler should log the event REJECTED_ROBOTS_TXT instead of REJECTED_UNMODIFIED in the logs.
I have a couple of questions:

Does the robots.txt check is performed before fetching the document for content modification?
Does the robots.txt match is done against the original URL or the normalized URL?

/
Alok

Right now URLs rejected by the robots.txt are simply not processed at all (they are ignored/skipped).  This greatly improves performance for many crawls.  Comparing every URLs against URLs previously crawled would mean querying the crawl store for every URL encountered, just in case there was a change to the robots.txt.  That is currently not offered out-of-the-box.  I will mark this as a feature request to provide the option to do so.
To answers your questions:

Does the robots.txt check is performed before fetching the document for content modification?

Yes, before. A document will not be downloaded if rejected by robots.txt (default behavior).

Does the robots.txt match is done against the original URL or the normalized URL?

I suggest you refer to the following flow diagram to get a better understanding of various task execution order: https://www.norconex.com/collectors/collector-http/flow

Thanks for your response and for marking it as a feature request.
/
Alok

With version 3.0.0 it is now possible to send deletion requests to your Committer(s) by listening to rejection events with DeleteRejectedEventListener.  Have a look at https://github.com/Norconex/collector-http/issues/211#issuecomment-927245122 for an example.


[Site Feature Request] bandcamp user page

[x ] I'm reporting a broken site support
[ x] I've verified that I'm running yt-dlp version 2021.06.09
[ x] I've checked that all provided URLs are alive and playable in a browser
[ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ x] I've searched the bugtracker for similar issues including closed ones

[debug] User config: ['-x', '--audio-format', 'mp3', '-o', 'D:/download/%(uploader)s/%(playlist)s/%(title)s.%(ext)s', '--no-mtime', '--embed-thumbnail', '-i', '--split-chapters', '--parse-metadata', 'playlist:(?s)(?P<meta_album>.+)', '--add-metadata', '--download-archive', 'dataarchive.txt']
[debug] Command-line config: ['https://steviasphere.bandcamp.com/music', '--verbose']
[debug] Loading archive file 'dataarchive.txt'

[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.06.09
[debug] Python version 3.9.5 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg N-101865-g3e16d1c8a6, ffprobe N-101865-g3e16d1c8a6
[debug] Proxy map: {}
[debug] [Bandcamp:album] Extracting URL: https://steviasphere.bandcamp.com/music
[Bandcamp:album] steviasphere: Downloading webpage
ERROR: The page doesn't contain any tracks; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "c:\users\09515\appdata\local\programs\python\python39\lib\site-packages\yt_dlp\YoutubeDL.py", line 1133, in wrapper
    return func(self, *args, **kwargs)
  File "c:\users\09515\appdata\local\programs\python\python39\lib\site-packages\yt_dlp\YoutubeDL.py", line 1154, in __extract_info
    ie_result = ie.extract(url)
  File "c:\users\09515\appdata\local\programs\python\python39\lib\site-packages\yt_dlp\extractor\common.py", line 567, in extract
    ie_result = self._real_extract(url)
  File "c:\users\09515\appdata\local\programs\python\python39\lib\site-packages\yt_dlp\extractor\bandcamp.py", line 303, in _real_extract
    raise ExtractorError('The page doesn\'t contain any tracks')
yt_dlp.utils.ExtractorError: The page doesn't contain any tracks; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.```

im downloading a bandcamp artist on a windows 10 and it says there is no albums

I don't think Artist pages were ever supported, only albums like https://steviasphere.bandcamp.com/album/reality-is-not-a-computer-simulation

then can you please make it so artists pages are supported?

the url u gave has few albums
U got an example of an atrist with 100+ albums so i can confirm if the links are hardcoded or they use api or something?

i dont think i know an artist with that many albums but i can find one with alot

I made looooong time ago a PR in youtube-dl adding support for bandcamp user urls, I've seen that @Ashish0804 made another PR but we cover different cases. Would you be interested if I made the same PR in this project?

How does it "cover different cases"? If it is an improvement over the current implementation, feel free to make a PR

The current implementation doesn't support user pages with the format:
https://adrianvonziegler.bandcamp.com
https://nightcallofficial.bandcamp.com
http://dotscale.bandcamp.com
I've created the PR, if it gets accepted I'm going to cry of joy after 3 years waiting for it to be merged


Corrected the namespace names, add examples

Corrected the namespace names to use and explained where they are used.
Listed the sequence of processing for the different sections.
Added two examples.

nice catch!!!
thanks for your contribution


repalce some of lb table with libovsdb

[x] Make sure you have followed Kube-OVN Code Style.

What type of this PR
Examples of user facing changes:

Features

Which issue(s) this PR fixes:
Fixes #1675

repalce some of lb table with libovsdb
optimise some code logical

it will panic when delete non-existent element from map, for example, delete non-existent vips from load balancer.
fix this bug by PR to libovsdb.

it will panic when delete non-existent element from map, for example, mutate to delete non-existent vips from load balancer. fix this bug by PR to libovsdb.

FIXED: https://github.com/ovn-org/libovsdb/issues/319


Implementing Addappt

Pull Request Test Coverage Report for Build 429

47 of 111 (42.34%)  changed or added relevant lines in 9 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-1.3%) to 83.529%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/seedu/address/logic/commands/AddApptCommand.java
0
2
0.0%

src/main/java/seedu/address/model/appointment/Appointment.java
13
17
76.47%

src/main/java/seedu/address/logic/parser/AddApptCommandParser.java
8
20
40.0%

src/main/java/seedu/address/storage/XmlAdaptedAppointment.java
0
46
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/main/java/seedu/address/model/appointment/Appointment.java
1
76.92%

Totals

Change from base Build 390:
-1.3%

Covered Lines:
2059

Relevant Lines:
2465

💛  - Coveralls


1.20.6?

Hi, I see you have a new commit for 1.20.6, but there's no new upload to curseforge? Did you forget to upload it / uploaded it somewhere else / is development still incomplete for 1.20.6?

For some reasons curseforge automatic system started marking cheatutils jar for manual approval. And manual approval took 5 days last time.
You can find direct download links in matrix.

Thank you


Updating active-win package to try to fix the ffi-napi error

to fix https://github.com/HASEL-UZH/PA.FlowTeams/issues/97

@regloff for some weird reason I cannot add you as a reviewer...
Can you please review this PR? Thanks


16 Max Connections from 8.

“No description provided.” Please provide a rationale for this proposed change, explaining why the divergence from the upstream Bitcoin 0.16.3 cloneparent.


When running python/sub_data.py, it interrupted at this step.

Subscribe init
websocket opened
do_prepare_steps--------------------------------
check has access right --------------------------------

@KevinsWang ,
Could you help add a debug as below in https://github.com/Emotiv/cortex-v2-example/blob/4b35cd74c2b7b478c68dc67a3ae0dca48612701a/python/cortex.py#L131
at line 373 . I want to see the response
 def on_message(self, *args):         recv_dic = json.loads(args[1])         print(recv_dic)
you mean that the program is interrupted suddenly at "check has access right" or do nothing any process after the step ?


Support actions/setup-node's registry-url input

Example:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
  with:
    registry-url: 'https://registry.npmjs.org'

Creates an .npmrc file with the following:
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true

Thanks for opening the issue! Definitely seems like something we should add.

Any updates on this? Would be very useful!


Update Checkout Progress Indicator

New design and labeling.

Font size text: 0.875rem
Font size numbers: 1.5rem
black: # 111
circle size: 60px
distance text and circle: 10px

Also see https://github.com/Xceptance/posters-demo-store/issues/143.

The issue hasn't been completely resolved for poster v2.1.
There has been a style changes for the issue that looks almost the same but has different attributes.
Differences:
1.font size is 12px, this doesn't match the adjustment of the 0.875 rem
2.font size of the numbers inside the circles also differs from the required ones
3.distance of the text and circle is not the required 10px


Palindromic Partition using Backtracking in cpp

💥 Proposal
(A clear and concise description of what the proposal is.)
I would like to add the code for Palindromic Partition using Backtracking in cpp. Please assign this issue to me[GSSOC'21].
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
yes

/assign


Modifiers dont work when used on an emote within its original server

Assuming I am in server A which has emote B. I can not use B.flip within server A. Using B.flip in any other servers works fine.

This is because the plugin only applies itself to emotes that aren't currently available (eg: emotes from other servers).
The same issue will occur if you have nitro.
A possible solution could be to look for any normal emotes that are followed by some modifier.

Implemented in 1.9.2


Add to the glossary a definition for reality data

 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.


UI scaling

I am using a 4K monitor and at least a 125% scaling is necessary to make things readable. Is there a way to scale the UI?
(OS: Debian/Linux, just downloaded more-speech-0.1.0-SNAPSHOT-standalone.jar and run it.)

Both these commands work:
GDK_SCALE=2 java -jar more-speech-0.1.0-SNAPSHOT-standalone.jar

java -Dsun.java2d.uiScale=2 -jar more-speech-0.1.0-SNAPSHOT-standalone.jar

Unfortunately only integers seem to work with this param, 1.25 does nothing.

I'll add a font-size to the config file.

:default-font "COURIER-PLAIN-14"
:bold-font "COURIER-BOLD-14"
 :small-font "COURIER_PLAIN-9"
Added to private/user-configuration as of release<PHONE_NUMBER>53

It works on some elements but does not scale other elements for me:

My user-configuration
{:export-user-profile
 {:export-after-days 7, :last-time-exported<PHONE_NUMBER>},
 :import-metadata
 {:import-after-days 30, :last-time-imported<PHONE_NUMBER>},
 :default-font "COURIER-PLAIN-24",
 :bold-font "COURIER-BOLD-24",
 :small-font "COURIER-PLAIN-18"}

I tried with both COURIER-PLAIN and COURIER_PLAIN (see small-font).

OK, I've re-opened it.


Docker image generation

Exporting a docker image with the user configuration.
Can be implemented if time permits

Done!


HMR injects duplicate angular markup into the page

When modifing a file, such as a .ts or .css file, for example:
this.currentCount++;
to
this.currentCount = this.currentCount + 2 ;
Then the component gets rendered twice in the page like so:

I'm using the latest yeoman project but not the experimental angular option.
thanks

Sorry about that. It was a mismatch between the logic needed for Angular 2.0.2 and 2.4.5+.
To fix it, edit your boot-client.ts file, and just delete the following lines:
    // Before restarting the app, we create a new root element and dispose the old one
    const oldRootElem = document.querySelector(rootElemTagName);
    const newRootElem = document.createElement(rootElemTagName);
    oldRootElem.parentNode.insertBefore(newRootElem, oldRootElem);

Leave the following one (that calls platform.destroy();) in place, as that's all that's needed on Angular 2.0.2.
This will no longer be an issue, as we've removed the option to produce projects with older versions of Angular (the Angular template now only produces 2.4.5+ projects), hence closing this.

Would you expect this to still be a problem with Microsoft.AspNetCore.SpaTemplates 0.9.3 that was using Angular 4? I'm still seeing the issue at that point (May'ish) and am wondering if the advice above is still the recommendation for that version.

@kkalitowski Yes, nothing's changed about that yet as far as I know.

@SteveSanderson Gotcha. And that manual fix does work. I was referring to your Feb 13 note saying there should no longer be an issue. On a positive note, #a83a6a9 was merged into MarkPieszak/aspnetcore-angular2-universal yesterday which fixes the issue.

Angular 4.4.5, nothing improved yet. The solution of @SteveSanderson is working.


Prediction with IMU model

Hello,
I wanted to run predict.py with IMU model, so i followed tutorial in README.
python predict.py
--dataset_config configs/examples.yaml
--model wasr_resnet101_imu
--weights path/to/model/weights.pth
--output_dir output/predictions
But I met the error below.
Traceback (most recent call last):
File "/snap/pycharm-community/293/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
File "~/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "~/WaSR/wasr/models.py", line 63, in forward
features['imu_mask'] = x['imu_mask']
KeyError: 'imu_mask'
How can i fix it?

Have you maybe edited the data config file? This is an error you would see, if you remove the imu_dir entry from the data configuration file. The imu_dir is the location of IMU horizon masks (1s for under horizon and 0s for above horizon) for each input image (as in the included examples).
If you do not have the IMU data for your images, try using the no-IMU version of the model instead. There you only need images.

I was using a customed config file.
Thank you for your quick reply!


Whole screen blinks on every suggest accept in Neovim

In my case when I accept a suggestion the whole screen blinks with the temporary appearing of linter messages, some popup shows for a fraction of a second, and even cmdline opens and closes for a bit. I would think it's how this plugin works, but on videos it works just fine. Is there a way to get rid of it? Accepting suggestions with other AI tools works just fine.
https://github.com/Exafunction/codeium.vim/assets/6984143/5e97f459-7f7e-414b-aa69-1e2cef73b4f5

Whoops, I've found that half of the flicker is removed if silent = true option is added to a keybind as it stated in #156. Since it's a reccuring problem maybe we could update a Readme?

Closed by #285, thanks for the PR!