Allow recursive references

With the last release was added the dereference_served_schema parameter.
As described by the documentation the parameter is not working well in case of recursive model definition.
The pull request is trying to fix this issue.
The idea is to create a big self-containing swagger specification which could contain $ref tags.
Having internal references allows the generation of recursive models and without preventing the generation of a unique swagger specification file
Ping: @striglia, @lucagiovagnoli, @sjaensch

Coverage decreased (-99.5%) to 0.0% when pulling 07cf8eb4e85bfc6a758bbb34f92f5c0b2bedc822 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

I really like what this PR is doing! However I'm wondering about test coverage. What tests cover this behavior? I'm specifically looking for one where we'd have a multi-file spec, it gets ingested by pyramid_swagger and we assert on the resulting spec as it would have been served by pyramid_swagger.

+1 to Stephan's goal of ensuring we have new tests that are failing without your code change and passing with it. This was mostly a known issue w/ the previous behavior, but we can at least ensure it doesn't creep back in :)

One other potential concern: did you test this with a client, e.g. bravado? Not sure if the slashes you use within the new reference name might be interpreted as a path during resolution.

Coverage decreased (-0.4%) to 99.09% when pulling f672427eab162ac6770a45803284825e3fe5b258 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

Coverage decreased (-99.5%) to 0.0% when pulling 603f6e3b82824d4a46ad20f981f76b2c2dd7ecd5 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

So, I have just pushed some modification on the code in order to:

have a smarter generation of names by _translate_definition_target (it is highly customizable and replaces / with .) and takes care about the relative paths respect to swagger.json (have a cleaner naming process)
make more evident the dereferencing process through the test files on /tests/sample_schemas/relative_ref/

About the bravado client testing I have to test it with the new version of the code.

Coverage decreased (-0.4%) to 99.092% when pulling f27667f13674d5ae24f93b199726a01748b72cb4 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

Coverage increased (+0.06%) to 99.582% when pulling 218724e289911f936e010e38ed6490be8054e2a0 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

I'm sorry for the code modifications that were introduced by the last commits!
Them were necessary in order to produce a more readable and stable code and to reduce the amount of information that have to be propagated by the recursive calls.
At the current state the generated swagger specs (due to the dereference_served_schema parameter) are self-contained.
Be self-contained means that the $ref tags have to target the current file.
Since we can still use the $refs the code is fetching all the external references and putting them on the /definition/ part of the specs.
An additional test with the bravado client is ensuring that the generated swagger spec are compliant.

Coverage increased (+0.06%) to 99.582% when pulling 4e03bd1e6eaeb86d85297e4a9a740b50baa41c15 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

Coverage increased (+0.06%) to 99.584% when pulling c50aeda60d6b78418ece6832e9eca2004fd72df6 on macisamuele:allow-recursive-references into f8b8130ee0155261e066094b43aa3e1be422de9a on striglia:master.

Additional tests on commit c50aeda have highlighted an additional issue.
The issue was related to the fact that everything is inserted in the definitions JSON object, which lead to a correct JSON representation which unfortunately is not respecting all the Swagger Specifications.
For example the following JSON is not valid Swagger:
{
  "info": {
    "version": "1.0.0",
    "title": "title"
  },
  "paths": {
    "/test1/": {
      "$ref": "#/definitions/file.paths.json|..paths..test1"
    }
  },
  "schemes": [
    "http"
  ],
  "produces": [
    "application/json"
  ],
  "basePath": "/",
  "definitions": {
    "file.paths.json|..paths..test1": {
      "get": {
        "operationId": "test1",
        "responses": {
          "200": {
            "description": "Return integer",
            "schema": {
              "type": "integer"
            }
          }
        }
      }
    }
  },
  "swagger": "2.0"
}

In order to avoid it we need to dereference the Path Item Objects and to insert into the definitions the Parameter Objects and Reference Objects. The discrimination is provided by the _is_model_definition function.

The code change is too extensive and could lead to inconsistent specs (even starting from consistent specs).
The PR 171 is intended to solve the same issue in a cleaner and safer fashion.


Added title with default value None to url_result

Fixes jwplayer playlists with unknown video titles
I used this to make discogs.com embeds work. I hope it makes sense like
this...
This works now:
youtube-dl --verbose --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0" http://www.discogs.com/master/15295
This closes #4790.

I have fixed it in a different way in 13d8fbef30f1d7608b02e78818fa2ec211d69e21, the real problem is that those results are just a url to a Youtube video and we don't know the title in advance. Thanks for your contribution.

Cool, makes sense!


Timber does not render on WP_DEBUG = false

Expected behavior

I expect from Timber::render to show the twig content even if the Wordpress is setup with WP_DEBUG = false, for production environments, but with WP_DEBUG = true, it works fine
Actual behavior

Currently, it works if WP_DEBUG is true, but if WP_DEBUG is changed to false, there is no output, it shows a blank page, with nothing of the twig file rendered
Steps to reproduce behavior

I´m using the docker Bitnami/wordpress image and just the following code:
page-pagename.php
if ( class_exists( 'Timber' ) ) {
  $context = Timber::context();
  Timber::render( get_stylesheet_directory() .'/templates/page-pagename.twig', $context );
}

/templates/page-pagename.twig
{{ function('get_header') }}

   // content Here

{{ function('get_footer') }}

What version of WordPress, PHP and Timber are you using?

WordPress 5.4.1
PHP 7.3
Timber 1.15.2
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Via plugin updater in WordPress dashboard

I found the following solution to this behavior
page-pagename.php
if ( class_exists( 'Timber' ) ) {
  $context = Timber::context();
  get_header();
  Timber::render( get_stylesheet_directory() .'/templates/page-pagename.twig', $context );
  get_footer();
}

/templates/page-pagename.twig

   // Twig content Here

Hi @jarednova, yes, I did not mention that I´m using Divi (As parent theme) to create a custom Header and Footer, I think the issue could be related with this plugin.
The weird issue here is that there is no error message, just a "No output" behavior

@sebas932 it's likely that this then caused by Divi (as opposed to the server settings). Why? That's obviously what would be great to get to the root of.
We actually just incorporated a change into the next version (1.16.0) that has more error messages for when there's an invalid template: https://github.com/timber/timber/commit/28356bc18cb654d0451696925406435378cba471. This will be deployed to wp.org next week and might help us better isolate where the problem lies.
Have you checked out the header/footer files in the Divi theme to see if there's anything unique going on that could provide a clue?

@jarednova I think this issue relates us back to https://github.com/timber/timber/issues/2084.
While a PR was merged back in the day to fix #2084 we are still experiencing the same bug even with the latest Timber version 1.16.0. When WP_DEBUG is set to false, fronted pages just return a WSOD.

Oy. So just to confirm though #2084 didn't break your problem. It just failed to resolve it, correct?
The rock and hard place that I'm in is that I simply can't replicate the issue. Given that @elvismdev and @sebas932 can — could one of you do a little wolf-fencing to determine where the problem lies? I'm pretty sure that if you could isolate the failure point the fix should be pretty clear (or at least, much easier to then replicate on my setup and reach a resolution)

@jarednova that is correct, #2084 failed to resolve it.

hi
I think I'm hitting similar problem.
latest WP, latest Timber,
If I turn on the Yoast SEO and the define('WP_DEBUG', true); or define( 'WP_DEBUG_LOG', true );
all is fine, once I set all debug to false, the html head is cut off. All head above the {{ wp_head }} is gone.
I see this problem on one site only which is weird and so I suppose it has something to do with the PHP (PHP Version 7.2.20) or server setup as all my sites are based on one template framework and are in many many ways equal.
the only problem I'm able to trace out is
[08-Jul-2020 16:30:04 UTC] PHP Notice:  is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in ../wp-includes/functions.php on line 5167
[08-Jul-2020 16:30:04 UTC] PHP Notice:  is_single was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in ../wp-includes/functions.php on line 5167

@twentyfortysix does the problem still occur if Yoast SEO is turned off?

The answer is not that simple:
A. The head is cut off while:
Timber + wp_debug is false, Yoast is active
B. The head stays fine while:
Timber + wp_debug is true, Yoast is active
seams I'm not alone https://wordpress.org/support/topic/14-5-breaks-the-head/#post-13100729
(almost identical setup on different hosting works fine with PHP Version 7.3.19 - just for reference as I have no idea if the PHP version makes difference or not)
it is weird as normally if there is a problem the rest of the code is not visible, while here the previous code where the {{ fn('wp_head') }} is missing.

Very interesting. It looks like 14.6.1 is now out @twentyfortysix — does that resolve the issue?

I don't know about 14.6.1 but Timber 1.17.0 does ;)

I've been fighting the same problem of getting no output only when WP_DEBUG = false.
I've managed to narrow it down to my themes header.php.
If I delete the file or even just the ob_start(); line then everything renders correctly.
Hopefully that helps the troubleshooting.

@jfaulk that's VERY interesting. That's a file/element not covered with any of the automated tests. Lemme see if there's stuff connected there

@twentyfortysix @sebas932. Unfortunately I'm still not able to replicate the issue, however @jfaulk's note is a very good clue to resolving it for your situations. The header.php & footer.php files included in the starter theme are hacks to help certain plugins that need/expect those files. To navigate around this, we rely on PHP Output Buffering to "grab" Timber's content and hold it until the very end of the page in footer.php where it's finally sent to HTML.
I have two hunches ...

