feature request - ListView

Hey, found this on Reddit. Really nice job. Showed a few devs at work and they want dark theme option on all our internal tools.
Quick feature request … could you theme ListView? We use them extensively for displaying logs in app.

yeah i can do that. will (hopefully) be done in maybe 10 mins

Wow awesome thank you!


API Question / Scanning with Plex

Do the 403 rate limit messages appear only from the debug output? I've been trying to figure out if I'm seeing messages or not as I check the API console and it seems like I'm getting quite a few errors:
The API image looks like:
http://imgur.com/VJr7VJE
I swear at one point, I was able to scan my TV library without generating any errors and it ran very fast. I primed it up with a ls -alR and that runs quickly.
My TV Directory:
felix@plex:/GD/media/smu5ej34ujbdoip1cm3mlk92q4$ ls | wc -l
284
felix@plex:/GD/media/smu5ej34ujbdoip1cm3mlk92q4$ ls -alR | wc -l
11751

My Movies which runs super fast (seconds) on a scan
felix@plex:/GD/media/tnvepu36qiohcun8v84ddhsam0$ ls | wc -l
1201
felix@plex:/GD/media/tnvepu36qiohcun8v84ddhsam0$ ls -alR | wc -l
8516
felix@plex:/GD/media/tnvepu36qiohcun8v84ddhsam0$

Is there some limit I'm hitting with caching the # of items/directory? My gdfuse.log is empty without any debug so I'm not sure where the errors would log if at all.

Do the 403 rate limit messages appear only from the debug output?

Yes, in the curl.log file. But after a 403 error, you should get an I/O error at the file-system level.

It seems to only go to stderr as I had to grab it in a log and I didn't see those 403s anywhere else. I had to put on debug for them to show up in the mount:
/usr/bin/google-drive-ocamlfuse /GD -o allow_other,auto_cache -headless -debug >> /home/felix/.gdfuse/default/mount.log 2>&1 &

I can see the 403s in my "mount.log" that I made by getting stderr in there.
By I/O error, you mean one file just returns an error? I'm able to still browse / use the file system without need to remount it.

My other item was trying to figure out what's the difference between being synchronized and toDownload?
I'm thinking Plex is misbehaving and trying to rescan a file instead of just checking the timestamp on on it or I'm not having that file properly in my cache.db
[162.794636] TID=70522: BEGIN: Getting metadata from context
[162.794652] TID=70522: END: Getting metadata: Valid
[163.794494] TID=70523: statfs /
[106.479018] TID=70435: END: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg (trashed=false) from db: Found (id=195, state=Synchronized)
[106.479063] TID=70436: getattr /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6qgv5vbbuqklfcqlq
hvk
[106.479071] TID=70436: BEGIN: Getting metadata from context
[106.479073] TID=70436: END: Getting metadata: Valid
[106.479075] TID=70436: BEGIN: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6
qgv5vbbuqklfcqlqhvk (trashed=false) from db
[106.479235] TID=70436: END: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6qg
v5vbbuqklfcqlqhvk (trashed=false) from db: Found (id=2970, state=ToDownload)
[106.479273] TID=70437: fopen /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6qgv5vbbuqklfcqlqhv
k O_RDONLY
[106.479280] TID=70437: BEGIN: Getting metadata from context
[106.479282] TID=70437: END: Getting metadata: Valid
[106.479285] TID=70437: BEGIN: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6
qgv5vbbuqklfcqlqhvk (trashed=false) from db
[106.479447] TID=70437: END: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6qg
v5vbbuqklfcqlqhvk (trashed=false) from db: Found (id=2970, state=ToDownload)
[106.479617] TID=70438: read /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/um4qcri48kr7rpa7odk8aamnof1du48m82r6504vpahohr1dvub69n5do6qgv5vbbuqklfcqlqhvk
 [16384 bytes] 0 0
[106.479640] TID=70432: [106.479648] TID=70438: BEGIN: Getting metadata from context
END: Loading resource /media/smu5ej34ujbdoip1cm3mlk92q4/0erksbdifc83apo7c01v2jqajrhle9i9aljsi603u1jn2lftqdbg/7nbk65d8p56121rjooon132narni2h4nrciv16dpbrsmo522oj3ie55qldvd1ma9lp145rvjfhsbc (trash
ed=false) from db: Found (id=2971, state=ToDownload)

Those are 2 files with one being just 'checked' and not downloaded and the later seems to be "toDownload".

Synchronized means that a file is already been downloaded and the cached copy (on disk) is valid. ToDownload means that the file must be (re)downloaded (either was never been downloaded or the current cached copy is outdated). But with stream_large_files=true, large files are not downloaded to disk, so they are always ToDownload.

I have the following in my config:
large_file_threshold_mb=16
stream_large_files=true

So in theory, any of my stuff should be 'large_files' in my media area.
[35.269672] TID=44016: END: Loading resource /media/tnvepu36qiohcun8v84ddhsam0/7o55b0s5gogd54idl8c8ape5jd8579gr0oc4tcun9rgicq267b90 (trashed=false) from db: Found (id=1057, state=Synchronized)

Here is the file size:
felix@plex:~$ ls -al /GD/media/tnvepu36qiohcun8v84ddhsam0/7o55b0s5gogd54idl8c8ape5jd8579gr0oc4tcun9rgicq267b90
total 3432745
drwxrwxr-x 2 felix felix       4096 Apr 21 21:11 .
drwxrwxr-x 2 felix felix       4096 Apr 19 12:51 ..
-r--r--r-- 1 felix felix<PHONE_NUMBER> Mar 21 06:34 999cogl215i9mr9fn64fjoclmc58klaafom7ulsc73l07a2ifavg
felix@plex:~$ du -ms /GD/media/tnvepu36qiohcun8v84ddhsam0/7o55b0s5gogd54idl8c8ape5jd8579gr0oc4tcun9rgicq267b90
3353	/GD/media/tnvepu36qiohcun8v84ddhsam0/7o55b0s5gogd54idl8c8ape5jd8579gr0oc4tcun9rgicq267b90
felix@plex:~$

Here is my cache:
felix@plex:~/.gdfuse/default/cache$ du -ms
209	.

I'm not sure based on that how my file is downloaded to my cache.

I meant to post the log earlier as well.
gdfuse.log.zip

Well, but /media/tnvepu36qiohcun8v84ddhsam0/7o55b0s5gogd54idl8c8ape5jd8579gr0oc4tcun9rgicq267b90 is a folder. So it's not a regular file, folders are ToDownload if you never accessed them, and are Synchronized after you access them (with ls, for example).

Ah, thanks as I missed that was a directory as the encrypted names are annoying at times.
So it's most definitely plex being annoying than as it's supposed to just check if it's the same file and not open it.
Appreciate the help as I'll dig into the plex logs a bit more.

So I played around a bit and found something that I settled on. I figured I'd share my settings/mount stuff in case someone wants to try to use the the same thing.
# Mount GD Fuse
#/usr/bin/google-drive-ocamlfuse /GD -o allow_other -debug &
/usr/bin/google-drive-ocamlfuse /GD -o allow_other,auto_cache -headless -debug >> /home/felix/.gdfuse/default/mount.log 2>&1 &
sleep 2

# Mount the 3 Directories via rclone for the encrypt
/usr/bin/rclone mount \
--allow-other \
--read-only \
--default-permissions \
--uid 1000 \
--gid 1000 \
--umask 002 \
--acd-templink-threshold 0 \
--buffer-size 100M \
--timeout 5s \
--contimeout 5s \
--syslog \
--stats 1m \
-v \
media: /media &

# Wait a sec
sleep 2
/usr/bin/unionfs-fuse -o cow,allow_other,direct_io,auto_cache,sync_read /movies=RW:/media/Movies=RO /Movies
/usr/bin/unionfs-fuse -o cow,allow_other,direct_io,auto_cache,sync_read /tv=RW:/media/TV=RO /TV

/GD is my GDrive
/media is an encrypted rclone mount.
I have a local /tv and /movies directories.
I use /TV and /Movies for my fuse mounts that combines everything.
I'll close this item out as everything seems to be working as intended from my perspective. Appreciate the clarifications and the help!


Implement wrapping of arbitrary field elements (Goldilocks)

Implements a machine that can wrap arbitrary field elements into u32, i.e. takes the least-significant 32 bit of the field element. This is what's currently blocking #534.
The approach is to do a byte decomposition, with enough bytes to fit any field element. Additionally, we check that the byte decomposition does not overflow in the respective field.
I added a test; the following runs it manually and prints some relevant columns:
cargo run pil -f test_data/asm/wrap_gl.asm -o output --field gl --export-csv
csvtool namedcol -u TAB Row,main_wrap_machine.RESET,main_wrap_machine.bytes,main_wrap_machine.BYTES_MAX,main_wrap_machine.lt,main_wrap_machine.was_lt,main_wrap_machine.gt output/columns.csv | head -n 40

Checking for overflows
The approach is to compare the byte decomposition to that of the maximal possible value ($p - 1$). If any byte is greater than the corresponding byte of the max byte, it must have been the case that a byte before that has been strictly less.
Restrictions
This implementation does not handle incomplete blocks. I think that's fine, we can assume $N$ to be a multiple of 8?
Future work

We'll also need this for BN254. That should be a straight-forward modification.
The RISC-V compiler should add this machine.
With that, we can finally finish #534.
I think it actually makes sense to return an array of u32s. For that, we need multi-return.
The byte comparison could be implemented with a single lookup, which would reduce the number of columns (fixed columns could be re-used for both gt and lt). Currently, it's not possible to easily generate the fixed columns though, since we don't have an < operator.

Thanks to #571, I could simplify the code a bit :)


File organization

Why aren't javascript and CSS files split into separate files?

I prefer keeping them like this. It's easier to distribute a single file instead of sending multiple ones.


Common YAML config

So this is what I would like it to be.
It is based on #10, therefore #10 needs to be merged first and this need to be rebased. I've decided to publish this as it is, so we can discuss it ASAP.
@alexa-pi/coreteam Let me know what you think.

