Board: Table that lists game moves is too long

The problem is difficult mainly because tables and their child elements have special display types. Here are two demos that show what could be done, but they both change the display type:

https://jsfiddle.net/jgngg28t/
https://www.bootply.com/JnOYtO9xzn#

Here a jQuery plugin named "floatThead" is discussed:

https://stackoverflow.com/questions/21830541/angularbootstrap-table-designing
http://mkoryak.github.io/floatThead/

Additional links that may be of interest:

https://stackoverflow.com/questions/21375073/best-way-to-represent-a-grid-or-table-in-angularjs-with-bootstrap-3#25734089
https://stackoverflow.com/a/47923622/1054378
https://duckduckgo.com/?q=bootstrap+angularjs+scrolling+table&t=ffsb&ia=qa


Treat Wounds macro DCs are incorrect for proficiency without level

It seems like the current DCs are hard-coded.  It would be nice to expose these values in some way to allow changing the DCs. (Especially for those using Proficiency Without Level).

I'm not sure this would expressly be considered a "bug", since its for a variant system that isn't fully fleshed out by Paizo.  I will say that the PWL simple DCs are quite punitive for using Treat Wounds, which is why I would request the ability to change these values directly.  I've been using a custom set of Treat Wounds DCs and would like to be able to still use the convenient Treat Wounds Macro, but I can't seem to find where these values are stored.

Simple DCs
Normal DC
PWL DC
Custom PWL DC
Custom Treat Wounds DC

Untrained
10
10
10

Trained
15
15
15
12

Expert
20
20
18
16

Master
30
25
22
19

Legendary
40
30
25
22

Since this would require us to guess what the PWL DC is we won't implement pre-set ones, but maybe a way to customize them more easily is possible. The entire macro needs basically rebuilt to work with RE support anyways.

Yes, customization of the DC's would be great.  The macros work so well and we miss using them.


is phantom take some special identifier when visit website

when i use phantom to visit a website, is phantom take some special identifier which can be catched by the web server ?

It uses some default User-Agent header, but you can change it.
page.property("customHeaders", {
     "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48"
});

@kaytrance thks for apply
but i mean is phantom has other special identifier except "user-agent" which maybe not in the header?

See here for more info: http://engineering.shapesecurity.com/2015/01/detecting-phantomjs-based-visitors.html

But I have to close this ticket.
This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks.
For general question, code review request, build problem, or other related discussion, please post it to either:

the official PhantomJS users mailing-list
Stack Overflow (with phantomjs tag)

If you have not read it yet, please check also a few tips on Effective Q&A.


support for abxexpress

nt able to track abxexpress.com.my/index.html

Could you please provide information on their tracking number format?


Respect width and height properties for Object Tiles

Make sure you describe your PR in the README Change Log section!
This PR changes (✏ delete as applicable)

The public-facing API (not really, but maybe someone for some weird reason has scaled object tiles in Tiled and expects the engine to NOT preseve the scaling)
Nothing, it's a bug fix

Describe the changes below:
If you use Tilemap.createFromObjects() with object tiles it currently ignores any scaling (width, height) applied to said object tiles. This PR fixes it.
Not sure if there was any reason for ignoring those properties, since it's the only kind of Tiled object for which phaser does that.

Tile objects have a width and height whether they are scaled or not.

Tile objects have a width and height property inside Tiled. You can resize them to whatever size you want but phaser will ignore it. This PR fixes that and makes the behavior of Tilemap.createFromObjects() consistent whether we're using rectangles, polylines or tile objects.


docs: Fix Typo in README.md

Summary of the Pull Request
Completing #2971 by changing the word "avaiable" to "available".

References
#2971

PR Checklist

[x] Closes #2971
[x] CLA signed. If not, go over here and sign the CLA
[x] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments
Changing the word "avaiable" to "available" at README.md

Validation Steps Performed

/azp run


CSRF for /manage/delete/#T.Text

Hello, I know it's not at all my business how you run your site, however you might still find interest in this.
If I'm not mistaken if an external site links to say $APPROOT/manage/delete/cool_slug, and one accidentally clicks it and is having an logged in session at your site, then that post would be deleted, no? I'm not an expert on this so correct me if I'm wrong.
I've myself implemented something like your system of documents for my own site. If the issue exists I'm gonna fix it for my own site (and I can show you my commit how I did it).
But knowing you are a lot more experienced with yesod and web, I thought I ask you for advice how you would fix this. Also, CSRF works for /auth/logout. Is that a yesod issue?
So I'm opening this issue to inform and ask for your kind advice on how one could fix this "the yesod way". Do you have any input?

Thank you for the interest.
As for post management, I require that the logged in user is also an Admin on the site in order for any of the management pages to load as you can see here.
The userAdmin flag is a field that I manually set through SQL so no one but me should be able to access those links. I haven't tested things as a non-admin user in a long time so please tell me if this isn't working as I'd assumed...
I'm not sure about CSRF on logout, but I simply use the functionality provided by the plugin so perhaps there's a bug there?

I don't know how relevant which users have permission to delete documents, even if you are the only one and ain't gullible. What if you happen to click on http://pbrisbin.com/manage/delete/slug_hehehe? Would that not be a typical CSRF, you click on a link from github and delete your post slug_hehehe on devsite.
You are most likely not worried of this, I know, but if I were to fix this for my own site (or your site), what advice would you give? What do you think is the easiest way?

Cross site request forgery? I'm not sure I follow how accidentally deleting my own post would qualify. It's a simple GET request, doesn't matter where I came from.
If my site is somehow open to session hijacking, that someone who isn't me could get my session and delete a post -- that I'd want to hear about!
As for accidents, I'm not worried for the following reasons:

I trust me
I backup my database regularly
The database only holds metadata -- content is in Markdown files on disk (and also backed up)

And if I were, here's how I'd "fix" it:

Make the delete route accept both GET and POST
Make the GET response a confirmation page with a form to submit to the POST route
Make the POST route do the actual deletion.

This would be more in line with convention, standards and would then leverage yesod's built-in CSRF protection via the form-to-POST process as yesod forms include nonce fields by default.
I just didn't think my little site needed such things.

Yea, you're completely right in everything, and your "fix" is just how I imagined how I would do it too. Thanks for your input then!


Mamba

Is mamba supported already in the current version of llama.cpp this library uses?
(https://github.com/ggerganov/llama.cpp/pull/5328)

The binaries in the latest release (0.11.1) are a little too old. The ones in the master branch were compiled after that PR was merged, so in theory they should include mamba support. I'd be interested to hear how that goes if you try it!

Oh, I'm using the 0.11.2 (from nuget). I tried copying the binaries from the master and replacing the /bin ones with it.
Surprisingly it loaded the model which was not being the case before. But crashed without any printed errors and with exit code -1073740791 after 3 seconds I started an inference, not sure if it is because I'm using the same 0.11.2 or not. Just after the inferenced started and before crashing, it also outputted this to the console:

GGML_ASSERT: D:\a\LLamaSharp\LLamaSharp\llama.cpp:10282: n_threads > 0
(I tested with different configs over 'Threads' in ModelParams)

Is a new build of the nuget packet from master needed in this case?

I tried copying the binaries from the master

That won't work I'm afraid. The llama.cpp API is unstable so every time the binaries are updated there are various internal changes on the C# side to work with the changed API. You always need to use the correc set of binaries with the correct version of the C# code.

I don't have any ideas at the moment. I know Mamba is a bit of an unusual archtecture just because I've seen various comments inside llama.cpp about how certain APIs needs to be adjusted for Mamba, or don't quite make sense in a Mamba context. We'd definitely be interested in any investigations/PRs for Mamba support!

I suspected it was because nuget was caching the package (0.11.2) from the remote nuget (because I built the project using the 0.11.2 version), then I deleted the cache and now it works.

Yes, nuget caches the package and will not take your compiled one if it has the same version tag.

The outputs are very strange

That's an unexpected thing. What prompt were you using? If you have cmake installed on your PC, you could also try to run the same model and prompt directly in llama.cpp to see if the output is still in a mess.

That's an unexpected thing. What prompt were you using? If you have cmake installed on your PC, you could also try to run the same model and prompt directly in llama.cpp to see if the output is still in a mess.
About this, the model was one of the unique I was able to find in hugging face in GGUF that was actually mamba (MambaHermes 3B).

I tested it with the same formatting with the same processor I made for Phi3 and it also "kinda worked" (the responses were then very short, but more coherent). I also got it working a little better with the version quantized with 6-bits instead of 4.
But I realized something a little strange, there is something on the implementation of llama.cpp that makes models run progressively slower? I thought it was because I was using transformed-based models before, but even with mamba the time for initial token is many times increasing absurdly with each message (like, from 1 second to the first token to 5, then 10, then 26, etc).
One of my tests where they performed reasonably well:
Q6 https://gist.github.com/JoaoVictorVP/92f6f30ad9d3c3dc343fdf0d7685685f
Q4 https://gist.github.com/JoaoVictorVP/f4de9ee658108898eaefa2c58c37938d

there is something on the implementation of llama.cpp that makes models run progressively slower?

AFAIK, there's no such thing in llama.cpp. Could you please post the huggingface model link here so that we can try to reproduce this case?

(I'm asking because later I tested the same Phi3 model [not the mamba yet] in LM Studio and the time per first token was not changing so much, more like 1-3 seconds per message at max)

Though LM studio is not open-source, if I remember correctly, it also uses llama.cpp as the backend. As you mentioned above, phi-3 works well in LM studio while mamba becomes slower in llama.cpp. It doesn't indicate that it's llama.cpp's problem, but also probably the model's problem. Could you please try mamba in LM-studio, or try phi-3 with llama.cpp/LLamaSharp?

You'll get a progressive slowdown if you are using a stateless executor, and submitting larger and larger chat history each time. The stateful executors internally store the chat history and should be around the same time for every token. I'm not sure exactly how the situation there differs for Mamba, but it should be roughly the same afaik.

I'll close this one now, since mamba is now supported. If there's still problems please don't hesitate to re-open or to create new issues :)


Clean up passes/cmds/scatter.cc.

Sorry for the commit spam. @eddiehung WDYT now?

@boqwxp Should the kernel/hashlib.h changes be part of this PR?

Well, those were already merged, so... yes? :)
I just rebased on master, anyway.

Well, those were already merged, so... yes? :)