In certain setups WP_DEBUG interacts with PHP Output Buffering in a strange way that's either undocumented or specific to server configurations.
There's some kind of other error on your pages that's preventing footer.php from running or completing:

$timberContext['content'] = ob_get_contents();
ob_end_clean();
$templates = array( 'page-plugin.twig' );
Timber::render( $templates, $timberContext );

For whatever reason, when WP_DEBUG = true WordPress might have a greater tolerance so that it's finishing execution (perhaps sending errors or warnings?). But when WP_DEBUG = false it's like "naw" and not getting to the very end. I'd recommend doing some debugging to verify if there's a place where there's a breakdown or following @jfaulk's suggestion and removing the various ob_ calls to see what happens.

Hey
I know this is of no help, but I have updated all I could and the problem is gone.
the log from last days when the debug was still true shows nothing more than:
PHP Notice:  is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see ..wp-includes/functions.php on line 5167

As this issue is now three years old, let's close this one. If anyone still runs into a similar issue, please report in a new issue.


match has changed from version 3.1.0

In Sanctuary 3.1.0 the following used to work:
S.match (/[^\-]+(?=\.firefund|\.json$)/i)
        ("39126-borderlesscollective.firefund")
// Just ("borderlesscollective")

But the behavior has changed in commit 0b5611700978861b23bccf3f714771d1b61ffa14.
Now it returns Just ([]).
The test is here: https://github.com/sanctuary-js/sanctuary/blob/72bc20ad02c5944b661efdcdd14ab60ceb92c7b3/test/match.js

Looking at the new documentation but still unsure what is the expected return type. ? Is it always suppose to be:
Maybe ([Maybe (String)])

Right, so upon re-reading the new documentation I finally got it!

Takes a pattern and a string, and returns Just an array of captured
values if the pattern matches the string; Nothing otherwise.

So the regex MUST contain at least one capture group.


update oclif cli

@userdehghani Please try this out in your local environment.

@mhemrg do we have need to keep @oclif/command in bin/run?

I was trying to get rid of the @oclif/command from bin/run
After that when I tested it I got different output

@vashian Give me more details about what you changed, what you got and mention how can i help you?
also, i suggest to running these commands before making or updating PR on this repo:
npm run prepack
npm run postpack

@mhemrg I have to say @oclif/core removed -h as a short flag for --help and -v as a short flag for --version
Because they want to make it optional, From now on you can use -h or -v for other purposes.
However, based on this article for restoring that functionality we need to add extra properties to our package.json

@userdehghani Thank you so much for your assistance 🌷
I got distracted and missed the ship

@vashian Yes, please restore the original functionality.

LGTM :)


asking for 3D slicing

Thank you for sharing your code with the community,  it's a fantastic resource.
I have a question regarding the 3D slicing based on 2D image cues. Could you clarify if this process involves reconstructing a 3D model from the 2D image before slicing, or does it simply entail slicing on the 2D image itself, or perhaps a 2.5D image? Additionally, are the results of the slicing characterized by a 3D contour? In other words, can the object be rotated to view it from different angles?
Thank you for your time and help!

Hi, thanks for your interest! The obtained assets are 3D Gaussians. Before segmentation beginning, we need to pre-train a 3D-GS model. After segmentation, the segmented target can be viewed from different viewpoints. You can try the saga_gui.py.


feat: i18n(ES) Added react admin 4.14.0 keys

Added the translation keys for the new CheckForApplicationUpdate component

Hi @JonatanSalas , can we merge this PR?

Hi @mtebele, yes! for sure.

Thank you @JonatanSalas ! Are you planning to release this new version on npmjs?

Yep! On the way

@mtebele done!
npm i<EMAIL_ADDRESS>


feat: disable Yearn in market-service / unchained-client

Description
Part of web spew cleaning - disabled Yearn in market-service and unchained-client.
See current grep for yfi.sdk.

market-service is directly consumed in web, thus will reduce spew instantly
unchained-clientparsers are consumed in chain-adapters and will require an internal bump as a follow-up
caip and asset-service usages are within a generate-once script kind of context, thus are not explicitly required to cleanup spew. Removing Yearn from there. Removing them from there would effectively mean Yearn assets wouldn't show up nor be able to be parsed as CAIPs anymore, removing the Yearn featureset fully, which is a product question.

$ rg -l -g !**/node_modules** yfi.sdk

packages/market-service/src/marketDataCLI.ts
packages/market-service/src/market-service-manager.ts
packages/asset-service/src/generateAssetData/ethereum/yearnVaults.ts
packages/market-service/src/market-service.test.ts
packages/market-service/src/yearn/yearnMockData.ts
packages/market-service/src/yearn/yearn-vaults.test.ts
packages/market-service/src/yearn/yearn-tokens.test.ts
packages/market-service/src/yearn/yearn-tokens.ts
packages/market-service/src/yearn/yearn-vaults.ts
packages/asset-service/package.json
packages/market-service/package.json
packages/unchained-client/src/evm/ethereum/parser/yearn.ts
packages/unchained-client/src/evm/ethereum/parser/__tests__/ethereum.test.ts
packages/unchained-client/package.json
yarn.lock
packages/investor-yearn/src/YearnInvestor.ts
packages/investor-yearn/src/YearnOpportunity.ts
packages/investor-yearn/package.json
packages/caip/src/adapters/yearn/utils.ts
packages/caip/src/adapters/yearn/utils.test.ts
packages/caip/package.json
<EMAIL_ADDRESS>

Current dependencies on/for this PR:

main

PR #1174   👈

This comment was auto-generated by Graphite.

https://github.com/shapeshift/lib/pull/1174/commits/66f239f79927381c5a41bb5df45f77d86964dbaf updated with direct vault query to maintain accurate yearn parsing (did not test in web, may need to add to csp list, but endpoint works, for now at least...)

LGTM @kaladinlight, can't approve my own PR but does what it says on the box - indeed we're having CSP issues with this but solved with a simple one-liner
Before CSP fix

After CSP fix
No error
c41f446d90429457f54aa952348fba137a80a5a7


Error when run on WSL

I downloaded to WSL, ran this:
./TunnelRelay.Linux.Console -RelayUrl jongrelay.servicebus.windows.net -KeyName RootManageSharedAccessKey -Key -Name jonghybrid -Address http://localhost:10000
Got this:
Unhandled exception. System.AggregateException: One or more errors occurred. (Windows Data Protection API (DPAPI) is not supported on this platform.)
 ---> System.PlatformNotSupportedException: Windows Data Protection API (DPAPI) is not supported on this platform.
   at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope)
   at TunnelRelay.UI.StateManagement.DataProtection.Protect(Byte[] data)
   at TunnelRelay.UI.StateManagement.ApplicationData.set_HybridConnectionSharedKey(String value)
   at TunnelRelay.Console.Program.<>c__DisplayClass1_0.<<Main>b__0>d.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass79_0.<OnExecute>b__0()
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at TunnelRelay.Console.Program.Main(String[] args)

Should it be trying to use DPAPI on Linux?
azsdke2e
azsdke2e2

Yeah it should not be invoking DPAPI on Linux. Looks like a bug. I will take a look.

Looks like WSL is getting detected as Windows. Are you using WSL1 or WSL2?

2, thanks!

Looks like the older version of NetCore31 (on which tool is compiled) did not recognize WSL as Linux and hence you are hitting codepaths meant for Windows. I am adding a new flag for disabling encryption as well as increasing the netcore version to fix the existing issue.


Input inside the dropdown has no name.

Hi Simon,
I am currently trying to put this multiselect into a form.
But get this error from angular2:

EXCEPTION: Error in ./CustomizeFormComponent class CustomizeFormComponent - inline template:122:57 caused by: If ngModel is used within a form tag, either the name attribute must be set or the form
control must be defined as 'standalone' in ngModelOptions.
  Example 1: <input [(ngModel)]="person.firstName" name="first">
  Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">

I think the reason is the search bar inside the multiple select is an input but it has no name.
Here is my code
<ss-multiselect-dropdown [settings]="mySettings" class="form-control"           name="job" [options]="myOptions" [(ngModel)]="model.job"           #job="ngModel" [ngModelOptions]="{standalone: true}">         </ss-multiselect-dropdown>
What is the correct way to use this multiple select within a form?
Is it the only to use it within a form by using form-builder of angular?
Thanks very much.

I believe it's your own <form tag that needs a name attribute, if you are using a form tag.

I've tried that. But it won't work. 😞

Ok, you could be right. I'll add [ngModelOptions]="{standalone: true}" to the input.


Panic when connecting to enterprise wifi

Bug description
Hi, sorry for the lack of details I had to work around the issue as it arose in production. Since then I have not been able to test more. But I captured the following backtrace and I think it could be interesting for you:
panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-wifi-0.10.1/src/compat/misc.rs:163:45:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }

Backtrace:

0x42031e5a
0x42031e5a - core::result::Result<T,E>::unwrap
    at ~/.rustup/toolchains/nightly-2024-08-06-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:1102
0x4206c5c2
0x4206c5c2 - eap_mschapv2_failure_txt
    at /COMPONENT_WPA_SUPPLICANT_DIR/src/eap_peer/eap_mschapv2.c:382

To Reproduce
Not familiar with how the authentication protocol works but what happened is that my credentials needed a new password (password needs to be rotated every n months) and this caused a panic in esp-wifi. I assume this is communicated back during handshaking with the client and this path is not handled properly. With an updated password the panic went away.