So, with what I've written in #14, can we have the trigger phrase in the config file? I mean the users could have previously changed it in the code as well. This however could be considered as giving them a real option and encouraging them to do it. There's practically nothing we can do to take away the option from them when using pocketsphinx (aside from using a model with that one word only, which someone would have to do and I'm not that eager to do that). If I'm correct when using snowboy, this will be not an issue since there would be only a model for the one word.

snowboy will allow multiple words in a model.

Superseded by #18.


Harimanga is not working since the update

Harimanga is not working since the update

It is not harimanga.com anymore but Harimanga.me


Switch to mycroft-precise

https://github.com/MycroftAI/mycroft-precise is a better wakeword listener than snowboy, both in quality and in license.
We need to build a tiny nodejs wrapper, and then train an "Almond" model.

Fixed by #22


Learning Token

Updated & added Learning proposal-template with following section

initial committers
pre-existing repository
contact
web portal
publication section

Thank you Nidhi. We appreciate your help and support.
Kind regards,
Alfonso

On May 15, 2024, at 12:21, Nidhi Singh @.***> wrote:
@nidhi-singh02 approved this pull request.
Lgtm!
—
Reply to this email directly, view it on GitHub https://github.com/hyperledger-labs/hyperledger-labs.github.io/pull/269#pullrequestreview-2058720164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDNNCAGJZEXLVP3HEUZD53ZCORSJAVCNFSM6AAAAABHWTOQJWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJYG4ZDAMJWGQ.
You are receiving this because you commented.


[3.0] Nullable owned type - exception on update

Hi guys,
there is an issue with nullable owned types in EF Core 3.0. When I'm trying to update value of owned type that have been set to NULL, I'm receiving exception:
System.InvalidOperationException
  HResult=0x80131509
  Message=The entity of type 'Address' is sharing the table 'Candidate' with entities of type 'Candidate', but there is no entity of this type with the same key value that has been marked as 'Added'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values.
  Source=Microsoft.EntityFrameworkCore.Relational
  StackTrace:
   at Microsoft.EntityFrameworkCore.Update.Internal.CommandBatchPreparer.Validate(Dictionary`2 sharedTablesCommandsMap)
   at Microsoft.EntityFrameworkCore.Update.Internal.CommandBatchPreparer.CreateModificationCommands(IList`1 entries, IUpdateAdapter updateAdapter, Func`1 generateParameterName)
   at Microsoft.EntityFrameworkCore.Update.Internal.CommandBatchPreparer.<BatchCommands>d__11.MoveNext()
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(DbContext _, ValueTuple`2 parameters)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
   at EF_Core_OwnedType_Issue.Program.NotWorkingUpdateOnNullOwnedType(DbContextOptions`1 builderOptions) in D:\Projects\EF_Core_OwnedType_Issue\EF_Core_OwnedType_Issue\Program.cs:line 52
   at EF_Core_OwnedType_Issue.Program.Main(String[] args) in D:\Projects\EF_Core_OwnedType_Issue\EF_Core_OwnedType_Issue\Program.cs:line 23

Class definition / mapping:
public class Candidate
{
    public long Id { get; set; }
    public string FirstName { get; set; }
    public Address Address { get; set; }
}

public class Address
{
    public string Street { get; set; }
    public string PostalCode { get; set; }
}

public class CandidateConfig : IEntityTypeConfiguration<Candidate>
{
    public void Configure(EntityTypeBuilder<Candidate> builder)
    {
        builder.ToTable(nameof(Candidate));

        builder.HasKey(c => c.Id);
        builder.Property(c => c.Id).UseIdentityColumn();

        builder.Property(c => c.FirstName);

        builder.OwnsOne(c => c.Address,
        navigationBuilder =>
        {
            navigationBuilder.Property(e => e.Street).HasColumnName(nameof(Address.Street));
            navigationBuilder.Property(e => e.PostalCode).HasColumnName(nameof(Address.PostalCode));
        });
    }
}

Execution code (updating an entity, that was previously saved with a null value in owned type):
long? candidateId = null;
using (var dbContext = new CandidateDbContext(builderOptions))
{
    var candidate = new Candidate()
    {
        FirstName = "FirstName"
    };

    dbContext.Add(candidate);
    dbContext.SaveChanges();
    candidateId = candidate.Id;
}

using (var dbContext = new CandidateDbContext(builderOptions))
{
    var candidate = dbContext.Candidates.SingleOrDefault(c => c.Id == candidateId);

    if (candidate != null)
    {
        candidate.Address = new Address()
        {
            Street = "Street2",
            PostalCode = "Postal2"
        };
        dbContext.SaveChanges();
    }
}

Here is example console application with this issue:
https://github.com/sygnowskip/EF_Core_OwnedType_Issue
How to solve this issue? 😃
Further technical details
EF Core version: 3.0.1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.0
Operating system: Windows 10
IDE: Visual Studio 2019 16.3

Use cases for OwnsOne:

NULL, SaveChanges(), { Value }, SaveChanges() -> Exception

The entity of type 'Address' is sharing the table 'Candidate' with entities of type 'Candidate', but there is no entity of this type with the same key value that has been marked as 'Added'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values.

{ Value }, SaveChanges(), { Value }, SaveChanges() -> OK
{ Value }, SaveChanges(), NULL, SaveChanges() -> Exception

The entity of type 'Address' is sharing the table 'Candidate' with entities of type 'Candidate', but there is no entity of this type with the same key value that has been marked as 'Deleted'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values.

Duplicate of #17422

Workaround described here: https://github.com/aspnet/EntityFrameworkCore/issues/17422#issuecomment-558325838 😃


[Feature request] Ctrl+h as an alternative to Backspace

I'm very used to pressing Ctrl+h to delete a character backwards. My mind boggles when I realize that I need to press Backspace instead of Ctrl+h. Would you mind adding support to Ctrl+h? Thanks.

Ctrl+h, is that emacs defaults? sounds comfy, backspace key is kind of awkward to reach, I could see myself using that. I will look into how to add it to typiskt, i don't think it is a big deal.

Actually vi insert mode default as well! Unlike most people, I always use my palm to press Ctrl, so it does feel super comfy ;)

this is fixed


Correct typos in warning message

After installing Clearance on an app and adding a user, received message
about 'rotate_csrf_on_sign_in' being unset. I noticed two simple typos.
This commit simply corrects these and no functional change.

Thanks!


[Bug] Distorted thumbnails in library view when opened in split-screen mode

Device information

Tachiyomi version: Neko 2.0.0
Android phone & version: Asus ROG Phone II, Android 9

Steps to reproduce
Not entirely reliable, but this has caused it twice now;

Have a split screen view with YouTube on top and another app on the bottom, then switch to Neko (with a chapter open)
Back out to the Library page

Expected behavior
Normal appearance.
Actual behavior
It looks like the normal library view but with a second page's worth of images added behind everything and slighly offset. See attached images.

Other details
Additional details and attachments.

should be fixed in 2.0.3 if not reopen ticket


Raising awareness through talks

I have a number of talks already scheduled but if you know of other venues for getting raising awareness of this project and open science, please get in touch.

I have already given a talk to the AEA autumn webinar series on sustainability of our profession. Here is a link to my talk - presentation

Other talks booked at Palaeopercs and AEA spring conference concerning open science.

Talks

[ ] Association of Environmental Archaeology (AEA) autumn webinar series on sustainability – 15th September 2020 6pm BST.

[ ] Palaeopercs early career online series – Tuesday 24th November 2020 3pm GMT.

[ ] AEA Open Science Spring meeting – Saturday 24th April 2021.


The result of RPN is close to 0 for zero-shot inference of own dataset, however, the result of GT is very good. What should I do?

Dear Author,
Very great work. I am getting close to 0 results for inference at RPN at zero-shot inference and very good results for inference at GT. What should I do in this case and the results are poor when doing Transfer Learning, I suspect that it is also due to RPN. What should I do?
think you.

What I do is to merge the weights of RPN and pretrained models and don't provide RPN checkpoint, i.e., only provide one model checkpoint with MODEL.WEIGHTS.  Then the mAP in paper can be reproduced.

Thanks for your interest in our work. According to your descriptions, the low performance is caused by localization errors. You could try training an RPN on your own dataset. This should provide a reasonable performance between 0 and GT boxes.

g

I have also encountered the same situation. Would you be willing to further explain this phenomenon? I also believe that the decrease in accuracy is due to a localization issue, but I do not understand why the AP value would be close to 0.

Thanks for your interest in our work. According to your descriptions, the low performance is caused by localization errors. You could try training an RPN on your own dataset. This should provide a reasonable performance between 0 and GT boxes.

Hello! I have tried to train an RPN on my own dataset. However, even if the RPN model shows that it could predict the catogories on the AP around 60, when I try to use the RPN model weight in RegionCLIP (I just simplily replace the model weight, I guess it may have some mistakes but I didn't find), the AP is not closed to 0 but relatively low (around 5 on some categories and also be closed to 0 on the others). And the GT boxes performs quite good.  Could you please give me some advice concerning using my own RPN model?

@whhong5 According to your descriptions, the RPN you loaded from RegionCLIP seems a bit off. If your own RPN is using exactly the same module as RegionCLIP's RPN, please check the weight loading. If not, you might need to additionally check the module definition & preprocess & feedforward functions.

@whhong5 According to your descriptions, the RPN you loaded from RegionCLIP seems a bit off. If your own RPN is using exactly the same module as RegionCLIP's RPN, please check the weight loading. If not, you might need to additionally check the module definition & preprocess & feedforward functions.

I have check the weight loading and I am not sure whether it is right or wrong.
I would like to describe my processing in detail. I would appreciate it if you would like to give me some sugguestions.(By the way, I use Google Colab to finish my project. )
Actually, I try to train the RPN by using the train_transfer_learning.sh, like this one:
### train RPN PPE12 !python3 ./tools/train_net.py \ --num-gpus 1 \ --config-file ./configs/COCO-InstanceSegmentation/CLIP_fast_rcnn_R_50_C4_ovd.yaml \ MODEL.WEIGHTS ./pretrained_ckpt/regionclip/regionclip_pretrained-cc_rn50x4.pth \ MODEL.CLIP.OFFLINE_RPN_CONFIG ./configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x_ovd_FSD.yaml \ MODEL.CLIP.TEXT_EMB_PATH /content/drive/MyDrive/RegionCLIP/output/concept_feats/PPE12_rn50x4.pth \ MODEL.CLIP.OPENSET_TEST_TEXT_EMB_PATH /content/drive/MyDrive/RegionCLIP/output/concept_feats/PPE12_rn50x4.pth \ MODEL.CLIP.TEXT_EMB_DIM 640 \ MODEL.RESNETS.DEPTH 200 \ MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION 18
I removed the MODEL.CLIP.BB_RPN_WEIGHTS this time, I think when I run this code, it would get a new RPN model which is initialized by "detectron2://ImageNetPretrained/MSRA/R-50.pkl" (actually I have the RPN model weight which was trained by detection2 before—— according to COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml)
However, When I run this code, it works well in the training phase and I got the model_final.pth. But it would remind me that ——

"RuntimeError: CUDA error: invalid configuration argument
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions."

 (Which I  mentioned before —— the inference result is close to 0).
Actually, I am not sure the config file was used correctly or not. Would you mind giving some guidance?
（If I use the RPN model which I trained according COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml, I think I should change MODEL.CLIP.OFFLINE_RPN_CONFIG corresponding to it ?）


ft-314 Add sound when toggling status/mute

Which Issue was this PR made for?

Closes #314

What is within the scope with this PR
Adding and playing sound effects.

AUTOMATED: Deployed to https://pr-353.dev.mochatto.com

AUTOMATED: Deployed to https://pr-353.dev.mochatto.com

AUTOMATED: Deployed to https://pr-353.dev.mochatto.com


chore: apply npm audit:fix

Addressing a fresh batch of alerts this morning.

Will open a fresh one after landing some of the open PRs touching these files


Is there a plan to support LuaCov?

hi, thanks to your work, does this test suit support LuaCov? (because it seems using busted internal)
Or is there plan to do this?

Not something I've ever considered and I've never used luacov

FYI, busted naturally support LuaCov, there is an argument -c/--coverage in busted manual: https://lunarmodules.github.io/busted/#usage.
If install busted with:
luarosks install luacov
luarocks install busted

then it's ready to use.

Sounds good.
I'm not against using LuaCOV or anything. I've just not had any experience with it yet.

It wasn't super straight forward but I've managed to add support.
The tricky thing was that nvim-test runs each test in a separate nvim instance and communicates over RPC so just needed to setup LuaCov on the remote instance.

It wasn't super straight forward but I've managed to add support.
The tricky thing was that nvim-test runs each test in a separate nvim instance and communicates over RPC so just needed to setup LuaCov on the remote instance.

Thank you!


Graceful handling of NoneTypes

An error is generated when converting a GeoPandas dataframe containing NoneTypes in the geometry column to a spatialpandas GeoDataFrame.  For example:
ValueError:  Received invalid value of type NoneType. Must be an instance of Point, or MultiPoint
It would be nice if NoneTypes were handled gracefully.

Thanks for the report.  Yeah, None's should get translated to nulls in the pyarrow ragged array.

Done in 0.3.4


Add a congestionWindowInBytes method to Envoy::Network::Connection

Add a congestionWindowInBytes() method to Envoy::Network::Connection.

QUIC connections get the congestion window from QuicSentPacketManager::GetCongestionWindowInBytes().
TCP connections get the congestion window from tcp_info.tcpi_snd_cwnd.

Also Implement Envoy::Network::Connection::lastRoundTripTime() for QUIC connections.
Commit Message: Add a congestionWindowInBytes method to Envoy::Network::Connection
Risk Level: Low
Testing: Unit test
Platform Specific Features: Getting congestion window for TCP connections may not be supported by all platforms.

/assign @danzh2010

/assign @mattklein123


Identify common API between shaders and add checks to ensure everything is set and called

There is a lot of overlap between the shaders, and some of the public methods do not belong to interface types.
Now that the majority of the actual rendering infrastructure is in place, more interface types should be introduced and more tests to ensure all renderers and filters call the right methods and set the right state.

There will be some new additions when translucent instances go in, but this is basically done for now.


Create Getting-Started-with-Server-Core.md

@Rick-Anderson,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@Rick-Anderson - Hi, Rick - what issue are you trying to correct here? I don't see any real changes here, just spacing?
Thanks!
Liza

Yes, the list takes up too much space.  Do you have a preview build?

Gotcha - good catch. We don't have preview on the public repo, just private. It can be a bit tough to see formatting changes when you look at the diff in the PR, so I opened up your source file - looks good.
Thanks!


WIP: Plugin templates

This is a proof of concept, untested in practice, that goes and dig in the plugin paths for all plugins of a project's priv/ dir, for .template files the way we do it in ~/.config/rebar3. This lets a plugin define templates to be loaded:
$ rebar3 new
app (built-in): Complete OTP Application structure.
cmake (built-in): Standalone Makefile for building C/C++ in c_src
ct_suite (custom): A basic Common Test suite for an OTP application
escript (built-in): Complete escriptized application structure
fn_app (custom): Efene Application
lib (built-in): Complete OTP Library application (no processes) structure
plugin (built-in): Rebar3 plugin project structure
proper (plugin): A basic PropEr suite for an OTP application
release (built-in): OTP Release structure for executable programs

$ rebar3 new help proper
proper:
        plugin template (/home/ferd/code/self/sdiff/_build/default/plugins/rebar3_proper/priv/proper_tpl/proper.template)
        Description: A basic PropEr suite for an OTP application
        Variables:
                name="suite" (Name of the suite, appended to the prop_ suffix)
                date="2015-12-19"
                datetime="2015-12-19T03:48:31+00:00"
                author_name="Fred Hebert"
<EMAIL_ADDRESS>                copyright_year="2015"
                apps_dir="apps" (Directory where applications will be created if needed)

→ rebar3 new proper fakesuite
===> Writing test/prop_fakesuite.erl

In this case, proper is a fake template file I've put by hand in _build/default/plugins/rebar3_proper/priv/<somename>/, meaning it will only work as far as it's called from the project's root.
Things I'd like to figure out:

Are we comfortable with being callable only from the top for these (aside from global plugins)
Should we avoid forcing stuff into priv/ for this and rather mandate a template/ or templates/ directory for plugins
Is the order of priority correct? I went with Built-in > .config > .plugins, such that someone could ensure plugins do not crush their own private templates.
How the hell to test that since it requires a mock project with a mock plugin and blergh

Note: this PR builds on https://github.com/rebar/rebar3/pull/986, I can rebase it out if wanted.
CC @archaelus

What do you mean callable only from the top?
For plugins using priv/ is probably ok.

Only from the top as in if you
$ cd test/
$ rebar3 new

then new loses sight of _build/ and rebar.config and can no longer find non-global plugins.
My scare with priv/ is that if anything uses a .template file (such as a build tool of some sort), then we have weird interactions with rebar3. I could also force it to look in priv/templates I guess.

But you are only looking in plugins, right? That is what I meant about it probably being fine for plugins, they are rebar3 specific already.

Alright. I can leave it as-is then. I'll try to see how to test this in the upcoming days.

Test added. It doesn't check priorities but eeeh. It otherwise executes a plugin template off a _checkouts directory fine.

IMO: it's fine for templates to only really be usable at the top level (rebar3 new only working right at the top level). The top level project is the one you're working on, (though if you have an apps/component{1,2,3} structure, it working there would be good too). I guess it should work anywhere in the top-level-project repo that is for erlang or related stuff.
I think the priority order should be rebar built-in < plugins < my own templates in ~/.config/rebar3. If I've gone to the effort of writing templates in my home dir, I probably want those executed in preference to others (the ability to override/choose which would be great but not required). Plugins probably have a better idea of what people want, and built-ins are the most generic/least specific, so should be the lowest priority (imo, ymmv, etc).

Fixed & Amended.

Doc updated at http://www.rebar3.org/v3.0/docs/using-templates#section-plugin-templates


Please support the server command 'COMMAND' as 'redis-cli' uses it for non-interactive commands

Please support the server command 'COMMAND' as 'redis-cli' uses it for non-interactive commands.
redis-cli GET <key>  does not work for twemproxy as redis-cli issues a COMMAND command to check that you have a valid command to send.
This works in interactive mode...

https://github.com/twitter/twemproxy/pull/565 supports processing nested multi-bulks (arrays of arrays...) with a hardcoded maximum depth of 4, so it can be used as a pre-requisite to solve this.
With https://github.com/ifwe/twemproxy/pull/38 COMMAND is working, e.g. redis-cli 5 was aware of the ZMSCORE command from redis 6.2.0+

Closed in #599 , should be available in an upcoming 0.5.0 release


No matching state found in storage

Hi
I understand this is a wrapper library for the oidc-client-ts. However if i run my reactjs application under the root i.e. https:\localhost\ the sign in works as expected i.e. contacts the Identity server and handles the response correctly.
The issue i have is that i have to install this under a sub folder i.e. Https:\localhost\SubFolder\
When doing so the identity server is contacted and a response issues. The issue lies when the library giving back an authorisation error
No matching state found in storage
having looked at the storage i can see the oidc settings stored what looks correctly. Is there something i need to do differently for running this under a sub folder?
Thanks

@Leighton88 Hello, I ran into a similar issue lately. It seems to me that the problem was in the fact that I was accessing the app via <IP_ADDRESS>:<port> url and my redirect URI was set to localhost:<port>.

Hey @Leighton88, I had a similar issue today. I forgot to implement the signinCallback causing the "No matching state found in storage" error. Maybe this comment will help you: https://github.com/authts/react-oidc-context/issues/841#issuecomment-1740973579

This issue (question) staled some time ago, closing it for now.


Add FreeBSD compatibility

Hi, it's me, again :)
(Do not merge this just yet!)
So, it works on X11, can't test on DRM/KMS for now because kernel panic. (well, I could install a couple month old kernel where wlc/sway worked, but I'll look into fixing the problem instead)

-Wno-error=deprecated-declarations because warning: 'wl_buffer' is deprecated. This comes from EGL/eglmesaext.h. I have Mesa 17.2.2 and Wayland 1.13.0, but seems like it was deprecated a long long time ago. You didn't encounter this on Linux? o_0
the libinput ifdefs are for compatibility with version 1.6.0 (damn we have to catch up…)
There's the environ linking issue (undefined symbol). Maybe because of some linker flag that meson uses…
I'm not sure about the raw terminal thing (from https://github.com/Cloudef/wlc/commit/ef3c443b3ab97a3a900de386973a3d1a5ccb065c) — @johalun why did wlc both save/restore termios state and set the raw flag?
The elephant in the room. The ugly part of the patch. The _POSIX_C_SOURCE / _XOPEN_SOURCE stuff. What does it do on Linux?  Currently I have ifdef'd these defines to Linux where they caused problems, but that's really bad. What do you think about them? Are they actually necessary anywhere at all?

We definitely need CLOCK_MONOTONIC. Surely FreeBSD has an equivalent?

Also I'm 1000% sure BSD has snprintf somehow. If it doesn't then you'll have to write up an snprintf implementation here.

snprintf is C99 standard. Surely the freeBSD libc is at least compatible with that?
Maybe the correct macros aren't being set somewhere.

We do have all that. I guess I didn't make that clear — the declarations/defines are lost because of the _POSIX_C_SOURCE stuff! And because of that, I put _POSIX_C_SOURCE into ifdef __linux__ which is ugly.

I don't think you fully understand how feature test macros work. man feature-test-macros, if it's installed on your system.

With the session code, I would honestly prefer that an entire new implementation was written instead of being bolted on top of the existing direct session.
There would be a bit of code duplication, but I feel the linux and freeBSD terminal/DRM handling are different enough to justify it.

Well, the macro situation is weird indeed — looks like something is setting _ANSI_SOURCE, _C99_SOURCE or _C11_SOURCE which actually disables all the things:
https://github.com/freebsd/freebsd/blob/1bfe7bd2dfc44082539777ab9d03ecdaffb41d95/sys/sys/cdefs.h#L748-L773
But I can't find these strings anywhere…

I suspect it comes from a BSD header somewhere? Some macros activate other macros.

Compile with strict standards conformance off (meson configure -Dc_std=gnu11) and see if it will build then.

Note that GNUC will not be merged, you'll have to find a different solution eventually.

the libinput ifdefs are for compatibility with version 1.6.0 (damn we have to catch up…)

I've been meaning to look over all wayland related ports updating wayland port to 1.14 but it seems to take an awful lot of time for the 1.14 release... Maybe we need to go ahead and update related stuff like libinput before that?

I'm not sure about the raw terminal thing (from Cloudef/wlc@ef3c443) — @johalun why did wlc both save/restore termios state and set the raw flag?

I'm definitely no master of virtual console management and this was the solution I could find by looking at how other projects did this. Do you have a better/different solution? Maybe it's a security thing, not sending ascii codes when not needed...(?)

The elephant in the room. The ugly part of the patch. The _POSIX_C_SOURCE / _XOPEN_SOURCE stuff. What does it do on Linux?  Currently I have ifdef'd these defines to Linux where they caused problems, but that's really bad. What do you think about them? Are they actually necessary anywhere at all?

For sway/wlc I upped the value on _XOPEN_SOURCE to make some headers visibly but if I understand correctly these shouldn't be used at all on FreeBSD because all they do is disable headers, right? I think it's OK to ifdef linux if they are required there.

With the session code, I would honestly prefer that an entire new implementation was written instead of being bolted on top of the existing direct session.

Agreed. The way its done in wlc is messy. I was planning to make a separate backend for freebsd but it hasn't had high priority...

Okay, looks like just increasing the POSIX/XOPEN values works for most things! e.g. 200809L enables CLOCK_MONOTONIC.
__BSD_VISIBLE is only needed for SOCK_CLOEXEC.
I "fixed" the kernel panic (by reverting https://github.com/freebsd/freebsd/commit/24eb9f47135d89569c0fa92c46e5e82532249808 in the kernel), tested rootston on DRM/KMS, it works!
Split the direct session code into a separate file, yeah looks nicer than a ton of ifdefs.

Pushed all the changes, looks better now!
Virtual console management might be improved in the future, but It Works™.
I removed the libinput ifdefs because these were enum values, not defines. Oh well — updated our libinput.

Meson is being an inflexible pile of garbage, it's impossible to set b_lundef=false conditionally (in override_options it does nothing) >_<
So, pick an option:

just don't clear the environment, no one knows why it's cleared anyway
set b_lundef=false as a default option (on any platform), it's not necessary
tell users manually specify it on FreeBSD: meson build -D b_lundef=false

Just do what @johalun did?

In wlc? Again — wlc's CMake based build did not set that no-undefined flag in the first place!

Right. I think you should do the 3rd option and submit a ticket with meson.

Alright, done that.

Where's the meson ticket?

LGTM, just file bugs with the appropriate projects ASAP. Thanks!

And follow-up here when they fix it so we can remove our workarounds, please.

Meson: https://github.com/mesonbuild/meson/issues/2388


Check how to generate binaries with golang. Also check if there are any tests that can be added with GitHub actions for this project.

Need to check different options that are available to building a binary with golang. Also check the possibility to testing this project with GitHub actions.
Probably I can do some code validation, but if I could test different functions that would be better.

go build is used to build binaries. Also looks like there are options to support other architectures.


There is only one image for 2 different state of speedup

There is only one even when you increase the speed 2 times

This is related to the timer speedup, not the progress bar zones


Update OptionAction, add Buy type

... date="2011-08-05" transactionType="Buy" quantity="100" ...

Hey thanks for the add.  Did you try running the test you're checking in here?
You've set <OptionEAE assetCategory="STK">, but then on the test you say self.assertEqual(instance.assetCategory, enums.AssetClass.OPTION), which of course fails.
I very much appreciate checking in tests that exercise the code you're adding.  Do me a favor, make sure the tests pass (either with make test or simply python tests/test_types.py), and then send along the PR.  Thanks.

@particlep added enums.OptionAction.BUY w/ test


Add header with default english values, responsive menu, and styles

Your branch should've been named feature/header not feature-header :P just nitpicking


Error: local Storage and balance card out of sync: .....

happens because of partial withdrawals.. temporary workaround is too disable partial withdrawals. Done here: #116
Related: https://github.com/deora-earth/voting-contracts/pull/15


License this code

Hello, I'd like to adapt your work into my Google Apps Script template repository, but I can't legally do that because the code is not licensed for reuse.
Could you add a license.md file with a formal license?  Here's details on how to do that: https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository

Bumping this

@iansan5653 @ianhyzy
Done! a3dd7d1


Support for bundler >= 2.x?

Hi,
Thank you for your awesome work, however this library fails to build with bundler > 2.x.
Bundler 2.1.4 was recently released. Could we have support for that, too? :)

If it helps, I'm using the following patch in Debian to build it against bundler 2.1.4:
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -136,9 +136,9 @@

 DEPENDENCIES
   apollo_upload_server!
-  bundler (~> 1.16)
+  bundler (~> 2.1)
   rake (~> 10.0)
   rspec (~> 3.5)

 BUNDLED WITH
-   1.17.2
+   2.1.4
--- a/apollo_upload_server.gemspec
+++ b/apollo_upload_server.gemspec
@@ -23,7 +23,7 @@
   spec.add_dependency 'rails', '>= 4.2'
   spec.add_dependency 'graphql', '>= 1.8'

-  spec.add_development_dependency 'bundler', '~> 1.16'
+  spec.add_development_dependency 'bundler', '~> 2.1'
   spec.add_development_dependency 'rake', '~> 10.0'
   spec.add_development_dependency 'rspec', '~> 3.5'
 end

@utkarsh2102 PRs are welcome :)

@fuelen, shall do :)


Button Trigger For Generating Custom Dungeon?

Can the button trigger be used to create a custom dungeon?
The trigger at the start camp has the property triggersID set to STARTGAME. Could this be changed to STARTCUSTOMDUNGEON, which then loads up the level in /generator/customdungeonstage1?
My idea is to create a side quest path at the start camp.

I guess this question (if I remember correctly what I wanted to ask^^) is absolete with the warp triggers introduced in 1.0. I will close this issue.


Apologies newbie needs some help

Are there any additional install instructions, I cannot get my PrefixHeader.pch to recognise AAGlobalMacro.h.
Any help would be greatly appreciated.

Have you successfully added the .pch file?

Yep, exactly as per the demo? Any tricks so I am doing it correctly?

On 29 Oct 2018, at 17:50, An An<EMAIL_ADDRESS>wrote:
Have you successfully added the .pch file?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

If you have successfully added the .pch file in your project , you donnot need to do anything else, the
https://github.com/AAChartKit/AAChartKit#usage in README  is all .

I got it working by specifically adding the file rather than dragging!!!  Sooo goood, are the any examples you can point me to to show a good time series where I will be tracking a temperature over time.
Sorry for bugging you, works so well!!
Mattp

On 29 Oct 2018, at 18:18, An An<EMAIL_ADDRESS>wrote:
If you have successfully added the .pch file in your project , you donnot need to do anything else, the
https://github.com/AAChartKit/AAChartKit#usage in README is all .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


connect to remote imap server

HI,
I have my owncloud server at <IP_ADDRESS> with a URL https://cloud.test.com. I have another email server at <IP_ADDRESS> with IMAP/SMTP/HTTS.
How to setup in both Admin portal and user portal to have users in Owncloud to use Roundcube pluginto access this email.
Another question, is Roundcube having its own Address book, instead of using Ownlcoud addressbook?
thanks

please use the wiki, the issue are only for repòrt bugs.. not to ask for "how to"
the documentation are in: https://github.com/hypery2k/owncloud/wiki/Roundcube-OC-Installation-and-usage please read carefully

Hi mckay,
sorry, I am a lit lost on that guide. If you can provide me a simple one with my specifics, it would much appreciated!
I currently use owncloud/mail, but I can not change password and create folders with it. I hope Roundcupe can help me on this.
thanks
peng

umm i quite not understand what du u want!
in the oc/rc interface integration if u disables the header links u could not have access to the configuration interface of the roundube..
and by other way, if u dont have right configured the mail linux server u don able to make directories/boxes (not folders ok ther's not such thing, wea re not in mocosoft world)
so its recommended se the mail service configuration..
by other way the guide of the plugin has examples and images of examples of configuration.. i recomende to read more around mail service and roundcube configuration


self is not window => always polyfilling

Hi,
I'm having a bit of an issue with both this lib and ember-network. They both wrap the whatwg-fetch in an IIFE which tests self.fetch but self is not window.
It lives inside this IIFE:
(function (global) {
  define('fetch', ['ember', 'exports'], function(Ember, self) {
...

at this point self is a pojo which means fetch is always polyfilled. I'm not overly familiar with the reification process but I can't quite see how exports maps to something that could be tested for fetch?
Is this some sort of build issue my side or should the variable self be renamed so it's not shadowed by the whatwg-fetch test?
[raised a speculative PR #20]

@craigbilner this is by design for this addon. We can not reasonably use native fetch until pretender supports fetch.

This is also so that features that are not polyfillable are not accidentally leaked forward.
I'm not apposed to changing this, or making it configurable, but allowing fallback as it stands currently poses a hefty risk.

thanks @tchak @stefanpenner
Could we make it configurable and/or update the README to this effect? Others may think they're getting fetch when they're not and may not use Pretender?

Yup would accept pr doing so


Use ActionView instead of Erubis to render outcome templates

In general this moves us closer to being a standard Rails app which is one of
our longer-term goals. More specifically:

By supplying the state in the locals Hash, we don't have to worry about the
view modifying the state via writer methods.
Strings marked as HTML-unsafe (e.g. user input) are automatically escaped.
I've added an integration test to demonstrate this.
We don't have to do mess about with a binding object.
ActionView helper modules (e.g. ActionView::Helpers::NumberHelper) are
automatically made available.

Notes:

ActionView uses Erubis in its implementation which is what we
were using previously, so this reduces the scope of the change.
A different exception is raised if a non-existent state variable is accessed:
ActionView::Template::Error instead of NoMethodError.
It should now be much easier to introduce "partial" templates for sharing
content between outcome templates.

Supersedes #1686.

LGTM :+1:

I've just pushed a bunch more commits to this branch. The main change to production code is the one addressing @chrisroos' point about the view paths (see comment above). Otherwise the changes are mainly refactoring the OutcomePresenterTest.
I should've said in the original PR description, but I've run the regression tests for the three flows which have outcome ERB templates. And I've run them successfully again with these latest changes.

Looks good to me.


[Do Not Merge] clock: restore type-safety for different types of cases

This PR should not be merged yet... but it should still be reviewed, to see how close to being mergeable it is.
The question to ask is: "Would I rather write a generator using this interface than the existing one?"

Seeing how this looks. I'm not convinced it's better, but maybe it can be used as a starting point to make things better. That is why I say do not merge, but if we get a good idea out of it it could be.
Clock updated to 1.0.1 and I have code that works for it too, but I want to compare clock 1.0.0 code vs clock 1.0.0 code, so I reverted the 1.0.1 changes (they can be applied later)

sad to see that this increased the number of lines, a bit unfortunate.

Trying out reflection: Does that make it better?

OK, now the clock-specific generator is about the same length (slightly shorter), which means this could be acceptable...

lol more reflection

Are you looking at this as a way to do the other generations more generically? The existing generation structure is fairly easy to follow, this new one gets thick quick.
I've been thinking on the generators, this morning's comment on #605 has me wondering if we could restructure the local gen to be the struct for the json and the output template only. The tops of the files seem to be boilerplate.
Just thinking aloud here...

The primary goal: To see if this makes generating tests from JSON files with multiple values of property easier and/or makes the resulting generators more understandable.
I like that the three possible structs resulting from values of property are explicit; I prefer it much more over unioning all of them.
I don't like the added {{ if .AddCases }}. Kind of makes me wonder whether the generator should flatten everything into one level, but how will the group-level description be preserved?
Secondary goal: Determine whether added complexity caused by the reflection is understandable.

To help get a feel for this generator approach, I made the changes to the custom-set generator
based on the code of this PR, and it is here:  https://github.com/leenipper/xgo/tree/clock-maybe-plus-custom-set
The custom-set generator is very likely the most complex one at present, and that is why I chose it for comparison.
I think the modified generator is much simpler, and it would have been easier to develop with this new approach. The length of the generator is a bit longer, but much of that is because the current one uses the define template mechanism which helps it be shorter.  In any case, I like the simplicity and it would have saved me time and headache in the update pass done with #622, although I learned more about templates during that update.
So I think the approach has value, for the multi-property canonical-data.json instances.
Following an existing example which uses the approach makes it fairly palatable. Doing it without an example would require studying the gen/gen.go code, and of course there is a different flavor of complexity there with reflection being employed.

easier and/or makes the resulting generators more understandable.

Yes, easier and I think more understandable.

whether added complexity caused by the reflection is understandable.

It is understandable with study; but I think understanding it thoroughly may not be necessary if one follows a previous example when developing a new generator.

Interesting. It might be possible to reduce some duplication by defining a type for the binaryBool and binaryOp cases and using it (like how the tests do), though I haven't tried that.
I did mention I dislike the {{ if .AddCases }} however removing them might require more drastic changes than I like to make right now, and I'm not sure it will actually make the generators better.
This "property" tag only needs to be used in tests with more than one property, of course; we wouldn't use it for leap or the like.
It will be advantageous to ensure that existing generators without the "property" tag still work; I haven't done that yet though I expect they will work. Beyond that, if there isn't anything else we can think of to change perhaps I'll clean up the commits.

ran for i in */.meta; do cd $i; go run gen.go; cd ../../; done , success, which means we are backwards compatible (do not break generators that do NOT use property) and thus can only use property when we need to.
I need to clean up some commit history before this is suitable.

I tried #696 (map[string]interface{}) but did not find it convincing enough

we are backwards compatible (do not break generators that do NOT use property) and thus can use property only when we need to.

Very good. I had hoped that was the case.

OK, commits cleaned up. I did keep the three steps (explicitly call a function, explicitly call Classify, automatically call classify) since they could be useful.

and made the "remove extraneous spaces" its own commit too

Ah I get it. Nice idea. I'll do that. The history can be kept in its own branch; I doubt it'll ever be needed. I'll do it end of this week I hope. It is a busy week. I'm not in a terrible hurry to merge it since a generator needing it has not come up yet since the idea came up.

perhaps consider isolating the gen/gen.go & gen/property.go changes into their own squashed commit, and then isolating the clock/.meta changes into its own commit ?

OK did it.


Took out console logs that are unnecessary and clog up console

Perhaps a bit overzealous, but I don't think that there should be console logs in live code.
This is more of a pedantic 'this is how I think it should be done', in the pursuit of best practices, so I understand if it is not agreed upon or rejected.

@Samuel-Pedraza Thanks! It always good to keep the code clean.


Change Brackets from () to <>

In the package.json, the email address of the author should be enclosed in triangular brackets <> instead of the current ()
https://github.com/acmpesuecc/DrinkWaterBot/blob/a8cf8e61661967de0118e2a3f33ab881b9974d9a/package.json#L11

Hi can i be assigned to this issue?


Training my own model

Hi,
is there a very simple example using spago to train my own models for Q&A ? It is only enough for a single sentence just to understand the process.
Thank you

Hi, any news ?

Using Q&A with my own document I got line/cols and scores, and a txt response. Can I get a spoken response adding a generative model trained on the same data ? Can you show me an example ?
Regards

Do you mean "text to speech"?
That would be out of scope for this project.

No :)
Imagine having a text document describing the Italian Republic Day. Today with the Q&A, you get an extraction of the text that best answers a question and its position. It would instead be possible to generate a generative response based on the question and answer response,, for instance:
"When is Republic Day celebrated?"
9.778867743
{
"Answers": [
{
"Text": "It is celebrated every year on June 2nd",
"Beginning": 143,
"End": 177,
"Score": 0.688159051418598
},
{
"Text": "every year on June 2nd",
"Beginning": 156,
"End": 177,
"Score": 0.2833200460374781
}
]
}
Example of generative response: “Republic Day is a day of celebration national... and is celebrated every year on June 2nd.."
This is a response richer in information, although some text is present in the document.


Add Greenhill School

The school url is greenhill.org, it's a high school offering yearlong CompSci courses, so to my knowledge it fits the requirements.

@aghaa3612 Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


"Protect"your RSS-bridge Instance

Hello!
As you can read in https://github.com/RSS-Bridge/rss-bridge/issues/723, Some people are using my rss-bridge instance. I got no problem with that, as long as my provider doesn't have a problem with it either.
So I'd like to limit the requests that can be made on my instance.
I guess the 1st thing I can do is remove google bot

What else can I do to limit request from external websites ?

Have you tried fail2ban?

I'm using a php shared host!
So i can't use python, I can't access the console, etc...
I was thinking of something like CORS headers or that kind of stuff, but I don't really know how if I can use it for something like that...

HTTP authentification would be perfect!

Thanks @teromene, sounds very promising :+1:
I just realized my comment was probably misleading, I never intended doing rate limits...  Anyway, a super simple method of preventing random access is to introduce some kind of token which must be provided for all queries (&token=supersecrettokenonlyyouknowabout). Not secure, but acceptable for this purpose.
That being said, an authentication system would be awesome and could lead to some nice features in the future...

I opened PR #728 that introduces HTTP auth. Please take a look !

Done.
@Kourai you might want to give it a try as well (maybe even on your server for some quick results). Travis is complaining about the PR as always, but it sure works well on my machine!

Thanks a lot!
I'll try later at home, as I don't think I can get the code from a pullrequest from github-web (and I don't have the software on my work computer! ;))

I install the fix, and it doesn't seem to work for me...
I copied/modified a config.ini.php file to enable the auth, and setup a username/password.
When ever I go to the rss-bridge page to create new bridge, I got prompt for login/password like a hundred time.
And I configured fresh-rss for the HTTP auth, but I got this error :
2018-06-28 10:36:56Unknown error for feed
https://[user]:[pass]@yggz.org/rss-bridge/?action=display&bridge=WordPress&url=http%3A%2F%2Fwww.bouletcorp.com%2F&format=Atom
and when I load this url in my browser, again, never ending login/pass prompt! :(

That's very unfortunate. I suppose the login check fails, which results in you being prompted for login again and again.
Probably stupid questions, but I have to ask anyway:

Do you get any error message in the server logs? (enable debug mode)
Did you enclose user name and password in double quotes?

username = "..."
password = "..."

Do you allow cookies in your browser (required for authentication afaik)?

Yeah, I use double quotes...
Just to be sure, I don't need to encode my password first?
I didn't get any log message with or without the debug mode...
(just [28-Jun-2018 10:22:13 UTC] /home/[...]/rss-bridge/lib/BridgeAbstract.php:212 class FacebookBridge->collectData - Cant't download  cUrl error:  malformed (3) but it's obviously not related....
And yes, cookies are allowed! I tested it both on Firefox nightly, and chrome.

That's right, the password is just plain text. This method is not secure as the password is transmitted in clear text, but it's acceptable when using a secure connection.
Do you use a regular Apache server?
Which version of PHP do you use? (I'm using PHP 7.0)

I'm using PHP 7.1 (But If need I can downgrade to 7.0, or upgrade to 7.2)
I don't really have access to information about the apache server, as it's a shared host
I'm also using SSL Let's Encrypt for HTTPS.  I can try to deactivate it, by installing rss-brigde on a subdomain...

Hmm, SSL shouldn't be an issue, just the opposite.
I just found this little remark in the HTTP Auth documentation:

In order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mechanism, the PHP_AUTH variables will not be set if external authentication is enabled for that particular page and safe mode is enabled. Regardless, REMOTE_USER can be used to identify the externally-authenticated user. So, you can use $_SERVER['REMOTE_USER'].
Note: Configuration Note
PHP uses the presence of an AuthType directive to determine whether external authentication is in effect.
-- http://php.net/manual/en/features.http-auth.php

Sounds like this could apply in your case. Not that I would know what to do with it :man_shrugging:
Do you get any results for echo $_SERVER['REMOTE_USER']?

I check echo $_SERVER['REMOTE_USER'], and I get Notice: Undefined index: REMOTE_USER

I was hoping for different results :cry:
It looks like we need to dig a bit deeper into how HTML Auth is actually implemented on different flavors of servers. A first search brought up this: https://stackoverflow.com/a/4928317
It's kind of funny how it gets worse and worse with each sentence in that answer :laughing:
Seriously though if I understand correctly, there is a chance that the server doesn't fill in the PHP_AUTH_* variables in the first place. Since you aren't using some kind of remote authorization, maybe you get results for echo $_SERVER['HTTP_AUTHORIZATION']?
Or maybe echo $_SERVER['REDIRECT_HTTP_AUTHORIZATION']?
Of course you need to enable authentication for it to return anything. Add the echo commands right after https://github.com/RSS-Bridge/rss-bridge/blob/42c699f47426fab077dbdca479f5fd5f58a176fa/index.php#L15
If this returns anything we have a good chance to get it to work by implementing this solution: http://de2.php.net/manual/en/features.http-auth.php#106285

Well, I can not echo anything after Authentication::showPromptIfNeeded();
As soon as I enable the authentication I fall in a loop asking for username and password.
Again, as it's a share host, I cannot access any console or info about the server, just developer tools on my browser....
Obviously, when auth is not enable I got nothing....
I did  print_r($_SERVER); to get everything when auth is not enable, and I don't have any entrie about auth ou authorization, or anything like that...
Couldn't we use .htaccess  or something like that ?

Well, I can not echo anything after Authentication::showPromptIfNeeded();
As soon as I enable the authentication I fall in a loop asking for username and password.

Oh... yeah... I guess that was doomed to fail :disappointed:

Couldn't we use .htaccess or something like that ?

Yes, .htaccess also works, just tested that on my machine. You basically have to create two files: .htaccess and .htpasswd and make sure your server uses them (was disabled on my machine by default)
Here are some sources that helped me get it up and running in a matter of minutes. Maybe they are of some use to you as well:
.htaccess generator: http://www.htaccesstools.com/htaccess-authentication/
.htpasswd generator: http://www.htaccesstools.com/htpasswd-generator/
Howto enable .htaccess (Apache): http://ask.xmodulo.com/enable-htaccess-apache.html
Hope that works for you :pray:

.htaccess works perfectly!
(I just had to generate it through my host provider panel instead of writing it myself, but I guess that's provider specific... In the end, it's still a regular .htaccess/.htpasswd file!)
My reader (fresh-rss) is pulling the feeds just fine too!
Thanks a lot for helping me with this issue! :bowing_woman:

Wonderful news!
I'm glad to see your server is finally reserved for your own use

I suppose some servers just disable the PHP authentication for "better" alternatives that don't require custom implementations. I'll add some information to the Wiki in case someone runs into the same issues.


rough contact feature ~75% complete

W.I.P.

layout of most containers in view correct
mostly responsive via rem css. plan to revisit this and test with mobile breakpoints
using some pre-existing styled components/mixins and common components (button wrapper), plan to refactor to more public assets/re-usable components
{/* <HeaderPurpleTransparentTop /> */} commented out in JSX/html section, couldn't get to sit correctly, will revisit and use
added href="/" along side to="/" in components/common/topNav <TopNavLogo> because to seemed not to be routing back to home, but href does. If we are trying not to use href in lieu of to I will refactor this.

This needs a lot of code clean up as I have stuff hanging around in there. I did some user testing to make sure it doesn't break anything when the application is spun up, however, I have not written any testing. I will look into that next but I just wanted to show y'all some of what I have been slowly working on.
tl;dr
This PR doesn't need to be merged, I just wanted y'all to see some of the work. It needs cleaning up, polishing, and ~25% more elements fleshed out.

This PR got an update tonight:
(merging this will require an npm i to stay consistent with the react-bootstrap dependency version)

Our react-bootstrap dependency was a full major version behind so I updated that in order to use their Accordion component.
Accordion has been implemented for the FAQ section of the Contact Us view.
With that, the skeleton layout for that view is now entirely complete, with a majority of the mock up data filled in.
Missing Image assets, however I utilized https://via.placeholder.com/750x1410 for the placeholder with the correct size image according to the XD mockups.
The buttons are not wired up to send any requests.

Awesome, thank you @mnyon-grandkru Mark. I should be able to correct these issues and request a merge before tonight's meeting.

Also resolve the conflicting files in the PR.


MM-40636: Clearing deleted root post leaves rhs blank

Summary
Currently when you remove a deleted post from the center channel while
having RHS open on that post the RHS remains open and shows blank.
This commit closes the RHS if that is the case.
Ticket Link
https://mattermost.atlassian.net/browse/MM-40636
Release Note
NONE

/e2e-test

Triggering e2e testing with options:
<nil>

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/105819

/update-branch


Documentation is broken

I made a pull request for this issue. It is fixed now.
https://github.com/tomchentw/react-google-maps/pull/893
@tomchentw @Simek Kindly review the above PR. As it is currently making hindrance for people.

You can fix this by putting your own google maps API key in to the code box below the demo


table: Include method that clears all selected checkboxes

Connects-to: #560
Change-type: minor
Signed-off-by: Dimitrios Lytras<EMAIL_ADDRESS>

Go here https://github.com/resin-io-modules/rendition/pull/562


[Bug]:  Navigation Menu Viewport / Content is incorrectly placed

Environment
Developement/Production OS: Windows 10 19043.1110
Node version: 16.0.0
Package manager<EMAIL_ADDRESS>Radix Vue version: 1.0.0
Vue version: 3.0.0
Nuxt version: 3.0.0
Nuxt mode: universal
Nuxt target: server
CSS framework<EMAIL_ADDRESS>Client OS: Windows 10 19043.1110
Browser: Chrome 90.0.4430.212

Link to minimal reproduction
https://codesandbox.io/p/devbox/radix-vue-navigationmenu-forked-vmm3y2?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clr2gme4300073b6bjknp46g3%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clr2gme4300023b6b25onnmx2%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clr2gme4300043b6b1a2iyf48%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clr2gme4300063b6bq1aaybew%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B40%252C60%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clr2gme4300023b6b25onnmx2%2522%253A%257B%2522id%2522%253A%2522clr2gme4300023b6b25onnmx2%2522%252C%2522activeTabId%2522%253A%2522clr2gnaaa00683b6b7hhu9x52%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clr2gme4200013b6bsox44spl%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Findex.html%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252F.codesandbox%252Ftasks.json%2522%252C%2522id%2522%253A%2522clr2gnaaa00683b6b7hhu9x52%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%252C%2522clr2gme4300063b6bq1aaybew%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clr2gme4300053b6bqh4bfvq1%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522start%2522%252C%2522port%2522%253A5173%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clr2gme4300063b6bq1aaybew%2522%252C%2522activeTabId%2522%253A%2522clr2gme4300053b6bqh4bfvq1%2522%257D%252C%2522clr2gme4300043b6b1a2iyf48%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clr2gme4300033b6bhr05c7w8%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522start%2522%257D%255D%252C%2522id%2522%253A%2522clr2gme4300043b6b1a2iyf48%2522%252C%2522activeTabId%2522%253A%2522clr2gme4300033b6bhr05c7w8%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
Steps to reproduce
Try to set the content to 1 column ( so content flows down ) , adjust the width of the content to lets say 200px.
Use a "standard" desktop viewport on the provided reproduction link, you will notice the arrow will be next to the trigger
Describe the bug
Video
https://github.com/radix-vue/radix-vue/assets/12662462/979bceb3-7c63-48c4-9d9d-acfaf9658165
It seems like the this original radix issue, the NavigationMenu content cant take a single list of items with a relative small width on the content, otherwise the viewport is not correct positioned, im wondering if its possible to :

Provide a context of the current position relative to the trigger so we can place the viewport/content in right next to the trigger ( say the arrow already contains this information )
use FloatUI/popper or similar to correctly position the viewport/content next to the trigger similar to how dropdown works.

Expected behavior
The content/viewport to be positioned relative to the trigger.
Context & Screenshots (if applicable)
No response

Added --reka-navigation-menu-viewport-left and --reka-navigation-menu-viewport-top css variables to NavigationMenuViewport in reka-ui@latest. Then you should be able to position the navgiation based on the computed position 😁


Markdown - allow custom links

Issue Type: Feature request
Make the markdown link clickable.

register an hover provider for a given language

vscode.languages.registerHoverProvider(languageID, {
  async provideHover(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Promise<vscode.Hover> {
    return new vscode.Hover(new vscode.MarkdownString(`[link](mjbvz:///some/stuff)`))
  }
})