Mainly, I asked because having unrelated changes and several commits introducing related changes makes it hard to review the PR, since there is no easy way to see only the relevant ones.

Ah I see.  Unfortunately GitHub appears to have very poor UI for this.  I did actually submit a separate PR for the initial couple commits, and this PR depends on those changes, so I'm not sure how else it should be done.  But the only way you can see (AFAIK) that this is based on another PR is that some of the commits have a yellow ball/green checkmark/red X next to them, indicating they've been submitted to CI. :-\
Anyway if you manually checkout the branch and do git log you will see much more clearly that there are two different branch HEADs in the PR.


Make it possible to add nested elements in elements that close on the same line

Example:
<Adios2XmlPipe name="Adios2XmlPipe"></Adios2XmlPipe>

Related #638

:tada: This issue has been resolved in version 2.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


MongoDB Atlas docs links are broken

https://help.sumologic.com/docs/integrations/databases/mongodb-atlas/#step-1-acquire-authentication-info-from-mongodb-atlas-portal

@MariePMcGarry it seems MongoDB docs have moved to a new URL -- all of the links I checked are broken

link is fixed


Add foreign key and non-nullable constraints to Homeroom

Who is this PR for?
developers, enforcing data quality for educators
What problem does this PR fix?
No database level constraints on non-nullable fields or integrity of foreign keys.
What does this PR do?
Adds constraints.

selfie


zulip_bots: Create Google Calendar Bot.

This addresses #161, by implementing my (now almost 2 year old) Google Calendar bot.
Feel free to be extremely nitpicky when reviewing: this was one of my very first contributions, expect to find funky stuff. I bet you can't beat this ;)

Updated the PR with some fixes and minor improvements.
I haven't added a unit tests because the bot needs a decent amount of setup in order to run, which cannot be prepared with the current testing framework. If we were to make quite a decent amount of mocking in order to test it, I could offer to make a followup PR.
Cheers!

Nonetheless, I feel this PR has been stuck for too long and should just get merged and then iterated upon.
However, in light of especially the last bullet point, I wouldn't recommend directly adding this bot to the main directory. Instead, I'd add a commit to move the google_calendar bot to bots_unmaintained and then merge it. Then, we can close this PR, improve the bot, and eventually move it to the proper bots directory.

Thanks for reviewing, @roberthoenig!
I don't mind waiting a bit more in order to have this merged properly. I'll update the PR in a few hours :)
Regarding the parser tests, I forgot to make some comments about that: I tried to export that to a separate testing file, but I noticed the following:

As soon as you create the test file, the 3 standard checks that are built into the testing system are run (for instance, sending the bot an empty message). This causes some problems, since it involves starting the server —which can't be done due to the complex setup I mentioned earlier. A possible fix would be overriding those predefined tests.
Moving the stuff in test() to a separate file would require importing the bot's code from the new test file. Yesterday, when I played around with that idea, I had to do the trick of adding the bot's directory to the interpreter's path. Not sure if this would end up being necessary after some iterations, but just something worth keeping in mind.

I addressed for now the first two comments @roberthoenig made.
Let me know what you think about the tests and if you consider that further improvements are needed.
Thanks!

Hi, what is blocking this PR from being merged?

It would benefit from being rebased and tested by a new person, just to make sure it still works.

I think this is worth picking up. We might need to do some extra testings on this to see if everything still works fine.


Hide project stats : Use a Hide/Show button instead

It is not very motivating to see that you have just done 1% of the plots and you have 23.000 to finish...
Might be better to hide these stats and put them somewhere else, or use a show stats button.
Also, statistics, even important are not crucial while collecting data.

As of 12/24/2018, the current release of the application hides the stats by default.


It is better to auto focus the react file explorer when it opens

Storage Explorer Version: 1.32.0-dev (93)
Build Number: 20230908.4
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Ventura 13.5 (Apple M1 Pro)
Architecture: x64/arm64/x64
How Found: From running test case
Regression From: Not a regression
Steps to Reproduce

Expand one storage account ->File Shares.
Create a file share.
Check whether the file explorer is auto focused.

Expected Experience
It is better to auto focus the file explorer.
Actual Experience
The file explorer is not auto focused.

Verified this issue on the build 20230911.1. Fixed.


Listout TODOs

Please Make check list of all functionality TODO in future as well as currently supported functionality, so we can know which functionality currently supports and which is not supporting yet by this react native SDK.

Thanks for the feedback! This currently supports all of Hover's basic functionality: Requesting permissions, running a USSD session, and parsing SMS responses. What is missing are many of the helper APIs that assist in getting information about the user's SIM cards and the developer's actions.
We will attempt to make this clearer and hopefully add these APIs in the near future.


Template migrations

Ebert has finished reviewing this Pull Request and has found:

43 possible new issues (including those that may have been commented here).
28 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/Nebo15/man.api/pulls/15.


Example compile by mbed for cmsis-nn

Dear everyone;
I am looking find an example compile cmsis-nn by mbed. Can everyone share for me a little or tutorial me to do it?
Many thanks

Hi, @ccu1tn please ask this question on the forums in https://developer.mbed.org. You should be able to get an answer. I'll close this question here.


TAU code examples from 6.6.1 do not work with Postman 7.24

Tried to import code found in TAU code example links into Postman 7.24..  The import attempt gives a message of: "Error while importing: format not recognized"
Could these examples be re-exported and updated in the TAU repository ??

Tried to import code found in TAU code example links into Postman 7.24.. The import attempt gives a message of: "Error while importing: format not recognized"
Could these examples be re-exported and updated in the TAU repository ??

I found a workaround. I just copied the raw contents and created a new file with a .json extension. I then imported the file to POSTMAN (Import->Upload Files->"the .json file"


Add option to disable looking up interface names

Add new option to disable looking up the interface name on an event.
Not sure, but could it be that the assertions are not working correctly?
See https://github.com/agnat/node_mdns/issues/244 for context.

Hehe... except the test doesn't work. With the new tests the test suite exits silently after only 4 checks on mac os. Not sure what's going on. Could you look into it? 🤔

Yeah, already mentioned it above here:

Not sure, but could it be that the assertions are not working correctly?

I thought it was not something I had introduced.  Fix is in #246.

Yeah, already mentioned it above here

Not sure, but could it be that the assertions are not working correctly?

Right. Yes. That is very well possible. Unfortunately, both the tests and the documentation are mostly spit and glue. It's embarrassing...


Improve .tsx support

import * as React from "react";

export default class extends React.Component<{}, {}> {
  public render() {
    return <div />;
  }
}

// export const pageQuery = graphql`
//   query IndexQuery {
//     site {
//       siteMetadata {
//         title
//       }
//     }
//   }
// `;

Trying to execute the program with this code will fail.
The problem starts because https://github.com/jonschlinkert/strip-comments doesn't play nicely with ts.
If you have jsx the parser will get confused and will throw. Then, it won't remove the comments. Later, the regex will capture the query with the comments inside it and the graph-ql parser will throw.
But we can pass strip-comments custom babylon plugins: https://github.com/jonschlinkert/strip-comments/pull/40
The problem is that https://github.com/jonschlinkert/babel-extract-comments which is used by strip comments is using an older version of babylon which doesn't support typescript.
When both these dependencies are updated the options for typescript and jsx should be passed here: https://github.com/dotansimha/graphql-code-generator/blob/master/packages/graphql-codegen-cli/src/utils/document-finder.ts#L13
I'll submit PRs for them and will comment here later.

Sounds good @degroote22 :) thanks!

@degroote22 any update on this? I plan to release a new version soon

No, I haven't heard back from the the owner of these repositories.
One approach would be stop using these libraries and implement their functionality, which is trivial.
I'll submit a PR for it later today.


Dynamically add external links

In issue #400 I asked about adding external links into the navigation. I have been able to do this without any issue, but now I have another question. How can I do this (doesn't have to be in the navigation panel, it would be nice, but doesn't have to be) from the website itself. i.e. not in the actual code.
The goal I am trying to accomplish is allowing the admins of the site to be able to add / change / delete external links so that it doesn't require me to run to the source code to change a link.
Can this be done? If so how might one implement this?

Take a copy of NavigationHelper as MyNavigationHelper, modify GetNavigationItemAttributes method, after
                foreach (var assembly in ExtensibilityHelper.SelfAssemblies)
                {
                    foreach (NavigationItemAttribute attr in assembly.GetCustomAttributes(typeof(NavigationItemAttribute), false))
                    {
                        if (filter == null || filter(attr))
                            list.Add(attr);
                    }
                }

this load your items from database, json etc. add them to list.
Call your MyNavigationHelper from NavigationModel.cs

Then just add a new screen where a user can Insert / Update / Delete links from the database?

Yes :+1:

Awesome, I'll test this out as soon as I return to the office. Thanks @volkanceylan

You saved the menu to the database

@volkanceylan hate to comment on a closed issue but I was trying this out tonight and can't seem to figure it out. Where do I find the NaviationHelper? and how do I pull it from the database (sql)? This level of coding is a little beyond me, Thanks in advance!

In Serenity source code. You should use connection.List< MyEntityRow >() thats all. Of course open a connection first, SqlConnections.NewFor < MyEntityRow >

I never downloaded the source code for Serenity, I've just been using the Serene template. Is there a way to change it from Serene Template?

Search it here, you don't have to download

I'm sorry my friend, what do you mean by search it here? It's been a long night.

There is a search box at top

wow...long night indeed. Thanks

