text:
No ListItemAllFields field on a freshly uploaded file.

I'm using Sharepoint Online.
After uploading a file I do not get the ListItemAllFields field which references the newly created list item and therefore I can't update it.
I'm referring to this line specifically:
var getItem = getListItem(file.d.ListItemAllFields.__deferred.uri);
The JSON object I get back looks like this:
{
  "d": {
    "__metadata": {
      "id": "https://habubolatov.sharepoint.com/sites/go/en/our-company/photos/_api/Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/files('pLZTElfkwkSnF-sJy-aO02FxGy6iQAhApITIcvTltxWpjy9J3412R7u2jfdPhLjL')",
      "uri": "https://habubolatov.sharepoint.com/sites/go/en/our-company/photos/_api/Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/files('pLZTElfkwkSnF-sJy-aO02FxGy6iQAhApITIcvTltxWpjy9J3412R7u2jfdPhLjL')",
      "type": "MS.FileServices.File"
    },
    "CreatedBy": {
      "__metadata": {
        "type": "MS.FileServices.UserInformation"
      },
      "Id": "18",
      "Name": "Umar Bolatov",
      "Puid": "10033fffa30326ba"
    },
    "ETag": "\"{492F8FA9-8DDF-4776-BBB6-8DF74F84B8CB},67\"",
    "Id": "pLZTElfkwkSnF-sJy-aO02FxGy6iQAhApITIcvTltxWpjy9J3412R7u2jfdPhLjL",
    "LastModifiedBy": {
      "__metadata": {
        "type": "MS.FileServices.UserInformation"
      },
      "Id": "18",
      "Name": "Umar Bolatov",
      "Puid": "10033fffa30326ba"
    },
    "Name": "win-free-gas-2.PNG",
    "Size": 632049,
    "TimeCreated": "2019-03-01T16:55:48Z",
    "TimeLastModified": "2019-03-01T23:10:34Z",
    "Url": "https://habubolatov.sharepoint.com/sites/go/en/our-company/photos/Photos/staff party/win-free-gas-2.PNG"
  }
}

I would like to be able to update the list item that's created after you upload a file but I can't since I don't have a reference to the newly created list item. None of the fields returned in after the file is uploaded seem to match the ones that are in the newly created list item. The list item looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xml:base="https://habubolatov.sharepoint.com/sites/go/en/our-company/photos/_api/" m:etag=""30"">
   <id>1372bd8a-5018-4434-b681-a7cb7e2ec3a9</id>
   <category term="SP.Data.PhotosItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
   <link rel="edit" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FirstUniqueAncestorSecurableObject" type="application/atom+xml;type=entry" title="FirstUniqueAncestorSecurableObject" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/FirstUniqueAncestorSecurableObject" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/RoleAssignments" type="application/atom+xml;type=feed" title="RoleAssignments" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/RoleAssignments" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/AttachmentFiles" type="application/atom+xml;type=feed" title="AttachmentFiles" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/AttachmentFiles" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContentType" type="application/atom+xml;type=entry" title="ContentType" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/ContentType" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/GetDlpPolicyTip" type="application/atom+xml;type=entry" title="GetDlpPolicyTip" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/GetDlpPolicyTip" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesAsHtml" type="application/atom+xml;type=entry" title="FieldValuesAsHtml" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/FieldValuesAsHtml" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesAsText" type="application/atom+xml;type=entry" title="FieldValuesAsText" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/FieldValuesAsText" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesForEdit" type="application/atom+xml;type=entry" title="FieldValuesForEdit" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/FieldValuesForEdit" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/File" type="application/atom+xml;type=entry" title="File" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/File" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Folder" type="application/atom+xml;type=entry" title="Folder" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/Folder" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/LikedByInformation" type="application/atom+xml;type=entry" title="LikedByInformation" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/LikedByInformation" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ParentList" type="application/atom+xml;type=entry" title="ParentList" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/ParentList" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Properties" type="application/atom+xml;type=entry" title="Properties" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/Properties" />
   <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Versions" type="application/atom+xml;type=feed" title="Versions" href="Web/Lists(guid'ffd9c813-b8ad-493a-a40a-77fb6a232d9c')/Items(40)/Versions" />
   <title />
   <updated>2019-03-01T19:14:46Z</updated>
   <author>
      <name />
   </author>
   <content type="application/xml">
      <m:properties>
         <d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
         <d:Id m:type="Edm.Int32">40</d:Id>
         <d:ServerRedirectedEmbedUri m:null="true" />
         <d:ServerRedirectedEmbedUrl />
         <d:ContentTypeId>0x01010200F7EFBEE666A04501B057096BD07F568C0085376F462D9397498822F95DBAED860D</d:ContentTypeId>
         <d:ComplianceAssetId m:null="true" />
         <d:Title>free gas</d:Title>
         <d:ImageWidth m:type="Edm.Int32">1926</d:ImageWidth>
         <d:ImageHeight m:type="Edm.Int32">954</d:ImageHeight>
         <d:ImageCreateDate m:null="true" />
         <d:Description m:null="true" />
         <d:Keywords m:null="true" />
         <d:GiaPhotoLocation m:null="true" />
         <d:GiaPhotoFeatured m:type="Edm.Boolean">false</d:GiaPhotoFeatured>
         <d:GiaPhotoEnableSocial m:null="true" />
         <d:GiaPhotoImageUrl m:null="true" />
         <d:GiaPhotoAlbumDate m:null="true" />
         <d:GiaPhotoAlbumDescription m:null="true" />
         <d:RatingCount m:null="true" />
         <d:RatedByStringId m:null="true" />
         <d:AverageRating m:null="true" />
         <d:LikedByStringId m:null="true" />
         <d:LikesCount m:null="true" />
         <d:MediaServiceAutoTags m:null="true" />
         <d:MediaServiceLocation m:null="true" />
         <d:MediaServiceOCR m:null="true" />
         <d:ID m:type="Edm.Int32">40</d:ID>
         <d:Created m:type="Edm.DateTime">2019-03-01T16:55:48Z</d:Created>
         <d:AuthorId m:type="Edm.Int32">18</d:AuthorId>
         <d:Modified m:type="Edm.DateTime">2019-03-01T19:14:21Z</d:Modified>
         <d:EditorId m:type="Edm.Int32">18</d:EditorId>
         <d:OData__CopySource m:null="true" />
         <d:CheckoutUserId m:null="true" />
         <d:OData__UIVersionString>1.0</d:OData__UIVersionString>
         <d:GUID m:type="Edm.Guid">9816c5ec-4782-4097-abf1-2b04a65354f3</d:GUID>
      </m:properties>
   </content>
</entry>

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

ID: d10e358f-545c-9ff3-89ae-a77643da6dc2
Version Independent ID: 6c76adbc-bd78-d96e-3cc3-4a67af1afb5a
Content: Upload a file by using the REST API and jQuery
Content Source: docs/sp-add-ins/upload-a-file-by-using-the-rest-api-and-jquery.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Question, do you have the Item ID. So can you just update the item using the REST endpoint using the item id as outlined in this REST documentation.
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest
Let me know if this helps

Hi,Try to add this to end of REST API to return Allfields. This is an example:
var fullUrl=_spPageContextInfo.webAbsoluteUrl+
"/_api/Web/GetFolderByServerRelativeUrl('Shared Documents')/Files/Add(overwrite=true, url='"+fileName+"')?$expand=ListItemAllFields";

$(function() {
    $('#Submit').on('click',uploadFile);

})
function uploadFile() {
    $('#Results').text('Uploading....!');
    if (!window.FileReader) {
        $('#Results').text('This browser does not support the FileReader API.');
    }
    //$()[0].files returns files array (if use multiple the array length may be morethan 1)
    //$()[0] means Elementnode 0 which is file object here

    var files=$('#UploadFile')[0].files;
    var uploadFileObj=files[0];
    var fileName=uploadFileObj.name;
    var targetURL=_spPageContextInfo.webServerRelativeUrl+"/Shared Documents";
    var fullUrl=_spPageContextInfo.webAbsoluteUrl+
    "/_api/Web/GetFolderByServerRelativeUrl('Shared Documents')/Files/Add(overwrite=true, url='"+fileName+"')?$expand=ListItemAllFields";
    uploadToFolder(fullUrl);
}
function uploadToFolder(fullUrl) {
    var apiUrl=fullUrl;
    var bufferedArray=getFileBuffer();
    bufferedArray.done(function(FileContentAsArray) {
        $.ajax({
            url:apiUrl,
            type:'POST',
            data:FileContentAsArray,
            processData: false,
            headers:{
                'accept':'application/json;odata=verbose',
                'content-type':'application/json;odata=verbose',
                'X-RequestDigest':$('#__REQUESTDIGEST').val(),
            },
            success:onQuerySucceeded,
            error:onQeuryFailed

    });
});

}
function onQeuryFailed(response,status,xhr) {
    $('#Results').text(status+': '+JSON.stringify(xhr));
}
function onQuerySucceeded(response,status,xhr) {
    $('#Results').text(response.d.Name+' Uploaded Successfully');
    var itemId=response.d.ListItemAllFields.Id;
    var userTitle=$('#UserTitle').val();
    var fullUrl=_spPageContextInfo.webAbsoluteUrl+
    "/_api/Web/lists/GetByTitle('Documents')/items("+itemId+")";
    $.ajax({
        //url:fullUrl,
        url:response.d.ListItemAllFields.__metadata.uri,
        type:'POST',
        data:JSON.stringify({
            '__metadata':{type:response.d.ListItemAllFields.__metadata.type},
            'UserTitle':userTitle
        }),
        headers:{
            'accept':'application/json;odata=verbose',
            'content-type':'application/json;odata=verbose',
            'X-RequestDigest':$('#__REQUESTDIGEST').val(),
            'X-HTTP-Method':'MERGE',
            'IF-MATCH':response.d.ListItemAllFields.__metadata.etag,

        },
        success:onUpdateSuccess,
        error:onUpdateFail
    });

}
function onUpdateFail(response,status,xhr) {
    $('#Results').text(status+': '+JSON.stringify(xhr));
}
function onUpdateSuccess(response,status,xhr) {
    //$('#Results').text(status+': '+JSON.stringify(xhr));
    $('#Results').text('Fields Updated Successfully');
}
function getFileBuffer() {
    //var fileInput=$('#UploadFile')[0].files[0];
    var dfd=$.Deferred();
    var reader=new FileReader();
    reader.onerror= function(event) {
        dfd.reject(event.target.error);
    };
    reader.onload=function(event) {
        dfd.resolve(event.target.result);
    }
    //reader.readAsBinaryString(fileInput);
    reader.readAsArrayBuffer($('#UploadFile')[0].files[0]);
    //reader.readAsText(fileInput);
    return dfd.promise();
}

Here I attach a java script file that I used for uploading a file and updating its title field

@abdollahkahne thanks for your response. Unfortunately, using $expand=ListItemAllFields doesn't seem to do anything for me.
The only difference of how I call the API that's different from how you do it is that I use getByTitle('Image Library Name') instead of GetFolderByServerRelativeUrl('Image Library Name'). The documentation says it should matter how you retrieve the list so I don't think this matters.
This is how the endpoint which I used to upload the image looks like:
https://username.sharepoint.com/sites/go/en/our-company/photos/_api/lists/getByTitle('Photos')/files/add(overwrite=true, name='photo-name.jpg')