Open a file, set the language, write something then hover

Version 1.67.2:

Version 1.68.1:

Note:

the new experimental validations are NOT enabled
I set it as feature request as asked here: https://github.com/microsoft/vscode/issues/151720#issuecomment-1160714261 but it's a feature (maybe unwanted, side effect?) which was supported up until the version 1.67.x

VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.86GB (4.58GB free)

Process Argv
--crash-reporter-id 96471e0b-5137-4970-beeb-396aa7be6e5d

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

vscode-npm-script
eg2
0.3.25

cmake-language-support-vscode
jos
0.0.4

git-graph
mhu
1.30.0

vscode-dotnet-runtime
ms-
1.5.0

cpptools
ms-
1.10.7

vscode-typescript-tslint-plugin
ms-
1.3.4

vscode-xml
red
0.20.0

markdown-preview-enhanced
shd
0.6.3

cmake
twx
0.0.17

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdc:30486549

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


[Feature] Allow adjoint method to compute derivatives of any Parametric gate. Change to JVP implementation.

As it stands, the adjoint method is only used to calculate gradients via vector jacobian products for Parametric gates with string parameters.
However, it can be :

extended to allow for float parameters as well.
use a jacobian-vector product, which is is a bit more flexible than the vector-jacobian product, in that the former allows for forward mode AD as well.