@volkanceylan sorry to comment on this issue yet again, but I was wondering how do I actually get the information from the database? You said alter it after the code section above, but I'm not sure what you mean? I have a table named fire.ExternalLinks..

@volkanceylan anything sir?

connection.List< MyRow> ()

Again, my friend I'm sorry for commenting again...Where and how do I call connection.List() from NavigationModel.cs?

@volkanceylan I know that i'm probably annoying you with this issue, but this is a huge todo in our progress to 1.0.0. Is there anyway you could shed additional light on this? Thanks in advance my friend, and again sorry bothering you yet again with this.

Position is correct
using (var connection = SqlConnections.NewFor<ExternalLinksRow>()) {
    foreach (var x in connection.List<ExternalLinksRow>()) {
        list.Add(new NavigationLinkAttribute(x.Order, x.Path, ....));
    }
}

return list;

Don't forget to return list.

Outstanding. I will work with tonight.
This is my DynamicNavigationHelper.cs file where you have been helping me.

But I'm running into the issue of not knowing where to call the DynamicNavigationHelper.cs from in the NavigationModel.cs. Here is my NavigationModel.cs at the beginning where I think I need to put it, but I'm not sure the parameter to pass it. I've tried removing the filter parameter, but that didn't work either.

Just replace with yours and pass null

replace the entire content of NavigationModel() ?

just replace old NavigationHelper with yours

Now you can inject dynamic navigation items in Serene without modify Senerity. Look at this wiki
Dynamic navigation items

Hi @DucThanhNguyen
How could i reload this Navigation?
Cause i have an register of dashboards, so when users add a new navigation custumer i need to reload the navigation to apears the new "menu" without recompiling my application...
public class DynamicDashboards : INavigationItemSource
    {
        public List<NavigationItemAttribute> GetItems()
        {
            var items = new List<NavigationItemAttribute>
            {
                new NavigationMenuAttribute(1000, "Dashboards", "icon-speedometer")
            };

            using (var connection = SqlConnections.NewByKey("Default"))
            {
                var dashboards = connection.List<DashboardsRow>();
                foreach (var dashboard in dashboards)
                    items.Add(new NavigationLinkAttribute(1000,
                        path: "Dashboards/" + dashboard.Descricao.Replace("/", "//"),
                        url: "~/Dashboards/DefaultDashboard?link=" + dashboard.Link,
                        permission: CadastrosPermissionKeys.General,
                        icon: "icon-folder-alt"));
            }

            return items;
        }
    }

This is my custom navigation...
Them, user can register it.

Navigation is cached, so i think the best way is to just remove it from cache in DashboardsRepository
`
private class MySaveHandler : SaveRequestHandler
{
protected override void AfterSave()
{
base.AfterSave();
            TwoLevelCache.Remove("LeftNavigationModel:NavigationItems:" + (Authorization.UserId ?? "-1"));
        }
    }

    private class MyDeleteHandler : DeleteRequestHandler<MyRow>
    {
        protected override void OnAfterDelete()
        {
            base.OnAfterDelete();

            TwoLevelCache.Remove("LeftNavigationModel:NavigationItems:" + (Authorization.UserId ?? "-1"));
        }
    }`

subscribe my channel also your answer is in my video https://youtu.be/Ib8OLxC4Jrs


enhancement Sync tablet meta even if local state is not running

What problem does this PR solve?
Problem Summary:
Avoid a running tablet keep not running state on single one BE with no query. Even if it is a tablet with high compaction score, compaction will fail on this BE since not running state.
Before this PR, scheduled tablet meta sync will skip not running tablets. In this PR, we include those tablets in meta sync procedure to avoid long-term inaccurate tablet state.
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[x] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[x] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[x] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall

run buildall


Ability to set encryption key

This adds the ability to set the encryption key and manage it on the integrator side.

All tests pass this is ready for a review when someone gets a moment. 🙏


Enhance: shell markdown

Kind of nit anyway

Removing $ make the shell scripts copy-pastable
Scripts are POSIX shell (sh) compliant, which is a subset of bash
Sourcing from sh instead of zsh makes it use the default (POSIX shell compliant) shell, which make the script work even if the user is not using zsh

Thank you for your help!

Sourcing from sh instead of zsh makes it use the default (POSIX shell compliant) shell, which make the script work even if the user is not using zsh

Idk if MacOS is totally *nix compliant on this one, it would need to be tested manually, but it should


make it easier to enter dependencies in a one-liner

we have to type out the full dependency title when we try to: project-new --type spring-boot --dependencies "Core: Web"
would be nicer if we could just do "core-web", "core-whatever", or "ops-foo" etc.
per @gastaldi we can use:

<@gastaldi>	UIInput.setItemLabelConverter(Commands::shellifyOptionNameDashed)
<@gastaldi>	just that, if context.getProvider().isGUI() returns false

Thanks this is better. I think I will remove the group name as that just repeat must stuff eg, web-web etc.
Also found a little Forge bug: https://issues.jboss.org/browse/FORGE-2690

You can now use shorter names
[deleteme]$ spring-boot-new-project --dependencies web actuator apache-camel


AndroidDevice.timeOnDevice crashes on Mac

clearzen:stocks abarth$ flutter trace
FormatException: Invalid number (at character 1)
^
severe:
Exception:
dart:core                                                         int.parse
package:flutter_tools/src/device.dart 906                         AndroidDevice.timeOnDevice
package:flutter_tools/src/device.dart 912                         AndroidDevice.stopTracing
package:flutter_tools/src/commands/trace.dart 56                  TraceCommand._stopTracing
package:flutter_tools/src/commands/trace.dart 46                  TraceCommand.runInProject.<async>.<fn>
dart:async                                                        Future.Future.delayed
package:flutter_tools/src/commands/trace.dart 44                  TraceCommand.runInProject.<async>
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/commands/trace.dart                     TraceCommand.runInProject
package:flutter_tools/src/runner/flutter_command.dart 59          FlutterCommand.run.<async>
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/runner/flutter_command.dart             FlutterCommand.run
package:args/command_runner.dart 178                              CommandRunner.runCommand.<fn>
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 131                              CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 159  FlutterCommandRunner.runCommand
package:args/command_runner.dart 105                              CommandRunner.run.<fn>
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 105                              CommandRunner.run
package:flutter_tools/executable.dart 78                          main.<async>.<fn>.<async>
package:stack_trace                                               Chain.capture
package:flutter_tools/executable.dart 77                          main.<async>

/cc @eseidelGoogle

clearzen:stocks abarth$ date --date "Fri Jan  8 13:19:50 CST 2016" +%s
date: illegal option -- -
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

flutter trace is not very well maintained.  It probably could/should fold into flutter run as one of the various keys you can press to start/stop tracing?

timeOnDevice is gone.


HoughTransformLine: accumulator is not clean

Check HoughTransformLine class for reasons why the accumulator is not clean. Possible rounding errors?

Fixed by eeb8c2b


Generators not working

Hi,
I setup water tower, rotors, generator just as in image from in-game book.
Rotors are rotating, pressurized water rips holes from time to time in terrain, all looks fine...
However, I cannot seem to be able to connect any cable to generator nor bring up any GUI from it.
Also, it seems that generator registered "generator" as correct tool to remove it.
MC: 1.7.10
Mariculture: 1.2.3d
Forge: 1208
Regards,
Garagoth.

I know they work.


Incorrect is-a relation: hypochlorous acid metabolic process is-a organic acid metabolic process

GO:0002148 hypochlorous acid metabolic process
is-a
GO:0006082 organic acid metabolic process
Above is-a relation seems to be incorrect as hypochlorous doesn't contain carbon.

A problem here, I think, is the assertion that an oxoacid is_a organic acid. Many oxoacids are purely inorganic molecules, so hypochlorous acid may well be an oxoacid but it's not an organic acid.

These 3 terms should be obsoleted:

GO:0002148 hypochlorous acid metabolic process
** GO:0002149 hypochlorous acid biosynthetic process
** GO:0002150 hypochlorous acid catabolic process

In fact this represents the product of the reaction: chloride + H+ + H2O2 = H2O + hypochlorous acid
which is RHEA:28218 and EC:<IP_ADDRESS> (neither are in GO).


where is the data stored?

sorry for this noob question but I have no time to check the code out — TL;DR... so can anyone tell me where is the data stored?... btw I am not familiar with IDB nor Preact.

IDB is basically indexdb! I get it now.


[bug][threat intel] IOC matching with string case insensitive.

to: @ryandeivert
cc: @airbnb/streamalert-maintainers
size: small
resolves #385
Background
This bug was discovered during rule testings. It is case-sensitive while comparing record data against IOCs from IOC files. In the use case that fileHash in a record is in upper cases, however, the IOCs from IOC files maybe in lower cases, it will never have a match.
This PR implements IOC comparison with case-insensitive and condition that users should have known if IOCs in IOC files are lowercase or uppercase.
Changes

Add lowercase_ioc flag to helper function is_ioc.
Add unit test cases.
Fix another bug that rec['streamalert:ioc'] should be a list.

Testing

Unit testing is passed

./tests/scripts/unit_tests.sh

Rule testing

Add a local testing rule, and it is passed.

Coverage remained the same at 94.675% when pulling af3fa1b3cce824f907d956dde586a5df5e11dd38 on ioc-matching-case-insensitive into 80a974b66b95924caa2cd5a75f0cda391d13061c on master.

Good catch @chunyong-lin :) Asked 1 Q

Thanks for sharing additional details @chunyong-lin :) paging dr. @ryandeivert for review

Coverage remained the same at 94.542% when pulling 27b8891ee8144421580b0e06198dd1322a6f9b97 on ioc-matching-case-insensitive into ec029c1d53845609aaf86220539e62b97a80f23d on master.

Coverage remained the same at 94.852% when pulling 8d8dd0a8eb2d316432540a27bc4d70ff6a1c3ae5 on ioc-matching-case-insensitive into 7b2894cfc531c9b83af57c49b83955518bf05476 on master.