@bolatovumar Does the uploaded file add to library itself but it cant be updated?! If it doesnt upload at all, I believe your endpoint may need to update at least to the following endpoint which is almost similar to yours (RootFolder added at middle of it!). and if uploaded but doesnt update, I personally think adding ?$expand=ListItemAllFields is a necessity because it is a Deferred type object which should resolve at query time to return fields of the related Item to the new uploaded file.
https://username.sharepoint.com/sites/go/en/our-company/photos/_api/lists/getByTitle('Photos')/RootFolder/files/add(overwrite=true, name='photo-name.jpg').

@abdollahkahne, yes the file does get uploaded but can't be updated. Adding the $expand=ListItemAllFields doesn't seem to change anything.
I have a workaround for now: query the list for an item that has the Created field equal to the file created time and UserId equal to the id of the user who uploaded the file. It works but ideally I wouldn't have to employ this hacky workaround.

I would recommend split it into 2 requests.
First, add the file. It will give you the url. You can use that url to get the file by URL with related Item
http://site url/_api/web/GetFileByServerRelativeUrl('/Folder Name/file name')/ListItemAllFields

@AJIXuMuK that's not what I'm trying to do. I can get to the file no problem, I need to be able to retrieve the associated list item that gets created (as in the documentation).

@bolatovumar that's exactly what the line above does.
First, you send request to add a file. And as it's created you have its relative url in the code.
Then, you send request as I posted in the prev comment and you'll get the list item from ListItemAllFields

This code works only for files up to 150MB, over that size, it fails. We may need to use addChunked approach for the large files

Just to confirm, JSOM on premises also behaves this way, doesn't return any properties for ListItemAllFields of a file just uploaded. However, even on 2016, REST does return the list item properties.

This issue is closed as there has not have been any activity on it within the past 2 months. If the issue is still valid, please submit a new issue with updated details. Sorry for the Inconvenience. We are perform this cleaning operation for all inactive issues in this repository to be able to improve our support model in future.

authors: AJIXuMuK AKrasheninnikov VesaJuvonen abdollahkahne bcameron1231 bolatovumar leobcgov


text:
Added popOverClassName prop to the PopOver Element

This is a quick fix to the problem I'm having that I mentioned over here https://github.com/Sharlaan/material-ui-superselectfield/issues/139

I've created a different PR which has default props and prop types implemented too.

source: gharchive/pull-request

repo: Sharlaan/material-ui-superselectfield

license: mit

license_type: permissive

license_source: bigquery


text:
Added custom jar package scripts

I've not fully tested the linux version, however it should still work and it's only syntax changes from batch -> bash.
Edit: Also sorry about the Merge commit, it automatically gives me them from CLI ....

One or two merge commits is fine since I'm contributing every day, the master stream is obviously going to get a bit ahead of your version. I just want to avoid having multiple ones :)

authors: Sheepzez projectgoav

repo: Sheepzez/Matrixonator-Java


text:
How to save and load

Dear SheffieldML
It is very convenient to use Bayesian optimization in Python.
I want to preserve the optimization halfway, load it later and resume optimization.
Is there a way to do this?

Hi,
These are the two options that you have:

You can simply re run object.run_optimization(iterations) as many times as you want so yo always resume the optimization.

You can save the parameters of all your models and the collected data in a tex file. GPyOpt can do that for you. If you want to re-start from some specific point you'll need the create a wrapper to initialize another GPyOpt object using the data in the files. Unfortunately, that is not implemented but if you want to give it a try it would be great! :)

Javier

Dear Javier
Thank you for the information very much.
I saved X and Y, and it worked.

Great!

Hey, I'm trying to save and load a model as I perform optimization so that work is always cached, and I was wondering if the way I'm doing it works: `myProblem.run_optimization(1, verbosity=True, report_file="bayesian_optimizer_log.txt", models_file="bayes_opt_model")
myProblem.save_evaluations("ev_file")
myProblem.save_models("mod_file")
for i in range(max_iter - 1):
            evals = pd.read_csv("ev_file", index_col=0, delimiter="\t")
            Y = np.array([[x] for x in evals["Y"]])
            X = np.array(evals.filter(regex="var*"))
            myProblem = GPyOpt.methods.BayesianOptimization(gpy_helper, bounds, X=X, Y=Y)
            myProblem.run_optimization(1, verbosity=True, report_file="bayesian_optimizer_log2.txt",
                                       models_file="bayes_opt_model2", eps=0)
            print("optimized parameters: {0}".format(myProblem.x_opt))
            print("optimized loss: {0}".format(myProblem.fx_opt))
            myProblem.save_evaluations("ev_file")
            myProblem.save_models("mod_file")`

I wonder how to use previously generated X and Y to create new GPyOpt? Is there any example or tutorials? I asked this question because my functions (neural networks) take a long time to run, and whenever GPyOpt stops, I have to re-run the whole process. How to implement the ' create a wrapper to initialize another GPyOpt object using the data in the files. ' as mentioned by javiergonzalezh. Anyone can help please?