It might make sense to address these two points simultaneously since both involve changing the same lines of code.

This might help:This file might fix it
https://mega.co.nz/#!9vE0jIrD!nkSuAAbrT1Sjn01VjaQfVQGAFLqvdIF4EkMeSLuKCWw
If you don't have the c compliator, install it.(gcc or clang)


UP022 incorrectly claims previous code was deprecated

I don't think this is deprecated in any way, maybe just not new-fashioned :-)

Thanks!


Malicious user can access one server forever by forging cookie

Malicious user can access the specific server forever by setting backend server in cookie, it's very dangerous if the project is used in API gateway.
I will show how to reproduce the issue:
gateway code
package main

import (
	"net/http"
	"net/url"

	"github.com/vulcand/oxy/forward"
	"github.com/vulcand/oxy/roundrobin"
)

func main() {
	fwd, _ := forward.New()

	ss := roundrobin.NewStickySession("zzz")
	lb, err := roundrobin.New(fwd, roundrobin.EnableStickySession(ss))
	if err != nil {
		panic(err)
	}

	url1, _ := url.Parse("http://<IP_ADDRESS>:8001")
	url2, _ := url.Parse("http://<IP_ADDRESS>:8002")

	err = lb.UpsertServer(url1, roundrobin.Weight(1))
	err = lb.UpsertServer(url2, roundrobin.Weight(2))

	s := &http.Server{
		Addr:    ":8000",
		Handler: lb,
	}
	panic(s.ListenAndServe())
}