Try to connect to enterprise wifi with expired authentication details

Didn't try on main but was running 0.21.0 which is recent.
Environment

Target device: esp32c3
Crate name and version: 0.21.0

Thanks for reporting this. I will try to reproduce and fix this as soon as possible

I wasn't able to reproduce the crash - I assume it depends on the Radius server used (I'm using FreeRadius) when trying to parse a negative response from the radius server
However, the backtrace was useful to spot a problematic / too optimistic implementation of atoi


Webpack hang in Safari

Describe the bug
In Safari, webpack version will hang at the Please wait while we connect to your cloud step. Although if you check the development took, websocket is actually connected.
Steps to reproduce the behavior

Run KUI proxy npx kui-run-proxy
Run webpack npm run watch:webpack
open safari with url http://localhost:9080
See error

Expected behavior
Should show ready
Screenshots

Code snippets
If applicable, add code samples to help explain your problem.
System

Kui version: latest
Operating system: Mac OS

Seems like this problem also happens on Microsoft Edge

TypeError: ws.on is not a function. (In 'ws.on('message', onMessage)', 'ws.on' is undefined)

https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
Is it because the websocket constructor is not supported ?  ^^^ see the bottom table in link above

apparently safari (and edge, too?) do not allow subclassing the native WebSocket. the subclass overrides are silently ignored. firefox and chrome seem ok with this.


File permissions keeps changing from none to 777

I found this problem using git when pulling from server:

then i discover:

that file permissions keeps changing: after the "ll" everything goes all right, but when I close all the consoles, and reopen the problem reappreared (maybe with another file....)
I'm on Windows 17741.rs5_release.180814-1430
Update:
I think this has to do something with that I access/update some of the files with a Dual boot Ubuntu 18.04 OS.

Do you utilize the metadata option that you can configure in wsl.conf?

You'll need to create it yourself. See https://blogs.msdn.microsoft.com/commandline/2018/02/07/automatically-configuring-wsl/

Also worth noting: If you're using a Windows IDE other than VS-Code and/or if you're running VS-Code but not the Insiders released last night, the metadata will be stripped so permissions will go back to the default. So that's another thing to account for.

sudo bash -c "echo $'[automount]\noptions=metadata' > /etc/wsl.conf"

metadata is no use in solving this problem ... :

I think this has to do something with that I access/update some of the files with a Dual boot Ubuntu 18.04 OS.

That scenario is not supported. WSL file metadata is different than real Linux file metadata. If you use real Linux to manipulate WSL files you will lose the WSL file metadata. In later builds WSL tries to recover files without WSL metadata and that's why they end having 777 as file permissions.

That scenario is not supported.
WSL file metadata is different than real Linux file metadata.

If that's actually the scenario being described (I had dismissed "Update: think this has to do something with...Dual boot Ubuntu" as too unusual) then it isn't just different. If the OP is touching those files with nfts-3g in Real Linux, then the metadata is nonexistent. Because, before relatively recently, NTFS had never heard of them (in a user-facing way outside way outside WSL, anyway). And, by extension, neither does ntfs-3g.
Which begs the obvious question: Could you update ntfs-3g to support them? And the answer is, ya, you could. That's actually an almost-interesting project idea.
@terrywh - If you are modifying those files in Real Linux (dual boot Ubuntu), how, precisely, are you accessing those files on a Real Linux boot? The directory was /data/... (not /mnt/?/somthing) on WSL. What directory, exactly, are you mounting and accessing on Real Linux? Because if it is /media/you/.../Users/You/AppData/Local/Packages/.../rootfs/data, well, that probably would have been something worth mentioning. And is... "unusual".

In WSL we do a checkout from the git repository to the WSL mount. When we edit files in our IDE running in Windows environment, it changes the permissions from 666 to 777. How can we prevent this?

@therealkenc OK, I get where these problems accur. And I eager to see if ntfs-3g and WSL can work together. (FYI, I am accessing/writing these file from a Real Ubuntu OS (Dual boot from the same machine, And is mounting NTFS Partitions Directory D:/data to /data).


Get workspaces which are empty for sketchybar?

Which results to this:

This is great and exactly what I am looking for, but I can't find a way to have this updated when a workspace actually becomes empty or not. I've searched for something relevant in the documentation of aerospace but was not able to find anything sufficient. Am I missing something, or this is just not possible currently?
Checklist

[x] I've searched for duplicates. My search queries were (please don't forget to search in closed issues too):

--empty
list-workspaces
"hide workspaces"

[x] I've read the documentation https://nikitabobko.github.io/AeroSpace/guide & https://nikitabobko.github.io/AeroSpace/commands
[x] I've searched in the documentation. My search queries were:

list-workspaces
events
on-change

Updated my post with the checklist required.

I stumbled upon this issue since I was going to achieve something similar. In my case, I wanted to hide empty workspaces. So I just came up with this workaround. I put it here for anyone interested:
sketchybarrc
sketchybar --add event aerospace_workspace_change
for sid in $(aerospace list-workspaces --all); do
    sketchybar --add item space.$sid left \
        --subscribe space.$sid aerospace_workspace_change \
        --set space.$sid \
        click_script="aerospace workspace $sid" \
        script="$CONFIG_DIR/plugins/aerospace.sh $sid"
done

aerospace.sh
#!/usr/bin/env bash
source "$CONFIG_DIR/colors.sh" # Loads all defined colors

SID="$1"
PADDING_LEFT=9
PADDING_RIGHT=10

INACTIVE_COLOR=$ACCENT_COLOR
EMPTY_WS_COLOR=$GRAY_ITEM_BG_COLOR

CURRENT_WORKSPACE=$(<~/.current_workspace)
EMPTY_WORKSPACES=$(<~/.empty_workspaces)

if [ "$SID" = "$CURRENT_WORKSPACE" ]; then
	sketchybar --set $NAME drawing=on background.drawing=on \
		icon.drawing=off \
		background.color=$ACCENT_COLOR \
		label.color=$BAR_COLOR \
		label="$1" \
		label.padding_right=$PADDING_RIGHT \
		label.padding_left=$PADDING_LEFT
else
		if [[ $EMPTY_WORKSPACES == *"$SID"* ]]; then
			# INACTIVE_COLOR=$EMPTY_WS_COLOR
			sketchybar --set $NAME drawing=off
			exit 0
		fi
		sketchybar --set $NAME drawing=on background.drawing=off \
			icon.drawing=off \
			label.color=$INACTIVE_COLOR \
			label="$1" \
			label.padding_right=$PADDING_RIGHT \
			label.padding_left=$PADDING_LEFT
fi

In your case comment out this line # INACTIVE_COLOR=$EMPTY_WS_COLOR  and remove 2 lines below it. Also make sure to change the color variables.
aerospace.toml
# Notify Sketchybar about workspace change
exec-on-workspace-change = ['/bin/bash', '-c',
    'echo $AEROSPACE_FOCUSED_WORKSPACE > ~/.current_workspace'
]
# Notify Sketchybar about moving windows to a different workspace and changing workspaces
on-focus-changed = ['exec-and-forget aerospace list-workspaces --monitor all --empty > ~/.empty_workspaces && sketchybar --trigger aerospace_workspace_change']

There are 2 things to consider:

For performance reasons I use ~/.current_workspace and ~/.empty_workspaces. This is because if you have 9 workspaces, for example, then the event aerospace_workspace_change will be triggered 9 times and running the aerospace commands inside aerospace.sh directly will slow down the UI.
This has one disadvantage: When I press mode+num to change the workspace, the sketchybar will be updated after the window is visible on the screen. There will be a slight delay. I like to see the sketchybar to be updated as soon as I press the key on my keyboard. So in that case you may change the aerospace.toml to the following:

# Notify Sketchybar about workspace change
exec-on-workspace-change = ['/bin/bash', '-c',
    'echo $AEROSPACE_FOCUSED_WORKSPACE > ~/.current_workspace && sketchybar --trigger aerospace_workspace_change'
]
# Notify Sketchybar about moving windows to a different workspace and changing workspaces
on-focus-changed = ['exec-and-forget sleep 0.1 && aerospace list-workspaces --monitor all --empty > ~/.empty_workspaces && sketchybar --trigger aerospace_workspace_change']

The sleep command is there to prevent race condition.
It would be cool to see an event that decouples changes to windows inside a workspace from workspace changes. Something like workspace-window-change that would capture ONLY changes to windows in a workspace like moving a node out of the workspace or creating and destroying windows in the workspace BUT NOT workspace switching. Then that would work better with sketchybar.


Package request: nixos/librechat

Project description
Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
Metadata

homepage URL: https://www.librechat.ai/
source URL: https://github.com/danny-avila/LibreChat
documentation URL: https://docs.librechat.ai/
blog URL: https://docs.librechat.ai/
license: MIT
platforms: unix, linux

Add a :+1: reaction to issues you find important.

