text:
AerospikeError: Not connected. after  server restart

It looks like if the connection between the server gets interrupted or the server restarts, the connection is never re-established.
To reproduce this

Configure to just connect to a single aerosplike server
read/write to session variables like normal on requests
restart aerospike server.
on next request, you will  see this exception:

AerospikeError: Not connected.
    at Function.AerospikeError.fromASError (PROJECT_ROOT/node_modules/aerospike/lib/aerospike_error.js:113:10)
    at Client.DefaultCallbackHandler [as callbackHandler] (PROJECT_ROOT/node_modules/aerospike/lib/client.js:71:72)
    at nextTickCb (PROJECT_ROOT/node_modules/aerospike/lib/client.js:1471:10)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

To fix this you need to restart the node process which is very inconvenient.   it would be much better if the client library detects this and reconnects.

Sorry for the late response. I was busy with other projects.
The client should automatically reconnect to the cluster once it comes back up. If the cluster goes down while your express app is running, you should see one of these two errors:

AerospikeError: Failed to connect
AerospikeError: Cluster is empty

You could get the error AerospikeError: Not connected if you are starting your express app while the Aerospike cluster is down. But I wasn't able to reproduce this error if the app is already running when the cluster goes down.
Here is the simple demo app I was using for testing:
$ cat express.js
const express = require('express')
const session = require('express-session')
const AerospikeStore = require('aerospike-session-store')(session)

var app = express()
app.use(session({
  secret: '123456789QWERTY',
  store: new AerospikeStore({
    namespace: 'express',
    set: 'session',
    ttl: 86400, // 1 day
    hosts: process.env.AEROSPIKE_HOSTS
  }),
  resave: false,
  saveUninitialized: false
}))
app.get('/', (req, res) => {
  var sess = req.session
  if (sess.views) {
    sess.views++
    res.setHeader('Content-Type', 'text/html')
    res.write('
views: ' + sess.views + '
')
    res.end()
  } else {
    console.log('initializing new session')
    sess.views = 1
    res.end('welcome to the session demo. refresh!')
  }
  console.log('views=', sess.views)
})
app.listen(3000, () => {
  console.log('Session store example listening at http://localhost:3000/')
})

I start this app, hit the root path a few times in the browser and then shut down the Aerospike server. When reloading the page, the error I see is AerospikeError: Failed to connect. But once I restart the server, the client automatically reconnects:
$ AEROSPIKE_HOSTS=192.168.33.10:3000 node ./express.js
Session store example listening at http://localhost:3000/
initializing new session
views= 1
views= 2
views= 3
views= 4
views= 5
AerospikeError: Failed to connect: BB9EB63B2005452 192.168.33.10:3000
    at Function.AerospikeError.fromASError (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/aerospike_error.js:113:10)
    at Client.DefaultCallbackHandler [as callbackHandler] (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/client.js:71:72)
    at getCb (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/client.js:840:10)
AerospikeError: Failed to connect: BB9EB63B2005452 192.168.33.10:3000
    at Function.AerospikeError.fromASError (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/aerospike_error.js:113:10)
    at Client.DefaultCallbackHandler [as callbackHandler] (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/client.js:71:72)
    at getCb (/Users/jhecking/aerospike/aerospike-session-store-expressjs/node_modules/aerospike/lib/client.js:840:10)
views= 6
views= 7
views= 8

authors: jhecking karlhiramoto


text:
Problem DEX

https://github.com/aeternity/dex-ui
https://aepp.dex.superhero.com/explore
It is impossible to look of which tokens liquidity pools exists.

Why? On the link you posted you can see all pools that exist :)

source: gharchive/issue

repo: aeternity/dex-ui

license: ISC

license_type: permissive

license_source: github-api


text:
aecore_suite uses a persisted DB

In scope for https://www.pivotaltracker.com/story/show/155290714
PT https://www.pivotaltracker.com/story/show/155296843

I see 2 approvals. I see Circle CI passed. I see one Travis build passed. Merging.

source: gharchive/pull-request

authors: lucafavatella velzevur

repo: aeternity/epoch


text:
Pt 156569845 check signatures

Check signatures on transactions before applying them to state trees.
Also, move signature verification out of aec_keys and to aetx_sign instead.
https://www.pivotaltracker.com/n/projects/2124891/stories/156569845

