Fix data races

Protects capacity, remaining and reset from data races.
Upgrades from general to strict testing

before:
> make
go get -d -t github.com/Clever/leakybucket
FORMATTING github.com/Clever/leakybucket...
LINTING github.com/Clever/leakybucket...
VETTING github.com/Clever/leakybucket...
TESTING github.com/Clever/leakybucket...
?       github.com/Clever/leakybucket   [no test files]
go get -d -t github.com/Clever/leakybucket/memory
FORMATTING github.com/Clever/leakybucket/memory...
LINTING github.com/Clever/leakybucket/memory...
VETTING github.com/Clever/leakybucket/memory...

LINTING github.com/Clever/leakybucket/redis...
VETTING github.com/Clever/leakybucket/redis...
TESTING github.com/Clever/leakybucket/redis...
=== RUN   TestInvalidHost
--- PASS: TestInvalidHost (0.00s)
=== RUN   TestCreate
--- PASS: TestCreate (0.00s)
=== RUN   TestAdd
--- PASS: TestAdd (0.00s)
=== RUN   TestThreadSafeAdd
--- SKIP: TestThreadSafeAdd (0.00s)
    redis_test.go:52:
=== RUN   TestReset
--- PASS: TestReset (0.01s)
=== RUN   TestFindOrCreate
--- PASS: TestFindOrCreate (2.00s)
=== RUN   TestBucketInstanceConsistencyTest
--- PASS: TestBucketInstanceConsistencyTest (4.01s)
=== RUN   TestFastAccess
==================
WARNING: DATA RACE
Write by goroutine 29:
  github.com/Clever/leakybucket/redis.(*bucket).Add()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:66 +0x124e
  github.com/Clever/leakybucket/redis.TestFastAccess.func1()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:88 +0xb2

Previous write by goroutine 26:
  github.com/Clever/leakybucket/redis.(*bucket).Add()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:66 +0x124e
  github.com/Clever/leakybucket/redis.TestFastAccess.func1()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:88 +0xb2

Goroutine 29 (running) created at:
  github.com/Clever/leakybucket/redis.TestFastAccess()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:91 +0x2b0
  testing.tRunner()
      /tmp/workdir/go/src/testing/testing.go:456 +0xdc

Goroutine 26 (running) created at:
  github.com/Clever/leakybucket/redis.TestFastAccess()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:91 +0x2b0
  testing.tRunner()
      /tmp/workdir/go/src/testing/testing.go:456 +0xdc
==================
==================
WARNING: DATA RACE
Write by goroutine 23:
  github.com/Clever/leakybucket/redis.(*bucket).updateOldReset()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:49 +0x43a
  github.com/Clever/leakybucket/redis.(*bucket).Add()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:86 +0xd65
  github.com/Clever/leakybucket/redis.TestFastAccess.func1()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:88 +0xb2

Previous read by goroutine 37:
  github.com/Clever/leakybucket/redis.(*bucket).updateOldReset()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:38 +0x63
  github.com/Clever/leakybucket/redis.(*bucket).Add()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis.go:86 +0xd65
  github.com/Clever/leakybucket/redis.TestFastAccess.func1()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:88 +0xb2

Goroutine 23 (running) created at:
  github.com/Clever/leakybucket/redis.TestFastAccess()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:91 +0x2b0
  testing.tRunner()
      /tmp/workdir/go/src/testing/testing.go:456 +0xdc

Goroutine 37 (running) created at:
  github.com/Clever/leakybucket/redis.TestFastAccess()
      /home/vagrant/go/src/github.com/Clever/leakybucket/redis/redis_test.go:91 +0x2b0
  testing.tRunner()
      /tmp/workdir/go/src/testing/testing.go:456 +0xdc
==================
--- PASS: TestFastAccess (0.05s)
PASS
Found 2 data race(s)
exit status 66
FAIL    github.com/Clever/leakybucket/redis     7.089s
make: *** [github.com/Clever/leakybucket/redis] Error 1

after:
> make
go get -d -t github.com/Clever/leakybucket
FORMATTING github.com/Clever/leakybucket...
LINTING github.com/Clever/leakybucket...
VETTING github.com/Clever/leakybucket...
TESTING github.com/Clever/leakybucket...
?       github.com/Clever/leakybucket   [no test files]
go get -d -t github.com/Clever/leakybucket/memory
FORMATTING github.com/Clever/leakybucket/memory...
LINTING github.com/Clever/leakybucket/memory...
VETTING github.com/Clever/leakybucket/memory...

LINTING github.com/Clever/leakybucket/redis...
VETTING github.com/Clever/leakybucket/redis...

LINTING github.com/Clever/leakybucket/test...
VETTING github.com/Clever/leakybucket/test...
TESTING github.com/Clever/leakybucket/test...
?       github.com/Clever/leakybucket/test      [no test files]

some comments...generally trying to think how to make this easier to reason/think about. I would consider simplifying/consolidating to one mutex on Add() since the general access pattern that consumers use (see Sphinx) is calling Add() across many goroutines. I don't think there is a huge performance benefit to individual mutexes on each piece of data.

So I tried getting this to work in a clean state and didn't really find a solution I was happy with. The locking gets messy since we have up to 3 Redis network calls in Add, and locking during a network call seems like a very bad idea.
I think the right solution is going to be a lua script to do most of the logic from Add, I'm going to experiment with this (partially because I've always wanted a good reason to do Lua scripting in Redis).
@rgarcia, does this sound sane to you?

@natebrennand If the locking with mutexes is complicated, jumping into the sync/atomic package (e.g. atomic.AddUint64) sounds a lot cleaner than lua scripts (assuming I understand the issue properly)

side note: I miscounted, there are actually up to 4 calls to Redis.

I think it's poor practice that we have up to 4 network calls for something that seems like we could easily limit it to a single call. There's also an implicit race condition for concurrent Add calls since we can have two INCRBY calls followed by two PEXPIRE calls leaving the bucket in an unexpected state.
Also it's just faster to have a single call to Redis, but I acknowledge speed is not an issue here.

I agree that locking on Add is a little scary, but to play devil's advocate (1) ultimately we want Add to be thread safe (see the ThreadSafeAdd test) and a lock on Add is a very straightforward way of accomplishing that and (2) Add is bucket-specific, and buckets are usually tied to individual users, of which there are many.
I agree with @natebrennand that it's worth exploring putting all the logic in one redis call and relying on atomicity within redis instead of locks. Might be possible to do this with a redis transaction (no lua). @jefff might have some ideas.

To make sure we're all on the same page: my understanding is that there's no issue with the way that we interact with redis, just that the way we set and return the result state isn't thread-safe. If so, changing how we interact with redis seems like a pretty weird/overkill solution to this problem that is just a state synchronization issue.

Ah, I think I understand where the confusion comes from:

There's also an implicit race condition for concurrent Add calls since we can have two INCRBY calls followed by two PEXPIRE calls leaving the bucket in an unexpected state.

@natebrennand @rgarcia This is not how redis works. INCRBY calls are atomic, and return the new value. Because it's atomic, PEXPIRE will never be called twice in a row. We're already relying on Redis's atomicity for our correctness guarantees, not relying on locks in application code.

@azylman the problems in my mind:

Fix data races
(Nice-to-have) get redis to pass the ThreadSafeAdd test

The PR as written solves (1). I think a lock on Add solves (1) and (2). A single redis op might also solve (1) and (2)?

Okay, I think we're on the same page now. I'd personally vote for not making large changes to how we interact with redis to try to solve (2) or, at least, considering that as a separate conversation from data races. None of our consumers actually use Add across many goroutines, which is why that test is skipped instead of fixed.

How I see it:
current:

good:

simple
"works" well enough in prod that we haven't noticed it

bad:

racy code
possible to increment a bucket past its  capacity
fails ThreadSafeAdd test

lock on all of Add:

good:

super simple
fix all races
pass ThreadSafeAdd test

bad:

up to 4 Redis network calls
Add functionality is locked while waiting for all N calls to finish

redis lua script:

good:

atomic operation for all changes to the bucket
fix all races
pass ThreadSafeAdd test

bad:

Lua
involves a larger code change

For now I prefer current. IMO a solution involving redis transactions is ideal, but might be a big time investment, so it might be reasonable to hold off. After further thought I no longer think a mutex is appropriate: any approach with a mutex on the Bucket struct doesn't solve for multiple threads calling Create + Add, which is a reasonable access pattern (and what sphinx currently does).

fwiw I experimented with a version of this PR that used the atomic package and it's easier to read + understand than the series of mutexes here IMO, but it also needed to dip into unsafe package for part of it: https://gist.github.com/azylman/b89b332bcebc5126872c82928fca3bc7
Feel free to use it, or throw it away

Wow! I have many thoughts but you seem to have most things convered. My thoughts:

possible to increment a bucket past its capacity is totally acceptable and on spec contraints
let's run the Sphinx bench tests before merging a big change to locking. And closely monitor deploy. Would not want the request times to spike.
in Redis by my experience. Transactions > lua script wherever possible.


Support direct network attachment

This allows attaching a server resource to a network (private) on creation. This will allow to set a specific private IP address to the server along with optional list of alias_ips.
resource "hcloud_server" "server" {
  ...
  network {
    network_id = var.private_network_id
    ip         = var.private_network_ip
    alias_ips  = var.private_network_alias_ips
  }
}

This PR is included in version 1.1.0 :tada:


Cannot apply rule for symbolic list with multiple elements

Symbolic list unification fails with multiple elements
To reproduce:
tmp.k:
module TMP
  imports INT
  imports LIST

  syntax KItem ::= "push" | "pop"
  syntax KItem ::= Int

  rule  <k> push => .K ... </k>
        <stack> (.List => ListItem(1)) ... </stack>

  rule  <k> pop => .K ... </k>
        <stack> (ListItem(_:KItem) => .List) ... </stack>
    [label(xyzzy)]

  configuration
    <T>
      <k color="green"> .K </k>
      <stack> .List </stack>
    </T>

endmodule

tmp-proof.k:
module TMP-PROOF
  imports TMP

  claim
      <T>
        <k> push ~> push ~> pop ~> pop ~> K:K </k>
        <stack> Stack:List </stack>
      </T>
      =>
      <T>
        <k> K </k>
        <stack> Stack </stack>
      </T>
