Update link to zend-router

Thanks!

@michaelmoussa shouldn't this be merged into develop as well?

Whoops, good catch. Thanks @xtreamwayz

No, thanks to @Koopzington, he told me on IRC.

oh stop it, you... 😊


Better twitter auto-image?

I feel like we've discussed this before but there has to be a way to adjust the auto-generated image when we link to the site on twitter. It's a weird zoom in on something (part of the map?) presently.

What browser and OS are you using?  I've tested it on firefox and chrome on windows 10 and it seems to be correct:
https://i.imgur.com/7Ps932X.png?1

Sorry, should have clarified. This is in Android.

Huh It looks okay on android for me as well.  What phone do you have?  We can check resolution

It's a Motorola G5plus. 1920x1080 resolution.
If this is really only affecting people with this specific model, certainly becomes a less urgent issue.

Yeah... I really could have provided more useful info here. The twitter app.

@pdvorchik anymore info here? did we figure out what was causing this?


Breakpoints improperly getting hit on file with same name

I have multiple projects with files called Utils.fs.  When I set a breakpoint in one, both get hit.  See attached screenshot.  Notice that only the text in the background (where the breakpoint is getting hit) does not match the debugger modal.
Both are line 23, both are Utils.fs.

@NatElkins Sorry for the long response. Is there a chance you could check if it reproduces in recent builds, e.g in 2019.3 EAP?
@Iliya-usov have you seen something like this before?

Closing the stale issue. @NatElkins If you happen to see this again, please let us know.


Copy failed with: fopen () failed

Hello, since 2 days I have this issue
On other plotters(computers) it do work
I have the newest version 0.1.2a
I already restarted the computer, tried another plot directories and other SSD's
I can't get rid of this issue
I'm using
-n -1 -t E:\temp\ -2 E:\temp (tried also temp2) -d E:\final (tried also other drives!) -r 16 -u 512 -v 128
I don't know what to do anymore
I also changed the permission from all folders to full Access
I'm using windows 10
What I've just see that the plot file has a .plot.tmp extension and the plotter tries to copy the .plot file but it's a .plot.tmp file ?!

you must put a \ at the end of each directory eg. -d E:\final\ (-n 1 -r 16 -u 512 -v 128 -t E:\temp\ -2 E:\temp\ -d E:\final\ )

madmax renames the file from plot.temp to .plot after copy. u can still use the temp file by manualy copying it and renameing the extension

you must put a \ at the end of each directory eg. -d E:\final\ (-n 1 -r 16 -u 512 -v 128 -t E:\temp\ -2 E:\temp\ -d E:\final\ )

Yes, I did that, that was not the issue
I solved it meanwhile
It was my backup software(aomei backupper) for my company Data, that software blocked mmplotter the access to that file

madmax renames the file from plot.temp to .plot after copy. u can still use the temp file by manualy copying it and renameing the extension

Yeah of course, but I can't 24/7 run every 90 minutes to the computer and move and rename the files 🤣
So if anyone else have issues like that, check the backup Software if you have one!!
Or in some cases it could be the antivirus or wrong permissions on that folder

I don't think of it's because of the backup program. I didn't found the error file in ssd tmp driver and any other hd drivers, it lost!


EFX Editor regression

After the changes introduced by Giorgio Rebecchi, the EFX capabilities (Position, RGB, Dimmer) are now autodetected from the fixture heads.
Problem is that if a head has RGB channels but not Pan/Tilt (and the fixture definition do have them) the EFX editor doesn't show the "Position" capability.
Now, we cannot check every single fixture definition, so this has to work regardless, as it is a regression to what we had before

Should be fixed.
The only counter effect in the EFX editor is that selecting a Fixture with 2 heads will show the Position capability for both heads.
Users should select just one head if they want to use just positions and not RGB or Dimmer


[hotfix] Fix JSONDeserializationSchema for Kafka; ParameterTool usability

The JSONDeserializationSchema was implementing the KeyedDeserializationSchema. However, it was not using the key or any other additional metadata.
Therefore, I changed the base class.
Also, the ParameterTool's exception for reading a .properties file has been improved.

Please move the change to the parameter tool exception into a separate commit.

Thanks for the review. I'll split and merge the commits


Initial commit of returning data

This combines eager evaluation and returning data into one article, with small changes and some restructuring.

[x] Check the notebook reads OK
[x] Test a sample of the links

In[6]: I think it's meant to print out rescue_pandas

I think it would be worth mentioning other functions that will be affected by turning eager eval on. Ideally there would be a list on another website we could link to. I'll have a look

I think it would be worth mentioning other functions that will be affected by turning eager eval on. Ideally there would be a list on another website we could link to. I'll have a look

Had a look at documentation and source code. I could only find reference to eager evaluation in the below functions. The latter two take arguments for eager evaluation so it's just the first that is affected by the Spark session builder property.
.show()
.checkpoint()
.localCheckpoint()


PREVIEW IS BLANK

can anyone help please?

It is just working for property and variables

It is just working for property and variables

Its the same for me, its only blank even though i have tried multiple stuff even though what you had in your examples

Same here. I'm assuming it's due to your python interpreter being from anaconda (i use that too), but others have been saying the extension only supports the base python interpreter: not a virtualenv like the base environment created from conda. Not completely sure so don't take my full word on it but from my understanding that's whats up :(

Same here. I'm assuming it's due to your python interpreter being from anaconda (i use that too), but others have been saying the extension only supports the base python interpreter: not a virtualenv like the base environment created from conda. Not completely sure so don't take my full word on it but from my understanding that's whats up :(

Same here. I'm assuming it's due to your python interpreter being from anaconda (i use that too), but others have been saying the extension only supports the base python interpreter: not a virtualenv like the base environment created from conda. Not completely sure so don't take my full word on it but from my understanding that's whats up :(

Well i dont use anaconda

Same here. I'm assuming it's due to your python interpreter being from anaconda (i use that too), but others have been saying the extension only supports the base python interpreter: not a virtualenv like the base environment created from conda. Not completely sure so don't take my full word on it but from my understanding that's whats up :(

Well i dont use anaconda

I got the same problem here, some updates about it ?

I noticed that question #28  solved this problem: Need a global python environment.
For example: in Windows, you need to install Python using the Microsoft Store.


When i send the word Generic nothing happens

Cloned the tutorial and everythings working apart from when you send a message of "Generic" it does nothing, it shows the message has been read but the app doesn't respond with the postback

You have to modify the initial app.post. Otherwise it just follows the first rule and never gets to the updated rule which specifies the response to 'Generic'

Modified the post method. Still nothing happens. This is my repo -
https://github.com/pankaja-shree/my-bot

Hi Victor,
I have attached a screenshot of the section you mention. What code do I need to put in on line 43 (A guess)?

Would appreciate any help I can get on this one. Almost there now, got the text reply, just need to cards. :)

You need to modify app.post() to call the sendGenericMessage() function if the incoming message is 'Generic'
I'm assuming that you already added the sendGenericMessage() function to your index.js file

Hi @dchege711 ,
It transpired that I had already added that code in at the bottom. I moved that up an replaced it with the older code. I had managed to get it working!
Thank you so much for your help.
As a side question, what is the function of the Postback button?
Facebooks description helped a little, but does not provide much in the way of context: https://developers.facebook.com/docs/messenger-platform/webhook-reference/postback
Is it saying that when I press Test button, that is the same as my pressing of Postback on the card?


2nd_vaccination data value for Germany - currently states only

It seems the new 2nd_vaccination value is only available for the individual states. Would be great if the sum of all states would be available as a field for Germany. The Excel sheet contains the sum also, so I guess it should be a rather easy thing to add.
Anyway, thanks for the great API!

Done :-)

Done :-)

Thanks!!

Thanks!!


Omit year picker/label for birthdays (month/day only)

Is your feature request related to a problem? Please describe.
I am using this component as a birthday picker but I only want the user to pick the day and month, not the year. I set the display format to "MMMM d" which displays the date as something like "January 5." The problem is that the year is shown within the calendar component.
Describe the solution you'd like
Add ability to disable year display in calendar.
Describe alternatives you've considered
Add ability customize calendar in a way that would make it possible for the user to remove the year label without modifying the code of this addon.

I see there is a renderCustomHeader method but it replaces the entire header. It would be theoretically possible to modify this function to acheive the desired results but it would be difficult.


reproducibility and rendering of results

I have trouble rendering experiments from the evaluation. When I  run render_hof.py on my local machine the resulting agent behaves very poor. The log of the experiments reports scores of well above 3000 points on average, and when I run it locally I get below 1000 points.
python neuro_evolution_ctrnn/render_hof.py --dir results/evaluation/ant/2 --slow_down 0 --hof 1

Some possible ideas:

something was changed in the code between the evaluation and today
something broke such that the unpickled individuals behave different then when they were stored.
on the workstation is a different version mujoco installed
maybe the hardware-difference between different machines even plays a role (like it does for the random number generator for example)

closed because of inactivity. Feel free to reopen if mujoco envs start acting up again.
fyi @Dranero: this problem existed in the past, but was never resolved. If you encounter this problem (are a one like it) it may be related to this issue

closed because of inactivity. Feel free to reopen if mujoco envs start acting up again.
fyi @Dranero: this problem existed in the past, but was never resolved. If you encounter this problem (are a one like it) it may be related to this issue


Add async_logger method

This PR attempts to resolve design issues around the async_writer optional argument by removing it in favor of a async_logger method. Now, logger gives a synchronous logger, just like the current release, and the new async_logger gives an asynchronous logger. Users wanting to customize the writer can do so by using the Logger initializer, which was also made public in this PR. Also remove the other breaking changes made to current public API.

@dazuma @quartzmo Can you also give your thoughts on this option? It provides the sync/async function of the async_writer optional argument by providing a separate async_logger method. And it provides the custom writer object function of the async_writer optional argument by making the Logger initializer part of the public API. Of the three options I like this one the best.

I like the idea of two separate logger methods, if we want to keep the option of a non-async logger. That's definitely better than my design with an argument that could have multiple types.
Two comments:

I mentioned this in the other pull requests, but I think it's important to allow the caller to provide an existing AsyncWriter, to support the use case of multiple loggers using the same writer.
If we'd like async to be the default behavior of Logger (which I agree we should), perhaps the logger method should be async, and instead introduce a blocking_logger method to create a logger that uses Project as the writer.

The remaining question in my mind is how important the blocking logger is to support. I'm just not sure.

to support the use case of multiple loggers using the same writer.

These methods are really just convenience methods. In this PR the Logger initializer is now public, so it is now possible to create multiple loggers using the same writer, it's just not as convenient. What do you think about adding AsyncWriter#logger to add the convenience?

I think I understand the use case now. Users will create separate Logger objects for different parts of their applications by providing different resource objects. Their Datastore code may use one Logger/resource, while their Pub/Sub code may use a different Logger/resource. I think it does make sense to have all the Logger objects use the same writer object.
I'm out with the family today, but I'll try to submit a 4th PR later today.

All of these variations seem fine to me, as long as we make it very simple to do the most common thing (which sounds like it is multiple Logger instances using a shared AsyncWriter instance), and it remains possible to do other things, such as to configure a Logger to make blocking calls or use a particular writer instance.

Superseded by #919.


Listner event with regex

Hello, I would like to suggest that we could make a listener by regex. With that, I can make it more dynamic and be able to create multiple listeners in just one;
How can you create special characters like "#" and or "+" and replace them with regex; Iqual Style an MQTT or RabbitMQ topic
Ex:
Topics I need:
Topic: '/ org / 1 / dev / 1'
Topic: '/ org / 1 / dev / 2'
Topic :: '/ org / 2 / dev / 1'
Topic: '/ org / 2 / dev / 2'
Just use regex and get N topics. Bellow this is just a simple example

const myMap = new Map();

// Set data of the organization 1
myMap.set('/org/1/device/1');
myMap.set('/org/1/device/2');

// Set data of the organization 2
myMap.set('/org/2/device/1');
myMap.set('/org/2/device/2');

//
// First test: Get all device of the organization 1
//

const getAllDevicesOrg1 = new RegExp('\/org\/1(([\/])(\w*))*');
const resultOne = [...myMap.keys()].filter(item => getAllDevicesOrg1.test(item));
console.log(resultOne);
// Output [ '/org/1/device/1', '/org/1/device/2' ]

//
// Second test: Get all device all organizations
//

const getAllDevices = new RegExp('\/org(([\/])(\w*))*');
const resultTwo = [...myMap.keys()].filter(item => getAllDevices.test(item));
console.log(resultTwo);
// Output [
//   '/org/1/device/1',
//   '/org/1/device/2',
//   '/org/2/device/1',
//   '/org/2/device/2'
// ]

Do you find it interesting to implement this?

I forked your project and made a modification to work with the topic, to meet the needs of my project. I will close the issue.
Thanks.
Project mitt with topic: https://github.com/thiagoanselmo/mitt-emitter


avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

After verifying, by calling :ArduinoUpload I get the error:
         Using Port                    : usb
         Using Programmer       : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

Error during Upload: Failed programming: uploading error: exit status 1)