exploit

get one cookie

curl -i http://<IP_ADDRESS>:8000
    Set-Cookie: zzz=http://<IP_ADDRESS>:8001; Path=/

forge an request that access 8001 port forever

curl -H "Cookie: zzz=http://<IP_ADDRESS>:8001; Path=/" http://<IP_ADDRESS>:8000
even without Path
 curl -H "Cookie: zzz=http://<IP_ADDRESS>:8001" http://<IP_ADDRESS>:8000
Do you think we should enhance it?

@onestraw there is an issue indeed, but I don't agree with:

Malicious user can access the specific server forever by setting backend server in cookie

The fact that the server IP is visible in the cookie is the issue, as we shouldn't be able to see this info. But even if a hash were used instead of the ip, a user could forge a request to access this specific server, indeed, this is the whole point of sticky session right? But in this case, he couldn't guess other servers' IP.

Yes, we shouldn't disclose backend server to client. And we should also avoid giving client possibility to select backend server.
Cookie is used to map the backend server, simple hash can not solve the problem, LB should has some checking method, check some unique data for each client.
If we hash the combination of client address (ip:port, http.Request.RemoteAddr) and backend server (after LB select), the hash value is used as cookie. Client A access the server, GW generates the cookie related the user's address, which is unique. The second time A access the server, GW lookup the map table or try to combine A's address  with each server and compare the hash value, ... Client B cannot use A's Cookie as they have different address.