endmodule

to run:
kompile tmp.k --backend haskell && kprove tmp-proof.k

The repl provides no reason explaining why the xyzzy rule is not applied:
Kore (0)> step 2
Kore (2)> try xyzzy
No explanation given
Kore (2)>

Note that the claim above works with a single push/pop, i.e. <k> push ~> pop ~> K:K </k>

This is a known limitation.

@ana-pantilie I managed to reproduce this error.
backend version:
Kore version <IP_ADDRESS>
Git:
  revision:	74bc7a963a825d0f0f034b5d3412dc59448e51bb (dirty)
  branch:	master
  last commit:	Tue Feb 7 05:02:49 2023 -0700


...items button list covers "Source:" string in showInformationMessage(message: string, ...items: string[])

Issue Type: Bug
A call to showInformationMessage(message: string, ...items: string[]) that includes a list of "items" to be presented as "action" buttons covers the "Source: name-of-extension" message. Compare the resulting toast message to a call to showInformationMessage() that does not include any action buttons.
There are actually two issues:

the action buttons are placed such that you cannot read the "Source: name-of-extension" string added to the bottom of the notification message (particularly if there are a lot of buttons or they include a lot of text)

there are no ^ and v controls to collapse or expand the notification message

The first bullet is the bigger issue, thus the name of this issue.
 The first image shows two notification toasts, one that calls with the ...items: string[] parameter and one that does not. Notice the toast without the ...items: string[] includes the collapse (v) control and the other does not. Without the v control in the notifications that include buttons it's hard to manage situations with a large number of notifications (due usually to ignoring and/or procrastinating 😃)

This second image does a better job of showing how the buttons obscure the "Source:" of the notification. That "Source:" line at the bottom of the notification is very helpful, especially if you have a number of notifications stacked up, so you can get some useful context for the message.

I logged this issue as a "bug" but I would consider it to be a usability issue, not so much a "bug" since the functionality is not broke, it's just the presentation that is impeding on the usability.

So what is the suggestion to improve this? Btw I think you can still hover over the source label to see it in full.

Modify the layout of the "Source: name-of-extension" message and the "action buttons" so you can read the "Source: name-of-extension" string without interference from the "action buttons."
It would also be nice if the ^ and v controls were also included in a notification message that includes "action buttons," but that is a lesser issue.

//cc @misolori


Merge guest users into registered users on login

Will require a new endpoint.

The WDK will call this endpoint as part of it's internal conversion of guest user to logged in user.

How this will be authenticated has yet to be discussed.

Authentication will be via the logged in user's token.


LFS-697: Forms with conditional sections are not properly marked as COMPLETE or INCOMPLETE

Use the LFS-697-test branch to test. The Demographics questionnaire has four sections, one which is only displayed if Gender = F, and one which is only displayed if Vital Status = Alive and NED.
The whole diff is quite big, but checking commit by commit should make it more obvious what changed.

How can I make a conditional section in the form so I can test it?


UNBLOCKED GAMES driving games unblocked | Play Free Games Online - zk10g

UNBLOCKED GAMES driving games unblocked | Play Free Games Online - zk10g
driving games unblocked is a popular website that offers a wide variety of games that can be played in environments where access to gaming sites is typically restricted, such as schools and workplaces.
Enjoy playing all your favorite casual driving games unblocked, office, or home. Dive into the world of online free games without downloads!
👉🔴 SITE Games Unblocked >> driving games unblocked
👉🔴 PREMIUM Games Unblocked >> driving games unblocked
🙋♀ A short introduction - what is your organization all about?
🌈 Contribution guidelines - how can the community get involved?
👩💻 Useful resources - where can the community find your docs? Is there anything else the community should know?
🍿 Fun facts - what does your team eat for breakfast?
🧙 Remember, you can do mighty things with the power of Markdown
driving games unblocked: Unlocking Premium Fun in Educational Settings
In recent years, the phenomenon of driving games unblocked has taken the online gaming community by storm. These games, designed to bypass restrictions often placed by schools and workplaces, provide a unique blend of entertainment and engagement, especially for students. Among the vast array of options, unblocked premium games stand out as a popular choice, offering enhanced features, better graphics, and a more immersive gaming experience.
What Are driving games unblocked?
driving games unblocked are online games that can be accessed and played without restrictions, typically in environments like schools or offices where gaming sites might be blocked. The appeal of these games lies in their accessibility and the diverse range of genres available, from action and adventure to puzzles and strategy. Students often turn to these games during breaks or downtime, providing a quick escape from their academic routines.
The Rise of Premium driving games unblocked
As the unblocked games market has evolved, so has the demand for premium content. Premium driving games unblocked are those that offer superior gameplay experiences, often including advanced graphics, engaging storylines, and multiplayer functionalities. Many of these games are adaptations of popular titles, enabling players to enjoy high-quality gaming even in restricted environments.
The allure of premium unblocked games lies in their ability to combine fun with an element of strategy and critical thinking. Many of these games challenge players to solve complex problems, collaborate with peers, and develop skills that are beneficial beyond the gaming world.
Benefits of Playing driving games unblocked

Stress Relief: For students juggling a demanding academic schedule, unblocked games provide a much-needed break. Engaging in play can reduce stress and enhance overall well-being.
Social Interaction: Many unblocked games allow for multiplayer modes, enabling students to connect with friends or even make new ones. This social aspect is particularly valuable in school settings, fostering teamwork and collaboration.
Skill Development: Numerous unblocked games require strategic thinking, quick reflexes, and problem-solving abilities. These skills can translate to academic success, making gaming a potentially productive pastime.
Creativity Boost: Games that allow for customization and creative expression can inspire students to think outside the box, enhancing their creative skills.

Popular Genres of driving games unblocked Premium Games

Action and Adventure: Games that provide thrilling narratives and exciting challenges, often featuring iconic characters and rich worlds. Titles like "Among Us" or "Minecraft" have gained immense popularity in unblocked formats.
Puzzle and Strategy: These games challenge players to think critically and plan ahead, with examples including "2048" and "Bloons Tower Defense."
Simulation: Games like "The Sims" or "Animal Crossing" let players create and manage their virtual lives, promoting creativity and organization.
Sports and Racing: Titles such as "Basketball Stars" and "Slope" offer fast-paced action and competitive gameplay, appealing to sports enthusiasts.

Conclusion
driving games unblocked premium games represent a dynamic intersection of fun and education, providing students with a unique platform to unwind while also honing valuable skills. As educational institutions continue to grapple with balancing entertainment and learning, these games offer a solution that can enhance the school experience. By integrating gaming into their downtime, students can enjoy the thrill of play while developing critical skills, making unblocked premium games a worthwhile addition to any educational setting.

vxvxv


qat: deployment: set parameters via ConfigMap

For easier deployments, fetch plugin command line arguments from ConfigMap.
When using ConfigMaps, qat_plugin.yaml needs no changes and can always
be used as is.
qat_plugin_default_configmap.yaml uses built-in defaults.
Signed-off-by: Mikko Ylinen<EMAIL_ADDRESS>

@swatisehgal can you take a look?

Codecov Report

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

@@          Coverage Diff           @@
##           master    #121   +/-   ##
======================================
  Coverage    79.7%   79.7%
======================================
  Files          10      10
  Lines        1212    1212
======================================
  Hits          966     966
  Misses        223     223
  Partials       23      23

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 60c36a7...00bbe92. Read the comment docs.

@mythi Tested this, LGTM. Great work!

@mythi Tested this, good work! LGTM!


Add dbgr postfix completion

Expanding to dbg!(&e).

As seen in https://intellij-rust.github.io/2020/09/21/changelog-131.html.

bors r+


General Testing of master branch

Let us discuss the following:

Wordpress Debug to true Warnings  #151
Archaeology template #155
Game version number input #163
Right click on doors on 3D editor (load - save json)  #157
Support two diffusion images (pending) #166
'Resources' folder for sprite jpgs #156
obj meta settings: remove all but guid and timestamp (check if it is closed)
obj save  as 'mymodel_CollidersNoOptimization.obj' for 'Sites' category when the Unity3D game is generated #167
iframe parameters
analytics connect

2: Warnings
Notice: Undefined variable: tt_id in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-scenes-yaml.php on line 17553
Notice: Trying to get property of non-object in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-core-functions.php on line 352
Notice: Undefined variable: post in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 46
Notice: Trying to get property of non-object in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 46
Notice: Undefined variable: post in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 47
Notice: Trying to get property of non-object in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 47

Hi Dimitrios,
Yes, thank you. Here are two examples of the info, I have been getting so far:
wpunity_scene=981
wpunity_game=942
scene_type=scene
and
wpunity_scene=224
wpunity_game=221
scene_type=scene
Does this look correct?
I’m not sure about the mappings from game number to game type, though, do you have a table with that information somewhere or am I missing something? If you have human readable codes, I must be getting the wrong information
It would be great to have the lab version number too, just to make sure we’re pulling the right data, and codes for the location too.
For the review demo, I presume we won’t limit location to our own location, since we can’t see the data then, but going forward that’s something we could just enable.


dbf2df can not read dbf files within which there are Chinese characters

from pyGDsandbox.dataIO import df2dbf, dbf2df
df=dbf2df('readable.dbf')
print df
try:
df2=dbf2df('unreadable.dbf')
except:
print 'unreadable, error happened, because of Chinese words in the unreadable.dbf file'
print "How can I read all the content within the DBF files?"
df2=dbf2df('unreadable.dbf')
if name == 'main':
pass
the following is the results:
df2=dbf2df('unreadable.dbf')

File "F:\Py4ArcGIS\test_dbf2df\pyGDsandbox\dataIO.py", line 89, in dbf2df
data = dict([(var, db.by_col(var)) for var in vars_to_read])
File "C:\Python27\ArcGISx6410.3\lib\site-packages\pysal\core\Tables.py", line 25, in call
return self.p._get_col(key)
File "C:\Python27\ArcGISx6410.3\lib\site-packages\pysal\core\IOHandlers\pyDbfIO.py", line 120, in _get_col
value = value.decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)

Can you provide some replication data (or just a dbf with Chinese characters)?
 Or, is this the first time you've tried?