Username is null

Currently my username is null (See user 1671), I can not even access the profile page, maybe there's a problem with the API?

Sorry about that. I changed it to jhen. opencollective.com/jhen


Install-Script is not downloading the sample GStreamer application.

I have run the install-script multiple times and cannot get it to download the sample GStreamer application.
This is on mac.
Thank you

Could you do 'ls -la' in the directory and see whether the applications were generated successfully?
It's likely that your install-script has failed. Could you please include the section of the log that contains the error.

Sure, here are the the results:

After running the script multiple times, it usually ends with this:

I have double checked to make sure bison is installed.
Thanks you

Shoot, the second photo is supposed to be:

Seems related to: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/100#issuecomment-405628765
Could you please configure the path

Hello @MushMal,
I found the problem,  in my case brew wasn't creating the symlinks.
I followed the following steps as noted here:
https://stackoverflow.com/a/29053701
Thank you!


Apple TV

I’m getting a “connecting to printers screen” but nothing is appearing.  Any advice on how to resolve this?  Thanks.

Apologies if this is against regulation, but just wanted to comment that I'm encountering the same problem. Some details about my setup:

Apple TV 4K with two different Apple IDs signed in (mine and one other)
iCloud Sync is enabled for both OctoPod on my phone and on TV, with my Apple ID being active when opening the TV app
Doubt it's causing any issues, but I'm also running a Pi-hole on my network. All my devices sync, and the TV app still doesn't work when I pause blocking, but figured I'd mention just in case

I found myself recently with this same problem.  My setup is like AudioBr4in’s though I don’t have a pi-hole. I have tried re-syncing iCloud and still got the same message. My workaround was to remove the app and reinstall, which worked. Though obviously this doesn’t give the “why”.

Turns out I resolved it. I was manually backing up my phone to the computer and not subscribed to iCloud. I have since subscribed for backup purposes and it fixed it!
On April 1, 2021 at 15:07 GMT, DadOf6 @.***> wrote:
I found myself recently with this same problem. My setup is like AudioBr4in’s though I don’t have a pi-hole. I have tried re-syncing iCloud and still got the same message. My workaround was to remove the app and reinstall, which worked. Though obviously this doesn’t give the “why”.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

The other day my Apple TV had the same issue. The only way I was able to make the printers appear again was to go to OctoPod app in my iPhone, go to Settings -> Printers and save again each printer. As I saved them, they started to appear again on my Apple TV. Hope this trick works for you

The other day my Apple TV had the same issue. The only way I was able to make the printers appear again was to go to OctoPod app in my iPhone, go to Settings -> Printers and save again each printer. As I saved them, they started to appear again on my Apple TV. Hope this trick works for you

Thanks, that did the trick. Went to the printers on my iPhone. Altered my login so I could save again. And suddenly the app on my Apple TV started to display my printer.


Add CSS Columns Specification [WIP]

This PR adds a handful of new utilities covering the css column spec.  This is a work in progress and just a proposal on what utilities could be added to cover css columns.
Added Utilities For

Column Count
Column Fill
Column Span
Column Width
Column Rule Width
Column Rule Style
Column Rule Color

As of now these are all separated into their own generators but can easily be converted into one generator to clean it up.
Config Updates
There are some updates to the default config for column-count, column-width, column-rule-wdith, and column-rule-colors, however all of these except for column count could theoretically pull from other config options.  The three column rule specifications are essentially the same as border so we could use those same settings.  Column Width could pull from the width settings as well.
As Css columns is not the most commonly used system in css these generators could be set to false in the default config, but I do think they are useful for their purpose and can be useful in the Tailwind Core.
Progrees

[x] Generators
[x] Config
[ ] Docs
[x] Testing / Fixtures

Topics of Discussion

Converting generators to one simple generator
Using already established border config settings for the three Column Rule classes
Default variants or false

Updated all classes to use .col- instead of .column

Hey really sorry to not have addressed this at all until now but I think this would be better suited for a plugin right now. Really appreciate the contribution either way and sorry again for not acknowledging the PR sooner.

Definitely. After building 20 or so sites with tailwind I only used this once.  So a plug-in is definitely a better fit.

I published a plugin while ago inspired by your comments on #540. Links just for reference, in case someone lands here and doesn't look into the related issues:

https://www.npmjs.com/package/tailwindcss-multi-column
https://www.npmjs.com/package/tailwindcss-break


feat: Added 'save' and 'load' state dictionary functionality

Overview
This PR is jam packed with the new feature for a 'Simulator' to have a state_dict method that outputs an immutable state dictionary. Additionally, this state dictionary is able to be saved and loaded to a file with safetensors format. The reasoning to use safetensors format can be found in https://github.com/uw-ssec/caustics/issues/44.
Example Usage
Person 1
cosmology = caustics.cosmology.FlatLambdaCDM(name="cosmo", h0=None)

sie = caustics.lenses.SIE(cosmology=cosmology, name="sie", z_l=0.5, x0=0., y0=0., q = 0.4, phi = np.pi/2, b = 1.)
src = caustics.light.Sersic(name="src", x0=-0.2, y0=0., q=0.6, phi=-np.pi/4, n=1.5, Re=3., Ie= 1.)

sim = caustics.sims.Lens_Source(name="mysim", lens=sie, source=src, pixelscale=0.05, pixels_x=100)

# Save to a default state file in current working directory where code is run
fpath = sim.state_dict().save()

Person 2
# Setup similar objects first without knowing the parameters
cosmology = caustics.cosmology.FlatLambdaCDM(name="cosmo")

sie = caustics.lenses.SIE(cosmology=cosmology, name="sie")
src = caustics.light.Sersic(name="src")

sim = caustics.sims.Lens_Source(name="mysim", lens=sie, source=src, pixelscale=0.05, pixels_x=100)

# Load the state file from person 1 above
sim.load_state_dict(fpath)

Now person 2 would have sim object that has same parameters as person 1

Thanks @ConnorStoneAstro for your quick and thoughtful review. I've made the necessary adjustments from your suggestions. Please give it another go over 🙏🏽


Feature request: Add option to highlight major/minor/patch version in different colors

Example: major is red, minor is yellow, and patch is blue

I don't use this project anymore, so I won't be adding new features to it.  You're welcome to fork and add this feature and I would accept PRs or you can just maintain your own fork if you'd like.

@InfamousStarFox It is intended to do something similar to this in the future. I'll update here when I have news.


Specify more types in the method signatures

TypeScript has hard time guessing the types, it would be nice if you could add types explicitly, such that ctx is typed accordingly:

The desired effect would be reached of you simply move @types/koa-bodyparser, @types/koa-router and @types/koa to the dependencies.

Also, the code apparently needs tslib which doesn't exist in the dependencies.

I released a new version, please check if those issues are resolved now

Hey, I don't think I'll get to that as I've lost track of where I used it. Pretty sure that if you have a proper type in a similar situation as on the screenshot - the fix is good.


Updated the list of domains from iana.org

Updated the list of domains from latest update from iana.org list

This is important now that some websites use the new domains like .lol

Closing in favour of #121


Bl0xstr4p

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
When i'm installing bloxstrap it says System.Net.Http.HttpRequestException: No such host is known. (clientsettings.roblox.com:443)
[Inner Exception]
System.Net.Sockets.SocketException: No such host is known.

One-off internet issue


Do not suggest to add .ijwb and others to project view.

Checklist

[ ] I have filed an issue about this change and discussed potential changes with the maintainers.
[ ] I have received the approval from the maintainers to make this change.
[x] This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
The following suggestion doesn't make much sense

since it results in
(14:21:46) Loading:
(14:21:46) Loading:
(14:21:46) Loading: 0 packages loaded
(14:21:46) ERROR: Skipping '//.ijwb/...:all': no targets found beneath '.ijwb'
(14:21:46) WARNING: Target pattern parsing failed.
(14:21:46) Analyzing: 0 targets (0 packages loaded, 0 targets configured)
(14:21:46) INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
(14:21:46) INFO: Found 0 targets...
(14:21:47) [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
(14:21:47) ERROR: command succeeded, but there were errors parsing the target pattern
(14:21:47) INFO: Elapsed time: 3.584s, Critical Path: 0.00s

Issue number: <please reference the issue number or url here>
Description of this change
Condition added to not render the suggestion to add a file to the project if the file is located somewhere in .ijwb or in a similar folder for other products.

@blorente could you please help with the review?

@blorente updated according to your recommendations, could you please check?


Ionic2-Meteor integration

I have an Angular2-Meteor project using the barbatus:ionic2-meteor package for Ionic2.
I have successfully used the ng2-translate module with a regular Ionic2 app, but I'm having trouble getting it to work in a meteor project (v1.2.1).  I do not know how use the SystemJS module loader to load npm modules for use in the project.  I keep getting Cannot find module 'ng2-translate/ng2-translate'
How do I configure my Meteor project to use the ng2-translate module?

I have no idea, I've never used Meteor. Let's call on the expertise of @Urigo and see if he knows :)

@mjwheatley can you post this issue on the Angular2Meteor repo?

It looks like Meteor 1.3 will be the solution with the addition of the modules package that will allow you to use native npm modules on both client and server.  However, @Urigo has not yet published the angular2-meteor and angular2-meteor-auto-bootstrap node modules for use with Meteor 1.3 as referenced in the Quick Start section of the angular2-meteor package readme.

@ocombe would you be willing to publish this as an atmosphere package for Meteor?
Here is a link to the response I receive from @barbatus on the issue I submitted on the Angular2Meteor repo.

You just need a system_config.js file ? If that's all then you can make a PR and I'll merge it

@mjwheatley now everything is updated and you can use any npm library you want with angular2-meteor.
@ocombe I think we can close this.
@mjwheatley if you still have issues, you can open new ones on the angular2-meteor repo

Ok thanks!

Hi ocombe, Urigo, still struggling with integrating ng-translate in ionic2 and Angular2... is this already supported?