(I'm assuming this also needs an accompanying module per the nixos/ tag.

Hi @SigmaSquadron
Yes you are correct. Thank you for adding the Labels. :+1:
Please let me know if I should do this differently in the future.


partition availability and sdk behavior

Library name and version
Azure.Messaging.EventHubs
Query/Question
Provided the client must have consistency, which is being achieved through adding the partitionKey when sending the message, the following things are unclear:
Why does a partition become not available, and is there any exception/notification forwarded to the client by the sdk, so the client is aware a partition is down
In case message A was sent with partitionKey PK and the partition becomes unavailable, when a new message B with the same partitionKey PK is published, to which partition will it end
Environment
No response

Hi @ivi-hamiti.  Thank you for reaching out.   This inquiry is really more focused on service functionality, as the client does not have insight or influence.   From the client perspective:

When you call SendAsync, the events are packaged together in an envelope that is stamped with a partition key and delivered to the Event Hubs gateway.  If the gateway acknowledges receipt, the call returns without an exception and the Event Hubs service owns responsibility for ensuring that those events are committed to the correct partition.

Since the client is communicating with the gateway, it has no awareness of the state of any partition node nor which partition that Event Hubs chooses to route events to.

That said, let's take a look at the Event Hubs service guarantees:

If the gateway acknowledges delivery of a events, that indicates it has created multiple copies of that data to reliable storage and in the case of failure the data will not be lost.

Partition keys have a stable association with partitions.  If a partition is unavailable, the gateway will hold onto the events for it and ensue they are delivered once the partition can receive them.   Given the highly redundant nature of the Event Hubs infrastructure, a partition is unlikely to be unavailable for more than seconds.

In the posed scenario for A and B, both will end up at the same partition, as the association between the partition key and partition is stable.  For A, there would be a longer-than-typical delay in the time from when the client SendAsync call completed and A was available to be read.

Why does a partition become not available

This is something that the Event Hubs service team would need to answer.   I suspect that it would be the typical reasons for a hosted service:  the host machine was being patched/rebooted, the partition migrated to a new host to balance load, an equipment failure caused a host migration.


Added name attribute to DatabaseNotification model

Proposal: Adding a name attribute to DatabaseNotification model, so you don't have to retrieve it in your view each time you just want to know the type instead of the full namespace, which is just a little cleaner I think.

Closed pull request due to failed PSR check


not using process.stdout

using process.stdout always got error when run with pm2

do u mean #136 "process.stdout.clearLine is not function" error？okay, so which method should we take? switch to console.log or use process.stdout.clearLine?.(0)？

do u mean #136 "process.stdout.clearLine is not function" error？okay, so which method should we take? switch to console.log or use process.stdout.clearLine?.(0)？

I prefer using console.log as I did

Will this log many times to the console and flood the screen?

I always run with --disablechalk so I guess yes.


FluentCombobox within FluentCard

🐛 Bug Report
When putting a FluentCombobox within a FluentCard, if the item list is more than the space in the card you can't see the options.
💻 Repro or Code Sample
<FluentCard Style="min-height:150px;padding:20px;width:25%;">     <FluentCombobox Items=Options                     OptionText="@(i => i.Description)"                     OptionValue=@(i => i.Id.ToString())                     @bind-Value="MarriageStatus"                     Autocomplete="ComboboxAutocomplete.Both"                     Placeholder="Select status">         Marriage Status     </FluentCombobox> </FluentCard>
@code {
private string MarriageStatus;

public IEnumerable<MarriageOption> Options { get; set; } = new List<MarriageOption>
        {
            new MarriageOption("Married"),
            new MarriageOption("Single"),
            new MarriageOption("Partner"),
            new MarriageOption("Common law"),
            new MarriageOption("Civil partnership"),
            new MarriageOption("Separated"),
            new MarriageOption("Divorced"),
            new MarriageOption("Widowed")
        };

}
🤔 Expected Behavior
Should be able to see the list in front of the card.
😯 Current Behavior
Can not see the full list.

Hi,
That's by design from the underlying fluent-card Web Component.
You have to remove the content-visibility and contain styles like this.
<FluentCard Style="content-visibility: inherit; contain: inherit;">
   ...
</FluentCard>

@vnbaaij I suggest disabling these two styles by default in our FluentCard component.
Or ask the FAST team to remove these two styles.
What's your opinion?

That's great, thank you.
Did I miss this somewhere in the documentation about components in general or should the card page explain this?
https://www.fluentui-blazor.net/Card

No. I did not found that before your question 😊 Reason why I propose to fix our FluentCard to avoid to do that manually, using styles.


Hostboot fails to build on Debian Stretch ppc64el

Trying to build hostboot as part of op-build on Debian Stretch ppc64el fails with:
Cannot open: ../../../../src/include/usr/tracinterface.H: No such file or directory at ./genErrlParsers.pl line 462.
makefile:79: recipe for target 'gen_errl_parsers' failed
make[9]: *** [gen_errl_parsers] Error 2

This was traced to buildroot corrupting symlinks inside hostboot.  Pull request at https://github.com/open-power/buildroot/pull/24


fix: fix cluster detail basic info not display master ip

Signed-off-by: moweiwei<EMAIL_ADDRESS>
What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #68
Special notes for reviewers:

Does this PR introduced a user-facing change?

Additional documentation, usage docs, etc.:

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@6779e78). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #69   +/-   ##
=========================================
  Coverage          ?   47.46%
=========================================
  Files             ?        6
  Lines             ?      552
  Branches          ?      152
=========================================
  Hits              ?      262
  Misses            ?      227
  Partials          ?       63

/lgtm
/approve


Top-down or Bottom-up

Top-down or Bottom-up？

Like the original open pose, it is bottom-up.