I'm using pysal 1.11.2 which is installed by the command "pip install pysal".
I've tried to upload the dbf file in a ZIP file but unfortunately failed many times.

When I tried dbfpy from the following website, it works for the unreadable dbf file.
 We should probably keep this issue open until there's a patch or a support decision,  as the encoding is still assumed to be ascii.
This looks like an issue with python 2/3 string/bytes handling. Since we don't currently support passing an encoding argument to the parser, we implicitly restrict encodings to the default used in bytes.decode.
An easy fix to the code appears in reach: allow a user-specified encoding argument in both reading and writing. This would be a pretty cut and dry contribution!

Thank you very much.

I encountered the exact same issue from pysal\core\IOHandlers\pyDbfIO.py. My DBF file is encoded with a silly cp863 encoding (French Canadian). I had implemented a bit of a monkey-patch solution to decode data after reading it using using pysal, then stuffing the data into a pandas.DataFrame:
 def read_dbf(dbf_path, index=None, cols=False, codec=None):
    import codecs
    db = ps.open(dbf_path)
    if cols:
        if incl_index:
            cols.append(index)
        vars_to_read = cols
    else:
        vars_to_read = db.header
    data = {}
    for var in vars_to_read:
        if db.field_spec[db.header.index(var)][0] == 'C' and codec:
            data[var.lower()] = map(lambda s: s.decode(codec), db.by_col(var))
        else:
            data[var.lower()] = db.by_col(var)
    db.close()
    df = pd.DataFrame(data)
    if index: df = df.set_index(index)
    return df

This worked fine in pysal 1.10.0.
Today I had to reinstall pysal, and pip installed pysal 1.11.2. My code broke on line 120 of pyDbfIO.py. I compared implementation of _get_col on between 1.10.0 and 1.11.2, and the line with value = value.decode() is new. This is a backwards-incompatible change, for anyone using non-ASCII encode DBF files.
It would be relatively easy to implement an optional encoding argument to the functions where you added new decode() statements (or add a runtime-settable module-level default_encoding attribute). This would not change default behavior, but would allow some recourse for users to patch their code with a new encoding argument after a pysal upgrade breaks their existing codebase. The standard Python decode function takes an encoding argument, so not much overhead there.
I am building a prototype system right now, and am currently the only user, so I will just downgrade to pysal 1.10.0, put a note in my source code, and keep on truckin', but it would be nice to be able to implement something more robust at my end.

Thanks for this recommendation!
This was a change to the file read/write for interchangeability between 2 and 3 that slipped through testing, since none of our example datasets have non-UTF-8 encodings.
You're right, it should be possible to just add:
class DBF(pysal.core.Tables.DataTable):

    def __init__(self, *args, **kwargs):
    ...
    self.encoding = kwargs.get('encoding', 'utf8')

and then every encode()/decode() call becomes encode(self.encoding)/decode(self.encoding).
If you have any example replication data on which this fails, it may be easier to test this fix.
Alternatively, you could use geopandas or fiona for your IO, which are dedicated IO packages for geographic data. Almost all of the analytics in pysal are agnostic to the data reader/writer.

Glad to help, @ljwolf. Unfortunately, all my examples of real DBF data files that break pysal 1.11.2 technically confidential, so I cannot share my data files with you. Sorry about that.

We are closing this since we can't reproduce.


refactor the TLS package to reduce multiplat sprawl

Signed-off-by: Evan Baker<EMAIL_ADDRESS>
Reason for Change:

Refactors the TLS package to delint it and consolidate reduce functionality that is currently spread between _linux and _windows build files down to strictly what differs between those OS implementations.
Issue Fixed:

Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests

Notes:

saving this for later


Allowed-Ips do not get set correctly

Hi,
thank you for the great work of wg-portal, first off!
I have an issue where the allowed-ips do not get set correctly by wg-portal.
Im trying to set this as the allowed IPs:
AllowedIPs = <IP_ADDRESS>/32, <IP_ADDRESS>/24
but wireguard only gets set the following:
AllowedIPs = <IP_ADDRESS>/32
I see the correct configuration in the "Configuration" tab in wg-portal, but not as the actual configuration in Wireguard.
I dont see any info in the docker logs that would explain it.
I am using the latest docker image.
Any further info you need from me?
Thank you.

Hi,
I have a few more questions here.

Are we talking about a WireGuard setup in "server" mode or in "client" mode?
Have you set the Allowed-IPs for a peer/endpoint or in the interface settings screen (default allowed IP's)?

So to (hopefully) clarify this a bit, if you are in "server" mode, the Allowed-IPs for the peers will be set to the peer's Client IP address. The Allwed-IPs in the peer settings screen are only used for the Peer configuration that can be used for client deployment.
Maybe it helps if you post the generated wgX.conf file of the interface (you can download that in the UI) and/or the generated peer.conf. You can also share the data you entered in the UI in order to reproduce the results. Make sure that no private data is included in the conf file! Thanks.

Thanks for the quick answer.
Its in server mode. So what you wrote below explains what Im seeing then.
Im trying to have this Wireguard Server be the entry-point to my home network (which is why It needs the <IP_ADDRESS>/24 subnet as allowed-ips for one of the clients)
If I set it to client mode, will I still be able to create other peers, connect via the server etc?
# AUTOGENERATED FILE - DO NOT EDIT
# -WGP- Interface: wg0 / Updated: 2021-06-15 08:53:39.260933598 +0000 UTC / Created: 2021-06-07 23:07:07.650077182 +0000 UTC
# -WGP- Interface display name:
# -WGP- Interface mode: server
# -WGP- PublicKey = Key

[Interface]

# Core settings
PrivateKey = Key
Address = <IP_ADDRESS>/24

# Misc. settings (optional)
ListenPort = 51820
MTU = 1370
SaveConfig = true

# Interface hooks (optional)
PreUp = sysctl -w net.ipv4.ip_forward=1; sysctl -w net.ipv6.conf.all.forwarding=1
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i %i -j ACCEPT; ip6tables -A FORWARD -o %i -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip r add <IP_ADDRESS>/24 via <IP_ADDRESS>
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i %i -j ACCEPT; ip6tables -D FORWARD -o %i -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

#
# Peers
#

# -WGP- Peer: iPhone / Updated: 2021-06-15 18:23:40.446463799 +0000 UTC / Created: 2021-06-08 00:08:59.967857445 +0000 UTC
# -WGP- Peer email<EMAIL_ADDRESS># -WGP- PrivateKey: Key1
[Peer]
PublicKey = Key1
PresharedKey = Key1
AllowedIPs = <IP_ADDRESS>/24

# -WGP- Peer: OPNsense / Updated: 2021-06-15 18:24:20.585264131 +0000 UTC / Created: 2021-06-07 23:31:39.685499407 +0000 UTC
# -WGP- Peer email<EMAIL_ADDRESS># -WGP- PrivateKey: Key2
[Peer]
PublicKey = Key2
PresharedKey = Key2
AllowedIPs = <IP_ADDRESS>/32
PersistentKeepalive = 16

# -WGP- Peer: ArbeitsLaptop / Updated: 2021-06-15 18:26:12.063591338 +0000 UTC / Created: 2021-06-08 08:40:06.177190588 +0000 UTC
# -WGP- Peer email<EMAIL_ADDRESS># -WGP- PrivateKey: Key3
[Peer]
PublicKey = Key3
PresharedKey = Key3
AllowedIPs = <IP_ADDRESS>/32
PersistentKeepalive = 16

So this WireGuard server is running at your home (which has the <IP_ADDRESS>/24 subnet) and you want your clients to be able to connect to your home network? This should work perfectly fine with the server config you posted above. Simply add the <IP_ADDRESS>/24 to your clients as allowed IP's  (just add <IP_ADDRESS>/24, <IP_ADDRESS>/24, <IP_ADDRESS>/0 for example, skip the <IP_ADDRESS>/0 if you don't want all traffic to be routed over the vpn).
You then get something like:
<IP_ADDRESS>/24   ----  <IP_ADDRESS>  ----  <IP_ADDRESS>/24
Where your clients have 10.8.0.x IP's and a route to the <IP_ADDRESS>/24 network.

No. Its running in the Cloud and Im connecting to it, while the Cloud Server has a Wireguard connection to my Home.
The Cloud WG-Portal Server routes the traffic to <IP_ADDRESS> which is my Home Router.
If I do not add the <IP_ADDRESS>/24 to the allowed-ips on the WG-Portal server, it will throw the typical Wireguard errors.
On the home router side, I have <IP_ADDRESS>/0 in the allowed-ips (for now).

I see. So it is currently not supported to specify the allowed IP's of peers in the server config. I will have to add this feature to wgportal.

@p-rintz can you test the latest docker image if your usecase works now? I have added a extra field called "Extra Allowed IPs (Server sided)" to the peer configuration screen.

Yeah, that works perfectly. Thank you.


Automatically upload builds to docker hub

In alpha state, just do this for every green build.

https://circleci.com/docs/docker

see pr #70


[Nox.Generator] Update  Entity DbContext to be always AppDbContext

To avoid future problems on Migrations if the Solution name is updated, fix the name of the entities dbContext instead of being dependent on the solution name


Depend on GLMakie or Makie?

All the core types and functions of the Makie ecosystem are defined in Makie itself. I'd propose this package should depend only on Makie, and then the rendering can be done in any backend (GLMakie, CairoMakie, WGLMakie, or RPRMakie) of the user's choosing. This would be a breaking change, as users would be required to use using GLMakie, ProtPlot to reproduce current behavior rather than just using ProtPlot.
Thoughts? I'm happy to make this change if the maintainers are on board.