yes, you can check the official ionic super starter that uses ng2 translate: https://github.com/driftyco/ionic-starter-super

Ok thank you, I'll give it a try... there is an issue on ocombe/ng2-translate (bottom page) that says: "Ionic 2 is still using angular 2 RC4, but ng2-translate uses RC5. You should fix the version of ng2-translate to 2.2.2 until Ionic 2 upgrades to RC5.", but I would like to use the latest version... not an issue anymore?

no sorry, this is an old artefact from the readme, I already removed it on the branch for the next release :)

Hi Ocombe, I have tried to integrate but for Meteor there is something weird going on.
When I use it in app module like below, it works fine (I need to place the i18n folder in the public folder!)
app.module.ts:
...
import { TranslateModule } from 'ng2-translate';
...
// Modules
imports: [
IonicModule.forRoot(AppComponent),
HttpModule,
TranslateModule.forRoot()
],
When I try to use the TranslateLoader/translateStaticLoader, it goes totally wrong (my client error is "Uncaught SyntaxError: Unexpected token export" in ng2-translate.ts):
this is part of my code like I found in your example:
import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate/ng2-translate';
export function createTranslateLoader(http: Http) {
return new TranslateStaticLoader(http, './i18n', '.json');
}

What version of angular / ng2 translate are you using ?

version 5.0.0

Could you try to remove the import of HttpModule ? I think the IonicModule already provides it

Hi Ocombe, I tried to remove the import but then it says that the HttpModule is not known.

Hmm no idea then, I'd need a plunkr or a project somewhere to find out the problem

@tomitbe I have successfully integrated ng2-translate in my ionic2-meteor-boilerplate project.  Please refer to my project's configuration and see if you can get your's working.

@ocombe this is my Meteor repo: https://github.com/tomitbe/cignos
@mjwheatley thank you for your advise! I got it also working with i18n folder in public folder, but I try to avoid the situation having the i18n folder in the public... this by using the translateStaticLoader but that is exactly not working.

@tomitbe did you try this from the ng2-translate README:
AoT
If you want to configure a custom TranslateLoader while using AoT compilation or Ionic 2, you must use an exported function instead of an inline function.
export function createTranslateLoader(http: Http) {
    return new TranslateStaticLoader(http, './assets/i18n', '.json');
}

@NgModule({
    imports: [
        BrowserModule,
        HttpModule,
        TranslateModule.forRoot({
            provide: TranslateLoader,
            useFactory: (createTranslateLoader),
            deps: [Http]
        })
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }

Why do you want to avoid using the public directory?

@mjwheatley yes I did and checked also with the exported function.
it goes totally wrong soon as I import the TranslateLoader and TranslateStaticLoader, with or without using the exported function...
Even when I just use  TranslateModule.forRoot(); it crashes just after using the "import" of the modules above:
import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate/ng2-translate';
very strange

The import should be from 'ng2-translateor fromng2-translate/index`
See if that makes a difference.
On Tue, Jan 3, 2017 at 9:44 AM, tomitbe<EMAIL_ADDRESS>wrote:

@mjwheatley https://github.com/mjwheatley yes I did and checked also
with the exported function.
it goes totally wrong soon as I import the TranslateLoader and
TranslateStaticLoader, with or without using the exported function...
Even when I just use TranslateModule.forRoot(); it crashes just after
using the "import" of the modules above:
import { TranslateModule, TranslateLoader, TranslateStaticLoader } from
'ng2-translate/ng2-translate';
very strange
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ocombe/ng2-translate/issues/57#issuecomment-270143667,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALSmEPNqYWxuY5Joqk1FRk7ek3SlwWWSks5rOmzDgaJpZM4Hu5jM
.

I got the TranslateLoader to work in my application with the following:
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { BrowserModule } from "@angular/platform-browser";
import { HttpModule, Http } from '@angular/http';
import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate';

export function createTranslateLoader(http: Http) {
    return new TranslateStaticLoader(http, './assets/i18n', '.json');
}

@NgModule({
//...
imports: [
        BrowserModule,
        HttpModule,
        TranslateModule.forRoot({
            provide: TranslateLoader,
            useFactory: (createTranslateLoader),
            deps: [Http]
        }),
        IonicModule.forRoot(AppComponent, {
            //// http://ionicframework.com/docs/v2/api/config/Config/
            //mode: Constants.STYLE.MD,
            //pageTransition: Constants.STYLE.IOS,
            //swipeBackEnabled: false,
            //tabbarPlacement: 'top'
        }),
    ],
    // Main Component
    bootstrap: [IonicApp]
})

@mjwheatley yeeesss ... this works... apparently the import was wrong assigned, though I followed the documentation of cocombe... should be import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate'; indeed... thanks you!!!

Where did you see an import from 'ng2-translate/ng2-translate'; ? We should have cleaned them all from the docs, but if it's still there somewhere, tell me where :)

Hi Ocombe, it's in the ionic-super-starter:
https://github.com/driftyco/ionic-starter-super/blob/master/src/app/app.module.ts

Damn, I'll have to do a PR... They did it with an old version of ng2 translate

:-) thanks for your support, happy that I can use the ng2-translate module now, works great!


Can't put Helpy into sub URL path.

My customer want to use Helpy in their Web application.
'/' has already used by the application. So the instance of Helpy must be located /support/  or somewhere.
But the master branch of Helpy doesn't care about this case.
( I have a half-baked patch and I can send it as the pull request. )

I played around with this idea once a long time ago- I was able to get it to work in a /support directory by adjusting some of the routes.

@scott There have some client side scripts that have absolute links in the current master branch. So I think we must apply patches to assets/.

Close this as too old.


Support react-intl v7

react-intl recently updated to a new major version.  The only real aspect of it that's breaking is the new min version of TypeScript (5.0).  So, it should be pretty straightforward to support.
https://github.com/formatjs/formatjs/releases/tag/react-intl%407.0.0

Fixed and released in v3.2.1


Fix typo: occured -> occurred

This just fixes a typo in the error message.
https://www.oxfordlearnersdictionaries.com/definition/english/occur

This is embarrassing💦


Font sharing

Nico suggested to add font sharing feature http://css-tricks.com/fontello-past-future-icon-font-service/#comment-615104 . Looks interesting. Need to collect possible use-cases, to confirm why it's awesome.

Don't confuse it with "free font hosting". Storage time can be big, but not infinite. For example, one or several months. That's consistent with our "no business" policy - don't store critical user data which require our responsibility (at least moral)
Companion idea: can we help with fonts publishing on user's hostings? Should we improve CLI tools or better alternatives exists?

Discuss!
/cc @nicooprat

Seems that will never be done :) . Close - moved all ideas to #483


Build error in production

When doing npm install I run into this warning:
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
 download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/bcrypt_lib.node

Then I tried to deploy to AWS, and I got a failure with this npm-log:
434 info install<EMAIL_ADDRESS>435 verbose unsafe-perm in lifecycle false
436 info<EMAIL_ADDRESS>Failed to exec install script
437 verbose stack Error<EMAIL_ADDRESS>install: `node-gyp rebuild`
437 verbose stack Exit status 1
437 verbose stack     at EventEmitter.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
437 verbose stack     at emitTwo (events.js:87:13)
437 verbose stack     at EventEmitter.emit (events.js:172:7)
437 verbose stack     at ChildProcess.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:24:14)
437 verbose stack     at emitTwo (events.js:87:13)
437 verbose stack     at ChildProcess.emit (events.js:172:7)
437 verbose stack     at maybeClose (internal/child_process.js:821:16)
437 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
438 verbose pkgid<EMAIL_ADDRESS>439 verbose cwd /tmp/deployment/application
440 error Linux 4.1.17-22.30.amzn1.x86_64
441 error argv "/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/npm" "--production" "rebuild"
442 error node v4.3.0
443 error npm  v2.14.12
444 error code ELIFECYCLE
445 error<EMAIL_ADDRESS>install: `node-gyp rebuild`
445 error Exit status 1
446 error Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
446 error This is most likely a problem with the bcrypt package,
446 error not with npm itself.
446 error Tell the author that this fails on your system:
446 error     node-gyp rebuild
446 error You can get their info via:
446 error     npm owner ls bcrypt
446 error There is likely additional logging output above.
447 verbose exit [ 1, true ]

Any idea what's going on here? I'm running into the same issue. Fixing the warning about NVM_NODEJS_ORG_MIRROR by setting an env variable for the non-deprecated NODEJS_ORG_MIRROR didn't seem to make any difference.

same problem here!

I am also running into this problem.

same

I'm also experiencing this problem.

same here

Same here

Same to me

same to me

Pls stop commenting with 'Same'. There is a new github functionality to add a +1

Don't know what the issue here is but bcryot builds fine. This may be an issue with your environment and I suggest working with AWS support on it or trying stack overflow. If you do find a solution with the root cause being a code or config change in this module we are happy to look at a PR.


missmatched hatches

Hi
when i try to plot Predefined "CROSS" hatch,
but result was "CORK"
some other hatches were missmatched too.
in your code
https://github.com/dxfjs/writer/blob/fd22b111d49ff6805dc7d75550c748e6ebbda006/src/Internals/HatchPatterns.ts#L957:L990
135 degree lines are not required in cross pattern
please check this part, thanks!

Hi,
Those pre-defined I auto generate them and I didn't test them, I am planing to get rid of them an make a way to define the pattern manually.
And add examples in docs so people can copy what they need only. Because  there's a lot of code shipped in the package and people don't use all of them or not using them at all.
Actually do you need them all.

@tarikjabiri
It should be good
thats enough if user can define pattern.
i tried to find define custom pattern, but it seems impossible in currernt version.
thank you for comment!
happy new year


wagtail command doesn't work