Thanks for your answer！
------------------ 原始邮件 ------------------
发件人:                                                                                "Daniil-Osokin/lightweight-human-pose-estimation.pytorch"                                                                                @.>;
发送时间: 2021年9月8日(星期三) 中午11:36
@.>;
<EMAIL_ADDRESS>主题: Re: [Daniil-Osokin/lightweight-human-pose-estimation.pytorch] Top-down or Bottom-up (#211)
Like the original open pose, it is bottom-up.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

@zhenzhongle Thanks for the answer!


How to place sticker below another sticker

i have two sticker one is textSticker and other is drawablesticker how can i place drawablesticker under textsticker through code? please help me

app:bringToFrontCurrentSticker="true"
add this to ur xml


feat: add Grumpkin curve support (PROOF-886)

Rationale for this change
In an effort to support the Grumpkin curve this PR implements the curve package. The Grumpkin curve forms a cycle with the bn254 curve. Its base field is the scalar field of the bn254 curve.
The majority of the changes in this PR are from copying and renaming the curve_bng1 package. All non-trivial changes, updating constants and test parameters, are isolated to this commit.
What changes are included in this PR?

curve_gk is added to support Grumpkin

Are these changes tested?
Yes

:tada: This PR is included in version 1.67.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


about code cache.

is there have some cached things in plugin or somewhere?
i have change my packgae name, but discover the weave file is duplicate the old package code into 'preWeave' and 'postWeave' like the image.

i have tried delete build folder, reopen android stuio, import project again, the result are same.
please help me, thx.

my gradle version is 7.2-bin, studio version is 2020.2.1 chipmunk, build gradle is 7.1.3

@forgetman Any updates? I'm looking to resolve this issue if possible. I'll just close it out if I don't hear back within a few days. Thanks.

I can try your command if the problem happens again. Thank you very much.


Error with timezone not UTC ?

OS: Linux Debian 12 bookworm
Prune installed with the following commands (see: https://dev.to/binarypatrick/using-prune-to-manage-backups-3nfg):

curl -s -o prune-install-linux-x64.sh https://raw.githubusercontent.com/BinaryPatrick/Prune/main/scripts/install-linux-x64.sh
chmod +x prune-install-linux-x64.sh
sudo ./prune-install-linux-x64.sh
rm prune-install-linux-x64.sh

Command and error:

$ prune --path backup/xxx/ --keep-last 5 --dry-run --verbose
Searching backup/xxx/
3 files found matching *
The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
   at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
   at System.DateTimeOffset..ctor(DateTime dateTime)
   at System.DateTimeOffset.op_Implicit(DateTime dateTime)
   at BinaryPatrick.Prune.Models.RetentionSorter..ctor(IConsoleLogger logger, IEnumerable`1 files)
   at BinaryPatrick.Prune.Services.RetentionSorterFactory.CreateRetentionSorter(IEnumerable`1 files)
   at BinaryPatrick.Prune.Services.PruneService.PruneFiles()
   at BinaryPatrick.Prune.Program.<>c.<Main>b__0_0(PruneOptions options)

Normal ?
I specify that my timezone is not UTC but Europe/Paris (UTC+2):
$ timedatectl
               Local time: Sun 2024-05-05 18:07:13 CEST
           Universal time: Sun 2024-05-05 16:07:13 UTC
                 RTC time: Sun 2024-05-05 16:07:13
                Time zone: Europe/Paris (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Hey, I missed this but I am investigating now.

I was able to fix this with v1.0.3


[WIP] Use the static protobuf for Windows package

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

The previous PR about Windows is using shared protobuf. However, other release onnx packages like PyPI are using static protobuf. It would be better that each released onnx packages are using protobuf in the same way. Therefore, this PR is trying to build the conda onnx package with static protobuf.
Another question: The previous PR about Windows does not update the conda-forge package for  win-32.
cc @askhade

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin , please rerender

Instead of building protobuf in the pipeline, we should directly use the static protobuf from conda... However, the static protobuf in conda for Windows has been deprecated https://github.com/conda-forge/libprotobuf-feedstock/issues/24. Halt this PR now.


Add labelAngle prop

From @boygirl on November 19, 2015 22:24
This prop should rotate the label by some number of degrees starting at the exact x, y position (and whatever dx, dy)
Copied from original issue: FormidableLabs/victory-label#7

From @coopy on December 17, 2015 21:50
Label should rotate around the specified textAnchor.

As I asked in https://github.com/FormidableLabs/victory-core/issues/37 -- what signature would you like for charting components use of the new label angle prop?


text with <3 and >/////< basically special characters is not read

it used to work.. now it skips these messages entirely and don't read them at all and am missing out on a lot while rping. is it possible to have it back to read special characters at least for the <3 ?

#41 describes why that change was made, it caused crashes in many cases. What did it say for those before?

it used to read "less than 3" which was nice since the whole message was read out.. it works atm for :3 as it reads "colon 3", i may be able to change what it says in lexicons, but the idea is the message is skipped entirely, maybe if possible we can have it read the message but ignore the emote or for it to say less than 3 same as with colon 3 as it does now without problems. As for shy face >/////<, it seems to crash the game, if possible to have it read the message but ignore the emote.


Labor hours redux

Calculate Labor Hours Using boyter/scc if the tool is installed on the user's computer
Problem
Labor hours as reported in code.json is difficult for people to know.
Solution
Use Scc to provide a good default value for people to use
Result
Add a post_gen script that checks if https://github.com/boyter/scc is installed. If it is then it uses the labor hours calculation. If it is not installed then it uses a default value of 0.
This assumes that we are in the .git directory of the project.
Test Plan
Test manually

Tested this and it works accordingly! Some changes needed for the output and project cleanup.
With this, should we remove asking about laborHours from the cookiecutter prompts? https://github.com/DSACMS/repo-scaffolder/blob/dev/tier4/{{cookiecutter.project_slug}}/.github/cookiecutter.json#L40

Yeah It probably makes sense to no longer ask for 'laborHours'. That way the estimate is being generated the same way for all the repos

Tested this and it works accordingly! Some changes needed for the output and project cleanup.
With this, should we remove asking about laborHours from the cookiecutter prompts? https://github.com/DSACMS/repo-scaffolder/blob/dev/tier4/{{cookiecutter.project_slug}}/.github/cookiecutter.json#L40

Yeah It probably makes sense to no longer ask for 'laborHours'. That way the estimate is being generated the same way for all the repos

Could you do this removal in this PR?

Tested this and it works accordingly! Some changes needed for the output and project cleanup.
With this, should we remove asking about laborHours from the cookiecutter prompts? https://github.com/DSACMS/repo-scaffolder/blob/dev/tier4/{{cookiecutter.project_slug}}/.github/cookiecutter.json#L40

Yeah It probably makes sense to no longer ask for 'laborHours'. That way the estimate is being generated the same way for all the repos

Could you do this removal in this PR?

For sure I just removed the prompts in the cookiecutter.json and code.json prompts.

Oops jk just saw you did. LGTM 🚢

No worries lol


Making IcedWeb-Tea optional for JDK 8u Windows MSI Installer

Check whether ICEDTEAWEB_DIR exists before creating the jdk8u MSI installer.
Update GitHub action to test this change & Refactor the code format.

Can we see somewhere the execution of github action ?

ok I have found the result :)

Can we see somewhere the execution of github action ?

ok I have found the result :)

Will merge post release.

Will merge post release.


Update codecov config

It seems the previous config was still using a tokenless config

Fixed this based on https://docs.codecov.com/docs/github-2-getting-a-codecov-account-and-uploading-coverage


Highlights brackets ('<' and '>') correctly.

I wrote a patch to highlight '<' and '>' correctly.

Could you please rebase this on master?

Not sure whatever happened to this issue, closing due to age and lack of activity.
Happy to revisit the issue if others feel the need.


Made the necessary changes.

Awesome!
Thanks for contributing @lolzone13.
Merging this

Awesome!
Thanks for contributing @lolzone13.
Merging this


Add IFNOTHASIMAGE Token

To allow show a default image when we don't have event image
This solve #42

:shipit:


update contributors

What is the purpose of the change
Update contributors. Add github ID:caojiele.
Brief changelog
docs/en-us/developers/developers_dev.md
docs/zh-cn/developers/developers_dev.md
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Test your code locally by running docsite start, and make sure it works as expected.
[ ] Make sure no files under build directory is added.
[ ] If this contribution is large, please follow the Software Donation Guide.

Please do not update the html files...

I change my before came back, but if there is always a line.

You should not commit the html files. Please check the README files.

You should not commit the html files. Please check the README files.

Yes, Before actually have altered, but they are changed back, now has the submit any changes.


Multi dependency

This is proposed fix for #18. This makes dependencies as lists instead of attribute sets to allow for multiple dependencies of the same name (with different targets). Admittedly this is not a pretty solution and the generated Cargo.nix files have quite a few more lines.
Another option could have been to keep dependencies as attribute sets but make the value a list if there are multiple versions like this:
"miniz_oxide" = [
  {
    packageId = "miniz_oxide 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)";
    target = ((target."arch" == "x86_64"));
  }
  {
    packageId = "miniz_oxide 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)";
    optional = true;
  }
];

which I've written the nix to make work but I grimaced when I went to edit the template. Maybe it's not so bad or there's another way?

This is beautiful. I tried to take a shot at this today myself but gave up pretty quickly, then I found this.
Another potential solution, which is probably worse, would be to change optional from the simple boolean that it is now, to rather be able to specify a list of targets on which it is or isn't optional. That way one can merge something like
miniz_oxide = { version = "0.3.2", optional = true}

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
miniz_oxide = "0.3.2"

into
"miniz_oxide" = {
  packageId = "miniz_oxide 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)";
  optional = !((target."arch" == "wasm32") && (!(target."os" == "emscripten")));
};

This, however, seems to be complicated as the cfgs parsing is actually invoked from inside the tera templates as far as I can see.

I am so sorry at not getting back to you on this!  This has been lingering for ages and another contributor had a go. I have to wrap my head around this problem first and
I had a bunch of things in my queue and I decided to get ahead with a crate2nix release first. I cannot make promises when I get to this but it would be surprising if it were before next weekend :(

Thanks a lot, this was a great change.


 can't be used before on the page before the template is registered.

I attempted to create a codepen that used code-input. I included Prismjs and code-input with the External Scripts option in settings, rather than including them in the HTML like your demo.
I placed the registerTemplate call in the JS editor pane. Unfortunately Codepen places your custom javascript as the last

This should hopefully solve the issue.


Index out of bounds error when a col has all different value

Hi
I find a issue in datacleaner. When I use this tool to deal with my dataset, it generates a index out of bounds error. I check the code and I find this row in function autoclean:
input_dataframe[column].fillna(input_dataframe[column].mode()[0], inplace=True)

when a col has no same value, the mode will return empty, so the index will out of bound.
I think this is the reason, could you confirm it. Thank you!

Can you please share a minimal example that reproduces this issue?

Add data.csv like this for example:
a,b,c,d
b,b,b,b
c,c,c,c
a,a,a,a
and test.py like this:
from datacleaner import autoclean
import pandas as pd

raw_data = pd.read_csv("data.csv")
clean_data = autoclean(raw_data)
clean_data.to_csv("new_data.csv", sep=',', index=False)

and execute it and get the error like this:
ly@ly-VirtualBox:/tmp$ python test.py
Traceback (most recent call last):
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 100, in f
    result = alt(values, axis=axis, skipna=skipna, **kwds)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 319, in nanmedian
    values = values.astype('f8')
ValueError: could not convert string to float: 'a'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 103, in f
    result = alt(values, axis=axis, skipna=skipna, **kwds)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 319, in nanmedian
    values = values.astype('f8')
ValueError: could not convert string to float: 'a'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ly/anaconda3/lib/python3.5/site-packages/datacleaner/datacleaner.py", line 77, in autoclean
    input_dataframe[column].fillna(input_dataframe[column].median(), inplace=True)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/generic.py", line 5310, in stat_func
    numeric_only=numeric_only)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/series.py", line 2245, in _reduce
    return op(delegate, skipna=skipna, **kwds)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 44, in _f
    return f(*args, **kwargs)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/nanops.py", line 111, in f
    raise TypeError(e)
TypeError: could not convert string to float: 'a'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/indexes/base.py", line 1980, in get_value
    tz=getattr(series.dtype, 'tz', None))
  File "pandas/index.pyx", line 103, in pandas.index.IndexEngine.get_value (pandas/index.c:3332)
  File "pandas/index.pyx", line 111, in pandas.index.IndexEngine.get_value (pandas/index.c:3035)
  File "pandas/index.pyx", line 159, in pandas.index.IndexEngine.get_loc (pandas/index.c:4018)
  File "pandas/hashtable.pyx", line 303, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6610)
  File "pandas/hashtable.pyx", line 309, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6554)
KeyError: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 6, in <module>
    clean_data = autoclean(raw_data)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/datacleaner/datacleaner.py", line 85, in autoclean
    input_dataframe[column].fillna(input_dataframe[column].mode()[0], inplace=True)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/core/series.py", line 583, in __getitem__
    result = self.index.get_value(self, key)
  File "/home/ly/anaconda3/lib/python3.5/site-packages/pandas/indexes/base.py", line 1986, in get_value
    return tslib.get_value_box(s, key)
  File "pandas/tslib.pyx", line 777, in pandas.tslib.get_value_box (pandas/tslib.c:17017)
  File "pandas/tslib.pyx", line 793, in pandas.tslib.get_value_box (pandas/tslib.c:16774)