so the port is supposed to be something like
Using Port                    : /dev/ttyACM0
also in the ArduinoInfo, I get the following
Board           : arduino:avr:uno
Programmer : avrispmkii
Port              : /dev/ttyACM0
Baud rate     : 9600

I tried to find the bug inside autoload/arduino.vim but I have no idea where you declare the "arduino-cli upload", since the :echo arduino#GetCLICompileCommand('-u') would not change the arduino-cli command.
Can you tell me how to correct this bug?? ..because your plugin seems to be very handy! nice work!
ps: compiling and uploading the sketch with arduino-cli works properly.

I am sorry for the disturbance. by default the programmer avrispmkii is chosen.
By simply changing it to avrisp with :ArduinoChooseProgrammer it runs flawlessly.
No Bugs with vim-arduino
No Bugs with arduino-cli
..just me being tired and producing easy errors

No worries! Glad you figured it out

edit: also my closed answer is not properly correct.
it worked when I selected no programmer for the uno (obviously)
edit in init.vim i.e. :
let g:arduino_programmer = ""


UI doesn't work well with Neovide

Hello,
There's an issue with this plugin's UI when using Neovide—it doesn't work properly as it shifts the whole UI down, making it difficult to see what I'm typing in the input text.

I came across a comment that might be related to the issue, so I'm not sure if this is the cause. However, if it is, adding a simple if statement to check vim.g.neovide and adjusting the rows of the UI would be highly appreciated.
Another question: Is there a way to maximize the height of the input area, either with a mapping or by pressing Enter while typing, so the area gets bigger?
Thank you

I'm also using Neovide and having the same issue. I have no issue when using nvim with no GUI.

can you check with the latest version?

Thank you, I appreciate the efforts.
It's working normally in normal mode now, but once I select even one line in visual mode, the issue happens again. The input mode gets pushed down to the command line area, so nothing can be seen there.

@aarnphm thank you for solving the issue, but it appears the "Chat with Selected Code" feature have similar issue in both normal Neovim and Neovide:

In normal Neovim running in the terminal, it pushes the input area too far down, covering the status line.
In Neovide, the input area goes even deeper, down to the behind command line, making it impossible to see what I'm typing.

Thank you
screenshots for both: neovim:
neovide:

This issue has been fixed in the latest version.

thank you, it's been solved indeed.


Ensure we include all cython files in sdist

Summary
In the recent terra 0.17.0 release the sdist on pypi is not buildable,
this is because it didn't include the cython pyx file for the pauli
expectation values function that was new for 0.17.0. This was not caught
in CI or local testing because the missing file is present in a git
checkout, but since it's not a *py file they are not included in the
sdist. This commit fixes this issue by updating the MANIFSET.in file to
include all cython files in qiskit instead of just the stochastic swap
file. Making this more broad is a good idea as there will likely be
additional cython modules added over time and this will ensure this
error doesn't happen again.
Details and comments

Still open?


Update Event.ts

Corrected 'Error: Discriminator with name "Flight" already exists'

passed all checks, good job.


Header Fields

Using the header fields (for example for auth) of the flutter_downloader plugin would be very helpful.

Definitely, do that next Ver.


Serving Runtime e2e tests

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1924
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Hey @Suresh-Nakkeran, can you split this up into separate PRs to aid in the reviewing process. License header changes can be its own, Python SDK changes can be its own, and E2E tests can be its own.

@pvaneck License header changes is aprt of python sdk update. I will split this PR into 2, one is python sdk update and another one for runtime e2e tests.

This PR is still showing the python sdk and license header changes. Can you update this branch so only the e2e changes are committed?

/test kubeflow-kserve-presubmit

/test kubeflow-kserve-presubmit

/retest

/retest

/retest

/retest

/lgtm
/approve


Update tutorial-log-alert.md

Submitting this PR as MSFT Azure customer.
Credit to Jeff Willoughby for sharing this info!

@microsoft-github-policy-service agree

@bwren
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Grid channels can't be initialized with attributes

Is your feature request related to a problem? Please describe.
A particle channel can be initialized with a list of attributes to copy on a call of .copy(), but a grid channel can't. This gives errors if channels to a combined set of grids and particles are initialized with pre-specified attributes.
Describe the solution you'd like
Grid channels can be initialized with attribute and target names of variables to copy with .copy(), as is the case for particle channels.
copy_attribute does exist for grids, but for my application it's more convenient to have a pre-defined copy call instead of looping over all attributes every time.

How about using .copy_attributes(["list", "of", "attribute", "names"]) as a workaround?

Yep that's a workaround, but not as convenient, and it's weird that these two very similar functionalities have such a difference.
The code around this is not as daunting as I thought on first sight, so I can implement and push this myself. Sorry for making this issue, I was too quick in thinking it was more complicated than it is.

Don't worry about creating a new issue if you later find you can fix it yourself. That's perfectly fine, you can just assign it to yourself in that case :).

I made a pull request for the addition! I also added the reverse function for grids. See #730


Easier way of creating custom row templates

I was messing around with a custom _rows_and_columns.html template and ended up with this:
{% for row in display_rows %}

    {% for cell in row %}
      {% if cell.column == "First_Name" %}

{{ cell.value }}
      {% elif cell.column == "Last_Name" %}
        {{ cell.value }}

      {% elif cell.column == "Short_Description" %}

{{ cell.column }}: {{ cell.value }}

      {% else %}
        {{ cell.column }}: {{ cell.value }}
      {% endif %}
    {% endfor %}

{% endfor %}

This is nasty. I'd like to be able to do something like this instead:
{% for row in display_rows %}

{{ row["First_Name"] }} {{ row["Last_Name"] }}

  ...

I think the trick is to redefine what a "cell_row" is. Each row is currently a list of cells:
https://github.com/simonw/datasette/blob/6341f8cbc7833022012804dea120b838ec1f6558/datasette/views/table.py#L159-L163
I can redefine the row as a thing-that-iterates-cells (hence behaving like a list) but that also supports __getitem__ access for looking up cell values if you know the name of the column.

Of course I can't do it in this part of he code because it's constructing plain JSON objects here.
I'll need to do it in the section that prepares special objects for the HTML.

Actually I'm OK here - display_columns_and_rows() is already only used by the HTML template rendering path.

This is starting to shape up. Example template:
{% for row in display_rows %}

      {{ row["First_Name"] }} {{ row["Last_Name"] }}

    {% if row["Link_to_Photo"] %}

    {% endif %}
    {% for cell in row.cells[3:] %}
      {% if cell.raw and cell.column != "createdTime" %}

{{ cell.column }}: {{ cell.value }}

      {% endif %}
    {% endfor %}

{% endfor %}

Still needed before merge: documentation! I can expand this section: https://datasette.readthedocs.io/en/stable/custom_templates.html#custom-templates

Fixed by #533


Use of '`pthread' fails in Windows 32bits

I come across this error when trying to compile on Windows 32bits. I have MSYS2 installed. It seems that 'pthread' is not supported by MSYS2 / mingw32.