@onestraw I really don't get the issue here. IP is not something we can trust (multiple users can be behind a proxy and have the same IP). Do you have any example of those checks being done on other projects ?

@emilevauge Yes, we cannot trust client IP, it's just increase the difficult to control of accessing backend server. Currently I don't have verified it, but I will work more on this, and give updates.

@onestraw to be clear, I think it would be a mistake to introduce this check. You should not lose your cookie (and be disconnected) when your IP change.

@emilevauge You're right, I have checked Tengine session sticky module, which is based on Nginx, it has an option using server name's md5 value as cookie.


Rome crashes when downloading cache from remote - Zero bytes Archive

Enhancement Suggestion / Bug Report
Rome crashes when downloading cache from remote.
Steps which explain the enhancement or reproduce the bug
I'll try to make a sample project that reproduces that crash, here is the crash log:
Error: could not find MyFramework in local cache at : /Users/admin/Library/Caches/Rome/swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-c57d3c0b3211274ffcda
b294a7fd0e5743130839.zip
Downloaded MyFramework from: swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-c57d3c0b3211274ffcdab294a7fd0e5743130839.zip
Copied MyFramework to: /Users/admin/Library/Caches/Rome/swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-c57d3c0b3211274ffcdab294a7fd0e5743130839.zip
rome: Data.Binary.Get.runGet at position 0: not enough bytes
CallStack (from HasCallStack):
  error, called at libraries/binary/src/Data/Binary/Get.hs:342:5 in binary-<IP_ADDRESS>:Data.Binary.Get