Issue Summary
Firstly, I attempted to install wagtail from source the usual way :
pip install -e ."[testing,docs]" -U
But it always returned TypeError : excepted string or bytes.
I then tried to reinstall python and pip altogether.
Through many researches on stackoverflow, I found to try install with sudo.
Then It worked.
But when I do wagtail command, it returns :
Traceback (most recent call last):
  File "/usr/local/bin/wagtail", line 33, in <module>
    sys.exit(load_entry_point('wagtail', 'console_scripts', 'wagtail')())
  File "/usr/local/bin/wagtail", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration

I desperate with Wagtail application for more than one month.
I'm hoping for your kind help please. Thanks community.

Steps to Reproduce

(for example) Start a new project with wagtail start myproject
Edit models.py as follows...
...

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: (yes / no)

Technical details

Python version: Run python --version.
Django version: Look in your requirements.txt, or run pip show django | grep Version.
Wagtail version: Look at the bottom of the Settings menu in the Wagtail admin, or run pip show wagtail | grep Version:.
Browser version: You can use https://www.whatsmybrowser.org/ to find this out.

Working on this

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

Closing as this is a support query rather than a Wagtail bug report


Revert "Revert "UI redesigning final recomended""

Reverts Afrilearn/New-White-Version#182

You did not ask ne for review on this

You did not ask ne for review on this

This is a revert PR and it is open.


refactor(plugins): improve how we query elements

It should help us to be more performant on how we get our DOM elements
Should help a bit here: #26419 but we should improve collapse with multi targets

nice