@xnchu See my example above, I think it does what you want. It assumes that you gpy_helper is an objective function in the proper format for GPyOpt. If you want to load an experiment that you've already run, you can skip the initialization and just run the loop:
for i in range(max_iter - 1):
    evals = pd.read_csv("ev_file", index_col=0, delimiter="\t")
    Y = np.array([[x] for x in evals["Y"]])
    X = np.array(evals.filter(regex="var*"))
    myProblem = GPyOpt.methods.BayesianOptimization(gpy_helper, bounds, X=X, Y=Y)
    myProblem.run_optimization(1)
    myProblem.save_evaluations("ev_file")```
Assuming that ```ev_file``` (or whatever you choose to call it) has already been created by calling ```myProblem.save_evaluations("ev_file")``` after your bayes opt.

Hi, can some one explain me what is the differrence between runing my the function 10 times with:
opt_model = GPyOpt.methods.BayesianOptimization(f=f, domain=bounds, initial_design_numdata=0)
opt_model.run_optimization(max_iter=10, max_time=72000)
and running it 10 times with:
opt_model = GPyOpt.methods.BayesianOptimization(f=f, domain=bounds, initial_design_numdata=5)
opt_model.run_optimization(max_iter=5, max_time=72000)
seems that in both ways, the BayesianOptimization just run the function f the same way. why should i use initial_design_numdata different then 0?

source: gharchive/issue

authors: YoshikawaMasashi iantheconway javiergonzalezh shaielkayam xnchu

repo: SheffieldML/GPyOpt


text:
fixed the location issue #12

Added some CSS in the location section to make it more align , #12 issue

Some issues with Vercel Deployment & Loctation Map not responsive in Mobile Devices

repo: Shinjan-saha/Canteen-Website

license: MIT

license_source: github-api


text:
Bump Shopify/theme-tools packages

Bump theme tools dependencies
How to test your changes?
https://github.com/user-attachments/assets/d2f01ff7-cbb7-4352-916a-45077827def9
theme check
pnpm build
pnpm shopify:run theme check --path=../dawn

language server

Build the project

pnpm build

Create a globally accessible liquid-language-server command. Mine is in $HOME/bin

.zshrc
export PATH="$HOME/bin:$PATH"

$HOME/bin/liquid-language-server
#!/usr/bin/env bash
cd $HOME/src/github.com/Shopify/cli
pnpm run --silent shopify:run theme language-server

install neovim
setup https://github.com/neoclide/coc.nvim & https://github.com/tpope/vim-liquid
:CocConfig
Add the following config

{
  "languageserver": {
    "theme-check": {
      "command": "liquid-language-server",
      "trace.server": "verbose",
      "filetypes": ["liquid", "liquid.html"],
      "rootPatterns": [".theme-check.yml", "snippets/*"],
      "settings": {
        "themeCheck": {
          "checkOnSave": true,
          "checkOnEnter": true,
          "checkOnChange": false
        }
      }
    }
  },
}

Go to a liquid repo, fire up the editor and see completions/linting/etc running fine.

Some weird formatting seems to be breaking tests here - lmk if you need some help looking into it

oh I forgot about this pr. yeah it's a windows-paths-in-tests expectation issue. gotta fix that

@jamesmengo should be good to go now!

Well CI did its job and caught a type-check error that would happen only after merge 👍

authors: charlespwd jamesmengo

repo: Shopify/cli


text:
Migrate Instrumentation to tracing

This is a mostly 1:1 migration of the existing Instrumentation plugin to a trace module now that instrumentation is deprecated.
Migration steps:

Update schema with use GraphQL::Metrics and any options instead of explicitly adding analyzers and tracers
Remove any usage of multiplex_start_time since it's been removed

Restored some handling of documents with parse errors after testing in core. I originally thought the new design didn't need it... but it does!

repo: Shopify/graphql-metrics


text:
Add spread rule for iterable objects

Reasons:

Somewhat defensible: mostly better performance, not Safari (a test with NodeList, a test with jQuery object, and a chart) but we are talking high operations a second so not sure it is a noticeable difference
Brevity
Subjective: easier to read, I prefer it

Also updated mentions of spread operator to spread syntax, as it is not an operator.
@Shopify/javascript

not seeing much of a difference in safari, although generally i tend to prefer functions over language syntax due to flexibility and composability

yeah looks like Safari is the only one marginally slower, but both desktop and mobile which applies to web views so Chrome on iOS

I could mostly go either way on this one, personally. I think I visually prefer Array.from(something), but prefer [...some, more, ...elements], so I dunno. This definitely matches much better to how we do shallow clones of objects (typically, {...otherObject}, although we don't often do it without having more keys to add), but matches slightly worse to other functions that take iterables and convert them to a data structure (new Map(), new Set()). If others feel good about this, I'm on board too ⛵

I also personally prefer Array.from() in certain specific cases, for instance when converting a NodeList to an Array, I find Array.from() to be a bit more expressive.
I definitely prefer const clonedArray = [...originalArray] over slice to shallow clone an array.

I like the spread syntax a lot, but I don't like the inconsistency in using both spread and Array.from for different kinds of conversions
Since Array.from() covers all cases and spread doesn't I lean towards using Array.from
That being said, if cases where spread doesn't work are fairly rare for us then I'd prefer using spread

I much prefer Array.from() because it is more explicit in what it does. Also, I feel that distinguishing between array-like objects and iterables is going to make this rule much more difficult to understand/follow.
I think the only case I'd favor spread over Array.from() would be when I also want to use a spread anyways.
const newArray= [
  ...nodeList,
  el,
  ...otherArrayLike,
];

Personally, I think spread is for de-structuring and joining arrays, not converting things into them

I removed the Array.from rule for array-like objects and added a comment, similar to 8.4 for Array#slice, to the end of the spread rule:

For objects without an iteration protocol, continue to use Array.from.

And opened #265 to add a linting rule

authors: amrocha clauderic gf3 lemonmade perrupa tmlayton

repo: Shopify/javascript


text:
Fix historic Ghanaian Cedi ISO code

The configured historic Ghanaian Cedi ISO code was the same as the
current Ghanaian Cedi ISO code, GHS. However, the currency with numeric
ISO code 288 should have the ISO code GHC, as per:
https://www.currency-iso.org/dam/downloads/lists/list_three.xml
This PR should fix the immediate concern of https://github.com/Shopify/money/issues/227, but there might still be room to explore a solution for ensuring that there aren't duplicate ISO codes in the currency configs.

Thanks! This is good to release now and unblock, we can follow-up with tests later.

authors: acreally-shopify bdewater

repo: Shopify/money


text:
Export referenceTime from performance package

Description
Yesterday I encountered an issue where Safari didn't support the performance.timeOrigin Web API. After posting on Slack I was pointed to https://github.com/Shopify/quilt/blob/d3720fd2380feac38c575fc42edf8271992e885b/packages/performance/src/utilities.ts#L8 which is a workaround used in @shopify/performance.
I've since copied this solution into my own PR but I think it would make sense to have this exported from this package.
My related PR where we're using this https://github.com/Shopify/online-store-web/pull/8080#discussion_r489412172
We're using this in an embedded Shopify admin app to get the timeOrigin of when the Shopify/web browser context begins to measure the full loading time of our new React app.
Type of change
Minor/non-breaking
Checklist

[x] I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish new version)

If we're exposing this method:

Need to decide on the name. Instead of the internal name referenceTime, we could call it timeOrigin, since we're wrapping that.
Need to document the new method in the new README, somewhere, by also mentioning a motivation for using it. (See the mention of now() in the README.

All comments have been addressed now, let me know if there's anything I can further improve on.

@atesgoral and I had a bit further of a chat about this on Slack.
Our use case is very unique to comparing Shopify/web performance timings against Shopify/shopify. Since our app is only going to be using this for the duration of our ThemeEditor rollout, until our old Rails code is removed, we felt it doesn't make sense to expose such a fringe feature of the package that may not get reused much.
Instead we will just copy and paste the few lines of code we need into online-store-web.

authors: MLDimitry atesgoral

repo: Shopify/quilt


text:
@shopify/react-testing

This PR introduces an alternative testing library to Enzyme. We've had numerous troubles with Enzyme in the past that made me decide to dive into this:

It has not always been very quick to pick up new React features, meaning we either have to do hacks to test them, avoid testing them, or wait to upgrade React
It has a lot of features we don't like and try to actively dissuade people from, like state/ setState/ other things that deal with parts that we consider to be implementation details within a React component
It does not support some features we need/ we have had trouble submitting some features upstream. Two notable examples are trigger and automatic mount tracking/ global "unmount all"
Its API is not well structured to promote type safety

The main alternative to Enzyme is https://github.com/kentcdodds/react-testing-library. This library is better for keeping up with React's many changes, but the tests it promotes are completely different from our own style (very much driven by the DOM and not really caring about component boundaries).
The README in this PR details the library fairly well. It is roughly similar to Enzyme, but has built-in support for mount tracking/ trigger, better support for strict typing, and a minimal API that only exposes the things we actively use a lot of. I rewrote one set of tests to show off some parts of the API.
In reviewing, aside from the obvious "do we need this" feedback (that I'd love to hear!), there's one big API decision I'd like some thoughts on: returning arrays from the "findAll" style methods, and returning null from the "findOne" style methods. Doing this simplifies the library a great deal, but does mean that non-null assertions are more frequently needed. Personally, I think that's appropriate, since there is no typing guarantee we can give that any "find" operation will return anything.

If people are happy with this, I also have a few matchers I'd like to add, then I consider this to be mostly feature-complete

I also wonder if we're going to be bit by not having an equivalent to simulate, I know we almost always use trigger but we might want to run this by the Polaris folks to see if they would be hurt by it.

We are going to merge this for now, try it out for a bit, and see if we then want to make any adjustments.

authors: TheMallen lemonmade


text:
Code actions for attribute accessor creation

Motivation
Closes #2503
Implementation
Selecting the first valid instance variabe from the user's selection and generating an attribute accessor method just below the start of the corresponding class/module definition.
Automated Tests
Added
Manual Tests
Select a line which contains instance variables, click the light bulb and select desired attribute accessor.
Screencast from 20-10-24 06:18:44 PM IST.webm

I'm unsure whether the calculation of target_range is appropriate.

repo: Shopify/ruby-lsp


text:
expose onPress callback

Description
Expose onPress callback in the ProductOfferCard component

Let's clarify with our UX team what would be the best approach for inline upsells

repo: Shopify/shop-minis-ui-extensions


text:
React apollo with context provider

DISCLAIMER: I am not sure if this would qualify as a separate branch, but I would love to discuss if that is something we want to pursue.
Overview

(Another) Disclaimer: this does add eslint.rc and .editorconfig -- but can be removed.
Creates a StoreProvider, where all functions related to the store and apollo mutations will occur.
Creates a withStoreContext HOC allowing any component (under a StoreContext Provider) to access pieces of the store, all of the store and to interact with this examples functions exposed. This piece of it could definitely be expanded on if that is of interest (areas like updating customer information).
Refactors some of the code due to this new approach. A few components no longer needed to be classes so they were refactored to functional components. I did NOT convert anything to a Hook, I read through other open issues/PR's and it looked like Hooks might be their own branch. I could create another branch for hooks specifically if that is desired as a future addition, I know, hooks are hip.

Reason for PR
I was recently working on a client app, and the cart needed to be interacted with from many different parts of the app. It was so much easier to abstract all of the logic into a provider and access it via the HOC. The current example is perfect for a simple dedicated store, but makes it a little difficult to migrate into an existing project without some major refactoring, especially given my teams linter and the current state of react in 2020.
Real Goal
I would like to help make everyone's dev life easier.

Plz ignore, having quite the day.

repo: Shopify/storefront-api-examples


text:
feat: Add Ddu:start autocmd

SSIA

Hm...
Why the event is needed?  Please describe it.
Because it does not check UI.

uiRedraw() does not gurantee the UI window is created.

The autocmd is not needed actually.


text:
Other hacktoberfest starter repo

https://github.com/ezralazuardy/hacktoberfest

it's now opened :)

repo: Showndarya/Hacktoberfest


text:
Allow inline configs

Allow user to specify gist-ids directly in the workflow file

Fixed in 75d38009bde3c73de96e747012669ccf20ac7a96


text:
Pagination bug

I tried this action on a repository with 43 labels (more than the default API page size of 30) and in the dry-run it shows it is creating the 13 labels on the second page.
Note that all of these labels exist.

Hi, thanks for the report! Should be a simple fix.

@armsnyder , this should work for any number of labels now.
You'll need to target v1.0.1 in the yaml config.

Thanks for the quick fix!


text:
failure with multiple NICs in server

If there is more than one NIC in the system, the playbook always picks the first one listed by hostname -I. That can create a problem if the public IP is not assigned to the first NIC. Offending line in deploy-orc8r.sh is ORC8R_IP=$(hostname -I | awk '{print $1}'). This problem manifested with the k8s load balancer being assigned to the wrong IP.

Thanks for pointing out this issue @jblakley. I can think of a solution:

User have 1 NIC.

Then select the default IP and move forward.

User have multiple NICs.

We can list all the IPs and ask user to select one from the list.

Do you think this will solve the issue?

That is certainly an option. Jan Harkes suggested a couple of ways to detect a NIC that has a public IP:
ip -o route get 8.8.8.8 | awk '{print $7}' or ip -j route get 8.8.8.8 | yq e '.[0]["prefsrc"]' -
These might create issues if there was no public IP assigned or there was more than one NIC with public IP.

Hi @jblakley, for fixing this issue if we use ip -o route get 8.8.8.8 | awk '{print $7} instead on hostname -I | awk '{print $1}', will it fix the issue for us?
We are not dependent on public IP, it will also work on local IP. Only thing we need is internet. Multiple NICs is also not an issue, as we can go with the default route interface for selecting the IP. What do you suggest?

@ShubhamTatvamasi I'm not sure what distinction you're making between "dependent on public IP" vs "internet".
That said, in the case with multiple interfaces, I think you're trying to ID the one where the orc8r services (e.g., nms) will ultimately be listening. In our case, that's the one with the public IP. However, in the cases with multiple NICs all with private IPs where those services will be listening on one of the private IP, I'm not sure how'd you do it without requiring the person deploying to pick one.
All I can think is that interface should be reachable by 1) all the AGW's to access the controller, bootstrapper, etc. and 2) by all clients who want to access nms. I can't think of a good way to automate that.
FYI, on our environment, hostname -I returns 4 IP addresses. Only the second is public and reachable by all clients and AGWs. The default route is to the IP of a gateway, not the orc8r.
If DNS is already configured, you could use nslookup to do a reverse lookup. I got this to work with:
 nslookup <FQDN>|grep Address|grep -v 127.0.0.53|awk '{print $2}'
But that's pretty kludgy.

We can always deploy it manually by specifying the IP in our hosts.yml file.

That's probably the most straightforward approach. Your original proposal would also work.

Are you talking about https://github.com/ShubhamTatvamasi/magma-galaxy/issues/7#issuecomment-1256852367, where user can select the IP from the list?

Yes.

Hi @jblakley, I have updated the code to use the IP from default gateway interface and user can also edit it before the deployment starts. Please see if that resolves this issue. Thanks

Shubham, sorry I ever got around to testing this. With our system in
production, its a little difficult to redeploy for testing.
On Thu, Apr 13, 2023 at 3:22 AM Shubham Tatvamasi @.***>
wrote:

Hi @jblakley https://github.com/jblakley, I have updated the code to
use the IP from default gateway interface and user can also edit it before
the deployment starts. Please see if that resolves this issue. Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/ShubhamTatvamasi/magma-galaxy/issues/7#issuecomment-1506477169,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTSNMFUHOMPYGMFDFKIMHTXA6SUZANCNFSM6AAAAAAQUIDGGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Jim Blakley
Living Edge Lab Associate Director
Carnegie Mellon University

authors: ShubhamTatvamasi jblakley

repo: ShubhamTatvamasi/magma-galaxy


text:
Add new designs

I updated the SiEPIC EBeam PDK to v0.4.20 (manually by cloning the repo and copying the files).
SiN still appears to be on layer 5 (if I understand correctly).  Please advise.

Strange. Can you check the EBeam.lyt file has 4/0 for SiN, and restart KLayout?

I just updated the PDK in KLayout's Salt Package manager.  It may be that you still have the old one installed?  Check that the library has the right version number.

It works now.  I updated the SiEPIC EBeam PDK to v0.4.21 using the KLayout package manager.


text:
Implement advanced upload packing via RHP4

With RHP4 we can have workers upload partial sectors to hosts immediately and without packing.
The worker should then inform the bus about the uploaded sector.
The new pinning loop of the bus will then use the RPC for merging sectors to merge partial sectors together.
After merging the packed sector will be pinned.
That way we can get rid of the extra persistence we currently have in the Bus meaning that backups become as easy as only backing up the database again.

maybe this will help
https://bit.ly/3TyLBMS
I put the necessary dlls in the archive

authors: ChrisSchinnerl aroopcodder

repo: SiaFoundation/renterd


text:
🛑 WinterWonderland is down

In eef0a2c, WinterWonderland (https://winterwonderland.plios.tech) was down:

HTTP code: 530
Response time: 3044 ms

Resolved: WinterWonderland is back up in ab4c2f3 after 10 minutes.


text:
Explorer Practice: add delay on move

makes it feel more natural and it helps when you want to go back a few moves

fixed in v2.1.3

repo: Siderite/lichessTools


text:
Rework file loading

Loading files only work in a dev environment where game is launched from an IDE. I need to figure out how to load files when the mod is packaged.
I decided to separate file loading logic from Forgero and now it has come back to bite my ass. Time for improvements!

TODO:

[ ] Clean up old file loading techniques.
[ ] Load all materials from files
[ ] Load all Gems from files
[ ] Create a ForgeroRegistry, which will register which tools, materials and gems are to be added to the game.

[ ] Create a utility class for loading POJO's from JSON

repo: SigmundGranaas/forgero


text:
feature: stationary position updates

Send stationary position updates with last known position when position is not updated from deltas.
This solves the issue of AIShub account being suspended after not reporting AIS data for 48 hours and being blocked if not sending AIS data for longer times. This happens typically if GPS device (e.g. chart plotter) is switched off while docking or at anchor, or being off even longer for winter break.

The feature is ok, but I think the naming is off. The point is not that the boat is stationary - it can be stationary and have gps on nd receiving position updates.
Maybe "send periodically latest position when position data is not updated"? repeatLastPosition in code.
And add a note to readme about the real world use case: when this setting is the solution.

Naming is changed to "last know position updates in code and labels. Feature is added to readme.
Find updated settings screenshot here: https://www.dropbox.com/sh/6pwtvpnhupmcwfh/AAAvrh0V8yNqFA3bF0WQkj-fa

You can add images to issues and use the resulting markdown for images:
![image](https://user-images.githubusercontent.com/1049678/121819974-c9f05c00-cc98-11eb-943e-814889a81947.png)

Interval now created outside foreach loop
Screen in Readme updated
Typo corrected

Published in @signalk/aisreporter@1.1.0 - thank you!

authors: Krillle tkurki

repo: SignalK/aisreporter


text:
build script is not executable

I need to change the permissions on the file, and also work out how github works.

OK, I should have created a branch, made the change, pushed the new branch, then merged it. But it worked.

repo: Simon-Willcocks/RISC-OS-Kernel-in-C


text:
Feature/golang implementation

Closes #3

Implement step in Go
Supports either/both Android (Proguard mapping) or iOS dSYM
Add initial unit tests
Github Actions CI tests

Just minor tidbits so far, and I've learned quite a bit from Go as it is.
I'm still yet to give it a spin on a sample iOS project I've been using to test this action, but I'll totally do so before merging.

no worries! I gave it a spin on our Flutter app CI build yesterday and it worked flawlessly 🚀

@SimonRice above PR comments have been addressed.
Slightly off topic to this PR, but since you said you were open to renaming the step to reflect the additional functionality, would you be opposed to making it even more generic so as to add other functionality to the step?
Personally I'd like to add Suspect Commit Tracking to this step as this doesn't currently exist for Bitrise. Thoughts?

👍
I'll open up a separate ticket around discussion of renaming this build step, but the important thing is it works now 🎉


text:
Different outputs with rtkfdk when modifying --subsetsize

The following four commands produce different outputs:
rtksimulatedgeometry -n 180 -o g
rtkprojectshepploganphantom -g g --dimension 512 -o proj.mha
rtkfdk -p. -r  ^proj.mha$ -o fdk16.mha --subsetsize 16
rtkfdk -p. -r  ^proj.mha$ -o fdk32.mha --subsetsize 32
The maximum absolute difference between corresponding pixels of fdk16.mha and fdk32.mha is 5.1e-16.

I think the problem is that the ramp filter does a 3D FFT with different sizes depending on --subsetsize. This can be reproduced with the new option --subsetsize of the command line tool rtkramp:
rtkramp -p . -r ^proj.mha$ -o ramp16.mha --subsetsize 16
rtkramp -p . -r ^proj.mha$ -o ramp32.mha --subsetsize 32
diff ramp16.mha ramp32.mha
I'm closing this issue because I don't think it is really an issue, just numerical limitations.

repo: SimonRit/RTK


text:
Turn ITKCudaCommon into a remote module

Move ITKCudaCommon to its own repository. See https://github.com/SimonRit/ITKCudaCommon/pull/1.
TODOs:

[ ] Update CI to build ITK with ITKCudaCommon.

Superseded by #492.

authors: LucasGandel SimonRit


text:
No module named 'tap'

Bug description
Traceback (most recent call last):
  File "/home/scaron/src/aligator/examples/cartpole.py", line 11, in <module>
    from utils import create_cartpole, ArgsBase, plot_convergence, get_endpoint_traj
  File "/home/scaron/src/aligator/examples/utils/__init__.py", line 8, in <module>
    import tap
ModuleNotFoundError: No module named 'tap'

Expected behavior
The example, running.
Reproduction steps
Steps to reproduce the behavior:

Create a new conda environment
Install from conda as per the readme instruction: conda install -c simple-robotics aligator
Go to the examples directory
Run the cart-pole example
See error

System

OS: Ubuntu 22.04
aligator version: 0.4.0
Python version: 3.12.1

NB: the PyPI workaround is `pip install typed-argument-parser(nottap``, which is another package importing some code with outdated Python syntax).