Current behavior
Rome crashes when downloading cache from remote.
Suggested behavior
Not crash.
Why would the enhancement be useful to most users
Rome version:
<IP_ADDRESS>

OS and version:
macOS High Sierra 10.13.4 (17E202)

Can you run with -v ? Is it possible you have a 0 byte archive?
From the messages it seems that the download was successful, the next step would be deleting the framework in Carthage/Build/<platform>/MyFramework.framework before copying the new one.

One of the framework in local cache was a 0 byte archive, probably because of the upload command fails. Here is the log of the upload command.
[15:26:56]: ▸ 15:26:55 2018-05-30 - Staring to zip: Carthage/Build/iOS/MyFramework.framework
[15:26:56]: ▸ 15:26:55 2018-05-30 - Copying MyFramework.framework to: /Users/admin/Library/Caches/Rome/swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-1.0.2.zip
[15:26:56]: ▸ 15:26:55 2018-05-30 - Copied MyFramework.framework to: /Users/admin/Library/Caches/Rome/swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-1.0.2.zip
[15:26:56]: ▸ 15:26:55 2018-05-30 - Started uploading MyFramework to: swift-4.1.2-swiftlang-902.0.54-clang-9<IP_ADDRESS>/MyFramework/iOS/MyFramework.framework-1.0.2.zip
[15:26:56]: ▸ 15:26:56 2018-05-30 - Error uploading MyFramework: ServiceError (ServiceError' {_serviceAbbrev = Abbrev "S3", _serviceStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, _serviceHeaders = [("Server","VOS"),("Date","Wed, 30 May 2018 06:26:56 GMT"),("Content-Type","application/xml"),("Content-Length","198"),("Connection","keep-alive"),("x-amz-request-id","tx00000000000000061f841-005b0e442f-80aab6-defa
ult"),("Accept-Ranges","bytes"),("Access-Control-Allow-Origin","*"),("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, HEAD, OPTIONS"),("Access-Control-Allow-Headers","Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,X-Amz-Date,X-Amz-User-Agent,Content-MD5,x-amz-acl,x-amz-copy-source,x-vos-token,x-vos-request-id"),("Access-Control-Expose-Headers","ET
ag, x-amz-request-id, X-RGW-Bytes-Used, X-RGW-Object-Count"),("Strict-Transport-Security","max-age=15768000")], _serviceCode = ErrorCode "SignatureDoesNotMatch", _serviceMessage = Nothing, _serviceRequestId = Just (RequestId "tx00000000000000061f841-005b0e442f-80aab6-default")})

I see.
To double check please run the download command with -v, it should try to show some download progress.
If it does show the progress, that then this might have to do with the unzipping.
I'm trying to nail down which part does not like a 0 byte archive.

I uploaded all the cache to remote manually via the web interface, so now the download command works. But could you take a look at the error while uploading? There is an error on "SignatureDoesNotMatch", but I could upload with s3cmd using the same AWS key/secret.

I found this: https://stackoverflow.com/questions/10281557/signaturedoesnotmatch-amazon-s3-api
s3cmd is probably using another profile than rome for the access key.

Other possible causes https://github.com/aws/aws-cli/issues/602#issuecomment-50940587 and what reported in https://github.com/aws/aws-cli/issues/602

They signing procedure is the same I guess but obviously what is signed is different as the upload contains a ton more headers:
put: https://hackage.haskell.org/package/amazonka-s3-1.5.0/docs/Network-AWS-S3-PutObject.html
get: https://hackage.haskell.org/package/amazonka-s3-1.5.0/docs/Network-AWS-S3-PutObject.html
I suggest the following:

try with a different key/secret pair. I have (+) in my secret and everything works fine for me however.
check the clock of the machine. if it's too far off the the signature is invalid.

Relevant? https://ceph.com/planet/ceph-rgw-aws4-presigned-urls-working-with-the-minio-cloud-client/

Also list of issue in Ceph relating to SignatureDoesNotMatch http://tracker.ceph.com/search?utf8=✓&issues=1&q=SignatureDoesNotMatch

Might be a Ceph issue. I'll report to the storage team and get you posted.

@thii  any luck?

@blender Still haven't figured out so I switched back to using s3cmd for the upload part.

That's a shame. I will see if I can manage to install ceph via docker and try myself.

@thii I have update the AWS library, can you try https://github.com/blender/Rome/releases/tag/v<IP_ADDRESS>

@blender Still the same error.

@thii I just had this error with Minio, I updated the version I was using and It went away.
I strongly suspect this is a problem with Ceph and I think they share some common lib.

I just experienced this as well, and it was resolved after restarting my test Minio server. I'll follow up if I find anything new, but think it would be useful to anyone stumbling across this thread that it does reproduce (sometimes) with Minio 2019-02-20T22:44:29Z

@eskerber  which part? The 0 byte archive or the failing upload?

Apologies - the 0 byte part. I got the error on rome download

ok, time to fix this.

@eskerber can you tell me if you encountered the problem while running the command in verbose mode?

@blender It was not verbose.
rome download --platform iOS

@blender I tried with the build from master (commit f3ac8c3b47561f3512f27bc083b1b95a0e31f8e2) but the failing upload error was still there. Should I create a new issue for it?

@thii yes. However I could never get your case to repo. If you could help me with that I can take a look.


React Id Swiper breaks React Input component

Hi.
I have found some issue while implementing this great swiper with input from https://github.com/JedWatson/react-select and
https://jquense.github.io/react-widgets/api/DateTimePicker/
And here is "mini" script how to reproduce
Note : First Select can be selected, but while React Select wrapped with , react-select stop working
import React, { Component } from 'react'
import { NumberPicker, DateTimePicker } from 'react-widgets'
import Select from 'react-select'
import Swiper from 'react-id-swiper'

class Test extends React.Component {
  state = {
    selectedOption: ''
  }
  handleChange = selectedOption => {
    this.setState({ selectedOption })
    console.log(`Selected: ${selectedOption.label}`)
  }
  render() {
    const { selectedOption } = this.state
    return (

        <Select
          name="form-field-name"
          value={selectedOption}
          onChange={this.handleChange}
          options={[{ value: 'one', label: 'One' }, { value: 'two', label: 'Two' }]}
        />

        <Swiper>

            <Select
              name="form-field-name"
              value={selectedOption}
              onChange={this.handleChange}
              options={[{ value: 'one', label: 'One' }, { value: 'two', label: 'Two' }]}
            />

            <DateTimePicker />

Slide 3

Slide 4

Slide 5

        </Swiper>

    )
  }
}

export default Test

@hedikasmanto  I'm having the same issue trying to use a component as a slide or inside a slide

Hi, @Praneeth-Pike
I have created my own custom component using idangerous swiper but still no luck. I think this swiper only support div > image as child. So for workaround, I have replaced to another package. If you want, you can take a look. https://react-swipeable-views.com/demos/demos/
I hope that package can solve your problem.

@kidjp85
I closed this issue.. If you want to investigate this issue.. please reopen

Same issue here, couldn't find any solution yet :(


The utf-8 crate is unmaintained

This is to let you know that I’ve archived https://github.com/SimonSapin/rust-utf8, the source repository for https://crates.io/crates/utf-8 which https://crates.io/crates/uu_wc depends on. No action is required as I’m not planning the yank the crate, and it’s small enough that it’s possibly bug-free. However if at some point you still need changes in it, you’ll be better off copying relevant code into your own repository.

ok, merci Simon :)

