TypeError: an integer is required (got type str) for endDt

For the Ticker#history function in the fix introduced by commit: https://github.com/ranaroussi/yfinance/commit/9d5366d707d3f45ab84d3e92dc4edcb9498dcb7f
the end parameter has to be an integer, but the conversion to integer happens only under certain conditions:
start or period is None or period.lower() == "max"
In the current version (0.1.74) the call: ticker.history(period='2y', interval='1d', end='2022-07-13') would cause the following exception:
endDt = _pd.to_datetime(_datetime.datetime.fromtimestamp(end))
typeError: an integer is required (got type str)

Setting aside the exception for now - how do you want the end argument to be used in this scenario? Currently it is ignored completely in Yahoo request, but you setting it implies you want it to be used. I ask because the correct fix might be to force user to leave start/end blank when setting period.

Sorry if this is an edge case, but from what I see (in the returned data) the end parameter is processed in the function call.
For the fix I would suggest to handle the end parameter independently from other input variables.
I would gladly provide a merge request with a fix by the end of the week.

Correct that the yfinance function call uses end now, but this is a recent addition that post-processes the data after the Yahoo web request. For a long time before this commit, when period was set yfinance would completely ignore end.
This is a valid issue because end is ambiguous when period also set. I think it is nonsense to set both period and start/end.

That PR is what I think is best solution. What do you think?


Update style.css

-blog card images all the same size

hopefully this fixes the weird conflict stuff

hopefully this fixes the weird conflict stuff


Feature: bcmath polyfill

Instead of depending on btcmath extension we could use this polyfill https://github.com/phpseclib/bcmath_compat. But considering 99.9% of hosting services have it preinstalled it might not be worth it.
For context see #43

Closing, as it only affects sats mode and seldomly people are affected it would add dependency without lots of usage.


Suspend Dynamic Tables after completion of the Notebook execution

Getting Started with Running Distributed PyTorch Models on Snowflake
I noticed the Dynamic Tables created for the Features are set to perform a full refresh.    Perhaps we should consider suspending them - or mentioning that they should be suspended after the exercise is complete so additional compute is not incurred.

@sfc-gh-jdority Thanks for flagging.
@sf-gh-sjasti Pl add a "Cleanup" step before "Conclusion And Resources" to suspend DTs.

those refreshes are part of feature store and there is no much credits incurred with it since data is static. But still I will provide cleanup script for the quickstart overall

The Compute Pools need to be stopped in the clean up for sure ... I burned
a few credits this past week.  :-)
On Thu, Dec 5, 2024 at 10:55 AM Swathi Jasti @.***>
wrote:

those refreshes are part of feature store and there is no much credits
incurred with it since data is static. But still I will provide cleanup
script for the quickstart overall
—
Reply to this email directly, view it on GitHub
https://github.com/Snowflake-Labs/sfquickstarts/issues/1768#issuecomment-2521172548,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBZUEEYB24WOAGW5IRINZVT2ECOQNAVCNFSM6AAAAABTC5Y2POVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGE3TENJUHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


digga for nixos on flakes

For your transition to flakes you may find https://github.com/divnix/digga useful.
Cheers!

Thanks! I'll keep an eye on it.


Changes in correlation with new GH Action Permission Changes.

These changes aer made in correlation with the following changes coming soon in the GH actions permissions. Please take a kind look. ❤🙏☕

https://docs.opensource.microsoft.com/github/apps/permission-changes/

To start with going with the most safest option with read only permission, for publish we need the write for content. Given this will spread pretty soon lets try this out and I will gradually open similarity changes in other repos I know.

For Sample test if we do content: read for publish we will get some error like this which I tested in my fork for other project.

Thank you. ❤🙏

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2b43d49) 73.57% compared to head (c3b4f7e) 73.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   73.57%   73.57%
=======================================
  Files          37       37
  Lines        3130     3130
  Branches      149      149
=======================================
  Hits         2303     2303
  Misses        822      822
  Partials        5        5

Flag
Coverage Δ

unittests
73.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


feat(type): wrap @font-face in mix-in

Fixes #143.
Changelog
Changed

Wrap @font-faces in explicit mix-ins, instead of import-once guard.

Oops good catch @joshblack! - Fixed.

@asudoh what do you think of adding the file import alongside the mixin? it's been nice to be able to just:
@import '@carbon/type/scss/font-family/sans';

And have sans loaded in automatically

@joshblack If I understand what you said correctly - Carbon has $css--font-face variable for that purpose. Good to have a similar mechanism here, though we cannot use the same name because Carbon has to choose what library to load @font-face.

@asudoh I think we should offer:

Mixin for conditional inclusion (used to satisfy flag cases like for carbon)
File import for ease-of-use for people using directly

CI is failing on the bundler check command, just need to add in an import for the exports mixin so the individual partial compiles! 👍

Thanks @joshblack for the update!


Graphical Fragment Assembly format

Heng Li has proposed a common assembly graph file format called GFA (Grapical Fragment Assembly). The proposal is here:

First update on GFA
A proposal of the Graphical Fragment Assembly format

When browsing BAM files of reads aligned to contigs, it’s helpful to know which contig(s) precede and follow the contig that you’re currently looking at, and also see whether there’s any sequence overlap with that contig. Would you consider adding support for GFA to IGV? It’s similar in nature to SAM. I’d love to have the feedback from the perspective of a developer implementing a browser, if you’d like to add your comments to Heng’s blog post. ABySS will support the GFA in its next release.
Cheers,
Shaun

I think this is a bit out of scope, or at least out of scope given the project resources (I am the "resources").  Also, there has been no update on the proposal since last September.


IP address '1.1' considered valid in the version 2.1.0

The version 2.1.0 now considers ip address 1.1 as valid. Is this intentional and actually correct?
ipaddr.js 1.9.1
IpAddr.isValid('1.1')) => false
IpAddr.parse('1.1')) => Error: ipaddr: the address has neither IPv6 nor IPv4 format

ipaddr.js 2.1.0
IpAddr.isValid('1.1')) => true
IpAddr.parse('1.1')) => IPv4 { octets: [ 1, 0, 0, 1 ] }

