text:
Investigate how improve IAM binding expire error alert

Follow up of https://github.com/abcxyz/access-on-demand/pull/42#discussion_r1231615773
Currently AOD will stop when condition expression format error occurs (in order to remove expired IAM bindings) during IAM policy update.  An improvement could be to continue IAM policy update and alert the error through other means.

Because we run this code in GH workflow, alert without failing the workflow seems challenging. A different idea but will require a little additional work.
Implement a command to clean up expired AOD bindings and run that as a separate step in the workflow. Then we can output a warning to the AOD PR if cleanup fails. This would make the problem more visible.

Because we run this code in GH workflow, alert without failing the workflow seems challenging. A different idea but will require a little additional work.
Implement a command to clean up expired AOD bindings and run that as a separate step in the workflow. Then we can output a warning to the AOD PR if cleanup fails. This would make the problem more visible.

Good idea! We can run this step after iam handle step, so that it won't block iam handle.

Since now we will implement a global cleanup in guardian that cleanup all the iam policies in an org, we will ignore the errors here, all expired IAM bindings and errors will be handled in guardian.

repo: abcxyz/access-on-demand


text:
用builder模式构造Example

Motivation:
当前，Example对象的构建方式容易引发错误的使用，如#154；
以及，Example需要分开设置and或or条件语句，不够便捷：
Example example = new Example(Country.class);
example.createCriteria().andGreaterThan("id", 100).andLessThan("id", 151);
example.or().andLessThan("id", 41);

Modification:
使用builder模式来构造Example，在Example对象中添加内部静态对象Builder；
用多个where()/andWhere()/orWhere()的链式调用来避免example分开设置and/or；
用Sqls构造组合逻辑查询语句，并作为where()的参数；
添加单元测试；
Result:

before
构造Example对象

   Example example = new Example(Country.class);
   example.createCriteria().andGreaterThan("id", 100).andLessThan("id",151);
   example.or().andLessThan("id", 41);

after
用builder构造Example对象
Example example = Example.builder(Country.class)
             .where(Sqls.custom().andGreaterThan("id", 100).andLessThan("id", 151))
             .orWhere(Sqls.custom().andLessThan("id", 41))
             .build();

一个更完整的例子

Example example = Example.builder(Country.class)
                    .select("countryname")
                    .from("country")
                    .where(Sqls.custom()
                        .andEqualTo("countryname", "China")
                        .andEqualTo("id", 35)
                    )
                    .orWhere(Sqls.custom()
                        .andBetween("countryname", 'C', 'H')
                        .andNotLike("countryname", "Co%")
                    )
                    .andWhere(Sqls.custom()
                        .andLessThan("id", "100")
                        .orGreaterThan("id", "55")
                    )
                    .orWhere(Sqls.custom()
                        .andEqualTo("countryname", "Cook Is.")
                    )
                    .orderByAsc("id", "countryname")
                    .orderByDesc("countrycode")
                    .forUpdate()
                    .build();

@abel533 这个pr我没有对原先的Example的构造方式做修改。原先的Example的构建方式依旧可以用。
但可以从builder构建Example的代码中看到，如果用builder构建，则很多之前example的工作，在设计模式上，应该交给builder做了，所以很多Example的函数可以不再用到。
以及，Example的属性应该添加final修饰或Example的构造函数不对外公开等。

内容比较多，我找时间好好看看。

@abel533 看了吗

@Ngone51 周末出了趟远门，还没来得及看。
你有兴趣加入 Mapper 的开发者吗？

@abel533 当然有兴趣啦。希望能够学到更多。

已经合并进来了，下周一前准备发布个新的版本。

@abel533 嗯嗯

@abel533 你好, 请问Criteria内可以构造or连接的Criterion了吗?
示例
select * from table where a = ? and ( b < ? or b > ? )

@chinleo 可以。

source: gharchive/pull-request

license: mit

license_type: permissive

license_source: bigquery


text:
#TK103 Agregar nuevos  modelos e interfaces a diagrama de clases

Hasta ahora se agregaron varias interfaces y clases que no estaban en el diagrama de clases original, agregarlas.

@rpgrca Agregué unos métodos que no estaban contemplados, más lo que hablamos la otra vez de la img para el curso... Una duda en el modelo tenemos una propiedad privada de isFavourite (escrita como isFavorite), no sabía si agregarla como atributo al diagrama de clases, ya que también la tenemos en inscripción, debe ser esto ante la duda si se puede calificar el curso como favorito una vez inscripto o no, o si solo se puede calificar una vez el usuario a clickeado en "inscribirse".
Por otro lado, creo saber como se representan las interfaces en el diagrama, pero no se como indicar cuales clases las usan o que modelos faltan agregar. De las nueve tablas que tenemos hay 8 modelos, ya que categorización no tiene su propio modelo (aún?). La clase database es quien usa la interface de IDatabase, y luego los demás IWrappers son utilizados entre ellos o apuntan al mismo fin de esta clase. Espero respuesta y voy a seguir viendo y analizando el vid de refactoreo a la BD para pasar a los de pruebas unitarias e ir cumpliendo mis otras tasks.

@rpgrca Agregué unos métodos que no estaban contemplados, más lo que hablamos la otra vez de la img para el curso... Una duda en el modelo tenemos una propiedad privada de isFavourite (escrita como isFavorite), no sabía si agregarla como atributo al diagrama de clases, ya que también la tenemos en inscripción, debe ser esto ante la duda si se puede calificar el curso como favorito una vez inscripto o no, o si solo se puede calificar una vez el usuario a clickeado en "inscribirse".

Ah, me hubieses pedido el link y te lo shareaba para que no tengas que hacerlo todo de cero, jajajaja El isFavorite en Curso está mal, va en inscripción (porque el estudiante define si le gusta o no y es único para cada estudiante, y solamente los estudiantes inscriptos en el curso pueden opinar, en Curso sería favorito para todos incluso para los que no están inscriptos).

Por otro lado, creo saber como se representan las interfaces en el diagrama, pero no se como indicar cuales clases las usan o que modelos faltan agregar. De las nueve tablas que tenemos hay 8 modelos, ya que categorización no tiene su propio modelo (aún?). La clase database es quien usa la interface de IDatabase, y luego los demás IWrappers son utilizados entre ellos o apuntan al mismo fin de esta clase. Espero respuesta y voy a seguir viendo y analizando el vid de refactoreo a la BD para pasar a los de pruebas unitarias e ir cumpliendo mis otras tasks.

En los diagramas de clases las clases abstractas y creo que las interfaces se marcan con el nombre de la clase en itálica. Nosotros la única interfaz que usamos en el modelo es Serializable que es de sistema (tal vez la cambiemos a Parcelable pero no estoy seguro aún) y creo que esa no se tiene que marcar (porque si no tendríamos que marcar la herencia a Object que tienen todos los modelos por defecto). Habría que agregar lo de IDatabase, ICursorWrapper, ISQLiteDatabaseWrapper y las clases que las implementan, sí, también LogicServices y vincularlas con las flechas de composición. Sin embargo no me gusta mucho porque IDatabase va a quedar como un rectángulo enorme con 40 métodos. Posiblemente separemos la de Database en varias clases más chicas y que por composición use a todas pero como no están terminados todos los modelos ni los métodos todavía no estoy seguro.

jajajaja nooo esta bien así! mejor para practicar el noble drawio jaja (ahí subí el file también). Perfecto, corrijo entonces los favourites y lo subo en un rato. Por último aguanto un toque hasta que separemos IDatabase y veamos nuevos métodos.

source: gharchive/issue

authors: facumd rpgrca

repo: abelardog/bootcampar

license: MIT

license_source: github-api


text:
[Question]: I edit individual frames, but the original unearthly video still ends up on YouTube. Why?

Issue guidelines

[X] I've read the Issue Guidelines and wholeheartedly agree.

Issue Checklist

[X] I have searched open or closed issues for my problem and found nothing related or helpful.
[X] I have read the Documentation and found nothing related to my problem.
[X] I have gone through the Bonus Examples and FAQs and found nothing related or helpful.