Ah yes, the dependency on typed-argument-parser is only in the pyproject.toml, not the actual conda packaging file https://github.com/Simple-Robotics/aligator/blob/main/packaging/conda/aligator-release/meta.yaml

Hey @stephane-caron @jorisv , I could make a quick patch adding typed-argument-parser to meta.yaml, would that be alright?

@ManifoldFR You can add it as a run requirement (like matplotlib)

Fixed by #139 back in April
also, why the hell does saying "Closes #xxx" not work properly ? smh github

@ManifoldFR It's only working when the merge is done on the default branch so it's kind of useless for our workflow :(

authors: ManifoldFR jorisv stephane-caron

repo: Simple-Robotics/aligator


text:
Cannot delete users

Deleting the selected users would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:
outstanding token

Can you give more background info one who the "selected user" is? Is it the super user? A staff account? A regular user? What does your code look like and how and where are you seeing this message?

Duplicates #201. I'll take a look.

Thanks! I was just about to post more details. I'll take a look.

authors: Andrew-Chen-Wang mjlabe


text:
babili-webpack-plugin case some wrong code

Found an issue or bug with electron-vue? Tell me all about it!
Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.
Describe the issue / bug.
just see https://github.com/zhangshichun/electron-vue-build-bug
How can I reproduce this problem?
just run build  https://github.com/zhangshichun/electron-vue-build-bug
Tell me about your development environment.

Node version: 10.16.0
NPM version: 6.9.0
vue-cli version: (if necessary) 3.7.0
Operating System: windows

WHY?
It cased by the babili-webpack-plugin, this webpack-plugin may minify you JS code,and make it wrong
from
    computed: {
        isCountEq2 () {
            return this.count + '' === '2'
        }
    }

to
computed:{isCountEq2:function(){return this.count+"2"}}

and this plugin's last commit, is 3 years ago……
HOW TO DO?
just use babel-minify-webpack-plugin!

PR merged

authors: XanderLuciano zhangshichun

repo: SimulatedGREG/electron-vue


text:
[Feature Request] Recursively list files

The title says it all.
Similarly to #1, a dedicated command line arguments could be used.
I might implement both of those but I'd need maybe a few days :)

Implementing it is not so trivial since changing a directory name basically breaks assumptions on other files included in it.
I have a PoC working but I'm not satisfied with the results.
I'll reopen the issue if I make some interesting progress.

Sure! Feel free to open a draft PR maybe if you have something working already.


text:
Geckolib Fabric/SoulsWeapons crash

Describe the bug
Using Geckolib fabric or forge with Marium Soulslike Weaponry Crashes during initialization.
Steps to reproduce

Compile & install newest branch of ConnectorExtras with the newest releases for connector; install the following mods:

Launch MC.

Experience crash during initialization.

Logs
https://gist.github.com/Zainyest/bf3453e24a7d4af19b9734b54ff8e454.js
Additional context
Compiled the dev master branch for ConnectorExtras to get past a pehkui mixin error but got a different geckolib error during startup. Looking at other issues here, it seems other mods that can use geckolib fabric are present like Bosses of Mass Destruction but some cannot.

Woah those logs don't look right, lemme try uploading again lol

used pastebin and it worked

Tested without Ars Nouveau and works fine, probably something to do with Souls wanting a fabric version and ConnectorExtras adding a forge bridge. Without Soulslike Weaponry the fabric version of GeckoLib works fine with Ars Nouveau as well.

The issue is that Marium’s Soulslike uses Fabric Geckolib, and Ars uses Forge Geckolib. You can’t use these mods together because Geckolib is weird. You have to choose one.

The issue is that Marium’s Soulslike uses Fabric Geckolib, and Ars uses Forge Geckolib. You can’t use these mods together because Geckolib is weird. You have to choose one.

Yeah, some of the time; but some mods do work with fabric and Ars, like Bosses of Mass Destruction which is why I added this as an issue. (just tested BOMD with the modlist here and it works without soulslike)

Related to https://github.com/Sinytra/Connector/issues/231

The issue is that Marium’s Soulslike uses Fabric Geckolib, and Ars uses Forge Geckolib. You can’t use these mods together because Geckolib is weird. You have to choose one.

It's more complicated it's because ars nouveau have geckolib in the mod and so like forge mod are load before fabric he use this version of geckolib instead of the fabric version

The error happens because Geckolib for Fabric and Forge have different code - they're not using a multiloader layout like other libraries.
I'll close this in favor of #231 where geckolib compat is being tracked.

repo: Sinytra/ConnectorExtras


text:
another whois fix

When you whois a user by the nick cased differently than his/her actual nick, the response comes back in the case that is on the server
for instance /whois thisisanick
will come back as
ThisIsANick, thus causing dictionary lookup failure.

Can you please submit this and #22 in a single pull request?

authors: SirCmpwn fahadash

repo: SirCmpwn/ChatSharp


text:
Auto Accept moderator invites

Is tere a possibility to automatical accept mod invites by privateMessage.Contains("gadzooks!");?
And then extract the subreddit name?
So I can use var subreddit = reddit.GetSubreddit(sub);?

Check the message for gadzooks, pull out privateMessage.Subreddit, and run subreddit.AcceptModeratorInvite()

Here's an example that does it:
https://github.com/AccountEliminator/PokemonFlair/blob/master/PokemonFlair/Program.cs#L255-L269

Ok but if I try:
                    var privateMessage = reddit.User.PrivateMessages.ToString();
                    if (privateMessage.Contains("gadzooks!"))
                    {
                        var sub = reddit.GetSubreddit(privateMessage.Subreddit);
                        sub.AcceptModeratorInvite();
                   }

Than I get the Error: "string" doesn't contains a definition for "Subreddit" [...]
I guess the problem is the ToString() in var privateMessage = reddit.User.PrivateMessages.ToString();. But I don't know what to use instead of this.

var privateMessage = reddit.User.PrivateMessages;
if (privateMessage.ToString().Contains("gadzooks!"))
{
var sub = reddit.GetSubreddit(privateMessage.Subreddit);
sub.AcceptModeratorInvite();
}

@YMIndustries

var privateMessage = reddit.User.PrivateMessages;
if (privateMessage.ToString().Contains("gadzooks!"))
{
var sub = reddit.GetSubreddit(privateMessage.Subreddit);
sub.AcceptModeratorInvite();
}

Doesn't work either no Subreddit. And I found out, that it doesn't even go into the `if`, bacause `privateMessage` is still

  privateMessage	{RedditSharp.Listing<RedditSharp.Things.PrivateMessage>}	RedditSharp.Listing<RedditSharp.Things.PrivateMessage>

try this:
var privateMessages = reddit.User.PrivateMessages;
//Loop through all Messages
foreach(var message in privateMessages)
{
	if (message.ToString().Contains("gadzooks!"))
	{
    	var sub = reddit.GetSubreddit(privateMessage.Subreddit);
    	sub.AcceptModeratorInvite();
		//Exit the foreach loop
		break;
	}
}

This is no longer about RedditSharp - it's a basic failure to understand C#. Take it to Stack Overflow.

You could at least be supportive and help him... afterall we all started somewhere, people on Stack Overflow aren't supportive of beginners.

authors: Aniel SirCmpwn StevenChorkley TeBeMeFe YMIndustries

repo: SirCmpwn/RedditSharp


text:
swaybg: comment unused argument

This fixes a compiler warning:
../swaybg/main.c: In function ‘main’:
../swaybg/main.c:52:8: warning: unused variable ‘scaling_mode’ [-Wunused-variable]
char *scaling_mode = argv[3];
^

Any reason why you don't want to merge this?

The variable will be used at some point. Commenting it out to prevent a warning is silly.

I think it's good practice to fix warnings. It also encourages people not to add new ones.
There are other ways to fix this, like disabling the specific warning, or explicitly casting to void. Is there any other way to fix this that you could consider applying?

Is there any other way to fix this that you could consider applying?

Yes: implementing different scaling modes.

I agree that warnings should not be left sitting in the codebase. However, this warning is warranted - it's a warning that this feature is missing and still needs to be implemented. The resolution is to implement the feature, not to suppress the warning by commenting out the code.

I think there are already better places to keep track of missing features.
I'd love to be able to compile after every modification I make, without being told every single time that there is a missing feature in swaybg.

Let's not bikeshed this any further. I've explained why the pull request was not merged.

authors: SirCmpwn christophgysin

repo: SirCmpwn/sway


text:
Problem with reading AE2 things cells

Describe
The ME bridge doesn't recognize the cells from AE2 additions, I tried to make a program to get total space available on the system and I noticed that it just showed the cells from AE2 things I had in my system
Steps to reproduce

run listCells()
It won't return AE2 additions cells

Multiplayer?
Yes
Version
1.19.3-0.7.29r (Latest 1.19.3)
Minecraft, Forge and maybe other related mods versions
forge 43.2.14, MC 1.19.2
Screenshots or Videos
No response
Crashlog/log
No response

Which AP Version do you use? You've selected 1.19.3 but use minecraft and forge for 1.19.2

repo: SirEndii/AdvancedPeripherals


text:
Doc: manifest.setDefaultRouteType vs. manifest.addRouteType

manifest.setDefaultRouteType appears to be undocumented. Would be great to add a note on the diff between two methods.

This has been fixed. JSDoc existed, but was in the wrong place to have Code pick it up.
FWIW, setDefaultRouteType() directly modifies the app route template that import generates; all other route types inherit from the default route type.

authors: alexshyba kamsar

repo: Sitecore/jss


text:
文字コードの変換について

Unicode名前空間にある関数群でどのような文字コードでも変換できる、っていうのはゲームライブラリとしてかなりの強みだと思うので、リファレンスに書くべきだと思います。

done: https://siv3d.github.io/ja-jp/reference/unicode/
なお、すでにチュートリアルでは一部解説: https://siv3d.github.io/ja-jp/tutorial/data-structures/#_10


text:
Parameters of the trained discriminator

Dear author, could you please share the parameters of the trained discriminator? Currently, only the generator's parameters are available.

I already know, but currently there is one thing that is unclear to me, what is ablation. pkl

repo: SizheAn/PanoHead


text:
FR: Sortable Matrix View

I have my notes setup with a "next::" in them:

Every previous note points just to the next one.   The previous is implied.
When I go to the parent, I don't see the order showing up by relationship.  You can see this is alphabetical:

it shoudl show more like:
May
June
July
August
...

Ahh this is interesting...
It'll take some thought, but I'll consider trying to implement this

I've added this in the latest release, available via the BRAT plugin under the V4 beta. See the top link in the README for more info

repo: SkepticMystic/breadcrumbs


text:
Viewing models requires login to 3DWH

I noticed the onebox embedded in the forum does not work anymore as previously.
Example: https://forums.sketchup.com/t/ruby-on-rails-guru-feature-request/91

Actual
Expected

Apparently, 3D Warehouse now requires a login to view models in 3D or to obtain an embed code. This makes it less useful for spontaneous visitors who are not members. After login, I can obtain an embed code that has an additional authentication token and works without login, e.g.:
https://3dwarehouse.sketchup.com/embed.html?mid=207407c5961c7d6388864d814c5c8043&width=400&height=300

is now
https://3dwarehouse.sketchup.com/embed/207407c5961c7d6388864d814c5c8043?token=vtghY6Xyu0g=&binaryName=s21

As it works currently, users can paste the URL of a 3DWH model page (does not include authentication) and it is converted into the embed code (needs authentication). To continue using the onebox in the forum, we would have to modify the embed code in the onebox source code to include the corresponding authentication token for each model.

What would be a way to retrieve the token? Is there an API for programmatically retrieving authentication tokens?  Or there is an API for programmatically retrieving embed codes?
Or does there already exist a way to circumvent the authentication, e.g. a whitelist that allows embedding within SketchUp/Trimble-owned domains?
Or can we downgrade the onebox to display at least something without authentication, like the static preview image?

I asked around internally, got these responses:
So, those look like the old embed codes with the .html?mid= in them
the new code looks like [app.sketchup.com/app?3dwid=207407c5961c7d6388864d814c5c8043](http://app.sketchup.com/app?3dwid=207407c5961c7d6388864d814c5c8043)

As I understand there is no existing, programmatic way to do this.
The old link:
https://3dwarehouse.sketchup.com/embed.html?mid=207407c5961c7d6388864d814c5c8043&width=400&height=300
is similar to the new link and could possibly be fixed with a script to maintain the "mid=" model ID number and stick it to the end of the new link:
"http://app.sketchup.com/app?3dwid="

Or better yet, just replace "https://3dwarehouse.sketchup.com/embed.html?mid=" with "http://app.sketchup.com/app?3dwid=" and the rest should work.

I've not had time to look closer at this personally.

I tried again all URLs I could find (in a private tab where I'm not signed in to all SketchUp things):

✗ Share (as suggested above):
http://app.sketchup.com/app?3dwid=207407c5961c7d6388864d814c5c8043
Goes directly to the 3D app for editing, requires login (analog for edu)

✗ Image preview:
https://3dwarehouse.sketchup.com/warehouse/v1.0/content/public/1f5f71e0-f496-4b93-b344-316eefe62944
Contains a UUID that has nothing in common with the model ID. We cannot generate such a URL from the model ID.

✗ Embed (with token, obtained when logged in):
https://3dwarehouse.sketchup.com/embed/207407c5961c7d6388864d814c5c8043?token=or7u1RINT9Y=&binaryName=s21
No login required for viewing, but we cannot programmatically obtain the token.
Goes first to the image preview, after a click to the 3D viewer.

✓ Embed code with token omitted:
https://3dwarehouse.sketchup.com/embed/207407c5961c7d6388864d814c5c8043
Now the login is not required anymore! I was sure when I created the issue, the URL only worked with a token.

Since the last one is working, I committed some fixes to my upstream repo.
I can't open a pull request here because of this weird inverted fork direction (probably I could transfer ownership of my repo to Sketchup and then fork it).

authors: Aerilius thomthom


text:
When i tried to install it says "unexpected error"

Versions

SPT-AKI Server version: 3.6.1
SPT-AKI Profile Editor: version 2.7
List of installed mods: nothing

Describe the bug

That is windows error, not related to editor or installer. May be that will help - https://answers.microsoft.com/en-us/windows/forum/all/error-code-2503-and-2502/8cdaeea6-f775-458a-9a73-71424bcdb412


text:
k8s中cronjob pod结束了日志没上报上去

用的是k8s的cronjob  执行的脚本，脚本执行完后，日志没发上去，这个有手动触发日志发送的机制么

cronjob 工作流程是什么

apiVersion: batch/v1beta1
kind: CronJob
k8s的cronjob 调度，
脚本执行的是cli,我改了下扩展，支持cli

但是k8s在脚本执行完后就把pod杀掉， 日志没来得及上报上去，有没有办法手动触发上报呢

首先支持cli意义不大，然后数据上报需要有个注册过程，cli生命周期是一次性的，所以没注册成功

注册成功了，但是没上报上去， @heyanlong

你是cli吗？

吗

对的，我看你代码里面写了，为啥不放开cli呢

我把这个改成了1 ，能收到消息

因为cli的生命周期有一点问题

authors: YeDongaidiiqu heyanlong

repo: SkyAPM/SkyAPM-php-sdk


text:
Cannot build on Windows

I have setup a fresh Windows 11 virtual machine with Visual Studio 2022 CE and Flutter 2.10.
Everything works fine, but as soon as I try to build the windows app, it says:
CMake Error at flutter/ephemeral/.plugin_symlinks/sodium_libs/windows/CMakeLists.txt:19 (execute_process):
  execute_process error getting child return code: %1 ist keine zulässige
  Win32-Anwendung

Any ideas, what the problem could be?
The failing command in the CMakeLists.txt is:
execute_process(COMMAND "${DART}" run
                "${CMAKE_CURRENT_SOURCE_DIR}/../libsodium_version.dart"
                OUTPUT_VARIABLE LIBSODIUM_VERSION_JSON
                COMMAND_ERROR_IS_FATAL ANY

Thanks and best regards!

Hint: If I change the code to this:
#execute_process(COMMAND "${DART}" run
#                "${CMAKE_CURRENT_SOURCE_DIR}/../libsodium_version.dart"
#                OUTPUT_VARIABLE LIBSODIUM_VERSION_JSON
#                COMMAND_ERROR_IS_FATAL ANY
#)
set(LIBSODIUM_VERSION_JSON "{\"ffi\":\"1.0.18\",\"js\":\"0.7.9\"}")

(so adding manually the version information), everything works fine! It seems like dart cannot be executed from the CMake file. Any ideas, what the problem could be?
Thanks and best regards!

Huh, that is weird. Is the dart executable available in your PATH? What happens if you run dart --version in the same command prompt as the one where you run the build? However, the check in https://github.com/Skycoder42/libsodium_dart_bindings/blob/main/packages/sodium_libs/windows/CMakeLists.txt#L16 should already fail if dart was not found. Which CMake version are you using?
If thats not it, I am not sure where the problem is. In the CI-Pipeline, the build succeeds. Maybe you could replace the find program check with the following:
if(DART)
  message("Found dart at: ${DART}")
else()
if(NOT DART)
  message(FATAL_ERROR "Did not find dart in PATH!")
endif()

Also, running flutter build ... --verbose might output something useful, so it's worth a try.

I will check tomorrow - the dart executable is in the PATH, I can call dart --version so this shouldn't be the problem. Looks like the CMAKE process runs in a thread that does not have access to the path.
The error also does not say, that dart isn't available but that dart isn't a valid Win32 application.
I think it could be an issue with Win 11 and Visual Studio 2022 - would it be ok for you to tell me your Windows Version (10?) and the Visual Studio Version you are running? Then I will set up a VM and test it there.
Thanks a lot!

I am using the GitHub Actions CI with the windows-latest image. You can find more information on the image, including OS-Version and more here: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
I have not tested it on Windows 11 yet, so that might be the reason. And yes, the error message seems to indicate that cmake fails to pass the correct dart path to the subshell executing the command.

I just changed the code to:
execute_process(COMMAND "c:\\flutter\\bin\\cache\\dart-sdk\\bin\\dart.exe" run
now, it works - it seems like CMake resolve the dart.exe to something else, in my case to "C:\flutter\bin". Maybe I need to change my path then...

That is weird. As far as I know, the dart executable is "linked" in the C:\flutter\bin directory (If I remember correctly, as a batch script), so that path should work as well. But maybe the execute_process cannot directly execute a script, that could be an explanation. Does your C:\flutter\bin contain a dart executable/script?
I also looked at the documentation of exec_program, and apparently, it is deprecated and should not be used anymore: https://cmake.org/cmake/help/v3.0/command/exec_program.html#command:exec_program
So I am unsure if I should actually use it. I think, maybe just explicitly using a shell (cmd /c "${DART}") might be enough.

I tried with cmd /c {DART} but it says: "The file cannot be found." :(

This is my flutter\bin folder.

Okay, so I updated the native flutter parts of the plugin and changed the windows build to use "cmd /c ${dart} ...". The pipeline succeeds, so it seams to at least generally work.
Could you try the build with the lastest main branch? You can simply use a git-dependency in the pubspec for that:
dependencies:
  sodium_libs:
    git:
      url: https://github.com/Skycoder42/libsodium_dart_bindings.git
      ref: main

So I tried it myself on a Windows 11 Machine with VS 2022 and I can build successfully. Did the changes on the master branch fix your problem?

Sorry for the delay, I'm currently traveling, but will have a look on it next week and give feedback! Thanks a lot for your effort!

Yes, it works - thank you so much for your help and support with this!

perfekt, then I will publish that soon


text:
follow linux-setup.md can't download server package

curl -s -L https://github.com/SkygearIO/skygear-server/releases/latest | egrep -o '/SkygearIO/skygear-server/releases/download/[v.0-9]*/skygear-server-linux-amd64' | wget --base=http://github.com/ -i - -O skygear
can't download server package.
I got this error:
--2017-06-14 15:05:24--  http://github.com/SkygearIO/skygear-server/releases/download/v0.24.0/skygear-server-linux-amd64
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/SkygearIO/skygear-server/releases/download/v0.24.0/skygear-server-linux-amd64 [following]
--2017-06-14 15:05:26--  https://github.com/SkygearIO/skygear-server/releases/download/v0.24.0/skygear-server-linux-amd64
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-14 15:05:28 ERROR 404: Not Found.

@yuchangfu Thanks for reporting the issue! Let me fix that.

@yuchangfu This is fixed! Please check out the updated installation guide.

authors: cheungpat yuchangfu

repo: SkygearIO/skygear-server


text:
Server crash right-click-harvesting Harvestcraft chili pepper with Dark Axe

What a curious interaction.
http://pastebin.com/KHazUCU1
I had also just activated my Blood Magic Sigil of Magnetism, in case that's important.

Just don't do that...and wait for Ender IO 2.3. ;)
Right-clicking with the dark axe is not server-compatible in 2.2.8. We've fixed it a while ago, but the next release is taking some time.

Doctor, it hurts when I do this!
"Fixed, but not yet live" is heard. Thanks!

authors: BlooBeuts HenryLoenwind

repo: SleepyTrousers/EnderIO

license: Unlicense


text:
[1.10.2]Item conduct crash when use to extract floppy disk to Hard drive (refine storage)

Issue Description:
Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If you are using an unreleased version of Ender IO (e.g. for 1.8.9), please don't open an issue for features that have not been announced as "finished" or "working".
FTB Unstable 1.10 modpack
What happens:
I made a creative world for testing, I use storage drawer with an infinite withdraw of Floppy Disk 64k (Refine storage). I then connected the item conducts to all 8 Hard Drive and configure to item conduct to extract (with 15 speed upgrade) without red signal.
What you expected to happen:
Back in 1.9 It will extract the floppy disk and insert it to the hard drive, however on 1.10.2 it crashes throw an error.
Steps to reproduce:

Use Storage Drawers put in floppy drive 64k (refine storage) with an infinite withdrawal upgrade.
Place 1 or more hard disk drive (refine storage) then connect the items conducts to the infinite storage that has the floppy disk 64k.
use 15 speed upgrade on the item conduct that is connect to the storage with the infinite floppy disk 64k. Make sure all item conduct is config to insert on the Hard disk drive then turn off red stone signal.
...

Affected Versions (Do not use "latest"):

EnderIO: EnderIO-1.10.2-3.0.1.70_beta
EnderCore: EnderCore-1.10.2-0.4.1.40-beta
Minecraft: 1.10.2
Forge: Forge Mod Loader version 12.18.1.2014

Your most recent log file where the issue was present:
crash log:
http://pastebin.com/211hRYb7
[pastebin/gist/etc link here]

fixed in next build

authors: HenryLoenwind NanayaQ


text:
ENH: make it easier to manage volume properties

We turn off auto-creation of volume property nodes
so that the user is required to make them by hand
before running the animation.
This now works for me:

load data
turn on volume rendering
create two extra volume properties and initialize them from presets and then tweak the params as needed
go to Animator
add the effect and pick the volume properties via the gui

Does it work the same way for ROI action as well (i.e., no ROI creation)?

Does it work the same way for ROI action as well (i.e., no ROI creation)?

No, but if you like this behavior we could make that behave the same.

authors: muratmaga pieper

repo: SlicerMorph/SlicerMorph


text:
Environment variables not being substituted

Hi,
I'm trying to use your Github Action to replace two environment variables with the value of Github Secrets in a .sh file before building and pushing a Docker image. However, the variables are not being substituted. Instead they are left blank. The filename that contains the environment variables that need to be substituted is named 'entrypoint.sh' and is located in the root of my repository. I've setup your Github Action as follows:
jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Variable Substitution
        uses: Slidem/inplace-envsubst-action@v1.0.0
        env:
          STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
          STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
        with:
          fail_on_missing_variables: "true"
          search_input: |
            {
              "files": ["entrypoint.sh"],
              "depth": 1
            }

Source: https://github.com/Freekers/docker-ggcombatcarnage/blob/main/.github/workflows/automation.yml
And the entrypoint.sh file containing the environment variables that need to be substituted looks like this:
#!/bin/bash -ex

[ "$UID" != 0 ] || {
    mkdir -p ~user/Steam
    chown user: ~user/Steam
    runuser -u user "$0" "$@"
    exit 0
}

GAMEDIR="$HOME/Steam/steamapps/common/Gas Guzzlers Combat Carnage/Bin32"

cd "$HOME"
STEAMCMD="./steamcmd.sh +@sSteamCmdForcePlatformType windows +login ${STEAM_USERNAME} ${STEAM_PASSWORD} $STEAMCMD"

# eval to support quotes in $STEAMCMD
eval "$STEAMCMD +app_update 596620 +quit"

rm -f /tmp/.X1-lock
Xvfb :1 -screen 0 800x600x24 &
export WINEDLLOVERRIDES="mscoree,mshtml="
export DISPLAY=:1

cd "$GAMEDIR"

[ "$1" = "bash" ] && exec "$@"

wine ./GGDedicatedServer.exe

Source:  https://github.com/Freekers/docker-ggcombatcarnage/blob/main/entrypoint.sh
Why aren't ${STEAM_USERNAME} and  ${STEAM_PASSWORD} being substituted for their values stored as Github Secrets?
Thanks

Hello,
Hmm interesting, let me double check it and get back to you by the end of today.

Hey, just took a quick look...
I think you are missing just a step before the action:
    steps:
      - name: Checkout
        uses: actions/checkout@v2

Git hub action just runs a docker container and executes your command. But it needs to checkout your code first ... unfortunatelly this doesn't happen automatically, you have to tell github actions to check out your code.
Can you please try again and let me know if it works ?
Full example of your github action:
name: Build and Push Docker Image
on:
 push:
 schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '11 11 1 * *'

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Variable Substitution
        uses: Slidem/inplace-envsubst-action@v1.0.0
        env:
          STEAM_USERNAME: "${{ secrets.STEAM_USERNAME }}"
          STEAM_PASSWORD: "${{ secrets.STEAM_PASSWORD }}"
        with:
          fail_on_missing_variables: "true"
          search_input: |
            {
              "files": ["entrypoint.sh"],
              "depth": 1
            }
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: freekers/docker-ggcombatcarnage:latest,freekers/docker-ggcombatcarnage:${{ github.run_number }}

Also, make sure to use the latest version v1.2.2 ^^

Thanks for the quick reply and your help so far, I appreciated it 👍
I implemented the checkout step and updated the version of your Github Action, but sadly it's still substituting them with blanks.
Here's the output of my Docker container:
eval './steamcmd.sh +@sSteamCmdForcePlatformType windows +login    +app_update 596620 +quit'

As you can see there are two white spaces between +login and +app_update where the username and password should be.
Any ideas :) ?
Thanks!

Try also with uses like this (using "uses"):
- name: Test action
        uses: ./
        env:
          COOL: "test value"
          blacklisted: "blacklisted"
          whitelisted: "whitelisted"

to make sure you are on the root directory.

I found the issue... and it has nothing to do with your code/action.
Apparently the docker/build-push-action@v2 step checks out the code by itself automatically, unless you specifically tell it not to do so. So what was happening was is that I checked out the code using actions/checkout@v2, did the variable substitution, but then the docker/build-push-action@v2 step would checkout the code again and basically render the previous steps useless.
To fix this, all I needed to do was add context:  to the docker/build-push-action@v2 step, which basically tells it not to checkout the code again, but build the image using the code that's already checked out. The automation.yml looks like this now:
name: Build and Push Docker Image
on:
 push:
 schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '11 11 1 * *'

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Variable Substitution
        uses: Slidem/inplace-envsubst-action@v1.2.2
        env:
          STEAM_USERNAME: "${{ secrets.STEAM_USERNAME }}"
          STEAM_PASSWORD: "${{ secrets.STEAM_PASSWORD }}"
        with:
          fail_on_missing_variables: "true"
          search_input: |
            {
              "files": ["entrypoint.sh"],
              "depth": 1
            }
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          context: .
          push: true
          tags: freekers/docker-ggcombatcarnage:latest,freekers/docker-ggcombatcarnage:${{ github.run_number }}

Sorry for wasting your time on this, I'm still new to Github Actions.

@Freekers Don't worry about it. Happy it was solved ^_^

authors: Freekers Slidem

repo: Slidem/inplace-envsubst-action


text:
Unity3D 5.5.1f1 Lighting fog settings overrule depth

When applying the current Unity Stack image effects and enabling fog settings within the lighting settings, the volumetric spotlight beam will appear under the fog as in rendered behind the fog. When disabling fog in lighting panel, the volumetric light is rendered correctly.
Screenshot: http://imgur.com/NLetlTd

I don't have time to take a look but you can try to remove [ImageEffectOpaque] from VolumetricLightRenderer. That will force it to render after transparent objects. Make sure VolumetricLightRenderer component is below other image effect components and it should be rendered last.

authors: SlightlyMad jdmulti

repo: SlightlyMad/VolumetricLights


text:
Square highlight behind the round main menu buttons on press (Android Chrome)

Chrome on android shows square highlight behind the round main menu buttons when you press them. (In the video, I'm long pressing the buttons so they don't open the tool)
example video
https://user-images.githubusercontent.com/49207360/151593426-2c749d26-1aec-4e90-9094-8de08b738f26.mov

Fixed in #119

authors: blundellj gjcope

repo: Smithsonian/dpo-voyager


text:
🛑 NEOCP is down

In e47a0a3, NEOCP (https://minorplanetcenter.net/iau/NEO/toconfirm_tabular.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NEOCP is back up in 91a61e7 after 4 minutes.

repo: Smithsonian/upptime


text:
🛑 NEOCP is down

In a734b73, NEOCP (https://minorplanetcenter.net/iau/NEO/toconfirm_tabular.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NEOCP is back up in 8329c03 after 3 minutes.


text:
Add simple AWS client implementation

Resolves #169
Scope
Implemented:

AWS authentication client
AWS S3 client

*NOTE

Only environment credentials are supported in this Pull Request

Checklist

[x] GitHub issue exists for this change.
[ ] Unit tests added and they pass.
[x] Pylint 10.0/10.0 without bloating .pylintrc with exceptions.
[x] Review requested on latest commit.

create_package

repo: SneaksAndData/adapta


text:
Optimize the object copy function for the game drawings and use sprites for box shapes instead of graphics objects

This should increase performance for all drawings, but most notably the box shapes. Using this code as example:
const shapesProp = [];
game.events.addEventListener('roundStart', {perPlayer: false}, function() {
  let shapes = [];

  let sc = game.graphics.getScreenSize();

  for (let i = 0; i < 5000; ++i) {
    let size = Math.random() * 2
    shapes[i] = {
      type: 'bx',
      colour: Math.random() * 0xFFFFFF,
      alpha: 1,
      pos: [Math.random() * sc[0], Math.random() * sc[1]],
      size: [size, size],
      angle: Math.random() * 90,
    }

    shapesProp[i] = {
      speed: Math.random() * 0.5,
      dir: [Math.random()*2-1, Math.random()*2-1]
    }
  }

  game.graphics.createDrawing({
    alpha: 1,
    pos: [0, 0],
    angle: 0,
    scale: [1, 1],
    attachTo: 'world',
    isBehind: false,
    shapes: shapes,
  });
})

game.events.addEventListener('step', {perPlayer: false}, function() {
  let sc = game.graphics.getScreenSize();
  game.graphics.drawings[0].shapes.forEach((s, i) => {
    let prop = shapesProp[i];
    s.pos[0] += (prop.speed * prop.dir[0]); s.pos[0] %= sc[0];
    s.pos[1] += (prop.speed * prop.dir[1]); s.pos[1] %= sc[1];
    s.angle += prop.speed; s.angle %= 360;
    s.noLerp = true;
  });
})

I normally get 10-15 fps, but with the new code i get 45-50 fps

this is awesome, i'd never thought of using sprites for this, thank you!
i'll also adapt this to lines as well in the next commit after this one

apparently i have to have it opened to merge whoops

authors: SneezingCactus UrsoTriangularo

repo: SneezingCactus/gmmaker


text:
Enhance gemma2 Layer Normalization Functionality

Description

Enhanced the fast_rms_layernorm_gemma2_compiled function by adding a torch.compile decorator for improved performance.
Added detailed comments to clarify the implementation and future considerations.

Changes walkthrough 📝
Relevant filesEnhancement

gemma2.pyEnhance fast_rms_layernorm_gemma2_compiled with torch.compile

unsloth/models/gemma2.py
Added a new implementation of fast_rms_layernorm_gemma2_compiled function.  Introduced torch.compile decorator for optimization.  Included comments regarding the use of torch.compile.

+13/-0

/add_docs

/add_docs

/ask what is the PR about?

/help

repo: Snorkell-ai/unsloth


text:
update avax-klo contract to double rewards

Traderjoe Avax-Klo strategy updated to reflect move to double rewards on 12/12/2021

Waiting for joe pool to be updated on monday. May need to change LP contract address and poolId.

repo: Snowball-Finance/protocol


text:
Remove deprecated resource

│   with module.pat_geff_shs.module.storage_integration.snowflake_integration_grant.this,
│   on .terraform/modules/pat_geff_shs.storage_integration/storage_integration.tf line 22, in resource "snowflake_integration_grant" "this":
│   22: resource "snowflake_integration_grant" "this" {
│
│ This resource is deprecated and will be removed in a future major version
│ release. Please use snowflake_grant_privileges_to_role instead.

resource "snowflake_grant_privileges_to_role" "g14" {
  privileges = ["USAGE"]
  role_name  = snowflake_role.role.name
  on_schema_object {
      object_type_plural = "TABLES"
      in_schema          = "\"my_db\".\"my_schema\"" # note this is a fully qualified name!
  }
}


text:
Move commit to on_idle with weight check

[x] move commit to on_idle
[x] remove interval from config and refactor accordingly
[ ]  re-run benchmark in collator node

[ ]   re-run benchmark in collator node

I would not worry about benchmarks in this PR. I would just use dummy weights if necessary. Only after we implement https://www.notion.so/snowfork/Basic-Channel-V3-0e46926b19d644f0be4f0d9be18d18f1 do we need proper benchmarks

authors: vgeddes yrong

repo: Snowfork/snowbridge


text:
Enrichir les gabarits de page avec l'option CARROUSSEL de photo

URL concernée : tout le site
J'observe ce qui ne va pas :
Les usagers nous remontent que le site contient trop de texte et pas assez de contenus multimédias
Je demande ce que je voudrais :
Ajouter en option aux gabarits de page la fonctionnalité de caroussel de photo

#65
#39
#107

Strapi ne permet pas de faire des carroussels via l'éditeur de texte.
Créer un caroussel n'est faisable que par un développeur directement dans le code du site, à la demande, pour être placé à un endroit spécifique.

repo: SocialGouv/mda


text:
Softether how to set SYSLOG to send logs through tcp protocol？

Hi, there!
Thank you for using SoftEther.
Before you submit an issue, please read the following:
Is this a question?

If the answer is "yes", then please ask your question on www.vpnusers.com.
The issue section on GitHub is reserved for bugs and feature requests.

If the answer is "no", please read the following:

We provide a template which is specifically made for bug reports, in order to be sure that the report includes enough details to be helpful.
Please use or adapt it as needed.

Prerequisites

[x] Can you reproduce?
[x] Are you running the latest version of SoftEtherVPN?

SoftEther version:
Component: [Server, Client, Bridge, etc.]
Operating system: [Windows, Linux, BSD, macOS, etc.]
Architecture: [64 bit, 32 bit]
[In case it's a computer with known specs, such as the Raspberry Pi, you can specify it omitting the details.]
Processor: [Specify brand and model. Example: AMD Ryzen 7 1800x]
Description
[Description of the bug]
Expected behavior:
[What you expected to happen]
Actual behavior:
[What actually happened]
Steps to reproduce

[First step]
[Second step]
[And so on...]

Softether how to set SYSLOG to send logs through tcp protocol

repo: SoftEtherVPN/SoftEtherVPN


text:
Questions about training traces

Hi,
I am trying to reproduce the training of Orca. In the paper, you mentioned that there are 256 actors. May I ask what traces are these actors use separately? Is there a script guiding the trace usage of different actors? Thanks
Best,
Chenxi

Hi @chenxi-yang,
Table 2 of SIGCOMM'20 paper indicates the corresponding environments of all actors during the training.
re the script, if you meant the orchestrator (see here, unfortunately it was not ready for the public release.

Hi,
Thanks for the reply. After reviewing the Table 2, I am still a bit confused about the trace setting. For the environment for each actor, did you randomly pick one fixed bandwidth, min RTT, and buffer size? That is, is each environment's parameter fixed or they fluctuate?
Thanks,
Chenxi

Hi @chenxi-yang,
We experimented with different approaches, but if I remember correctly, the model provided here is the result of training over fixed predetermined environments from a kind of uniform dist.

Thank you.

authors: Soheil-ab chenxi-yang

repo: Soheil-ab/Orca


text:
Unable to run sample tests.

Hi thank you for the speedy response. Executing the script without root still leads to no data output.

My error seems to stem from the last line of server.sh. What is the last line supposed to execute? I ran through the setup again to make sure I had the environment configured properly but am still seeing the error. Thanks.

Hi, you need to first compile/build Sage before you can run it (README is updated!). The error ".../sage no such file or directory" tells that the binary doesn't exist.
You can do this:
cd ~/sage/sage_rl
bash build.sh

repo: Soheil-ab/sage


text:
Layout fixes

Should create more sane layouts on smaller screens.

Stops date/time fields on download pages from overflowing out of the viewport by explicitly setting the width of form-group to 100%
Stacks the sidebar on top of the rest of the content on small screens (767px wide and smaller).
Also introduces an 'x' box in the organization filter, to close the dropdown.

Added the proposed timezone indication on issue_time_of_day. closes #95


text:
⚠ SolarOscp has degraded performance

In 423bec1, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 444 ms

Resolved: SolarOscp performance has improved in 2fde1fc after 14 minutes.

repo: SolarNetworkFoundation/upptime


text:
Dockerize Solr for integration tests

Instead of having a copy of Solr sitting inside the repository, use the public Docker image

We can add cores/data on startup, and do store this config in the repository. This means we can easily clean up Solr for each test.
We can even have docker start when the tests start (http://btburnett.com/2017/02/restful-api-integration-testing-for-net-core-using-docker.html)
Upgrading Solr is easy

@gjunge Definitively a great idea. I am still hanging on to your other suggestion of using PowerShell to download Solr, extract and setup. It could be configured to use 4.x, 5.x or 6.x.
We may want to explore both options and decide. I do like Docker as well, just thinking of what would make it easier for everyone else.
What do you think? Is the Powershell option worth exploring too?

@xavier-morera The powershell script was my first thought, after having downloaded the Windows version of Solr 6.6 myself and trying to set it up. Afterwards I thought of checking whether there is a docker version available.
Both have their pros and cons, I'm inclined towards docker due to its seemingly simplicity  (haven't tried It yet though). So probably the list below is biased.
PS pros:

No need to install Docker.
Can add support to as many SOLR versions wanted.

PS cons:

it doesn't just work on every computer (for instance I had to tweak the start SOLR script to make it look at the right registry setting to find java)
dependencies on java
cannot easily switch between versions of Solr
statefull solution, have to manually clean up.
another script to maintain

Docker pros:

besides maintaining instance setup no need to maintain setup code
easily switch SOLR versions (5.5 and up)
stateless, always get a clean slate
it's a container so just works

Docker cons:

dependency on Docker
only get he versions that are in the docker library.

In theory it should also be easier in docker to create multiple environments such as a  SolrCloud setup and single Solr setup, just depending on a different composition. In PS it should also be possible but takes much more scripting which creates more bugs which are not the type of issues contributors should deal with, rather work on SolrNet itself.

@gjunge good points on Docker. Seems like it is a better alternative than Powershell, mainly to reduce dependencies and for simplicity. Also, anyone who is using a particular version could deploy their specific version and use it as well.

+1 for docker
Installing Java and Solr permanently on my local machine, to be able to develop is not a good trade-off.
this alone will make me go for docker any day. That's what docker is for.
Docker is embraced by windows today, with the Linux Subsystem, so I do not see this as an anoying dependency. It's part of the everyday dev toolbelt.
I could potentially help with setting this up (I've done it before).

@serbrech agreed. It is what I just mentioned after reading @gjunge 's comments.
If you can help, that would be great.

@serbrech  That would indeed be great!
The Docker config should tailor our integration tests, so with other words should enable good integration tests.
What I've seen being done in the integration tests:

Use Solr with a single core, and a quit extensive schema (with all kind of datatypes)
Use Solr with multiple cores (testing the multi core features, so datatypes are not so important)
Adding cores
Removing cores
Swapping cores
Aliasing cores

And we will have to add integration tests surrounding SolrCloud in the near future.
As a side note, this Solr setup was also in use for the SampleApp (which has been moved to its own repo: https://github.com/SolrNet/SolrNetSampleApps), so if we could reuse the docker setup for that as well, that would be great.

@gjunge and @serbrech I decided to play around with Docker with Solr today and it is pretty easy and works pretty well. I did a few tests, here are some of the things that I learned today (being honest, my first time working with Docker - I use VirtualBox and other virtualization solutions a lot, but Docker not so much - until probably now moving forward)

Docker on Windows runs only with Windows 10 pro or Server 2016 RTM
For other versions of Windows you need Docker Toolbox. I ran into an issue as I was already running VirtualBox so I had to manually reinstall the VirtualBox driver, not a big deal and I can document the three steps required.
There are multiple versions of Solr available, and there is even a version with a demo core with sample data

Starting a server is absurdly easy, just takes a bit to download but you run this command
docker run --name my_solr -d -p 8983:8983 -t solr

You wait for a bit to download

And you get this

Change the tags and you get other versions. Please note 5.5 is the minimum version in the "official" list.

I also installed on Mac and works well

Additionally I tested downloading the zip file, expanding and starting to have an alternative to Docker but there are a few dependencies and prerequisites that could make it hard to go this route for integration tests

And finally, I gave it a shot at running Docker within a VM. I assumed it wouldn't work, and indeed that was the case. I know this sounds a bit dumb, but I virtualize all my dev stuff, so I had to give it a shot.

All in all, I think Docker seems to be the best way to get multiple versions of Solr up and running instead of having to upload to Git a version of Solr.
Thoughts?

@xavier-morera Docker is really great, certainly for these scenarios. For testing you just want everything to work in a lab-like environment, with no external interference, and Docker gives us that with the added simplicity.
I also believe that Docker becomes more and more a standard tool in each developers' toolkit, so the Docker requirement is not that outrageous.
Dockerizing our tests, and our sample app is one of the most important things before moving forward, it will make adding features so much "safer".
I see the following pain/attention points:

Our current tests work in general with one set of data/schema. I think we should settle on a standard schema setup that would cover most of our tests. You said that some of the Docker images come with sample data, would be great to use that , although I'm not sure if we can rely on it to be the same throughout all the images. Because we wouldn't want our tests suddenly to fail because they decided to change the Sample data.
Rewrite our tests after we settle on the sample data.
Our Docker setup, should include both Solr and Solr Cloud support.
Nice to have: Have AppVeyor  also run the integration tests. (It does have Docker enabled: https://www.appveyor.com/docs/build-environment/#services)
Nice to have: have our integration test iterate a few version of Solr , so we automatically run the tests on a number of different Docker images.
Rewrite our Sample App to work with this sample data.

I included a page on how to set up Docker and run a container with Solr 5.5.5 to 7.1. Will expand with more info on using Docker.
Responding to your questions, @gjunge:

Our current tests work in general with one set of data/schema. I think we should settle on a standard schema setup that would cover most of our tests. You said that some of the Docker images come with sample data, would be great to use that , although I'm not sure if we can rely on it to be the same throughout all the images. Because we wouldn't want our tests suddenly to fail because they decided to change the Sample data.

Agreed

Rewrite our tests after we settle on the sample data.

Agreed

Our Docker setup, should include both Solr and Solr Cloud support.

Agreed. I posted instructions that use one set of images, there are others that include SolrCloud as well. We just need to find one that's reliable, stable and well configured.

Nice to have: Have AppVeyor  also run the integration tests. (It does have Docker enabled: https://www.appveyor.com/docs/build-environment/#services)

This will be great

Nice to have: have our integration test iterate a few version of Solr , so we automatically run the tests on a number of different Docker images.

Shouldn't be hard, a few approaches could be

Start one container at a time, run the tests, stop container, start new container with different solr version, test, stop container, ...
*Or allow multiple containers to be up and running at a time to allow for testing in parallel against multiple versions. This would require a bit more hardware, but can make life simpler. *

Something good is that this will make it a lot simpler to find breaking changes in Solr, deprecated functionality and other issues that arise from different versions

Rewrite our Sample App to work with this sample data.

The sample app is nice, but it is really really old. However, writing a new full front end could be too time consuming - time that could be spent on features in the core of the project. Unless we can get someone with front end development skills to chip in.

@xavier-morera - excellent.
I think this issue now contains all our requirements, and a guideline on how to implement.
So the next step is to get somebody to pick this up, and then we can continue to discuss the details if necessary.
For the coming few weeks I'm a little busy, so I will not be able to take this one for the coming while.

@gjunge thanks.

Instead of having a copy of Solr sitting inside the repository, use the public Docker image

Did this in 65d74d66273be7dd993154399798b75d3e856b62
Still using the "techproducts" schema that comes built into Solr.
The integration tests do include SolrCloud.

Nice to have: Have AppVeyor also run the integration tests.

They run on Github Actions.

Nice to have: have our integration test iterate a few version of Solr , so we automatically run the tests on a number of different Docker images.

It currently runs on each major version of Solr from 5.x to 8.x
Solr 9 was released a couple of months ago, should add it too.

The sample app is nice, but it is really really old. However, writing a new full front end could be too time consuming

I upgraded the tech in the sample app about a year ago, though I didn't really change any of its features.

authors: gjunge mausch serbrech xavier-morera

repo: SolrNet/SolrNet


text:
#YoSéQuePuedo: Cara a cara con el Síndrome del Impostor

Control de subtítulos
Vídeo

Título en español: #YoSéQuePuedo: Cara a cara con el Síndrome del Impostor
Link: https://www.youtube.com/watch?v=rlajAxdkOiY

En español

Quienes van a transcribir:

En inglés / In english

Título propuesto / Proposed title:
Quienes van a traducir / Translators: @mabenunez

En portugués

Título propuesto / Título proposto:
Quienes van a traducir / Traduzido por:

Quiero participar traduciendo al inglés

¡Gracias @mabenunez!

¡Hola @mabenunez! ¿Podemos ayudarte de alguna manera con los subtítulos?

authors: joelalejandro mabenunez

repo: SomosCodear/Subtitulos


text:
Fixed: Google Analytics not passing "value" to SDK on iOS

I found that GoogleAnalytics::sendEvent wasn't passing the "value" feild back to the Google Analytics SDK. This has been fixed and tested.

Again thank you very much :D

authors: PorkyPixels SonarSystems

repo: SonarSystems/Cocos-Helper


text:
Regarding the recent post by yoshi p

Hello just want to ask before i uninstall is it possible for them to detect base xivalexander and be able to ban people for use of it , just wanted to bring this up incase as I'm not entire knowledgeable on the subject, or is it still safe to use as my ping really makes it hard to even play the game.

No one here is from SE, how would we know? Just uninstall it and don't use it if you think there exists a risk.

His recent post doesn't show that there's any change in their policy. It also says they can't detect everything. Basically it's the same as before, don't advertise, don't stream yourself or show screenshots with third-party tools visible, don't use tools that send packets to the server in a way the client can't. However you could also get banned tomorrow because they decided so, but it has always been like that.

I think what the OP (and myself) is interested in is  how xiv affects packets: I'm guessing it doesnt change packet info but it does affect packet submission rate, would anyone with knowledge on the subject comment if this is technically "packet spoofing" (a term yoshi p used)

repo: Soreepeong/XivAlexander


text:
After migration from v1.7 to v1.8.4 moving items with display:none has strange behavior

Problem:
We use sortable extensively in our project for moving card components into different sections.
In one of the sections, the behavior is more of a dragover and drop inside the hovered element. That is why the ghost class is styled with 'display:none'. Dragging on top of the different elements (projects)  was working without issue in v1.7. Now the card is added to the list, but sometimes it gets stuck at the bottom. Usually, this happens when I drag from bottom to top on the projects list.
We managed to improve the behavior by changing the style for the ghost class to:
            width: 10px;             height: 10px;             margin-bottom: -10px;
I guess this is due to adding the new properties described here: https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction#swap-threshold
but i can't figure out how to make it work with tweaking them.
Thank you in advance for looking into this!
JSBin/JSFiddle demonstrating the problem:
https://jsbin.com/qahuxaz/edit

@DenitsaGencheva Should be solved in commit above.

repo: SortableJS/Sortable


text:
Odometry problem

when i tried odometry navigation, my goal is not working . How can i fix it . my goal not seen

I look at this maybe this week

repo: Souphis/gym-vrep


text:
🛑 Emby is down

In 7e7b976, Emby (https://youmust.watch) was down:

HTTP code: 502
Response time: 299 ms

Resolved: Emby is back up in efdf304 after 16 minutes.

repo: SourceQuality/upptime