IndexError: index out of bounds

Merged the PR - thanks for your help!

datacleaner v0.1.5 has your changes.

Hi, just want to check in, does this issue solved? I have an exact bug as yours, how did you address it in the end? Many thanks! @fndjjx


dragleave event?

Is it possible to get dragleave (onLeave) event?

Nope.

Try leave-enter branch.
http://jsbin.com/muzomil/edit?js,output

@RubaXa Why not merge to main branch?

I may find it. but Im very lazy to pack it...


decreaseExpirationBySec is being used as miliseconds

Describe the bug
The variable name and documentation imply that this is use as seconds but the comparisons in the code are against milliseconds values.
Use cases:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/be84e3d5515aa87a60b05ff9a0d843c472319bdd/projects/lib/src/oauth-service.ts#L2427
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/be84e3d5515aa87a60b05ff9a0d843c472319bdd/projects/lib/src/oauth-service.ts#L2271
We either fix the code or documentation. Probably less breaking change to fix the two usages.

Just spent few hours and @wawyed is completely right

hi @manfredsteyer, it looks like this should have been ms and not seconds. What do you think?


Cannot run hello-world container on Raspberry Pi 3 model B

Description
After installation, while running hello-world container.

Steps to reproduce the issue:

Follow the installation guide at https://docs.docker.com/engine/installation/linux/debian/
Run sudo docker run hello-world

Describe the results you received:
pi@meta:~ $ sudo docker run hello-world
panic: standard_init_linux.go:175: exec user process caused "exec format error" [recovered]
	panic: standard_init_linux.go:175: exec user process caused "exec format error"

goroutine 1 [running, locked to thread]:
panic(0x335e30, 0x56e47280)
	/usr/local/go/src/runtime/panic.go:481 +0x330
github.com/urfave/cli.HandleAction.func1(0x56e9f958)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x328
panic(0x335e30, 0x56e47280)
	/usr/local/go/src/runtime/panic.go:443 +0x448
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization.func1(0x56e9f5e0, 0x56dca308, 0x56e9f668)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:259 +0x13c
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization(0x56e44360, 0x4641f4b8, 0x56e47280)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:277 +0x498
main.glob.func8(0x56e561e0, 0x0, 0x0)
	/go/src/github.com/opencontainers/runc/main_unix.go:26 +0x58
reflect.Value.call(0x2eb380, 0x3f26c8, 0x13, 0x364638, 0x4, 0x56e9f918, 0x1, 0x1, 0x0, 0x0, ...)
	/usr/local/go/src/reflect/value.go:435 +0xeb4
reflect.Value.Call(0x2eb380, 0x3f26c8, 0x13, 0x56e9f918, 0x1, 0x1, 0x0, 0x0, 0x0)
	/usr/local/go/src/reflect/value.go:303 +0x84
github.com/urfave/cli.HandleAction(0x2eb380, 0x3f26c8, 0x56e561e0, 0x0, 0x0)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:487 +0x230
github.com/urfave/cli.Command.Run(0x366a58, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3d0ad0, 0x51, 0x0, ...)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/command.go:191 +0xcd0
github.com/urfave/cli.(*App).Run(0x56e30240, 0x56e12050, 0x2, 0x2, 0x0, 0x0)
	/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:240 +0x84c
main.main()
	/go/src/github.com/opencontainers/runc/main.go:137 +0xbb4

Describe the results you expected:
Hello from Docker!
This message shows that your installation appears to be working correctly.
[...]
Output of docker version:
Client:
 Version:      1.12.5
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   7392c3b
 Built:        Fri Dec 16 03:20:35 2016
 OS/Arch:      linux/arm

Server:
 Version:      1.12.5
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   7392c3b
 Built:        Fri Dec 16 03:20:35 2016
 OS/Arch:      linux/arm