Yeah. So does ping:
$ ping 1.1
PING 1.1 (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=57 time=15.1 ms
^C
--- 1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.088/15.088/15.088/0.000 ms


[WASAPI] Buzzing and distorted low-pitched audio

Godot version
3.5.1.stable
System information
Windows, NVIDIA GeForce RTX 2070, AMD Ryzen 5 3400G, 16GB RAM, Headset Earphone (Arctis 7 Chat)
Issue description
A Cassette Beasts player reported that all the music and sound effects are low-pitch and accompanied by a buzzing noise. In their log was this:
WARNING: WASAPI: Unsupported number of channels: 1
   at: AudioDriverWASAPI::init_render_device (drivers\wasapi\audio_driver_wasapi.cpp:328) - WASAPI: Unsupported number of channels: 1

The issue only seems to affect the user's "Arctis 7 Chat" earphones. Switching to a different device resolved the issue.
The user captured an example of the distorted audio here:
https://www.youtube.com/watch?v=34YBpimGIBk
Steps to reproduce
Not known. Probably:

Obtain "Arctis 7 Chat" earphones
Try to play audio through the WASAPI driver

Minimal reproduction project
N/A

The WASAPI driver doesn't seem to implement mono audio indeed. This might just be an oversight.
Relevant code (in master, but it's likely similar in 3.x and 3.5):
https://github.com/godotengine/godot/blob/352ebe97259622f20b47627b4bf747cdfc79304d/drivers/wasapi/audio_driver_wasapi.cpp#L482-L494
Likewise for macOS's coreaudio driver:
https://github.com/godotengine/godot/blob/352ebe97259622f20b47627b4bf747cdfc79304d/drivers/coreaudio/audio_driver_coreaudio.cpp#L105-L117
While pulseaudio handles mono and other odd channel counts, apparently by just adding + 1:
https://github.com/godotengine/godot/blob/352ebe97259622f20b47627b4bf747cdfc79304d/drivers/pulseaudio/audio_driver_pulseaudio.cpp#L203-L223

CC @EIREXE who has been doing some work on the WASAPI driver in the past.
@tcoxon I'm not too familiar with audio setup on Windows, but it might be possible for you to configure things to run as if your audio device was mono, and thus reproduce (and possibly fix) the issue.

Duplicate of #25875
Looking at the bottom of that issue, there are multiple reports linking it too.

CC @EIREXE who has been doing some work on the WASAPI driver in the past.
@tcoxon I'm not too familiar with audio setup on Windows, but it might be possible for you to configure things to run as if your audio device was mono, and thus reproduce (and possibly fix) the issue - when you get some time after handling the post-release priorities ;)

I don't use godot's built-in audio engine anymore, I switched to miniaudio and I would like to suggest godot to do the same in my opinion

Duplicate of https://github.com/godotengine/godot/issues/25875.


Fix last step in recovery-tool.md

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/9663.

@dstrome
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Benchmark of 0.13 Release

Long schedule issue:
13:32:14.665 <0.237.0> [error] long_schedule warning: pid = <0.142.0>, info: [{timeout,233},
                                               {in,{mnesia_locker,loop,1}},
                                               {out,{mnesia_locker,loop,1}}]
[{initial_call,{proc_lib,init_p,5}},{current_function,{mnesia_locker,loop,1}},{registered_name,mnesia_locker},{status,waiting},{message_queue_len,0},{group_leader,<0.135.0>},{priority,normal},{trap_exit,true},{reductions,7536808},{last_calls,false},{catchlevel,2},{trace,0},{suspending,[]},{sequential_trace_token,[]},{error_handler,error_handler},{memory,29528},{total_heap_size,3573},{heap_size,2586},{stack_size,15},{min_heap_size,233}]
13:32:14.668 <0.237.0> [error] long_schedule warning: pid = <0.144.0>, info: [{timeout,233},
                                               {in,{mnesia_tm,doit_loop,1}},
                                               {out,{mnesia_tm,doit_loop,1}}]

Mnesia info:
# ./bin/emqttd_ctl mnesia
===> System info in version "4.13.1", debug level = none <===
opt_disc. Directory<EMAIL_ADDRESS>is used.
use fallback at restart = false
running db nodes   =<EMAIL_ADDRESS>stopped db nodes   = []
master node tables = []
remote             = []
ram_copies         = [queue,retained,session,subscriber,topic,trie,trie_node]
disc_copies        = [mqtt_admin,schema]
disc_only_copies   = []
[{'emqttd@<IP_ADDRESS>',disc_copies}] = [mqtt_admin,schema]
[{'emqttd@<IP_ADDRESS>',ram_copies}] = [subscriber,trie_node,session,topic,
                                     retained,queue,trie]
432553 transactions committed, 9 aborted, 87427 restarted, 0 logged to disc
0 held locks, 0 in queue; 0 local transactions, 0 remote
0 transactions waits for other nodes: []

benchmark for 0.13.0 release

./bin/emqttd_ctl recon bin_leak
{<10106.187.0>,-181,
 [emqttd_pubsub_1,
  {current_function,{gen_server2,process_next_msg,1}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.194.0>,-63,
 [emqttd_pubsub_8,
  {current_function,{gen_server2,process_next_msg,1}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.189.0>,-59,
 [emqttd_pubsub_3,
  {current_function,{gen_server2,process_next_msg,1}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.228.0>,-58,
 [emqttd_alarm,
  {current_function,{gen_event,fetch_msg,5}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.192.0>,-57,
 [emqttd_pubsub_6,
  {current_function,{gen_server2,process_next_msg,1}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.227.0>,-5,
 [emqttd_broker,
  {current_function,{gen_server,loop,6}},
  {initial_call,{proc_lib,init_p,5}}]}
{<10106.235.0>,-4,
 [emqttd_sysmon,
  {current_function,{gen_server,loop,6}},
  {initial_call,{proc_lib,init_p,5}}]}

...

Fixed in 0.14. Hibernate if subscriber 'DOWN' received to gc binary:
handle_info({'DOWN', _Mon, _Type, DownPid, _Info}, State) ->

    Routes = ?ROUTER:lookup_routes(DownPid),

    %% Delete all routes of the process
    ?ROUTER:delete_routes(DownPid),

    ?HELPER:aging([Topic || Topic <- Routes, not ?ROUTER:has_route(Topic)]),

    {noreply, State, hibernate};


Fix logging/pubub system tests

Broken  after #2223.

Namespace packages break use of 'Client' from package.

Shorten bucket / topic names to match limits.

Stop sharing sink / metric names across tests (brush clearing to find the real issue with bucket / topic names).

LGTM pending travis!

Travis will pass for the PR (only changes to system_tests/), but fail on merge (due to other #2259 issues).


fixup ruby 2.7 warning

When using the SDK w/ Ruby 2.7 URI.escape warning are being logged
/../gems/ynab-1.16.0/lib/ynab/configuration.rb:178: warning: URI.escape is obsolete
/../gems/ynab-1.16.0/lib/ynab/api_client.rb:270: warning: URI.escape is obsolete

From the URI docs:
https://ruby-doc.org/stdlib-2.6.3/libdoc/uri/rdoc/URI/Escape.html

encode(*arg)click to toggle source
Alias for: escape

escape(*arg)
Escapes the string, replacing all unsafe characters with codes.
This method is obsolete and should not be used. Instead, use CGI.escape, URI.encode_www_form or URI.encode_www_form_component depending on your specific use case.

I just removed the URI.encode as it seems is not really needed. By looking at the source it seems that there are no GET params to escape

👋  @bradymholt any chance you could look at this? 🙏

Thanks for the PR @eredi93 !  I'll go ahead and merge this.  I'll need to update our generation template too but I can do that separately.  I'll try to get a new version released today and post back here when it is available.

Version 1.18 should drop usage of URI.encode to avoid that error.

Thanks @bradymholt 😄


[LJS-1] Add Settings Popover (Playback Speed & Quality)

LJS-1

Heard from Bonfire that they're very interested in the playback speed work because their users are using Livepeer for audio-only use cases and this is a common feature

Heard from Bonfire that they're very interested in the playback speed work because their users are using Livepeer for audio-only use cases and this is a common feature

+1

This should be relatively straightforward, we will need designs first (cc @vadymdrut @adamsoffer) and the implementation should be a couple days with expo-av [1] and hls.js [2]
[1] https://docs.expo.dev/versions/latest/sdk/video/#rate
[2] https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate

@0xcadams design for both playback speed and quality can be found here


Homework-15: Adding files for homework-15

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
0

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:x: ERROR

bugs
0

code_smells
1

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

-The commit message's format must be proper

Work on the directory structure
Use separate files for the interfaces, constants, etc.
Modularize the code
Drift video not added
Irrelevant files must not be added


reduce entropy in wordlist

I found a german wordlist for BIP39 with slightly lower entropy. Since I didn't really vet my list apart from filtering by length and reducing the initial set "fairly" accross all characters, I suggest updating mine.

The word falsch (means "false") was in their source set which was then inserted into their released list as FALSE...
The only application I know that will pick up the german word "falsch" and return "FALSE" when you copy/paste the text into an editor MS Excel.
this makes me much happier than it should...

sounds good to me. youre the expert in this area


VPS

Hi guys. Sorry for bad english
I start the vps server but this letter to the console:
[Client] undefined is already in use
[BATCH] Client Shutdown, waiting 15 seconds before a restart.
Help me!

Use the root to run.
For ubuntu sudo

It did not work.

What's your OS?
Какая у вас ОС?

Centos

lol change the default port (80) to another in configs/ ...

It did not work...

Change to port to something over 1024, e.g. to 8080.

Run the install_modules script then start the client.


Issue with Preprocessing

I downloaded coco dataset 2017 and its annotation file and tried to follow the train.md file
in Preprocessing I provide the path to my train2017 folder (unzipped) and instances_train2017.json (unzipped)
in the end its giving me errors like list indices must be integers or slices, not list.  I felt there is an issue with the way i pass the data.

When downloading the pre-processed smaller size tracking dataset I get this error.  https://imgtracking.blob.core.windows.net/pysiamtracking/data/got10k_train_images.zip


TileMap errors after shrinking atlas image

Godot version
4.1.rc3.mono
System information
Windows 10, Forward+, NVIDIA GeForce GTX 1050 Ti (<IP_ADDRESS>79)
Issue description
Replacing a TileMap's TileSet's image with a smaller one outside of the Godot editor introduces errors when running the application.
It appears that the TileSet continues to hold some information about the old image, and errors because that data refers to tiles outside of the current texture size.
I have not found a good in-editor way to fix these errors without recreating the whole TileSet again from scratch.
I was however able to remove the errors by manually editing the TileMap tscn file and remove every line starting with a coordinate (x:y) outside of the current texture's extents.
Steps to reproduce

Create a new project
Create a two pngs of different sizes (e.g. 32x16 and 48x16) and only move the large image to your project folder
Create a TileMap node
Inspector -> Tile Set -> New TileSet
Drag the large image into Tiles in the bottom window
"The atlas's texture was modified. Would you like to automatically create tiles in the atlas?" -> Yes
Outside of the Godot editor, replace the large image with the small image you created earlier.
Go back to the Godot editor. Save, and launch the project.
Observe 3 errors per tile that the large image had, that the small does not.

E 0:00:00:0910   create_tile: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
  <C++ Error>    Condition "!room_for_tile" is true.
  <C++ Source>   scene/resources/tile_set.cpp:4138 @ create_tile()
E 0:00:00:0910   has_alternative_tile: The TileSetAtlasSource atlas has no tile at (2, 0).
  <C++ Error>    Condition "!tiles.has(p_atlas_coords)" is true. Returning: false
  <C++ Source>   scene/resources/tile_set.cpp:4518 @ has_alternative_tile()
E 0:00:00:0910   create_alternative_tile: TileSetAtlasSource has no tile at (2, 0).
  <C++ Error>    Condition "!tiles.has(p_atlas_coords)" is true. Returning: TileSetSource::INVALID_TILE_ALTERNATIVE
  <C++ Source>   scene/resources/tile_set.cpp:4468 @ create_alternative_tile()

Minimal reproduction project
This project has gone through the exact same steps as in the outlined in Steps to reproduce, and will throw errors when running it.
tileset_errors.zip

Related to https://github.com/godotengine/godot/issues/74946 (possible duplicate?).

Duplicate of #61296

I have not found a good in-editor way to fix these errors without recreating the whole TileSet again from scratch.

You can restore the big texture, remove tiles that would end up outside and go back to smaller texture.

If you have a 32x32.png spritesheet for Isometric. In Tilemap, use Isometric 32x32 first, then import spritesheet 32x32.png. If so, set the Tilemap to 32x16. It's like a reversal method. You have to try it.....


Video Trimming: Adjust trim mode background color

Bug Description
There is a vertical grey bar next to the trimming tools

Expected Behaviour
same background color as the rest of the editor background
Steps to Reproduce

Screenshots

Additional Context

Plugin Version:
WordPress Version:
Operating System:
Browser:

Verified in QA


ImportError: No module named '_pywrap_tensorflow'

I installed tensorflow in VS Code on Python 3.7.7 (32-bit) using the code :
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
It successfully got installed at first, but when i tried to run a small code to check if it works it gave me error. I have referred to the earlier mentions of this issue and i have Microsoft Visual C++ 2015 already installed.
Here is the code i tried to run -
import tensorflow as tf
import numpy as np
r0t = tf.constant(4)
print(r0t)```

**Here the error i'm facing -**

```PS D:\programs\Python> python tensor.py
Traceback (most recent call last):
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(__file__)])
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\__init__.py", line 66, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
    import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tensor.py", line 2, in <module>
    import tensorflow as tf
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\__init__.py", line 72, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(__file__)])
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\__init__.py", line 66, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "C:\Users\Harshit Paliwal\AppData\Local\Programs\Python\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
    import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'

Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
PS `D:\programs\Python>```
I also reffered to the GitHub link given in the last 4th line but the page is no more available.
Please provide me with a working solution to this problem.
Thanks

@harshitpaliwal1011
Please, fill issue template..
Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version.
Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

Hey, @ravikyram
I'm new to the platform, thanks for guiding me.
My system specifications are as follows:

Operating System - Windows 10 Pro (x 64 bit architecture)
Processor - Intel Core i3-2330M CPU @ 2.20GHz
RAM - 8 GB
Language - Python (Version 3.7.7) 32 bit architecture
Editor Used - VS Code
Installed pip - Version 20.1.1
Installed tensorflow - Version Unknown (Latest)

Here is the elaborated description of the problem i faced:

I tried to upgrade my pip version in order to be able to install tensorflow

When i tried to install tensorflow with pip install tensorflow command, it didn't work out.

After trying some of the listed solutions to install tensorflow, i then switched to a virtual environment and updated pip to be able to install tensorflow

After all this i was finally able to install tensorflow with the help of this command
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl

But now whenever i try to import tensorflow
For example this code:

It gives the above mentioned error.

@harshitpaliwal1011
Can you try with Windows 7 or later (64-bit) (Python 3 only)
Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
I don't think Tensorflow support 32 bit architecture.Please, refer the issue #32315
Please, follow the instructions from here..Thanks!

@ravikyram
Thanks, I'll try installing python 64 bit and then tensorflow.

@ravikyram
Update, thanks for the help.
I successfully installed Python 3.7.8 (64 bit) and then installed tensorflow
Imported tensorflow and ran a small code. It seems to be working fine now.
Here's the code snippet and the output.

Code:

Output:

@harshitpaliwal1011
Please, close this thread , since your issue was resolved. Thanks!


Enphase Plugin Stops Updating After Night Without Restart

Hi,
I'm using the Enphase plugin to send data from my solar panels to MQTT. Everything works well during the day, but after a night of no solar production, the plugin stops updating, and I no longer receive any panel data. To fix this, I need to restart the plugin each morning.
Additionally, it's quite difficult to pinpoint in the logs exactly when the plugin stops updating or goes inactive. This makes troubleshooting more complicated.
Could you please look into this issue? Let me know if you need any logs or further details.
Thank you for your help!

Try latest beta and let me know

beta 14 will try reconnect if error occurs, please let me know tomorrow after test.

Thank you for the suggestion!
Yesterday, I installed beta 16, but unfortunately, this morning the plugin stopped updating again, and I had to reboot it to get it working. It seems the issue still persists.
I've attached the logs from this morning:
The first part shows when the plugin stopped updating.
The second part is from after I rebooted the plugin.
Let me know if there's anything else I should try or provide.
Thanks again for your help!
homebridge.log.before.txt
homebridge.log.after.txt

Your envoy just doesn’t respond to the request, as You see the plugin trying to connect again without success. May be You set to short fats refresh time.

Thank you for the response!
I understand that the plugin is trying to connect without success, but I’m wondering why everything works perfectly after I restart the plugin, and I didn’t have this issue before. If the refresh time was too short, wouldn’t the problem persist even after restarting?
I’ll try increasing the refresh time and see if that makes a difference. Let me know if there’s anything else I should check.
Thanks again for your help!

I testing this on my side and is working correct as of beta 16, I will investigate more time for this issue.

Just an update:
This morning, with version v9.4.1-beta.47, I didn’t need to reboot the plugin, and everything worked as expected. I’ll continue monitoring, but it looks promising so far.
Thanks again for your help!

I think latest beta.77 solved the issue, any info from your side.?

Yes, with beta 77 everything worked fine, no issues to report. I’ve just updated to beta 78 and will check tomorrow morning to see if everything is still stable.
Thanks for following up!

v9.4.1 released, I think is fixed finally.

@BenouGui any info ?

Everything is working well now—no issues to report. Thanks for the support and the updates!


add logging to label step

What this PR does / why we need it:
Adds a logging line to indicate that kubeone is starting to label nodes. Without this line I felt that error messages can sometimes be confusing. Here is an example, where label nodes failed:
INFO[16:03:22 CET] Applying addon nodelocaldns...
WARN[16:03:24 CET] Task failed, error was: kubernetes: updating NUC-1 Node
nodes "NUC-1" not found
WARN[16:03:34 CET] Retrying task...
WARN[16:03:34 CET] Task failed, error was: kubernetes: updating NUC-1 Node
nodes "NUC-1" not found

My first impression was that applying the nodelocaldns addon failed (which was not the case), because there is no mention of label nodes.
What type of PR is this?

/kind cleanup
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:

NONE

Documentation:

NONE

/hold
@SimonTheLeg please rebase the PR as we've got changes in prow config and now failing job is not there anymore :shrug:

@kron4eg Shouldn't be needed to rebase
/hold cancel

/skip

/hold

/retest

/retest


Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.

Issue Type: Bug
Can't zoom/change theme/any other operation which edits settings.json

File is not dirty.
Has 40+ warnings and 0 errors
When edits are made in json file by hand it works as expected
Same config file works in stable

VS Code version: Code - Insiders 1.29.0-insider (45d5d153bbebed743b77e426615aade34971eb46, 2018-10-19T06:58:45.940Z)
OS version: Windows_NT x64 10.0.17134

Duplicate of #61341


Fix Getting Started page / youtube videos

Purpose
Currently, a number of youtube videos in the Getting Started Page have menu bars that disappear on mouseover and have non-functional buttons.  Additionally the page is very improperly formatted with rows and columns extremely disorganized.
Closes Issue #2640
Changes
Organized rows and columns into proper formats.
Side Effects
Fixes youtube problem and improves page organization

@PatrickEGorman -- This actually should be a merge request to develop -- i.e. not a "HotFix" -- Think you had it right the first time! : )

@PatrickEGorman It's a hotfix then you don't need to merge develop into this pr.

Oops...  I thought I pulled from master but I actually pulled from develop.  Still figuring out Gitflow

Actually I think this is the wrong branch...


Pinned tabs are not tall enough when tab strip is in overflow mode

When there are enough tabs to cause Firefox's overflow to happen, pinned tabs are no longer tall enough.
(This is possibly related to #8.)

Turned out not to be related to #8, I just accidentally broke it in commit 476ef93cc1f5dc8878aeaaa122ca97606e01fdbb. It should be working properly now, thanks for reporting that bug.


ENG-17140  Ensure requests can be filtered because of method body

Description
Please include a summary of the change, motivation and context.

Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:

[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Any dependent changes have been merged and published in downstream modules

Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

The purpose of this test is to ensure that the Filter receives the contents of an HTTP request body, so that it can block the request, if required.  Previously, the request body was only being passed to the filter if the reader of the request body received an indication that the end-of-stream was reached.  However, in some cases, the reader would stop reading the request body without seeing the normal end-of-stream indication, and the filter would not be called.

@bradAtTraceable Some smoke tests are failing. Please update the tests as well :)


Bring kyverno into Maintenance dashboard

Reason
Kyverno is now on all product cluster, we need to decide if we want to bring its version info into maintenance dashboard
AC

Additional information / links

no


Cant connect to database in ratchet

i am using ratchet to make live messenger  so  i am trying to use mysql database to add online user and remove them when they close the problem is when i am trying to connect to database by mysql or pdo i got this error Class 'MyApp\mysql' not found in C:\xampp\htdocs\Athena\access\websocket\src\chat.php:8 or Class 'MyApp\PDO' not found in C:\xampp\htdocs\Athena\access\websocket\src\chat.php:8 in case of using pdo
and this is my code :
`<?php
namespace MyApp;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
use MyApp\conn;
class Chat implements MessageComponentInterface {
public function __construct() {
$conn = new mysql('localhost','user','','athena');
$this->clients = new \SplObjectStorage;
}
public function onOpen(ConnectionInterface $conn) {
$conn->query('INSERT INTO athena VALUES(id,1,1)');
$this->clients->attach($conn);
$data['type'] = 'id';
$data['id'] = $conn->resourceId;
$conn->send(json_encode($data));
echo count($this->clients) - 1;
echo "New connection! ({$conn->resourceId})\n";
}
public function onMessage(ConnectionInterface $from, $msg) {
    $numRecv = count($this->clients) - 1;
    echo sprintf('Connection %d sending message "%s" to %d other connection%s' . "\n"
        , $from->resourceId, $msg, $numRecv, $numRecv == 1 ? '' : 's');
    foreach ($this->clients as $client) {
        $data = json_decode($msg,true);
        $port = $data['port'];
        $code = json_encode($from);
        if ($port == $client->resourceId) {
            $client->send($msg);
        }
    }
}

public function onClose(ConnectionInterface $conn) {
    $this->clients->detach($conn);

    echo "Connection {$conn->resourceId} has disconnected\6";
}

public function onError(ConnectionInterface $conn, \Exception $e) {
    echo "An error has occurred: {$e->getMessage()}\n";

    $conn->close();
}

}`

Looks like you don't have the PDO extension installed. There is a problem with using PDO tho, it blocks the event loop. Take a look at https://github.com/voryx/PgAsync/ (PostGreSQL) or https://github.com/friends-of-reactphp/mysql (MySQL) for your database needs.

Looks like you don't have the PDO extension installed. There is a problem with using PDO tho, it blocks the event loop. Take a look at https://github.com/voryx/PgAsync/ (PostGreSQL) or https://github.com/friends-of-reactphp/mysql (MySQL) for your database needs

i am using xampp i think it contain pdo extenstion because i am using pdo in another projects and it work fine

Are they also ran from the cli or through fpm? And what's the difference environment configuration wise between those projects?

@loginpoint
C:\xampp\htdocs\Athena\access\websocket\src\chat.php:8 or Class 'MyApp\PDO' not found in

i think u need to import the PDO class.
try to add use PDO; in your file

your config file (database connect configs database name & ...) in http request has defined
load file config in websocket process

It's possible your xampp and cli are reading different php.ini files. The web one may be loading PDO while the CLI is not.

It's possible your xampp and cli are reading different php.ini files. The web one may be loading PDO while the CLI is not.

this this worked for me...


⚠ Samsung has degraded performance

In 5cd4724, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2851 ms

Resolved: Samsung performance has improved in 2c85bfe.


Simple pause button

I would like to explore a curious looking graph I can see, but it keeps evolving and I cannot keep track of the changes occurring.

What's your expectation on what will happen when you hit play again? (1) Updates were buffered and are now fast-forwared (2) Updates were dropped and a fresh chart is redrawn

#2 will be fine by me, given it's communicated clearly.
On Thu, 25 Feb 2016 09:56 David<EMAIL_ADDRESS>wrote:

What's your expectation on what will happen when you hit play again? (1)
Updates were buffered and are now fast-forwared (2) Updates were dropped
and a fresh chart is redrawn
—
Reply to this email directly or view it on GitHub
https://github.com/weaveworks/scope/issues/1025#issuecomment-188698540.

Yeah this would be awesome for debugging sometimes too.
Elements panel keeps getting updated and the node you were inspecting disappears grr.


Make color parsing case insensitive

The spec requires matching both lowercase and uppercase. The general solution is to copy the identifier into a temporary stack allocated buffer and do the case conversion there, before matching.
Fixes #105

Can you add a quick changelog entry? It'll probably conflict with #108, but I don't mind merging this one first and then rebasing #108.


Improve docker caching layers

Fixes #43

Only install deps when requiements.txt has changed
Ignore useless files from being copied

@hairmare Rebased and ready for review again.

#47 ftw... This one looke LGTM

I'm not sure why it still wants a rebase tho...


[release/1.5] cherry-pick: windows: Use GetFinalPathNameByHandle for ResolveSymbolicLink

Cherry-pick of #5411 for release/1.5
This change splits the definition of pkg/cri/os.ResolveSymbolicLink by
platform (windows/!windows), and switches to an alternate implementation
for Windows. This aims to fix the issue described in containerd/containerd#5405.
The previous implementation which just called filepath.EvalSymlinks has
historically had issues on Windows. One of these issues we were able to
fix in Go, but EvalSymlinks's behavior is not well specified on
Windows, and there could easily be more issues in the future, so it
seems prudent to move to a separate implementation for Windows.
The new implementation uses the Windows GetFinalPathNameByHandle API,
which takes a handle to an open file or directory and some flags, and
returns the "real" name for the object. See comments in the code for
details on the implementation.
I have tested this change with a variety of mounts and everything seems
to work as expected. Functions that make incorrect assumptions on what a
Windows path can look like may have some trouble with the \?\ path
syntax. For instance EvalSymlinks fails when given a \?\UNC\ path. For
this reason, the resolvePath implementation modifies the returned path
to translate to the more common form (\?\UNC\server\share ->
\server\share).


Update add modules to reflect duplicate modules

Add Modules Command now shows the User more relevant success messages depending on the following cases:

Modules from user input contain only new modules
Modules from user input contain some new modules
Modules from user input contain no new modules

Case 1:

Shows new modules added
Case 2:
Shows new modules added, with warning that some modules already exist
Case 3:
Shows warning that modules already exist, no new modules added, along with list of existing modules (to show User that despite the "error", no further actions associated with typical failed commands need to be taken)

Fixes #71

Codecov Report

Merging #85 (933dd1c) into master (b702ba9) will decrease coverage by 0.32%.
The diff coverage is 20.00%.

@@             Coverage Diff              @@
##             master      #85      +/-   ##
============================================
- Coverage     60.05%   59.72%   -0.33%
- Complexity      507      509       +2
============================================
  Files            89       89
  Lines          1945     1959      +14
  Branches        229      231       +2
============================================
+ Hits           1168     1170       +2
- Misses          710      720      +10
- Partials         67       69       +2

Impacted Files
Coverage Δ

...seedu/address/logic/commands/AddModuleCommand.java
57.77% <20.00%> (-19.65%)
:arrow_down:

Continue to review full report at Codecov.

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


feat(Encoder): adding boolean support

:tada: This PR is included in version 1.2.0 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Investigate erlang:disconnect_node vs erlang:halt vagaries...

Testing with various combinations of causing and healing netsplits via erlang:disconnect_node/1
can produce divergent states or a dq (locks_leader) process dying. These issues do not occur at all
when a different testing strategy (erlang:halt) is used.
erlang:halt is used in the locks tests.
erlang:disconnect_node is used in riak_test.
Is  erlang:disconnect_node/1 reasonable or are there underlying issues with dq, or deeper
still with locks or net_kernel ...
Credit to @Licenser for discovering one of the symptoms.

A side effect of calling disconnect_node on the local node is a client_DOWN event
in the Q locks_server locks_agent process which in turn will induce failure in the local
Q process.
Hence, the use of disconnect_node to verify behaviour in a two node setup doesn't
work. We've (@Licenser and I) played with 2..more nodes with and without debugging
on VMs and in the local environment...
It would be nice if this worked 'as expected' with disconnect_node and this is worth investigating
some more... This would allow testing in the style of riak_test...
References:

riak_test partition: https://github.com/basho/riak_test/blob/master/src/rt.erl#L471-L480
riak_test heal: https://github.com/basho/riak_test/blob/master/src/rt.erl#L482-L490
locks tests: https://github.com/uwiger/locks/blob/master/test/locks_tests.erl


[FEATURE] Longhorn with userspace block device (ublk)

Is your feature request related to a problem? Please describe (👍 if you like this request)
Currently, Longhorn leverages the iSCSI to expose the longhorn volume. The data path is
requst (app pod) -> iSCSI initiator -> iSCSI target (tgtd) -> controller -> replica -> disk

The latency introduced by the iSCSI protocol is not negligible.
Linux kernel 6.0+ has introduced the userspace block device (ublk) feature. ublk consists of two components: a lightweight kernel driver and a userspace IO handling program. The kernel driver, ublk_drv, receives IO requests from applications and forwards them to the userspace IO handling program. Thus, the data path becomes
requst (app pod) -> ublk_drv -> controller -> replica -> disk

[ ] Implementation of the single queue longhorn-ublk (slide)
[ ] Implementation of go-ublk-helper
[ ] Integrate go-ublk-helper and longhorn-engine
[ ] Error handling
[ ] Performance benchmark

Latency can probably be reduced effectively from the data path.
The purpose of this ticket is to

Investigate the performance of ublk
PoC of Longhorn with ublk

Describe the solution you'd like
A clear and concise description of what you want to happen
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Preliminary result
longhorn volume with single replica

This article has a good overview of ublk design https://spdk.io/doc/ublk.html

@PhanLe1010
Have you checked the slides and the POC implementation?

@derekbit
Yes, I have checked them. We can discussed more about it in the sync up today but quick point is that I really want to make the longhorn engine to act as the UBLK server directly so that we don't have to have:

A separate process to run as UBLK server
Then have the UBLK server copying and forwarding the IO to longhorn engine via unix socket. This process is creating more overhead and memory copying which UBLK is trying to minimize. I am planing to write write some kind of UBLK lib wapprer as mention in this ticket https://github.com/ublk-org/ublksrv/issues/70. But in order to do that, I am studying UBLK lib in close detailed fashion

Update:
I think we have a pretty good understanding of how UBLK loopback target and potentially why the old POC from @derekbit has a performance bottleneck
How UBLK loopback target can do concurrent IO with single userspace thread?
From the c++ code implementation of the UBLK loopback target, we can see that the ublk server create 1 thread for each hardware queue (specified by command argument when running the UBLK server binary) link . So the question is how is it possible for the UBLK loopback target to do concurrent IO even if when it only has 1 HW queue
In the c++implementation, this is achieved by corountine mechanism and io_uring API.

When APP issue an IO to UBLK block device at dev/ublkbX, the IO go to LInux block layer
Then IO is forwarded to UBLK driver module
The UBLK drive forward the IO to UBLK server in userspace via io_uring
When the UBLK server receive the IO,

It create a coroutine named __loop_handle_io_async here
The body of the coroutine is executed immediately up on creation because is is configured not to suspended at the beginning link
The coroutine prepares a new IO operation (let's say this new IO is the target IO (because it is not the original IO from the APP) to actually read/write data from/to the actual block device (/dev/sda)
Then the coroutine is suspended (go to sleep) link

The target IO flow is denoted as read lines in the graph. The UBLK loop target server is actually using the SAME io_uring to do the target IO. A.K.A both APP IO and target IO are going through the same io_uring
When io_uring kenerl worker thread receive the target IO, it forward the target IO to the Linux block layer
The Linux block layer forward the IO to the device driver of the device /dev/sda and eventually the IO is completed. This step is similar to a traditional IO read/write
Then the target IO returns to Linux block layer
Then the target IO returns to io_uring kernel workers
Then the target IO returns to UBLK loop target server
Here the target server wakeup the coroutine above by calling co.resume()

The coroutine is resumed and continue to process the original APP IO at ublksrv_complete_io
The coroutine forward the APP IO result using io_uring API

The UBLK driver receives the APP IO result
APP IO returns to Linux block layer
APP IO returns to APP

Note that the UBLK loopback target can do concurrent APP IOs with single thread because:

I can receive multiple APP IOs from UBLK driver via io_uring at the same time
Then it can create multiple coroutines concurrently (this creation is fast)
Then it can submit multiple target IO via io_uring to fetch data from dev/sda at the same time (this submission is fast)
io_uring kernel worker enabled async parallel target IOs (target IOs take time but it is handled by multiple kernel workers)
Once target IOs are completed, UBLK server can wake up multiple coroutines at the same time to sent the APP IOs result back to UBLK driver

Potential bottleneck in the old POC from @derekbit
The goal of Longhorn UBLK target would be to handle the read flow in the graph above. Idealy, the target IO should be handled concurrently to achieve high performance.
However, the old POC is handling them in synchronous fashion. More details, if user create Longhorn UBLK device with 1 HW queue, there will be only 1 thread who is executing this IO logic https://github.com/derekbit/ubdsrv/blob/21fa1880e25b180db5a5ccd404193e9a7fbd8b60/longhorn/tgt_longhorn.cpp#L176 We can see from the locking that the IO logic is sending a request via Unix socket domain to Longhorn engine and wait until the IO is returned before moving on to handle the next IO.
Also, the forwarding IO via unix socket domain introduce more memory copy and IPC as mentioned previously
I am trying removing the UNIX socket out of the flow and investigating the wrapper for UBLK Rusk lib for this. I am not 100% sure but I would expect the performance to increase a lot comparing to the result https://github.com/longhorn/longhorn/issues/5159#issuecomment-1465595589

The goal of Longhorn UBLK target would be to handle the red flow in the graph above.

It seems that there are 2 main tasks for Longhorn target:

how we can forward target IO to local replicas/disks like what loop target does.  A.K.A both APP IO and target IO are going through the same io_uring
if we can forward target IO to the network stack via the SAME io_uring either.

The goal of Longhorn UBLK target would be to handle the red flow in the graph above.

It seems that there are 2 main tasks for Longhorn target:

how we can forward target IO to local replicas/disks like what loop target does.  A.K.A both APP IO and target IO are going through the same io_uring
if we can forward target IO to the network stack via the SAME io_uring either.

For point 1, I think this would be difficult as the IO would need to go to engine first, it cannot go directly to the replica?
For point 2, yes you are right. It is possible to do unix socket IO via the same io_uring as the APP IO, ref: https://unixism.net/2020/04/io-uring-by-example-part-3-a-web-server-with-io-uring/
So I am doing the following plan in the decreasing priority order:

(Best case) Remove the UNIX socket layer by having engine to to act as the UBLK server itself. We need to be able to write golang wrapper for the UBLK Rust Lib. I am doing this
If plan 1 fails, we can have UBLK server sending target IO to engine via the same io_uring that UBLK driver is using to communicate with UBLK server. A.K.A We mimic the UBLK loop target

If plan 1 fails, we can have UBLK server sending target IO to engine via the same io_uring that UBLK driver is using to communicate with UBLK server. A.K.A We mimic the UBLK loop target

I assume we can embed the UBLK server into the Longhorn engine process. If we cannot, why does UBLK server rely on io_uring to talk with the engine process? Using io_uring to communicate with engine processes means that, engine processes should implement similar HW queues as well as goroutine named __loop_handle_io_async.

For point 1, I think this would be difficult as the IO would need to go to engine first, it cannot go directly to the replica?

I think the whole flow of target IO may be like: UBLK server -> Engine (in the same process, no ctx switch)  -> UBLK server -> the same io_uring -> unix domain socket or Network layer in kernel space(Not sure if it's possible to avoid ctx switch) -> replica -> regular IO

We discussed offline on the above question from @shuo-wu
In the US sync up today with @shuo-wu @ejweber and @james-munson , we converged on the 2 plans:
Plan 1
(Best case) Remove the UNIX socket layer by having engine to to act as the UBLK server itself. We need to be able to write golang wrapper for the UBLK Rust Lib. I am doing this
Plan 2:
If plan 1 is not achievable, we can mimic the loopback implementation like the below. This plan might not have the best performance but it has small overhead in term of the implementation

A quick update:
I resolved the ublk deadlock from the demo yesterday (ref latest longhorn_ublk rust version https://github.com/PhanLe1010/libublk-rs/tree/longhorn). Here is the first piece of long-waited data: the random write bandwidth 844MiB/s which is 2.5x the limit of tgtd frontend (data of the old tgtd front end https://github.com/longhorn/longhorn/issues/3037#issuecomment-2187543702). But this number is not quite beating the number of v2 engine yet.
That being said the current version of longhorn_ublk version is pretty dumb. It doesn't do concurrent async yet. I will optimize this as the next step. Hope that we can beat the v2 engine :D

Summary of the current state of longhorn_ublk Rust frontend:
The current code
Ref https://github.com/PhanLe1010/libublk-rs/tree/longhorn
How to build

Install Rust https://www.rust-lang.org/tools/install
Clone and cd into the project
Build the code by running cargo build --example longhorn_ublk --release
You will get longhorn_ublk binary at ./target/release/examples/longhorn_ublk

How to run it

Create a file of 40g dd if=/dev/zero of=/temp/backing_file bs=1G count=40
Obtain a longhorn engine binary (exact from container or build engine reproject manually)
Create an engine process ./longhorn controller testvol-e --frontend=socket --size=40gb --current-size=40gb --enable-backend=file --replica file:///longhorn/backing_file --listen-ip <IP_ADDRESS>
Create an ublk block device by running longhorn_ublk and connect to the UNIX socket of the engine ./longhorn_ublk add --backing_file /longhorn/backing_file --async --foreground
Now you will see an ublk block device at /dev/ublkbX

First piece of performance data
the random write bandwidth 844MiB/s which is 2.5x the limit of tgtd frontend (data of the old tgtd front end https://github.com/longhorn/longhorn/issues/3037#issuecomment-2187543702)
TODO:
The current version of longhorn_ublk version that I implemented is pretty dumb. It doesn't do concurrent async yet. Optinmizing this part will yield even better performance

Update:
Some more data to show the power of UBLK. As mentioned in the comment above, if we optimize the UBLK to to async IO, performance would be even better. A community user implemented this async design in C++ at https://github.com/Kampadais/ubdsrv . Trying out this async design we have the result below the number:

ublk v1 engine beat tgtd v1 engine by BIG margin. Noticibally the write bandwidth in ublk v1 engine is 810% better than the  tgtd v1 engine
ublk v1 engine can beat or compete fairly with v2 engine (note that in 1.7.1 v2 engine only use 1 CPUs for SPDK polling so it is not at peak performance yet)

=========================            =========================            =========================
For: v1-engine-tgtd                  For: v1-engine-ublk
=========================            =========================            =========================

IOPS (Read/Write)                    IOPS (Read/Write)                    v1-engine-ublk vs tgtd (%)
        Random:   21,325 / 29,146            Random:   83,783 / 97,612            Random:   393% / 335%
    Sequential:   45,105 / 39,064        Sequential:   83,331 / 97,690        Sequential:   185% / 250%

Bandwidth in KiB/sec (Read/Write)    Bandwidth in KiB/sec (Read/Write)    v1-engine-ublk vs tgtd (%)
        Random: 1,195,325 / 234,576          Random: 2,023,301 / 1,910,328          Random:   169% / 814%
    Sequential: 1,371,734 / 234,205      Sequential: 2,088,626 / 1,896,707      Sequential:   152% / 810%

Latency in ns (Read/Write)           Latency in ns (Read/Write)           v1-engine-ublk vs tgtd (%)
        Random:  301,070 / 213,499           Random:  216,241 / 135,895           Random:   72% / 64%
    Sequential:  300,037 / 215,359       Sequential:  221,109 / 136,877       Sequential:   74% / 64%

=========================
For: v2-engine
=========================
IOPS (Read/Write)
        Random:          66,204 / 61,785
    Sequential:          64,351 / 63,422

Bandwidth in KiB/sec (Read/Write)
        Random:      876,417 / 1,134,514
    Sequential:      872,186 / 1,144,514

Latency in ns (Read/Write)
        Random:         160,360 / 78,496
    Sequential:         159,436 / 83,732

Additional context:

This is tested on Longhorn v1.7.1
Node is the machine on Equinix metal https://deploy.equinix.com/product/servers/m3-large/
Ubuntu 24.04 + rke2
Single replica volume (not strict local mode)
Number of fio jobs: 1

Wow!!! This is seriously impressive, thank you so much for all the work you've put into this!


[QUESTION] Error in chapter 15 (Forecasting Multivariate Time Series)

To Reproduce
My error is in chapter 15 in the paragraph "Forecasting Multivariate Time Series" (page 559 in the book).
In cell 43 is the following code:
train_mulvar_ds = tf.keras.utils.timeseries_dataset_from_array(
    mulvar_train.to_numpy(),  # use all 5 columns as input
    targets=mulvar_train["rail"][seq_length:],  # forecast only the rail series
    sequence_length=seq_length,
    batch_size=32,
    shuffle=True,
    seed=42
)

I get here a ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float). See the stack trace:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[45], line 3
      1 tf.random.set_seed(42)  # extra code – ensures reproducibility
----> 3 train_mulvar_ds = tf.keras.utils.timeseries_dataset_from_array(
      4     mulvar_train.to_numpy(),  # use all 5 columns as input
      5     targets=mulvar_train["rail"][seq_length:],  # forecast only the rail series
      6     sequence_length=seq_length,
      7     batch_size=32,
      8     shuffle=True,
      9     seed=42
     10 )
     11 valid_mulvar_ds = tf.keras.utils.timeseries_dataset_from_array(
     12     mulvar_valid.to_numpy(),
     13     targets=mulvar_valid["rail"][seq_length:],
     14     sequence_length=seq_length,
     15     batch_size=32
     16 )

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/keras/src/utils/timeseries_dataset.py:245, in timeseries_dataset_from_array(data, targets, sequence_length, sequence_stride, sampling_rate, batch_size, shuffle, seed, start_index, end_index)
    233 # For each initial window position, generates indices of the window elements
    234 indices = tf.data.Dataset.zip(
    235     (tf.data.Dataset.range(len(start_positions)), positions_ds)
    236 ).map(
   (...)
    242     num_parallel_calls=tf.data.AUTOTUNE,
    243 )
--> 245 dataset = sequences_from_indices(data, indices, start_index, end_index)
    246 if targets is not None:
    247     indices = tf.data.Dataset.zip(
    248         (tf.data.Dataset.range(len(start_positions)), positions_ds)
    249     ).map(
    250         lambda i, positions: positions[i],
    251         num_parallel_calls=tf.data.AUTOTUNE,
    252     )

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/keras/src/utils/timeseries_dataset.py:270, in sequences_from_indices(array, indices_ds, start_index, end_index)
    269 def sequences_from_indices(array, indices_ds, start_index, end_index):
--> 270     dataset = tf.data.Dataset.from_tensors(array[start_index:end_index])
    271     dataset = tf.data.Dataset.zip((dataset.repeat(), indices_ds)).map(
    272         lambda steps, inds: tf.gather(steps, inds),
    273         num_parallel_calls=tf.data.AUTOTUNE,
    274     )
    275     return dataset

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py:746, in DatasetV2.from_tensors(tensors, name)
    742 # Loaded lazily due to a circular dependency (dataset_ops ->
    743 # from_tensors_op -> dataset_ops).
    744 # pylint: disable=g-import-not-at-top,protected-access
    745 from tensorflow.python.data.ops import from_tensors_op
--> 746 return from_tensors_op._from_tensors(tensors, name)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/data/ops/from_tensors_op.py:23, in _from_tensors(tensors, name)
     22 def _from_tensors(tensors, name):  # pylint: disable=unused-private-name
---> 23   return _TensorDataset(tensors, name)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/data/ops/from_tensors_op.py:31, in _TensorDataset.__init__(self, element, name)
     29 def __init__(self, element, name=None):
     30   """See `tf.data.Dataset.from_tensors` for details."""
---> 31   element = structure.normalize_element(element)
     32   self._structure = structure.type_spec_from_value(element)
     33   self._tensors = structure.to_tensor_list(self._structure, element)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/data/util/structure.py:133, in normalize_element(element, element_signature)
    130       else:
    131         dtype = getattr(spec, "dtype", None)
    132         normalized_components.append(
--> 133             ops.convert_to_tensor(t, name="component_%d" % i, dtype=dtype))
    134 return nest.pack_sequence_as(pack_as, normalized_components)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/profiler/trace.py:183, in trace_wrapper.<locals>.inner_wrapper.<locals>.wrapped(*args, **kwargs)
    181   with Trace(trace_name, **trace_kwargs):
    182     return func(*args, **kwargs)
--> 183 return func(*args, **kwargs)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/ops.py:1443, in convert_to_tensor(value, dtype, name, as_ref, preferred_dtype, dtype_hint, ctx, accepted_result_types)
   1441 # TODO(b/142518781): Fix all call-sites and remove redundant arg
   1442 preferred_dtype = preferred_dtype or dtype_hint
-> 1443 return tensor_conversion_registry.convert(
   1444     value, dtype, name, as_ref, preferred_dtype, accepted_result_types
   1445 )

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/tensor_conversion_registry.py:234, in convert(value, dtype, name, as_ref, preferred_dtype, accepted_result_types)
    225       raise RuntimeError(
    226           _add_error_prefix(
    227               f"Conversion function {conversion_func!r} for type "
   (...)
    230               f"actual = {ret.dtype.base_dtype.name}",
    231               name=name))
    233 if ret is None:
--> 234   ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
    236 if ret is NotImplemented:
    237   continue

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py:324, in _constant_tensor_conversion_function(v, dtype, name, as_ref)
    321 def _constant_tensor_conversion_function(v, dtype=None, name=None,
    322                                          as_ref=False):
    323   _ = as_ref
--> 324   return constant(v, dtype=dtype, name=name)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py:263, in constant(value, dtype, shape, name)
    166 @tf_export("constant", v1=[])
    167 def constant(value, dtype=None, shape=None, name="Const"):
    168   """Creates a constant tensor from a tensor-like object.
    169
    170   Note: All eager `tf.Tensor` values are immutable (in contrast to
   (...)
    261     ValueError: if called on a symbolic tensor.
    262   """
--> 263   return _constant_impl(value, dtype, shape, name, verify_shape=False,
    264                         allow_broadcast=True)

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py:275, in _constant_impl(value, dtype, shape, name, verify_shape, allow_broadcast)
    273     with trace.Trace("tf.constant"):
    274       return _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
--> 275   return _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
    277 const_tensor = ops._create_graph_constant(  # pylint: disable=protected-access
    278     value, dtype, shape, name, verify_shape, allow_broadcast
    279 )
    280 return const_tensor

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py:285, in _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
    283 def _constant_eager_impl(ctx, value, dtype, shape, verify_shape):
    284   """Creates a constant on the current device."""
--> 285   t = convert_to_eager_tensor(value, ctx, dtype)
    286   if shape is None:
    287     return t

File ~/anaconda3/envs/mlp/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py:98, in convert_to_eager_tensor(value, ctx, dtype)
     96     dtype = dtypes.as_dtype(dtype).as_datatype_enum
     97 ctx.ensure_initialized()
---> 98 return ops.EagerTensor(value, ctx.device_name, dtype)

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float).

Expected behavior
It should be the base for the code in cell 45:
# extra code – compiles, fits, and evaluates the model, like earlier
fit_and_evaluate(mulvar_model, train_mulvar_ds, valid_mulvar_ds,
                 learning_rate=0.05)

Screenshots
There is no screenshot.
Versions (please complete the following information):

OS: [MacOSX 14.1.2]
Python: [3.8.18]
TensorFlow: [2.13.0]
Scikit-Learn: [1.3.1]

Additional context
The following paragraphs build on each other. So I get also errors in this blocks.

Thanks for your feedback. I've just tried running this code on Colab, and it ran smoothly:

I'm not sure why it's failing. Could you please check which versions of Pandas, TensorFlow, and NumPy you're using? Ideally they should match those on Colab, which are currently Pandas 1.5.3, TensorFlow 2.15.0, NumPy 1.23.5. Please let me know if this helps.

Dear Aurélion Geron,
my versions are: Pandas 2.1.4, TensorFlow MacOS 2.15.0, NumPy 1.23.3.
I use a MacBook Pro with M1 Max Processor.

Am 01.02.2024 um 00:06 schrieb Aurélien Geron @.***>:
Thanks for your feedback. I've just tried running this code on Colab, and it ran smoothly:
image.png (view on web) https://github.com/ageron/handson-ml3/assets/76661/22952fbb-c4c5-4d68-b071-eab5041a42a6
I'm not sure why it's failing. Could you please check which versions of Pandas, TensorFlow, and NumPy you're using? Ideally they should match those on Colab, which are currently Pandas 1.5.3, TensorFlow 2.15.0, NumPy 1.23.5. Please let me know if this helps.
—
Reply to this email directly, view it on GitHub https://github.com/ageron/handson-ml3/issues/112#issuecomment-1920142379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHATSXNTWKNKCWJDWKGE4CDYRLE6VAVCNFSM6AAAAABAP53R4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGE2DEMZXHE.
You are receiving this because you authored the thread.

i was trying out Chapter 15 just now and encoutered the same issue. After a bit of bug hunting i found out that the culprit is pandas at the current latest version 2.1.4.  if you print the first argument of the timeseries_dataset_from_array function = print(mulvar_train.to_numpy()) with pandas 2.1.4 you'll get this :
 [[0.303321 0.319835 True False False]
 [0.448859 0.365509 False True False]
 [0.34054 0.287661 False False True]
 ...
 [0.394088 0.307105 False True False]
 [0.31455 0.26531 False False True]
 [0.463165 0.386058 False True False]]

However if you print it using pandas 1.5.3 (currently used in colab), you'll get:
[[0.303321 0.319835 1.       0.       0.      ]
[0.448859 0.365509 0.       1.       0.      ]
[0.34054  0.287661 0.       0.       1.      ]
...
[0.394088 0.307105 0.       1.       0.      ]
[0.31455  0.26531  0.       0.       1.      ]
[0.463165 0.386058 0.       1.       0.      ]]

So i guess that the timeseries function won't work with boolean values.
use this pip install pandas==1.5.3 and it will run with no problem.

As @mario-ct explained, this is due to a change of behavior in the pd.get_dummies() function with Pandas 2. The default data type for the newly created columns (for the one-hot encoding) is Boolean, which the tf.keras.utils.timeseries_dataset_from_array() function does not like.
You can fix this by specifying np.float32 as data type of the new colmuns when creating the one-hot encoding for the df_mulvardataframe:
df_mulvar = pd.get_dummies(df_mulvar, dtype = np.float32)

Thanks a lot for your solution, tlac980. Also because I don't have to install an old version of the pandas library. I tested it and it worked also on my machine.


bump version to v3.15.0

What this PR does / why we need it:
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

@mattfarina we should merge this.


optimize the speed when batch insert or batch update

…image data and don't call pkRows in loop)

Ⅰ. Describe what this PR did
optimize the speed when batch insert or batch update
Ⅱ. Does this pull request fix one issue?
fixes #1933
Ⅲ. Describe how to verify it
compare the speed before merge and after merge when effect rows more than 10000

Codecov Report

Merging #1938 into develop will decrease coverage by 0.04%.
The diff coverage is 71.42%.

@@              Coverage Diff              @@
##             develop    #1938      +/-   ##
=============================================
- Coverage      55.22%   55.17%   -0.05%
+ Complexity      2405     2402       -3
=============================================
  Files            429      429
  Lines          14246    14247       +1
  Branches        1668     1668
=============================================
- Hits            7867     7861       -6
- Misses          5676     5679       +3
- Partials         703      707       +4

Impacted Files
Coverage Δ
Complexity Δ

.../rm/datasource/exec/BaseTransactionalExecutor.java
43.58% <71.42%> (+0.48%)
18 <2> (ø)
:arrow_down:

...server/store/file/FileTransactionStoreManager.java
56.5% <0%> (-1.59%)
29% <0%> (-1%)

...in/java/io/seata/server/session/GlobalSession.java
84.54% <0%> (-0.49%)
67% <0%> (-1%)

...o/seata/server/coordinator/DefaultCoordinator.java
48.01% <0%> (-0.4%)
27% <0%> (-1%)


ROLLO Verification Test

The Ackley Function is one of the well-known benchmarks used for evolutionary or metaheuristic optimization. I use this function to test if the custom evolutionary algorithm in ROLLO reaches its minimum value.
More information about the Ackley function: https://www.sfu.ca/~ssurjano/ackley.html
Closes #11

Hello @gwenchee! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tests/test_integration_ackley_minimum.py:

Line 2:78: W291 trailing whitespace
Line 3:31: W291 trailing whitespace
Line 4:33: W291 trailing whitespace

I created a clean conda environment, installed openmc from conda-forge, and then built rollo from source. When I ran the tests, I got the following failed tests:
FAILED test_evaluation.py::test_eval_fn_generator -   File "<unknown>", line 0
FAILED test_evaluation.py::test_get_output_vals - FileNotFoundError: [Errno 2] No such file or directory: './input_test_files'
FAILED test_evaluation.py::test_render_jinja_template_python - FileNotFoundError: [Errno 2] No such file or directory: './input_test_files'
FAILED test_executor.py::test_load_evaluator - FileNotFoundError: [Errno 2] No such file or directory: './input_test_files'
FAILED test_integration_ackley_minimum.py::test_ackley_minimum_check - assert 0.13762902276411682 < 0.1
FAILED test_openmc_evaluation.py::test_evaluate_keff - FileNotFoundError: [Errno 2] No such file or directory: './input_test_files/test_e...
================================================ 6 failed, 26 passed, 32 warnings in 8.50s =================================================

It seems that your ackley test sometimes fails, maybe because it's not running enough generations or your assertion is too strict.
PS. I'm running Ubuntu 20.04

@smpark7 Thanks for the review. I'm not sure why you are getting  No such file or directory: './input_test_files' error. I have not encountered it on my ubuntu or my mac. Could you try on another machine?

Interesting... my CI got the same error as you @smpark7

@smpark7 I did not include test_evaluation.py in my CI currently so it passes the test. Let's merge this and I'll deal with the CI issues outlined in #16 in a different PR

Sure, the Ackley test now passes for me too.


[WIP] impl typed message subclasses

Incomplete, but wanted to put this up for reference.
Subclassing messages allows us to have some handy typing benefits, for instance, what is an example provided to the LLM for multi-shot prompting?
Example = tuple[UserMessage, AssistantMessage, ToolMessage] | tuple[UserMessage, AssistantMessage]
Subclasses messages basically allow us to make types of sequences of messages, which comes in handy.

what if the message is one or more ToolMessages?  Often there are more than one tool call in a row

what if the message is one or more ToolMessages? Often there are more than one tool call in a row

            for tool_call in response.tool_calls:
                result = await execute_tool(
                    self._tools_map,
                    tool_call.function.name,
                    tool_call.function.arguments,
                )
                # TODO - discuss, should tool results always map internally to tool messages?
                message = ToolMessage(
                    content=result,
                    tool_call_id=(
                        tool_call.id if tool_call and hasattr(tool_call, "id") else None
                    ),
                )

should cover us right? we're iterating through the tool calls and appending tool messages for each invocation.
Tangentially, we should asyncio.gather these bad boys for the concurrency wins. But I don't want to do that on this PR as there are already a lot of changes.


sched/env: add tg_envc in task_group_s to avoid some loops in code

Summary
this commit optimize the env api speed by avoiding some loops (while/for) in code
Impact
should be none
Testing
sim:ostest pass

Hi @CV-Bowen did you make some profiling tests? How much it improves the execution time?

I think some time in the past we have count of variables, but moved away from it. @xiaoxiang781216 most probably can provide more details.

I think some time in the past we have count of variables, but moved away from it. @xiaoxiang781216 most probably can provide more details. Anyway I will review.

Yes, but the layout is change:

The old way save all env in one big char array like this "env1=value1\0env2=value2"
The new way save all env in array of char array like this {"env1=value1", "env2=value2", NULL}

Layout 2 is required implicitly by environ: https://pubs.opengroup.org/onlinepubs/7908799/xsh/environ.html


Cordova barcode scanner does not scan pdf_417 format on us driving license..

My plugin version is 6.0.8 and cordova version is 7.0.1
The cordova barcode scanner does not work with pdf_417 code on us driving license even if i have mention the format in code.i am using this code.
this.options = {
"formats": "PDF_417,PDF417, QR_CODE, DATA_MATRIX, UPC_E, UPC_A, EAN_8, EAN_13, CODE_128, CODE_39, CODE_93, CODABAR, ITF"
};
			  this.barcodeScanner.scan(this.options).then((barcodeData) => {
		 // Success! Barcode data is here
		     alert(JSON.stringify(barcodeData));
		}, (err) => {
			// An error occurred//000032693375NCA6UL01
			alert(err);
		});

it is not scanning pdf417 ..
can anyone help me with this issue?

Sorry to be a jerk but I'm now closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone.
I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines.
https://github.com/phonegap/phonegap-plugin-push/blob/master/.github/ISSUE_TEMPLATE.md


Confirmed working with ASUS ROG Zephyrus M (GM501)

Taking line 415 in src/rogauracore.c
const uint16_t ASUS_PRODUCT_IDS[] = { 0x1854, 0x1869 };
And adding the Product ID 0x1866
const uint16_t ASUS_PRODUCT_IDS[] = { 0x1854, 0x1869, 0x1866 };
Makes the code work on the Zephyrus M (GM501).

Beautiful!  Thanks for the PRs.  Merged.


[11.x] Fix for breaking change in #53543 when ::withoutWrapping() is called after instance creation

Fixes breaking change introduced in #53543
Comment finding the breaking change: https://github.com/laravel/framework/pull/53543#issuecomment-2503670622
See failing test which is added to test the code below now is without a wrapper:
$resource = new PostResource(new Post([
    'id' => 5,
    'title' => 'Test Title',
]));
$resource::withoutWrapping();

This PR adds a check to determine if an explicit wrapper has been set on the instance, if not, use the logic from before #53543, this allows for static wrapper changes after the instance is created to have impact.
12.x consideration
It's worth considering making an intended breaking change in 12.x to no longer let static updates change the wrapper after instantiation, but this PR focuses on removing the breaking change I introduced with #53543
wrapper property consideration
Edit: this fix does introduce the side effect that manually setting $instance->wrapper = 'posts' will now have no effect, since that doesn't set the wrapperSet flag. Maybe the wrapper property should be protected/private with a getter (or async visibility in the future 👀)

Reverted the original PR. We're going to revisit API resources in general for 12.x in February.


⚠ St. Lawrence Global Observatory CKAN has degraded performance

In 679d470, St. Lawrence Global Observatory CKAN (https://catalogue.ogsl.ca/en/) experienced degraded performance:

HTTP code: 200
Response time: 5671 ms

Resolved: St. Lawrence Global Observatory CKAN performance has improved in ef2340c after 23 minutes.


hyperd crash not handled

When there's nil pointer, index out of range in grpc service, hyperd will crash and the error log can only be found in /var/log/messages instead of hyper log files.

+1, need recover this and log the stack.

I will add a CrashHandler here

Any example for these crash messages in /var/log/messages? I can't find them..

@resouer had you done this one?


docs: add MLFlow in ai sample time series forecasting

Related Issues/PRs
None
What changes are proposed in this pull request?
Add MLFlow logging and loading to Time Series Forecasting sample notebook
How is this patch tested?

[x] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[x] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[x] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

AB#1966880

/azp run

/azp run

Codecov Report

Merging #1645 (befbd3f) into master (59a922b) will decrease coverage by 79.28%.
The diff coverage is n/a.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

/azp run


Error handling

This PR implements error handling for various scenarios in authentication and project management processes. The changes address the following cases:

Authentication Failure
Invalid Project Name in Tracing
Inaccessible Base URL
Schema Mismatch for Trace Logging
Duplicate Experiment Name for Project

Implemented Error Messages

Authentication Failure: "Authentication failed. Navigate to Settings -> Authentication to generate new Secret key and Access key"
Invalid Project Name: "Project not found. Please enter a valid project name"
Inaccessible Base URL: "The provided base_url is not accessible. Please re-check the base_url"
Schema Mismatch: "Trace cannot be logged to this Project because of schema difference. Create a new project to log trace"
Duplicate Experiment Name: "The experiment name already exists in the project. Enter a unique experiment name."

Issues resolved


CMake Error: The following variables are used in this project

Hi
I have an issue during building pyeos
Beginning build version: 1.2
Mon Sep 10 04:46:51 UTC 2018
User: root
git head id: 29b20c05ec920ca25c9e2233ed87d75e54fa360c
Current branch: master
ARCHITECTURE: Linux

OS name: Ubuntu
OS Version: 18.04
CPU speed: 2793.545Mhz
CPU cores: 4
Physical Memory: 3933 Mgb
Disk install: /dev/sda1
Disk space total: 34G
Disk space available: 17G
Your system must have 7 or more Gigabytes of physical memory installed.
Exiting now.
You must have at least 20GB of available storage to install EOSIO.
Exiting now.

Checking for installed dependencies.

Package clang-4.0 found.
Package lldb-4.0 found.
Package libclang-4.0-dev found.
Package cmake found.
Package make found.
Package automake found.
Package libbz2-dev found.
Package libssl-dev found.
Package libgmp3-dev found.
Package autotools-dev found.
Package build-essential found.
Package libicu-dev found.
Package python2.7-dev found.
Package python3-dev found.
Package autoconf found.
Package libtool found.
Package curl found.
Package zlib1g-dev found.
Package doxygen found.
Package graphviz found.

No required dpkg dependencies to install.

Checking MongoDB installation.
MongoDB configuration found at /home/ubuntu/opt/mongodb/mongod.conf.

Checking MongoDB C++ driver installation.
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.

Checking secp256k1-zkp installation.
secp256k1 found @ /usr/local/lib.

Checking for LLVM with WASM support.
WASM found at /home/ubuntu/opt/wasm/bin.

ALL dependencies sucessfully found or installed . Installing EOSIO

CMAKE_BUILD_TYPE=Release
ENABLE_COVERAGE_TESTING=false
DOXYGEN=false

-- [cable ] Cable 0.2.9 initialized
-- [polly] Used toolchain: clang / GNU Standard C++ Library (libstdc++) / c++11 support
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/ubuntu/.hunter
-- [hunter] [ Hunter-ID: 882c175 | Toolchain-ID: 45c61c6 | Config-ID: bd03ee3 ]
-- [hunter] OPENSSL_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.0.2n)
-- [hunter] BZIP2_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.0.6-p3)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- [hunter] BOOST_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.67.0)
-- Using custom FindBoost.cmake
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
--   fiber
--   log
-- Configuring EOSIO on Linux
-- binaryen building with -std=c++11
-- binaryen building for platform x86-64
-- binaryen building with -Wall
-- binaryen building with -Werror
-- binaryen building with -Wextra
-- binaryen building with -Wno-unused-parameter
-- binaryen building with -fno-omit-frame-pointer
-- binaryen building with -fPIC
-- binaryen building with -O2
-- binaryen building with -UNDEBUG
-- [cable ] Build type: Release
-- [hunter] JSONCPP_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.8.0)
-- [hunter] SNAPPY_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.1.6-p0)
-- [hunter] CRYPTOPP_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 5.6.5-p0)
-- [hunter] LIBJSON-RPC-CPP_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 0.7.0-p3)
-- [hunter] LIBSCRYPT_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 1.21-p1)
-- [hunter] ETHASH_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 0.3.0)

-- Configuring cpp-ethereum
-- CMake 3.10.2 (/usr/bin/cmake)
-- CMAKE_BUILD_TYPE Build type                               Release
-- TARGET_PLATFORM  Target platform                          Linux
-- BUILD_SHARED_LIBS                                         OFF
--------------------------------------------------------------- features
-- VMTRACE          VM execution tracing                     OFF
-- EVM_OPTIMIZE     Enable VM optimizations                  ON
-- FATDB            Full database exploring                  ON
-- DB               Database implementation                  LEVELDB
-- PARANOID         -                                        OFF
-- MINIUPNPC        -                                        OFF
------------------------------------------------------------- components
-- TESTS            Build tests                              ON
-- TOOLS            Build tools                              ON
-- EVMJIT           Build LLVM-based JIT EVM                 OFF
-- HERA             Build Hera eWASM VM                      OFF
------------------------------------------------------------- tests
-- FASTCTEST        Run only test suites in ctest            OFF
-- TESTETH_ARGS     Testeth arguments in ctest:

-- [cable ] Cable 0.2.9 (same version) initialized in the cpp-ethereum parent project
CMake Warning at externals/ethereum/hera/cmake/cable/bootstrap.cmake:45 (message):
[cable ] Cable 0.2.9 (vesion older than 0.2.10) initialized in the
cpp-ethereum parent project
Call Stack (most recent call first):
externals/ethereum/hera/CMakeLists.txt:3 (include)
-- [hunter] FMT_ROOT: /home/ubuntu/.hunter/_Base/882c175/45c61c6/bd03ee3/Install (ver.: 4.1.0)
-- Using 'EOS' as CORE symbol name
-- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for 'eosio' account
-- Using WASM clang => /home/ubuntu/opt/wasm/bin/clang
-- Using WASM llc => /home/ubuntu/opt/wasm/bin/llc
-- Using WASM llvm-link => /home/ubuntu/opt/wasm/bin/llvm-link
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Java (missing: Java_JAVA_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE)
-- Configuring Builtins
-- Configuring SoftFloat
-- Using custom FindBoost.cmake
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   unit_test_framework
--   locale
-- Configuring ChainBase on Linux
-- Using custom FindBoost.cmake
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   program_options
--   unit_test_framework
--   locale
-- Configuring AppBase on Linux
-- Found Secp256k1: /usr/local/lib/libsecp256k1.a
-- Configuring fc to build on Unix/Apple
-- zlib found
-- Using WASM clang => /home/ubuntu/opt/wasm/bin/clang
-- Using WASM llc => /home/ubuntu/opt/wasm/bin/llc
-- Using WASM llvm-link => /home/ubuntu/opt/wasm/bin/llvm-link
-- Git commit revision: 29b20c05
-- Git commit revision: 29b20c05
-- Git commit revision: 29b20c05
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/ubuntu/pyeos/libraries/vm/vm_java/JAVA_AWT_INCLUDE_PATH
used as include directory in directory /home/ubuntu/pyeos/libraries/vm/vm_java
/home/ubuntu/pyeos/libraries/vm/vm_java/JAVA_INCLUDE_PATH
used as include directory in directory /home/ubuntu/pyeos/libraries/vm/vm_java
/home/ubuntu/pyeos/libraries/vm/vm_java/JAVA_INCLUDE_PATH2
used as include directory in directory /home/ubuntu/pyeos/libraries/vm/vm_java
JAVA_AWT_LIBRARY (ADVANCED)
linked by target "vm_java" in directory /home/ubuntu/pyeos/libraries/vm/vm_java
JAVA_JVM_LIBRARY (ADVANCED)
linked by target "vm_java" in directory /home/ubuntu/pyeos/libraries/vm/vm_java
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/pyeos/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/pyeos/build/CMakeFiles/CMakeError.log".
>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.

sudo apt-get install default-jdk worked for me


Delete 阿里巴巴Java开发手册（华山版）.pdf

已经有最新泰山版，删除老的华山版

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

完成协议签署


Build a simple cmap

Add a job to generate cmap and wire it through to work in simple cases. Demonstrate it produces the expected glyph order and unicode assignments.
For context, I'm trying to push through to producing working static fonts for some subset of inputs.
Requires https://github.com/googlefonts/fontations/pull/272.

Per f2f discussion make a high level API on write-fonts and pass something akin to a map codepoint:gid in. Ref https://github.com/googlefonts/ufo2ft/blob/5b22f201b4650ab9ef1169357702a732e3127a5e/Lib/ufo2ft/outlineCompiler.py#L460-L542 .


RabbitMQ Scaler doesn't parse vhost correctly if provided in the host url

Report
After v2.7.0, the vhost it's not correctly parsed from the url
Expected Behavior
http://guest:guest@pecan-rabbitmq.default:15672/ should parse the vhost as /
Actual Behavior
http://guest:guest@pecan-rabbitmq.default:15672/ should parse the vhost as "". To parse the vhost has / we need to set http://guest:guest@pecan-rabbitmq.default:15672//
Steps to Reproduce the Problem

Logs from KEDA operator
example

KEDA Version
No response
Kubernetes Version
No response
Platform
No response
Scaler Details
No response
Anything else?
No response

The error looks like this. I think.

Do you still have the issue? If you are running with KEDA v2.8.1 (chart v2.8.2) and you still have issues, could you open another  issue to track it?


Lint rule to enforce all stylex styles are used within JSX

A somewhat simple lint rule that enforces that all references to the styles created with stylex.create are only referenced within a JSX expression.
In the case of string element, it must always be in a {...stylex.props} and in the case of custom components, it can also be passed as a regular prop.
That's it. That's the whole lint rule.
PS. stylex.create declarations within an export statement should be considered valid.

Are you saying that this pattern would be linted against?
const stylesA = stylex.create({})
const stylesB = stylex.create({})

const style = [ stylesA, styles B ]

@necolas Yes. The intention is to encourage developers to use && and other conditional queries directly within stylex.props, but this is definitely more on the stylistic side of things.

It's not uncommon to use arrays to combine styles or themes like this though. And it doesn't seem to have a downside. In fact, in some cases it can improve perf because the array is not recreated on every render. It's the manual version of what I proposed in https://github.com/facebook/stylex/issues/737 - a further optimization to that pattern would be to memoize the return value of the function so it is stable across renders.

@necolas The specific use-case is when all styles are defined and used locally within the file. In such scenarios, stylex.props can be compiled away.
Also, this would rule would not apply to themes and to exports.
But yes, in other cases this rule might just be annoyance though. Let me think if it's possible to make this rule more narrow and only discourage unnecessary indirection. It might also be possible to further improve the compiler to optimise more cases of stylex.props instead.
Marking as blocked until we resolve these concerns.


apply_dimensions_naming_rules

Dimensions has rules for naming variables that are more strict than Quantipy (and other formats that can be converted to Quantipy). We need to put the following in place for all calls to qds.write_dimensions so that these are handled automatically every time.
The slight complication here is that this will only work on a dimensions_comp=False dataset. For that reason the dataset is automatically undimensionized if needed to start with and then dimensionized at the end.
def apply_dimensions_naming_rules(self):
    """
    Applies Dimensions naming rules via self.rename().
    """

    def fix(s, tags):
        for tag in tags:
            s = s.replace(tag, '_')
        return s

    tags = ["'", '"', ' ', '&', '(', ')', '.', '/', '-']

    if self.dimensions_comp:
        self.undimensionize()

    for mname, mask in self._meta['masks'].iteritems():
        items = [
            item['source'].split('@')[-1]
            for item in mask['items']
        ]
        label = self.text(mname)
        self.drop(mname, ignore_items=True)
        new_items = []
        for iname in items:
            if any(tag in iname for tag in tags):
                new_iname = fix(iname, tags)
                new_items.append(new_iname)
                print iname, '>>', new_iname
                self.rename(iname, new_iname)
            else:
                new_items.append(iname)
        self.to_array(mname, new_items, label)

        if any(tag in mname for tag in tags):
            new_mname = fix(mname, tags)
            print mname, '>>', new_mname
            self.rename(mname, new_mname)

    for cname in self._meta['columns'].keys():
        if any(tag in cname for tag in tags):
            new_cname = fix(cname, tags)
            if new_name == 'type':
                new_name == '_type'
            print cname, '>>', new_cname
            self.rename(cname, new_cname)
        elif cname == 'type':
            new_name = '_type'
            print cname, '>>', new_cname
            self.rename(cname, new_cname)

    self.dimensionize()

approch: include logic of code above in DataSet.dimensionize() , whenever data is in dimensions-mode, the names should be valid for Dimensions. In DataSet.write_dimensions() the data will be dimensionized every time (and if necessary undimensionized before).

done and merged


Preview Code

Add a preview for the code, like shown below:

done too

Should be ready to submit PRs now. I'm working on refactoring a lot of the code to use native functions to PyOTP.

got it, thanks


[refactor]: new plugins and re-written scripts!

What's new?

require higher environment: you need Node.js v14 and later to run this bot.
update packages: most dependencies got updated (not including the ones which are re-written to be ESM modules).
add new plugins: /tiktok (get video URL) and /unshorten (its function like its name).
two shell scripts momentarily are only one: INSTALL.sh and MOBILE-SETUP.sh were merged into INSTALL.sh. Now you need to pass your OS name as parameter --os (in fact, it's a string, not a real CLI option).
change the way that script CLEAN works: CLEAN-SETUP.sh contained rm -rf .git. I even forgot it existed and asked myself why my locally forked folder always loses connection with the remote repository.
remove method newLogger.log: nothing special about this method, so it'd better be removed (replaced with log method of browser console object).
move ESLint and Prettier config to package.json: additional configuration files for these code linters aren't necessary.
new format and section for issue template
new logic for checking version conflict: I changed the version in package.json from 2.0.5 to 2.0.6 and the old checker still thought I was out of date. The new function can compare versions with an accuracy of 100%.

Related work
If this pull request has the owner/maintainers accepted, of course, I will update the installation guide as well (check my work progress at https://github.com/quoc1707/kb2abot-docs).

Linting commits and refactor commits mixed, couldn't review your code but tested your change and worked properly fine