Apologies for commenting on a pull-request over a year old, but I believe this change may be causing a permanent breaking change for me with newer versions of bootstrap. Perhaps you could enlighten me if I'm missing something obvious?
I updated from Bootstrap v4.1.1 to v4.3.1 when I noticed a page stopped functioning. Testing every version in-between, the breakage seems to occur with v4.1.2. I didn't notice any outstanding breaking changes in the changelog outside of this possible change.
Relevant site script.
var all_member_id = 3187407;
function tab_setup() {
    var counter=0;
    $('.m_members').each(function() {
        counter++;
        var title = $(this).parents('.container').find(
            '.header_text_text').text();
        var tab_id = $(this).attr('class').replace(/m_members\s+/g,
            '');
        $(this).attr('data-tab', tab_id);
        if (counter == 1) {
            $('.roster_page .nav-tabs').append(
                '
' + title + '');
            $('.roster_page .tab-content').append(
                '

');
            $('#' + tab_id).append($('.m_members[data-tab="' +
                tab_id + '"]'));
        } else {
            $('.roster_page .nav-tabs').append(
                '
' + title + '');
            $('.roster_page .tab-content').append(
                '

');
            $('#' + tab_id).append($('.m_members[data-tab="' +
                tab_id + '"]'));
        }
    });
};

Live page functioning fine with bootstrap v4.1.1.
Test page failing to toggle data from other elements with bootstrap v4.1.2.

Hi @mibby that's happen because you use selector which contains only numbers, and it's not a valid selector. We added information about that here: https://getbootstrap.com/docs/4.3/getting-started/javascript/#selectors

Ah, I see. That indeed would be the problem. Thanks for the info!
Is there any way to perhaps override the selector validation? As I'm not able to change the div ids for the container modules hosting the data itself, which is where the numbers are coming from.

@mibby  You can change the href attribute by something like that: .tab-content #<your id> it'll work


Streaming data from WAM welding machines

Summary
Shop Floor Anomaly Detection (Ginkgo) needs to get data out of WAM welding machines in near real time to be able to provide useful insights about product quality as the items are being manufactured. Ideally, Shop Floor Anomaly Detection should provide the shop floor operator with an item quality indicator no later than a couple of minutes since item production start.
Intended outcome
Shop Floor Anomaly Detection analyses the quality of items in the WAM production line in near real time. This is valuable to WAM because faulty items can be detected early in the manufacturing process and reworked at a much lower cost.
How will it work?
The welding machines come with a firmware that outputs critical measurements about each item being worked on. Each item measurement batch gets appended to a welding machine processing file. The data gets stored in a proprietary binary format. We'll develop a service to read records from the processing file as they get written to it, translate them into a FIWARE entity and push the entity to Context Broker which will make it available to Shop Floor Anomaly Detection.

At the moment, we're stuck w/ this b/c the welding machine manufacturer has only provided WAM with a GUI to be used to manually translate binary processing files to a text format. Since there needs to be an operator to extract that data and make it available for processing by us, we can't stream data to Shop Floor Anomaly Detection in near real time.

WAM sent an email to the welding machine manufacturer on Jan 10 to ask for advice. We sent an email too on Jan 19. Still no reply from the manufacturer.

@souayb have a look at #72 for the data model details, e.g. NGSI entity, etc.

So there might be some code to read the binary data and convert it to CSV that we could link as a library and use in the "streamer" service for steps 1, 2, 3 above.

Nope. Manufacturer says no :-) We should write the low level code to connect to the serial port and do the data translation ourselves. Good news is they gave us a spec for the data the welding machine produces.

Current status:

WAM is looking into developing a solution for real time streaming along the lines of the above design but their solution won't include the transformation of machine data into NGSI entities.
Most likely this solution will stream machine data to MQTT.
The KITT4SME platform should deploy MQTT and either implement a custom IoT agent for the translation or use e.g. the UL agent with a mapping script to turn incoming data into a NGSI entity.

My proposal is to use MQTT for data streaming. Integration should be relatively straight forward if MQTT messaging is formatted compatible with IoT Agent UltraLight.
Topic of the MQTT message should be like this
///attr
then message payload is formated as |||...
apikey is hash key for FIWARE service group that is created into IoT Agent.
So what we need to do to is to define:

Define Entity in NGSI format for welding machine
Service Group to FIWARE IoT agent
Device for welding machine that maps the attributes to ultralight message format to Entity attributes
My understanding is that "Fiware-Service" is a key parameter in Fiware REST calls that define multitenancy. So for WAM pilot there should be header "fiware-service: wam_pilot" (or similar) which will isolate WAM specific entities and devices from all the others

Excellent! I second that :-)


meta+n shortcut not working

VS Code Version: 1.55
OS Version: macOS 11.2.3

Steps to Reproduce:

Create a keyboard shortcut with "alt+n"

Does this issue occur when all extensions are disabled?: Yes

I'm trying to map the "meta+n" shortcut to the command "workbench.action.nextEditorInGroup". But when I press the "meta+n" shortcut, it inserts the symbol ˜ instead. I verified that the shortcut works perfectly with "meta+m".

Let's track in https://github.com/microsoft/vscode/issues/41024


loading starSpace model

I ran the command :
./starspace train -trainFile file.txt -model /destinationFolder/model_name -dim 300
I see two files.
model_name
model_name.tsv
How do we load the load the model file for starSpace (model_name).

@PrashantRanjan09 You can load either one of the output files: just use -model model_name (or -model model_name.tsv) in ./starspace test and it should work.

@ledw  Thank you so much.

@ledw this works on the command line. But how do i load this model in a jupyter notebook.

@PrashantRanjan09 we currently don't have a python binding. However, you can write your own code to load the .tsv format model and play with it.

@ledw Thank you. Thats what i did.


Avoid setting custom $HOME

In #63, we set a custom $HOME env variable pointing to /buildbuddy,
which is an emptyDir volumeMount, so that configs stored in
os.UserConfigDir() + "/buildbuddy" is persisted. (1) (2)
However, as #65 pointed out, overriding $HOME will cause container tools
such as docker, podman, to look up configs and credential helpers in the
wrong directory.
Unset the custom $HOME. Create a custom emptyDir volume mount for the
buildbuddy user config dir.
Closes #65.
(1): https://github.com/buildbuddy-io/buildbuddy/blob/c41d920e53326e75b7bb5c44d2b704ecac0e0ff9/server/util/uuid/uuid.go#L74-L79
(2): https://pkg.go.dev/os#UserConfigDir

Hm, are emptyDir volumes really persisted? That doesn't match my experience with the executor :thinking:

Perhaps "persisted" is the wrong word here.
The idea is in some rare cases, the executor container might crash. In those cases, k8s will try to restart the container "in the same pod" as the crashed container. When that happen, the emptyDir volumes are re-used between container restart.


bootstrap: check for versions of pre-existing binaries

We need to check for versions of pre-existing binaries /var/lib/kube-spawn/k8s/kube{ctl,let,adm} to be able to avoid version mismatches between different k8s versions.
Versions are obtained by running commands like below:
$ kubectl version --client=true --short=true
$ kubelet --version
$ kubeadm version --output=short

Also add helpers checking for semantic versions like IsSemVer() or IsSemVerOrNewer(), and do some refactoring.
Fixes https://github.com/kinvolk/kube-spawn/issues/154

Since https://github.com/kinvolk/kube-spawn/pull/161 was merged, this PR is not necessary any more.


Request: Crystal Build flag for static compilation

I can statically link my executables using LIBRARY_PATH=/opt/crystal/embedded/lib crystal build ..., but it would be nice to have a command-line flag for this. Also, if any required libraries are absent from the lib folder but present elsewhere on the system (e.g. libssl, libcrypto), presumably the compilation will proceed normally but I will end up with a dynamic dependancy on these libraries at runtime? Or will the compilation fail?
Ideally, when compiling with the static flag (that currently does not exist), the compilation would fail if any of the libraries are not available in a static form. Except of course libc.
Static linking can be necessary in certain situations. In fact, I can see pretty much zero use for Crystal build ... without it, as the resulting executable will not run on any system lacking the Crystal prereqs, such as the Boehm GC. Given that nobody is likely to have these things, unless they are also writing Crystal code on that machine, essentially a Crystal executable is useless on any system lacking Crystal. In which case, why bother to precompile it at all?
Hooray for static compilation. But having a flag (and failure in the absence of all necessary static libraries) would make this easier.

:+1: for static compilation.

FWIW, the following is another way to statically build a crystal program:
# crystal build whatever.cr --cross-compile "Linux x86_64" --target "x86_64-unknown-linux-gnu"
# cc whatever.o -o whatever -Wl,-Bstatic -levent -lpcre -lssl -lgc -lcrypto -lz -Wl,-Bdynamic -ldl -lrt -lpthread -lc

But it's a bit more hackish than the previous method, and probably less robust.

Compiling software with shared libraries is as reasonnable with Crystal than with any other compiled language like C/C++ or D. You're most likely to have to build and create packages for each distribution (and version) you want to support, or have package maintainers do that job.
That being said, static linking is indeed possible, and doesn't require any dedicated flag:
$ crystal build --release --link-flags="-static" myapp.cr

You'll may have (or want) to specify the directory where to find the embedded .a libraries, for example:
$ crystal build --release --link-flags="-static -L/opt/crystal/embedded/lib" myapp.cr

@ysbaddaden Nope!
opt/crystal/embedded/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x19): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./.crystal/root/linux-setup.cr/_main.o: In function `~fun_literal_51':
main_module:(.text+0x25c7b): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
evutil.c:(.text+0x1488): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `evutil_unparse_protoname':
evutil.c:(.text+0xf0d): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
(.text+0x6b): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl':
(.text+0x284): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block':
(.text+0x4ca): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish':
(.text+0x528): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
(.text+0x659): undefined reference to `deflateInit_'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xaab): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xbcd): undefined reference to `deflateInit_'
collect2: error: ld returned 1 exit status

@stugol : You'll have to learn about LD and linking in general. Please read the message: You're missing zlib/deflate symbols. You must be missing a static library.

Oh really?? Then kindly explain why LIBRARY_PATH=/opt/crystal/embedded/lib crystal build linux-setup.cr works with no problem!

Sigh. Because you have the .so installed but not the .a? These are usually distributed in dev packages only. Quite logically: they're useless for anything but development.
Static linking works wonderfully for shards for instance.

Quite possibly. Although the executable runs perfectly fine on a fresh installation of Debian, so...
Anyhow, this is precisely why I asked for a flag. So I don't end up using dynamic linking by mistake.

I've put libz.a in the directory, yet the code still won't compile. Am I missing another library? And how can I figure out which library it is?

@stugol look at the missing functions and the potential existing .a files, seems you also need OpenSSL static library too.

@stugol did you tell the linker where to find the libz.a file? It won't search the current directory, only standard locations (eg: /usr/lib) so you must be explicit. Ie. add -L. to the link flags.
I'm closing, since static linking is already possible, and there is nothing a dedicated flag would do better.

I looked at the missing functions, and they all seem to be from libz.a, which I have. I also have libssl.a and libcrypto.a. I added the -L flag just like you showed above, but it complains about those missing functions. Do you think you could be slightly more helpful, please, and tell me how to fix this?

Please show us the exact command (updated) and the exact output you're
receiving and will try to help you if time allows.
Sorry for top posting, sent from mobile.
On Feb 4, 2016 15:51, "stugol"<EMAIL_ADDRESS>wrote:

I looked at the missing functions, and they all seem to be from libz.a,
which I have. I also have libssl.a and libcrypto.a. I added the -L flag
just like you showed above, but it complains about those missing functions.
Do you think you could be slightly more helpful, please, and tell me how to
fix this?
—
Reply to this email directly or view it on GitHub
https://github.com/manastech/crystal/issues/2101#issuecomment-179998322.

Sure:
# crystal build --link-flags="-static -L/opt/crystal/embedded/lib" linux-setup.cr
Using compiled compiler at .build/crystal
/opt/crystal/embedded/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x19): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
evutil.c:(.text+0x1488): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `evutil_unparse_protoname':
evutil.c:(.text+0xf0d): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
(.text+0x6b): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl':
(.text+0x284): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block':
(.text+0x4ca): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish':
(.text+0x528): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
(.text+0x659): undefined reference to `deflateInit_'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xaab): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xbcd): undefined reference to `deflateInit_'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "linux-setup" "${@}" -static -L/opt/crystal/embedded/lib -rdynamic  -lz -lssl -lcrypto -levent -lrt -lpcre -lgc -lpthread -ldl`

I get the same result if I add --release. However, LIBRARY_PATH=/opt/crystal/embedded/lib crystal build linux-setup.cr works fine. Also FYI:
# ls -l /opt/crystal/embedded/lib
-rw-r--r-- 1 root root   4994 Jan 25 16:14 libatomic_ops.a
-rwxr-xr-x 1 root root    925 Jan 25 16:14 libatomic_ops.la
-rw-r--r-- 1 root root   7932 Jan 25 16:14 libatomic_ops_gpl.a
-rwxr-xr-x 1 root root    937 Jan 25 16:14 libatomic_ops_gpl.la
-rw-r--r-- 1 root root  49714 Jan 25 16:14 libcord.a
-rwxr-xr-x 1 root root   1000 Jan 25 16:14 libcord.la
lrwxrwxrwx 1 root root     37 Feb  3 04:12 libcrypto.a -> /usr/lib/x86_64-linux-gnu/libcrypto.a
lrwxrwxrwx 1 root root     32 Feb  3 21:58 libdl.a -> usr/lib/x86_64-linux-gnu/libdl.a
-rw-r--r-- 1 root root 551880 Jan 25 16:14 libevent.a
-rwxr-xr-x 1 root root    930 Jan 25 16:14 libevent.la
-rw-r--r-- 1 root root 328600 Jan 25 16:14 libevent_core.a
-rwxr-xr-x 1 root root    945 Jan 25 16:14 libevent_core.la
-rw-r--r-- 1 root root 223352 Jan 25 16:14 libevent_extra.a
-rwxr-xr-x 1 root root    948 Jan 25 16:14 libevent_extra.la
-rw-r--r-- 1 root root  25820 Jan 25 16:14 libevent_openssl.a
-rwxr-xr-x 1 root root    969 Jan 25 16:14 libevent_openssl.la
-rw-r--r-- 1 root root   5086 Jan 25 16:14 libevent_pthreads.a
-rwxr-xr-x 1 root root    957 Jan 25 16:14 libevent_pthreads.la
-rw-r--r-- 1 root root 389792 Jan 25 16:14 libgc.a
-rwxr-xr-x 1 root root    959 Jan 25 16:14 libgc.la
-rw-r--r-- 1 root root 286768 Jan 25 16:14 libpcre.a
-rwxr-xr-x 1 root root    902 Jan 25 16:14 libpcre.la
-rw-r--r-- 1 root root  46880 Jan 25 16:14 libpcrecpp.a
-rwxr-xr-x 1 root root    948 Jan 25 16:14 libpcrecpp.la
-rw-r--r-- 1 root root   6494 Jan 25 16:14 libpcreposix.a
-rwxr-xr-x 1 root root    954 Jan 25 16:14 libpcreposix.la
lrwxrwxrwx 1 root root     34 Feb  3 04:11 libssl.a -> /usr/lib/x86_64-linux-gnu/libssl.a
lrwxrwxrwx 1 root root     18 Jan 25 16:14 libyaml-0.so.2 -> libyaml-0.so.2.0.4
-rwxr-xr-x 1 root root 208679 Jan 25 16:14 libyaml-0.so.2.0.4
-rw-r--r-- 1 root root 248416 Jan 25 16:14 libyaml.a
-rwxr-xr-x 1 root root    984 Jan 25 16:14 libyaml.la
lrwxrwxrwx 1 root root     18 Jan 25 16:14 libyaml.so -> libyaml-0.so.2.0.4
drwxr-xr-x 2 root root   4096 Feb  1 19:50 pkgconfig

@stugol a couple of things:

I see no libz.a in the directory you're pointing to, so most likely is picking it from somewhere else that has no static version of the library.
The order of parameters given in --link-flags are important.
The order of the linked libraries is also important

When you're doing LIBRARY_PATH prior invoking crystal, that is like doing -L/path prior -static in --link-flags
I don't know the contents of your linux-setup.cr script, but I've tested locally and static linking works, except the glibc warnings.
You can see the linking command by adding --verbose to crystal build.

@luislavena Perhaps your test script wasn't requiring http/client? I don't know what happened to the libz.a - it was there last time. Maybe I was using a different docker image. Anyhow, I put it there (again) and still get the problem:
# ln -s /usr/lib/x86_64-linux-gnu/libz.a /opt/crystal/embedded/lib/
# ls -l /opt/crystal/embedded/lib | grep libz
lrwxrwxrwx 1 root root     32 Feb  4 19:21 libz.a -> /usr/lib/x86_64-linux-gnu/libz.a
# crystal build --verbose --link-flags="-static -L/opt/crystal/embedded/lib" linux-setup.cr
Using compiled compiler at .build/crystal
cc -o "linux-setup" "${@}" -static -L/opt/crystal/embedded/lib -rdynamic  -lz -lssl -lcrypto -levent -lrt -lpcre -lgc -lpthread -ldl
/opt/crystal/embedded/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x19): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
evutil.c:(.text+0x1488): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libevent.a(evutil.o): In function `evutil_unparse_protoname':
evutil.c:(.text+0xf0d): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_free':
(.text+0x6b): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_ctrl':
(.text+0x284): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block':
(.text+0x4ca): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_finish':
(.text+0x528): undefined reference to `deflateEnd'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
(.text+0x659): undefined reference to `deflateInit_'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xaab): undefined reference to `deflate'
/opt/crystal/embedded/lib/libcrypto.a(c_zlib.o): In function `bio_zlib_write':
(.text+0xbcd): undefined reference to `deflateInit_'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "linux-setup" "${@}" -static -L/opt/crystal/embedded/lib -rdynamic  -lz -lssl -lcrypto -levent -lrt -lpcre -lgc -lpthread -ldl`

Also --verbose doesn't seem to add anything to the output.

@luislavena You say that setting LIBRARY_PATH is like putting -L before -static, and yet it does result in a statically-linked executable! At least libcrypto, libssl, the GC and libevent get statically linked - I don't know about libz.
I know it gets statically linked because the executable will run correctly on a plain Debian installation; whereas it won't if I build it normally.