Test failed with unrelated known intermittent failure %%% aehttp_integration_SUITE ==> {{badmatch,{error,socket_closed_remotely}}, - I am taking the liberty of restarting CI job.

I am taking the liberty of restarting CI job.

I did - I hope I restarted it in the correct way.

authors: gorillainduction lucafavatella


text:
Test Code Field - New UI- Commented out?

I ran into an issue when testing this out with my organization and using the new UI that allows for Custom Metadata.  The Test Code field is not available when viewing.  I took a glance at the visual force page associated with this and noticed the following. Looks like it was commented out? It works when I use the normal custom object UI without issue.  Any reason it was commented out?
<apex:pageBlockSection title="Advanced" columns="1">
					<!--
					<apex:pageBlockSectionItem helpText="{!$ObjectType.LookupRollupSummary2__mdt.fields.TestCodeDocument__c.inlineHelpText}">
						<apex:outputLabel value="{!$ObjectType.LookupRollupSummary2__mdt.fields.TestCodeDocument__c.Label}"/>
						<apex:inputText size="32" value="{!LookupRollupSummary.TestCodeDocument__c}"/>
					</apex:pageBlockSectionItem>
					-->
					<apex:pageBlockSectionItem helpText="{!$ObjectType.dlrs__LookupRollupSummary2__mdt.fields.dlrs__TestCodeSeeAllData__c.inlineHelpText}">
						<apex:outputLabel value="{!$ObjectType.dlrs__LookupRollupSummary2__mdt.fields.dlrs__TestCodeSeeAllData__c.Label}"/>
						<apex:inputCheckbox value="{!LookupRollupSummary.dlrs__TestCodeSeeAllData__c}"/>

It's due to the fact that Custom Metadata doesn't support Large Text Area field types currently. I've called it out as a restriction of the current pilot functionality. Other users have managed to find the 255 limited version of this field via editing the custom metadata record via the Custom Metadata page under Setup, though obviously this only currently works if your snippet of test code is under 255 characters. I've raised an enhancement request to sort this restriction out via some kind of workaround to the platform limitation above.  https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/304

authors: afawcett wkoscielny

license_source: bigquery


text:
how to hide a progress dialog

[ ] I have verified there are no duplicate active or recent bugs, questions, or requests
[ ] I have verified that I am using the latest version of Material Dialogs.
[ ] I have given my issue a non-generic title.

Include the following:

Material Dialogs version: 0.8.5.8
Device OS version: 6.0.1
Device Manufacturer: Huawei
Device Name: Nexus 6P

Also, please wrap Java with correct syntax highlighting.
System.out.println("Hello, world!");

Reproduction Steps

Expected Result
Actual Result

This is a completely unnecessary issue.
Read the documentation.

authors: WaelBelhassen afollestad

repo: afollestad/material-dialogs


text:
Delete AGECOMP/AKFIN_AGECOMP.AREA_ID_FOOTPRINT column

Issue Description

Major edits here from what I originally wrote as I had forgotten why we originally made the AGECOMP.AREA_ID_FOOTPRINT column - sorry and thanks for the opportunity to revise!

The AGECOMP.AREA_ID_FOOTPRINT column is a character string and should really be using the same 9990# numeric codes used in the AREA.AREA_ID and AGECOMP.AREA_ID columns, as they are describing the same thing. Using different names for the same thing (e.g., "EBS STANDARD" in the AREA_ID_FOOTPRINT vs. 99900 in the AREA_ID column) is problematic for joining tables to the AREA table and collating relevant data in our data tables. Further, if we prefer the text currently used in the AREA_ID_FOOTPRINT column, it would be better placed in the AREA.AREA_NAME or AREA.DESCRIPTION columns, where it would be more relevant.
Some of my initial confusion when I first re-saw this AREA_ID_FOOTPRINT column happened because it seemed categorically redundant to the AREA_ID column, and the descriptions weren't documented in the AREA table where I expected them to be. I've realized that (I had forgot when I first wrote this issue) the AGECOMP.AREA_ID_FOOTPRINT column is important for grouping the AGECOMP.AREA_ID stratum (not 9990#s) by that larger 9990# AREA_IDs because the stratum-level age comp estimates are not the same for stratum in AREA_ID_FOOTPRINT 99900 vs. 99901.
AGECOMP.AREA_ID_FOOTPRINT doesn't match the The 9990* AREA_ID enteries in the AREA.AREA_NAME or AREA.DESCRIPTION columns:

Where the Issue Occurs in the Script
I may have missed other places in the script that generate or depend on the AREA_ID_FOOTPRINT column, but it appears to be independently (aka not referencing the AREA/AKFIN_AREA table) generated here:
https://github.com/afsc-gap-products/gap_products/blob/af2c178e5b55aee442d58ea22241ec7236b69d50/code/production.R#L189-L193
https://github.com/afsc-gap-products/gap_products/blob/af2c178e5b55aee442d58ea22241ec7236b69d50/code/production.R#L303-L306
https://github.com/afsc-gap-products/gap_products/blob/af2c178e5b55aee442d58ea22241ec7236b69d50/code/production.R#L342-L351
Suggested Solution

[ ] 1. Make the AGECOMP.AREA_ID_FOOTPRINT column use the same 9990# numeric codes that are in the AREA.AREA_ID and AGECOMP.AREA_ID column as those codes and context are already defined in the AREA table.

Specifically: The AGECOMP.AREA_ID_FOOTPRINT column in this example should read 9990 instead of 'EBS STANDARD PLUS NW':

Specifically: The AGECOMP.AREA_ID_FOOTPRINT column in this example should read 99901 instead of 'EBS STANDARD':

And I think that change needs to happen in these code chunks:
  ## AREA_ID_FOOTPRINT denotes survey footprint and distinguishes the EBS
  ## STANDARD area vs EBS STANDARD PLUS NW
  production_agecomp$AREA_ID <-
    c(52 = 99904,
       47 = 99903,
       78 = 99905,
       98 = 99901,
       143 = 99902 )[paste(regions[iregion])]

    production_agecomp_stratum_ebsstand$age_comp$AREA_ID <- 99900
    production_agecomp_region_ebsstand$AREA_ID <- 99900

[ ] 2. Integrate the names currently in AGECOMP.AREA_ID_FOOTPRINT column into the AREA.AREA_NAME or AREA.DESCRIPTION columns if you prefer these names.

Hi @EmilyMarkowitz-NOAA
I think this is an elegant solution and the code modifications you proposed will work well with the production scripts. As for the AREA table, I think the AREA_NAME and DESCRIPTION fields are fine the way they are, they don't affect production of the tables. Here's my evaluation of implementing this change on two other aspects:
GAP_PRODUCTS maintenance
One thing I have to think about more is the consequence of changing the data type of this field from character to integer and how to modify the constraint and triggers to the GAP_PRODUCTS.AGECOMP table as well as the GAP_ARCHIVE.AUDIT_AGECOMP table because they all rely on the AREA_ID_FOOTPRINT field.
Affects on Data Users
This change would affect people’s data-pulling code, especially if they are pulling stratum-level agecomps. And this would definitely affect AKFIN’s bridging efforts with the GAP_PRODUCTS tables, I remember Jean mentioning that AKFIN should be notified when the data type of a field changes.
Take home
I think we should hold off this potential change so we can assess to what extent our main users in stock assessment and AKFIN are impacted, give them some time to modify their data pulling scripts again and then enact the change. We can use this upcoming year to reach out to folks, but I know I won't be able to do this by myself.

Good thinking about the audit tables, stock assessor pulls, and AKFIN needs, @zoyafuso-NOAA! I have some ideas on this we can chat about offline.

authors: EmilyMarkowitz-NOAA zoyafuso-NOAA


text:
KDE无法打开软件

启动Motrix时报错：
Gtk-Message: Failed to load module "canberra-gtk-module"
Invalid MIT-MAGIC-COOKIE-1 key%
系统信息：
Operating System: openSUSE Tumbleweed 20200213
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.2-1-default
OS Type: 64-bit
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 7.7 GiB of RAM
软件版本：1.41

试试这个 https://www.jianshu.com/p/71bc8b33e1a6

谢谢，我看到代码里已经更新到了上个月，我打包的时候发现electron包因为在github上所以抓取不下来，所以打包失败了，请问是否可以打包一下呢？谢谢啦～

你好，appimage运行正常，但snap版本无法运行，可能是snap的目录缺失，我重新装snap尝试一下，感谢。

repo: agalwood/Motrix

license: MIT


text:
重启后“已停止”记录会清空

错误描述
“已停止”列表内的任务重启软件之后就清空了，“下载中”和“等待中”列表没有这个问题。
如何重现
重现步骤，如：

任务下载完成，在“已停止”列表可看到任务（若干个）；
重启软件；
查看“已停止”列表，发现已经清空，无法查看历史记录。

预期的行为
重启软件后“已停止”列表内容不变，就像“下载中”和“等待中”列表一样，方便查看历史记录（比如想要复制一下上一次打开软件时下载完毕的某个任务的下载链接）。
截图
请添加屏幕截图以帮助解释你的问题：
打开应用菜单中的「帮助」——「开发者工具」—— 切换到 console，然后完整截图。

运行环境

操作系统类型： [Windows]
具体版本： [Windows 10]
Motrix 版本： [v1.5.10]
安装包类型：[exe]

更多信息
无。

同样的问题

同样的问题，有解决方法了吗

顶一下，希望可以保留已完成的下载记录！


text:
django.core.files.uploadedfile.InMemoryUploadedFile not supported in s3transfer

I have an issue related the FilePreference when I configure my file storage as a S3Boto3Storage.
I am using storages library to have S3 storage.
the error is this:
Input 58e9197deb97430e819064f8.png of type: <class 'django.core.files.uploadedfile.InMemoryUploadedFile'> is not supported.

Hi, I'm trying this library and facing the same. Did you find a solution, @pprolancer ?

authors: perepicornell pprolancer

repo: agateblue/django-dynamic-preferences


text:
CUDA driver version is insufficient for CUDA runtime version

face_recognition version:
Python version:3.6.3
Operating System:Ubuntu 16.04
CUDA: 9.1.85
NVIDIA-driver: 390.25

Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
I just executed first command from the documentation
$ sudo face_recognition ./i_know ./identify
but it throws me an error like this:
Traceback (most recent call last):
File "/usr/local/bin/face_recognition", line 7, in
from face_recognition.cli import main
File "/usr/local/lib/python2.7/dist-packages/face_recognition/init.py", line 7, in
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/usr/local/lib/python2.7/dist-packages/face_recognition/api.py", line 24, in
cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)
RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-build-IQQgTo/dlib/dlib/dnn/gpu_data.cpp:178. code: 35, reason: CUDA driver version is insufficient for CUDA runtime version
What I Did
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Typically that means the video driver module that is running doesn't match the version of the CUDA library on disk.
Maybe you applied an automatic Ubuntu update or something that got things out of sync. You might try just rebooting or worst case, re-installing the NVIDIA video driver and CUDA.

@manu310397 , I also encountered this issue, it could caused by the automatic driver installation mismatch.
Normally you need to download the latest CUDA toolkit run file from nvidia develop website, if your video card is new, then you can found the driver number (say 418.56) in the first character screen.
After adding nvidia ppa source, and updating, you can find the driver list with key "TAB" after sudo apt install nvidia-, you will find relevant driver number (418 as example) in the list, then you can run command sudo apt install nvidia-*-418.
Then you can install CUDA, CUDNN, DLIB.
Eventually, you will find something like following output using nvidia-smi:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   40C    P8    N/A /  80W |    935MiB /  4038MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1022      G   /usr/lib/xorg/Xorg                            26MiB |
|    0      1134      G   /usr/bin/gnome-shell                          47MiB |
|    0      1325      G   /usr/lib/xorg/Xorg                           204MiB |
|    0      1458      G   /usr/bin/gnome-shell                         196MiB |
|    0      2433      C   /usr/bin/python3.6                           455MiB |
+-----------------------------------------------------------------------------+

I got same issues and solved refer to #1205

@ageitgey @Professor-Paradox now 440 driver is not working anymore

authors: Professor-Paradox YanngLiu ageitgey arivudainambik manu310397

license: mit


text:
Problems with find faces in a picture

face_recognition version:current?
Python version:python 3
Operating System:Ubuntu 16
I get an error telling me pictures are not foun, im running the code called ' find_faces_in_picture.py '
I installed face_recognition , i have dlib, Cmake, open cv also, and clone(downloaded) the whole repository .
Could it be an installing error? thank you if more info require just let me know

 Traceback (most recent call last):   File "/home/papi/Documents/face_recognition-master/examples/find_faces_in_picture.py", line 5, in <module>     image =face_recognition.load_image_file ("obama.jpg")   File "/home/papi/.local/lib/python2.7/site-packages/face_recognition/api.py", line 84, in load_image_file     return scipy.misc.imread(file, mode=mode)   File "/home/papi/.local/lib/python2.7/site-packages/numpy/lib/utils.py", line 101, in newfunc     return func(*args, **kwds)   File "/home/papi/.local/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 164, in imread     im = Image.open(name)   File "/home/papi/.local/lib/python2.7/site-packages/PIL/Image.py", line 2543, in open     fp = builtins.open(filename, "rb") IOError: [Errno 2] No such file or directory: 'obama.jpg' [Finished in 2.916s]
''Could it be that is running it on python2.7 instead of 3? I currently use ATOM for python.''

The error is that it can't find the file obama.jpg. Is there an obama.jpg file in the folder from where you are running the example?

Yes I’m in the example folder where all the .py and images are , there is an image name obama.jpg my guess is the obama.jpg needs to be somewhere else

It depends on how you run the code. The working folder is the folder you ran the code from. How exactly did you run the code?

The folder looks like this
-example(folder)
///-find_faces_in_picture.py
///-(the rest of the archives face_distance  .py etc..)
///-obama.jpg
///-(more images ,obama320,Biden etc)
///-:knn_examples(folder)
I run th code on atom use the shortcut ctrl+shif+B  or run in the terminal in the folder as ‘python find_faces_in_picture.py’

I'm not sure how your system is configured. But you could just edit the find_faces_in_picture.py script and replace the reference to obama.jpg in the script with /home/papi/Documents/face_recognition-master/examples/obama.jpg so there's no chance it won't be able to find it.

So basically edit the code like this
image =face_recognition.load_image_file ("../home/papi/Documents/face_recognition-master/examples/obama.jpg")
Right?

no dots at the beginning of the filename

Thank you, but I still get an error
Traceback (most recent call last):   File "/home/papi/Documents/face_recognition-master/examples/find_faces_in_picture.py", line 10, in <module>     face_locations = face_recognition.load_image_file(image)   File "/home/papi/.local/lib/python2.7/site-packages/face_recognition/api.py", line 84, in load_image_file     return scipy.misc.imread(file, mode=mode)   File "/home/papi/.local/lib/python2.7/site-packages/numpy/lib/utils.py", line 101, in newfunc     return func(*args, **kwds)   File "/home/papi/.local/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 164, in imread     im = Image.open(name)   File "/home/papi/.local/lib/python2.7/site-packages/PIL/Image.py", line 2549, in open     fp = io.BytesIO(fp.read()) AttributeError: 'numpy.ndarray' object has no attribute 'read'
And this is when a run it on the terminal
```papi@LordPapisilv:~/Documents/face_recognition-master/examples$` python3 find_faces_in_picture.py
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2414, in open
fp.seek(0)
AttributeError: 'numpy.ndarray' object has no attribute 'seek'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "find_faces_in_picture.py", line 10, in
face_locations = face_recognition.load_image_file(image)
File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 84, in load_image_file
return scipy.misc.imread(file, mode=mode)
File "/usr/local/lib/python3.6/dist-packages/numpy/lib/utils.py", line 101, in newfunc
return func(*args, **kwds)
File "/usr/local/lib/python3.6/dist-packages/scipy/misc/pilutil.py", line 164, in imread
im = Image.open(name)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2416, in open
fp = io.BytesIO(fp.read())
AttributeError: 'numpy.ndarray' object has no attribute 'read'````

Use the jupiter notebook you will get.

jupyter notebook

you need to navigate to the folder containing the file using the bash
for example
cd Desktop
cd face_recognition
cd examples
python3 face_recognition.py

authors: ageitgey papisilv renatocesargarcia tchasse95


text:
configの修正とkxr_uavのモデルの追加

robot_assembler_kxr_settings.yamlと、robot_assembler_kxr_buttons_layaut.yamlが共通部分での変更点になります
セレーションの歯数に対応させて、微妙にずれた組付け方などを追加しています
また、sample/kxr/kxr_fullbody.roboasm.lが開けることは確認したのですが、サンプル内でupper-arm26をcrotchのクロス軸に使う実機の部品では不可能な組み合わせ方をしていることに気付いたので、実機に合わせる場合は修正する必要がありそうです

共通化しにくいdiffもあったので、kxr_makabeブランチにマージしました。
必要なものは本体にマージしていきます。
@makabe0510
サンプル内でupper-arm26をcrotchのクロス軸に使う実機の部品では不可能な組み合わせ方をしている
これは、どんな感じかな？

@YoheiKakiuchi
実機の部品で言うと、クロス軸の外側のサーボから駆動されるアーム(画像の緑丸)が長さ28のものしかないのですが、kxrのサンプルですと長さ26のものがその箇所に使用されていました

逆に言うと、長さ20,26,38のアームでもサーボホーン穴の組付け方が2通り用意されてるのが実機で再現できない設定が含まれているのが原因だと思っています


text:
Thumbnails not displaying correctly

Image thumbnails are not displayed in backend.

It seems to be related to /cockpit/utils/thumb_url?src= appending the full url path of the image (http://my.domain.name/cockpit/utils/thumb_url?src=http://my.domain.name/storage/uploads/...) instead of only the /storage/uploads/... .
When manually removing the http://my.domain.name after src= part from the url, then the image is displayed correctly.

OK, I was behind a reverse proxy and had to add site_url parameter in config.yaml file.

repo: agentejo/cockpit


text:
Question about code in Chapter 2

Hi Aurelien
Im loving the practicality of your book so far. very good examples and very informative.
I am having trouble understanding a block of code in chapter 2 and I was wondering if youd be able to walk me through what is going on in the code. I understand the basic idea of why its there but I dont understand what is actually happening.
Any insight you may be able to provide would be greatly appreciated
this is the code:
from sklearn.base import BaseEstimator, TransformerMixin

rooms_ix, bedrooms_ix, population_ix, household_ix = [
    list(housing.columns).index(col)
    for col in ("total_rooms", "total_bedrooms", "population", "households")]

class CombinedAttributesAdder(BaseEstimator, TransformerMixin):
    def __init__(self, add_bedrooms_per_room = True): # no *args or **kwargs
        self.add_bedrooms_per_room = add_bedrooms_per_room
    def fit(self, X, y=None):
        return self  # nothing else to do
    def transform(self, X, y=None):
        rooms_per_household = X[:, rooms_ix] / X[:, household_ix]
        population_per_household = X[:, population_ix] / X[:, household_ix]
        if self.add_bedrooms_per_room:
            bedrooms_per_room = X[:, bedrooms_ix] / X[:, rooms_ix]
            return np.c_[X, rooms_per_household, population_per_household,
                         bedrooms_per_room]
        else:
             return np.c_[X, rooms_per_household, population_per_household]

attr_adder = CombinedAttributesAdder(add_bedrooms_per_room=False)
housing_extra_attribs = attr_adder.transform(housing.values)

thanks again!

Hi @sebassilverac ,
I'm glad you're finding the book useful! :)
In this code, we're creating a custom transformer that will add combined features to the dataset, including the number of rooms per household, the population per household, and optionally the number of bedrooms per room (this is determined by the constructor argument add_bedrooms_per_room).
Let's look at each part of the code:
from sklearn.base import BaseEstimator, TransformerMixin

Importing these classes is not compulsory (since Scikit-Learn uses duck-typing), but it simplifies creating a custom transformer.
rooms_ix, bedrooms_ix, population_ix, household_ix = [
    list(housing.columns).index(col)
    for col in ("total_rooms", "total_bedrooms", "population", "households")]

We get the indices of the columns we're interested in.
class CombinedAttributesAdder(BaseEstimator, TransformerMixin):

We create the custom class, extending the BaseEstimator and TransformerMixin classes. The first one provides the get_params() and set_params() methods (based on introspecting the arguments of the constructor), and the second adds the fit_transform() method which just calls fit() then transform().
    def __init__(self, add_bedrooms_per_room = True): # no *args or **kwargs
        self.add_bedrooms_per_room = add_bedrooms_per_room

The constructor should not have *args or **kwargs, or else it breaks the get_params() and set_params() methods from BaseEstimator. Here we define an add_bedrooms_per_room argument, so we set it as an instance attribute.
    def fit(self, X, y=None):
        return self  # nothing else to do

This transformer does not learn from the data, so its fit() method does not do anything, other than returning self to respect Scikit-Learns API.
    def transform(self, X, y=None):
        rooms_per_household = X[:, rooms_ix] / X[:, household_ix]

We create the transform() method. It must take input features X, and optionally labels y.  Even though we don't use y, it's useful to add it to the method signature, or else the transformer will not be usable in a pipeline (which expects the transform method to take both X and y arguments).
        rooms_per_household = X[:, rooms_ix] / X[:, household_ix]

We compute the number of rooms per household for every instance in X. Note that X is 2-dimensional: its shape is [batch size, number of features]. We want to compute the number of rooms per household for each and every instance, hence the colon : in the equation, for the first dimension: X[:, rooms_ix]. The result is a one-dimensional NumPy array containing the number of rooms per household for each and every instance in X.
        population_per_household = X[:, population_ix] / X[:, household_ix]

Compute the population per household.
        if self.add_bedrooms_per_room:
            bedrooms_per_room = X[:, bedrooms_ix] / X[:, rooms_ix]
            return np.c_[X, rooms_per_household, population_per_household,
                         bedrooms_per_room]

Compute the number of bedrooms per room, if it was requested, and return a concatenation of X and the newly created combined features, including the bedrooms_per_room.
Note that np.c_[a,b,c] concatenates NumPy arrays a, b and c along axis=1 (features). In a matrix, that corresponds to appending columns.
If we used np.r_[a,b,c] instead, we would be appending along axis=0 (instances), which is not what we want.
        else:
             return np.c_[X, rooms_per_household, population_per_household]

If add_bedrooms_per_room is False, then we just return X concatenated with the two combined features rooms_per_household and population_per_household.
attr_adder = CombinedAttributesAdder(add_bedrooms_per_room=False)
housing_extra_attribs = attr_adder.transform(housing.values)

We create an instance of the custom transformer we just defined, setting add_bedrooms_per_room=False, and we use it to transform the housing dataset. Note that housing.values converts a Pandas DataFrame to a NumPy array.
Hope this helps!

ps: to include multiple lines of Python code in a Github comment, you should use this syntax:
```python
print("hello")
print("world")
```
which will give you nice syntax highlighting:
print("hello")
print("world")

Hi Aurelien
Thank you for that in depth explanation, I really appreciate the help. Its great that you are willing to take the time to help people out with questions. I am very new to machine learning and was quite overwhelmed at first but knowing that I can ask questions when I am confused is a great motivator to keep learning.
Cheers

Hi @ageron
I was just going over your explanation in a little more depth and just had a few follow up questions if you dont mind.

def __init__(self, add_bedrooms_per_room = True): # no *args or **kwargs
        self.add_bedrooms_per_room = add_bedrooms_per_room

in this line, this is where we define the hyperparameters is that correct? so if we wanted to experiment with other hyperparameters included here?

def fit(self, X, y=None
here you said that this transformer does not learn from the data, could you just explain what you mean by that?

and finally, why did we set add_bedrooms_per_rooms to False at the end there?
Thanks again for your help

Hi @AyEnEss ,
Sure!

Indeed, if you wanted to add more hyperparameters, you would just have to add them to the arguments of the constructor and set corresponding instance variables, then use these hyperparameters in the fit() or transform() method (or both).

When you call the fit() method on most Scikit-Learn estimators, some value is computed based on the data X and/or the labels y. For example, the StandardScaler transformer computes the scale_ and mean_ instance attributes. These are called "learned parameters", since they are computed based on the data. By convention, their name ends with an underscore, so you can get the list of learned parameters by running the following code:

[attr for attr in dir(scaler) if attr.endswith("_") and not attr.startswith("_")]

Note that these learned parameters usually don't exist until you call the fit() method.
Now our CombinedAttributesAdder custom transformer does not need to compute anything when we call the fit() method. Indeed, the transform() method can directly compute the new features for each instance without requiring any knowledge of the other instances. So the fit() method does not need to do anything.
In contrast, in order to standardize the features of an instance, the StandardScaler transformer needs to know what the mean and scale of each feature is.

Finally, we set add_bedrooms_per_rooms=False arbitrarily. We can run everything, measure the validation error, and then start again setting add_bedrooms_per_rooms=True and measure the validation error again. This way, we would know whether the extra features helps or not. That's the benefit of making it easy to include the feature or not.

Hope this helps.

That actually makes a lot of sense thank you for that

housing_extra_attribs = attr_adder.transform(housing.values)

Just a quick question, can we modify the code so that we don't have to convert housing into NumPy array and convert it back into DataFrame after .transform()?

authors: AyEnEss LogicNg ageron sebassilverac ssilverac

repo: ageron/handson-ml


text:
Limit the number of proposals an user is able to submit to 3

As a volunteer on the Program team, I would like the ability to limit the number of proposals an user is able to submit so that we get only the best ideas from each author, we have enough sessions to review without wasting time on desperate speakers,
Nice to have:
As a potential speaker, I want the ability to delete or cancel a session I submitted so that I can work on a better proposal.
Questions:
If Mary makes a submission and adds John as a co-speaker, it only counts on Mary quote of 3?

My personal assumption: yes.

Made it so that Mary and John's both counts go up and therefore add to limit.
John can log in and edit the sessions with Mary to remove himself if he wants to. Handled delete/cancel in #253

Fixed. Tested in staging.

authors: gmotta hugocorbucci

repo: agile-alliance-brazil/submissions


text:
Allow consumers to specify all, none or any (as well as one)

Am thinking that each of these should run as separate jobs, potentially - would mean that we don’t need to aggregate the output of each one, which would simplify things a great deal.

Implemented in #39, #40 and #42.
The checks all run in the same job, which is great.

repo: agilepathway/label-checker


text:
Please support connection strings

Hi there, I've put in a PR for supporting connection strings.
https://github.com/agmoss/winston-azure-blob/pull/9
This also allows using the package with Azurite.
Feel free to rework it if you feel it is too hacky putting the connection string in the account name property.
Thanks very much for the package by the way!

Hi @chiptech-kirk, thanks for the flag. I have updated your pr with some better ergonomics for handling a connection string in the account type. I will merge and publish soon.

Available in version 1.4.0 https://www.npmjs.com/package/winston-azure-blob/v/1.4.0

authors: agmoss chiptech-kirk

repo: agmoss/winston-azure-blob


text:
New monument form error messages

Monument Metadata

[ ] Section: Section must be a whole number from 1 to 36.
[ ] Corner: Corner is a required field.
[ ] Monument Status: Status is a required field.
[ ] Accuracy: Accuracy is a required field.
[ ] Monument Description: Description is a required field.
[ ] General Notes: Notes is a required field.

Step 1: Location Information - Coordinate System

[ ] Coordinate System:(drop-down) Coordinate System is a required field.

(Geographic) Step 2: Location Information - Latitude

[ ] Degrees: Degrees must be a whole number from 37 to 42.
[ ] Minutes: Minutes must be a whole number from 0 to 59.
[ ] Seconds: Seconds must be a number from 0 to 59.99999.

(Geographic) Step 3: Location Information - Longitude

[ ] Degrees: Degrees must be a whole number from 109 to 114.
[ ] Minutes: Minutes must be a whole number from 0 to 59.
[ ] Seconds: Seconds must be a number from 0 to 59.99999.

(Geographic) Step 4: Location Information - Ellipsoid Height

[ ] Ellipsoid Height (Meters): Ellipsoid Height (meters) must be a number from 600 to 4300.
[ ] Ellipsoid Height (Feet): Ellipsoid Height (feet) must be a number from 2000 to 14000.

(Grid) Step 2: Location Information - Zone and Units

[ ] State Plane Zone: State Plane Zone is a required field.
[ ] Horizontal units: Horizontal units is a required field.

(Grid) Step 3: Location Information - Location
For all three zones, and when horizonal units = meters:

[ ] Northing: Northing value must contain seven values to the left of the decimal, and up to three to the right.
[ ] Easting: Easting value must contain six values to the left of the decimal, and up to three to the right.

For all three zones, and when horizonal units = feet:

[ ] Northing: Northing value must contain eight values to the left of the decimal, and up to three to the right.
[ ] Easting: Easting value must contain seven values to the left of the decimal, and up to three to the right.

(Grid) Step 4: Elevation

[ ] Vertical datum: Vertical datum is a required field.

For all three zones, and when horizonal units = meters:

[ ] Elevation: Elevation (meters) must be a number from 600 to 4300.

For all three zones, and when horizonal units = feet:

[ ] Elevation: Elevation (feet) must be a number from 2000 to 14000.

Monument Images

[ ] Map View or Sketch: Denied. Accepted file types: jpeg, jpg, png, tiff.
[ ] Monument Area: Denied. Accepted file types: jpeg, jpg, png, tiff.
[ ] Monument Close-up: Denied. Accepted file types: jpeg, jpg, png, tiff.
[ ] Extra Pages: Denied. Accepted file types: jpeg, jpg, pdf, png, tiff.

The messages have been updated for each section of the new monument import workflow, based on discussion with and feedback from Sean.

I thought this was optional

Huh...I thought I crossed out vertical datum yesterday, but must not have saved it, darn it

I'm calling this one validated. Created a few new issues to deal with some little pieces:
#140
#141
#142

authors: nathankota steveoh

repo: agrc/plss


text:
🛑 SIHE Canvas is down

In d75b344, SIHE Canvas (https://canvas.sheridan.edu.au) was down:

HTTP code: 503
Response time: 1914 ms

Resolved: SIHE Canvas is back up in 26a5393 after 6 minutes.

repo: agrez/upptime


text:
SAMP crashes because of Overlay

Hello
Some of my users have the problem that my program which uses the API for GTA San Andreas Multiplayer makes GTA San Andreas crash. It crashes when I create the first Overlay. My program itself doesn't return any errors.
What could I do to fix that?

Hi,
what for modification the users have? Sometimes, when users had an ENB installed, the game are crashing.

This can happen if the user use a modified version of the d3d9.dll like ENB or so. Maybe i will provide a fix for that issue at the Open-SAMP-API repository

Would be very nice

Did you progressed?

authors: TheFilet agrippa1994 shadowlif


text:
Typo in Unit1-Module3 reading

Talked and confirmed with Lyndon on 09/13 that there is a minor typo in 4.3.3.
Both #.3 and #.4 should be columns. See attachment.

Great catch @wqtclaire thanks!

authors: ldemaz wqtclaire

repo: agroimpacts/geospaar


text:
No Arrow

I really like the library. However, in the documentation in the ShowRoom you show a standard popover that has the arrow pointing down to something. I can't seem to figure out why an arrow is not showing on my popover, here is the code I'm using. Not sure if I'm missing something.
.popover(
    present: $promptAddContact,
    attributes: {
        $0.position = .absolute(
            originAnchor: .bottom,
            popoverAnchor: .topLeft
        )
        $0.presentation.animation = .spring()
        $0.presentation.transition = .move(edge: .top)
        $0.dismissal.animation = .spring(response: 2, dampingFraction: 0.8, blendDuration: 3)
        $0.dismissal.transition = .move(edge: .top)
    }
) {
    Text("Click here to add contacts")
        .smallPadding()
        .foregroundColor(.white)
        .background(.blue)
        .cornerRadius(10)
        .onAppear {
            DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
                promptAddContact = false
            }
        }
}

Hey! By default Popovers shows the view you pass in — Text("Click here to add contacts") — and nothing else. The arrow is another custom view inside the Templates folder called Container. Here's how you use it:
.popover(
    present: $present,
    attributes: {
        $0.sourceFrameInset.top = -8
        $0.position = .absolute(
            originAnchor: .top,
            popoverAnchor: .bottom
        )
    }
) {
    Templates.Container { /// here!
        Text("This is a pretty standard-looking popover with an arrow.")
    }
    .frame(maxWidth: 300)
}

Result:

The Container view also has some additional optional parameters that you can configure:
Templates.Container(
    arrowSide: .bottom(.mostClockwise),
    backgroundColor: .green
) {
    Text("This is a pretty standard-looking popover with an arrow.")
        .foregroundColor(.white)
}
.frame(maxWidth: 300)

Result:

You can find more example usage inside the sample app.

Thanks,
Sorry I have one last question. How can I make the pop up come up when the view loads. I’ve tried onAppear and it doesn’t seem to work.
Thanks
-Mark/*
Mark Perryman
Apple (MAC) Enthusiast
(435) 882-1008

On Apr 10, 2022, at 10:52 AM, Andrew Zheng @.***> wrote:

Hey! By default Popovers shows the view you pass in — Text("Click here to add contacts") — and nothing else. The arrow is another custom view inside the Templates folder called Container. Here's how you use it:
.popover(
present: $present,
attributes: {
$0.sourceFrameInset.top = -8
$0.position = .absolute(
originAnchor: .top,
popoverAnchor: .bottom
)
}
) {
Templates.Container { /// here!
Text("This is a pretty standard-looking popover with an arrow.")
}
.frame(maxWidth: 300)
}
Result:
The Container view also has some additional optional parameters that you can configure:
Templates.Container(
arrowSide: .bottom(.mostClockwise),
backgroundColor: .green
) {
Text("This is a pretty standard-looking popover with an arrow.")
.foregroundColor(.white)
}
.frame(maxWidth: 300)
Result:
You can find more example usage inside the sample app.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Closing for now. @tazmancoder, responding to your question in https://github.com/aheze/Popovers/issues/30

authors: aheze tazmancoder

repo: aheze/Popovers


text:
Opening downloaded Xcode example project causes Xcode to hang

I've downloaded the example project in the readme (https://github.com/aheze/Popovers/raw/main/Examples/PopoversXcodeApp.zip) and opened it from where it was downloaded (~/Downloads), and it caused Xcode to hang for a long time.
It opened eventually, and I noticed that it loaded all my folders and files in ~/, which explains why it took so long. If I clone this repo and open the example project, it opens fine without any issue.
I think there might be some hard-coded relative paths in the example Xcode project?

Weird, I'll take a look. Thanks for letting me know!

I get the same issue.
When I first launched the project, it caused XCode to ask for permission to access my calendar and reminders. I denied that permission.
Is this related?

Wow, that's seriously weird. Investigating...

authors: ConfusedVorlon aheze stbdang


text:
What is the limit of requests per hour?

What is the limit of requests that can be made per hour for each endpoint?

https://github.com/mgp25/Instagram-API/issues/1661

authors: ahmdrz wilsontamarozzi

repo: ahmdrz/goinsta


text:
Concurrency

Hi :wave: -- thank you for sharing your efforts!
I noticed that concurrent requests will result in a 500 error, please find a trace at the end of this message.
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 404, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/applications.py", line 261, in __call__
    await super().__call__(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
    raise exc
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
    raise exc
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
    await route.handle(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
    response = await func(request)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/app/src/whisper_asr/webservice.py", line 31, in transcribe_file
    result = model.transcribe(audio, **options_dict)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/transcribe.py", line 182, in transcribe
    result = decode_with_fallback(segment)[0]
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/transcribe.py", line 110, in decode_with_fallback
    results = model.decode(segment, options)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
    return func(*args, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/decoding.py", line 699, in decode
    result = DecodingTask(model, options).run(mel)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
    return func(*args, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/decoding.py", line 631, in run
    tokens, sum_logprobs, no_speech_probs = self._main_loop(audio_features, tokens)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/decoding.py", line 586, in _main_loop
    logits = self.inference.logits(tokens, audio_features)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/decoding.py", line 145, in logits
    return self.model.decoder(tokens, audio_features, kv_cache=self.kv_cache)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/model.py", line 189, in forward
    x = block(x, xa, mask=self.mask, kv_cache=kv_cache)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/model.py", line 124, in forward
    x = x + self.attn(self.attn_ln(x), mask=mask, kv_cache=kv_cache)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/model.py", line 85, in forward
    wv = self.qkv_attention(q, k, v, mask)
  File "/root/.cache/pypoetry/virtualenvs/whisper-asr-webservice-9TtSrW0h-py3.9/lib/python3.9/site-packages/whisper/model.py", line 97, in qkv_attention
    qk = qk + mask[:n_ctx, :n_ctx]
RuntimeError: The size of tensor a (67) must match the size of tensor b (3) at non-singleton dimension 3

Thank you for reporting the bug!
It is probably caused by the fact that we use a single model for all requests. For now, I will solve it by having requests put a mutex lock on the model while using it. This way, concurrent requests will wait for the model to be free.
We will have to think about scaling in near future

authors: besimali cdosoftei

repo: ahmetoner/whisper-asr-webservice


text:
Add ChatGenius to Collection

ChatGenius is a software company that provides a powerful AI chatbot solution powered by GPT-4 and ChatGPT. Our chatbot offers 24/7 support in over 110 languages and can be integrated seamlessly into your website or platform. Join the thousands of businesses using ChatGenius to streamline customer support and improve user engagement.

Thanks! looks awesome. What is your Twitter handle?
I'll give you a shoutout.

authors: aydinnyunus kerbelp

repo: ai-collection/ai-collection


text:
Bad syntax in collab

In https://colab.research.google.com/drive/1wGE-046et27oHvNlBNPH07qrEQNE04PQ?usp=sharing#scrollTo=GdOYJvwZSB-D
it should be a couple of quotes (") in the text parameter:
text = Что бы ни # @param
Should be:
text = "Что бы ни" # @param
Thanks!

So: "do not use the English text for inference, you should use translation to Russian, or you can use directly Russian text". Could be added. Quotes are needed for correct execution.

We corrected errors and updated the minimal example.

authors: Jakeukalane NastyaMittseva

repo: ai-forever/ru-dalle


text:
is there a method to know

the message input has no trigger defined, and will use the default ones:

I'm not sure I understand you fully.
Please go on.
That is interesting. Please continue.
Tell me more about that.
Does talking about this bother you?

I just want to know in the code once the input will be replied with the 'default' ones.
thanks.

The * trigger has the lowest matching priority, so it only matches the user's message when there was no better trigger that matched it. The bot sorts all the triggers internally (regardless of their location in the source .rive files) in a "most specific first" ordering, where longer/more specific triggers are tested first.
For example if you started with this:
+ hello
- Hello human!

+ *
- I didn't understand that.

A user saying "hi" instead of "hello" would get the "I didn't understand that." reply. But as soon as you make it so a trigger would match "hi":
+ (hello|hi)
- Hello human!

- *
- I didn't understand that.

Now "hi" would get the "Hello human!" response.

hi kirsle, thanks for the comment!
sorry i didnot make it clear.
what i want to do is, i want to check before getting the reply whether the bot will tigger the * trigger.
i.e.
msg = getUserMsg()
has_meaningful_reply = checkTrigger(msg)
if has_meaningful_reply:
reply = chatbot.reply(msg)
else:
#do something else here
thanks again for you quick response.

I have two ideas:
You can get the reply normally, and then check the last_match() function to see if they had matched the * trigger. This should probably be okay if your bot doesn't change any user variables in the * trigger.
reply = bot.reply(username, message)
if bot.last_match(username) != '*':
    send_reply(username, reply)
else:
    # do something else here

Or, if your bot might change user variables and you want to avoid the side effects of variables getting changed, you can do a "test flight" reply using the freeze_uservars() and thaw_uservars()
# Snapshot the user's variables
bot.freeze_uservars(username)

# Test the reply
reply = bot.reply(username, message)
is_wildcard = bot.last_match(username) == '*'

# Roll the user vars back so it's as if the reply() never happened.
bot.thaw_uservars(username)

# now you have is_wildcard bool
if is_wildcard:
    do_something_else()
else:
    reply = bot.reply(username, message)  # for real this time
    send_reply(username, reply)

hi kirsle,
got it.
many thanks for the details.

authors: jianbang kirsle

repo: aichaos/rivescript-python


text:
Revisit Data Carpentry, maybe?

Data Carpentry seems to be doing a bangup job of developing bioinformatics training resources --
https://github.com/datacarpentry/?utf8=✓&query=genomics
It has a different approach than Software Carpentry in that DC is doing discipline/domain specific workshops.  My outsider perspective is that they're doing some good community building around bioinformatics training resources, and I thought you might be unaware.  So, you might take another look and consider including.  No worries if not, just pointing you at those resources ;)

Thanks for bringing that up again, Titus.
TL;DR - please add DC and SC (if you think that's too a good example for the list) to listOfOSBCs.md and send a pull request for it to be added to the repo.
We took DC, SC and GOBLET off the list, to keep the focus on communities delivering code in a open, collaboratively-built way.
Given that there are articles about bioinformatics communities in general and specific open source bioinformatics communities, we thought it could be useful to focus the experiences collected here on a fairly specific kind of community (i.e. the collaborative-code-written kind described above). That might tease out ideas/experience/tips/advice at a different 'level" than that from a more general article, and with broader applicability than lessons from a single community.
Having said that, given that DC and SC (as far as I can see from checking out their github repos) write their content collaboratively using github, so I expect the parallels with code development here are strong and, as you say, community-building's a "thing" for them, so they surely have interesting insights/anecdotes from their work.
So, Titus - I encourage you, to add these via pull request to this file listOfOSBCs.md - we're keen to put this together with participation from people from different communities, maybe having extra people on the list of committers helps encourage others to join in.

Oh, and, Titus, feedback/thoughts on features that may be missing from listOfFeaturesOfGreatOSBCs.md, please go ahead and edit and pull request (or comment in the issues)

Closing this issue, to consolidate discussion of which communities to include/reach out to for the manuscript into one issue i.e. #38

authors: aidanbudd ctb


text:
Preserve machine settings when upgrading factory.

It would be nice if machines kept their settings instead of just their upgrades when upgrading from Base machine > factories and when upgrading factory tiers.

What do you mean by settings?  Side configuration conversion is tricky from basic machine -> factory

I think that is what he means. Going from factory to higher tier factory works flawless, you just lose your side settings when moving from basic to factory. I can confirm the behavior. :)

Really? Going from factory to higher tier factory works flawless? I just converted my advanced to elite and it lost all side configurations.

Yup just upgraded one of mine from advanced to elite and it kept all side configs. I'm on 1.7.10-8.1.5.246 currently.

huh, Oops, my memory was at fault here.

As of now, I'm afraid machine upgrades are done about as precisely as possible without getting too messy.

Thanks for looking into it Aidan!

On Mar 5, 2016, at 5:54 PM, Aidan notifications@github.com wrote:
As of now, I'm afraid machine upgrades are done about as precisely as possible without getting too messy.
—
Reply to this email directly or view it on GitHub.

I take that back. I've just done some changes which allow for machine configurations to be preserved between basic machine and factory state. Thanks again for the request :)

Woo hoo! :)

On Mar 5, 2016, at 6:25 PM, Aidan notifications@github.com wrote:
I take that back. I've just done some changes which allow for machine configurations to be preserved between basic machine and factory state. Thanks again for the request :)
—
Reply to this email directly or view it on GitHub.

authors: Utildayael aidancbrady ruifung

repo: aidancbrady/Mekanism


text:
[Suggestion]: Support for Underground Biomes faced vanilla ores

I suggest to implement a compatibility for (the new) Underground Biomes.
Underground Biomes allows to generate vanilla ores with UB stone textures (faces). I mine Coal-, Lapislazuli-, Redstone- and Diamond-Ore with silk touch. So I can process these ores with TE Pulverizer.
In some cases it would be useful to do that with the Enrichement Chamber in order to realize a higher yield.
Unfortunately right now this does'nt work. But I would appreciate this a lot.
Maybe you can make this possible, as far as the UB ores are registered well in OreDict.

Are you sure they are registered with oredict correctly and in the right phase? Our system would automatically pick them up if they were.

Sorry, no I'm not 100% sure. I thought so, because TE machines process them now, what they did'nt in 1.11.2, when the oredict registration still was completely wrong. So anything changed... :)
I would really like to see UB Lapislazuli ore processed to 12 Lapis instead of 10... ;) (I know I could tweak recipes by myself.)

I built up the Digital Miner now. The miner shows up all UB faced ore versions as there correct counterpart. if I enter i.e. 'oreLapis*', it cycles between plain Thermal, IE, and all UB faced versions in filter screen.
The Digital Miner catch'em all to my storage. :)
So it would be great to be able to process these ores further. It's no hot topic but only a wish.
With default ores from another dimension, where UB does'nt work, all works well.

That is indeed the point about it being in the right phase. It needs to be done before we iterate the OreDict for our recipes. It would appear they do not do it before that.

authors: PearlCanopus thiakil


text:
Fixes various issues related to Tesla API

See each commit message for details.
#4116 #4143 #3918 (maybe others I didn't find)

Forgot to mention, the cables do not seem capable of receiving energy from EnderIO capacitor banks and cables, because both of these don't reply to the Tesla outputter capability (this was tested both with and without the capacitor bank in output mode, as well as with and without the cable in PULL mode).
They receive energy from EnderIO generators just fine though (without setting the cable in a special mode).

If you're tackling power issues, there is another Tesla related one. I would fix it myself, but I'm currently busy with school and stuff. The current implementation totally ignores the simulate argument of the tesla capability.
Would be great if you could also tackle that.

From what I've seen, it takes it into account. I didn't check everything though, only what was related to cables (and their network) as well as energy cubes.
Mind to link me specifically to an example?
PS: I'm also kinda busy, with exams and writing multiple mods for a modpack in addition to fixing existing mods :p

Some places I found it are at the takePower and givePower methods of TeslaIntergration. Changing that would require to add the simulated argument to the upstream call.

I see now where these are.
@ThatGamerBlue I just saw your "rewrite" fork, but didn't investigate it much yet.
Are your plans to completely rewrite the energy parts (which have gotten damn messy over the years, that's for sure) ?
Do these issues apply to your version, and do you want me to see about porting these?
Finally, do you want me to see about helping to clean things up on your fork?

While in theory these simulation parameters should work, I can not test it right now.
I made sure everything compiled right on this branch etc but did not test in-game.

@Bluexin sorry I couldn't get back to you sooner, yes I plan to rewrite everything, currently there are no issues on my fork because it is very basic (just the metal storage blocks and plastics) at this point but I will probably need help in the future :)

bump

Self-merged, thanks

@aidancbrady I'm still missing the simulated argument which causes unwanted extractions and insertions of energy. Some mods do test if other tiles accept energy with a simulated insertion.

@aidanebrady why do you do this

authors: Bluexin ThatGamerBlue aidancbrady roboderpy thommy101


text:
Namespace socket and tab completion

This PR uses the NodeSocketNamespace from latest node-graph to supported nested socket, e.g., the namespace in AiiDA. Previously, one need to use outputs["relax.output_structure"], now one can use outputs.relax.output_structure. The top-level inputs and outputs is also a namespace socket now. And the auto-completion is also supported.
# old way
wg.add_task(add, x=task1.outputs["nested_socket.x"])
# new way
wg.add_task(add, x=task1.outputs.nested_socket.x)

Codecov Report
Attention: Patch coverage is 97.19388% with 11 lines in your changes missing coverage. Please review.

Project coverage is 91.32%. Comparing base (96ad5e7) to head (b89bd16).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

src/aiida_workgraph/engine/task_manager.py
88.00%
3 Missing :warning:

src/aiida_workgraph/workgraph.py
87.50%
2 Missing :warning:

tests/test_decorator.py
94.11%
2 Missing :warning:

src/aiida_workgraph/engine/utils.py
75.00%
1 Missing :warning:

src/aiida_workgraph/tasks/pythonjob.py
95.65%
1 Missing :warning:

src/aiida_workgraph/utils/analysis.py
93.33%
1 Missing :warning:

tests/test_yaml.py
80.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
+ Coverage   91.06%   91.32%   +0.26%
==========================================
  Files          65       66       +1
  Lines        4678     4646      -32
==========================================
- Hits         4260     4243      -17
+ Misses        418      403      -15

Flag
Coverage Δ

python-3.11
91.28% <97.19%> (+0.26%)
:arrow_up:

python-3.12
?

python-3.9
91.28% <97.18%> (+0.22%)
:arrow_up:

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.

repo: aiidateam/aiida-workgraph


text:
modified a few functions in planning.py

Added  planningKB , modified  action  class to make use of  partition  function which is added to
utils.py . Modified  air_cargo ,  spare_tire ,  have_cake_and_eat_cake_too ,  three_block_tower  and added  sussman_anomaly  in  planning.py .
I tried to keep the code clean. @norvig @MrDupin  can you please review this and kindly notify me if something is wrong ?
Thanks.

There seems to be many conflicts, can someone please  tell me where i'm wrong .

I have to go now, but I think there might be an issue with lists in your PR. There are a lot of not iterable and list errors. I would check if the imports cause an issue and if you changed something around a list.

Thank you @MrDupin . will surely make the changes soon.

CLosing this for now; can re-open later,

authors: MrDupin norvig nvinayvarma189

repo: aimacode/aima-python


text:
Incorrect data indexing in wrapper of InputData

In case data without index column, function from_csv set the first column as index and this cause troubles in model fitting. One of the possible solution is to set the default parameter to None or checking if there are columns with name Index or same one name.
https://github.com/nccr-itmo/FEDOT/blob/3db5464d06a5813d16f2219989d8dce8c3d82aaa/fedot/core/data/data.py#L46

Оч спорный момент. С давних-предавних времён первая колонка в таблице воспринимается как индекс, на это уже завязано много примеров.
Предлагаю сделать вот что: проверять первую колонку, и если в ней есть пропуски или неуникальные значения, то генерить новый индекс

Оч спорный момент. С давних-предавних времён первая колонка в таблице воспринимается как индекс, на это уже завязано много примеров.
Предлагаю сделать вот что: проверять первую колонку, и если в ней есть пропуски или неуникальные значения, то генерить новый индекс

Ишью для случаев если первая колонка не индексы, но при этом федот пытается сделать ею.

Возможно, нужно как-то иначе определять, индекс ли это, а не по заголовку. Я предлагаю к упомянутым выше ограничениям на уникальность и отсутствие пропусков добавить ещё проверку на допустимость типа данных, чтобы туда не попадали float. Но это всё ещё может быть проблемой, если первая колонка это целочисленное осмысленное значение или текстовые данные.
Расскажи подробнее, какие данные ошибочно были приняты за индекс в твоём случае

Можно и адаптировать примеры, сделав индексом по-умолчанию автонумерацию. Просто единолично такое решение принимать не хочется

Ишью для случаев если первая колонка не индексы, но при этом федот пытается сделать ею.

Понимаю, но на практике колонка с индексом может называться очень по-разному, а у нас уже долгое время фреймворк функционирует как "1 колонка - индекс". Мы сломаем большую часть примеров этим изменением

Эти поломки чинятся заменой значения всего 1 аргумента во всех примерах, поэтому починка не должна занять много времени

authors: MorrisNein aPovidlo andreygetmanov

repo: aimclub/FEDOT


text:
Customized zoom web sdk with user authentication

Zoom Plugin Introduction

This is skeleton Zoom Meeting App
Login/Signup with Username & Password to access the App
Join Zoom Meeting as guest user with Meeting ID, Password and Username

This app uses Next App Router, MongoDB and Next-Auth
To view deployment visit : https://zoomplugin.vercel.app/

Installation

Clone this github repository to your local and cd to it
Run following command to install dependencies and run development server :

npm install

Setup .env.local file in following format:

DATABASE_URL = mongoDB-URI
NEXTAUTH_SECRET = ""
SDK_KEY = zoom_web_sdk_key
SDK_SECRET = zoom_web_secret

Run following command to generate NEXTAUTH_SECRET hash

openssl rand -base64 32

Run following command to run development server :

npm run dev

Open http://localhost:3000 with your browser to see the app.

Edited code tree
.
├── app
│   ├── (guest_route)
│   ├── (private_route)
│   │   ├── meeting
│   │   ├── layout.tsx
│   │   └── zoom
│   ├── api
│   │   ├── auth
│   │   │   ├── [...next_auth]
│   │   │   └── users
│   │   └──  zoom
│   ├── sign-up
├── components
│   ├── Alert.tsx
│   ├── AuthProfileMenu.tsx
│   ├── AuthProvider.tsx
│   └── Navbar.tsx
├── lib
│   └── db.ts
├── models
│   └── userModel.ts
└── next.config.js

Screenshots

Home Page

Sign Up Page

Start Meeting Page

Zoom Meeting Page

Hi @Shaomei, I have created a PR with edited code. Can you please ask @blickly to review it?

@Shaomei can you please merge this pull request as Ben has completed the review and approved it?

Done. Let me figure out the way for you to merge it yourself next time.

repo: aimpowered/zoomplugin


text:
Dockerization support

I'm running:

Which Aion version?: 0.2.3
Which operating system?: Linux
Which distributor and version?: Ubuntu 18.04
How installed?: via binaries
Are you fully synchronized?: no
Did you try to restart the node?: no

There should be another mean of configuring the aion kernel at startup, besides the raw config/config.xml file. It could be program parameters or environment variables.
We can provide sensible defaults in the config file and override things that are more likely to change at deploy time (eg. java api host, seeds).
The end goal is to dockerize the kernel and have a build once, deploy many approach to it. Having configuration params/env vars should make the deployment easier than having to manually/automatically configure or generate a config file for each deploy of a node.

#559

repo: aionnetwork/aion


text:
jni.h: No such file or directory

Error from line 5 of release.h:
cd .. && make jni && cd dist

Can't find jni.h. It was included line 2 of org_aion_fastvm_FastVM.h

Can't find jin.h

Hi @harveyc95, you need to install JDK9 and set the JAVA_HOME environment variables.

@yulongnuco Error was fixed after installing JDK9 and setting JAVAHOME. Thanks


text:
Update plugins.rst for clarity on the example

The plugins tutorial was lacking in the following ways:

I wasn't sure where my template should live
I wasn't aware that both the TestView and Blueprint were necessary

In lieu of a code refactor, here's my suggestion on how to make the documentation more helpful from the perspective of someone who doesn't have experience with Flask Blueprints and Flask Admin, which can prevent the deep-dive into the code and supporting libs that I just did!

Coverage remained the same at 67.715% when pulling b254d45cb1156ae8ad58b50bf18bd735ba4c7710 on boxysean:patch-1 into 8afee07629a2cdd91da29eaa3fb6f4f2a941cdef on airbnb:master.

Thanks for the clarifications!

authors: boxysean coveralls mistercrunch

repo: airbnb/airflow


text:
Issue while running Airpal : showing blank page

Showing blank page while running Airpal

Health check status

Tried to run presto server from cmd

Build logs

Please help me on  how to connect to prestodb and how it is linked to MySQL database to make Airpal running.
Thanks
Surendra

I've gotten it to compile using node v0.10.33 (try omitting -Dairpal.useLocalNode, or use that specific node version).

@surendraGaddam99   I got the same issues. Did you solve this problem?

repo: airbnb/airpal


text:
allow lag by hour in Join per JoinPart

Allow lag by hour in join per JoinPart. It should be straight forward if we need to change to minutes/seconds.
Use rightUnfilledRange instead of the whole leftRange in some cases.
I didn't add the lag as param in GroupBy config. We need to verify if the lag is stable across different partitions, otherwise setting a lag per GroupBy could be worse than 1 day lag (best case scenario)

@nikhilsimha @better365 @hzding621

the PR has been open for close to 2 years. lag is a good topic for OOC so it's worth revisit at some point. close this PR for inactivity.

repo: airbnb/chronon


text:
Implement verbose debug output

This implements .debug({verbose: true}) which prevents boxing primitive values when stringified.
Fix for #1476

@ljharb addressed your concerns dawg

Should we add a test for verbose: false that has arrays or objects to test the difference in behaviour between verbose false and true?
LGTM otherwise

Yes, that's a great idea

@nfcampos thanks for the call out. I added that and addressed the rest of @ljharb's comments

ping @ljharb

@blainekasten I don't see any tests for verbose: false?

@ljharb https://github.com/airbnb/enzyme/pull/1547/files#diff-3cc78530daa735c5d407c3f768d35c57R743

aha, thanks :-) i'll rebase it and rereview.

authors: blainekasten ljharb nfcampos

repo: airbnb/enzyme


text:
Install documentation typo

📓 Documentation Update
What part of documentation was unclear or wrong?
In the installation area, it says 'A- Installation using pypi' but there is currently no install under pypi. It should read
'A- Installation using pip'

Thank you Adam

Closed: Fixed in the PR #389

authors: adamfarquhar ai-fast-track

repo: airctic/icevision


text:
airsend.kafka.worker.high_2  | [debug] kw_low_640fa35242638 -> Timed out

Hi,
I'm sorry, I would like to ask you what is the possible issue when I got
airsend.kafka.worker.high_2  | [debug] kw_low_640fa35242638 -> Timed out
I just trying to install devenv by running build and docker composed up ...
I also have a issue realated with guzzle, but I not sure it is related to kafka:
airsend.cron                 | Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: web (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
airsend.cron                 | Stack trace:
airsend.cron                 | #0 /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
airsend.cron                 | #1 /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
airsend.cron                 | #2 /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
airsend.cron                 | #3 /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
airsend.cron                 | #4  in /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200
airsend.kafka.worker.high_2  | [debug] kw_low_640fa35242638 -> Timed out
airsend.kafka.worker.high_1  | [debug] kw_high_640fa35235870 -> Timed out
airsend.cron                 | Running CRON jobs at 2023-03-13 22:36:01
airsend.cron                 |
airsend.cron                 | Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: web (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
airsend.cron                 | Stack trace:
airsend.cron                 | #0 /var/www/dev/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
Thank you very much for your attention and help

i don't think somebody alive for it. Tomorrow i gonna try to install. i am hopping someone can hear us to help about it.

i don't think somebody alive for it. Tomorrow i gonna try to install. i am hopping someone can hear us to help about it.

how did that go for you im trying to get it up aswell as we speak

Lets all keep in touch

I got mine running now i use a macbook so its a bit diffrent to you guys

I tried on linux server many times but got tons of error and gave it up.. i am glad to hear one person make it work 😁

  Brother join the discord perhaps i can help

   --
  Sent from Canary

   On Sunday, Jun 23, 2024 at 2:36 PM, Wahshi Bin Harb ***@***.***> wrote:

  I tried on linux server many times but got tons of error and gave it up.. i am glad to hear one person make it work 😁
  —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
  ***@***.***": ***@***.***": "EmailMessage","potentialAction": ***@***.***": "ViewAction","target": "https://github.com/airsend-io/devenv/issues/2#issuecomment-2184992620","url": "https://github.com/airsend-io/devenv/issues/2#issuecomment-2184992620","name": "View Issue"},"description": "View this Issue on GitHub","publisher": ***@***.***": "Organization","name": "GitHub","url": "https://github.com"}}]

authors: gpoveda sullemanhossam vincentpricex wahshibinharb

repo: airsend-io/devenv


text:
draft: WIP SQS integration.

Description
SQS integration for sub/pub message/s.
Fixes #794
Type of change

[x] Documentation (typos, code examples, or any documentation updates)
[x] New feature (a non-breaking change that adds functionality)
[x] This change requires a documentation update

Checklist

[ ] My code adheres to the style guidelines of this project (scripts/lint.sh shows no errors)
[ ] I have conducted a self-review of my own code
[ ] I have made the necessary changes to the documentation
[ ] My changes do not generate any new warnings
[ ] I have added tests to validate the effectiveness of my fix or the functionality of my new feature
[ ] Both new and existing unit tests pass successfully on my local environment by running scripts/test-cov.sh
[ ] I have ensured that static analysis tests are passing by running scripts/static-anaylysis.sh
[ ] I have included code examples to illustrate the modifications

I have to polish stable Redis release. Then, we can start to work on this on.

Hello there! Sorry for waiting so long: I had to refactore project structure to unblock future featrues. Now we are ready to add a new broker support: are you still interested to help me with it?
Can you please update the branch to actual FastStream structure?

Hey, I just wanted to check in on this. I have a use case I need the SQS broker for and potentially some time to contribute to its completion, but I don't want to duplicate work if anyone else is currently working on it.

@ccastleberry thank you for the suggestion, but I freeze all new brokers support until inner structure stabilize. Can we wait for 0.6.0 release (I am planning to make all breaking changes in it) and come back to SQS then?

Sure, any estimate on when you expect that to get 0.6.0 released? I don't want to use propan since it's deprecated in favor of fast stream and I'd rather spend my time contributing than building an in house solution for sqs.

Sure, any estimate on when you expect that to get 0.6.0 released? I don't want to use propan since it's deprecated in favor of fast stream and I'd rather spend my time contributing than building an in house solution for sqs.

October, I hope. I am planning to focus on 0.6.0 now and release it as soon as possible. Then we can add a new broker support in a few days.

Oh wow. Thanks for the info. I look forward to it!

authors: Lancetnik belinux ccastleberry

repo: airtai/faststream


text:
fix:修复v-bind:class={}时，导致p标签产生一个空的class属性，将return {}更换为return null

Please makes sure the items are checked before submitting your PR, thank you!

[√] Rebase before creating a PR to keep commit history clear.
[√] Only One commit
[√] No eslint errors

在datetime组件中，有这样一段代码

 ，当 !this.$parent 成立时，styles的值为{},会导致生成一个带有空class属性的p标签：

，将return {}改为return null,就可以修复这个问题。

Codecov Report

Merging #3122 into v2 will decrease coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##               v2    #3122      +/-   ##
==========================================
- Coverage   19.45%   19.34%   -0.11%
==========================================
  Files         226      226
  Lines        5603     5603
  Branches      710      710
==========================================
- Hits         1090     1084       -6
- Misses       4394     4400       +6
  Partials      119      119

Impacted Files
Coverage Δ

src/components/datetime/index.vue
26.37% <100%> (ø)
:arrow_up:

src/components/inline-calendar/util.js
71.76% <0%> (-7.06%)
:arrow_down:

src/components/selector/index.vue
13.95% <0%> (-4.66%)
:arrow_down:

src/components/blur/blur.js
66.66% <0%> (+2.15%)
:arrow_up:

Continue to review full report at Codecov.

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

Please makes sure the items are checked before submitting your PR, thank you!

[x] Rebase before creating a PR to keep commit history clear.
[x] Only One commit
[x] No eslint errors

在datetime组件中，有这样一段代码

，当 !this.$parent 成立时，styles的值为{},会导致生成一个带有空class属性的p标签：

，将return {}改为return null,就可以修复这个问题。

repo: airyland/vux


text:
⚠ Turnos 24x7 has degraded performance

In 3aed8a1, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 500
Response time: 10270 ms

Resolved: Turnos 24x7 performance has improved in ebedeab.

repo: aisa-status/status-upptime-dev


text:
⚠ Turnos 24x7 has degraded performance

In 89e010c, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 953 ms

Resolved: Turnos 24x7 performance has improved in 2b3f6df.


text:
PM-1643 Added a note to explain how to show metrics of PG replica

What changed, and why it matters

I changed a little bit of the wording to try to improve it. Hope it is okay but we can always revert it :)

authors: AlmaMxx laysauchoa

repo: aiven/devportal


text:
Migrated Apache Kafka Upgrades procedure

What changed, and why it matters
Migrated https://help.aiven.io/en/articles/5678687-what-happens-during-a-kafka-cluster-upgrade
Fixes #1173

Would like to receive feedback both on the article but also on the usage of mermaid


text:
Why is it asking TOGETHER_API_KEY without together?

Hi All,
I just did a fresh install and wanted to test against my local model. The test ran on but ended up with this error on the moonshot UI.

I have nothing to do with togetherai on this project, is there a specific dependency / requirement for running benchmarks?

Just to let you know , I resolved this by setting the key in my environment but unsure why is it depending on TogetherAI key and should it be specified in the documentation?

The same just happened to me using the cli. The error is the same. It happened to me after the evaluation finished, after 33 hours of execution. I think it should not be a requirement or there should be an alternative.

Hi @parolkar. Thank you for raising this issue.
Can I know which benchmark test you were running? You can see the requirements of our benchmark tests and red teaming modules here: https://aiverify-foundation.github.io/moonshot/faq/ under 'My tests are all completed with errors! I can't view any report!'.  If you do not have a together API token, you can follow the steps to replace the required endpoint with your desired endpoint.
We understand that this is a problem as the requirements for running a test are not shown to users. This is something we will be working on in the next few weeks.

@fcanogab. Thank you for your feedback.
I am sorry that happened. We are working on flashing the requirements to users prior to running tests so that this will not happen again. In the meanwhile, you can check out  https://aiverify-foundation.github.io/moonshot/faq/ under 'My tests are all completed with errors! I can't view any report!' for the list of requirements.

Hi Kelvin, I was using MLCommons, yes I think your link here explains the cause. Thanks!

On 6 Aug 2024, at 9:52 AM, Kelvin Kok @.***> wrote:
Hi @parolkar https://github.com/parolkar. Thank you for raising this issue.
Can I know which benchmark test you were running? You can see the requirements of our benchmark tests and red teaming modules here: https://aiverify-foundation.github.io/moonshot/faq/ under 'My tests are all completed with errors! I can't view any report!'. If you do not have a together API token, you can follow the steps to replace the required endpoint with your desired endpoint.
We understand that this is a problem as the requirements for running a test are not shown to users. This is something we will be working on in the next few weeks.
—
Reply to this email directly, view it on GitHub https://github.com/aiverify-foundation/moonshot/issues/287#issuecomment-2270211434, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABGQWOMMJWUNK7DKYCBOLZQAT4VAVCNFSM6AAAAABL4LLJVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQGIYTCNBTGQ.
You are receiving this because you were mentioned.

authors: fcanogab imda-kelvinkok parolkar

repo: aiverify-foundation/moonshot


text:
Twitter (X) hover effect corrected

📥 Pull Request
Description
The Twitter (X) logo now successfully changes to purple when hovered, consistently applying the intended color effect. Hover behavior is confirmed to be smooth, with no style conflicts detected.
Fixes #1534
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Kindly review and merge it @ajay-dhangar .

repo: ajay-dhangar/algo


text:
Adding Hashtables

📥 Pull Request
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes https://github.com/ajay-dhangar/algo/issues/127
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

can you please check again, have updated the code


text:
Add NPM package support

Provide ability to install from an npm package rather than git.
Should also include the ability to use npm version tags too.

Complete.

repo: ajfisher/nodebots-interchange


text:
Unable to play HLS streams

I am trying to playback an HLS stream using the emulator but I get the following error in the console:
[cast.player.api.Host] error: cast.player.api.ErrorCode.PLAYBACK/110 (Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp2t; codecs="avc1.4D401F"') is unsupported.)

anybody familiar with this issue?
thanks

Seems to be an issue with Chrome not having all the codecs needed.
Using Chromium solves the issue: https://chromium.woolyss.com/

repo: ajhsu/chromecast-device-emulator


text:
Created analysis.md & Added System Desc

I bolded and italicized the crap out of this, I'm wondering if it's too much and I should have only done it once per Noun?
Either way, we could probably do the repeats like I have (so we don't spend time deleting them all if we don't have to) and submit it early for verification from Alyssa

Looks great to me, merging now.


text:
Add New Language Arabic 0.1

Add New Language Arabic 0.1

Hi, thanks for your contribution.
Unfortunately you have to do translations in Crowdin.
Doing it this way may break that system so we can't do that.
There still is a need for some code though, but only the part you did in the first commit almost.
You can base yourself on this PR.

I did not find the Arabic language in Crowdin. ِ
And At first glance, I cannot add a new language there

oh, got it by see the PR you add it thanks

repo: ajnart/homarr


text:
How to generate GitHub Pages documentation?

I've reserved snapshot/docs for drafting GitHub Pages documentation.  I need to be able to show the impact of changing structure fields.
One possibility: GitHub Markdown supports the diff language.
See #6 for TSDoc.

This may largely end up being a brute-force effort, using ts-morph to generate a bunch of source files, and then diff.

See #33 as a prerequisite.

repo: ajvincent/ts-morph-structures


text:
設定画面を一旦作成

ヘッダーのバーに歯車ボタン追加
http://localhost:3000/settingに遷移させる
ロード時にランダム配置

ダイアログの画像がはみ出る。＆テンプレートではない。

@ak2ie
作成時のAPIがvueに合わせたらpostする方法が変わってしまった模様です。
すみませんが、少しみてみてもらえますか？

@nichesuch
画像のリスト取得部分でこちら↓のmethodでやってみてもらっていいですか？ローカル開発用に必要なenvはDMで送ります。
    async getImageList() {
      const storageRef = this.$fire.storage.ref()
      const res: any = await storageRef.listAll()
      return await Promise.all(res.items.map(async (itemRef: any) => {
        return await itemRef.getDownloadURL()
      }));
    },

@nichesuch
APIからマインスイーパを作成できなかった件を修正しました。
APIリクエスト時にデータのみが送られていましたが、panelsキーの中にデータを入れて送れば大丈夫でした。

authors: ak2ie kaizumaki nichesuch


text:
implement pytest framework tests

https://github.com/ckuhtz/hamframe/blob/5ecb38fcb4f6860b9fde2dc87d16640d929a16e6/.github/workflows/docker-images.yml#L69-L72

Initial framework committed in 6c86e57
Coverage lacking.


text:
Question regarding conversion

Hi,
This might be a silly question, but how would I convert amount x in currency y to a different currency?
I expect it to be something like this:
$amountA = new Money(150, new Currency('USD'), true); // $150.00 US dollars
$amountB = new Money($amountA, new Currency('GBP'), true); // £111.12 British pounds

Or
$amountA = new Money(150, new Currency('USD'), true); // $150.00 US dollars
$amountB = $amountA->convert(new Currency('GBP')); // £111.12 British pounds

Thanks!

They would both work.

authors: denisdulici denniskoster

repo: akaunting/money


text:
how to use modules imported?

how to use modules imported?

I updated the readme to attempt to clarify this. Modstack's .get() method returns the module object (or the requested object from the module, if you use target=NAME). So if you have the following foobar.py:
def say_something(text):
    print(text)

You can do the following with modlib:
my_module = modlib.Modstack.get('foobar')
my_module.say_something('hello world')

If you use the "target" option, you can specifically pull the function or class you want:
my_method = modlib.Modstack(target='say_something').get('foobar')
method('hello world')

authors: akerl rfyiamcool

repo: akerl/modlib


text:
Refactor: remove unused params

This PR removes unnecessary params in deep-map.ts

Coverage remained the same at 100.0% when pulling 6fa5250fda7e35fa9808346c8bd517e3fe4a8c90 on fix/refactor into 0b1780f143af9c967afd18a8ccff288466a02beb on master.

authors: akim-mcmath coveralls

repo: akim-mcmath/deep-map


text:
[BUG] Not able to use flutter log commands

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Cannot use flutter run key commands like r or even q because it says to me that it is not 'modifiable'.
Expected Behavior
Should be able to run those commands inside flutter log.
Steps To Reproduce

Open flutter project with neovim
Run :FlutterRun
Try to run commands on flutter log tab

Environment
- OS: Arch Linux
- Flutter version: 3.7.12
- Is flutter in $PATH: yes
- neovim version: 0.9.0

Anything else?
I was even wondering if I could send this output to ToggleTerm as a possible solution. Otherwise, is there any other options than setting keymaps myself because it seems very unnecessary.

That seems reasonable! Totally understood and if I have some time definately will try a PR.


text:
centerPadding is not getting applied for centerMode slick slider.

Hi,
We are using slick react component for displaying slides in the center mode. And we needed to apply center padding for the slides. I am assuming this is not supported by the react-slick component yet.
It would be great if this could be supported anytime sooner.
@akiran Could this feature be added at the earliest please?
Thanks a lot!

Yes this is not working. If I am adding margin manually to slick-slide container height is increasing abruptly. Any work arounds?

+1

+1

+1

+1

+1 and not a fan of abandonware

+1 Any plans to support this in the near future?

Yes, I welcome PR's

hi guys, my PR is just been merged.
centerMode with centerPadding should be working now with the latest version v0.12.3.

Seems to work but I had to use a negative pixel count.

authors: ajgilzean akiran alenb ankur0890 joshuarh lukedar nutank prrraveen renddiyeh selfagency whitebeatle

repo: akiran/react-slick


text:
[FEATURE/QUESTION] HMR for content scripts

Summary
From the docs: https://vite-plugin-web-extension.aklinker1.io/guide/development.html#development-mode

However, please note that content scripts do not support HMR. They are built using Watch Mode, see below. Thus, when you modify and save a file associated with a content script, it will trigger a full reload of the extension once the file has finished building.

If I understand this correctly, this plugin does not support HMR for client scripts in any mode (dev or watch).
This is also what I have observed based on experimentation.
Is your feature request related to a bug/issue?
I was playing around with another template: https://github.com/elwin013/vitaly-extension and noticed that HMR works fine.
https://github.com/user-attachments/assets/75aaaa07-3a91-47dd-bd91-2425b0d31968
As I am not too familiar with the internals of HMR and what Vite is doing, I was wondering if there is some incongruency with this plugin (vite-plugin-web-extension) that prevents it from working with HMR when it seems to be fairly straight forward (I did not notice anything special about the vitaly project.
Forgive my lack of understanding on this topic; just curious why HMR can't work for client scripts.
Alternatives
If I understand correctly, the code for HTML HMR is here: https://github.com/aklinker1/vite-plugin-web-extension/blob/main/packages/vite-plugin-web-extension/src/plugins/hmr-rewrite-plugin.ts#L87-L125
    async transform(code, id) {
      // Only transform HTML inputs
      if (!id.endsWith(".html") || !inputIds.includes(id)) return;

      const baseUrl = "http://localhost:5173";

      // Load scripts from dev server, this adds the /@vite/client script to the page
      const serverCode = await server.transformIndexHtml(id, code);

      const { document } = parseHTML(serverCode);
      const pointToDevServer = (querySelector: string, attr: string): void => {
        document.querySelectorAll(querySelector).forEach((element) => {
          const src = element.getAttribute(attr);
          if (!src) return;

          const before = element.outerHTML;

          if (path.isAbsolute(src)) {
            element.setAttribute(attr, baseUrl + src);
          } else if (src.startsWith(".")) {
            const abs = path.resolve(path.dirname(id), src);
            const pathname = path.relative(paths.rootDir, abs);
            element.setAttribute(attr, `${baseUrl}/${pathname}`);
          }

          const after = element.outerHTML;
          if (before !== after) {
            logger.verbose(
              "Transformed for dev mode: " + inspect({ before, after })
            );
          }
        });
      };

      pointToDevServer("script[type=module]", "src");
      pointToDevServer("link[rel=stylesheet]", "href");

      // Return new HTML
      return document.toString();
    }

Namely, pointToDevServer here is manually re-writing the script.src and link.href to point to a vite endpoint.  Is there a workaround to achieve HMR for Vue/React without doing this?
Additional Context

Any clarity on limitations with HMR?
NOTE: the test extension is loaded as unpacked from /dist manually
Also reviewed this prior issue: #197

Quick overview of HMR and vite:
ESM is required for HMR to work. So first, a content script needs to be ran in an ESM environment before any form of HMR can be implemented. Vitality uses CRXJS to power it. CRXJS "adds" content script ESM support by using dynamic imports like this:
// content-scripts/main-loader.js
await import("./main.js");

Then the main.js is loaded as ESM, and it can import modules from vite's dev server. Vite then does a lot of things internally to add HMR to the ESM files you import from the dev server.
That's a short version of how CRXJS adds HMR to content scripts.

However, there are two main downsides to this approach that I think make not useful:

Since dynamic imports are asynchronous, content scripts don't respect run_at.
If you need to set run_at: "document_start", your script will be loaded asynchronously and will be executed... at some point. But not when document_start is supposed to run

Shadow root styles during development
Shadow roots are a very common way of isolating your content script UI's styles from the page's styles. The way vite manages CSS during development, you can't control where the <style> blocks are added. They always show up in the document <head>. If you're using shadow roots, that mean all your styles are ignored because you can't put them in the shadow root.

So the combination of these two things means the usefulness of ESM content scripts during development fall apart quickly, and they don't work during development.

vite-plugin-web-extension doesn't provide support for ESM content scripts, and I don't plan on adding support, so I'd recommend using CRXJS instead of none of the issues I mentioned above effect you, or will effect future features.

Appreciate the insight here and detailed explanation going through your decision making process and underlying code infrastructure; thanks for the effort!