error: linking with gcc failed: exit code: 1
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1a3): undefined reference to pthread_mutex_init' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0xfd9): undefined reference to pthread_once'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0xfe5): undefined reference to pthread_mutex_lock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x10f4): undefined reference to pthread_once'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1100): undefined reference to pthread_mutex_lock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x11cb): undefined reference to pthread_once'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x11d7): undefined reference to pthread_mutex_lock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1239): undefined reference to pthread_mutex_unlock'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1268): undefined reference to pthread_mutex_unlock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x12ef): undefined reference to pthread_once'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x12fb): undefined reference to pthread_mutex_lock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1337): undefined reference to pthread_mutex_unlock'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x13f6): undefined reference to pthread_mutex_unlock' D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1004): undefined reference to pthread_mutex_unlock'
D:/Applications/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x111f): undefined reference to `pthread_mutex_unlock'
collect2.exe: error: ld returned 1 exit status

Could there be something I missed in my install?
I cannot find much about this error online except that this function is not on Windows.

Thanks for the report! Could you describe how you installed MSYS2 as well as how you installed the gcc compiler? On 32-bit windows there are two variants of compilers, and it looks like the wrong one is being used by accident unfortunately for Rust :(

I installed

MSYS2 with MSYS2 installer
Rust V1.11.0 Windows (GNU ABI)  with no linker and platform libraries

Did you install gcc through a MSYS2 package?

Yes.

Ah a bit of a belated response, but unfortunately the default gcc on msys2 comes with the wrong threading model which will have these problems. The instructions for Rust itself though should suffice in downloading an appropriate compiler.


Feat/simulator - fixes #15

Also need to change that commit up here that talks about EularRotationProperty.


Memory usage

First of all thanks for great gem.
In readme it says:

According to memory_profiler, the Phony gem uses roughly 1 MB of memory per Ruby process. Usage was generated using: ruby -e 'require "memory_profiler"; MemoryProfiler.report(allow_files: "phony"){ require "phony" }.pretty_print'

But as I see it uses ~2mb now, mostly because of Germany and Russia_kazakhstan_abkhasia_south_ossetia codes
This is what I see:
Total allocated: 2059039 bytes (24279 objects)
Total retained:  955137 bytes (16008 objects)

allocated memory by gem
-----------------------------------
   2059039  phony/lib

allocated memory by file
-----------------------------------
    594944  /Users/artem/projects/phony/lib/phony/countries/germany.rb
    242330  /Users/artem/projects/phony/lib/phony/national_splitters/variable.rb
    204280  /Users/artem/projects/phony/lib/phony/countries/russia_kazakhstan_abkhasia_south_ossetia.rb
    193472  /Users/artem/projects/phony/lib/phony/dsl.rb
    145874  /Users/artem/projects/phony/lib/phony/national_splitters/dsl.rb
    105016  /Users/artem/projects/phony/lib/phony/countries/united_kingdom.rb
     87904  /Users/artem/projects/phony/lib/phony/countries.rb
     72547  /Users/artem/projects/phony/lib/phony/trunk_code.rb
     41968  /Users/artem/projects/phony/lib/phony/countries/ukraine.rb
     40672  /Users/artem/projects/phony/lib/phony/country.rb
     37298  /Users/artem/projects/phony/lib/phony/countries/bangladesh.rb
....

of course 2MB is not huge load, but maybe it worths to update readme
Also in our project we're targeting US and CA as for now, we want to use phony's validators and normalizers but it also will be great to have ability to configure loaded countries. Let me know if it makes sense, I can provide PRs.
Thanks.

Also in our project we're targeting US and CA as for now, we want to use phony's validators and normalizers but it also will be great to have ability to configure loaded countries.

I'm not sure what you mean – you would like to change existing definitions? Have you tries simply doing the same as in countries.rb (Phony.define do etc.)?

Also in our project we're targeting US and CA as for now, we want to use phony's validators and normalizers but it also will be great to have ability to configure loaded countries.

I'm not sure what you mean – you would like to change existing definitions? Have you tries simply doing the same as in countries.rb (Phony.define do etc.)?

Thank you for your responses.
I don't want to change definitions, but I want to exclude some countries from loading (or only include particular). In the meantime we need only US and CA (and we still want to use this gem), but right now we're loading everything else too.

Ah I understand! And currently, when you require "phony", you get everything else as well.
What you'd like is probably:
require "phony/core"
require "phony/countries"

or maybe
require "phony/core"
Phony.load_countries('1')

In any case you'd like to load exactly the country you'll be using – is that correct?

that's correct. Some flexible list of required countries.
but anyways, it's just 2MB 👍(~40% of it is Germany and Russia_kazakhstan_abkhasia_south_ossetia 😀)

Also interested in configuring the loaded countries. Is there a good way to do this in the current version?

Sadly, not yet without monkey patching the code. I'm thinking of adding a:
require 'phony/config'

# Explicit
Phony::Config.load(only: ['41', '44'])
Phony::Config.load(except: ['41', '44'])
# Convenience
Phony::Config.load('41', '44')
# Or even
Phony::Config.load(41, 44)

# These then load Phony.

or similar. As @artplan1 said, since it's not huge, perhaps not huge/urgent issue, but I'd like to include it.

@artplan1 A late P.S: retained memory usage was still under 1MB, as you can see with Total retained:  955137 bytes (16008 objects).
But in any case, I've released 2.18.0, which allows for the syntax described above.
Load all (Same as require 'phony'):
ruby -e 'require "memory_profiler"; MemoryProfiler.report(allow_files: "phony"){ require "phony/config"; Phony::Config.load }.pretty_print'
Total allocated: 4513932 bytes (60534 objects)
Total retained:  1227879 bytes (17341 objects)

Just the NANP CC:
ruby -e 'require "memory_profiler"; MemoryProfiler.report(allow_files: "phony"){ require "phony/config"; Phony::Config.load("1") }.pretty_print'
Total allocated: 4488012 bytes (60531 objects)
Total retained:  63403 bytes (694 objects)

All except GER, RUS:
ruby -e 'require "memory_profiler"; MemoryProfiler.report(allow_files: "phony"){ require "phony/config"; Phony::Config.load(except: ["7", "45"]) }.pretty_print'
Total allocated: 4513740 bytes (60532 objects)
Total retained:  1116624 bytes (15094 objects)


🆕 [Feature]: add more links to refering tech

🎯 Aim of the feature
Is to add link to PnP github repo
🤔 Additional remarks or comments
idea is to add it to the top of the command list as an additional command list action

along the way fix the current link to point to the index page on to the first command


How to make the code available in my project?

Hi, I tried using your project (the compiled .dll and .winmd) in my existing project. I followed the steps you described exactly but the packages couldn't be imported into my code files (using command failed). Also multiple regenerations of the code assembly didn't change this. Is there a need to manually link the dlls in the assembly project? I tried linking the .dll but got an error that it could not be added since it is neither accessible nor a valid assembly nor a COM component. Since I am not too familiar with VS and you did not mention any of this in your guide I stopped checking on this. Any hint?

I don't think you need to link the dlls manually in the Unity project. And it is not possible for me to find out the issue if you only tell me "using command failed". One thing to mention is that all the functions in dll should be wrapped inside #if ENABLE_WINMD_SUPPORT in your Unity scripts. I might be able to help look into the problem if you can provide more specific information about the errors and the related settings of your project.

Sorry about being unspecific. The problem is the IDE (VS19) claims to not find a package with this name (HL2UnityPlugin). Therefore the autocompletetion also does not work. Another problem is that with my unity project type set correctly (UWP > ARM64) ENABLE_WINMD_SUPPORT  is not true when editing the code and also not when compiling the project. Thus the code after #if ENABLE_WINMD_SUPPORT is not executed. How did you expect my project to be set up already before importing your plugin for this to work?

May be check the settings here?
https://docs.unity3d.com/Manual/IL2CPP-WindowsRuntimeSupport.html

Thanks, I already checked on this. I also experimented quite a bit with the plugin settings in the unity editor although I think this is not intended. No change in the described behaviour. Problem remains.

I don't think that the compiled files are the problem and assume that won't help much but I would like to try: Could you make your working compiled .dll and .winmd files available for download maybe.

Try this one maybe?


runtime: encountering SIGILL in 1.4, 1.4.1

I do not see this issue with 1.2.1.
After compiling and running, I see the following fault:
SIGILL: illegal instruction
PC=0x510010

Inspecting the issue w/ gdb:
(gdb) x/4i $pc
=> 0x510010 <github.com/control-center/serviced/commons/docker.(*Image).Tag+256>:	(bad)
   0x510011 <github.com/control-center/serviced/commons/docker.(*Image).Tag+257>:
    jo     0x510014 <github.com/control-center/serviced/commons/docker.(*Image).Tag+260>
   0x510013 <github.com/control-center/serviced/commons/docker.(*Image).Tag+259>:	add    %al,(%rax)
   0x510015 <github.com/control-center/serviced/commons/docker.(*Image).Tag+261>:	retq

Note (bad) @0x510010
I also disassembled with objdump -dS for comparison. Here's the relevant portion:
if err != nil {
  50ffe7:	48 83 f8 00          	cmp    $0x0,%rax
  50ffeb:	48 89 44 24 70       	mov    %rax,0x70(%rsp)
  50fff0:	74 24                	je     510016 <github.com/control-center/serviced/commons/docker.(*Image).Tag+0x106>
		return nil, err
  50fff2:	48 c7 84 24 90 01 00 	movq   $0x0,0x190(%rsp)
  50fff9:	00 00 00 00 00
  50fffe:	48 89 84 24 98 01 00 	mov    %rax,0x198(%rsp)
  510005:	00
  510006:	48 89 8c 24 a0 01 00 	mov    %rcx,0x1a0(%rsp)
  51000d:	00
  51000e:	48 81 c4 70 01 00 00 	add    $0x170,%rsp
  510015:	c3                   	retq

I don't see 0x510010 here, though, so not sure how to interpret.
Any suggestions for continuing to debug this issue?

First, please take a look at https://github.com/golang/go/blob/master/CONTRIBUTING.md, especially "Filing issues."

It seems the processor jumps to the middle of one instruction.
(the instruction starts at 51000e, but somehow pc is set to
510010)
This kind of problem is difficult to diagnose remotely.
Is your program open source? Could you please produce a
minimum standalone example for this problem?

@mikioh: thanks, here's the missing information:
$ uname -a
Linux rterrell 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                24
On-line CPU(s) list:   0-23
Thread(s) per core:    2
Core(s) per socket:    6
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 45
Stepping:              7
CPU MHz:               1200.000
BogoMIPS:              3991.51
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              15360K
NUMA node0 CPU(s):     0-5,12-17
NUMA node1 CPU(s):     6-11,18-23

@minux: Thank you; yes, working on a minimum standalone example as we type.

I'd also like to note that it appears running with -race or -gcflags '-N' (no compiler optimization) results in this issue not occurring. Does -race disable optimization?

No. -race doesn't disable optimization unless you also pass -gcflags -N.

Good to know, thank you.

However the race run time does introduce more calls into functions which
were previously leaves, making them ineligible for inlining.
On Tue, Feb 3, 2015 at 2:27 AM, Minux Ma<EMAIL_ADDRESS>wrote:

No. -race doesn't disable optimization unless you also pass -gcflags -N.
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/9728#issuecomment-72475468.

inlining runs long before racewalk
racewalk should not affect inlining decisions

But we have lots of code that says
if raceEnabled {
somefunction()
}
so if raceEnabled is not false, the function is no longer a leaf.
On Tue, Feb 3, 2015 at 6:41 AM, Dmitry Vyukov<EMAIL_ADDRESS>wrote:

inlining runs long before racewalk
racewalk should not affect inlining decisions
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/9728#issuecomment-72523018.

well, maybe
but I would expect that most of these functions in runtime that do 'if raceEnabled' are not inlinable

if const {
someFunction()
}
won't be inlined even if const is false.
For example,
$ cat t.go
package f
const B = false
func G() {
G()
}
func F() {
if B {
G()
}
}
$ go tool 6g -m t.go
$ go tool 6g -m -l=3 t.go
$ go tool 6g -m -l=4 t.go
t.go:5: can inline G
t.go:9: can inline F
t.go:11: inlining call to G
This is a problem of the current inliner implementation, it determines
whether a func
could be inlined before constant propagation and dead code elimination.

Problem solved: I was making improper use of the unsafe module. Closing.

If possible, can you please describe a bit what is the "improper use of the unsafe package" for future reference, Thanks.

TBH, I don't know what specifically was wrong with this before, nor why this implementation seems to work. The diff is here: https://github.com/control-center/serviced/pull/1566/files
If anyone could elucidate this for me, I'd be obliged.

On GNU/Linux TIOCGPRGP returns a 4 byte value, so trying to catch it in a [2]byte argument is doomed to fail.

Much obliged!


add option to move keys around and create new keyboard types

currently only two keyboard types are supported, but would be good that everyone can create their own keyboard type.

added option to edit physical layout.
todo:

make folder with yaml files so its easier to upload new keyboard types

done in v2! now i have a pocketbase db


Add cwd option

Fixes #45.

CI is failing

It seems there are different issues with this.
I will try to make separate PRs handling each issue.

CI is failing

It seems there are different issues with this. I will try to make separate PRs handling each issue.

I made #48, #50. I think CI issue could be resolved with these.

It was implied that this applied to the other occurrence of this too: https://github.com/sindresorhus/cp-file/pull/46#discussion_r852088489

I believe this PR shipped in cp-file v10 caused a regression in cpy v10 which in turn breaks cpy-cli v5:
https://github.com/sindresorhus/cpy/issues/107#issuecomment-1624307180
(it's a subtle edge case with relative paths and implicit process.cwd(), but it boils down to resolving against options.cwd where the correct previous behaviour was to resolve against process.cwd() ... I think the fix must be made on the consumer side of cp-file, i.e. cpy)


Timestamp nanosecond support

Any chance of switching away from SimpleDateFormat? DataTimeFormatter would support more precision.

Timestamps are only millisecond precision in C*
See: https://docs.datastax.com/en/cql/3.3/cql/cql_reference/timestamp_type_r.html


How it relates to LLAMA?

Ok, I installed mojo, cloned your repo and run the test. It works, congrats! But how all of this relates to LLAMA? Nothing happened when I was trying to run the LLAMA2 itself:
alex@NLDW4-5-20-11:~/ai/llama2.mojo$ mojo llama2.mojo ~/ai/llama.cpp/models/ggml-model-q4_1.bin -s 100 -n 256 -t 0.5 -i "Llama is an animal"
num hardware threads:  12
SIMD vector width:  16
checkpoint size:<PHONE_NUMBER>
Killed
alex@NLDW4-5-20-11:~/ai/llama2.mojo$ mojo llama2.mojo ~/ai/llama.cpp/models/ggml-model-q4_1.bin -s 100 -n 256 -t 4 -i "Llama is an animal"
num hardware threads:  12
SIMD vector width:  16
checkpoint size:<PHONE_NUMBER>
Killed
I don't know what does it mean -t 0.5 (I suppose threads), I've been trying -t 4 and again without results.
The the clue here is how to run LLAMA 2 using this new language called MOJO. And if you made a MOJO wrapper for the LLAMA/LLAMA2 models, please provide the instruction on how to run the model using this wrapper.
Thank you.

Hi @alexcardo , thanks for you question.
So, basically I would recommend to learn more about tiny-lms https://github.com/karpathy/llama2.c
LLAMA is just an architecture based on transformers.
llama.cpp is an implementation of LLAMA architecture inference that's goal is to inference the models on consumers hardware via quantization and exporting original llama weights to ggml/gguf, that's is a seprate format of storing weights. So it's not compatible with llama2 at the moment. Also the quantized models are not compatible with llama2.c.
So essentially currently our goal is to not implement full fledged inference of the original or even quantized models.
I would say for now the purpose and interest is pure academic learnings
See the quote from Karpathy:

Compared to llama.cpp, I wanted something super simple, minimal, and educational so I chose to hard-code the Llama 2 architecture and just roll one inference file of pure C with no dependencies.


WW-2411 Add a maxlength attribute to the textarea tag

Maxlength attribute added to textarea tag

Coverage increased (+0.0009%) to 49.898% when pulling 92afe8b85e865b6e806bf97a67339444c66ba37d on kerttup:Branch_1 into eb8bc5e910f1da575e2bc8df752c97912a41378f on apache:master.

You must also modify template/simple/textarea.ftl, add something like this:
<#if parameters. maxlength?has_content>
 maxlength ="${parameters. maxlength}"<#rt/>
</#if>

Also would you mind adding minlength?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attributes

Modified textarea.ftl and added also minlength attribute.

@kerttup do you plan port these changes into 2.5.x branch?

Hi @lukaszlenart, what do you mean with plan port? This was my first pull request so I am new to this and dont know the practices yet.

We are currently developing two versions of Struts

master branch represents incoming Struts 2.6
struts-2-5-x branch is used to maintain current Struts 2.5.x

You addressed your fix just against the master branch which means it will be included in Struts 2.6 - this is fine if you can wait on that version to be released probably in a few months. If you would like to see your fix early, you must port it to struts-2-5-x branch by cherry-picking the changes and opening a new PR against struts-2-5-x branch.

Thanks for the clarification. I think this can wait until the next version.


can add some comments to your code?

Most engineers use GBDT to generate new features, then we need the feature map to dump the GBDT model like this:
booster [0]:
0:[dsp-adspace-date-stat.ctr.7d.log()=18.0] yes=2,no=1
1:[DspAdspaceId=-541256553011951849] yes=4,no=3
3:[adspace-date-stat.ctr.28d.log()=10.0] yes=8,no=7
7:[MobileAppFlag=true] yes=16,no=15
15:[mobileBrand=1880549520] yes=32,no=31
31:[publisher-date-stat.ctr.7d.log()=14.0] yes=64,no=63
63:[publisher-date-stat.ctr.28d.log()=13.0] yes=126,no=125
125:leaf=-0.434991
126:leaf=-0.321153
64:[MobileScreenHeight=640] yes=128,no=127
127:leaf=-0.0852104
128:leaf=-0.299096
32:[publisher-date-stat.ctr.28d.log()=15.0] yes=66,no=65
65:[OS=809] yes=130,no=129
129:leaf=-0.533519
130:leaf=-0.295667
...
I want to add this implementation, but it's hard to read your code. At least the usage of each class is necessary.

@wenmin-wu Thank you for your suggestions. I happen to be extremely busy with work recently. So sorry for the late reply.
rotationsymmetry.sxgboost.Node is the class for the tree node. I think you can start from there to recover the tree structure.
Thanks!


bv_decide: support for shifting by a natural number

The following example is not currently supported by bv_decide
import Std.Tactic.BVDecide

theorem ushiftRight_symbolic_shift (x : BitVec 64) (n : Nat) (h : n < 64) :
  x >>> n = (BitVec.extractLsb 63 n x).zeroExtend 64 := by
  bv_decide

It produces the error message.
error: None of the hypotheses are in the supported BitVec fragment.
There are two potential fixes for this:
1. If you are using custom BitVec constructs simplify them to built-in ones.
2. If your problem is using only built-in ones it might currently be out of reach.
   Consider expressing it in terms of different operations that are better supported.

@shilgoel brought this up in conversation today, and I will think a bit on how to add support for this use-case.

A proposal was to take into account that larger values of the Nat shift amount will shift out the operand completely, effectively putting a bound on the shift amount to consider.

I don't think we can nicely handle this apart from the non trivial cases. As soon as you have any other constraints on your Nat or the Nat occurs in multiple locations inside of the BitVec term this naive case splitting won't lead to satisfactory results. @bollu also told me that this issue was mostly caused by you using x >>> y.toNat instead of x >>> y? In that case the issue here doesn't sound really critical to me?


Opening a folder with .cs files crashes Godot (Mono related?)

Godot 3.0 git HEAD 64 bit
Manjaro Linux 64 bit
Ubuntu 17.10b2
Windows 10
Issue description:
When navigating into a CSharp scripts folder Godot crashes if there's a .mono folder and if there are no icons of the scripts in the ~/.godot/tmp folder.
@neikeq I believe this is Mono related as a lot of Mono items are in the crash log, deleting the .mono folder fixes the crash, or if I simply rename files from having .cs to .gd (and leave the .mono folder there) it no longer crashes.
Steps to reproduce:
edit: Okay, I've narrowed it down a bit more. I tried it on Ubuntu 17.10b2 and I was able to navigate to the folder as long as I didn't first make a build.
I was then able to cause it to break again by:

Deleting the ~/.godot/tmp folder
Make a build (F5/F6)
Restart the editor
Navigate to the Scripts folder
Crash

I was able to navigate again to the folder by:

Deleting the .mono folder for the project
Restart the editor
Navigate to the folder
No crash

So, it seems somehow related to failing to generate icons when there's a successful build in the .mono folder?
I've made a video: DirectoryOpenCrash.zip
Link to minimal example project:
edit: Here's a simple project:
Test_Proj_CS.zip
edit: Removed the crash dump as you should now be able to get your own now that the bug is reproducible.

Okay, I've narrowed it down a bit more. I tried it on Ubuntu 17.10b2 and I was able to navigate to the folder as long as I didn't first make a build.
I was then able to cause it to break again by:

Deleting the ~/.godot/tmp folder
Make a build (F5/F6)
Restart the editor
Navigate to the Scripts folder
Crash

I was able to navigate again to the folder by:

Deleting the .mono folder for the project
Switch the build system from xbuild to MSBuild
Restart editor
Navigate to the folder
No crash

So, it seems somehow related to failing to generate icons when there's a successful build in the .mono folder?
Okay, time to try it on Windows again since I didn't try these steps before.

Yep, happens on Windows too.

Okay, I was able to reproduce the problem with the steps above in a simple project. :)
Test_Proj_CS.zip

Does this still happen after #11845?

Unfortunately it's still doing it.

All right, just wanted to make sure it was not related to the assembly loading error at startup. I'll test tomorrow.

Awesome, thanks :)


Use no.nested.virt flavor to avoid sigsegv problem

Using this type of OpenStack flavor will create the instance in a special OpenStack aggregate with nested virtualization disabled, thus avoiding the situation causing SIGSEGV errors.

@mareknovotny @cimbalek @mbiarnes FYI


Some extra stuff in dist/pickr.min.css

Do you want to request a feature or report a bug?
BUG
What is the current behavior?
The 0.6.1 version of dist/pickr.min.css appears to have some unintended junk in the sourceMappingURL that is tripping up my linting/purgecss.
/*# sourceMappingURL=pickr.min.js.map*/ap*/

When I build it myself, the line is
/*# sourceMappingURL=pickr.es5.min.js.map*/

What is the expected behavior?
Cleaned up output. Just a repackaging should take care of it. :-)
Your environment:
Pickr-version (see Pickr.version): 0.6.1

Huh, that's strange :suspect: Thank's for the PR! I'll take a look at it.


Drawers in Make-over mage's house don't open

The Drawers have an Open action but nothing happens (no animation, no chatbox text).
The chatbox text in the screenshot is from Examine

May be all Drawers? Happens to the one in Seers' Village too:

this was an issue with all non-clue related drawers, fixed: https://github.com/2004Scape/Server/pull/678/commits/06e62e8fc94c8bd202681a59e83655772a0614e7


add mev-boost version as response header to status API call

📝 Summary
Adds a X-MEVBoost-Version header in the status API call response, which allows outside services to detect the mev-boost version.

✅ I have run these commands

[x] make lint
[x] make test-race
[x] go mod tidy

Just curious, which outside services would need this? Was this a requested feature?

CL clients might need this in the future to determine the capabilities of mev-boost (i.e. if the mev-boost version supports getPayloadV2 with Capella payload fields, etc)

Oh I understand now. That makes sense. But I think I prefer the method of "try and fail" like communications with the EL client. I don't want CL clients to associate a feature with a specific version of third-party software. I see there being push back on this from client teams.

"try and fail"

yeah i second this. but it may be tricky in case of getPayload, as the CL would need to know if getPayloadV2 is available, but for that they would already send the payload at which point no fallback to local block would be reasonable 🤔
maybe this header won't be used, but i think it can't hurt and may become useful.

Ah I gotcha. Yeah that is a predicament. How about something a little more generic?
w.Header().Set("SupportedMilestone", config.Milestone)

With values like:

"bellatrix"
"capella"
"eip4844"
...

That would indicate support up to that milestone.
PS: There may be a better name like "fork", "version", etc.

I like that! ForkVersion is used in other places, maybe X-ForkVersion would be a good header?

Sounds good to me!


Custom close callback is called with any hyperlink, _websockets always null

Eel version
0.14.0
Describe the bug
When a custom_callback function is defined on start and some link or button tag is clicked, the close_callback is called and the _websockets list is always empty, so the application is terminated.
To Reproduce
Steps to reproduce the behavior:

Get the hello world example
Put a <a href=“Click me”> anywhere
Define a close callback function:

def close_callback(route, websockets):
    print(websockets)
    if not websockets:
        exit()

Expected behavior
Clicking on anchor links or buttons shouldn’t send a close_callback.
Desktop:

OS: Windows 11
Browser: Chrome
Version 95

any solution for this bug?


[android][test] Mark cxx_interop.swift as executable.

Executable tests cannot currently run in the Android CI machines, and
must be marked as such to be skipped.
/cc @pschuh: The test still fails to work on Android, but it might not be the test itself, but something else. I want to at least quickly fix the test in CI.

@swift-ci please smoke test

It doesn't actually execute anything, but fixing the CI is good.

Yes. I was too fast to say it was executing something. I will not merge this one for the moment. I might mark it as XFAIL in a moment instead.
The problem is that LibcShims.h header can be included from C in Android because there's an implicit declaration of the function malloc_usable_size, but that's not possible in C++. The problem is that the Clang Importer do not pass the __ANDROID_API__, which is used in that header to define the function. I will try to figure out what can we do.
Sorry for the noise.

There is no fallback, and if malloc_usable_size really is undefined before 17, swift would just not compile on older versions. Is the right thing to do to assert that ANDROID_API >= 17? That way, it would also fail properly in c rather than succeeding silently?

I'm pretty sure that the code was written before the minimum API level for Android was set in 21 (the documentation mentions 21), so checking for 17 might have been correct at some point. I think #26046 is the right way of handling this.


empty title, revision, date html fields

First off, I've been loving this tool! Thank you for streamlining kidiff and plotgitsch, it's a pleasure to use.
Minor error I have is a few html fields aren't populating. See pic below:

I tried fiddling with the bash, like here, but all I can determine is $title == "" is returning true, but not sure why. Looks like you're just extracting it from the filename, right?

using WSL2

Any tips would be appreciated. 😄

Hi. This tool started from the layout. This means this data comes from the layout page. Could you check if that filling this information on PC new page solves your problem?

Ah! I had only set these in the schematic and never knew the layout also had separate definitions.
That solved it. Thank you!!

Glad that it helped. Thanks for the feedback. I will have to check if it is
possible to keep it updated with the schematic too.
On Sun, Nov 14, 2021, 14:16 Max Holliday @.***> wrote:

Ah! I had only set these in the schematic and never knew the layout also
had separate definitions.
That solved it. Thank you!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leoheck/kdiff/issues/19#issuecomment-968330582, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJX7YHQ7W5W4N2CNX2Z4VLUL7VIXANCNFSM5H7IL2OA
.

Hey, @maholli could you test the latest version on master? I improved this info. When showing the layout it shows info from the layout, and when showing the schematics, it shows the info from the schematics.
Hope it works for you.


ASAP-294 Update working group header/footer

Jira ticket: https://asaphub.atlassian.net/browse/ASAP-294

This PR

Adds the contact button + copy email to the header of internal working groups as per requirement

Removes the footer for completed working groups

In the designs the collaboration invite card isn't present if the user is a member of the working group. I'm ok approving since the ticket is focused on the header & footer.

Nice catch! I'll update it soon since it is easy to fix it :)

I've updated it here hide collaboration card on 'internal' view @AkosuaA :)


st2chatops is not reconnecting when auth token expires

After a period of time st2chatops auth token expires and an error is seen in the logs:
$ journalctl -u st2chatops | grep ERROR
Apr 29 03:34:24 stackstorm.domain.tld hubot[108611]: [Sun Apr 29 2018 03:34:24 GMT-0400 (EDT)] ERROR Stream error: Event { type: 'error' }
Apr 29 03:34:26 stackstorm.domain.tld hubot[108611]: [Sun Apr 29 2018 03:34:26 GMT-0400 (EDT)] ERROR Stream error: Event { type: 'error', status: 401 }

After this, the bot responds with ACKs but any chatops.post_messages are not echo'd into ChatOps because it is no longer able to listen on the stream.
For more details and explanation please see the original issue here: https://github.com/StackStorm/st2/issues/4119

It looks like the line of code that's printing that to the logs is here: https://github.com/StackStorm/hubot-stackstorm/blob/998141c83c251fe9eee1cb0eeb2e9c21e377691d/scripts/stackstorm.js#L382
Maybe there needs to be some retry logic in there to handle a 401 and re-auth?

@nmaludy why you don't generate api key and use it without expiration? st2 apikey and export ST2_API_KEY should help you

I have seen that error even with ST2_API_KEY . In this case there is not even  "status: 401"
[Mon Jun 25 2018 09:54:50 GMT+0000 (UTC)] INFO 46 commands are loaded
[Mon Jun 25 2018 09:55:01 GMT+0000 (UTC)] ERROR Stream error: Event { type: 'error' }
[Mon Jun 25 2018 09:55:32 GMT+0000 (UTC)] ERROR Stream error: Event { type: 'error' }
[Mon Jun 25 2018 09:55:45 GMT+0000 (UTC)] ERROR Stream error: Event { type: 'error' }
[Mon Jun 25 2018 09:56:10 GMT+0000 (UTC)] ERROR Stream error: Event { type: 'error' }
[Mon Jun 25 2018 09:56:50 GMT+0000 (UTC)] INFO Loading commands....
I see above error but it still works and no idea about reason behind above message. But after some time (around 5 days) it stops to respond. Only ack is responded. st2 is fully functional as i checked from web. So issue is with st2chatops.

I've set the token_ttl in st2.conf to some short time and couldn't 100% reproduce the bug with st2 v3.0.1.
I've found that sometimes token re-request failed, however bot was successfully able to recover itself after a couple of token retries (happens every 2mins by default):
[Thu Jun 20 2019 19:52:47 GMT+0000 (Coordinated Universal Time)] INFO Requesting a token...
[Thu Jun 20 2019 19:52:47 GMT+0000 (Coordinated Universal Time)] INFO Loading commands....
[Thu Jun 20 2019 19:52:47 GMT+0000 (Coordinated Universal Time)] INFO Token received. Expiring 2019-06-20T19:54:47.308223Z
[Thu Jun 20 2019 19:52:47 GMT+0000 (Coordinated Universal Time)] ERROR Failed to retrieve commands from "https://localhost/api": Unauthorized - Token has expired.
[Thu Jun 20 2019 19:54:47 GMT+0000 (Coordinated Universal Time)] INFO Loading commands....
[Thu Jun 20 2019 19:54:47 GMT+0000 (Coordinated Universal Time)] INFO Requesting a token...
[Thu Jun 20 2019 19:54:47 GMT+0000 (Coordinated Universal Time)] ERROR Failed to retrieve commands from "https://localhost/api": Unauthorized - Token has expired.
[Thu Jun 20 2019 19:54:47 GMT+0000 (Coordinated Universal Time)] INFO Token received. Expiring 2019-06-20T19:56:47.316771Z
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] INFO Loading commands....
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] INFO Requesting a token...
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack get <pack> - Get information about installed StackStorm pack.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack get {{ pack }} - Get information about installed StackStorm pack.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack install <pack_name|git_url>[,<pack_name|git_url>] - Install/upgrade StackStorm packs.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack install {{ packs }} - Install/upgrade StackStorm packs.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack search <query> - Search for packs in StackStorm Exchange and other directories.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack search {{ query }} - Search for packs in StackStorm Exchange and other directories.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack show <pack> - Show information about the pack from StackStorm Exchange.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: pack show {{ pack }} - Show information about the pack from StackStorm Exchange.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} actions - List available StackStorm actions.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} actions from {{ pack }} - List available StackStorm actions.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 get execution {{ id }} - Retrieve details for a single execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 show execution {{ id }} - Retrieve details for a single execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 executions get {{ id }} - Retrieve details for a single execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 executions show {{ id }} - Retrieve details for a single execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} executions - List available StackStorm executions.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} executions with status {{ status }} - List available StackStorm executions.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} executions for action {{ action }} - List available StackStorm executions.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 re-run execution {{ id }} - Re-run an action execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 executions re-run {{ id }} - Re-run an action execution.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 respond to inquiry {{ id }} with {{ response }} - Respond to an Inquiry
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} rules - List available StackStorm rules.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} rules from {{ pack }} - List available StackStorm rules.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} sensors - List available StackStorm sensors.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] DEBUG Added command: st2 list {{ limit=10 }} sensors from {{ pack }} - List available StackStorm sensors.
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] INFO 20 commands are loaded
[Thu Jun 20 2019 19:56:47 GMT+0000 (Coordinated Universal Time)] INFO Token received. Expiring 2019-06-20T19:58:47.329763Z

There is a diff in my log, you can find there that I didn't experience Stream errors as it shows in original issue report.

Could reproduce it now with the following logic:

start hubot
stop st2stream
expire ST2_AUTH_TOKEN
wait a little
start st2stream

observe 401 from stream in logs

bot doesn't respond in Slack anymore, however everything pretending to be "working ok"


Self-sizing Cells

I've recently read your great tutorial while I was looking for a solution for my problem:
Let's say in each cell of the UICollectionView, a UIImageView and a UILabel are stacked in a vertical UIStackView. Since I always use Dynamic Type, the label height and thus the collectionView cell height can't be set to a constant predefined value.
How can I lay out the UICollectionView in a UITableView cell so that both the tableView cell height and the collectionView item size can be determined automatically? I've played around with AutoLayout in InterfaceBuilder trying to make this work with no luck.
I should say, I've been using self-sizing cells on both UITableView and UICollectionView since iOS 8 when they're not nested together without any problems whatsoever.

Hey there! That's a really good question. To be honest I've not used Dynamic Type in this situation, and usually even my regular collection/table cells are static heights. I'm not sure where to do with this – leaving the issue open in case others have suggestions. Good luck!

In the same boat with dynamic type needing dynamic collectionView cell heights. 😢


Is there any way to push to current branch, without specifying the branch name?

Hi,
Let's assume that I working on develop branch, I might be having many other branches (develop1, feature1, ...).
However, I want to push the changes to the current branch (develop) without specifying the branch name in the below example.
gulp.task('push', function(){
  git.push('origin', 'master', function (err) {
    if (err) throw err;
});

Is there any way to do this?

Not currently, PRs welcome.


[Feature] Standardize and move all cent conversions to the staging models

Is there an existing feature request for this?

[X] I have searched the existing issues

Describe the Feature
In a number of our end models we convert the numerical fields from cents to the whole dollar value. This is appropriate as the data from the Stripe source is synced in cents. However, we are not consistent in this conversion throughout the package. Instead we should apply these conversions at the source package level and allow these conversions to persist downstream instead of applying them inconsistently within the end models.
How would you implement this feature?
Apply these conversions at the source package and staging model levels
Describe alternatives you've considered
Apply these conversions within the end models. Not ideal and is the current state.
Are you interested in contributing this feature?

[ ] Yes.
[ ] Yes, but I will need assistance.
[ ] No.

Anything else?
No response

Upon review of this issue the plan should be as follows. Update the below fields within the respective staging models in the dbt_stripe_source package to convert from cents to dollar. The conversion should resemble the following:

Using the amount field within stg_stripe__balance_transactions as the example below

coalesce(amount/100.0, 0) as amount,

From my initial scoping it seems that all amount type fields (eg. amount, fee, charge, refund_amount, net, etc.) will require this conversion out of cents. Please review every staging model and the Stripe ERD to identify all the fields that will require this update.
Once the updates have been made at the staging level, we will need to update any downstream models in this package that convert these values in the end models (such as within stripe__customer_overview). In the end we will expect to have all the conversions out of cents to be performed at the staging model level and all downstream models will not need to apply this conversion.
Please note, this will be considered a breaking change at the source package level. As a result, we will also need to make this package a breaking change to reference the new version of the source package along with the changes for this package.


Add Travis

At the moment it runs train_mnist.py for 2 epochs on Python 2 and Python 3. Takes ~5-8 minutes for each build.
astropy/ci-helpers is one of the easiest way to get started with Travis. It basically installs miniconda and create a conda env with the needed dependencies.
AFAIR, to enable Travis on PRs:

this PR needs to be merged
@windows7lover needs to set-up Travis on this project (by going to https://travis-ci.org/profile/lesteve/windows7lover).

To give you an idea how it looks like (on my fork): https://travis-ci.org/lesteve/RegularizedNonlinearAcceleration/builds/344795355.


error when run run_sample_img.sh

Hi, I met this error while run the script run_sample_img.sh with dimention 1,1,3,1 as I am using 3 A100 GPUs.
Here is the script:
export llama_tokenizer_path="LWM-Chat-1M-Jax/tokenizer.model"
export vqgan_checkpoint="LWM-Chat-1M-Jax/vqgan"
export lwm_checkpoint="LWM-Chat-1M-Jax/params"

python3 -u -m lwm.vision_generation \
    --prompt='Fireworks over the city' \
    --output_file='fireworks.png' \
    --temperature_image=1.0 \
    --top_k_image=8192 \
    --cfg_scale_image=5.0 \
    --vqgan_checkpoint="$vqgan_checkpoint" \
    --n_frames=1 \
    --mesh_dim='1,1,3,1' \
    --dtype='fp32' \
    --load_llama_config='7b' \
    --update_llama_config="dict(sample_mode='vision',theta=50000000,max_sequence_length=32768,use_flash_attention=True,scan_attention=False,scan_query_chunk_size=128,scan_key_chunk_size=128,scan_mlp=False,scan_mlp_chunk_size=8192,scan_layers=True)" \
    --load_checkpoint="params::$lwm_checkpoint" \
    --tokenizer.vocab_file="$llama_tokenizer_path"

Here is the error info:
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/lwm/vision_generation.py", line 258, in <module>
    run(main)
  File "/opt/conda/lib/python3.10/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/opt/conda/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/workspace/lwm/vision_generation.py", line 94, in main
    model = FlaxVideoLLaMAForCausalLM(
  File "/workspace/lwm/vision_llama.py", line 145, in __init__
    super().__init__(config, module, input_shape=input_shape, seed=seed, dtype=dtype, _do_init=_do_init)
  File "/opt/conda/lib/python3.10/site-packages/transformers/modeling_flax_utils.py", line 213, in __init__
    params_shape_tree = jax.eval_shape(init_fn, self.key)
  File "/workspace/lwm/vision_llama.py", line 170, in init_weights
    random_params = self.module.init(rngs, input_ids, vision_masks, attention_mask, segment_ids, position_ids, return_dict=False)["params"]
  File "/workspace/lwm/vision_llama.py", line 401, in __call__
    outputs = self.transformer(
  File "/workspace/lwm/vision_llama.py", line 320, in __call__
    outputs = self.h(
  File "/workspace/lwm/llama.py", line 991, in __call__
    hidden_states, _ = nn.scan(
  File "/opt/conda/lib/python3.10/site-packages/flax/core/axes_scan.py", line 139, in scan_fn
    _, out_pvals, _ = pe.trace_to_jaxpr_nounits(f_flat, in_pvals)
  File "/opt/conda/lib/python3.10/site-packages/flax/core/axes_scan.py", line 115, in body_fn
    broadcast_out, c, ys = fn(broadcast_in, c, *xs)
  File "/workspace/lwm/llama.py", line 766, in __call__
    attn_outputs = self.attention(
  File "/workspace/lwm/llama.py", line 657, in __call__
    attn_output = ring_attention_sharded(
ValueError: shard_map applied to the function 'functools.partial(<jax._src.custom_derivatives.custom_vjp object at 0x7f98223cb6d0>, axis_name='sp')' was given argument arrays with axis sizes that are not evenly divisible by the corresponding mesh axis sizes:

The mesh given has shape (1, 1, 3, 1) with corresponding axis names ('dp', 'fsdp', 'tp', 'sp').

Running with TP with 3 would not be possible, as the requirement is that the hidden dimension and number of heads are both divisible by the TP dimension. For a 7B models, its 4096 and 32 respectively, both of which are not divisible by 3


Amounts over $999 showing up as $1

Made some large purchases and payments this last round and those with amounts over $999 were showing up as $1 in the OFX. I suspect it's something to do with the commas in the amount, e.g., $1,000.
Thanks for this tool! I toyed with writing something myself, but now I don't have to. Here's hoping this is only needed temporarily.

Thanks for letting me know about this. I just pushed a patch up that strips the commas out. Give it another try and let me know if it's indeed working. Unfortunately I don't have any sample exports with a purchase that large to test.

The values are showing properly now for amounts greater than >= $1000.


Option to quieten console output

Sometimes it’s necessary to log output to the console. Sometimes however messages can get missed if lots of pages/images are generated, and there are multiple rows of 🔥 and 🎨!
It would be helpful to have an option to quieten the CLI output, and not display which items have been generated. Perhaps there’s an option where you could set the level (info, warning, error, etc.), which would give site authors more control of what’s shown here.

There's the --quiet flag for that. For example: deno task build --quiet

Ah, perfect! I don’t think this is mentioned anywhere in the documentation (certainly doesn’t appear in a search for ‘quiet’).

Yes, you're right. I'll uptate the docs


Innate Spellcasting

When trying to add Innate Spellcasting to a new creature it tries to automatically fill it in? But you can't change what it fills in? And it won't display the list of spells. It cuts off the actual spell list.

You can disable the generated spellcasting feature.
Spells will appear below the generated text if they are marked as innate spells (in their preparation mode). Spells that aren't marked as innate will not appear in the innate spellcasting list.

Thanks, that worked for properly displaying all text in Innate Spellcasting. Sorry about that.


Add direction to snippets for determining where to inspect the next object.

Also https://github.com/feenkcom/gtoolkit-coder/commit/f424c3053ce87d3082720abf7d1bfe96d16a0797


Form int custom [v2]

Changes since #1023:

fixed "total_range" calculation

Merged with the due fixes.


Availability of Access List Feature via CLI or Portal

Is this access list feature only available via the Databricks API or can we also configure this via the UI and/or the Databricks CLI?

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

ID: fb833fb7-abf9-432d-ab67-8b94c445407d
Version Independent ID: 082b9e2c-aabd-1ff2-6782-1014ecfaa5ba
Content: IP access lists - Azure Databricks - Workspace
Content Source: databricks/security/network/ip-access-list.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@pnarsi Thank you for sharing your feedback. We are actively investigating it. We will get back to you soon. Thank you.

@pnarsi Thanks for the question. Github forum is dedicated for docs related issues. For any technical queries or clarifications, we encourage to utilise Microsoft Q & A platform. Kindly raise your query on Microsoft Q&A Platform

@ShaikMaheer-MSFT - I am happy to raise query on the Q&A platform but I believe is this also a documentation related issue as well. For many other Azure Databricks pages the documentation mentions how to configure a particular setting via the databricks UI as well as via Databricks CLI and or the Databricks API. This page only mentions the use of the Databricks API. If this is the only supported mechanism for managing Access List it would be extremely helpful to have this explicitly mentioned in this page as a known issue/limitation.

@pnarsi Thank you for giving clarity on ask. I added doc-enhancement tag to it and assigned it doc owners to review your feedback and update as appropriate.

@mssaperla  @leifbro Could you please validate customer feedback and update doc as appropriate. Thank you.

Currently it is the API only.
#please-close

#please-close


LBRY Keeps Asking For A Claim Code

Everytime I launch LBRY or go to settings then return back, it is always asking for my claim code. I entered a code to get the new download link, then when it popped up asking to enter the code again, it said the code has already been used. So now it keeps asking for the claim code and always opens to localhost:5279/?claim   .
Ubuntu 14.04.4 LTS

Closing this as its old; please re-open if it still persists on the most recent version (0.6.3)


Attempt to fix "uninitialized constant Rich::RichFile" by referencing module directly

Upon database migrations and other rake tasks, I would get this error out of paperclip.rb:
uninitialized constant Rich::RichFile

Referencing the class with its module seems to fix the problem.

Up-to-date version of this pull request is #203.


Creating a subscription, adding people to GROUPS

I've been through a lot of different ideas on how to get this together.  I've tried using the merge vars, I have tried lists(id).interests, etc.  Could someone throw me a quick little example of adding a subscriber to a group?  Thanks a lot

Using API v3 can be a little confusing. Let me go through how I figured it out. The documentation is manually in JSON schemas. Here's the schema for a list member. Note the "interests" dictionary.
At this point, I wanted to see what existing data looked like so I fetched a member from an existing list:
g.lists(list_id).members(member_id).retrieve

The relevant bit of the response looked like this:
{"id"=>"...", "email_address"=>"...", ..., "interests"=>{"3def637141"=>true, "f7cc4ee841"=>false, "fcdc951b9f"=>false, "3daf3cf27d"=>true, "293a3703ed"=>false, "72370e0d1f"=>false, "d434d21a1c"=>false, "bdb1ff199f"=>false, "a54e78f203"=>false, "c4527fd018"=>false}

So it's a map of interest ID to boolean value. So how do we get interest details so we can get the interest ID? Well, looking at this doc page, we need to do this:
g.lists(list_id).interest_categories.retrieve

To get a list of interest categories. That gives us something like:
{"list_id"=>"...", "categories"=>[{"list_id"=>"...", "id"=>"0ace7aa498", "title"=>"Food Preferences", ...}] ...}

The ID we're interested in is "0ace7aa498," which will let us fetch a list of details for this interest group:
g.lists(list_id).interest_categories("0ace7aa498").interests.retrieve

That response gives the interest data, including the ID for the interests themselves. Now we can update like this:
g.lists("31067f2f53").members("912ba5a26c1634b9b3d446546c529773").update(body: {interests: {"3def637141": true, "f7cc4ee841": false}})

Hope that helps.

Is there a way to do all of this when creating the initial subscription?  If not, I've been having trouble going from Mailchimp's API documentation to creating something usable through Gibbon.
https://apidocs.mailchimp.com/api/2.0/lists/member-info.php
To implement member-info, I was trying things like:
g.member_info("LIST-ID", [{email: "USER-EMAIL"}]).retrieve
My understanding is off, I'm aware.  Is there a general rule of thumb?
Thanks a lot for your help.

Okay - two things up front. MailChimp has versioned their API. If you want to use API v2, you need to use an old version of Gibbon (v1.2.1). That works very differently from API v2, which the current version of Gibbon works with. I'd suggest hitting the new version of the API since that's what MailChimp recommends.
When you say "is there a way to do all of this when creating the initial subscription?" do you mean is there a way to set interests when subscribing a user without making a second call to update? Yes, I'm sure when you subscribe a user you can just pass the list of interests as I have above as part of the body parameter. The key here is knowing the list ID, and the IDs of the interests you want to assign to the user. If you know those things up front, then it's a matter of making a simple call. An example of this that sets merge fields and interests might look like:
g.lists(list_id).members.create(body: {email_address: user_email_address, status: "subscribed", merge_fields: {FNAME: "Bob", LNAME: "Smith"}, interests: {some_interest_id: true, another_interest_id: true}})


Semrush Losing Connection

Umbraco Version: 8.18.12
Umbraco.Cms.Integrations.SEO.Semrush Version: 1.2.2
Config variables:
Umbraco.Cms.Integrations.SEO.Semrush.BaseUrl: "https://oauth.semrush.com/"
Umbraco.Cms.Integrations.SEO.Semrush.UseUmbracoAuthorization: "true"
We have been successfully using the Semrush plugin on two client sites however both seem to be encountering a problem where they routinely lose connection to Semrush and stop working. The "Status" button still reports as connected, but the plugin stops working until the client runs through the authentication process again. We have been monitoring this and it seems to occur over weekends, possibly due to inactivity.
Have you encountered this problem before and is there a way to extend the length of time the authorisation remains valid?

Hi @wjamieson ,
I have released version 1.2.4 with a fix for this.
Due to the fact that the access token was expired and couldn't be refreshed using the access token, the UI was not updated properly.
Thank you for bring this to our attention,
Adrian


[Hackadoc] Add a workspace-OpInsights

Created an article for setting up a workspace

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

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

changed tag to indicate microsoft contributor


Elastic transcoder

Supersedes #361.

This looks fine to me, all good for merge?

This looks fine to me, all good for merge?

I think so.

Thank you!

🎉 Awesome! Thank you @ericmj for pushing this through!


error: ‘ParseCommandLineFlags’ is not a member of ‘google’

Solved by adding #include <gflags/gflags.h> to following two files:

dynablox/dynablox_ros/src/cloud_visualizer_node.cpp
dynablox/dynablox_ros/src/motion_detector_node.cpp

Great catch! Please feel free to open a pull request for these changes!


Ludwig does not use tensorflow-gpu?

I have tensorflow-gpu installed and Keras can use the GPU effectively. I only have one GPU.
With ludwig, I tried a regression problem and found the training is very slow.
train_stats = ludwig_model.train(data_df=df, logging_level=logging.ERROR, gpus=[0])
By watch -n 1 nvidia-smi, I found the training did not actually utilize the GPU but stored the data in the GPU memory anyway.
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.93       Driver Version: 410.93       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro P6000        Off  | 00000000:03:00.0  On |                  Off |
| 26%   44C    P8    19W / 250W |  24289MiB / 24449MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       822      G   /usr/bin/gnome-shell                         186MiB |
|    0      4687      C   /home/yshi1/anaconda3/bin/python           22929MiB |
|    0     10166      C   /home/yshi1/anaconda3/bin/python             977MiB |
|    0     23459      G   /usr/bin/X                                   191MiB |
+-----------------------------------------------------------------------------+

Please try this commands:
pip uninstall tensorflow
pip install tensorflow-gpu

Please try this commands:
pip uninstall tensorflow
pip install tensorflow-gpu

This did not solve the problem. The GPU was still not fired up except the memory occupation.

The fact the the GPU memory is fully utilized by TesnorFlow means that the model is running on GPU.
Try to run the same model from the command line instead of using the API and you should see the TensorFlow messaged printed on stderr.
The fact that the utilization of the GPU is low may have to do with a couple things: your model is really small so there's not much computation per batch to be done, or your batch is really small and so again there's not much computation to be done per batch. To test for this, try to increase the batch size considerably.
Finally, the process that reads data and provides it to TensorFlow at the moment is not super optimized, we are working on improving it, but you may be hitting an i/o bottleneck if your computation per batch is too small.

Thanks, I had a similar thought about it. I had the same setup with keras/tensorflow and its runs much faster and with higher GPU utilization rate. I am thinking the overhead communication cost is quite high between ludwig and tensorflow.

The fact the the GPU memory is fully utilized by TesnorFlow means that the model is running on GPU.
Try to run the same model from the command line instead of using the API and you should see the TensorFlow messaged printed on stderr.
The fact that the utilization of the GPU is low may have to do with a couple things: your model is really small so there's not much computation per batch to be done, or your batch is really small and so again there's not much computation to be done per batch. To test for this, try to increase the batch size considerably.
Finally, the process that reads data and provides it to TensorFlow at the moment is not super optimized, we are working on improving it, but you may be hitting an i/o bottleneck if your computation per batch is too small.

You you can confirm it's running on GPU right? If you run through the command line you get the tf GPU prints and the speed is the same as running it through the API, right?
Yes the communication overhead is one thing we really need to optimize. I'd be curious to take a look at the spcifics of this and run some comparisons, would you be willing to share your tf/keras scripts and your Ludwig model definition or something that replicates it?

I did not have luck with the yaml file input so I did not run through command line. I’d like to see an example yaml file model definition so I can try.
But I tried to change the batch sizes with 32, 64, 128, 256, and 512. The performances were very different, which indicates the GPU was actually working. For my problem, it appeared that the batch size of 64 gave me the best efficiency, which was several times faster than using 32.
With batch size of 64, the performance got closer to keras/tensorflow, but it was still slower.
I have a simple regression problem. With the same network structure and optimizer setup, I had very different results from using Ludwig and keras. I found Ludwig was very sensitive to the initializer parameters.
My data has proprietary information, so I will need to consolidate my scripts and trim the proprietary information before I can share it. But I will work on it in a day or two. Thanks and congratulations on the great tool!

As for the YAML examples, you find a bunch here. Be mindful of the - and the indentation.
Glad you were able to make it work decently fast with a bigger batch size.
Regarding the initialization, you can specify which initializer to use, so playing around with that may give you some better results.
Regarding the reproducible example, you can use the data_synthesyzer script in ludwig/data co create a dataset that looks like yours pretty easily, we use it for integration tests. That should resolve the data issue.
I'm closing the issue, but feel free to either open another one or reach out in private if you can provide me with the comparison script.
You're welcome.


Useful methods on Plotter

For reusing a Plotter to reduce number of allocations, it's necessary to clear the contained Raster before each composite.  The way this must be done currently is:
let mut pr = p.raster();
pr.clear();
p = Plotter::new(pr);
p.set_transform(Transform::{...}); // Reset the transform

It would be more elegant to have an API to do either:
p.raster_mut().clear();

or
p.clear();

Added in https://github.com/DougLau/footile/commit/4600d98448ea8d2b0a30f24f795b5ab1295b57d1


Improve insert from subquery target / source column validation

If the size of the target columns doesn't match the size of the source
column an additional check is made to see if the missing source columns
can be ommitted. This is the case if the tail target columns are
generated columns.
For example:
target: [col1, col2, generated_col]
source: [col1, col2]

Is valid, but:
target: [col1, generated_col, col2]
source: [col1, col2]

Is not.

ack

ack again ;)


Inspector: add width, height for convenience alongside BBox

Example use case: compare dimensions of two macros.

Missing )

Missing DCO

Missing DCO

Fixed, force pushed.


String example fields are incorrectly converted to numbers during bundling when all characters are numeric with a leading zero

Describe the bug
String example values with leading zeros are treated as numbers, with quotes being stripped during bundling, resulting in failing schema validation of the generated API definition file.
To Reproduce
Steps to reproduce the behavior:

Define a simple attribute example, or a complete example structure for (for request, response or in components/examples) having a quoted string attribute example value with numeric characters and a leading zero.

    Account:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example: '0123456789'

    Customer:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example: '1234567890'
        name:
          type: string
          example: 'Contoso'

Run openapi build

Expected behavior
These id string examples in Account.id and Customer.id must be kept after bundling. The non-numeric value in the Customer.name example can be stripped of the redundant quotes.
    Account:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example: '0123456789'

    Customer:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example: '1234567890'
        name:
          type: string
          example: Contoso

Actual behavior
The example value in Account.id with a leading zero ends up without quotes, failing schema validation. The quotes are kept for the Customer.id example with a leading 1 digit. Quotes are stripped for the Customer.name example, as expected.
    Account:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example:<PHONE_NUMBER>

    Customer:
      type: object
      description: Resource representing an account
      properties:
        id:
          type: string
          example: '1234567890'
        name:
          type: string
          example: Contoso

OpenAPI definition
3.0.1
openapi-cli Version(s)
1.0.0-beta.44
Node.js Version(s)
v15.10.0

Hi @adamaltman, @austpaul
Yes, that's correct. Currently I'm working on upgrading js-yaml  package which includes a fix for this. I'm planning to release this feature on Monday after testing this it with reference-docs.


Moved logo to static directory

Moved logo.png to its expected location

The public directory is updated by Brunch and is only tracked by Git for an easier time for our Docker deployment. Both the Brunch server and Docker NGINX configuration will serve the file correctly. Please use brunch watch -s for local testing (this will also proxy your API requests so it will work, it won't work if you just open the HTML file regardless of if the paths are correct).


Add custom field_type to FormBuilder

I'd like to add a field to the form builder that allows a user to pay for something using paypal.
The easiest way I see to do this, would be if there was a way to give FormBuilder a custom field_type, which references other models elsewhere in my project. Currently I don't see a way to add a custom field_type like this.

Hi @johnwiseheart,
I don't think that you need to add a new field type to FormBuilder for your task. It seems to me that you just can extend your page model (the one which was inherited from the AbstractForm or AbstractEmailForm models) with required fields / methods.
Useful docs:

Form builder
Page models

If you really want to add a new field type to FormBuilder, you create your own form builder class and override default FormBuilder using form_builder attribute in AbstractForm/AbstractEmailForm-derived models.
But keep in mind that form_builder attribute is not documented, so it may be changed in future.

The issue is that I want the user to be able to optionally add a payment to
a form, so it would need to be in the form builder itself, as far as I can
tell. I will have a look and see whether extending the page model works as
I'm hoping, but may have to override the builder otherwise.
On Tue, 12 Jul 2016 at 10:31 PM Mikalai Radchuk<EMAIL_ADDRESS>wrote:

Hi @johnwiseheart https://github.com/johnwiseheart,
I don't think that you need to add a new field type to FormBuilder for
your task. It seems to me that you just can extend your page model (the one
which was inherited from the AbstractForm or AbstractEmailForm models)
with required fields / methods.
Useful docs:

Form builder
http://docs.wagtail.io/en/v1.5.2/reference/contrib/forms.html
Page models http://docs.wagtail.io/en/v1.5.2/topics/pages.html

If you really want to add a new field type to FormBuilder, you create
your own form builder class and override default FormBuilder using
form_builder attribute in AbstractForm/AbstractEmailForm-derived models.
But keep in mind that form_builder attribute is not documented, so it may
be changed in future.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/torchbox/wagtail/issues/2835#issuecomment-232032962,
or mute the thread
https://github.com/notifications/unsubscribe/AEEo1I9dpegS2pR52Fe_VorEoUic5_6Oks5qU4kIgaJpZM4JIvrL
.

At the moment I see only one reason why do you need to add a new field type to FormBuilder: you need to do that, if you want to save some value from your "payment field" in a DB and be able to export this value to CSV.
If you don't want to save value / input in the DB and if you don't need an export, you can add this functionality on the page model level.
Also there is pull request (#2617, needs some work) that allows you to add an extra data to the DB and to the CSV export.


Focusable components should expose a public focus method

Feature Request
Problem description
It is very hard to focus components explicitly, especially if the components have multiple slot.
Proposed solution
Actionable (Button, Menu.Item, Toolbar.Item, List.Item, Tree item/title), input (Input, Checkbox, Radio, Dropdown) and container (Menu, Toolbar, List, Tree) components should expose a public focus() method. The user can then obtain a ref to the component and call focus() on it without having to figure out, which slot to focus.

Has there been any activity for this? This would be really useful for getting our accessibility requirements. Thanks


Modify Signature task keying

Change the keying of the signatures to only take the filename into account, instead of the Maven coordinates (name, ext, classifier, etc...).
The reason being that previous keying can't differentiate between files that are on a different path but have the same filename.
Fixes #20166

@bot-gradle test RFM

@bot-gradle test and merge

No milestone for this PR. Please set a milestone and retry.

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

OK, I've already triggered a build for you.