@luislavena I've figured out why libz.a was missing! I had to delete it to get the LIBRARY_PATH= method to compile again. So presumably libz depends on something else, that I also need to put in there. But I don't know what it is!

@stugol sorry, at no point in this issue there was a mention of http/client, except for the one you just did, neither was the source of your script provided, so how it will be possible for me to figure out what is doing?
I just loaded OpenSSL and zlib, and that worked.
Now, to the info you now provide:
require "http/client"

response = HTTP::Client.get "https://www.google.com"
puts response.status_code

$ crystal build --release script.cr -o script-dynamic

$ ldd script-dynamic
	linux-vdso.so.1 =>  (0x00007ffe65fc9000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f35620d7000)
	libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f3561e6e000)
	libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f3561a2b000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3561823000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3561605000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3561400000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f35611e9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3560e1f000)
	/lib64/ld-linux-x86-64.so.2 (0x000055a73d6b0000)

$ crystal build --release script.cr -o script-static --link-flags="-static"
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x11): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/bin/../embedded/lib/../lib/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
evutil.c:(.text+0x1486): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/crystal/bin/../embedded/lib/../lib/libevent.a(evutil.o): In function `evutil_unparse_protoname':
evutil.c:(.text+0xf04): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

$ ldd script-static
	not a dynamic executable

I didn't require to play with LIBRARY_PATH or even -L

But I don't know what it is!

 If something has borked in your end you might need to restore the packages or something.

@luislavena I realise I had not mentioned http/client. I wasn't admonishing you for its omission ;)
# ldd linux-setup-dynamic
	linux-vdso.so.1 =>  (0x00007ffef5fcb000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd03476b000)
	libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fd03450a000)
	libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fd034111000)
	libevent-2.0.so.5 => /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 (0x00007fd033ec9000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd033cc1000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fd033a83000)
	libgc.so.1 => /usr/local/lib/libgc.so.1 (0x00007fd03380f000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd0335f3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd0333ee000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd0331d8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd032e4d000)
	/lib64/ld-linux-x86-64.so.2 (0x00005606d9df5000)

However, this is interesting:
# ln -s /usr/lib/x86_64-linux-gnu/libz.a /opt/crystal/embedded/lib/
# ls -l /opt/crystal/embedded/lib/libz.a
lrwxrwxrwx 1 root root 32 Feb  4 19:21 /opt/crystal/embedded/lib/libz.a -> /usr/lib/x86_64-linux-gnu/libz.a
# crystal build --release linux-setup.cr -o linux-setup-static --link-flags="-static"
Using compiled compiler at .build/crystal
/usr/bin/ld: cannot find -lz
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x19): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
(.text+0x116): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libevent.a(evutil.o): In function `evutil_getaddrinfo_common':
(.text+0x148f): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "linux-setup-static" "${@}" -static -rdynamic  -lz -lssl -lcrypto -levent -lrt -lpcre -lgc -lpthread -ldl`

Why /usr/bin/ld: cannot find -lz? It's right there!

Why /usr/bin/ld: cannot find -lz? It's right there!

Once again, is your system and you have stated that you messed with files prior this testing. I recommend you purge and restore the zlib package and development headers/libs in order to continue testing, since remote debugging over a GitHub issue is like trying to assist someone to fix a problem over Twitter, without the 140 characters limit (aka: pointless).

I wasn't admonishing you for its omission ;)

Perhaps english is not my first language, but there is something in the tone you express your concerns that might indicate otherwise.
But, since we are talking about computers and software, please provide as much details, context and output necessary to reproduce the issue. Perhaps even test on a clean slate/environment before reporting will serve all parties and save everybody's time, not to mention the learning experience.

Argh. I started afresh on a new system, and now I'm having trouble getting anything to run at all!!
I've done this, as I usually do:
apt-get update
apt-get install -y llvm libpcre3-dev build-essential curl git zlib1g-dev automake libtool pkg-config unp libedit-dev libssl-dev libevent-dev libgc-dev libreadline-dev libgdbm-dev
curl http://dist.crystal-lang.org/apt/setup.sh | bash
apt-get install -y crystal
git clone https://github.com/manastech/crystal.git
cd crystal

git clone git://github.com/ivmai/bdwgc.git
cd bdwgc
git clone git://github.com/ivmai/libatomic_ops.git
autoreconf -vif
automake --add-missing
./configure
make
make install

curl -O http://www.xmailserver.org/pcl-1.12.tar.gz
unp pcl-1.12.tar.gz
cd pcl-1.12
./configure
make
make install
cd ../..

rm /usr/lib/libgc.so* || true
apt-get remove libpcl1-dev || true

make
cd ..
ln -s /root/crystal/bin/crystal /usr/local/bin/
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.a /opt/crystal/embedded/lib/
ln -s /usr/lib/x86_64-linux-gnu/libz.a /opt/crystal/embedded/lib/

And I'm getting the following error:
# crystal eval "puts %{hello}"
Using compiled compiler at .build/crystal
./.crystal/eval/_main.o: In function `__crystal_main':
main_module:(.text+0x5db): undefined reference to `GC_get_push_other_roots'
main_module:(.text+0x641): undefined reference to `GC_set_push_other_roots'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/root/.crystal/crystal-run-eval.tmp" "${@}"  -rdynamic  -levent -lrt -lpcre -lgc -lpthread -ldl`

I don't understand it! I've done exactly what I always do, and it's not working!

I added export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH and export LD_LIBRARY_PATH=/usr/local/lib to my /etc/bash.bashrc and that seems to have fixed it.
Also, on this fresh system, it seems to be working:
# crystal build --release linux-setup.cr -o linux-setup-static --link-flags="-static"
Using compiled compiler at .build/crystal
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x11): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libevent.a(evutil.o): In function `test_for_getaddrinfo_hacks':
(.text+0x154): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libevent.a(evutil.o): In function `evutil_getaddrinfo_common':
(.text+0x1761): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
# ldd linux-setup-static
	not a dynamic executable

Does this message mean that all libraries have been linked statically? Isn't it a bad idea to statically link libc?
Thanks for the help.

The message just means that there's still a dependency on shared libc.

No, I mean not a dynamic executable

Does this message mean that all libraries have been linked statically? Isn't it a bad idea to statically link libc?

Yes, is a bad idea, and that is why gives you a warning that glibc will be loaded at execution time instead, so it will depend on the platform you compiled to run against it.
In order not to depend of the platform glibc, you might search for musl libc implementation (there are open issues about this, but the level of knowledge is high, be warned).

Is there some way to dynamically link libc whilst statically linking everything else? Or doesn't it matter?

@stugol learn about linking options, like -Wl,Bdynamic and -Wl,Bstatic, you can play with those options to decide which libraries will be statically and which libraries will be linked dynamically or statically.

I know about those. But there's no way to inject them into the Crystal build process is there, except by doing a two-stage build using the --cross-compile flag.

Is this solved?

Yes, but this issue is already closed. See #4872.


Feature Request: Bulk download

Currently, you can only download documents individually. It would be nice to implement a bulk download feature that allows us to:

Provide an array of multiple documents
Initiate a bulk download
Receive a compressed file (e.g., ZIP) containing all selected documents

This feature would save time for users who need to download multiple documents at once and reduce the number of individual download operations.
Benefits:

Improved user experience
Time-saving for users who frequently download multiple documents
Reduced server load by minimizing the number of individual download requests

At least for v1 there are no plans to do this out of the box as it would complicate too much the existing file APIs (especially around the protected checks).
It could also cause performance issues for large (or many small) files that needs to be compressed.
The retention of the generated zip is also something that will have to be considered.
I may revisit it in the future if a more prominent use case arise, but for now if there is need it for it users can implement it on their own by registering a custom route (it could be also implemented as a "plugin" package in similar manner to https://github.com/pocketbase/pocketbase/tree/master/plugins).


consider rejecting negative lengths

rust-lld will happily link memory.x files that contain lines like these
RAM : ORIGIN = 0x20020000, LENGTH = 1K - 2K

or even
RAM : ORIGIN = 0x20020000, LENGTH = -1K

it seems the behavior is that the value overflows because linking works even if .bss is 1MiB in size.
we could either reject these indicating that there may be a problem in the linker script or that negative lengths are supported.
if we want to support them then I'm not sure what flip-link behavior should be. transforming either of the above to
RAM : ORIGIN = 0x20020000 - 1K, LENGTH = 1K

does not produce the same binary with a single linker pass

I agree we should reject these with a clear warning.

I can try to do that, since I am on the subtraction issue.


Can retention be exposed as a cmd line parameter?

https://github.com/tureus/graphite-rust/blob/master/src/bin/carbon.rs#L59-L64

@jshook yes, I think that would be an easy change. Put the property in the Args struct here: https://github.com/tureus/graphite-rust/blob/master/src/bin/carbon.rs#L35-L40 and document the argument in the USAGE string (I think the formatting matters): https://github.com/tureus/graphite-rust/blob/master/src/bin/carbon.rs#L19-L32 . Do that and I will be happy to merge!


Add conformance to the workloads framework

This will enable us to run the e2e tests to validate and check if the
OpenShift cluster is sane.

Fixes https://github.com/openshift-scale/workloads/issues/68.

@akrzos  pass/fail for conformance is tricky as there might be some critical failures even if the number of test failures are less or there might be more failures which are not actually blockers.

I do agree that while measuring and/or failing based on test failure count won't be a perfect indicator but it could throw up a red flag if something is not well.  Anyhow we can discuss that logic in further detail outside this pr.  I ran conformance and it took 79m on my cluster.  Thanks @chaitanyaenr for putting this one together

@chaitanyaenr can you add an entry to this file with a link to the docs page for the test and then we are good to merge.

@akrzos added a link to the docs in the README.md. PTAL.


renamed assets folder to be hidden from side nav

renamed assets to _assets so it doesn't show up in user facing side nav

gtg

good to go