This makes sense. I'm currently cleaning up and rewriting the package to improve the ribbon shapes, and to take advantage of Makie.jl recipes (#25). I've already implemented this on the recipes branch (WIP, doesn't compile yet). Should be ready soon.

This has now been implemented in v0.4.0.
I'm excited about some more robust and improved visuals, and the package aligning more with how Makie is supposed to be used.
Note that the Makie recipe defines ribbon and ribbon! on its own, so the scene and camera stuff was moved to ribbon_scene for convenience. ribbon now only makes some 2D projection onto an Axis.
Thank you for opening this issue!😄


No data for The Last Jedi, The Rise of Skywalker, The Mandalorian, etc.

It seems like there's no data for the latest films and series of Star Wars. I'd be happy to help!

It would be awesome if it would be possible to look for the comics, books and tv series, not only movies


TradingAPI Issue with OAuth - Getting 931 Invalid Token

Hey everyone,
I'm trying to get the sdk up and running for the trading API of eBay. First of all I have to say: Great work!  It's easy to use and up to date - thanks already for that!
I already used the API (Account API) successfully to get the policies into my application using OAuth with the steps

Get the AUTH Code from eBay with the redirect / accept pages
Get a user access token based on the AUTH Code via the SDK and use the token to get the policies
That works perfectly fine for me.

However I'm having issues now to get the category tree from eBay. I'm trying it the same way - getting the Auth Code, retrieving the user access token and then call the service using this token in the request. I also added my credentials (from production in https://developer.ebay.com/my/keys) to the service itself.
I'm ending up getting the token, but receiving a errorcode 931 for Auth Token invalid. As you can see i print the token to the page -> if I use this token in the api test tool (https://developer.ebay.com/DevZone/build-test/test-tool/default.aspx?index=0&env=production&api=trading&call=GetCategories&variation=xml) with OAuth I actually get the results without any errors. What am I doing wrong?
Here's my code:
$service = new OAuthService([
    'credentials' => EbayConfig::getEbayCredentials(), // appId, certId, devId from https://developer.ebay.com/my/keys
    'ruName' => EbayConfig::getEbayRuName() // from https://developer.ebay.com/my/auth/?env=production
]);

$request = new GetUserTokenRestRequest();
$request->code = $_SESSION['ebayAuthCode'];

/**
 * Send the request.
 */
$response = $service->getUserToken($request);

if ($response->getStatusCode() === 200) {
    $_SESSION['ebayOAuthToken'] = $response->access_token;
    $service = new TradingService([
        'credentials' => EbayConfig::getEbayCredentials(), // same credentials as above (is that correct?)
        'siteId' => SiteIds::DE,

    ]);

    $request = new GetCategoriesRequestType();
    $request->RequesterCredentials = new CustomSecurityHeaderType();
    $request->RequesterCredentials->eBayAuthToken = $_SESSION['ebayOAuthToken'];
    $request->DetailLevel = [DetailLevelCodeType::C_RETURN_ALL];
    $request->ViewAllNodes = true;
    $request->OutputSelector = [
        'CategoryArray.Category.CategoryID',
        'CategoryArray.Category.CategoryParentID',
        'CategoryArray.Category.CategoryLevel',
        'CategoryArray.Category.CategoryName',
        'CategoryArray.Category.LeafCategory',
        'CategoryArray.Category.Expired'
    ];

    $response = $service->getCategories($request);

    printf("\nStatus: %s%s", $response->Ack, '
');
    if (isset($response->Errors)) {
        foreach ($response->Errors as $error) {
            printf(
                "%s: %s\n%s\n\n",
                $error->ErrorCode,
                $error->ShortMessage,
                $error->LongMessage
            );
        }
        print("
 Used Token=" . $_SESSION['ebayOAuthToken']);
    }
    if ($response->Ack === AckCodeType::C_SUCCESS) {
        $categories = $response->CategoryArray;

        foreach ($categories as $category) {
           // do stuff with the category
        }
    }
} else {
    printf(
        "%s: %s",
        $response->error,
        $response->error_description
    );
}

as you pointed out, the api test tool works without any errors, print the raw xml of the SDKs request and compare it with your own (u used with the test tool) - i guess there has to be a difference somewhere....

Well, that was kinda helpful. I'm a bit rusty. The issue is that the example given in https://github.com/davidtsadler/ebay-sdk-examples/blob/master/trading/02-get-category-hierarchy.php does not work for me.
If I change it so that the TradingService itself gets the Token for the header information like
$service = new TradingService([
        'credentials' => EbayConfig::getEbayCredentials(),
        'siteId' => SiteIds::DE,
        'authorization' => $_SESSION['ebayOAuthToken']
    ]);

and remove the $request->RequesterCredentials = new CustomSecurityHeaderType() entirely, it works for me.

i don´t wotk with oauth, so i cannot follow you in detail, hopefully i was able to help (a bit)... ;)

So I just ran into this exact issue and erikben's solution works. Perhaps it should be added to the documentation (if this is the right way to do it) or if not then we should probably get a "why not" from the creator.


Refactor reusable Arrow circuits and combinators into Library.v

I worry that Library is too generic a name. Break down further, into things like ArrowCombinators etc?

I've renamed the file in a follow up PR


adopt vnet approach from subvending LZ module & modify subnets to work with Azure Policy

Description

This ports the approach used in the sub vending LZ module

functionally, this allows a second team to create subnets within a vnet, without terraform overwriting the subnets

This also ports the example from @haflidif where subnets are also created using azapi, to allow an immediate association with an NSG & route table, along with aligning it to the AVM way.  As noted, this fixes deployments when faced with typical Azure Policy restrictions.

This includes the logic to be able to deploy subnets into an existing vnet (fixes #43)

On the examples;

The 'complete' example is now much more complete.  It deploys all the various resources such as routes, NSGs, DDOS (but disabled, for cost saving), etc.
The 'default' example just deploys the minimal vnet
There is an additional example to test (3)

This fixes a number of variables that do not follow AVM spec, noting;

vnet_location is now location
virtual_network_dns_servers is dns_servers
virtual_network_ddos_protection_plan is ddos_protection_plan
virtual_network_address_space is address_space
vnet_peering_config is peerings (?)

... and the outputs have been updated to align more closely with AVM too.

Change works with recent changes in azapi 1.13

The code passes lint, docs & grept apply checks.
Fixes  #43, #65, #71, #73
Supersedes #62
-->
Type of Change

[ ] Non-module change (e.g. CI/CD, documentation, etc.)
[X] Azure Verified Module updates:

[ ] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in locals.version.tf.json:

[ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
[ ] The bug was found by the module author, and no one has opened an issue to report it yet.

[ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in locals.version.tf.json.
[X] Breaking changes and I have bumped the MAJOR version in locals.version.tf.json. edit: bumped the minor version as we are still < v1.0
[X] Update to documentation

Checklist

[X] I'm sure there are no other open Pull Requests for the same update/change (except those noted that this supersedes)
[X] My corresponding pipelines / checks run clean and green without any errors or warnings
[X] I did run all  pre-commit checks

@matt-FFFFFF I had to use a 'wait for' due to occasional conflicts when testing, is there might be a better way?
I don't know if this is something that should be noted upstream, it seems like APIs is releasing op locks too early.

as an aside, the current approach uses a data source to grab the subscription details
data "azurerm_subscription" "this" {}

I'm wondering if :
data "azurerm_client_config" "this" {}

... might be a better choice

I've raised this  on the AzAPI repo noting the issues with the 409 conflict errors.
I'm thinking also it would be smart to introduce a 'wait for subnet' operations block too , then as a workaround if necessary a caller could call this resource module twice to work around this issue. (unless there's a better way)

I've raised this  on the AzAPI repo noting the issues with the 409 conflict errors.
I'm thinking also it would be smart to introduce a 'wait for subnet' operations block too , then as a workaround if necessary a caller could call this resource module twice to work around this issue. (unless there's a better way)

Yeah It's the same issue I stumbled up on during the development of my module, when I was testing the different scenarios on the same vnet but calling my module multiple times in the same vnet, I suspect it's only few seconds that it takes to be ready for each subnet, but enough to hit the operation still in progress error - I would recommend to introduce some time wait block, but not sure how to do that when using a for each loop inside the module to create multiple subnets.

@haflidif hopefully it can be fixed, in the meantime I have added a time wait and an example to the tests that illustrates how to work around it.  Unaware of any sensible ways you can put a pause between 'for_each' objects.  Just about to test it against my own runners.

See this.
https://github.com/Azure/terraform-provider-azapi/issues/503#issuecomment-2106030842

See this.
Azure/terraform-provider-azapi#503 (comment)

onto it.

fixed with no time waits required, pulled them out.  I've converted the vnet peering to azapi too so i can use the same there.
thanks @matt-FFFFFF !
i believe this is ready for review again.

LGTM 🚀
we should include some information on how to migrate from the last version to the new version
or are we still just in the development phase so we don't need to include any migration guides between versions ?

That's a question for the AVM core team - I've started with some notes above to call it out - but it is incomplete.

This is quite a change between versions, as the module is switching from using azurerm provider to use AzAPI provider.

I don't think he change from AzureRM to AzAPI is so important as that is internal to the module - what's more important is the naming of variables (inputs) and outputs have changed (I believe the changes are all necessary, to align with the spec, or for consistency).  The internal implementation should be changeable without notification as long as the usage is the same - but in this case the usage has changed as well.

LGTM 🚀
we should include some information on how to migrate from the last version to the new version
or are we still just in the development phase so we don't need to include any migration guides between versions ?

That's a question for the AVM core team - I've started with some notes above to call it out - but it is incomplete.

This is quite a change between versions, as the module is switching from using azurerm provider to use AzAPI provider.

I don't think he change from AzureRM to AzAPI is so important as that is internal to the module - what's more important is the naming of variables (inputs) and outputs have changed (I believe the changes are all necessary, to align with the spec, or for consistency). The internal implementation should be changeable without notification as long as the usage is the same - but in this case the usage has changed as well.

Absolutely, I totally agree that normally internal module changes are not required to be notified specially, but in this case here, if you just go from version 0.2.x to 0.3.0 even though you have not change any inputs required for the module, you will get notification on "Destroy" because the azurerm provider is no longer being used to create the virtual networks / subnets hence the state file doesn't match the references. - and then you need to import all existing resources, that alone I think is worth mentioning in breaking changes at least.

Oh good point I forgot to add moved blocks, will do.

Oh good point I forgot to add moved blocks, will do.

[resources will be destroyed and recreated because] the azurerm provider is no longer being used to create the virtual networks / subnets hence the state file doesn't match the references

edit I had thought that perhaps moved blocks would work but of course because the resource types are different it won't.  hmm..  I wonder if 'moved' was done from outside the module it would work?
edit2 can't see how moved would help even if called outside the module, looking at the behaviour it just seems to rename the actual resource in the state & then re-run the plan - whereas when look at the state the representation of azapi & azurerm resource is different - so a simple rename won't cut it.
Don't have a good answer here - any thoughts @matt-FFFFFF  ?

Yeah I think moved block would do the job, nice solution! 👏

Yeah I think moved block would do the job, nice solution! 👏

Sorry as per my edits I don't think the ``moved`| block will help 😕.  Open to suggestions...

Can we use import & removed blocks?

Can we use import & removed blocks?

sounds painful 😅, but ok - i might need some help testing this.  My MSDN subscription has ran out of money until +2 weeks 😿

Some docs need updating for AVM standards.
I am unsure why we need to supply the subscription_id as a variable since we are supplying the resource id of the vnet if using an existing one?

explained sub requirement in the code feedback, a copy:

Optionally this allows vnets to be made in a different subscription.
Can't always be inferred from existing vnet as this is optional.
If not there this will mean resources are made in the current sub.
Is this trying to be too clever, maybe. In theory this module as it stands could drop into to LZ module too.

Can we use import & removed blocks?

sounds painful 😅, but ok - i might need some help testing this.  My MSDN subscription has ran out of money until +2 weeks 😿

I can help with that! I've enough credits on my subscriptions 😊 just tell me what you need ? 💪

Can we use import & removed blocks?

sounds painful 😅, but ok - i might need some help testing this.  My MSDN subscription has ran out of money until +2 weeks 😿

I can help with that! I've enough credits on my subscriptions 😊 just tell me what you need ? 💪

Matt is suggesting using recently added TF capability to update the state - using removed {} and import {}.  These take a source & destination parameter:
They work the same as terraform state rm and terraform import, except they can be defined in the HCL, which helps in situations like this where we need to shift resources between different resource types.
See: https://developer.hashicorp.com/terraform/language/modules/syntax#removing-modules as an example for "removed".
If it was just refactoring, and the same resource type, then moved {} would do the trick.
In terms of approach, what I'd suggest is use the new "complete" example from this new PR, because it has more coverage, against the current version of the module, and then the challenge is to make it migrate to this version using the import & removed blocks.

Update; just realised the subnet outputs are in need of love too - I've posted c653c98

@kewalaka Given the scale of this change and the likelihood that I am going to add code to it as I test it, I have migrated your branch over to the main repo. Unfortunately, there is no way to change the source branch for a PR, so I'll need to close this PR and open a new one. All your commits are still there with your name on them, so you'll still get the credit for this.

You'll get credit for the lines of code!


Improvement/c 539 filter members by channel

Changes proposed ✍
What
Added the ability to filter members by channel during membership query.

🤖 Generated by Copilot at 6423c40

channel column joins
members and activities
autumn leaves falling

Why
How

🤖 Generated by Copilot at 6423c40

Add channel information of members to the response of getMembers method in MemberRepository class (link, link, link, link, link)
Create a CTE to_activities that joins activities and members tables by distinct channel and member ID pairs (link, link)
Left join members table with to_activities CTE by memberId column and assign alias member_interactions (link, link)
Add channel column alias to selectFields array that refers to member_interactions."channel" (link)
Use member_interactions alias in filter function to apply channel criteria (link, link)

Checklist ✅

[x] Label appropriately with Feature, Improvement, or Bug.
[ ] Add screehshots to the PR description for relevant FE changes
[ ] New backend functionality has been unit-tested.
[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.

Thanks for the PR! However, the channels should come from the MV, for performance reasons.

@joanreyero made.


PBJ send requests to those two services regularly by a timer.
That is a need to create an admin PBJ endpoint to initiate PBJ to request those services without waiting, so, we will not waste time in the tests and don't face with flaky tests which may occur because of that regular line items update.

unit


BERNOULLI EXCEPTION

SELECT * FROM fact_halllogin_detail TABLESAMPLE BERNOULLI (10) where dt>=20220710 limit 10
Exception:
Encountered unexpected token: "BERNOULLI" <S_IDENTIFIER>
at line 1, column 49.
Was expecting one of:
";"
"CONNECT"
"EMIT"
"GROUP"
"HAVING"
"PIVOT"
"START"
"WINDOW"
<EOF>

Greetings.
You will need to provide much more information please:

What RDBMS
What Version of JSQLParser
What should the BERNOULLI(10) represent, it seems to be far from any SQL dialect I know

Greetings.
I am using jsqlparser version 4.4 and the corresponding database is prestodb.


Localized messages

Is there a way to use panellum in a translated version? I just read issue 296 and thought it would be great to have error messages or other texts available in other languages. It's not suitable to always create a localized version when there has been an update on the source.

Duplicate of #147.


Shorten SharedClasses Softmx test names

Shorten SharedClasses Softmx test names
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>

Background: Since adding _nightly to the name of the builds, some of the paths used in these tests have exceeded the max length of paths allowed on Windows. Details here: https://github.com/eclipse/openj9/issues/5462


Zotac 503 even with test:series

Zotac appears to give 503 even with test:series.

after troubleshooting it is due to the cloudflare page.

instantly just backs off of zotac as soon as it loads cloudflare page


Implement DataArray.to_dask_dataframe()

Adds a method to_dask_dataframe() to convert a dataarray to a dask dataframe.

[x] Closes #7409
[x] Tests added
[x] User visible changes (including notable bug fixes) are documented in whats-new.rst
[x] New functions/methods are listed in api.rst

I have added the function to_dask_dataframe() in dataarray.py . This implementation is as suggested in issue #7409 . The function first converts the data array to a temporary dataset and then calls Dataset.to_dask_dataframe() method.
Could you please review it . Thank you.

I have made the changes as suggested. Please review them .Thanks

I have made the changes .Please review them.

@dsgreen2 if you apply the last review comments this is good to go.

Thanks for your patience here @dsgreen2 . This is a nice contribution.


In-memory engine: optimize auto evict

What is changed and how it works?

Issue Number: Ref #16141

What's Changed:
This PR optimizes the auto eviction by:
1. periodically, check regions with pretty low read flow or mvcc amplification and evict them regardless of the memory usage.
2. maintain the moving average of the mvcc amplification reduction (reduced multiples before and after cache). When new top regions comes in and the memory usage reaches stop-load-limit-threshold, use the moving average of the mvcc amplification reduction to estimate the mvcc amplification of the top regions after cache and use it to judge whether some regions should be evicted.

Currently, auto eviction unit evicts regions that are no longer top regions when the memory usage reaches to the soft limit threshold.
The drawbacks are:

only when the memory goes high will get region evicted, so there maybe some regions get cached unnecessarily which consume CPU resouces.
regions get evicted based on whether it is top regions. This is inaccurate as when regions are cached, they will do IME gc which definitely reduces the read flow.

This PR optimizes the auto eviction by:

periodically, check regions with pretty low read flow or mvcc amplification and evict them regardless of the memory usage.
maintain the moving average of the mvcc amplification reduction (reduced multiples before and after cache). When new top regions comes in and the memory usage reaches stop-load-limit-threshold, use the moving average of the mvcc amplification reduction to estimate the mvcc amplification of the top regions after cache and use it to judge whether some regions should be evicted.

todo: optimize eviction when memory usage reaches soft-limit-threshold.
Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/retest-required

@glorv PTAL again, thanks.


Clarify requirement of file URI scheme to be written to disk

This is a follow up from the conversion in https://github.com/microsoft/vscode-eslint/pull/1560 regarding unwritten buffers and the requirement of the file URI scheme to be written to disk.  VS Code uses the untitled scheme, and from the conversation in the mentioned PR, the clarification should be focused not on how clients should specify untitled/unwritten buffers, but rather that the file scheme should only be used if a file is written to disk.
I'm happy to open PR to update the spec, but I'd like to know your preference of where this would fit. I'm thinking perhaps a short mention of this in the URI section? Or is there a better place to document this?

A PR is more than welcome. What we should mention is that a file URI scheme is meant to be stored on disk and should not be used for example to identify a scratch buffer.

So if a file was deleted from disk, for example, and the editor still has it open, it should not send any requests to the server for this file/buffer and only start sending requests if/when it's saved?

The editor can still send request under that URI to the server if it is open in the editor. In this case the content is owned by the editor anyways. If the file is not open in the editor and a client would send a request using that file URI it is OK for a server to error such a request.
The intention of a file URI should be that it is stored locally on disk. We shouldn't use file URIs for temporary in memory buffers.

The intention of a file URI should be that it is stored locally on disk. We shouldn't use file URIs for temporary in memory buffers.

To clarify, @dbaeumer, are you suggesting that a client should use a different schema other than file: for in-memory buffers?
Should a document transitioning from "exists on disk and open in the editor" to "deleted from disk but still open in the editor (now an in-memory buffer)" undergo a textDocument/didClose and textDocument/didOpen under the different scheme (or if undeleted or transitioning from in-memory to persisted on disk)?

Related: https://github.com/microsoft/language-server-protocol/issues/1030

To clarify, @dbaeumer, are you suggesting that a client should use a different schema other than file: for in-memory buffers?

Yes, that is actually the recommendation.
If a document gets deleted on disk I would argue to not change the URI to an in memory URI since editors usually allow users to save the file again on disk under the same name.

If a document gets deleted on disk I would argue to not change the URI to an in memory URI since editors usually allow users to save the file again on disk under the same name.

That's the case when some servers don't like. Eslint server is one such example. :) It will crash if we call textDocument/didOpen with file: scheme when file doesn't exist on disk.

I opened https://github.com/microsoft/language-server-protocol/pull/1679 to resolve this issue by clarifying the file scheme in URIs.

This got improved to my knowledge. Closing.


Added Animation creator tool

Hi,
I recently used your library for my 8x8 bicolor LED matrix.
In order to create some Animations, I added a tool to create them in Excel and convert them to code.
Maybe this will be helpful for your applications as well.
Let me know what you think about the tool.

Sorry, but I'm not including this. I don't have Excel, and I'm not keen on including uninspected binaries in the repo. You should release this yourself.


integration schematic

Review integration schematic done by Maria.

Diagram: https://github.com/PREreview/api/blob/main/Diagram OPS_PREreview.xml
App to edit it: https://app.diagrams.net/

Screenshot of 1st diagram of workflow integration presented by @elena-herrera:


LB blocks outgoing traffic from container to service

Rancher Versions:
Server: 1.3.3
healthcheck: 0.2.0
ipsec:
network-services: metadata:0.7.0 network-manager:0.4.0
scheduler:0.5.1
kubernetes (if applicable):
Docker Version:
1.12.6
OS and where are the hosts located? (cloud, bare metal, etc):
RHEL 7, VMware
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
SingleNode, ExternalDB
Rancher Agent on same host as server with additional IP address
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
create simple webservice container (toughiq/phptest:7)
create loadbalancer to route traffic to webservice
Results:
when trying to access webservice from within the webservice container (eg: curl ) using IP/URL of lb the request hangs or times out.
when accessing service from outside, everything is fine. traffic routed through lb to webservice.
I assume it has something to do with the IPtables created for routing the traffic. maybe it catches outgoing traffic from containers.

Found this solution:
I changed these 2 settings and now my problem is gone:
To resolve this Warning I add those two lines info my /etc/sysctl.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1

See: https://github.com/docker/docker/issues/24809


Add modelprocessor class to generate 2 kubernetes services (http, ssh…)

This PR provides the following modifications :

Add java modelprocessor class to generate 2 kubernetes services (http, ssh)
Remove the existing kubernetes json file as we will generate it.
Update pom with fabrix8 kubernetes properties
Generate mounted volumes

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/fabric8-quickstarts-master-pullreq/480/
Test PASSed.


should be SetParams

https://github.com/zhenghaoz/gorse/blob/faccc99d2fba1702b28b88e80aadbb7dfd4b4ff6/model/base.go#L46

:scream:  Oops!!! It's a typo.


introduce deadline queue #sonar

The migration guide requires updating.

Yes, it will be done in the next pr when new canardTxPoll appears.


Create pipeline for publishing to PyPi

Should run the tests, linting, dependency checks etc before finally publishing to PyPi

Added workflow to build and push to PyPi on creation of a new release in #10


TypedTableBlock: Add aria-label to column heading input

All inputs need a valid label of some kind, so this PR adds an aria-label attribute to the column heading inputs, which previously didn't have a label.
(Part of #7646)

[x] Do the tests still pass? (https://docs.wagtail.io/en/latest/contributing/developing.html#testing)
[x] Does the code comply with the style guide? (Run make lint from the Wagtail root)
For Python changes: Have you added tests to cover the new/fixed behaviour?
For front-end changes: Did you test on all of Wagtail’s supported environments?

Please list the exact browser and operating system versions you tested.

Firefox 88 on macOS 10.15.7

Please list which assistive technologies you tested.

For new features: Has the documentation been updated accordingly?

Assigning to @Scotchester and I to take to the next accessibility team discussions.


update Conformance Prgrm with trusted provider links

the prgram has only placeholder text instead of hyperlink to the repos atm. since we now have those addresses, we should add them
https://open-credentialing-initiative.github.io/Conformance-Program/latest/index.html#trusted-service-provider-registries
suggest that

we refer to wallet criteria for issuer reg
link to https://github.com/Open-Credentialing-Initiative/marketplace/tree/main/proof for wallets? or create dedicated file that links to the proof folder?

Team to review for discussion and attempt to approve on 2023-11-16


Crash on injection

i ran it as administrator and it just shuts down csgo..

Tbh sounds like YOU issues.
Check if Anti-Virus didnt delete it or brok it
Check if your DLL that you are trying to inject works (debug or tf you want to do)

fixed


Fix how error message is generated when running configure

Very minor fix:
When your TF_CUDA_VERSION does not match the observed CUDA version, an error is raised. Before this patch, the error message generation fails because the % operator is applied to only half of the format string. After this patch it correctly creates the error message and displays it as expected.

Can one of the admins verify this patch?

Jenkins, test this please


Using Given/When/Then side-by-side with before/it?

I've found that depending on what I'm testing in some cases I might prefer the traditional rspec context/it flow, and in other cases  Given/When/Then flow.  Or I might want to gradually migrate a file full of tests from one to the other, so while in transition the file might have some of each kind.
It would be nice if the README could document whether & how it's OK to do something like:
describe "Thing" do
  context "traditional" do
    before(:each) { setup something }
    it "works" do
       try something
       expect to get the proper result
    end
  end
  context "newfangled" do
    Given { setup other }
    When { try other }
    Then { get the other result }
  end
end

That seems like it would work (and I think it does), but things seems like they'd get messy if there was a Given nested inside a context with a before or vice versa.  (Or maybe there's a well-defined way in which it can work?)  Though I imagine before(:suite) hooks wouldn't be a problem.
Anyway, WBN for rspec-given to take a firm stand on what's expected to work.

In<EMAIL_ADDRESS>this was not encouraged but worked perfectly well because there was no interplay between the given/when/then methods.
In 2.x there may be subtle problems depending on what is combined, particularly in cases where a before or let raises error and is in turn only invoked by a Then. But honestly, the nuance needed to keep them working is mostly wasted as long as folks keep the given and traditional DSLs to mostly-separate contexts (which works fine)

Oh, your response beat me to it -- i was just about to close this and repost on the new repo.  WIll continue discussing here...

as long as folks keep the given and traditional DSLs to mostly-separate contexts (which works fine)

So should the README have a short section such as:
## Combining Given/When/Then with the traditional before/let/it DSL

Given/When/Then clauses and traditional rspec DSL blocks can coexist in the same suite,
as long they are in separate contexts, without any shared `before(:each)` or `let` blocks.

Shared `before(:all)` and `before(:suite)` blocks are fine and will apply normally.

Is that last sentence true?

I waffle on whether it's worth addressing in that light in the README. :+meh: for now

Clearly not a huge deal.  But I'd lean towards including something like it for two reasons:

It's really not completely 100% obvious -- I really don't know whether before(:all) will work in a context that has Given/When/Then in it.
It might make rspec-given more appealing if potential users know that it's not an all-or-nothing change,  i.e., that including rspec-given won't preclude using the traditional DSL in the same suite.

I think the latter is a compelling point we need to make, but I'm wary of saying it loudly and proudly until we really understand the constraints on the former

Oh... I thought it was just me who didn't understand :)  In that light, yeah I'd agree hold off proclaiming anything that ain't necessarily so.


Updating readme example queries

Fixes #386
Changes proposed in this PR:

Updating readme example queries so that they work with the V4 subgraph. Previously the examples were still for the V3 subgraph.

All good, just two minor comments


Feature Request: scrollTo(date: Date)

Hey there
So far, from what I know, it is relatively difficult to scroll to "today".
Think of the iOS Calendar and its "Today" button.
In order to achieve this, what I do is to setupCalendar(...) once again. That resets the calendar to the requested date.
It would be better if we could scroll to a specific date. Is that possible already? Am I missing something? Or could you add it? Much appreciated.
With best regards

Hi, thanks for giving me so many suggestions.
For this one, you can use func updateWeekView(to date: Date) in JZBaseWeekView.
However, there is no scroll animation for this method, because you can update to any date you want.


wget: unable to resolve host address ‘raw.githubusercontent.com’

Installation of Dashboard is not working. I tried this code: "wget https://raw.githubusercontent.com/Panther-X/PantherDashboard/main/install.sh -O - | sudo bash"
but the out put is this:
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘raw.githubusercontent.com’
Miner is offline and status light is always blinking. It's already been 2 weeks.

@jonas0567 It looks the domain name(raw.githubusercontent.com) was blocked by your network settings. If your miner is still can connect to the network,  please check the firewall setting in your network


Added check for options in authzHttpClient.

(This is for cases like httpClient.get(url), where there's no options object)


[Snyk] Upgrade @typescript-eslint/eslint-plugin from 5.59.9 to 5.59.11

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @typescript-eslint/eslint-plugin from 5.59.9 to 5.59.11.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 4 versions ahead of your current version.
The recommended version was released 21 days ago, on 2023-06-12.

Release notes

Package name: @typescript-eslint/eslint-plugin

5.59.11 - 2023-06-125.59.11 (2023-06-12)
Note: Version bump only for package @ typescript-eslint/typescript-eslint

5.59.11-alpha.0 - 2023-06-12

5.59.10 - 2023-06-125.59.10 (2023-06-12)
Note: Version bump only for package @ typescript-eslint/typescript-eslint

5.59.10-alpha.0 - 2023-06-05

5.59.9 - 2023-06-055.59.9 (2023-06-05)
Note: Version bump only for package @ typescript-eslint/typescript-eslint

    from @typescript-eslint/eslint-plugin GitHub release notes

Commit messages

Package name: @typescript-eslint/eslint-plugin

a91bb9e chore: publish v5.59.11
9768e98 chore: publish v5.59.10

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Codecov Report
Patch and project coverage have no change.

Comparison is base (8218e0d) 100.00% compared to head (62d8eac) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #73   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines          177       177
  Branches        53        53
=========================================
  Hits           177       177

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Sample improvements to generated readme

We are currently working on making the Track 1 auto generated libraries support @azure/identity. As part of this the generated readme for such packages should have relevant information on how to use @azure/identity. This PR does that plus a few other improvements to provide more clarity in general.
This PR is in draft stage as it is not meant to be merged, but only used for discussion to figure out what we want the generated readme to look like.
Things to note:

Min node version changed to 8 as we don't guarantee @azure/identity works in node 6
I have not touched the browser sample code as we don't really need to do that for this discussion
Am using the term "Azure Iot Central resources". My guess is that the code generator can figure out this display name for the service

cc @deyaaeldeen, @joheredi, @sadasant

One identity to rule them all

One identity to rule them all

Thanks everyone!
Closing this PR as @deyaaeldeen will do the needful in https://github.com/Azure/autorest.typescript/pull/846

Thanks everyone!
Closing this PR as @deyaaeldeen will do the needful in https://github.com/Azure/autorest.typescript/pull/846


Cookbook with invalid dependencies causes ALL Chef client runs to begin failing (even on nodes that do not use the cookbook in question)

Chef Server Version
Standalone CINC Server 14.15.10
Platform Details
RHEL 8,7 on-prem
# free -h
              total        used        free      shared  buff/cache   available
Mem:          7.6Gi       3.2Gi       298Mi       457Mi       4.1Gi       3.7Gi
Swap:         2.0Gi       1.1Gi       892Mi

# df -h
Filesystem                   Size  Used Avail Use% Mounted on
devtmpfs                     3.8G     0  3.8G   0% /dev
tmpfs                        3.8G   44K  3.8G   1% /dev/shm
tmpfs                        3.8G  385M  3.5G  10% /run
tmpfs                        3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/rootvg-rootlv     10G  2.1G  8.0G  21% /
/dev/mapper/rootvg-homelv    7.0G   83M  7.0G   2% /home
/dev/mapper/rootvg-tmplv      27G  232M   27G   1% /tmp
/dev/mapper/rootvg-optlv      31G  1.6G   30G   5% /opt
/dev/mapper/rootvg-varlv     146G   12G  135G   8% /var
/dev/sda1                   1014M  278M  737M  28% /boot
/dev/mapper/rootvg-varloglv   15G  3.2G   12G  21% /var/log
tmpfs                        777M     0  777M   0% /run/user/510079027

Configuration
Standalone, recent migration from long-standing Chef Server to CINC
Scenario
Cookbook is pushed to CINC server with potentially unresolvable metadata.rb dependencies.
Steps to Reproduce
Cookbook metadata.rb contained the following...
chef_version '>= 12.5' if respond_to?(:chef_version)

supports 'windows'

# depends 'windows'
# depends 'cb-example'
gem 'vault'
depends 'chef-vault', '< 3'
gem 'chef-vault', '< 4'

Expected Result
Cookbook should be uploaded successfully, or return an error if there is something wrong with dependencies.
Actual Result
All Chef client runs were failing with the following errors:
ERROR: Server returned error 500 for [https://chef.tattsgroup.com/organizations/tattsgroup/environments/<environmentName>/cookbook_versions](https://chef.domain.local/organizations/myOrg/environments/ProductionDC1/cookbook_versions), retrying 1/5 in 4s
...
...

================================================================================
Error Resolving Cookbooks for Run List:
================================================================================

Unknown Server Error:
---------------------
The server had a fatal error attempting to load the node data.

Server Response:
----------------
internal service error

Logs in /var/log/cinc-project/opscode-erchef/crash.log began displaying the following error at the time the cookbook was uploaded:
2023-03-02 11:09:46 =ERROR REPORT==== {<<"method=POST; path=/organizations/tattsgroup/environments/ProductionDC2/cookbook_versions; status=500; ">>,"Internal Server Error" }

Observed high CPU usage from /opt/cinc-project/embedded/service/opscode-erchef/bin/oc_erchef
Observed high CPU usage from 5 instances of the following ruby command:  ruby /opt/cinc-project/embedded/service/opscode-erchef/lib/chef_objects-14.15.10/priv/depselector_rb/depselector.rb
After deleting the newly uploaded cookbook version, Chef server CPU usage begins to return to normal over the course of several minutes and Chef client runs are once again able to run without error.

Would you be able to upload the cookbook that you are seeing this issue with and also a gzip of the log directory that includes the error. That will help us understand a few more things that might be causing this issue.

Logs have been uploaded here
The issue began at 2023-03-02 11:09:46 AEST, or 2023-03-02 00:09:46 UTC

Here is the cookbook version that caused the issue.
cb_octopus_server-1.0.1.zip

Hi, @PrajaktaPurohit I uploaded everything request the same day you asked for it, yet this is still marked as Waiting on Contributor.  Can you please remove that tag?  Thanks.


Filter users with 4, 6 or 7

Description
Provide filtering options for persons with codes 4, 6 or 7
Additional Information
No response
Tasks
No response

Why? Id 10 not good enough for you?
Do you have an extra goto 10 line?


No seeing the options you show — Add and Open Themes

The 'Add' and 'Open Themes' buttons do not exist in Visual Studio Mac?
There is no right hand column. And a most recent update changed the code colors completely

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

ID: 584ac5ab-9547-f2d8-6186-783520b9e1ef
Version Independent ID: 1f76cf76-b4b8-4cbb-c4ed-1c6a6f2130bd
Content: Editor Themes - Visual Studio 2019 for Mac
Content Source: mac/editor-themes.md
Product: visual-studio-mac
Technology: vs-ide-general
GitHub Login: @cobey
Microsoft Alias: cobey

Hi - this is my bad. I figured it out, you can close the bug.


[BUG] Horizontal bar is vertically stretched after commit 77adfbc

Checklist before submitting an issue

[X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
[X] I have specifically verified that this bug is not a common user error
[X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug
Right after the commit 77adfbca6b3ece5b4872138d48c90d738d2afa90 The bar seems to be vertically stretched
Reproducing the issue
Any commit latter the specified seems to have this bug.
And a small repro is just a box with a string:
eww.yuck
(defwindow topbar
  :monitor 0 :stacking "fg" :wm-ignore false :windowtype "dock"
  :reserve (struts :side "top" :distance "32px")
  :geometry (geometry :x "0" :y "0" :width "100%" :height "30px" :anchor "top center")
  (box "hi"))

eww.scss
* {
  all: unset;
  font-family: "Material Design Icons", "CaskaydiaCove Nerd Font";
}

.topbar {
  font-size: 16px;
}

Expected behaviour
Expected:

Actual after that commit:

Additional context
No response

My assumption is that your font-size field doesn't apply anymore now, try .topbar > * or sth -- that change was more breaking than I thought 👀

I'll close this for now, as I assume no response means that worked ^^ If there's some bug here I'm missing, feel free to reopen

Hello! I forgot about this for a long time keeping my build at old commit, recently when packaging for void I noticed it is still misbehaving with my config, and .topbar > * isn't working either.
However if I put everything in a literal, like so:
(defwindow topbar ...
  (literal :content '(centerbox :orientation "h"
    (barleft) (barmiddle) (barright))'))

all the widgets inside mostly renders to their correct height:

except the fact that the vertical height of the whole encapsulating window is still exceeding the given window size. Idk what literal has to do here in the style_context, I'll investigate further and report back.
This is not fixed, sorry for being inactive for months :sweat_smile:.

I'm also experiencing this, but the minimal example actually does work for me.
I'm guessing it may be related to the font family; on my machine I don't have either of the specified fonts, and fc-match resolves them both to Noto Sans.
The height of the topbar window only shrinks down to 21px tall with Noto Sans, even with the font size set to 0px, no matter how small i make the window's height in yuck.
As an experiment, I changed the font family to Fira Code, and then with the height of the topbar window shrinks down to 19px tall, but again no further.

Using a .background rule like this works; the window is no longer stretched unnecessarily:
* {
  all: unset;
}
.background {
  font-family: "Fira Code";
  font-size: 7pt;
}

(if it doesn't appear to work at first, try fully restarting the eww daemon)
I don't understand why this is necessary though. Looking at the inspector, "topbar" and "background" are both classes on the same element, and a .topbar rule like this does set the font size on the window (and every child widget), just as .background does:
* {
  all: unset;
}

.topbar {
  font-family: "Fira Code";
  font-size: 7pt;
}

...yet the window is still stretched vertically. It feels as though there's a default font size on some hidden higher-level widget which is forcing it to request more space, which the .background rule somehow catches.


Email checkbox different in skillmap and webapp

The checkbox is filled in in the skillmap, and empty in the webapp

same as https://github.com/microsoft/pxt-arcade/issues/4160

This is fixed.


run_sim_push_video_only.sh: line 8: --temporal_num_layers=3: command not found

HI, there is a list of errors occurring when I try to launch the scripts. This is the piece of error list when the run_sim_push_video_only.sh: is launched. Is it a tensorflow version problem? Tried the solution here https://github.com/tensorflow/models/issues/3705#issuecomment-375563179 but still didn't help. Can you please look what could be the problem and solution?
 Number of demos: 9228 TIMER:data_generator.py:extract_supervised_data: Normalizing states (Elapsed: 0.966589s)  TIMER:data_generator.py:generate_batches: Generating batches for each iteration (Elapsed: 661.176920s) WARNING:tensorflow:From ~/daml/mil/data_generator.py:194: string_input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by ``tf.data``. Use tf.data.Dataset.from_tensor_slices(string_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...).
WARNING:tensorflow:From ~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/training/input.py:276: input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensor_slices(input_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...).
WARNING:tensorflow:From ~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/training/input.py:188: limit_epochs (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensors(tensor).repeat(num_epochs).
WARNING:tensorflow:From ~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/training/input.py:197: QueueRunner.init (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
WARNING:tensorflow:From ~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/training/input.py:197: add_queue_runner (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
Generating image processing ops
WARNING:tensorflow:From ~/daml/mil/data_generator.py:196: WholeFileReader.init (from tensorflow.python.ops.io_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.map(tf.read_file).
Batching images
WARNING:tensorflow:From ~/daml/mil/data_generator.py:225: batch (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.batch(batch_size) (or padded_batch(...) if dynamic_pad=True).
Generating image processing ops
Batching images
TIMER:mil.py:init_network: building TF network (Elapsed: 9.237436s)
Traceback (most recent call last):
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 2673, in gather
return params.sparse_read(indices, name=name)
AttributeError: 'Tensor' object has no attribute 'sparse_read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 510, in _apply_op_helper
preferred_dtype=default_dtype)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1146, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 229, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 208, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 451, in make_tensor_proto
_GetDenseDimensions(values)))
ValueError: Argument must be a dense tensor: range(0, 20) - got shape [20], but wanted [].
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 524, in _apply_op_helper
values, as_ref=input_arg.is_ref).dtype.name
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1146, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 229, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 208, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 451, in make_tensor_proto
_GetDenseDimensions(values)))
ValueError: Argument must be a dense tensor: range(0, 20) - got shape [20], but wanted [].
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 314, in
main()
File "main.py", line 280, in main
model.init_network(graph, input_tensors=train_input_tensors, restore_iter=FLAGS.restore_iter)
File "~/daml/mil/mil.py", line 36, in init_network
result = self.construct_model(input_tensors=input_tensors, prefix=prefix, dim_input=self._dO, dim_output=self._dU, network_config=self.network_params)
File "~/daml/mil/mil.py", line 630, in construct_model
unused = batch_metalearn((inputa[0], inputb[0], actiona[0], actionb[0]))
File "~/daml/mil/mil.py", line 516, in batch_metalearn
local_outputa, final_eept_preda = self.forward((inputa), state_inputa, weights, network_config=network_config)
File "~/daml/mil/mil.py", line 252, in forward
context = tf.transpose(tf.gather(tf.transpose(tf.zeros_like(flatten_image)), range(FLAGS.bt_dim)))
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 2675, in gather
return gen_array_ops.gather_v2(params, indices, axis, name=name)
File "/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 3332, in gather_v2
"GatherV2", params=params, indices=indices, axis=axis, name=name)
File "~/daml/mil/.env/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 528, in _apply_op_helper
(input_name, err))
ValueError: Tried to convert 'indices' to a tensor and failed. Error: Argument must be a dense tensor: range(0, 20) - got shape [20], but wanted [].
./scripts/run_sim_push_video_only.sh: line 8: --temporal_num_layers=3: command not found
(.env) user@daml:~/daml/mil$
`

I believe this is a tensorflow version problem. The code is using tf v1.4.

I believe this is a tensorflow version problem. The code is using tf v1.4.

the same error with tf v1.4
./scripts/run_sim_push_video_only.sh: line 8: --temporal_num_layers=3: command not found

I don't think this error would affect training


MK750: Aurora stutters effects stuttering

Keyboard: Cooler Master MK750
Hello,
The lightning effects, even if they aren't interactive are stuttering and freezing whenever you press several keys in a row. As I'm typing this sentance the effects have stoppped and started again multiple times. This only happens when you write or click a lot of buttons.
Thanks!

 I'm still having the issue after uninstalling all Cooler Master Software.


[Feature] Generating locations automatically by task definition and dependency(通过任务定义和依赖自动生成位置信息绘制DAG)

It's difficult to locate tasks when the workflow is huge. Under the circumstances, it's difficult to add a new task dependent on some tasks.
So I reccommend that Generating locations automatically by task definition and dependency.
It's ok to calling APIs. Now I can define workflows by calling api /dolphinscheduler/projects/{projectName}/process/save, but if I don't set the x and y, the workflow shows bad.

BTW, it's another useful feature locating tasks.

如果工作流很大，包含很多任务时，很难找到指定的任务，这时添加新任务就困难了。
我建议可以通过任务的定义和依赖自动生成 DAG，包括节点的位置（类似自动绘图）。
目前通过调用 /dolphinscheduler/projects/{projectName}/process/save 这个 API，可以创建工作流，但是如果不指定 x 和 y 的数值，工作流展示界面就会很混乱，像图中这样。
PS：定位任务的功能也很需要。

version 1.2.1 support this feature

for now, i will close this issue, if not solved your problem, you can reopen it

I used the version 1.2.1, and it didn't work.


Error during go get tinygo.org/x/tinygba

Hi,
I've tried to use this repo in order to create some GBA apps/games and I have an error:
$ go get tinygo.org/x/tinygba
go: tinygo.org/x/tinygba imports
        device/gba: package device/gba is not in std (/home/gitpod/go/src/device/gba)
go: tinygo.org/x/tinygba imports
        machine: package machine is not in std (/home/gitpod/go/src/machine)

Can you help me about it?
thanks

@scraly both of those packages are part of the tinygo-specific packages. Perhaps your tinygo env is not set correctly?

I am in a new environment, with go 1.21.
in my memories you fixed 7 month ago the go.mod because device.gba where in a dev branch, isn't it?
So I think the go.mod file of ths repo need to be updated.

WDYT?

what is the output when you run this command?
tinygo env

Here is the output:
$ tinygo env
GOOS="linux"
GOARCH="amd64"
GOROOT="/home/gitpod/go"
GOPATH="/workspace/go"
GOCACHE="/home/gitpod/.cache/tinygo"
CGO_ENABLED="1"
TINYGOROOT="/home/linuxbrew/.linuxbrew/Cellar/tinygo/0.30.0"

Last question, hopefully:
which tinygo

 $ which tinygo
/home/linuxbrew/.linuxbrew/bin/tinygo

And I just tested in another machine, same problem:
$ go version
go version go1.21.5 darwin/arm64

$ tinygo version
tinygo version 0.30.0 darwin/amd64 (using go version go1.21.5 and LLVM version 16.0.1)

$ tinygo env
GOOS="darwin"
GOARCH="amd64"
<EMAIL_ADDRESS>GOPATH="/Users/avache/go"
GOCACHE="/Users/avache/Library/Caches/tinygo"
CGO_ENABLED="1"
TINYGOROOT="/Users/avache/homebrew/Cellar/tinygo/0.30.0"

$ which tinygo
/Users/avache/homebrew/bin/tinygo

$ tinygo run -target=gameboy-advance gopher.go
go: downloading tinygo.org/x/tinyfont v0.4.0
go: downloading tinygo.org/x/drivers v0.25.0
gopher.go:13:2: no required module provides package tinygo.org/x/tinygba; to add it:
	go get tinygo.org/x/tinygba

$ go get tinygo.org/x/tinygba
go: downloading tinygo.org/x/tinygba v0.0.0-20231205145444-0d73574106af
go: tinygo.org/x/tinygba imports
	device/gba: package device/gba is not in std<EMAIL_ADDRESS>go: tinygo.org/x/tinygba imports
	machine: package machine is not in std<EMAIL_ADDRESS>

my solution was to set in my environment that I am using go modules (instead of asking go to pull dependencies in a vendor folder):
$ GOFLAGS=-mod=mod tinygo build -o myapp.gba -target=gameboy-advance main.go

Thank you, it worked 😸


suggestion: documentation for creating a layout for yt2009?

i was trying to port a different youtube layout to yt2009, but it keeps crashing and i have no idea why
...documentation please?

most HTML files to be edited are in the root directory (watch.html, channelpage.htm etc), with some in root/static_pages. most "fillable" parts of websites (such as related videos for watchpages) are in back/yt2009templates.js. custom layouts are not within the scope of yt2009.
close if no further questions.

close if no further questions.

unrelated to layouts but what's the purpose of tokens and why does yt2009 complain if you leave a comment despite yt2009 obviously not being able to interact with the youtube account api (unless it does O_o)

is there any way to help debug layout bugs i end up creating or do i just have to deal with it

is there any way to help debug layout bugs i end up creating or do i just have to deal with it

welp i guess no help


chore: Update grpc-js dependency

Thanks @orgads! This will be released after we make some more testing with our libraries. I'm going to release this as -next and we'll use it for tests.

It's published as 2.2.1-pre and tagged next. It will go live in a few days.
https://www.npmjs.com/package/google-gax/v/2.2.1-pre

Thank you :)

Can you change the @grpc/grpc-js Version to 1.0.2? The older Versios have some issues with the HTTP-Proxy.

@ThWoywod Update to v1 was already merged: https://github.com/googleapis/gax-nodejs/pull/809. We just have to wait for a release (I need it to, you're not alone 😉). This PR can just be closed as far as I can see.

Release will happen today! Since v1.0 of @grpc/grpc-js came out so fast, I'm going to close this one.


pull request for e2e test at 11/15/2016 02:15:11

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Align icon to right side

Could you add an option to align the icon to the right of the name?

Sry for late response. Implemented in new version 1.1.0. Now you can change it using command /dc align right and return it back with /dc align left

Thank you


feat: Parameterize symbol demangling on command line.

This commit adds two new switched (--keep-mangled and --demangle) where --demangle is specified by default. keep-mangled can be useful when one wants to do the demangling themselves with a different library than rustc_demangle (e.g. to analyze symbol names with ast-demangle).

CI failures - you'll need to run tests and add changes from README.md - it's generated.

Sorz, I forgot to update the README.

I'll look into fixing unmangled names at some point before releasing it.


material refresh?

So, Chrome Canary has recently added a Material Design refresh, updating the design from the original spec.
I guess it's still early for that to be on the roadmap over here. Is there even some kind of updated public spec out there though?

Related: #11039

https://9to5google.com/2018/05/08/material-design-theme-engine/
Seems like it's not a major departure from current guidelines, more like they're giving developers more freedom to customize material design:
Excerpt from the article:
So where does the “Material Design 2” come in? Well, like I said above, Material Theming is all about bringing the overarching design language to new apps while letting brands build out its own look and feel. With this in mind, “Material Design 2” is Google’s Material Theme.
So does all of this mean? Well, Material Design in and of itself isn’t changing too much. Google did decide to update its look, but the main goal in introducing Material Theming is getting the right tools in the hands of developers to help them build better-looking apps that are also more user-friendly.

From watching the I/O videos, it appears the changes should affect just the CSS. I didn't notice anything that would affect behavior, though perhaps there are bits of that also just not so obvious.
This makes me quite hopeful that the various implementations of Material (especially Angular Material!) will be relatively straightforward to update to accommodate the new more theme-able Material appearance.
Of course I will be eager to hear what the core folks here, deep in the midst of trying to achieve this I suspect, have to say about the level of straightforwardness :-)

One thing that could be added is support for the different styles of icons (filled, rounded, outline, two-tone, sharp) source or animated icons

https://material.io/
Seems that it's not new components just customization support


Allow persistence of event offset

When the adapter restarts, some intermediate events can be missed because the offset is kept in memory.
We need a way to store the offset in a storage account instead.

The Hub struct can be customized to use an persist.CheckpointPersister. By default, a Hub uses an in-memory
CheckpointPersister, but accepts anything that implements the persist.CheckpointPersister interface.
-- https://github.com/Azure/azure-event-hubs-go

Related question raised in Slack recently:

Hi, do we have some docs on how AzureEventHubSource works ? Specifically the checkpointing logic.
I cant seem to find anything on that.
I went through the code and I think some context on this would help.
Where are the checkpoints being stored ?

eventhub.ReceiveWithLatestOffset(),
eventhub.ReceiveWithConsumerGroup(a.ehConsumerGroup))


Does not implement flumeview.destroy()

See also: https://github.com/flumedb/flumedb/#flumeviewdestroy-cb

hmm, no this should expose the destroy provided by the internal flumeview-level


awesome new stuff

HyperTerm, DevTools installer, and more!

There is an open PR for HyperTerm #387. I was holding off to make sure we had an OK from someone on the project—do you have that?

Just replied in the other PR. Thanks @zeke @jlord !

Just realized this wasn't for apps on /apps. Whoops 😊