Describe your Question
Hi, I would like to pad each frame of the video with an image (superimpose an image on each frame), I really need this to vizualization the audio (create smooth animation)
I started simple, but immediately ran into a problem :(
I replace each frame with a different image (another frame). I see that everything is fine through cv2.imshow(). But my YouTube video still remains unchanged, as if I did not change the frames at all. Why the changed frames do not reach YouTube?
Terminal log output(Optional)
No response
Python Code(Optional)
import cv2
from vidgear.gears import CamGear
from vidgear.gears import WriteGear

VIDEO_SOURCE = "./source/outsmall.mp4" # mp4 video, codec="libx264", audio_codec="aac", 60fps 1920x1080
IMAGE_SOURCE = './source/images/my_image.png' # png 1920x1080

output_params = {
    "-i": VIDEO_SOURCE,
    "-acodec": "aac",
    "-ar": 44100,
    "-b:a": "128k",
    "-vcodec": "libx264",
    "-pix_fmt": "yuv420p",
    "-f": "flv",
    "-preset": "slow",
    "-r": 60,
    "-g": 60 * 4
}

# [WARNING]: Change your YouTube-Live Stream Key here:
YOUTUBE_STREAM_KEY = ""

writer = WriteGear(
    output="rtmp://a.rtmp.youtube.com/live2/{}".format(YOUTUBE_STREAM_KEY),
    logging=True,
    **output_params
)

stream = CamGear(source=VIDEO_SOURCE).start()
while True:
    fframe = stream.read()
    another_frame = cv2.imread(IMAGE_SOURCE, cv2.IMREAD_UNCHANGED)
    another_frame = cv2.resize(another_frame, (1920, 1080))

    if fframe is None:
        stream.stop()
        stream = CamGear(source=VIDEO_SOURCE).start()
        continue

    writer.write(another_frame)

VidGear Version
last
Python version
3.11.2
Operating System version
Windows 10
Any other Relevant Information?
No response

@rankovaZoria This makes no sense. WriteGear class doesn't know where the frames are coming from. It is in your code which is somehow feeding wrong frames to the write(). Kindly check your code again, if doubt put cv2.imshow() just before write() to see if correct frames are fed in.

@abhiTronix
I don't know how it happens, changed frames get into my YouTube-writer and it can be seen through cv2.imshow, but original frames still get to YouTube.
I even recorded a video from the screen for you if you do not believe me or think that I made a mistake somewhere:
https://youtu.be/86Cn6Tlu2tU
actual code:
import cv2
from vidgear.gears import CamGear
from vidgear.gears import WriteGear
VIDEO_SOURCE = "./source/outsmall.mp4"  # mp4 video, codec="libx264", audio_codec="aac", 60fps 1280x720
IMAGE_SOURCE = './source/my_image.jpg'  # jpg 1280x720
output_params = {
"-i": VIDEO_SOURCE,
"-acodec": "aac",
"-ar": 44100,
"-b:a": "128k",
"-vcodec": "libx264",
"-pix_fmt": "yuv420p",
"-f": "flv",
"-preset": "slow",
"-r": 60,
"-g": 60 * 2
}
# [WARNING]: Change your YouTube-Live Stream Key here:
YOUTUBE_STREAM_KEY = "5pr3-hqe6-baph-6h5b-7xc5"

writer = WriteGear(
    output="rtmp://a.rtmp.youtube.com/live2/{}".format(YOUTUBE_STREAM_KEY),
    logging=True,
    **output_params
)

stream = CamGear(source=VIDEO_SOURCE).start()

another_frame = cv2.imread(IMAGE_SOURCE)
another_frame = cv2.resize(another_frame, (1280, 720))

while True:
    fframe = stream.read() # <<< ORIGINAL FRAME

    if fframe is None:
        stream.stop()
        stream = CamGear(source=VIDEO_SOURCE).start()
        continue

    cv2.imshow('another_frame', another_frame)
    key = cv2.waitKey(1) & 0xFF
    if key == ord("q"):
        break
    writer.write(another_frame) # <<< MY ANOTHER FRAME

this example with source video and image:
https://drive.google.com/file/d/1fWMNAu4DoTNQMyFRKa-FZ1Aryz3ht7FO/view?usp=sharing

@rankovaZoria Do not put original key here.

@rankovaZoria Can you try without audio source? like just image as input and no audio.

@abhiTronix it's old key.

Try the solution once.

@rankovaZoria Remove video source "-i": VIDEO_SOURCE, also.

@rankovaZoria Remove video source "-i": VIDEO_SOURCE, also.

But how? Without the specified video source, the stream on YouTube does not start and there will be an error:
14:44:59 ::   WriteGear   ::  ERROR   :: BrokenPipeError caught, Wrong values passed to FFmpeg Pipe. Kindly Refer Docs!
output_params = {
    "-vcodec": "libx264",
    "-pix_fmt": "yuv420p",
    "-f": "flv",
    "-preset": "slow",
    "-r": 60,
    "-g": 60 * 2
}

I want to change every frame of the video before it goes to youtube. And I need music(

@rankovaZoria I don't think you know how FFmpeg works. But try first it through simple example: https://abhitronix.github.io/vidgear/v0.3.0-stable/gears/writegear/compression/usage/#bare-minimum-usage and see if passing your frames work, then try adding audio https://abhitronix.github.io/vidgear/v0.3.0-stable/help/writegear_ex/#using-writegears-compression-mode-to-add-external-audio-file-input-to-video-frames and then finally youtube video.

@rankovaZoria I don't think you know how FFmpeg works. But try first it through simple example: https://abhitronix.github.io/vidgear/v0.3.0-stable/gears/writegear/compression/usage/#bare-minimum-usage and see if passing your frames work, then try adding audio https://abhitronix.github.io/vidgear/v0.3.0-stable/help/writegear_ex/#using-writegears-compression-mode-to-add-external-audio-file-input-to-video-frames and then finally youtube video.

Sorry, perhaps you did not fully understand me? I already gave you a code example, it is almost completely identical to your examples. I even recorded a video for you. It is perfectly visible there that the frames are changing, this can be seen through cv2.imshow('another_frame', another_frame).
But the original video still ends up on YouTube. (I'm specifically interested only in streaming on YouTube)
I roughly understand how FFMPEG works, and from the description of your repository, I expected that your library would allow me to edit individual frames of a video, but it does not work, try it yourself. If you could provide me with a minimal code example where you edit a frame of a video before uploading it to YouTube, then I would be very grateful.
Also your comment in the example: # {do something with the frame here}
Why is it written there if the frames do not change?
What's the point of this loop (while True) at all? If it does not allow me to work with frames and change them before sending them to YouTube?

And why did you remove the instructions for adding external audio? :)

😂 It's not removed but moved to new address, due to new release. Anyways I'll not help unless you're willing to accept help gracefully.

I think you wouldn't have helped me anyway, considering you didn't respond to my last question where I explained everything and even provided a video showing that when streaming on YouTube, individual frames are not edited.

😂 It's not removed but moved to new address, due to new release. Anyways I'll not help unless you're willing to accept help gracefully.

I would like to apologize for my previous messages.
Is there currently an up-to-date minimal code that demonstrates the possibility of streaming modified video to YouTube?
I have an original video, and I want to add a random number to each frame of the video and see this on my YouTube stream. Is it possible to do this with the given library? I remind you that the issue is specifically with YouTube, as everything works fine when recording to a file.

authors: abhiTronix nordost8 rankovaZoria

repo: abhiTronix/vidgear


text:
NameError: name 'ssl' is not defined

NameError                                 Traceback (most recent call last)
 in <cell line: 22>()
22 for url in url_list:
23   # Ignore SSL certificate errors
---> 24   ctx = ssl.create_default_context()
25   ctx.check_hostname = False
26   ctx.verify_mode = ssl.CERT_NONE
NameError: name 'ssl' is not defined
when running the script this error is coming. Can you please help?

I have installed all the dependencies and run again. Now i am getting a different error.

PermissionError                           Traceback (most recent call last)
Cell In[7], line 31
29       continue
30 #print the data
---> 31 read_data = pd.read_csv("[C:/Users/lenovo/Desktop/WebScrapper-for-housing.com-master/my_csv](file:///C:/Users/lenovo/Desktop/WebScrapper-for-housing.com-master/my_csv)")
32 read_data.head()
File [c:\Python311\Lib\site-packages\pandas\io\parsers\readers.py:912](file:///C:/Python311/Lib/site-packages/pandas/io/parsers/readers.py:912), in read_csv(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, date_format, dayfirst, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, encoding_errors, dialect, on_bad_lines, delim_whitespace, low_memory, memory_map, float_precision, storage_options, dtype_backend)
899 kwds_defaults = _refine_defaults_read(
900     dialect,
901     delimiter,
(...)
908     dtype_backend=dtype_backend,
909 )
910 kwds.update(kwds_defaults)
--> 912 return _read(filepath_or_buffer, kwds)
File [c:\Python311\Lib\site-packages\pandas\io\parsers\readers.py:577](file:///C:/Python311/Lib/site-packages/pandas/io/parsers/readers.py:577), in _read(filepath_or_buffer, kwds)
574 _validate_names(kwds.get("names", None))
576 # Create the parser.
--> 577 parser = TextFileReader(filepath_or_buffer, **kwds)
579 if chunksize or iterator:
580     return parser
...
866     else:
867         # Binary mode
868         handle = open(handle, ioargs.mode)
PermissionError: [Errno 13] Permission denied: '[C:/Users/lenovo/Desktop/WebScrapper-for-housing.com-master/my_csv](file:///C:/Users/lenovo/Desktop/WebScrapper-for-housing.com-master/my_csv)'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...


text:
Set custom Environment Variable names for secrets

Coming from Vault as a SecretsManager engine, I miss the Github Action feature that Vault implements as below:
<path> <key-irrelevant-in-AWS> | <ENV-VAR-name>

https://github.com/hashicorp/vault-action#key-syntax
This way, the action does not try to create a POSIX compatible EnvVar name, but takes what the user provides for the specific secret, and loads the value directly in ENV-VAR-name.
I would suggest a similar syntax where:

if no | is provided - the current behavior still happens (backward compatible)
if there is a | - the described behavior happens.

Example
- name: Read secrets from AWS Secrets Manager into environment variables
  uses: abhilash1in/aws-secrets-manager-action@v2.1.0
  with:
    secrets: |
      my_secret_1 | A_SECRET
      dev/secrets/* | B_SECRETS

Does this work with the parse-json feature? That would be very useful to me.

Added such support in this PR: #44 (comment)
Cheers!

That's great -- thanks!

authors: jacobweberbowery operatorequals


text:
Yotube Toxic Comments Classification Model

1.) Enhancing User Experience:
In today's digital world, online communication is widespread, and public platforms like social media, forums, and comment sections allow users to freely express their opinions. However, this often leads to an influx of inappropriate, offensive, or harmful comments
2.) Real-time Moderation:
Manual moderation of comments is time-consuming and often insufficient to handle the massive volume of content generated daily. Machine learning algorithms can be employed to detect and classify toxic comments in real-time
3.) Preventing Online Harassment:
Many people, especially minorities, are often targets of online harassment, which can lead to emotional distress, withdrawal from online communities, or even legal action.

Assigned to you !!

I can work on this.

I assigned it both. please read the guidelines before do the PR. Please star the repo and follow me for my encouragement


text:
windows10,docker desktop 4.30.0,Execute commands “docker-compose up -d --build“

99.07 INFO: pip is looking at multiple versions of poetry to determine which version is compatible with other requirements. This could take a while.
99.07 ERROR: Ignored the following versions that require a different python version: 0.6.2 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0; 0.6.3 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0
99.07 ERROR: Could not find a version that satisfies the requirement keyring<24.0.0,>=23.9.0 (from poetry) (from versions: none)
99.07 ERROR: No matching distribution found for keyring<24.0.0,>=23.9.0
failed to solve: process "/bin/sh -c pip install "poetry==$POETRY_VERSION"" did not complete successfully: exit code: 1

Haven't seen this error before. Looks like an error with poetry installation in the Docker container.

Closing due to inactivity. Feel free to re-open.

repo: abi/screenshot-to-code


text:
🛑 Kab. Sambas is down

In 9154cd9, Kab. Sambas (https://sambas.go.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kab. Sambas is back up in 2e9180b after 5 minutes.

repo: abimanyu/Kalbarnetworks


text:
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with ulimit -n 8192.

How do I fix this ulimit issue, or can this warning be ignored?
Thank you!

What version of the docker image are you running?
What distro is your server running?
I'll be closing this since it is not an issue with both docker image and caddy, rather your server configuration. But we can continue the discussion here.

Latest abiosoft/caddy:php on AWS ECS.
docker run -d --rm \
    -v $(pwd)/Caddyfile:/etc/Caddyfile \
    -v $(pwd)/src:/srv \
    -v $HOME/.caddy:/root/.caddy \
    -v $HOME/php.ini:/etc/php7/php.ini \
    -p 80:80 -p 443:443 -p 2015:2015 \
    abiosoft/caddy:php

authors: abiosoft kaihendry

repo: abiosoft/caddy-docker


text:
Incorrectly formatted line in vocabulary file

Why is for example 0800 555 111 356 included in the generated vocab file? This example is at line 23163. Or is it just me who have this problem?
>>> with open('data/cnn-dailymail/vocab', 'r') as vocab_f:
...      for line in vocab_f:
...          pieces = line.split()
...          if len(pieces) != 2:
...             print(pieces)
...
['0800', '555', '111', '356']
['1800', '333', '000', '139']
['2', '1/2', '124']
['3', '1/2', '86']
['1', '1/2', '68']
['0800', '555111', '59']
['4', '1/2', '47']
['0844', '472', '4157', '41']
['5', '1/2', '39']
['7', '1/2', '25']
['6', '1/2', '24']
['9', '1/2', '21']
['020', '7629', '9161', '19']
['8', '1/2', '19']
['0300', '123', '8018', '19']
['0808', '800', '5000', '19']
['11', '1/2', '18']
['0844', '493', '0787', '14']
['1300', '659', '467', '13']
['16', '1/2', '12']
['13', '1/2', '12']
['1800', '273', '8255', '11']
['18', '1/2', '10']
['0300', '1234', '999', '10']
['0845', '790', '9090', '10']
['0845', '634', '1414', '9']
['14', '1/2', '8']
['0207', '938', '6364', '8']
['0207', '938', '6683', '8']
['310', '642', '2317', '7']
['at', 'uefa.com', '7']
['0207', '386', '0868', '7']
['0808', '800', '2222', '6']
['0800', '789', '321', '6']
['0800', '854', '440', '6']

That's intended, see normalizeSpace at https://nlp.stanford.edu/software/tokenizer.html. It will emit phone numbers (such as 0800 555 111) and numbers with fractions (such as 2 1/2) as a single token with non-breakable spaces in between. Not sure why at uefa.com is joined as well, but I get the same result as you.

repo: abisee/cnn-dailymail


text:
로고 및 이미지 변경

ceph dashboard UI의 로고, 이미지, 파비콘, 문구등을 ablestack으로 변경

@kt-cheon

repo: ablecloud-team/ablestack-storage


text:
abn/web-eid and Fedora 40

Fedora 40 has been released for some time now. Could you please rebuild so that there would be an rpm for F40 too?
Thank you in advance!

New build should have Fedora 40 builds.
https://copr.fedorainfracloud.org/coprs/abn/web-eid/build/7696667/

repo: abn/web-eid-rpm


text:
Não adicionando o ano na citação

Problema/Erro
Usando a versão 1.9.6 do abntex2cite, não está adicionando ano nas citações.
Descrição do problema

# Definição do pacote
\usepackage[alf,abnt-etal-cite=2,abnt-etal-list=0,abnt-etal-text=emph]{abntex2cite}

# Referência
@article{_aircraft_2004,
	title = {Aircraft electric power characteristics ({{MIL}-{STD}-704F})},
	url = {http://www.wbdg.org/ccb/FEDMIL/std704f.pdf},
	shorttitle = {{MIL}-{STD}-704F},
	journaltitle = {Department of Defense Interface Standard},
	date = {2004-03-12}
}

Caso uso a referência como
@article{_aircraft_2004,

	year = 2004
        month = 03
        day = 12
}

funciona. Como corrigir isso sem ter que alterar todas referências manualmente?

Verifique a documentação do abntex2cite.
Eu acredito que o ano deve ser fornecido com year={2004}, como no segundo exemplo. Ele não extrai o valor de ´date´ conforme sua primeira opção.

Sim, eu entendi testando isso.
Mas com certeza é uma coisa que poderia ser aperfeiçoada. Caso não encontre o campo date para extrair o ano, use year. Pois, a maioria das ferramentas de gerenciamento de referência e sites de publicações exportam para bibtex usando o campo date.

Recomendo consultar https://github.com/abntex/biblatex-abnt

authors: edusantana hildogjr


text:
absl::string_view bug

The latest code on the master
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

This test will fail
TEST(HessianReaderTest, testAbslView) {
  std::string expect_string(257, 't');
  std::string prefix{0x31, 0x01};
  absl::string_view data(prefix + expect_string);
  EXPECT_EQ(0x31, static_cast<int>(data[0]));
}

Change the following is right
 absl::string_view data(prefix.append(expect_string));

I don't think so. prefix + expect_string returns a temporary that doesn't live beyond that line, so on the following line data[0] references data that no longer exists.

authors: derekmauro zyfjeff

repo: abseil/abseil-cpp


text:
Incorrect depreciation information

Error message is as follows:
'MonoSoundManager.RegisterBiquadResonantFilter(SoundFilterType, float, float, float)' is obsolete: 'Use StreamLoader.FreeStreamedSound instead'
Likely it means to point to FilterLoader instead.

Ah, yep, looks like a copy/paste typo.  Thanks for reporting!

authors: absoluteAquarian faragher

repo: absoluteAquarian/MonoSound


text:
implement accuknox log

the accuknox log is implemented.
usage:
$ accuknox log

run $ accuknox log --help for more.

LGTM

repo: accuknox/accuknox-cli


text:
Oudated Docker image

I was trying to test terrscan following the documentation, and I couldn't understand why the instructions seem so off with what I was getting. Finally, I realized that the Docker image runs version v0.2.3 and the docs are for the 1.0 (I assume). I've switched to using the binary and was able to follow the docs.
Please update the Docker image or add a warning to the docs :)

Hi @ralgozino,
Thanks for highlighting this issue. Seems to be a bug on our CI where our builds in Dockerhub are failing.

authors: cesar-rodriguez ralgozino

repo: accurics/terrascan


text:
Integration of GenericForeignKeys/GenericRelations into views

Our reworked entity classes contain GenericRelations to other classes – how do I make those show up in our views? Do I need to overwrite the existing default views for our app or should (can) the defaults in core be adapted to work with GenericForeignKey/GenericRelation?
For now, I simply added them to our APIS_ENTITIES settings like any regular field, which results in an error in the list view (and gets ignored in e.g. the detail view).
I know that previously, foreign keys used with TempEntityClass would show up in some views, but I don't know if that was only because they were written into those views or also because they were "proper" foreign keys.

for the detailview: override/extend the template and add the generic relation
for the listview: since v0.7.0 is is possible to override the table that is used for the listview, by adding a table class to yourapp.tables.<Entityname>Table, so if your app is called apis_ontology and your entity is called Person then the class apis_ontology.tables.PersonTable is used to override the default table

Please create an issue for the error you encountered

repo: acdh-oeaw/apis-core-rdf


text:
🛑 PMB is down

In f6fc56a, PMB (https://pmb.acdh.oeaw.ac.at/) was down:

HTTP code: 503
Response time: 1535 ms

Resolved: PMB is back up in a0372c0 after 7 minutes.

repo: acdh-oeaw/status


text:
v1.0.0

Everything in v.1.0.0 is done. 🙌
Opening this up as part of the pre-release process. All that's left is:

[ ] merge
[ ] tag
[ ] release notes
[ ] publish

Nice! I can take care of rebasing and merging.

With this PR we're also standardizing on invariant for runtime sanity checks and boilerplate reduction.

authors: timche yangmillstheory

repo: acdlite/redux-actions


text:
🛑 AceBlock Swagger UI is down

In ddea545, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in 4e73257.

repo: aceblockID/monitoring


text:
🛑 AceBlock Swagger UI is down

In 3c0a154, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in df83bf7.


text:
🛑 AceBlock Swagger UI is down

In b4eca04, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in b391b4c.


text:
🛑 AceBlock Swagger UI is down

In dcdb38e, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in 3d9a884.


text:
Links Helper - Tweet Streaming

Twitter'da tweet'lere mentionlandığı anda şu anda yayında olan ve insanlara duyurmaya çalışılan tüm uygulamaları içeriğiyle birlikte tweet atacak.
Tek bir görevi olacak; yayındaki tüm uygulamaları mentionlandığı kişiye duyurmak. Çok faydalı olabileceğini düşünüyorum. Ne dersiniz?
Uygulamaların en güncel versiyonlarını bu özellik ile bot insanlara duyurmuş olacaktır.

@keremh ekleyemedim seni linked-in, bana ulasabilir misin Discord Meltem#7350 ?

authors: keremh nevvieconsulting

repo: acikkaynak/afet-yardim-twitter-bot


text:
Making the website responsive

About
On a larger screen the website looks really neat but when seen on a smaller screen the text gets squeezed together and isn't readable . You can see this when you inspect the page.
Make the website responsive.
bounty 25

hi @bun137  assign me

hey, really sorry, but this issue is to be solved for an internal hacktoberfest event

Can i work on this issue?

yepp assigned

this pr is open for assignments

can i get is assigned ?

@maverickayush7 you can start working on, please open a pr before 30 mins of being assigned and lmk your progress

by opening a pr, I mean show some progress and not solve the complete issue!

can i work on this issue?

@harveen-10 you can start working on this issue!
I will unassign @maverickayush7 in few and assign you, eating rn
Please make sure to show some progress in 30 mins and lmk

@harveen-10 please open a draft PR to show your progress!

can i get assigned if this is still open?

do open a draft PR to show your progress!

issue resolved!

repo: acmpesuecc/kinto-svelte


text:
Run unit/integration tests in parallel, cache golang setup, to speed up CI

Total time saved: ~1 minute
Split up the makefile into make integration_tests and make unit_tests. Calling this with -j2 runs test dependencies in parallel. This should speed up the test job by the time of the shortest test, the unit tests.
Changed checkout depth from 0 to 1. 0 means to checkout all history for all branches and tags. 1 means to just checkout the latest commit and compress everything else. This seemed to speed up the checkout job by ~1 second.
Updated setup_go action from v3 to v4, which came out last week. This enables caching by default, however it seemed like caching was already preset. There seems to be some other optimizations in the update but nothing obvious.
Checklist

[x] The title of this PR would make a good line in Acorn's Release Note's Changelog
[x] The title of this PR ends with a link to the main issue being address in paranthesis, like: This is a title (#1216). Here's an example
[x] All relevant issues are referenced in the PR description. NOTE: don't use GitHub keyworkds that auto-close issues
[x] Commits follow contributing guidance
[x] Automated tests added to cover the changes. If tests couldn't be added, an explanation is provided in the Verification and Testing section
[x] Changes to user-facing functionality, API, CLI, and upgrade impacts are clearly called out in PR description

Can you give a better more descriptive commit message body to this? Refer to the guidelines referenced in the "Commits follow contributing guidance" checkbox

What's the actual speedup improvement here?
My understanding (could be wrong) is that go will test each package in parallel by default (up to the number of CPUs). This is really spread out across several go help pages though. The best easily found "evidence" is the conversations in the stack overflow: https://stackoverflow.com/questions/24375966/does-go-test-run-unit-tests-concurrently
I also compared the run of this PR vs one that doesn't have this change and they both about the same amount of time:

https://github.com/acorn-io/acorn/actions/runs/4376662332
https://github.com/acorn-io/acorn/actions/runs/4387143029

So, just wondering what we're gaining.

Can you give a better more descriptive commit message body to this? Refer to the guidelines referenced in the "Commits follow contributing guidance" checkbox

I realize I'm being picky here, but now your commit title is overly long. Title should not execeed 50 chars per https://github.com/acorn-io/acorn/blob/main/CONTRIBUTING.md#commits:

Limit the subject line to 50 characters

It causes weird wrapping issues in various git log viewers (including github)

What's the actual speedup improvement here?
My understanding (could be wrong) is that go will test each package in parallel by default (up to the number of CPUs). This is really spread out across several go help pages though. The best easily found "evidence" is the conversations in the stack overflow: https://stackoverflow.com/questions/24375966/does-go-test-run-unit-tests-concurrently
I also compared the run of this PR vs one that doesn't have this change and they both about the same amount of time:

https://github.com/acorn-io/acorn/actions/runs/4376662332
https://github.com/acorn-io/acorn/actions/runs/4387143029

So, just wondering what we're gaining.

was playing around with these flags locally and am not seeing much difference either changing num of cpus adding t.Parallel()

For whatever reason v4 of the setup-go isn't showing up 🤔

~For whatever reason v4 of the setup-go isn't showing up 🤔~ This was because of a Github outage.
https://github.com/actions/setup-go/releases/tag/v4.0.0

They added the release to their readme but didn't tag it at the time I looked into it. https://github.com/actions/setup-go/issues/353
Its out now and works!

My understanding (could be wrong) is that go will test each package in parallel by default (up to the number of CPUs)

I also see this written as the case, however, it seems like the integration tests would be failing if they were being ran in parallel, as they live in multiple packages. (One package for images, one for credentials, etc.)
Will need to play around with this a little bit more and figure out what is going on.

authors: cjellick jacobdonenfeld jsilverio22 tylerslaton

repo: acorn-io/acorn


text:
FC001 is re-enabled thus http://www.foodcritic.io/ is out-of-date

http://www.foodcritic.io/ still reflects FC001 as deprecated.
This rule has been deprecated. See the discussion against issue #86 for more detail.
While the Changelog and experience show it is back.
 - [FC001: Use strings in preference to symbols to access node attributes](http://foodcritic.io/#FC001)
+    rule re-instated
+    ([related issue](https://github.com/acrmp/foodcritic/issues/97)).
+    Thanks @sethvargo.

we nuked the old gh pages, and are working on the docs site in the docs site.

authors: lamont-granquist philoserf

repo: acrmp/foodcritic


text:
error 'manifest.filter is not a funcion' when using node-version with "lts/*"

Description:
I'm trying to install the latest LTS version using the syntax "lts/*" and getting the error manifest.filter is not a function. Using a different syntax, like 22.x works.
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "lts/*"
          check-latest: true

Action version:
actions/setup-node@v4
Platform:

[x] Ubuntu
[ ] macOS
[ ] Windows

Runner type:

[ ] Hosted
[x] Self-hosted

Tools version:
Default ones installed with ubuntu 20.04
Repro steps:
I just have an action like below, and it fails when I push to the wip branch:
name: Build

on:
  push:
    branches:
      - wip

jobs:
  build:
    environment: shared
    runs-on: [self-hosted]
    steps:
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "lts/*"
          check-latest: true

Expected behavior:
I expect it to install the latest LTS version
Actual behavior:
build fails with the message manifest.filter is not a function

Hello @giulianisanches 👋,
Thank you for your report. We'll investigate the issue and get back to you with the details!

After replicating the issue based on the provided workflow, it appears that everything is functioning correctly, and we were able to install the latest LTS version without encountering any issues. Here's a screenshot for your reference. To help us further investigate the issue, could you please provide a link to the build or public repository where we can reproduce the issue?

Hi @giulianisanches, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know.

Hi @giulianisanches, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know.

Hi @giulianisanches, Due to inactivity, I'm going to close this issue for now. Please feel free to reopen this issue or create a new one if necessary. Thank you.

repo: actions/setup-node


text:
Can I build images in this repo locally

This may be helpful for debugging purpose when i need to construct new images based on images in this repo.

Hello, @chenbohua3
You can build images loccaly - https://github.com/actions/virtual-environments/issues/931#issue-623549762

Hi @chenbohua3!
As @al-cheb mentioned a few solutions are described in the previous issue.
I'm going to close this one but please feel free to ask additional questions in the discussions https://github.com/actions/virtual-environments/discussions — it's more convenient to use them for such topics.
Thank you!

@al-cheb @miketimofeev thanks a lot!

authors: al-cheb chenbohua3 miketimofeev

repo: actions/virtual-environments


text:
ubuntu2004 fails to install git-email due to missing ppa:git-core apt sources

Description
If a workflow tries to install the git-email package, there is a failure because the ppa:git-core apt sources from which git was installed has been removed in the ubuntu2004 image:
- name: Install git-email
  run: sudo apt-get install -qy git-email

The following apt-get error occurs:
The following packages have unmet dependencies:
 git-email : Depends: git (< 1:2.25.1-.) but 1:2.32.0-1~ppa0~ubuntu20.04.1 is to be installed
             Recommends: libemail-valid-perl but it is not going to be installed

The ubuntu2004 scripts remove the ppa:git-core repository here:
https://github.com/actions/virtual-environments/blob/main/images/linux/scripts/installers/git.sh#L27
@dibir-magomedsaygitov This is a regression introduced by commit https://github.com/actions/virtual-environments/commit/d1de678b65e3c6f6adee1297afc90c18cd867198
Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019

Image version and build link
ubuntu2004 20210810.1
Is it regression?
Yes, introduced by https://github.com/actions/virtual-environments/commit/d1de678b65e3c6f6adee1297afc90c18cd867198
Expected behavior
The ppa:git-core ppa from which the git package was installed should be available so further git-related packages can be installed without dependency conflicts. Resolving the dependency conflict manually is time-consuming and not user-friendly. Furthermore, this is a regression because ppa:git-core used to be available in the image.
Actual behavior
The ppa:git-core ppa is removed when the image is built. Attempts to install git-related packages can fail with dependency conflicts because apt tries to install Ubuntu system git packages instead of the ppa:git-core packages.
Repro steps
Try this:
- name: Install git-email
  run: sudo apt-get install -qy git-email

Hi, @stefanha
We intentionally removed this repo in the https://github.com/actions/virtual-environments/pull/3095 PR. Please add manually the repo in runtime.
jobs:
  build:
    name: Build
    runs-on: ubuntu-20.04
    steps:
        - run: |
            GIT_REPO="ppa:git-core/ppa"
            sudo add-apt-repository $GIT_REPO -y
            sudo apt-get update
            sudo apt-get install -qy git-email

Hi, @stefanha
We intentionally removed this repo in the #3095 PR. Please add manually the repo in runtime.
jobs:
  build:
    name: Build
    runs-on: ubuntu-20.04
    steps:
        - run: |
            GIT_REPO="ppa:git-core/ppa"
            sudo add-apt-repository $GIT_REPO -y
            sudo apt-get update
            sudo apt-get install -qy git-email

I know how to work around this but removing the git apt sources isn't user-friendly.
Although the points in #2951 seem valid to me, they ignore that users will need to troubleshoot dependency problems due to this policy of removing apt sources that have installed packages. That troubleshooting is time-consuming and you'll get more bug reports like this one in the future from other users.
Please either use system git if you want to minimize apt sources or keep the ppa:git-core apt sources in the image if you really need that version of git.
A more long-term solution would be to see if apt sources can be configure or apt can be extended to support smart updates that avoid refreshing unnecessarily or failing due to network errors from non-essential apt sources.

Although the points in #2951 seem valid to me, they ignore that users will need to troubleshoot dependency problems due to this policy of removing apt sources that have installed packages. Troubleshooting is time-consuming and you'll get more bug reports like this one in the future from other users.
Please either use system git if you want to minimize apt sources or keep the ppa:git-core apt sources in the image if you really need that version of git.
A more long-term solution would be to see if apt sources can be configured or apt can be extended to support smart updates that avoid refreshing unnecessarily or failing due to network errors from non-essential apt sources.

We used to this approach and installed from official repo, but git version is outdated, that's why we got requests to update to the latest version - https://github.com/actions/virtual-environments/issues/3923#issuecomment-901743833. The best approach for our mind is to pre-installed the latest one and remove ppa repo.

Ideally the failed job output would contain a message saying you may need to manually enable repos that were used in the creation of this image. That would save time when people hit this type of issue in the future.
Also, this change broke existing GitHub Actions workflows. Maybe only introduce breaking changes when releasing new virtual environment so existing ones aren't affected?
Thanks for the discussion. I understand there's no perfect solution and I just wanted to share drawbacks I see with this policy.

Thank you. We will think about it.

authors: al-cheb stefanha


text:
Erlang tool installation not passing tests for Ubuntu Focal (20.04)

Description
I am getting the following error:
==> azure-arm: Provisioning with shell script: /home/vsts/work/1/s/images/linux/scripts/installers/erlang.sh
    azure-arm: Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
    azure-arm: Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
    azure-arm: Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease
    azure-arm: Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease
    azure-arm: Hit:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
    azure-arm: Ign:6 https://packages.erlang-solutions.com/ubuntu focal InRelease
    azure-arm: Get:7 https://packages.erlang-solutions.com/ubuntu focal Release [3132 B]
    azure-arm: Get:8 https://packages.erlang-solutions.com/ubuntu focal Release.gpg [833 B]
    azure-arm: Ign:8 https://packages.erlang-solutions.com/ubuntu focal Release.gpg
    azure-arm: Reading package lists...
==> azure-arm: W: GPG error: https://packages.erlang-solutions.com/ubuntu focal Release: The following signatures were invalid: BADSIG D208507CA14F4FCA Erlang Solutions Ltd. <packages@erlang-solutions.com>
==> azure-arm: E: The repository 'https://packages.erlang-solutions.com/ubuntu focal Release' is not signed.
    azure-arm: Reading package lists...
    azure-arm: Building dependency tree...
    azure-arm: Reading state information...
==> azure-arm: E: Unable to locate package esl-erlang
    azure-arm: Downloading 'https://github.com/erlang/rebar3/releases/latest/download/rebar3' to '/usr/local/bin/rebar3'...
    azure-arm: Download completed
    azure-arm: Pester v5.3.3
    azure-arm:
    azure-arm: Starting discovery in 1 files.
    azure-arm: Discovery found 100 tests in 577ms.
    azure-arm: Filter 'FullName' set to ('erlang').
    azure-arm: Filters selected 3 tests to run.
    azure-arm: Running tests.
    azure-arm:
    azure-arm: Running tests from '/imagegeneration/tests/Tools.Tests.ps1'
    azure-arm: Describing erlang
    azure-arm:   [-] erlang erl -version 235ms (203ms|33ms)
    azure-arm:    Command 'erl -version' has finished with exit code
    azure-arm:        /usr/bin/bash: erl: command not found
    azure-arm:    at "$ErlangCommand" | Should -ReturnZeroExitCode, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm:    at <ScriptBlock>, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm:   [-] erlang erlc -v 35ms (33ms|2ms)
    azure-arm:    Command 'erlc -v' has finished with exit code
    azure-arm:        /usr/bin/bash: erlc: command not found
    azure-arm:    at "$ErlangCommand" | Should -ReturnZeroExitCode, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm:    at <ScriptBlock>, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm:   [-] erlang rebar3 -v 13ms (12ms|1ms)
    azure-arm:    Command 'rebar3 -v' has finished with exit code
    azure-arm:        /usr/bin/env: ‘escript’: No such file or directory
    azure-arm:    at "$ErlangCommand" | Should -ReturnZeroExitCode, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm:    at <ScriptBlock>, /imagegeneration/tests/Tools.Tests.ps1:143
    azure-arm: Tests completed in 1.15s
    azure-arm: Tests Passed: 0, Failed: 3, Skipped: 0 NotRun: 97
    azure-arm:
    azure-arm: Containers            : {[-] /imagegeneration/tests/Tools.Tests.ps1}
    azure-arm: Result                : Failed
    azure-arm: FailedCount           : 3
    azure-arm: FailedBlocksCount     : 0
    azure-arm: FailedContainersCount : 0
    azure-arm: PassedCount           : 0
    azure-arm: SkippedCount          : 0
    azure-arm: NotRunCount           : 97
    azure-arm: TotalCount            : 100
    azure-arm: Duration              : 00:00:01.1523868
    azure-arm: Executed              : True
    azure-arm: ExecutedAt            : 07/04/2022 11:14:26
    azure-arm: Version               : 5.3.3
    azure-arm: PSVersion             : 7.2.5
    azure-arm: PSBoundParameters     : {[Configuration, PesterConfiguration]}
    azure-arm: Plugins               :
    azure-arm: PluginConfiguration   :
    azure-arm: PluginData            :
    azure-arm: Configuration         : PesterConfiguration
    azure-arm: DiscoveryDuration     : 00:00:00.5621498
    azure-arm: UserDuration          : 00:00:00.2570051
    azure-arm: FrameworkDuration     : 00:00:00.3332319
    azure-arm: Failed                : {[-] erlang erl -version, [-] erlang erlc -v, [-] erlan
    azure-arm:                         g rebar3 -v}
    azure-arm: FailedBlocks          : {}
    azure-arm: FailedContainers      : {}
    azure-arm: Passed                : {}
    azure-arm: Skipped               : {}
    azure-arm: NotRun                : {[ ] azcopy, [ ] azcopy10 link exists, [ ] Bicep, [ ] R
    azure-arm:                         ustup is installed…}
    azure-arm: Tests                 : {[ ] azcopy, [ ] azcopy10 link exists, [ ] Bicep, [ ] R
    azure-arm:                         ustup is installed…}
    azure-arm: CodeCoverage          :
    azure-arm:
==> azure-arm: Exception: Test run has failed

Platforms affected

[ ] Azure DevOps
[ ] GitHub Actions

Virtual environments affected

[ ] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20220626.1
Is it regression?
Not sure
Expected behavior
Erlang should be installed successfully with erl, erlc and escript CLI available.
Actual behavior
Failing to install following CLI: erl, erlc and escript
Repro steps
Run images/linux/scripts/installers/erlang.sh

Hi @gaui, thank you for reporting this error, we will take a look.

Hi, Can we exclude the Erlang tool while building the image? Do we have any ETA on this?

Hi @gaui, thank you for reporting this error, we will take a look.

I had the same problem today  :(

Hi, Can we exclude the Erlang tool while building the image? Do we have any ETA on this?

Hello, we have no ETA yet, we are awaiting a response from the repo owners first.

Hi, Can we exclude the Erlang tool while building the image? Do we have any ETA on this?

try remove it ("{{template_dir}}/scripts/installers/erlang.sh",) on ubuntu2004.json

Simply excluding erlang is not possible because it is also referenced from SoftwareReportGenerator:
==> azure-arm: Provisioning with shell script: /home/vsts/work/1/s/virtual-environments/images/linux/scripts/base/apt-mock-remove.sh
==> azure-arm: Provisioning with shell script: /tmp/packer-shell804581750
==> azure-arm: /imagegeneration/SoftwareReport/SoftwareReport.Generator.ps1 : The term 'erl' is not recognized as a name of a cmdlet, function, script file, or executable program.

which is due to
function Get-ErlangVersion {
    $erlangVersion = (erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), ''OTP_VERSION''])), io:fwrite(Version), halt().' -noshell)
    $shellVersion = (erl -eval 'erlang:display(erlang:system_info(version)), halt().' -noshell).Trim('"')
    return "Erlang $erlangVersion (Eshell $shellVersion)"
}

In general, it would be great to not have an explicit dependencies in the software report generator, but instead to exclude the specific software (erlang in this case) from the generated report if it not found.

@mikhailkoliada can you please post the link to where this has been reported to the repo owners, thanks

I am also facing error due to softwarereport generator error.
==> azure-arm: /imagegeneration/SoftwareReport/SoftwareReport.Generator.ps1 : The term 'erl' is not recognized as a name of a cmdlet, function, script file, or executable program.
==> azure-arm: Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
==> azure-arm: + CategoryInfo          : ObjectNotFound: (erl:String) [SoftwareReport.Generator.ps1], CommandNotFoundException
==> azure-arm: + FullyQualifiedErrorId : CommandNotFoundException,SoftwareReport.Generator.ps1
==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...

cc @garazdawi, could you please escalate?

Same problem here. Trying to recreate the same images that the Azure Pipelines are using, but the current agent with build label ubuntu20/20220626.1 are not able to be rebuilt again due to:
azure-arm: Err:7 https://packages.erlang-solutions.com/ubuntu focal/contrib amd64 esl-erlang amd64 1:25.0.2-1
azure-arm:   File has unexpected size (40579688 != 40585792). Mirror sync in progress? [IP: 65.9.86.96 443]
azure-arm:   Hashes of expected file:
azure-arm:    - SHA256:8645d44d27d641ba927f4899aabfd1e6317b56efb620495051b899de5d3ca57f
azure-arm:    - SHA1:77df6ed1e992c5714ca968e7637500ee1604e60f [weak]
azure-arm:    - MD5Sum:1c383df15d0fa762c9312daca01c5175 [weak]
azure-arm:    - Filesize:40585792 [weak]
azure-arm: Fetched 5548 kB in 0s (40.2 MB/s)

Above workaround solved the problem for us, many thanks.
Please consider the refactoring proposed above to remove the tight coupling between the set of tools installed, and the SoftwareReport generator. Allowing tools to be excluded easily by removing the installation script from the packer file would be beneficial not only in cases such as this one, but also more generally. E.g. if I would like to prepare a build agent based on this template, but remove all tools that I know are not used within my environment in order to reduce disk footprint, image buildtime and inventory security risks.

Thank you for the workaround @mikhailkoliada :pray:

The fix was reverted now as everything looks fine by default.

@mikhailkoliada
Facing the same issue today... Seems the issue is back again..
In the meantime, I will overwrite the original erlang.sh by your workaround #5867 in my pipeline.
Hope you will consider @jappenzesr suggestions https://github.com/actions/runner-images/issues/5859#issuecomment-1177461072

authors: ALTrijssenaar HoLengZai SPALLADI al-cheb gaui igorboskovic3 jappenzesr mayong43111 mikhailkoliada


text:
fix: support multiple imports in a file

If you try to use two imports, like this:
@import '../../../css/variables.css';
@import '../../../css/typography.module.css';

you will get:
SyntaxError: Property or signature expected. (6:3)
  4 |   readonly '/css/typography': '/css/typography';
  5 |   readonly 'module': 'module';
> 6 |   readonly 'css'': 'css'';
    |   ^
  7 |   readonly 'page': 'page';
  8 |   readonly 'head': 'head';
  9 |   readonly 'avatar': 'avatar';

Check on https://github.com/activeguild/vite-plugin-sass-dts/blob/2d568e74568db7a555743e52d55140a6c6392b5e/src/extract.ts#L14 will not work, because of g regexp flag.

@Rulexec
Thanks for the correction. No problem, I'll merge it in.

authors: Rulexec activeguild

repo: activeguild/vite-plugin-sass-dts


text:
⚠ Processors has degraded performance

In 4bfbb66, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 107 ms

Resolved: Processors performance has improved in 32f8b6e.

repo: acumenlabs/status-page


text:
⚠ Processors has degraded performance

In e5f9459, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 48 ms

Resolved: Processors performance has improved in 4f4f695.


text:
⚠ Processors has degraded performance

In ede3db9, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 49 ms

Resolved: Processors performance has improved in 0e1aff5.


text:
⚠ Processors has degraded performance

In 3eaf843, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 83 ms

Resolved: Processors performance has improved in 35dee3e.


text:
⚠ Processors has degraded performance

In c52287f, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: Processors performance has improved in 42f1489.


text:
Quick fix for the second half of the assertion bug

same fixing strategy also for the function that gets the following block.

Also fixed problems in case the scanNonFunctionalRelation etc. functions get an empty input.

the whole bloated scanPOS, scanPSO, ... functions in the Index class clearly need refactoring, but not tonight.

Besides the scanXXX() methods I think the two functions we touched for this bug are really hard to grasp too. But I think this fix is minimally invasive and I've tested that this indeed fixes #206.
That said I still don't understand the logic around the it == _blocks.end() case. In that case we decrement it, then don't increment it again and then set after to _startRhs. That however means we get the exact same result as for getBlockStartAndNofBytesForLhs() (as we are skipping the increment which is the only difference). Does that make sense is the last block its own follow block?

Also reading the definition of std::lower_bound() here I would think that this never returns _blocks.end() (it says the range is [begin, end)).

repo: ad-freiburg/QLever


text:
Minor improvement for a specific error condition when the connection will be closed by the server while reading the response

Dear people of Adafruit,
thanks a bunch for taking over from urequests and giving that baseline implementation so much love within your Adafruit_CircuitPython_Requests module. We are about to switch over to your implementation within our Terkin Datalogger.
It came to our attention that the baseline implementation might suffer from a minor issue manifesting in a specific error condition. The user kjm reported on the Pycom user forum at [1] that when the server would close the connection while reading the socket, the module will croak like
OSError: [Errno -76] MBEDTLS_ERR_NET_RECV_FAILED
AttributeError: NoneType object has no attribute close

within the Response.content() method [2]. That will also apply to this implementation. So, I would like to suggest to replace the two lines [3] with just self.close().
With kind regards,
Andreas.
[1] https://forum.pycom.io/topic/5755/micropython-error-trail-confusing-me
[2] https://github.com/micropython/micropython-lib/blob/829f53dc9ea633f3a906cc078027fe7c5248b04e/urequests/urequests.py#L16-L24
[3] https://github.com/adafruit/Adafruit_CircuitPython_Requests/blob/v1.1.0/adafruit_requests.py#L115-L116

When looking at the implementation of the Response.close() method [1], we can see it deviates from the original implementation [2] by adding a gc.collect() just before returning.
To make the GC actually free heap memory, you probably also added del self.socket and del self._cached beforehand. However, these will also remove the instance attributes completely, so this will lead to other problems by methods still trying to use them even when the socket connection has been shut down already. Reproducing this condition should be easy and is obvious to spot - just imagine invoking the Response.close() method twice where even checking for if self.socket would then fail badly like
AttributeError: 'Response' object has no attribute 'socket'

That would even not be unlikely as I see Response.__exit__() will also invoke self.close() - no matter whether it has been called before.
So, I am humbly asking if just setting these two instance attributes to None by self.socket = None and self._cached = None will not be sufficient to make the GC pick up the orphaned Python objects and free them?
If nothing speaks against this, I would like to vote to change this in order to make the library more robust - even in error conditions and unforeseen bogus usage.
[1] https://github.com/adafruit/Adafruit_CircuitPython_Requests/blob/v1.1.0/adafruit_requests.py#L94-L100
[2] https://github.com/micropython/micropython-lib/blob/829f53dc/urequests/urequests.py#L10-L14

Hi @amotl! Please make a pull request with your suggested changes. This code is relatively new and evolving so we're happy to merge them in. Let us know if you need help getting it going.

Dear Scott,
thanks for your quick answer.

We are about to switch over to Adafruit_CircuitPython_Requests within our Terkin Datalogger.

We have not been able to make this switchover yet. In the meanwhile, we fixed the uurequests module of Pycopy to suite our needs, see https://github.com/daq-tools/pycopy-lib/commit/89cad7d9 as a reference for that.
As soon as we might be going towards using Adafruit_CircuitPython_Requests, we will be happy to submit an appropriate pull request.
With kind regards,
Andreas.

P.S.: The background of our current work is that we are conceiving a powerful CPython- and pytest-based test harness for our Terkin Datalogger, which might also spark your interest [1,2].

Let us know if you need help getting it going.

From investigating the source code of this module, I definitively have a few remarks about compatibility with CPython and Genuine MicroPython. However, I will open another issue about that in order not to hijack this one.
[1] https://github.com/hiveeyes/terkin-datalogger/tree/master/test
[2] https://community.hiveeyes.org/t/developing-terkin-for-micropython/233/25

Hi there,
thanks for putting more efforts into this implementation. I can now see that after f32426d9 and e372574 on behalf of #31 by @tannewt,
https://github.com/adafruit/Adafruit_CircuitPython_Requests/blob/7f2877e6f4d981967ed982b4600dbc57fd622230/adafruit_requests.py#L274
is only made at the end of the close() method and nowhere else. That will probably have resolved the condition I was describing here, so I feel it will be safe to close this issue.
Keep up the spirit and with kind regards,
Andreas.

authors: amotl tannewt


text:
7-day average of "By report day" is not including the most recent day for which it can be computed.

Behavior:
7-day moving average of "By report day" time series is not displaying the most recent day for which it can be computed.
Expected Behavior:
7-day moving average of "By report day" time series should be displayed through the same date as the "By death date," and "Forecast," time series.

Wierd... I'll look into it :)

Its because of when the ECDC numbers are updated. I guess I could use FHM numbers instead for the latest date but think its better to keep these separate. So it will have to be like this for now.

authors: adamaltmejd carsonwick

repo: adamaltmejd/covid


text:
whitelist: switch default format to yaml

JSON doesn't allow comments, which would be nice to have next to each fingerprint (sha256 hash), because otherwise the files are just opaque blobs of hex. Maybe get rid of json?
I'm still thinking the same structure:
fingerprints:
  # DigiCert
  - "hex"
  # GoDaddy
  - "hex2"

https://github.com/adamdecaf/cert-manage/pull/132 vendors in yaml

I thought the library could marshal comments, but that's is a PR which has been open for quite some time now.

In https://github.com/adamdecaf/cert-manage/issues/163 a new whitelist was made that's just a bunch of magic strings. Let's prefer yaml whitelists.

repo: adamdecaf/cert-manage


text:
Some exceptions with littleProxy instances - What do they mean?

I'm using littleProxy to tunnel traffic through another proxy. So i'm starting a local proxy without credentials which tunnels the request to another public proxy. This works fine mostly.
Sometimes i get the following exceptions. What do they mean?
I'm using Debian Linux (Jessie) with kernel 4.2.6 (before 3.16). The problems occur with both kernels.
First exception:
[Proxy101-ProxyToServerWorker-0] WARN org.littleshoot.proxy.impl.ProxyToServerConnection - (AWAITING_INITIAL) [id: 0xba1c429f, /xx.xx.xx.xx:57996 => /xx.xx.xx.xx:1297]: Caught exception on proxy -> web connection
java.lang.NullPointerException
    at org.littleshoot.proxy.impl.ProxyUtils.isHead(ProxyUtils.java:380)
    at org.littleshoot.proxy.impl.ClientToProxyConnection.respond(ClientToProxyConnection.java:428)
    at org.littleshoot.proxy.impl.ProxyToServerConnection.respondWith(ProxyToServerConnection.java:517)
    at org.littleshoot.proxy.impl.ProxyToServerConnection.readHTTPInitial(ProxyToServerConnection.java:217)
    at org.littleshoot.proxy.impl.ProxyToServerConnection.readHTTPInitial(ProxyToServerConnection.java:70)
    at org.littleshoot.proxy.impl.ProxyConnection.readHTTP(ProxyConnection.java:135)
    at org.littleshoot.proxy.impl.ProxyConnection.read(ProxyConnection.java:120)
    at org.littleshoot.proxy.impl.ProxyToServerConnection.read(ProxyToServerConnection.java:206)
    at org.littleshoot.proxy.impl.ProxyConnection.channelRead0(ProxyConnection.java:579)
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:254)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at org.littleshoot.proxy.impl.ProxyConnection$ResponseReadMonitor.channelRead(ProxyConnection.java:730)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at org.littleshoot.proxy.impl.ProxyConnection$BytesReadMonitor.channelRead(ProxyConnection.java:684)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
    at java.lang.Thread.run(Thread.java:745)

Second exception (happens every minute in my log files but may be from different independent littleProxy instances):
[Proxy101-ProxyToServerWorker-4] WARN io.netty.channel.nio.NioEventLoop - Selector.select() returned prematurely 512 times in a row; rebuilding selector.
[Proxy101-ProxyToServerWorker-4] INFO io.netty.channel.nio.NioEventLoop - Migrated 1 channel(s) to the new Selector.
[Proxy101-ClientToProxyWorker-4] WARN io.netty.channel.nio.NioEventLoop - Selector.select() returned prematurely 512 times in a row; rebuilding selector.
[Proxy101-ClientToProxyWorker-4] INFO io.netty.channel.nio.NioEventLoop - Migrated 1 channel(s) to the new Selector.
[Proxy101-ProxyToServerWorker-3] WARN io.netty.channel.nio.NioEventLoop - Selector.select() returned prematurely 512 times in a row; rebuilding selector.
[Proxy101-ProxyToServerWorker-3] INFO io.netty.channel.nio.NioEventLoop - Migrated 0 channel(s) to the new Selector.
[Proxy101-ClientToProxyWorker-3] WARN io.netty.channel.nio.NioEventLoop - Selector.select() returned prematurely 512 times in a row; rebuilding selector.
[Proxy101-ClientToProxyWorker-3] INFO io.netty.channel.nio.NioEventLoop - Migrated 0 channel(s) to the new Selector.

Can you please mention the littleproxy version used? Can you also share how you are setting up the proxy? If possible, also share the URL for which the first exception occurs.

I'm using littleproxy 1.1.0-beta1 from maven repository.
This is the code i'm using to start the http-proxy. This methods are in my object "WebProxy" which contains the publics proxy connection data and credentials.
    public HttpProxyServer getLocalTunnelProxy() {
        HttpFiltersSource filtersSource = new BaseHttpFiltersSource();
        return DefaultHttpProxyServer.bootstrap()
                .withName(this.toString())
                .withFiltersSource(filtersSource)
                .withPort(0)
                .withTransparent(true)
                .withChainProxyManager(chainedProxyManager(this.ip, this.port, this.username, this.password, null)).start();
    }

    public HttpProxyServer getLocalTunnelProxy(HashMap<String, String> headers) {
        HttpFiltersSource filtersSource = new BaseHttpFiltersSource();
        return DefaultHttpProxyServer.bootstrap()
                .withName("WithHeaders: " + this.toString())
                .withFiltersSource(filtersSource)
                .withPort(0)
                .withTransparent(true)
                .withChainProxyManager(chainedProxyManager(this.ip, this.port, this.username, this.password, headers)).start();
    }

    ChainedProxyManager chainedProxyManager(final String host, final Integer port, final String username, final String password, final HashMap<String, String> headers) {
        return new ChainedProxyManager() {
            @Override
            public void lookupChainedProxies(HttpRequest httpRequest,
                                             Queue<ChainedProxy> chainedProxies) {
                chainedProxies.add(new BaseChainedProxy(host, port, username, password, headers));
            }
        };
    }

@MediumOne I would show you my screen via skype or something else so that you could see it. I think it may also be caused by to many parallel littleproxy instances?

It looks like the NPE is raised because of currentHttpRequest being null after ProxyToServerConnection.identifyCurrentRequest(). The comment in code says -

    // I'm a little unclear as to when the request queue would
    // ever actually be empty, but it is from time to time in practice.
    // We've seen this particularly when behind proxies that govern
    // access control on local networks, likely related to redirects.

This seems to match your case as well since you have another authenticated proxy.
Can you please confirm if this issue occurs with one littleproxy instance as well?

Is it possible that the currentHttpRequest is null if a foreign website doesn't respond because of some firewall rules?
I can't confirm that the issue occurs with one littleproxy instance because i can't test it at this time, but i'll investigate for that.
I'm also confused that these threads run in background since the little-proxy instance already got closed (without exception).

My HttpFiltersSource:
public class BaseHttpFiltersSource extends HttpFiltersSourceAdapter {
    private CrawlFactoryService crawlFactoryService = CrawlFactoryService.getInstance();
    protected Config config = ConfigFactory.load();
    protected CentralLoggingService log = CentralLoggingService.getInstance();
    protected Pattern blockedPattern = Pattern.compile(config.getString("BLOCKED_REGEX"));

    @Override
    public HttpFilters filterRequest(HttpRequest originalRequest) {

        return new HttpFiltersAdapter(originalRequest) {

            @Override
            public HttpResponse clientToProxyRequest(HttpObject httpObject) {

                if (httpObject instanceof HttpRequest) {
                    HttpRequest request = (HttpRequest) httpObject;
                    String host = null;
                    try {
                        host = CrawlingWorker.getDomainName(request.getUri());
                    } catch (URISyntaxException e) {
                        log.error(BaseHttpFiltersSource.class, e);
                    }

                    // check wether request is allowed an if not, respond with bad gateway http status
                    if (!this.isResourceAllowed(request.getUri()) || crawlFactoryService.getBlockedHosts().contains(host)) {
                        System.out.println("Blocked : " + request.getMethod() + " " + request.getUri());
                        return getBadGatewayResponse();
                    }
                }

                return null;
            }

            private Boolean isResourceAllowed(String uri) {
                List<String> blockedResources = config.getStringList("TUNNEL_PROXY_BLOCKED_RESOURCES");
                Matcher m = blockedPattern.matcher(uri);

                if(m.matches()) {
                    return false;
                }

                for(String resourceEnding : blockedResources) {
                    if(uri.endsWith(resourceEnding)) {
                        return false;
                    }
                }

                return true;
            }

            private HttpResponse getBadGatewayResponse() {
                String body = "<!DOCTYPE HTML \"-//IETF//DTD HTML 2.0//EN\">\n"
                        + "\n"
                        + "<title>" + "Bad Gateway" + "</title>\n"
                        + "\n"
                        + "An error occurred"
                        + "\n";
                byte[] bytes = body.getBytes(Charset.forName("UTF-8"));
                ByteBuf content = Unpooled.copiedBuffer(bytes);
                HttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.BAD_GATEWAY, content);
                response.headers().set(HttpHeaders.Names.CONTENT_LENGTH, bytes.length);
                response.headers().set("Content-Type", "text/html; charset=UTF-8");
                response.headers().set("Date", ProxyUtils.formatDate(new Date()));
                response.headers().set(HttpHeaders.Names.CONNECTION, "close");
                return response;
            }
        };
    }
}

@PatrickHuetter I have been investigating another bug caused by currentHttpRequest being null. It happens for HTTPS requests when a chained proxy is enabled along with filters where chunk aggregation is enabled (see #265). This bug is not present in current master.
You use a chained proxy in your case, but you are not using chunk aggregation. Still, can you please check on current master?
Also, can you share the code that bootstraps your proxy? In another bug (#254) you had mentioned you run your proxy in transparent mode. If you could share the other bootstrap configurations, then I could try and replicate if currentHttpRequest is null for that case as well.

The code where i bootstrap my proxies is already in this comment https://github.com/adamfisk/LittleProxy/issues/255#issuecomment-163684650 . There I'm using .withTransparent(true).
My BaseChainedProxy class:
public class BaseChainedProxy extends ChainedProxyAdapter {
    String username;
    String password;
    String host;
    Integer port;
    HashMap<String, String> headers;

    public BaseChainedProxy(String host, Integer port, String username, String password, HashMap<String, String> headers) {
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
        this.headers = headers;
    }

    @Override
    public InetSocketAddress getChainedProxyAddress() {
        try {
            return new InetSocketAddress(InetAddress
                    .getByName(this.host),
                    this.port);
        } catch (UnknownHostException uhe) {
            throw new RuntimeException(
                    "Unable to resolve " + this.host);
        }
    }

    @Override
    public void filterRequest(HttpObject httpObject) {
        if (httpObject instanceof HttpRequest) {
            HttpRequest httpRequest = (HttpRequest) httpObject;

            if (this.username != null) {
                httpRequest.headers().add("Proxy-Authorization", "Basic " + CrawlFactoryService.generateUserAndPasswordBase64(this.username, this.password));
            }

            if (this.headers != null) {
                for (Map.Entry<String, String> header : this.headers.entrySet()) {
                    httpRequest.headers().add(header.getKey(), header.getValue());
                }
            }

            httpRequest.headers().remove("Via");
        }
    }
}
```

Do you need more?

Best regards
Patrick

Hi Patrick,
I set up a littleproxy instance with the same bootstrap and filter configurations and I was unable to replicate the NPE on both 1.1.0-beta1 and on master.

Is it possible that the currentHttpRequest is null if a foreign website doesn't respond because of some firewall rules?

From the logs you shared, I could see that we do get a response. Even if we didn't get a response, the request should have been saved.
Can you share more debug logs when this exception occurs? You can mask any username/password information (Proxy-Authorization header values).

I believe this was fixed in the issue referenced above, so I'll go ahead and close this issue.

12:38:10  27-Aug-2024 19:38:10,560 [LittleProxy-2-ProxyToServerWorker-0] INFO  org.littleshoot.proxy.impl.ProxyToServerConnection - (DISCONNECTED) [id: 0x9bcbac83, L:/172.31.115.89:52694 ! R:safebrowsingohttpgateway.googleapis.com/142.250.69.202:443]: Connection to upstream server failed

@turnitin-rshanker FYI this project was moved to https://github.com/littleProxy/LittleProxy

authors: MediumOne PatrickHuetter asolntsev jekh turnitin-rshanker

repo: adamfisk/LittleProxy


text:
Wow

You got a same idea, pls see mine:
https://github.com/WeJoy/JNIJar
Any interesting for combinning them?

Hello, nice library. How do you suggest combining them? A reasonable way might be to extend NativeUtils by adding OS detection...

authors: WeJoy adamheinrich

repo: adamheinrich/native-utils


text:
Update easy-xsshunter-express.sh

Fix xsshunter repo selection

Yes, this is a valid fix and please merge

authors: hpy xiaoyongwu

repo: adamjsturge/easy-xsshunter-express


text:
🛑 relay.c.im is down

In 0c9b883, relay.c.im (https://relay.c.im/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: relay.c.im is back up in 071481c.


text:
🛑 relay.fedi.agency is down

In d0a1d42, relay.fedi.agency (https://relay.fedi.agency/actor) was down:

HTTP code: 0
Response time: 0 ms

Resolved: relay.fedi.agency is back up in f312114.


text:
🛑 mastodon-relay.moew.science is down

In 3e2e0ea, mastodon-relay.moew.science (https://mastodon-relay.moew.science/actor) was down:

HTTP code: 502
Response time: 1204 ms

Resolved: mastodon-relay.moew.science is back up in 64eb89f.


text:
🛑 relay.wagnersnetz.de is down

In 58fc072, relay.wagnersnetz.de (https://relay.wagnersnetz.de/actor) was down:

HTTP code: 502
Response time: 454 ms

Resolved: relay.wagnersnetz.de is back up in 4c533d5 after 280 days, 23 hours, 32 minutes.


text:
prefix and suffix

is there any chance to be able to add prefix or suffix in the format?
something like
$ 0[.]00 */pcs
can become to
$ 5.42 /pcs
btw, very useful lib :)

Duplicate of #396

repo: adamwdraper/Numeral-js


text:
There are errors before "Resetting OS image base."

rt,

ok ,let me see

https://github.com/adavak/Win_ISO_Patching_Scripts/commit/85b9d4c0577a4569c2cff0605e46d8dec9d396e7
shoud be fine.

https://github.com/adavak/Win_ISO_Patching_Scripts/releases/tag/v2023.8b_newformat2
no more error this issue will be close after 24 hours.

authors: adavak shidalao


text:
Wrong rotary encoder schematic

Fritzing doesn't have the right graphic for the type of rotary encoder that we use. Therefore the schematic for this component doesn't match what we actually have in real life. This is the closest approximation of what we have done.

A graphic like this one would encapsulate the wiring better

As of #5 this is fixed


text:
Umstellung der Autoren-Infos

Hallo zusammen,
in der Vergangenheit kam es auch hier immer mal wieder vor, das mehrere Autoren an einem Blog-Post zusammen geschrieben haben. Das führt dazu, das im CMS ein neuer Autor angelegt werden muss. Davon wollen wir künftig absehen.
Aktuell gebt Ihr im XML folgende Autoren-Daten beispielsweise an das CMS mit
<!--Author Information-->
<field name="author_first_name"><![CDATA[Cem]]></field>
<field name="author_last_name"><![CDATA[Caylak]]></field>
<field name="author_id"><![CDATA[ccaylak]]></field>
<field name="author_picture_stored_only"><![CDATA[http://localhost:4000/assets/images/avatars/ccaylak.png]]></field>

Die Informationen author_first_name, author_last_name und author_picture_stored_only werden beim Import nicht berücksichtigt und somit auch von unserer Seite nicht benötigt. Wenn Ihr wollt und Ihr die Informationen an dieser Stelle nicht wo anders benötigt, können die Daten aus dem XML enfallen.
Zusätzlich würden wir allerdings dann eine "Liste" von author_id erwarten. Wobei diese Liste insofern keine Liste darstellt. Wir können uns vorstellen, dass die Authoren dann, analog zu Tags, untereinander genannt werden. z.B.
<!--Author Information-->
<field name="author_id"><![CDATA[ccaylak]]></field>
<field name="author_id"><![CDATA[dsorna]]></field>
<field name="author_id"><![CDATA[florianluediger]]></field>

Könnt Ihr dies so bereitstellen?
Bei Fragen kommt gerne auf mich zu.
Viele Grüße
Diana

Hallo Diana,
wie stellt ihr denn dann die Verbindung zwischen author_id und der realen Person her? Oder liegen die Daten auch noch irgendwo extern, sodass ihr darüber zugreifen könnt?
Viele Grüße
Johannes

Hallo Johannes,
die Autoren müssen vorher (bisher auch schon) in unserer Autorendatenbank liegen. Dort sind auch die Autoren-IDs gepflegt.
Wir können da gerne mal zusammen reinschauen, wenn du möchtest.
Viele Grüße
Diana

Hallo @jo2 @acetous,
gibt es  hier schon einen Status? Bis wann könnt Ihr die Anpassung vorsehen/durchführen? Wir müssen das entsprechend mit unserem Release-Plan abstimmen.
Viele Grüße
Diana

repo: adessoAG/devblog


text:
@spark-ui/select with placeholder does not trigger onValueChange as intended

Description
When I have a select with a placeholder value and I don't have a placeholder item, I expect to be able to select the first item of the select but the first item is not selected instead.
Steps to reproduce

Go to stackblitz
Click on the select trigger
Select "item 1"
See that the value is not changed

Spark Component and Version
@spark-ui/select@latest
Browser
Chromium 126.0.6478.126
Operating System

[ ] macOS
[ ] Windows
[X] Linux

Additional Information
No response

@Powerplex In review without any related PR?

authors: dFegnoux soykje

repo: adevinta/spark


text:
Respond with errors when raising on call command execution

#562

Review please @bklang.

repo: adhearsion/adhearsion


text:
Massive upgrade and refactor

This PR does the following:

Upgrade dependencies.
Add documentation for almost everything.
Refactor &'static str errors into FlannError using the failure crate.
Appease all clippy lints.
Change flann-sys to use CMake to build a consistent FLANN version from a git submodule.

Git submodule will allow offline builds as well since it will get packaged with the crate source.

Update to FLANN 1.9.1 native C bindings.
Remove wrapper build.
Rename some methods to improve clarity.
Add SliceIndex which forces all slices from the consumer to outlive the index.
Use assert_approx_equals in tests on floating point types.
Fully flesh out checks in some tests.
Add appropriate trait bounds on inputs and return iterators where appropriate.
Remove rebuild_threshold from arguments and add it to Parameters.

Let me know if you want to also support linking to the system FLANN installation. I don't like depending on CMake during a cargo build, but there are other crates that do the same thing.

I have only tested this on Windows currently, but since it uses CMake and C types where possible, my hope is that it will build file on Linux. Tomorrow morning I will test it on Linux and fix any remaining issues.

The build and tests are now working on Ubuntu 18.04.2 for me.

Hi Geordon,
I'm currently not using this for anything, and am very busy, so I don't think I'm currently right for the sole maintainer job.
I'm giving you owner rights so you have the flexibility to extend the library as you please. It's better than it rotting and becoming obsolete under my rule.

@adnanademovic Sure, I can take over it. I am working more with binary descriptors currently in photogrammetry applications, but I want the option to work with floating point features too. I am also interested in using this for machine learning as well. For binary descriptors I may need to see if I can enable LSH with the current parameter set and how to do that, then I might make special bindings for bit vectors (sort of like how there are Vec and GenericArray bindings now). I can set up Travis CI for the repository as well.

authors: adnanademovic vadixidav

repo: adnanademovic/rust-flann


text:
Fix the concentration example that was broken by the last API change.

Note: I'm not merging this because I'm not sure what the resolution of #29 should be.

I've decided to revert the change from v1.4.0, so this is useless now.

repo: adngdb/entity-system-js


text:
Support dashed names

R @mcmuglim
O @robtaylo
O @adzellman

Looks good to me. I don't have write access. Could @robtaylo or @adzellman merge?

authors: mcmuglim tmillett


text:
S3Mock is incompatible with Spring Boot 3.2.x and Spring Framework 6.x

The way parameter names are detected (for annotations such as @PathVariable) changed in Spring Boot 3.2.0 and Spring Framework 6.x (see Parameter Name Discovery in the Spring Boot 3.2 Release Notes).
Unfortunately, this causes the latest version of S3Mock to be incompatible with Spring Boot 3.2.x and Spring Framework 6.x.  Attempting to use S3Mock with Spring Boot 3.2.x results in errors similar to:
java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.

Thankfully, this is very easy to fix. The Java compiler needs to be configured to use the -parameters flag, which causes the compiler to include the necessary metadata Spring needs to detect the parameter names.
Using Maven, this can be done by adding <parameters>true</parameters> to the configuration section of the maven-compiler-plugin. See Parameter Name Retention in Upgrading to Spring Framework 6.x for a more complete example.
I have done this with a local checkout of S3Mock, and I have confirmed it works.

@jthurne thanks, I'll try to release a new version today, wanted to do that for a couple of weeks now anyway...
However, please note that a direct Java integration with the S3Mock always has the risk of bringing dependency incompatibilities into your project.
While I try to keep everything current and compatible, the best practice to use S3Mock in your project is via Docker:
https://github.com/adobe/S3Mock#s3mock-docker

Awesome, thank you @afranken!

However, please note that a direct Java integration with the S3Mock always has the risk of bringing dependency incompatibilities into your project.
While I try to keep everything current and compatible, the best practice to use S3Mock in your project is via Docker:
https://github.com/adobe/S3Mock#s3mock-docker

Noted.  We do strive to use Docker for these sorts of things when we can, but there are two drawbacks:

Spinning up docker containers tends to be slower than spinning up an "in process" server within a test. On a project with tens of thousands of tests, these small amounts of time add up quickly.

Unfortunately, on our CI setup, Docker is somewhat unreliable, and relying on Docker containers introduces instability into our build.

Hopefully over time, Docker will get faster and more reliable and we'll be able to leverage it more for this sort of thing in the future.
In any case, your quick response is very much appreciated!  Thank you for all you do for the community.

@jthurne I just released 3.3.0 which depends on Spring Boot 3.2.1 :)

authors: afranken jthurne


text:
aio rt:activation:list does NOT work in Windows 10

After deploying app into IO, I ran "aio app run" in command prompt and then using the url under web-src/src/config.json, I invoked my app. Then I entered "aio rt:activation:list" in Terminal tab of VS code and I got the below error. I got the same error when I repeated these same steps with "aio app run --local". However, "wsk activation list" gave me the list of activation ids.
"aio rt:activation:list
aio : File C:\Users\mallicha\AppData\Roaming\npm\aio.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

aio rt:activation:list

CategoryInfo          : SecurityError: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess"

OS: Windows 10 Enterprise
Browse: Google Chrome - Version 79.0.3945.130 (Official Build) (64-bit)
aio --version --> @adobe/aio-cli/3.0.0 win32-x64 node-v12.13.1

Hey @visaq,
Unfortunately this is a recent behavior change in npm which will cause this problem for any globally installed packages:
https://github.com/npm/cli/issues/470
Some work-arounds are offered in that thread

Closing the issue as this related to npm/cli#470

authors: DrewML meryllblanchet visaq

repo: adobe/aio-cli-plugin-runtime


text:
Undo Stops Working

I haven't been able to exactly pinpoint why this happens, but it seems to be happening right after when I do a "find in files" search. I'm using Release 1.5 build 1.5.0-16538

The issue is being tracked here: #11826
Find in Files does sound like a potential culprit

Closing duplicate.

authors: abose designcise petetnt

repo: adobe/brackets


text:
Live syntax Heigithing for PHP

It's possible to configure (without install php binaries) Bracket for syntax error heighliting (when you made error in Aptana this line is heighlighted).
I tried a lot of solutions and plugin but nothing dosen't work.
I want change Ecclipse to Brackets becasue Brackets is better (faster, modern) but this feature is very needed. Without these feature still i must use Eclipse :(
Regards

Currently brackets doesn't support PHP. As some plugins are available for that but those don't work that well. We have this feature in our roadmap. So closing this for now.

authors: JohnyByk navch


text:
Font size and line height preferences

Breaking this out into a separate issue to be resolved before Themes can land.
As @TomMalbran suggested in the themes pull request:
The font settings should be merged with the Increase/Decrease Font Size commands. I am thinking that we should make the fontSizeStyle view state a preference to store the font size and add a new preferences for the line height and the font family. But to make things simpler, the font size preference should just be a number which is then interpreted as the size of the font in px, and the line height should also be a number (float) which is then interpreted as the line height in ems. All these preference will be added in ViewCommandsHandlers so that we can use the same functions to update the style when the preferences change.
Since we don't have an UI for the preferences I am not sure if we should keep the UI used with the themes or just don't use any UI at the moment.
I don't mind keeping the [Themes] dialog. But when saving, it should only change the preferences values and the code in View Commands Manger can deal with the preference change.
cc @MiguelCastillo

Is setting-up line-height not going to preferences then? This lack of feature is the one thing that keeps me from using Brackets. Why not just use a unitless line-height as mentioned by @lkcampbell?

@dinolatoga I see that you have already gone through the different threads discussing line-height.  So I won't reiterate what the issues are.
But at this point, the best thing to do is to create an extension. If you create an extension, I will be happy to help you test it.

Hmm. Not sure if I can even do that. I am just a web designer. Can you point me at something I can start with on how to create an extension for Brackets? The workaround that I'm doing is that I just tweak the .Codemirror line-height property every time I open the app.

@dinolatoga i have created this extension to get things started.
https://github.com/MiguelCastillo/Brackets-LineStyle
What you need to do is add a setting to the global brackets.json or your project .brackets.json file to configure the value.  Please see the sample below.
https://github.com/MiguelCastillo/Brackets-LineStyle/blob/master/.brackets.json#L2
It is not yet published to the extension registry because I wanted to give you a chance to test it.  You can install the extension from the github URL.

@MiguelCastillo I'm going to test this out and see how it goes. If there will be issues, I'm going to be posting it on its own repo and not here. Thank you for this. I really appreciate it.

Yup. sounds great!

English: Hi!!! It's true, its so easy, its like configure a text in web, i writed these settings in brackets.min.css, the zoom is quite ugly and hard to read, in order to resolve it, I set two styles properties: font-weight: 100!important; and line-height:1.6, this makes clear and easy to read!!!!
Español: Hola, el zoom de Brackets es muy malo, para resolverlo edité el archivo brackets.min.css, y edité .CodeMirror en la carpeta www/styles con los siguientes estilos, la clave es el peso de la fuente font-weight: 100!important;:
.CodeMirror {
line-height:1.6;
 font-family:"SourceCodePro-Medium","ＭＳ ゴシック","MS Gothic",monospace;//like sublime text
 font-weight: 100!important; //this make the text clear and easy to read!
}

These are the results:

This is easier to read than the brackets zoom default:

@jesuscmd I don't think we have plans to add this to brackets core given the potential incidental impact this could have.  Given that, as I mentioned earlier I have created an extension that you can use to configure the line hight... Admittedly it was only available via github.  But I have just published it.  Do you think you can give that a try, please?
https://github.com/MiguelCastillo/Brackets-LineStyle.

Resolve the problem :
1 - go to : AppData\Roaming\Brackets\extensions\user\FolderExtention
2 - Go to newtondark.css for example for me.
3 - add this line :
.CodeMirror {
line-height: 1.6;
}
4 - Be happy !

authors: MiguelCastillo dangoor dinolatoga jesuscmd montagnez


text:
Add license checker scripts

Description
License verification automation + Use latest eslint.
License list:

Fixes # (issue)
Types of changes

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

Checklist:

[x] I have signed the Adobe Open Source CLA.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Same comment as in https://github.com/adobe/asset-compute-sdk/pull/7#pullrequestreview-410289952 - I think we should move this into a CI job.

authors: alexkli tmathern

repo: adobe/node-fetch-retry


text:
Adding Bizible mixins for B2B Account/Person/Opportunity

Please link to the issue #…

reviewed and accepted.

authors: mjasrotia peichiang

repo: adobe/xdm


text:
Substance 3D: icons for the magazine pages' marquees

*Added 6 svg icons to /cc/icons/ for the Substance 3D Marquees.

3d-assets.svg
designer.svg
modeler.svg
painter.svg
sampler.svg
stager.svg

Icons were taken directly from the Substance 3D website
An example page that needs to use these icons:  https://main--cc--adobecom.hlx.page/products/substance3d/magazine/nature-inspires-fashion-fashion-becomes-art

Codecov Report

Merging #22 (6fad2ed) into main (c763f31) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #22   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           14        14
=========================================
  Hits            14        14

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@So1ene I see path for icons as img/icons in milo repos for example below
https://github.com/adobecom/milo/tree/main/libs/img/icons
https://github.com/adobecom/dc/tree/stage/acrobat/img/icons
Can we please follow the same format and put the icons in cc/img/icons directory
Also CC team has set up stage branch for active development and PRs will be picked from their for main for production release. Although this PR only has icons but to follow the process may be this PR should go to stage branch first tagging @salonijain3 and @dstrong23 to confirm cc @aishwaryamathuria

repo: adobecom/cc


text:
tile grid to solid

https://github.com/adonaac/fuccboiGDX/blob/master/fuccboi/world/Tilemap.lua#L28

Should be implemented at a game level because it depends on GameObject creation. So it's out of scope for this

repo: adonaac/hxdx