I'm an experienced developer and I've been learning Rust.  If there's no one else already working on this I'd like to take a stab at it.

@n0bml What would you like to change? Do you want to change wc to use a different library or do you want to incorporate the code from this crate into uutils?

@tertsdiepraam I hadn't gotten that far yet.  I was thinking of incorporating the code from the create into uutils as Simon mentioned.  I'm open to whatever is best for the project and have no strong feelings either way.

Alright, let's see how much code from that crate we need and try to incorporate that!

@n0bml Are you still working on this issue?

@stefins yes but some critical problems at my day job have eaten up my free time.  Hopefully they'll be done soon and I can get back to this soon.  If there's a need for it to be faster I'm ok with someone taking it over and I'll find another way to contribute.

Ok fine. You can work on this. Let me know in the thread if this can't be
handled by you.
Thanks :)
On Sat, 11 Feb 2023 at 02:44, Brendan Leber @.***>
wrote:

@stefins https://github.com/stefins yes but some critical problems at
my day job have eaten up my free time. Hopefully they'll be done soon and I
can get back to this soon. If there's a need for it to be faster I'm ok
with someone taking it over and I'll find another way to contribute.
—
Reply to this email directly, view it on GitHub
https://github.com/uutils/coreutils/issues/4289#issuecomment-1426354806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG4WRTS7XFWNPQHJH3J6MYDWW2VSTANCNFSM6AAAAAAUCTO3AU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Upgrade to kotlintest 3.1

See https://github.com/kotlintest/kotlintest/blob/master/CHANGELOG.md.
As this is using JUnit 5 we could finally consider using
https://github.com/rpau/junit4git for Test Impact Analysis.
This also should fix coverage reporting for Kotlin classes in
the "default-package".

This change is

@mnonnenmacher, looks like Codecov still does not pick up classes in default-package correctly: https://codecov.io/gh/heremaps/oss-review-toolkit/pull/505/tree 😢

Also coverage is down to <20% for some reason.

Also coverage is down to <20% for some reason.

There seems to be an issue with functional tests not being executed at all.


Add GLiNER Spacy Integration and Examples

This commit introduces a new class, GLiNERPipeline, which integrates the GLiNER model with a spaCy pipeline. The integration allows for easy processing and visualization of text data using both GLiNER and spaCy functionalities.
Key features added:

GLiNERPipeline class for wrapping GLiNER with a spaCy model.
Automatic downloading of the spaCy model if not already installed, using spacy.cli.download.
Implementation of the __call__ method for processing text and generating entities.
Support for processing large texts by dividing them into chunks and handling entity indices accordingly.
Custom method _create_entity_spans to create spaCy spans from GLiNER entities.
visualize method for displaying the recognized entities using spaCy's displacy.

Additional Resources:

Updated requirements.txt with necessary packages.
Added spacy-demo.ipynb notebook demonstrating how to use the GLiNERPipeline with spaCy.

This update enhances the usability of GLiNER by allowing users to leverage spaCy's powerful NLP tools in conjunction with GLiNER's named entity recognition capabilities.

Hello!
This looks quite useful! However, I think it would be awesome if we instead could integrate GLiNER as a custom spaCy pipeline component: https://spacy.io/usage/processing-pipelines#custom-components
Then, users would have to do nlp.add_pipe("gliner", config={"model": "...", "labels": "..."}) and then they can use spaCy like normal, as the component will remove the normal "ner" component and automatically fill the .ents entities in the spaCy documents! There's an example of what that looks like here:

The component: https://github.com/tomaarsen/SpanMarkerNER/blob/main/span_marker/spacy_integration.py#L13 (with __call__ and pipe, all they really do is call the model and then doc.set_ents(ents))
Adding it as a component: https://github.com/tomaarsen/SpanMarkerNER/blob/507740da96be620472acd256dc14d267e70bbf27/span_marker/init.py#L45-L66
Example usage: https://tomaarsen.github.io/SpanMarkerNER/notebooks/spacy_integration.html#Using-SpanMarker-models-for-Named-Entity-Recognition-with-spaCy

See also SpanMarker on spaCy: https://spacy.io/universe/project/span_marker
What do you think?

Tom Aarsen

@tomaarsen Hi Tom! Thanks for the comment. This was how I originally envisioned doing it, but I wanted to keep it aligned with the author's library. I usually design custom components in these instances. If @urchade is okay with it, I will go ahead and build it with this approach instead. It won't take too long. @tomaarsen, please correct me if I am wrong, but it may be easier to then build this as a separate library? What are your thoughts?

I'm loving your collection of spaCy-related repositories!

Thanks! There are quite a few. Only a few are on spaCy Universe. I need to update a few and submit a PR in the coming weeks.

@tomaarsen Hi Tom! Thanks for the comment. This was how I originally envisioned doing it, but I wanted to keep it aligned with the author's library. I usually design custom components in these instances. If @urchade is okay with it, I will go ahead and build it with this approach instead. It won't take too long. @tomaarsen, please correct me if I am wrong, but it may be easier to then build this as a separate library? What are your thoughts?

I think that's a good idea as well, you can go ahead with that

gliner-spacy is cool for me 😎

Sounds great! I'm going to be setting up the repository under the TheirStory organization. If you don't mind, @urchade just ping me when you have the installation debugged and I'll get this pushed out.

Ok, no problem @wjbmattingly

Hi @wjbmattingly

Hi @urchade! It is live! https://pypi.org/project/gliner-spacy/0.0.1/

Thanks @wjbmattingly, it works really well! The Homepage link in PyPI is currently pointing to a 404 error: https://github.com/theirstory/gliner-spacy. Can pls update it to the correct URL?

Thanks for the comment @stephenleo ! The url is correct but the repository is private. TheirStory will likely making it public in the next day or so. I just wanted to get it to you all so you could test it. Once the repository is public, the README on PyPi will work just fine without a new version.

@urchade if you want, I can submit a new PR that updates the README to show how to use gliner-spacy. I can also submit a notebook to demo it as well.

Hi @wjbmattingly, thanks for gliner-spacy
sure you can do that
You can put the notebook in the example/directory

No problem! Thanks! I'll try and get that done today.

It is now fixed @stephenleo

@urchade I have updated the PR to include purely the documentation for using Gliner-spaCy now that gliner-spacy is a separate package. I updated the README to show the usage and added the example notebook in examples.

The current example notebook seems broken?
`---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[5], line 3
1 import spacy
2 from gliner import GLiNER
----> 3 from gliner_spacy.pipeline import GlinerSpacy
ModuleNotFoundError: No module named 'gliner_spacy'`
Running the code in the example notebook (https://github.com/urchade/GLiNER/blob/main/examples/gliner_spacy_demo.ipynb) fails


Color keywords are replaced when prefixed with --

When a color keyword is prefixed with --, the value is replaced with the hex value. Other uses of the keyword are not replaces with the hex value.
Input: body{background: magenta; color: var(--magenta); border-color: var(--color-magenta);}
Output: body{background:magenta;color:var(--#ff00ff);border-color:var(--color-magenta)}

Although the title may be different this is a dupe of #1624. You can track the issue/upstream issue there.

This issue elaborates on the issue with colour names further: https://github.com/sass/sass/issues/2128#issuecomment-243897569
You should never use a colour name unquoted in Sass. However Sass 3.5 will have better support for custom properties (--red) http://blog.sass-lang.com/posts/809572-sass-35-release-candidate. This feature has not landed yet in node-sass.


Serialize AccessListItem fields as camelCase

@sorpaas could you release v0.12.1 that includes this PR?


[feature] Have a way to search for packages (reverse string index search)

Ask
Provide a way for users to search for packages through a more freeform text search. This is something that will be useful for document retrieval or finding the packages. Today the ability to do that requires users to know a bit more detail on what they are looking for.
We want to propose a mechanism to be able to search "tensorflow" and get a list of all packages that include tensorflow (across all ecosystems).
Design doc TBD, but there are a couple options here for implementation. This can include the addition of a graphQL API or just have this be done by an external service which will periodically index all packages.
Motivation:
This is to help address the use case of SBOM sharing, query and retrieval, i.e. I want to be able to retrieve SBOMs to help meet EO requirements or for others to request SBOMs for my organization software.

Closing with #1032


adds bundle exec to rake default PR template

Adds a bundle exec prefix to the rake default command in the PR template.
This is a small quality of life improvement, that can be helpful to developers starting to work on this project, I know I was bit by forgetting to run with this option 😬
more info on bundle exec here: https://bundler.io/man/bundle-exec.1.html
Before submitting the PR make sure the following are checked:

[ ] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[ ] Feature branch is up-to-date with master (if not - rebase it).
[ ] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!