Output of docker info:
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 4
Server Version: 1.12.5
Storage Driver: devicemapper
 Pool Name: docker-179:2-134157-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: ext4
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 515.2 MB
 Data Space Total: 107.4 GB
 Data Space Available: 13.35 GB
 Metadata Space Used: 1.208 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.90 (2014-09-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.38-v7+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 925.5 MiB
Name: meta
ID: YZNI:JOJG:FNGF:MIL2:NCY6:A2SG:VYLI:MVFU:VY2T:VUTZ:VTLF:MH6X
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
I'm running docker-engine Raspberry Pi 3 model B.
Uname: Linux meta 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux

Something similar happen with docker 1.12.2 on Fedora Server 25 for ARM.
Client:
 Version:         1.12.2
 API version:     1.24
 Package version: docker-common-1.12.2-5.git8f1975c.fc25.armv7hl
docker-common-1.12.5-1.git6009905.fc25.armv7hl
 Go version:      go1.7.1
 Git commit:      8f1975c/1.12.2
 Built:
 OS/Arch:         linux/arm

Server:
 Version:         1.12.2
 API version:     1.24
 Package version: docker-common-1.12.2-5.git8f1975c.fc25.armv7hl
docker-common-1.12.5-1.git6009905.fc25.armv7hl
 Go version:      go1.7.1
 Git commit:      8f1975c/1.12.2
 Built:
 OS/Arch:         linux/arm

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.12.2
Storage Driver: devicemapper
 Pool Name: docker-179:4-7031042-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 118.8 MB
 Data Space Total: 107.4 GB
 Data Space Available: 957.7 MB
 Metadata Space Used: 778.2 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 957.7 MB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.136 (2016-11-05)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: overlay bridge null host
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Security Options: seccomp selinux
Kernel Version: 4.8.6-300.fc25.armv7hl
Operating System: Fedora 25 (Server Edition)
OSType: linux
Architecture: armv7l
Number of Docker Hooks: 0
CPUs: 4
Total Memory: 970 MiB
Name: localhost.localdomain
ID: Y3IJ:NIVU:X5UU:4CPF:PBQM:42SK:2UIH:VMFW:TKLS:J6DT:L3OX:GX3U
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 <IP_ADDRESS>/8
Registries: docker.io (secure)

Unable to find image 'docker/compose:1.9.0' locally
Trying to pull repository docker.io/docker/compose ...
sha256:0e6c00cf72b8e472f22c23850b3095a488f296a4c1aebbe112dc5537f05e4f25: Pulling from docker.io/docker/compose
3690ec4760f9: Pull complete
859748e15ac4: Pull complete
732b292049b6: Pull complete
fbd985eb0de8: Pull complete
fa2d81037e59: Pull complete
b2057161a631: Pull complete
Digest: sha256:0e6c00cf72b8e472f22c23850b3095a488f296a4c1aebbe112dc5537f05e4f25
Status: Downloaded newer image for docker.io/docker/compose:1.9.0
panic: standard_init_linux.go:175: exec user process caused "exec format error" [recovered]
	panic: standard_init_linux.go:175: exec user process caused "exec format error"

goroutine 1 [running, locked to thread]:
panic(0x2feec0, 0x96d9f580)
	/usr/lib/golang/src/runtime/panic.go:500 +0x33c
github.com/urfave/cli.HandleAction.func1(0x96de996c)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x290
panic(0x2feec0, 0x96d9f580)
	/usr/lib/golang/src/runtime/panic.go:458 +0x454
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization.func1(0x96de9600, 0x96d1c600, 0x96de9680)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:259 +0x100
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization(0x96d4a6c0, 0x45e250, 0x96d9f580)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:277 +0x420
main.glob..func8(0x96d881e0, 0x0, 0x0)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/main_unix.go:26 +0x58
reflect.Value.call(0x2e2250, 0x35b910, 0x13, 0x325485, 0x4, 0x96de992c, 0x1, 0x1, 0x0, 0x0, ...)
	/usr/lib/golang/src/reflect/value.go:434 +0xd68
reflect.Value.Call(0x2e2250, 0x35b910, 0x13, 0x96de992c, 0x1, 0x1, 0x0, 0x0, 0x0)
	/usr/lib/golang/src/reflect/value.go:302 +0x84
github.com/urfave/cli.HandleAction(0x2e2250, 0x35b910, 0x96d881e0, 0x0, 0x0)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:487 +0x1d0
github.com/urfave/cli.Command.Run(0x325655, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x336d32, 0x51, 0x0, ...)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/command.go:191 +0xc10
github.com/urfave/cli.(*App).Run(0x96d7e240, 0x96d0c090, 0x2, 0x2, 0x0, 0x0)
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:240 +0x798
main.main()
	/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/main.go:137 +0xb1c

Linux localhost.localdomain 4.8.6-300.fc25.armv7hl #1 SMP Tue Nov 1 14:46:32 UTC 2016 armv7l armv7l armv7l GNU/Linux

The images you are running are not compiled for arm. Try docker run
armhf/hello-world
On 21 Dec 2016 4:22 a.m., "Giuseppe Roberti"<EMAIL_ADDRESS>wrote:

Something similar happen with docker 1.12.2 on Fedora Server 25 for ARM.
Client:
Version:         1.12.2
API version:     1.24
Package version: docker-common-1.12.2-5.git8f1975c.fc25.armv7hl
docker-common-1.12.5-1.git6009905.fc25.armv7hl
Go version:      go1.7.1
Git commit:      8f1975c/1.12.2
Built:
OS/Arch:         linux/arm
Server:
Version:         1.12.2
API version:     1.24
Package version: docker-common-1.12.2-5.git8f1975c.fc25.armv7hl
docker-common-1.12.5-1.git6009905.fc25.armv7hl
Go version:      go1.7.1
Git commit:      8f1975c/1.12.2
Built:
OS/Arch:         linux/arm
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.12.2
Storage Driver: devicemapper
Pool Name: docker-179:4-7031042-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 118.8 MB
Data Space Total: 107.4 GB
Data Space Available: 957.7 MB
Metadata Space Used: 778.2 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 957.7 MB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use --storage-opt dm.thinpooldev to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.136 (2016-11-05)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: overlay bridge null host
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Security Options: seccomp selinux
Kernel Version: 4.8.6-300.fc25.armv7hl
Operating System: Fedora 25 (Server Edition)
OSType: linux
Architecture: armv7l
Number of Docker Hooks: 0
CPUs: 4
Total Memory: 970 MiB
Name: localhost.localdomain
ID: Y3IJ:NIVU:X5UU:4CPF:PBQM:42SK:2UIH:VMFW:TKLS:J6DT:L3OX:GX3U
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
<IP_ADDRESS>/8
Registries: docker.io (secure)
Unable to find image 'docker/compose:1.9.0' locally
Trying to pull repository docker.io/docker/compose ...
sha256:0e6c00cf72b8e472f22c23850b3095a488f296a4c1aebbe112dc5537f05e4f25: Pulling from docker.io/docker/compose
3690ec4760f9 http://docker.io/docker/compose3690ec4760f9: Pull complete
859748e15ac4: Pull complete
732b292049b6: Pull complete
fbd985eb0de8: Pull complete
fa2d81037e59: Pull complete
b2057161a631: Pull complete
Digest: sha256:0e6c00cf72b8e472f22c23850b3095a488f296a4c1aebbe112dc5537f05e4f25
Status: Downloaded newer image for docker.io/docker/compose:1.9.0
panic: standard_init_linux.go:175: exec user process caused "exec format error" [recovered]
panic: standard_init_linux.go:175: exec user process caused "exec format error"
goroutine 1 [running, locked to thread]:
panic(0x2feec0, 0x96d9f580)
/usr/lib/golang/src/runtime/panic.go:500 +0x33cgithub.com/urfave/cli.HandleAction.func1(0x96de996c)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x290
panic(0x2feec0, 0x96d9f580)
/usr/lib/golang/src/runtime/panic.go:458 +0x454github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization.func1(0x96de9600, 0x96d1c600, 0x96de9680)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:259 +0x100github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization(0x96d4a6c0, 0x45e250, 0x96d9f580)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:277 +0x420
main.glob..func8(0x96d881e0, 0x0, 0x0)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/main_unix.go:26 +0x58
reflect.Value.call(0x2e2250, 0x35b910, 0x13, 0x325485, 0x4, 0x96de992c, 0x1, 0x1, 0x0, 0x0, ...)
/usr/lib/golang/src/reflect/value.go:434 +0xd68
reflect.Value.Call(0x2e2250, 0x35b910, 0x13, 0x96de992c, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/lib/golang/src/reflect/value.go:302 +0x84github.com/urfave/cli.HandleAction(0x2e2250, 0x35b910, 0x96d881e0, 0x0, 0x0)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:487 +0x1d0github.com/urfave/cli.Command.Run(0x325655, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x336d32, 0x51, 0x0, ...)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/command.go:191 +0xc10github.com/urfave/cli.(*App).Run(0x96d7e240, 0x96d0c090, 0x2, 0x2, 0x0, 0x0)
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/Godeps/_workspace/src/github.com/urfave/cli/app.go:240 +0x798
main.main()
/builddir/build/BUILD/docker-8f1975c49713e745856f5861e9602c36ed0bcaa6/runc-fa7507b73f54fca716eef4f78d3ea2dc9307f7f9/main.go:137 +0xb1c
Linux localhost.localdomain 4.8.6-300.fc25.armv7hl #1
https://github.com/docker/docker/issues/1 SMP Tue Nov 1 14:46:32 UTC
2016 armv7l armv7l armv7l GNU/Linux
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/29617#issuecomment-268432164,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdcPG-b0Vxhhw7-FbvBwa7_UXsfxz8jks5rKKmRgaJpZM4LSfw3
.

Thank you, that works. It is ugly, but works.

So I guess that armhf containers cannot start FROM non-armhf containers, is it right ?

@piribes Correct. There is no virtualization layer.
Closing since this is a non-issue.

Hey, I do a lot of work with ARM and the Raspberry Pi. Have a read of this - and see if it's useful too. http://blog.alexellis.io/5-things-docker-rpi/

@cpuguy83 @justincormack Thanks. Is it possible to get an an error message, when we try to execute containers for a different architecture ?

@alexellis Thank you.

There is an "official" armhf/hello-world image; can you try sudo docker run armhf/hello-world ?

@thaJeztah It works perfectly, thank you

For googlers check the Sha-Bang on your Entrypoint and CMD scripts.
#!/bin/bash

See also armhf/alpine and blog.alexellis.io for Pi + Docker tutorials.

@IanEdington what's the connection to arm vs. x86 images?

@alexellis This issue ranks high in google for the standard_init_linux.go:175: exec user process caused "exec format error" error. Forgetting the Sha-Bang is a common error. I just mentioned it here for people getting to this page by google searching for that error, no other reason. Sorry for the noise.

Does that means all docker images need to rebuild in arm while using docker on RPI

@LiJohnson Some official images now support multi-arch in the main image, but generally yes you do need the correct image for the platform.

@LiJohnson Some official images now support multi-arch in the main image, but generally yes you do need the correct image for the platform.

So, @cpuguy83 , does this mean, nowadays, for example on arm64 platform, we could directly use docker pull ubuntu:latest?

Yes.

you can find which architectures are supported for each tag on the tags tab on docker hub; https://hub.docker.com/_/ubuntu?tab=tags

I also wrote a tool to inspect the raw registry objects, which will list the platforms for you: https://github.com/cpuguy83/zapp
Don't expect me to debug issues for you, though 😇 👼


instanceof doesn't work on non-any types

Hey Typescript!
Our library is trying to fully incorporate the union type feature.  However when using it, when differentiate between the two types, it seems that the most natural way to determine the type through instanceof.  However, it seems that the compiler complains if a non-any is passed in as an argument.  Is this a bug or what's the best way to differentiate between the given union types

Are you using unions of primitive types? You should use typeof for that. Otherwise instanceof should work in type guards for object types. Can you post the code you're having issue with?

Here's the code example
https://github.com/palantir/plottable/blob/removeDatasetUnion/src/components/plots/abstractPlot.ts#L329
Notice that I'm currently forced to any-cast the variable so that the instanceof usage can compile

Your type guard syntax isn't quite right. You don't want to parenthesize arguments to typeof and instanceof or else it won't be recognized as type guard. This stripped down copy works without errors and no casts required:
class Dataset { data() {} }

function  removeDataset(datasetIdentifier: string | Dataset | any[]) {
  var key: string;
  if (typeof datasetIdentifier === "string") {
    key = datasetIdentifier;
  } else {
    var index = -1;
    if (datasetIdentifier instanceof Dataset) {
      var datasetArray = this.datasets();
      index = datasetArray.indexOf(datasetIdentifier);
    } else if (datasetIdentifier instanceof Array) {
      var dataArray = this.datasets().map(d => d.data());
      index = dataArray.indexOf(datasetIdentifier);
    }
    if (index !== -1) {
      key = this._datasetKeysInOrder[index];
    }

  }
}

I tried to change the code accordingly and I still get
"The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."
`
public removeDataset(datasetIdentifier: string | Dataset | any[]): AbstractPlot {
var key: string;
if (typeof(datasetIdentifier) === "string") {
key =  datasetIdentifier;
} else if (typeof (datasetIdentifier) === "object") {
    var index = -1;
    // HACKHACK: forced to any cast to use instanceof
    if (datasetIdentifier instanceof Dataset) {
      var datasetArray = this.datasets();
      index = datasetArray.indexOf(<Dataset> datasetIdentifier);
    } else if (datasetIdentifier instanceof Array) {
      var dataArray = this.datasets().map(d => d.data());
      index = dataArray.indexOf(<any[]> datasetIdentifier);
    }
    if (index !== -1) {
      key = this._datasetKeysInOrder[index];
    }

  }

  return this._removeDataset(key);
}

`

Oh got it.  Thanks!


Builder-Overview CSS alterations

Add spanner icon to markers
Change colour of markers

Contact Us - left align
Component Headers - add padding to divs

@sohilpandya seeing as you're such a map pro now, can you customise the markers (colour, icon and animation off if possible)


Limit of list

I have a websocket that receives new data every 0.5 seconds
If a user is on the page for lets say 5 minutes, that is 600 items in the list stored on Vuex.
Is there a way to set a maximum on the # of records stored?
Edit: Something like a max TTL would work too

This is not currently built in, nor do I have plans to build it.  You can accomplish something like this pretty easily using a setInterval in your store, though.  Or you could use a Vue watcher on the ids.length property in the service's data store and when a new one comes in, drop an older one.


Rails 3.1.1 support in overall

It seems many of the functions died in 3.1.1. I could make work only the basics. Only "routes:" translations works for me. And the url helpers url generation gives back the normal default rails url, witch is just not good.
I am not absolutely sure about the problems - can you check the overall rails 3.1 compatibility? It would be great! It is a really cool project!

Hey Attila,
Ok I haven't tested it yet on Rails 3.1.
I don't have a lot of free time currently but will try to test it soon.
Otherwise if anyone want to try to fix it, will be much appreciated :)
Thanks!
2011/11/7 Attila Juhsz <
<EMAIL_ADDRESS>
It seems many of the functions died in 3.1.1. I could make work only the
basics. Only "routes:" translations works for me. And the url helpers url
generation gives back the normal default rails url, witch is just not good.
I am not absolutely sure about the problems - can you check the overall
rails 3.1 compatibility? It would be great! It is a really cool project!

Reply to this email directly or view it on GitHub:
https://github.com/kwi/i18n_routing/issues/31

Hey!
Thanks for the answer! I am curious how it will work.
I could look at the code, but the Rails routing implementation is quite new to me, so it would take much more time to find out how it should work. But if you write a skinny wiki page how to test it, I'll do it!
Attila


No Typescript Feature?

So, I tried using discord-gamecord for my discord js v14 bot using typescript, but... I found out that there are no index.d.ts in the project files of discord-gamecord, so there is no way to provide a typescript IntelliSense, please add one!
Thanks,
ContentGamer.

You could also try #16
Although that is 2 versions behind the version in npm because the author of the repo didn't push the changes to the repo


systemd - ZK starting up before the network is ready and available after a server reboot

In ansible-zookeeper/templates/zookeeper.service.j2
It might be a good idea to change the following:
[Unit]
Description=ZooKeeper

To:
[Unit]
Description=ZooKeeper
After=network.target
Wants=network.target

Everything works fine with a server that is already up and running, but in the case of rebooting a server, ZK starts too early, before the network is even available, leading to errors about not being able to resolve other cluster member hostnames, or timing out while trying to reach them.

@Darwiner you made a valid point, why did you close the issue (without any referenced PR) ?


Please stop changing things!

Twas using this in production, couldnt figure out why the weekly autobuild was failing till I looked at the logs....
I dont think anyone really cares if the method is called UpdatesChan as opposed to GetUpdatesChan, or Send vs SendMessage, but I can say that if every time I git pull things break because someone likes one naming scheme better I would be looking for a different library.
Some ideas going forward:

Create new methods and deprecate old ones. A fancy way of doing this is to make the old methods print something to STDERR, that cannot be disabled without moving to the new methods. Gently lets users know without breaking things.
Branch / fork to new repository.
Document procedures for how methods will be removed/added, and provide api-lock guarantees.

<3

I apologize for making breaking changes that were so minor.
I will definitely take your suggestions into consideration if the need to change things arrises again, although I do not anticipate anything soon.


Reversing Path of Exiles protocol

https://www.reddit.com/r/REGames/comments/8j8fc2/reversing_path_of_exiles_protocol/

Added! Thanks for the contribution.


Update parse_results.cmd

to collect 9-nines from log file if supported

Hi @YT-Jin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;


[Bug] Fail to create table with partition description with MAXVALUE in Greenplum like syntax

Apache Cloudberry version
1.6.0
What happened
Hello, I'm currently testing cb with the bootcamp 000-cbdb-sandbox docker file.
When I run a query similar as the below one:
gpadmin=# CREATE TABLE test_partition (
    name character varying,
    last_modified_date timestamp without time zone
)
WITH (appendoptimized=true, orientation=column, compresslevel=1)
DISTRIBUTED BY (name)
PARTITION BY RANGE (last_modified_date)
(
    PARTITION partition_202411 START ('2024-11-01 00:00:00') INCLUSIVE END ('2024-12-01 00:00:00') EXCLUSIVE,
    PARTITION partition_max START ('2024-12-01 00:00:00') INCLUSIVE END (MAXVALUE)
);

I got the following error:
ERROR:  cannot use column reference in partition bound expression
LINE 10: ...n_max START ('2024-12-01 00:00:00') INCLUSIVE END (MAXVALUE)

Split it to another query works fine:
CREATE TABLE partition_max partition of test_partition for values from ('2024-12-01 00:00:00') to (MAXVALUE);

Seems like MAXVALUE in the first query is parsed to a column ref. Seems like a bug here?
What you think should happen instead
Correctly process this kind of query without error, be more compatible with Greenplum syntax
How to reproduce
run such query:
CREATE TABLE test_partition (
    name character varying,
    last_modified_date timestamp without time zone
)
WITH (appendoptimized=true, orientation=column, compresslevel=1)
DISTRIBUTED BY (name)
PARTITION BY RANGE (last_modified_date)
(
    PARTITION partition_202411 START ('2024-11-01 00:00:00') INCLUSIVE END ('2024-12-01 00:00:00') EXCLUSIVE,
    PARTITION partition_max START ('2024-12-01 00:00:00') INCLUSIVE END (MAXVALUE)
);

Operating System
cbdb-1.6.0:rockylinux9 docker image running on Debian GNU/Linux 9 (stretch)
Anything else
Every time
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Reproduce it on main branch,  besides the MAXVALUE,  the MINVALUE  used in sub partition also causes an error:
CREATE TABLE test_partition2 (
    name character varying,
    last_modified_date timestamp without time zone
)
WITH (appendoptimized=true, orientation=column, compresslevel=1)
DISTRIBUTED BY (name)
PARTITION BY RANGE (last_modified_date)
(
    PARTITION partition_202411 START (MINVALUE) INCLUSIVE END ('2024-12-01 00:00:00') EXCLUSIVE,
    PARTITION partition_max START ('2024-12-01 00:00:00') INCLUSIVE END (MAXVALUE)
);
ERROR:  cannot use column reference in partition bound expression
LINE 9:     PARTITION partition_202411 START (MINVALUE) INCLUSIVE EN..

The value of right boundary is always treat as exclusive. What's the exact meaning of less than maxvalue? If we want to set a partition for the rest values, default partition could be considered.

The value of right boundary is always treat as exclusive. What's the exact meaning of less than maxvalue?

Good point.
INCLUSIVE in introduced by Greenplum, INCLUSIVE END (MAXVALUE) should be reported with some WARNING or error.


unicode file names not handled properly by HydroShare

@martinseul @dtarb @sblack-usu
The plot thickens as I study the Unicode problem, as manifest in cuahsi-dev-2, resource<PHONE_NUMBER>f24fa5a89c096d67b55e7f, directory data/contents, filename Appendix H â Monitoring and Assessment of Critical Thermal Dynamics in Upper Middle Fork of the John Day River, 2008-2016.pdf.
The Unicode character in this filename is â.
The full story of this file's ingestion:

Windoze created a zipfile with Unicode in it.
Linux actually understood the zipfile Unicode. (verification: stack overflow post: https://unix.stackexchange.com/questions/38055/utf-8-filenames)
iRODS actually understood the zipfile Unicode. (verification: iRODS team)
The file was correctly ingested into Django.

So, what's the problem?

 This includes public URLS that a user would use to download the file, as well as private URLs that invoke REST AJAX features. Thus, almost any action directed at that specific file fails, due to Unicode encoding errors in the REST request!

Thus, the real solution is to fix the URLs, not the file. This must be a systematic solution in which all URLs referring to files or file paths get fixed, or there will be some case that doesn't work. Affected regions of code include large file download, resource landing page, etc. URLs listed to reference thsi file in resourcemetadata.xml, resourcemap.xml, and all composite resource metadata files are also invalid.

A few background notes

Linux only understands Unicode in the UTF-8 format. Other formats are not understood.
There is a standard escape sequence for encoding UTF-8 and a library function somewhere to do it. I need to locate that function.
Running this library function on a filename not containing unicode does nothing.
Thus running the function on every URL makes sense.

As an additional test case, here is a zip file provided by a user a while back that was a problem.
Filenames.zip
It contains several files with unicode character names.  If I attempt to unzip in hydroShare today I get a folder with only one file, i.e. several of the files are not extracted.
Will the solution suggested resolve this.

@dtarb This was a thorny problem to figure out, because 'utf-8' is not a true type in python, it is a subtype of the python type string. A string can be ASCII or utf-8 depending upon its content.  So, routines that take ASCII or Unicode presume that all string values are ASCII, and balk at special characters that are not ASCII in those string values.

@cuahsimarko @martinseul @sblack-usu I've completely changed my mind on how to address this:

Linux supports unicode in filenames.
Linux terminals support utf-8 in filenames.
Linux converts ls output from unicode to utf-8 automagically.
iRODS ls interfaces return utf-8 that can be converted to unicode.

Thus the path of least resistance is to

fix directory listings to report filenames in unicode rather than ASCII or utf-8, in django_irods.
fix filename processing to completely support unicode for all operations. This means avoiding ASCII-only operations.
fix the UI to html-encode unicode for UI operations.
fix URLs for filenames by REST escaping them.

Then the rest-escape version will be converted to unicode, which will match the unicode version of the ls command.
The bottom line is that inside hydroshare, all filenames are unicode. Outside, they're converted to whatever they need to be.

Related to #2538 and #3024
Discussed that this is a complex issue that would need to be carefully worked out.

@alvacouch and @dtarb The only issue that I can see is with the "Get File URL" which shows the URL not properly encoded as shown in this screenshot:

The file paths are properly encoded in resourcemap.xml and aggregation map xml files.  I will be fixing url for the 'Get File URL'.