text:
Metadata and screenshots for multiple "Branded" Targets of the same underlying App

I am using the setup described in the  FAQs using dotenv for multiple targets (see also issue #88 ).
However, I am still having trouble to figure out how to handle screenshots and metadata. I need to store them in target-specific folders like TARGET_NAME/screenshots or TARGET_NAME/metadata
I am setting the custom paths in the Fastfile like this:
    deliver(
      screenshots_path: ENV['SCREENSHOTS_PATH'],
      metadata_path: ENV['METADATA_PATH']
    )

Now that works. I'd prefer to declare them in the Deliverfile itself, but it does't seem to work with dotenv (or am I missing something?).
But the real issue is:
How can I download the initial metadata and screenshots from ITC to my custom folders?
For screenshots, there is an API deliver download_screenshots but I don't know how to make it use my custom paths.
For metadata, the only way to get them seems to be a deliver setup but then again how do I get it to use my custom paths!

deliver init will always just init the files in the current directory. There is no way to change this. You can easily write a script to clone everything somewhere into /tmp and then move the resulting files.

I was trying just that, but deliver setup requires user interaction. I didn't manage to set bundle id etc. via script.
I also tried pre generating the Deliverfiles but then deliver setup wouldn't run.
deliver download_screenshots should work however.
So from an API perspective I think it would make sense to expose an Interface download_metadata.
I think that should also resolve my issue.
What do you think?

Ok, I have a setup script for my app targets like this:
# iterate apps
apps.each do |app|
  app_name = app[:ProjectName]
  bundle_id = app[:id]

  # create Deliverfile
  out_file = File.new("#{app_name}/Deliverfile", "w")
  out_file.puts("app_identifier \"#{bundle_id}\"\nusername \"#{username}\"")
  out_file.close

  # load screenshots
  %x( cd "#{app_name}" && deliver download_screenshots && cd - )

  # TODO: load metadata
  # %x( cd "#{app_name}" && deliver download_metadata && cd - )
end

Works fine except of deliver download_metadata of course.
Any chance you would add that API?

@baarde sorry, no download_metadata planned

That's OK. I don't need it. 😉

Ok, too bad. Thanks anyway for your incredible work!
Why am I the only one with the "multiple branded targets" setup who is running into this issue...?
Help from someone who's been through this would be very much appreciated! What am I missing?
I'm looking at setting up Deliver 50+ times....

Don't laugh as I'm sure there is a better approach, but I used something like this to run through all my branded targets which get pushed to the App Store.
`echo "Setting up Deliver for all targets"
mkdir "x1";
cd x1;
deliver init -u "xxxxx@xxxx.com" -a "com.xxx.apps.x1";
cd ..
mkdir "x2";
cd x2;
deliver init -u "xxxxx@xxxx.com" -a "com.xxx.apps.x2.";
`
Hope that helps

Oh, I'm not laughing at all! That was exactly what I was looking for. I was messing around with deliver init but the options -u, -a were not obvious to me.
So I would still consider a download_metadata API to be the better option, but as for me this issue can be closed.

@deberle Glad it helped!

Hey everyone! I am going to close this issue for now as there has not been any activity for a while! Please feel free to reopen if necessary! :+1:

authors: KrauseFx baarde deberle ohwutup truth3


text:
feat: support project_directory for preview action (fixes #49)

this change introduces several improvements to the Branch Preview github action, aiming to specifically allow users to preview from a subdirectory, as is possible with the main actions. (closes #49 )
Changes

Add input for project_directory for preview/action.yml, matching the existing actions.

Input is optional and defaults to CWD (./)

Update fastly CLI to latest instead of hardcoded
add working-directory: ${{ inputs.project_directory }} for all preview action steps
fix: add FASTLY_API_TOKEN to environment for commands otherwise CLI output ignores --token and warns no profiles exist

This has been released in version 8 of this action 👍
https://github.com/fastly/compute-actions/releases/tag/v8

source: gharchive/pull-request

authors: JakeChampion NeilHanlon

repo: fastly/compute-actions

license: MIT

license_type: permissive

license_source: github-api


text:
fix: reduce memory usage by caching client getters when they are first called

Currently we will create new buffers/strings whenever any of the client getters are invoked, considering these never change for the duration of the application's lifetime, let's cache them so that we don't use up more memory than necessary. Currently you can use up all available memory just by reading event.client.tlsClientCertificate a couple times.

Currently you can use up all available memory just by reading event.client.tlsClientCertificate a couple times.

Does this PR definitely resolve this? Is that not a memory leak as opposed to caching issue? Or is the cause the GC running too infrequently to be able to resolve it?

Yes, this resolves the issue 👍
I do think we can also optimise our GC some more as well

repo: fastly/js-compute-runtime


text:
Re-organize documentation and website

Fixes #216 #248 #11
Attempt  to reorganize the documentation into a more useful form, specially for new users.  The current site has 2 main section of documentation: the API reference and the cookbook. The reference is built from text taken the module and package docstrings. The modules pages also list all functions and classes with their associated docstrings.  The cookbook is a collection of ..py files. There is no text explaining things and the output of the scripts is not shown.
I think the docs are missing:

Narrative documentation: text explaining where things are and how they work along with the source code examples.
Figures: there is practically no code accompanied by the figures of results produced.
Simple API reference: the specification of functions and classes is mixed with a lot of text. Sometimes you need to go through 3-4 pages to find the docs for a particular function. A better reference would list all functions and classes with links to their documentation (taken from the docstrings).

Both of these would make the package more friendly and attractive to new users.
Main changes:

Removed the old "Library Reference" section. It was replaced by an API reference (as specified above) and a User Guide (narrative documentation)
The API Reference lists all functions/classes from all modules and packages.  The page gets a bit big but it's very convenient to have it all in a single page. You can search with Ctrl+f. The modules of subpackages (gravmag, inversion, etc) are listed for now.
Pages for each function and class are automatically generated by autosummary
The User Guide is built from Jupyter notebooks in doc/userguide. This is better because we can include Mayavi figures and the user can download and run the code.
The User Guide has a page for each module/package. The idea is to have a description of what the module/package does and simple examples of every function/class in it. The examples should be simple and are meant to show what Fatiando can do. More complicated examples would be left for a Tutorial section.
The doc build runs the notebooks and converts to rst. This guarantees that the results are updated always. We could even plug in some doctesting here in the future.
I put a lateral navigation bar in most pages to help with navigation.
The Overview in the front page links to the User Guide sections.
The Guide and API link to each other.

I put a preview of the site on http://www.fatiando.org/tmp-docs/
Checklist:

[ ] Make tests for new code (at least 80% coverage)
[ ] Create/update docstrings
[ ] Include relevant equations and citations in docstrings
[ ] Docstrings follow the style conventions
[ ] Code follows PEP8 style conventions
[ ] Code and docs have been spellchecked
[ ] Include new dependencies in doc/install.rst, requirements.txt, and
README.rst
[ ] Documentation builds properly (run make docs locally)
[ ] Changelog entry (leave for last)

@mtb-za @birocoles @eusoubrasileiro @drandykass I would love some feedback on this.

I think that this is a really great idea.
Will see what I can come up with for narrative script examples.

@mtb-za thank you for the feedback. I'll start writing the user guide as soon as I get a change. I'll ask for feedback again when I have a draft.
Of course, any ideas/wants are welcome!

I'm going to split this into separate PRs for each change. This is too big and I'll end up never completing it this way. I'll post the PRs here when I open them.

https://github.com/spatialaudio/nbsphinx is probably the best way to use the notebooks for the userguide.

Love the new gallery.

ta fodástico! :+1:

@mtb-za @eusoubrasileiro thanks! This is the latest version http://www.fatiando.org/dev/gallery/index.html

Closing this in favor of incremental changes that have been made in other PRs.

authors: eusoubrasileiro leouieda mtb-za

repo: fatiando/fatiando

license_source: bigquery


text:
Library does not work in GitHub Actions

Hi there Fatih 👋🏼
So I'm not totally sure why, but if I run color.Yellow("HELLO") from inside GitHub Actions, no color is actually printed.
But if I use another library such as aurora/v3 and write fmt.Println(aurora.Sprintf(aurora.Magenta("OK?"))), a color is actually printed in the Actions UI.
I definitely prefer this library for its nice API :)
I'll try to dig into it more if I get some free time, but thought I'd bring it up in case anyone is curious to dig into this before me.
Thanks!

Hi @marwan-at-work
I assume it's due to the automatic color detection here:
https://github.com/fatih/color/blob/master/color.go#L20
Can you explicitly set it to false to bypass the check: color.NoColor = false  and try again?  The check is there to avoid mangling the input to a tool during a pipe operation.

Hi @marwan-at-work
I assume it's due to the automatic color detection here:
https://github.com/fatih/color/blob/master/color.go#L20
Can you explicitly set it to false to bypass the check: color.NoColor = false  and try again?  The check is there to avoid mangling the input to a tool during a pipe operation.

Yep, color.NoColor = false did the trick. Thank you for the quick response 🙌🏼
Added a quick PR to mention this in the README.
Hope you're well 👍🏼

Yep, color.NoColor = false did the trick. Thank you for the quick response 🙌🏼
Added a quick PR to mention this in the README.
Hope you're well 👍🏼

Thanks for the documentation in the Readme @marwan-at-work. Everything is fine on my end and I hope things are also going great for you :)

Thanks for the documentation in the Readme @marwan-at-work. Everything is fine on my end and I hope things are also going great for you :)

source: gharchive/issue

authors: fatih marwan-at-work

repo: fatih/color

license: mit


text:
Reporting Pokestops

This is more of a feature request than a bug report, but earlier versions of PokemonGo-Map also reported the locations of Pokestops, which was useful when planning outings. I can see that their geolocations are still included in the database (pogom.db's pokestop table).
Thanks,
...

Added in #362 u can use my fork if you want to.

repo: favll/pogom


text:
Unexpected behaviour of operators defined in different module

The following code works as expected (i.e. writes helloA to the console):
module A where

import FFI
import Prelude

infixr 1 ??, >=>

(??) :: a -> (a -> b) -> b
x ?? f = f x

(>=>) :: (a -> Fay b) -> (b -> Fay c) -> a -> Fay c
f >=> g =  \x -> f x >>= g

main :: Fay ()
main = do
  "helloA" ?? return >=> putStrLn

If I move the operators to another module
module Op where

import FFI

infixr 1 ??, >=>

(??) :: a -> (a -> b) -> b
x ?? f = f x

(>=>) :: (a -> Fay b) -> (b -> Fay c) -> a -> Fay c
f >=> g =  \x -> f x >>= g

then the code
module B where

import FFI
import Prelude
import Op

main :: Fay ()
main = do
  "helloB" ?? (return >=> putStrLn)

works too. But if I remove the parentheses around return >=> putStrLn the code stops working (nothing is printed to the console):
module C where

import FFI
import Prelude
import Op

main :: Fay ()
main = do
  "helloC" ?? return >=> putStrLn

I'm using fay-0.14.2.0 and compiling by:
fay --Wall --html-wrapper A.hs
fay --Wall --html-wrapper B.hs
fay --Wall --html-wrapper C.hs

Spring cleaning. Lack of activity, it's unlikely that this will happen. Fixity declarations are just too much work since it depends on both parsing and name resolution.

authors: bergmark radekm

repo: faylang/fay


text:
Error: "column with label 'xy' does not exists" since latest version 1.9.1 on

Since the latest version 1.9.1 I'm getting the following error on a dashboard including an enhanced table visualization after the login:
In computed column "col['cnt'], column with label 'cnt' does not exists.

In the visualization editor the table is working correct. I can then open the dashboard and from now on all is working fine. After logout/login the error appears again.

I tried the following without any luck:

recreate my tables
use col1 instead of col['xxx']
create new simple table (as in the screenshot) with just one computed value
clear browser cache / restart browser / different browser chrome and firefox

The error appears on all my enhanced table visualizations I'm using in production for a long time already.
After I open one visualization in the editor and close again (does not even have to be saved) the error is gone also for the other visualizations until you relogin.
Thanks for your support.

can you tell me:

what is your Kibana version?
what was the last plugin version you installed, that worked fine (without this issue) ?

what is your Kibana version?
1.8.0
what was the last plugin version you installed, that worked fine (without this issue) ?
1.9.1_7.7.1 (on Kibana 7.7.1)
when you speak about login/relogin, I guess you speak about Kibana authentication?
yes, logout and login again to Kibana.
The same error exist after I switch the space in Kibana without logout/login

I guess you reverse your two first answers?

To help me see where/when regression happened, could you tell me if you reproduce the issue with enhanced table v1.9.0?
And ideally, if you reproduce the issue with kibana 7.8.0?

Hi, @fbaligand, I've encountered the same issue.
The issue only occurs on visualizations and after investigations on inspection page I've found that there are no aggregations in the request.

what is your Kibana version?
Kibana 7.8.0, enhanced-table-1.9.1_7.8.0

what was the last plugin version you installed, that worked fine (without this issue)?
enhanced-table-1.9.0_7.6.2

@onDee, thanks for your feedback.
Well, it seems that issue exists since kibana 7.7 and is not tied to 1.9.1 version.
To check that, could you test 1.9.1 version with kibana 7.6.2?

Yes, it works with version enhanced-table-1.9.1_7.6.2

I did some more tests:
Working with version:

elasticsearch-7.7.1
kibana-7.7.1
enhanced-table-1.9.1_7.7.1.zip

Not working with version:

elasticsearch-7.8.0
kibana-7.8.0
enhanced-table-1.9.1_7.8.0.zip

You can reproduce this as follows:

Install the version above from download page
Install sample data (I used flight sample data)
Create a vizualization and add a computed column referencing the metric count value and save as eg. test

Create a new dashboard and add visualization to it and save as eg. test

Create a new space with manage space and give it a name

Switch to the new created space

Switch back to the default space

Open the dashboard you just created

with version 7.8.0 you will see the error

with version 7.7.1 no error occurs

Hope this helps and thanks a lot for your time and support on this topic*

@hoberhol
Thanks for your precious additional tests!
So it is now clear that the issue is tied to "add Kibana 7.8.0 support" commit.
I will investigate on it.

@hoberhol Do you have also problem with discovery mode in Kibana 7.8,0? Error in console: Cannot read property 'call' of undefined

I don't experience any problem with the discover function in Kibana 7.8.0. So far everything is working fine.
The mentioned problem only exists in conjuction with the enhanced table plugin.

@hoberhol thank you, I found out that was caused by the old version of chrome

Hi,
After investigation, I can say that:

I confirm (and reproduce) the bug
globally, the bug happens on Dashboard app, and does not happen on Visualize app.
the bug only happens on Kibana 7.8.0
the bug is caused by a Kibana core regression in v7.8.0. The 'toExpression' function defined on enhanced table visualization is removed by Kibana core, and so, the plugin can't initialize correctly and load configured buckets/metrics.
I opened an issue for that on Kibana repository:
https://github.com/elastic/kibana/issues/71384
In the meantime, I opened also a PR on Kibana repository to avoid the need of 'toExpression' function:
https://github.com/elastic/kibana/pull/71423
this PR has been merged and should be available in Kibana v7.8.1 or v7.8.2

So for now, I can only invite you either to wait for Kibana 7.8 fix, or to downgrade to Kibana v7.7.1.

Kibana 7.8.1 is released, but I didn't find this fix (71423) in the release notes.

Well, it is not on release notes.
But I can insure you that fix is included in kibana 7.8.1.
Proof is on this page:
https://github.com/elastic/kibana/commits/v7.8.1
You can see that “ [Visualizations] Pass 'aggs' parameter to custom request handlers” is part of v7.8.1 commits.
Thus, @fabiopipitone tested this morning and confirmed that enhanced table 1.9.1 works with kibana 7.8.1.
I will provide a package for kibana 7.8.1 as soon as I can.
But, in the meantime, you can just change kibana version in plugin’s package.json file, and install it on kibana 7.8.1 as is.

Hi Fabien!
I downloaded new versions Elasticsearch+Kibana 7.8.1 from elastic.co (Windows Zip files), changed the package.json to 7.8.1 and installed successfully, but the error persists. Maybe I forgot something,
should I do something additional? please your confirmation.
https://artifacts.elastic.co/downloads/kibana/kibana-7.8.1-windows-x86_64.zip
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.1-windows-x86_64.zip

Hi there,
this morning I actually tested it to check whether it would work with different types of aggregation and bucket splits and it did work.
I'll carry out some further tests ASAP (tonight most likely) to test other and more specific enhanced table features.
I'll let you know!

@guillermoc-infocorp
Sorry that you still experience some issue.
As @fabiopipitone, I did some tests this afternoon on dashboard app, and it worked fine.
Buckets and Metrics are loaded correctly.
That's why I just published package for Kibana 7.8.1:
https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.9.1/enhanced-table-1.9.1_7.8.1.zip
I invite you to test with that package on your installation. And I invite you to empty your browser cache, to avoid browser cache side effect.

@fbaligand
When I try with a new visualization and a new dashboard it automatically hides the aggr column. The test was made with simple "metric count" and a term aggr on a string field. When I change to another space and came back, it only shows one column: the count one. When I edit, I see both column.
After save&return, I see both ok.
With old visualizations, I still see the same error as in 7.8.0
Please let me know if you could replicate it.
Thanks!
Guillermo.

I just did some more tests, and you’re right, the bug is still there.
So the good news is that I identified and fixed the bug.
I will try to release 1.9.2 tomorrow with only one package for kibana 7.8.1

Excellent! thank you!

Hi all,
I'm glad to announce that enhanced-table 1.9.2 is out, with display on Dashboard app fixed!
https://github.com/fbaligand/kibana-enhanced-table/releases/tag/v1.9.1
Don't hesitate to download it, install it, test it and give feedback here to say it works as you expect! :)
BTW, there is also another minor bugfix that happened on Kibana 7.8.
Globally, I invite you to forget enhanced-table use with Kibana 7.8.0.
I will remove the package for 7.8.0 soon, as this bug is severe.

Hi @fbaligand  thanks for your notification!
is this the correct package?:
https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.9.2/enhanced-table-1.9.2_7.8.1.zip
(because in your post you write v1.9.1)
I've downloaded this (my link for 1.9.2) and is still hiding me all the buckets columns.
Also the original error still shows for old visualizations.
ES 7.8.1
Kibana 7.8.1
Enhanced-table-1.9.2
Last Chrome with empty caché
thanks in advance!
Guillermo.

Very sad to hear that.
And very surprised.
I made several tests with this version and I don’t have the errors you quote.

Hi all
I can confirm that the same issue as described in the beginning of this thread still exists with the follwowing versions:
ES 7.8.1
Kibana 7.8.1
Enhanced-table 1.9.2
Thanks a lot for your support on this one.
Hans

Hi there,
I confirm the issue's still there. During my first tests, being unaware of this opened issue, I didn't test the going forth and back to/from a new space and seeing what happens, hence when I noticed it was working with 7.8.1 in the Dashboard section I thought the bug was fixed.
Unfortunately I tested it with the 7.8.1 stack and release 1.9.2 and the problem's still there, as you can see from the following

Fabio

Thanks all for your feedback.
I will do more tests with xpack version to reproduce the issue and try to fix it.
I hope it does not require a new kibana code change.

WORKS !! thank you very much.

WORKS !! thank you very much.

Does it? Have you tried refreshing the browser after loading the dashboard? Or switching to a new space and then back to the one with the faulty dashboard?
Which version of the stack are you using? OSS or basic xpack featured?

Hi all,
I did what  @guillermoc-infocorp did:

I downloaded Kibana 7.8.1 (default distribution with X-Pack Basic License from elastic.co/downloads)
I downloaded enhanced-table v1.9.2 (https://github.com/fbaligand/kibana-enhanced-table/releases/tag/v1.9.2)
I create a enhanced-table vis, go dashboard, add vis, go to another space, go back to default space, go to Dashboard, and finally refresh my browser page

All these steps work fine, I don't see any bug.
So I invite you (@guillermoc-infocorp, @fabiopipitone, @hoberhol) to fully reinstall the plugin:

delete "optimize" and "plugins" folder
install plugin using CLI tool: kibana-plugin.(bat|sh) install https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.9.2/enhanced-table-1.9.2_7.8.1.zip
start Kibana

Ok so, I made a new test this morning, reinstalling the plugin and, most importantly, using the private browsing in Chrome. In so doing I had no problem at all. I guess it was a problem of something Chrome kept track of at this point. Beautiful!

Great news!

Definitely you are right!! Thank you sooo much! All is Ok!
Only deleting the Optimize folder.
have a nice weekend!

Nice to hear that @guillermoc-infocorp !

After 3 successful checks (plus mine), I definitely consider the bug as resolved!
And so, I’m glad to officially close this issue!

Hi there, is it possible to get 1.9.2 of Enhanced Table to work on 7.8.0 Kibana since it is the latest supported OpenDistro release of ES/Kibana.
I compiled the plugin without errors:
yarn build --kibana-version 7.8.0
I installed it to kibana with out issues but when i load the visual in Kibana i get "error in visualization cannot read property 'indexpattern' of undefined"

No it is not possible.
Enhanced table v1.9.2 uses a patch included in kibana 7.8.1 (and not in kibana 7.8.0).
But If open distro supports 7.8.0, it should also support 7.8.1.
You can install kibana 7.8.1, and change kibana version in open distro kibana plugins inside its package.json file.
BTW, you can keep elaticsearch 7.8.0
Fabien

Le 27 août 2020 à 03:41, Ky M notifications@github.com a écrit :

Hi there, is it possible to get 1.9.2 of Enhanced Table to work on 7.8.0 Kibana since it is the latest supported OpenDistro release of ES/Kibana.
I compiled the plugin without errors:
yarn build --kibana-version 7.8.0
I installed it to kibana with out issues but when i load the visual in Kibana i get "error in visualization cannot read property 'indexpattern' of undefined"
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

authors: alaindixon fabiopipitone fbaligand guillermoc-infocorp hoberhol ky-ma onDee tonykoval

repo: fbaligand/kibana-enhanced-table


text:
Does keras include bias term?

I was wondering if we have pad a '1' to our input data. Does keras include a bias term automatically at each node?
Thanks in advance.

Yes, definitely. https://github.com/fchollet/keras/blob/master/keras/layers/core.py#L660

repo: fchollet/keras


text:
Need help on the implementation of the 2D-RNN

The current idea is, map the original (Nsample, timestep ,input_dim) to a grid  (Nsample, grid_shape[0], grid_shape[1] ,input_dim).
Then apply nested scan to scan column by column.
At each step, updates the current state and activation based on the row and column predecessors.
So the initial_states is [row_states] + [col_states].

class MultiDimRNN(Recurrent):
    '''grid_shape: define the 2D shape of the grids. Eg. there are in total 5*6 grids'''

    def __init__(self, output_dim, grid_shape ,
                 init='glorot_uniform', inner_init='orthogonal',
                 activation='sigmoid', inner_activation='hard_sigmoid',
                 **kwargs):

        self.output_dim = output_dim
        self.grid_shape = tuple(grid_shape)

        self.init = initializations.get(init)
        self.inner_init = initializations.get(inner_init)
        self.activation = activations.get(activation)
        self.inner_activation = activations.get(inner_activation)
        super(MultiDimRNN, self).__init__(**kwargs)

    def build(self):
        input_shape = self.input_shape
        if self.stateful:
            self.reset_states()
        else:
            # initial states: all-zero tensor of shape (output_dim)
            self.states = [None for _ in range(np.sum(self.grid_shape))]
            #for state_id in range(np.sum(self.grid_shape)):
            #    self.states.append(K.zeros((input_shape[0], self.output_dim)) )

        input_dim = input_shape[2] #Nsample*timestep*input_dim
        self.input_dim = input_dim

        self.W = self.init((input_dim, self.output_dim))
        self.U_row = self.inner_init((self.output_dim, self.output_dim))
        self.U_col = self.inner_init((self.output_dim, self.output_dim))
        self.b = K.zeros((self.output_dim,))
        self.params = [self.W, self.U_row, self.U_col, self.b]

        if self.initial_weights is not None:
            self.set_weights(self.initial_weights)
            del self.initial_weights

    def get_initial_states(self, X):
        # build an all-zero tensor of shape (samples, output_dim)
        initial_state = K.zeros_like(X)  # (samples, timesteps, input_dim)
        initial_state = K.sum(initial_state, axis=1)  # (samples, input_dim)
        reducer = K.zeros((self.input_dim, self.output_dim))
        initial_state = K.dot(initial_state, reducer)  # (samples, output_dim)
        initial_states = [initial_state for _ in range(len(self.states))]
        return initial_states

    def reset_states(self):
        assert self.stateful, 'Layer must be stateful.'
        input_shape = self.input_shape
        if not input_shape[0]:
            raise Exception('If a RNN is stateful, a complete ' +
                            'input_shape must be provided ' +
                            '(including batch size).')
        if hasattr(self, 'states'):
            for state_id in range(np.sum(self.grid_shape)):
                K.set_value(self.states[state_id],
                            np.zeros((input_shape[0], self.output_dim)))
        else:
            self.states = []
            for state_id in range(np.sum(self.grid_shape)):
                self.states.append(K.zeros((input_shape[0], self.output_dim)))

    def step(self, x, row_state, col_state):
        # states only contains the previous output.
        #assert len(states) == 1
        #prev_output = states[0]
        h = K.dot(x, self.W) + self.b
        output = self.activation(h + (K.dot(row_state, self.U_row) + K.dot(col_state, self.U_col))/2 )
        return output, [output]

    def get_output(self, train=False):
        # input shape: (nb_samples, time (padded with zeros), input_dim)
        X = self.get_input(train)
        assert K.ndim(X) == 3
        # get input, then map it to the grid_shape
        inner_data = K.reshape(X, (-1,) + self.grid_shape + (self.input_shape[2],))  # for example 16*16 *900 (16 * 16 grids and each contains 900 pixels)

        if K._BACKEND == 'tensorflow':
            if not self.input_shape[1]:
                raise Exception('When using TensorFlow, you should define ' +
                                'explicitly the number of timesteps of ' +
                                'your sequences. Make sure the first layer ' +
                                'has a "batch_input_shape" argument ' +
                                'including the samples axis.')

        mask = self.get_output_mask(train)

        if mask:
            # apply mask
            X *= K.cast(K.expand_dims(mask), X.dtype)
            masking = True
        else:
            masking = False

        #grid_mask = K.reshape(mask, (-1,) +  self.grid_shape)

        if self.stateful:
            initial_states = self.states
        else:
            initial_states = self.get_initial_states(X) #build an all-zero tensor of shape (samples, output_dim)

        last_output, outputs, states = self.rnn_grid(self.step, inner_data, self.grid_shape,initial_states,
                                             go_backwards=self.go_backwards,
                                             masking=masking)

        if self.stateful:
            self.updates = []
            for i in range(len(states)):
                self.updates.append((self.states[i], states[i]))

        if self.return_sequences:
            return K.reshape(outputs, (-1,) + (np.prod(self.grid_shape), self.input_shape[2]))
        else:
            return last_output

    def rnn_grid(self ,step_function, inputs, grid_shape,initial_states,
        go_backwards=False, masking=True):
        row_states = initial_states[0:grid_shape[0]]
        col_states = initial_states[grid_shape[0]:]

        inputs = inputs.dimshuffle((2,1, 0, 3))  # col, row, nsample, dim
        #inputs = input.dimshuffle(tuple(range(1,len(grid_shape)+1))+(0, len(grid_shape)+1) )

        def _step(input,row, row_state, col_state): #[row_states] + [col_state]
            #'''it needs the left, and upper grid as it's predecessor,
			#   it only update the col_state after process one local patch.
			#   although it needs two states to compute each step, but it actually only updates the upper column state, for the
			#   left row_state, it only use it.
			#'''
            states = [col_state]
            output, new_states = step_function(input, row_state, states[0])  # this function actually should only return one state

            if masking:
                # if all-zero input timestep, return
                # all-zero output and unchanged states
                switch = T.any(input, axis=-1, keepdims=True)
                output = T.switch(switch, output, 0. * output)
                return_states = []
                for state, new_state in zip(states, new_states):
                    return_states.append(T.switch(switch, new_state, state))
                return [output] + return_states
            else:
                return [output] + new_states

        def loop_over_col(coldata, col_ind,col_state, rows_states, rows_model):
            #'''when loops over a column, it needs the left column as row_states,
			#row_states, col_states are already concatenated to be tensors for scan to process before call this function.
			#it return the results as well as this column response as the row_states to next column.
			#it should return the last column_state
			#'''
            results , _ = theano.scan( fn = _step,
                                       sequences = [coldata, rows_model, rows_states],
                                       outputs_info=[None] +  [col_state]
                                       )

            new_row_states = results[1:] #'''list of tensor of row_size * nsample * out_dim, but we need to modify it to be list'''
            col_vals = results[0]
		   #'''tensor of row_size * nsample * out_dim'''
		   #'''the length is the number of states for each single actual step'''
            single_state_num = len(new_row_states)
            returned_row_states = []
            for timestep_id in range(len(rows_model)):
			    #'''new_row_states is a list of tensor of size row_size * nsample * out_dim
				#   returned states should be [timestep_1_state_1,...,timestep_1_state_n, ...., timestep_m_state_1,...,timestep_m_state_n],
				#   n is the number of required states for each single actual step function, most time it is 1. but CWRNN has 2.
				#   m is the row_size, = grid_shape[0]
				#'''
			   for state_id in range(single_state_num):
				    returned_row_states.append(T.squeeze(new_row_states[state_id][timestep_id]))
            returned_col_state = []
            for state_id in range(single_state_num):
			  returned_col_state.append(T.squeeze(new_row_states[state_id][-1]))
            #'''output should be list corresponding to the outputs_info'''
            return [col_vals] + T.concatenate(returned_row_states, axis =0), T.stack(returned_col_state, axis =0)

        inputs_model = dict(input = inputs, taps=[0])
        rows_model = T.arange(self.grid_shape[0])
        cols_model = T.arange(self.grid_shape[1])

        #'''loop_over_col(coldata, col_ind, rows_states, col_states, rows_model)'''
		#'''Maybe I need to concatenate all states list to tensor at this stage, scan deal with list of tensor variable, not
		#list of list.'''
        results, _ = theano.scan( fn = loop_over_col,
                                    sequences = [inputs_model, cols_model, T.stack(col_states, axis =0)],
								#'''return grid_results, row_states, col_state'''
                                    outputs_info=[None, T.stack(row_states, axis =0), None],
                                    non_sequences = [rows_model]
            )
        #update col_states here
		#'''results are list of [grid_tensor, row_state_tensor, col_state]'''
        outputs =  results[0]  #'''tensor type'''
        row_states_tensor  = results[1][-1]  #'''we only need the last column as the row_states, tensor type'''
        col_states_tensor  = results[2]  #'''tensor type'''

        # deal with Theano API inconsistency
        #if type(results) is list:
        #    outputs = results[0]
        #    states = results[1:]
        #else:
        #    outputs = results
        #    states = []
        outputs = T.squeeze(outputs)
        last_output = outputs[-1,-1]

        #outputs  col, row, nsample, dim
        outputs = outputs.dimshuffle((2,1,0,3))

        row_states = [T.squeeze(state[-1]) for state in row_states_tensor]
        col_states = [T.squeeze(state[-1]) for state in col_states_tensor]
        return last_output, outputs, row_states + col_states

    def get_config(self):
        config = {"grid_shape": self.grid_shape,
                  "output_dim": self.output_dim,
                  "init": self.init.__name__,
                  "inner_init": self.inner_init.__name__,
                  "activation": self.activation.__name__}
        base_config = super(MultiDimRNN, self).get_config()
        return dict(list(base_config.items()) + list(config.items()))

The current idea is, map the original Nsampletimestepinput_dim to a grid,.
Then apply nested scan to scan column by column.
At each step, updates the current state and activation based on the row and column predecessors.
So the initial_states is [row+states] + [col_states].
The states stuff really confuse me,  I am not sure if I implement it right.
@wxs   @fchollet   @davidbuniat

Hello, I'm also trying to write a nD version LSTM.
Did you test the code you wrote, does that work? nesting two scan, will that be extremely slow?

@WeidiXie  I did not test it. I believe it won't work in its current shape. I posted it here looking for help from experienced theano programmar.

@shampool  Did you eventually get it work?

@WeidiXie  not yet, I am still struggling with the bugs of returned states of nested scan.

I'm currently not by the pc,  and will go to the lab later, maybe we can debug it together. I need it as well.  Could you drop me an email.

@WeidiXie。sure！  shampool@ufl.edu

latest update, I can compile it. but not sure will it generate valid results.

Any news?

authors: WeidiXie polkovnikov-ph shampool


text:
Cost-sensitive classification

How would I go about doing [multiclass] cost-sensitive classification (meaning each example has its own misclassification cost) in Keras?

You may use the sample_weight parameter http://keras.io/models/sequential/#fit

sample_weight: Numpy array of weights for the training samples, used for scaling the loss function (during training only). You can either pass a flat (1D) Numpy array with the same length as the input samples (1:1 mapping between weights and samples), or in the case of temporal data, you can pass a 2D array with shape (samples, sequence_length), to apply a different weight to every timestep of every sample. In this case you should make sure to specify sample_weight_mode="temporal" in compile().

Thank you

Hi,
May I know how this is done in the case of FCN which outputs an image?
Thank you

authors: ChristianThomae jsaisagar zygmuntz


text:
The Theano backend should not clip output values by default for the binary_crossentropy function.

The binary_crossentropy function in the Theano backend clips the output values before passing them to Theano's binary_crossentropy function, which results in negative model predictions (which shouldn't be occurring) producing a positive number for the cost instead of a nan. In theory, the model should not be generating negative predictions if the binary_crossentropy loss function is being used appropriately, but there is currently no check in place (on the model side) to ensure the output lies between zero and one. I learned this the hard way by forgetting to add a sigmoid activation function to my final Dense layer and then training a model for several days without error, only to then discover that the model generates negative predictions. The Keras implementation of binary_crossentropy behaves differently from the Theano binary_crossentropy function, which does not clip the predictions, so even though I was checking for nans while training, the model never produced them. I would prefer Keras either not enable output clipping by default, or implement a check such that if the model is using a binary_crossentropy loss function, it will make sure the output is being passed through an activation function that produces predictions that should lie between zero and one.
import numpy as np
import theano.tensor as T

_EPSILON = 10e-8

preds = np.array([-0.012, -0.002, -0.007])
target = np.array([0, 0, 1])
output = preds
output = T.clip(output, _EPSILON, 1.0 - _EPSILON)
clipped = sum(T.nnet.binary_crossentropy(output, target).eval()) # The Keras loss.
not_clipped = sum(T.nnet.binary_crossentropy(preds, target).eval()) # The Theano loss.

I believe the from_logits parameter is meant to be a type of "check", but, as far as I can tell, it doesn't look like it's ever used when binary_crossentropy is called. Indeed, when running the following code, negative predictions are produced by the model, but the Keras loss is equal to the clipped loss, not the sigmoid loss.
import numpy as np
import theano.tensor as T

np.random.seed(0)

from keras import backend as K
from keras.layers import Dense
from keras.models import Sequential

_EPSILON = 10e-8

model = Sequential()
model.add(Dense(1, input_dim = 3))
model.compile(optimizer = "adadelta", loss = "binary_crossentropy", metrics = ["accuracy"])

x = np.array([[-1, -2, -3]])
y = np.array([1])

preds = model.predict([x])
target = y

# Clipped loss.
output_clipped = T.clip(preds, _EPSILON, 1.0 - _EPSILON)
clipped_loss = sum(T.nnet.binary_crossentropy(output_clipped, target).eval())[0]

# Sigmoid loss.
output_sig = T.nnet.sigmoid(preds)
sigged_loss = sum(T.nnet.binary_crossentropy(output_sig, target).eval())[0]

# Theano loss.
theano_loss = sum(T.nnet.binary_crossentropy(preds, target).eval())[0]

# Keras loss.
history = model.fit([x], y, nb_epoch = 1, verbose = 0)
keras_loss = history.history["loss"][0]

print("clipped: {0:.4f}\tsigmoid: {1:.4f}\ttheano: {2:.4f}\tkeras: {3:.4f}".format(clipped_loss, sigged_loss, theano_loss, keras_loss))
# clipped: 16.1181	sigmoid: 2.0646	theano: nan	keras: 16.1181

Worth noting that the primary function of the clipping is to preserve numeric stability. Without this clipping your models are highly likely to NaN even if they are only doing a valid series of operation.

@fchollet The clipped version prevents the gradient of small values, which sometimes will also cause numerical problems when classifying a great amount of categories, and it's hard to find where the problem is without looking at the source code, so I guess it is not unnecessary to provide a clip-free version. :)

Yes, I agree with @dontloo. I understand the purpose of clipping, but I think the decision to clip values (and at what extremes) should be left to the user. I've implemented a Clip layer in PR #4778 to hopefully alleviate this issue.

I think Theano back-end behavior to propagate the nan is the right
behavior. Normally nan are propagating, doing the oposite is
conter-intuitive/conter-usual interface.
Is there a reason tensorflow does differently?
On Thu, Jan 5, 2017 at 8:55 AM, redst4r notifications@github.com wrote:

on a related subject of crossentropy, Nans and the two backends:
tensorflow_backend.categorical_crossentropy() loss shows unexpected
behavior if the predictions are NaN: The loss will just be ~1e-7 instead of
NaN (which I would expect/prefer):
import tensorflow as tfimport numpy as npimport keras.backend.tensorflow_backend as KTF
output = tf.placeholder('float32', shape=(5,2), name='out')
target = tf.placeholder('float32', shape=(5,2), name='target')
fd = {output: np.full((5,2), np.nan),
target: np.random.binomial(1,0.5,(5,2)),
}with tf.Session() as sess:
cxe = KTF.categorical_crossentropy(output, target).eval(feed_dict=fd)
print(cxe)

[  1.19209304e-07   1.19209304e-07  -0.00000000e+00  -0.00000000e+00  -0.00000000e+00]

This occurs because of the tf.clip_by_value() call which apparently
doesnt care about Nans and just sets them to 1-epsilon.
To make it more confusing, the theano version of categorical_crossentropy
actually passes on the NaNs (theano.tensor.clip() doesnt clip Nans to
anything, but just returns Nans again).
Overall:

it's very strange to see a "non-Nan" cross-entropy loss (in fact its
probably the global minimum of whatever you're trying to optimize) given
that the model ouput was actually just Nans
there's an inconsistency between the two backends.

Not sure what to do about it though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fchollet/keras/issues/4744#issuecomment-270649114,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALC-1UtFqopwWRN-45G9t6FuiX4AHwYks5rPPZNgaJpZM4LPXc9
.

must have been a strange bug in tensorflow 0.11.0rc2 (tf.clip_by_value() or the min/max functions called there); in 0.12 it's fixed and propagates the Nans as we would expect it!


text:
tensorflow installation error

I have installed tensorflow and keras. I have used virtualenviroment given in tensorflow website. It is showing the below error when I try to import keras with tensorflow as backend
CPU_COUNT = psutil.cpu_count()
AttributeError: 'module' object has no attribute 'cpu_count'
tensorflow version = Version: 1.3.0
keras = Version: 2.0.7
dask = Version: 0.15.0
pandas = Version: 0.20.3

This can be solved by using sudo pip install --upgrade psutil


text:
Broken backwards compatibility for serialized models

Models serialized before https://github.com/fchollet/keras/pull/8572 can no longer be deserialized.
(I added a comment in the PR thread, but will duplicate here) I tried to boil this down to the following simple example:
In [22]: import codecs

In [23]: import marshal

In [24]: from keras.activations import softmax  # just an example function

In [25]: code = marshal.dumps(softmax.__code__).decode('raw_unicode_escape')  # old serialization code

In [26]: codecs.decode(code.encode('ascii'), 'base64')  # new deserialization code
---------------------------------------------------------------------------
UnicodeEncodeError                        Traceback (most recent call last)
<ipython-input-26-83df9bd56477> in <module>()
----> 1 codecs.decode(code.encode('ascii'), 'base64')

UnicodeEncodeError: 'ascii' codec can't encode character u'\x8f' in position 18: ordinal not in range(128)
> <ipython-input-26-83df9bd56477>(1)<module>()
----> 1 codecs.decode(code.encode('ascii'), 'base64')

("old" and "new" in the above example refer to pre/post https://github.com/fchollet/keras/pull/8572, respectively)

Thanks for the report. Could you submit a PR where we try/except both deserialization modes, in order to support both old and new models?

authors: bbabenko fchollet


text:
Adding preprocess function to ImageDataGenerator

Used when I tried to use generator for fine tuning pre-trained model.
I believe it might help in many more use cases.
another approach will be to use this function instead of standardize but I think this is better.

LGTM, thanks

authors: fchollet mynameisguy


text:
Fcrepo-2919 - Reconcile/cleanup SMT constants

JIRA Ticket: https://jira.duraspace.org/browse/FCREPO-2919
What does this Pull Request do?
Cleans up/documents constants and references related to server managed triples
How should this be tested?
mvn clean install
Interested parties
@fcrepo4/committers

@bbpennel This is good work and builds fine, but does not seem to completely encompass the ticket. Is there more coming?

authors: bbpennel whikloj


text:
Changelog is Outdated

Hi, the changelog was last updated on Aug 26, 2017 for v1.0.0-pre.3 and the project is currently (at the time of writing) v1.7.0

I agree that this needs to be updated.  There's plenty of tagging in the commits, so they read like a changelog until I make the time to update the actual changelog..

It's official.  I won't be going back to update the changelog.  The commits read just like a changelog.

@marshallswain maybe you could use conventional commits to enforce commit pattern and generate a changelog from commits? Just an idea, I've been using it on my current project and it's super nice.

@NickBolles a link to the topic would have been useful

https://www.conventionalcommits.org
http://notebook.aaronwest.net/2015/08/03/better-documentation-using-conventional-changelog.html

authors: Heartnett NickBolles bravo-kernel marshallswain

repo: feathers-plus/feathers-vuex


text:
Add support for sources

I did not found support for sources in the readme and the code.
Will you provide support for sources in the near future?
Stripe Source Docs

New services all look very similar (e.g. to https://github.com/feathersjs-ecosystem/feathers-stripe/blob/master/lib/services/charge.js) so it should be fairly straightforward to add if you want to have a stab at it.

authors: daffl fmoessle

repo: feathersjs-ecosystem/feathers-stripe


text:
logoutTimer causing early logouts

Steps to reproduce
From the source/socket/handler.js
// Clear any previous timeout if we have logged in again.
if (logoutTimer) {
  debug(`Clearing old timeout.`);
  clearTimeout(logoutTimer);
}

logoutTimer = setTimeout(() => {
  debug(`Token expired. Logging out.`);
  logout();
}, ms(authSettings.jwt.expiresIn));

  "auth": {
    "secret": "FEATHERS_AUTH_SECRET",
    "cookie": {
      "enabled": true, // whether the cookie should be enabled
      "name": "feathers-jwt", // the cookie name
      "httpOnly": false, // whether the cookie should not be available to client side JavaScript
      "secure": false // whether cookies should only be available over HTTPS
    },
    "jwt": {
      "expiresIn": "1y"
    },
    "strava": {
      "name": "strava",
      "successRedirect": "/auth/success",
      "clientID": "XXX",
      "clientSecret": "STRAVA_CLIENT_SECRET",
      "permissions": {
        "scope": [
          "public"
        ]
      }
    }

I haven't looked deeply into this, but the logoutTimer function seems to be prematurely logging out the user immediately after being authenticated.
Commenting it out fixes the problem.
Expected behavior
The user should not be logged out
Actual behavior
The user is logged out
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
    "feathers": "^2.0.2",
    "feathers-authentication-client": "^0.1.6",
    "feathers-hooks": "^1.7.1",
    "feathers-rest": "1.5.x",
    "feathers-socketio": "1.4.2",

NodeJS version:
7.2
Operating System:
Mac 10.11.6
Browser Version:
Chrome latest
React Native Version:
0.39
Module Loader:

Have you confirmed that the JWT's exp attribute is correct?  Paste your token into JWT.io and it will decode the payload.

Hmm... this shouldn't be happening but I'll have to probe this a bit more. We typically don't set out JWTs to that long a length. Usually they are at most 1 day in case they are ever compromised. Otherwise you're going to probably keep a blacklist or whitelist.

I am hitting the same issue with jwt.expiresIn="90d". If I set it to "1d" it works, though.

This might be the same issue as #458

Weird. They do seem similar. It's impossible to test though because we can't realistically wait more than 20 days to test this. It is not recommended that you set JWT expiresIn to something that high.

I think we can test it by trying to see what ms returns when you put in 1y. I once wanted to set the expiration to one month, put in 1m and then was surprised why tokens always expired after a minute.

ms('1y') equals 31557600000. When I did new Date(31557600000) I got 1971-01-01T06:00:00.000Z which seems about right.

Looking at the code again I think I see a couple potential issues. I think the placement of the logoutTimer might be an issue. https://github.com/feathersjs/feathers-authentication/blob/master/src/socket/handler.js#L24
A few things that may be causing problems:

Possibly the timer should actually be attached to the socket. I'm not sure what happens to the timer as multiple people authenticate. Given the scope of where the variable is defined, it might only be keeping time for the first person to authenticate.

We should probably be explicitly clearing the timeout on logout.

When we clear the timeout we should set logoutTimer to null. I believe once it is set, if (logoutTimer) { will still evaluate to true.

What do you think @daffl?

I think this has all been fixed (with #534 as the last issue).

authors: ascloud-systems daffl ekryski jamesholcomb marshallswain

repo: feathersjs/feathers-authentication


text:
Angular 4 feathers hook build fails - "All declarations of 'Service' must have identical type parameters"

Expected behavior
Builds angular applciation with feathersjs socket connection to featherjs server without issues.
Actual behavior
Build failed with a message:
ERROR in [at-loader] ./node_modules/feathers-hooks/index.d.ts:8:13
TS2428: All declarations of 'Service' must have identical type parameters.
System configuration

Angular 4 (v4.4.4)
npm 5 (v5.4.2)
node 8 (v8.6.0)
webpack (v3.5.5)
Mac OS Sierra (10.12.6)

Temporary Fix:
remove "extends any" in line 8  found in ./node_modules/feathers-hooks/index.d.ts

interface Service

Any update on this one? I faced similar issue with feathers and feathers-reactive...

Interestingly enough, the error went away when i updated to version ^2.2.2 for feathers, i checked with the versions on feathers-chat-angular...
See if it works for you as well.

This is due to https://github.com/feathersjs/feathers/pull/681 so both modules have to be at the latest version - feathers-chat-angular has been updated already via https://github.com/feathersjs/feathers-chat-angular/commit/3dc1339d9d310c9cb4e829c55ae069a040789380

authors: amalg989 baljeet daffl

repo: feathersjs/feathers-hooks


text:
add features and fix typos

changed the user param to authResult which is more accurate.
Added a user variable from connection to allow the example to function in its entirety.
Added a check to "Array.IsArray" to the user.rooms to ensure it both exists and is an array.
Added another example of channel sorting for specified users via email and id
Placed a NOT RECOMMENDED comment after the app.publish for all authenticated users
Added a new publish method to demonstrate how a messages service would utilize the emails and ids to send to users involved.

Released yesterday in the latest version of @feathersjs/cli. Thank you!

authors: daffl superlazycoder

repo: feathersjs/generator-feathers


text:
Add some notes based on on-call issues

Description

Add notes in docs for feature registry to avoid redefining a feature
Add notes in synapse initialization to suggest use an empty datalake dir

How was this PR tested?

Does this PR introduce any user-facing changes?

[x] No. You can skip the rest of this section.
[ ] Yes. Make sure to clarify your proposed changes.

Merged. Please avoid creating branches directly in the master repo, instead using a forked repo to make it more consistent. @enya-yx

authors: enya-yx xiaoyongzhu

repo: feathr-ai/feathr


text:
Decimal values for prediction

Hi.
I would like to make a ROC-curve for the results.
Are there any way to get the decimal values for each prediction?
Or probably some other ways to do it?
Thank you

I don't think I understand the question. Maybe SVR is what you need. Please don't use the issue tracker for discussion of the use of SVM. It is possible that the documentation of the library helps you. Usually you find it here: www.csie.ntu.edu.tw/~cjlin/libsvm/ (it's down right now).

authors: febeling iverds

repo: febeling/rb-libsvm


text:
Make prometheus config files configurable

To make the role more reusable, I think we should be able to set user-defined file names for prometheus config and prometheus rules.

target:config

authors: d-averkiev fediazgon

repo: fediazgon/ansible-monitoring


text:
Gateway API versioning

Add a gateway API version and make gateway clients aware of it. Would help with issue created when server is running https://github.com/fedimint/fedimint/pull/3847 but client is on older version.

Is this sufficient?
https://github.com/fedimint/fedimint/blob/07a91304f6f4bc5ec0bd9de3d98ba2afe4d8705c/gateway/ln-gateway/src/state_machine/mod.rs#L142

authors: bradleystachurski justinmoon

repo: fedimint/fedimint


text:
Why do we have sqlite in the fedimintd container?

https://github.com/fedimint/fedimint/blob/de0eced901cde24f930069f3148bcfe80edcf433/nix/flakebox.nix#L605-L613

I might've added to it by mistake, it's only required by others that end up using fedimint-api-client or ldk-gateway. I'll take another look.

Right, but guardians do use the API client too, so might be required. I'm curious if it needs to be added explicitly though, shouldn't the fedimintd package pull it in automatically?

AFAIK it still requires the native linkers, at least I was getting errors running locally and in a VM. But I might be wrong and I can test it again in a clean box 🤔.

I think that would mean our nix package definition is wrong, because every install of fedimintd needs that, not only the docker version. @dpc thoughts?

Adding sqlite to content will probably only result in the sqlite being available in the PATH. Being linked in libsqlite is taken care of elsewhere (fedimintd derivation, etc.).

Adding sqlite to content will probably only result in the sqlite being available in the PATH. Being linked in libsqlite is taken care of elsewhere (fedimintd derivation, etc.).

Sounds like we can just remove it then?

authors: dpc elsirion oleonardolima


text:
Added rocksdb with transactions using Yiyuanliu branch of rust-rocksdb.

TODO:

Fix the lifetimes for the raw prefix search
Change the API and Database trait to support self referencing transactions
Use native rocksdb column families instead of prefixing (e.g. collecting signature shares for a given token and deleting the column later)
Perhaps create inherited traits for basic database -> transactional database -> transactional + column family database
Crate generic trait for expected "transaction" behaviors and functionality
Get rid of sled_impl and replace all references
Remove Batch.rs
Improve UT and add coverage for all expected trait functionality
Note: transactions are soon to be merged into rust-rocksdb we are simply waiting on a couple changes for the next rocksdb you can track the issue here https://github.com/rust-rocksdb/rust-rocksdb/pull/565/files#. Obviously we will want to change to master as soon as possible.

I think most of these TODOs should be addressed in separate PRs.
For lifetimes, feel free to add 98eae77d2b99ec1afa22c8fd6006a81b41bc7656 to the PR

On wasm side, I suggest making rocksdb optional dependency, and enabling it in minimint, ln-gateway and mint-client-cli

Okay the build should be fixed although with the inclusion of C code GitHub wont be able to compile and test without clang tools (I'm not sure how that works). As for the TODO's I think I'll limit this PR to adding the remaining tests for the existing database trait and making rocksdb an optional dependency and enabling it in those files Maan2003 mentioned. The other changes such as the migration to transactions and the other TODO's will have separate PR's.

notes for CI:

run cargo fmt
install clang in nix
make rocksdb optional dependency, so it is not used on wasm

feel free to include 9ebfa353051a5e5904a58f9e94fc2888507d954f for wasm fixes

You can try a nix flake update

Awesome that the tests finally run, you can probably clean up the git history a bit and squash some commits, then this should be ready for review!

What's the status here?

I have rebased and squashed some commits in https://github.com/Maan2003/minimint/commits/db-rebase

repo: fedimint/minimint


text:
Moving unnamed pages raises exception

When copying as a remote reference, if the note to which the reference is being copied hasn't had it's title changed from the generic "Note", the tool icon should be disabled since the link created to such a page doesn't end up navigating to that page, but goes instead to a blank note.

Moving unnamed pages now works.

authors: asampal girba

repo: feenkcom/gtoolkit


text:
ImportError: No module named v2

Current docs say to import MediaFileContent like:
from feincms.content.medialibrary.v2 import MediaFileContent

However, this gives me the error:
ImportError: No module named v2

I'm using FeinCMS==1.10.1 and Django==1.5.5 (due to other dependencies, I can't upgrade to Django>=1.6).

Oh yes, that's bad. You get better results importing from feincms.content.medialibrary.models with said Django version. Sorry!

authors: chrisspen matthiask

repo: feincms/feincms


text:
Save / load nest

Is there any way to save / nest to textile?

Could you please be more specific. What do you mean by textile?

Sorry i mean text file. Csv, xml or like.

There is no such option so far. But I'll try to implement it asap

The function is available in
https://github.com/9swampy/DeepNestSharp
Maybe you can get inspiration there?

Now it is possible to save/load a project to xml file


text:
Foreach completion

This adds some basic support for completing foreach keys/values. For a complete list of what works have a look at the test, but I believe most "normal" cases work.
Limitations:

Using list() for values is unsupported. This isn't straightforward, and as far as I can tell we don't support a straight up list() (outside a foreach) for completion
No support for iterating public object properties
No support for \Traversable objects

I think implementing these limitations is probably more significant work than what's here. I think the cases that work are probably the most used/popular, so even given these limitations I think this would be worth having. We can work on the missing bits in the future.
Closes #200

@phil-nelson can you please take a look at #561 could be related to your PR on foreach completion.
Following code snippet makes the lang server throw an exception
<?php
foreach($Calendar as $day)
	echo $day->Date->format("D");

While, this one is fine:
<?php
foreach($Calendar as $day)
	echo $day->format("D");

authors: andreymrt phil-nelson

repo: felixfbecker/php-language-server

license: isc


text:
Specify license in package.json

The README already says that this project uses the MIT license. This simply makes that information available to services like npmjs.org.

This PR could not be merged anymore. Added the license to the package.son now. Thanks.

authors: jeremyruppel mantoni

repo: felixge/node-measured


text:
action.clampWhenFinished doesn't stop on last frame

Hello, according to the Read Me:
action.clampWhenFinished = true;
// If true, stops on its last frame. If false, it resets. Default is true.
but when testing your demo with my own spritesheet using glitch, the playOnce function resets to its first frame instead. my spritesheet is a scroll opening and i need it to stop on its last frame. changing the value to false in the SpriteMixer.js didn't change anything. Please help.

I just set the frame I want it to end on in the SpriteMixer "finished" event listener.

I just set the frame I want it to end on in the SpriteMixer "finished" event listener.

repo: felixmariotto/three-SpriteMixer


text:
🛑 PDF Association (pdfa.org) is down

In 340ac46, PDF Association (pdfa.org) (https://www.pdfa.org) was down:

HTTP code: 500
Response time: 5587 ms

Resolved: PDF Association (pdfa.org) is back up in eb31d9b after 9 minutes.


text:
ueditor 你们好，为什么我从官网下载的jsp完整demo，word图片转存用不了。万急

我从官网下载的1.4.3.3 的jsp版本，按照官网的部署步骤完成部署，手动上传图片什么的都可以。就是word转存出不来，看后面的html源码，图片的地址被替换成
http://localhost:8080/plugins/ueditor/themes/default/images/spacer.gif
所有的图片都是这个 src  ，所有的图片都打不开。
请问该如何解决。
谢谢

用前一个版本吧，可以的。

现在转存可以了。不过要一张张手动点，，能不能自动转存的

你是换成上一个版本了吗？

chrome浏览器发生这个错误，不知道是否和这个错误有关，反正不管换什么版本都不自动替换占位符。图片可以上传成功，返回参数也正确。
about:blank:1 Not allowed to load local resource: file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg

解决办法
1、修改ueditor.all.min.js文件，
搜索 function(d,e){c[b].indexOf(e)===-1&&a.setAttr(e)}
替换成 function(d,e){if(c[b].indexOf(e)===-1&&e!='style'&&e!='word_img')a.setAttr(e)}

repo: fex-team/ueditor


text:
能不能把grunt打包好的dist目录文件提交上来，我公司部分禁网，导致grunt依赖的文件总是下载不下来

能不能把grunt打包好的dist目录文件提交上来，我公司部分禁网，导致grunt依赖的文件总是下载不下来

http://ueditor.baidu.com/website/download.html 下载啊


text:
filter out all items with an item id under 185000

So our db only has data for dragonflight items atm and we dont add anything in under an item id of 185000, we should make sure for now that something like this doesnt pop up and that there are warnings and error messages telling people we only do dragonfight atm
should be a simple if statement rejecting ids under 185000 and then when we go back to supporting all data we can undo it
{
    "homeRealmName": "Ragnaros",
    "region": "EU",
    "user_auctions": [
        {"itemID": 159205,"price": 42500700},
        {"itemID": 177807,"price": 48916800},
        {"itemID": 20906,"price": 209700},
        {"itemID": 20815,"price": 4858200}
    ]
}

So, as I understand it, we only need to export item IDs that are introduced in dragonflight ?

local _, _, _, _, _, _, _, itemStackCount,_,_,_,_,_,_,expacID= GetItemInfo(item["itemKey"]["itemID"])                 if itemStackCount == 1 and expacID == 9 then
This should do it , using  GetItemInfo() I defined a variable expacID that gives when the item was introduced.


text:
What's your theme at https://ffmpegwasm.github.io/ ?

Hi there, lovely project, even lovelier project page (in my opinion)!
Where can I find this theme?
Thanks

Oh, thanks!
Actually there is no ready-to-use theme and I just use dark theme in material-ui.com, react-live and react-fade-in to craft the page from scratch, you can find source code here: https://github.com/ffmpegwasm/ffmpegwasm.github.io

authors: fenollp jeromewu


text:
Handle browser-specific manifest when bumping version

A version script should ensure manifest-chrome.json, manifest-firefox.json and manifest.json version keys gets bumped too.
Or is there a way to specify files to change while bumping version?

A node script could also allow us to drop rename and improve cross-OS compatibility. Using shx could also help with that.

Need to check for shx and web-ext too, to improve ×OSes compatibility.
And maybe a simple Node script could help lighten package.json scripts?


text:
US10 - Eu, como usuário, gostaria de saber quais modelos usar para regressão

US10 - Eu, como usuário, gostaria de saber quais modelos usar para regressão

Descrição:
Para um melhor entendimento dentro da area de machine learning abordamos o tema voltado a quais os modelos usar para regressão. O desenvolvedor deverá preparar o material para o treinamento do bot no tema citado.
Link de apoio:
Polynomial regression
Bayesian Regression
Critérios de Aceitação

[x] Intents, actions e stories dentro do padrão aceitavel.
[x] Correta formatação do markdown em todos os arquivos criados ou modificados

Tarefas
Para a aceitação desta história, deve ter as seguintes tasks constituintes concluídas:

[x] Documentação de Estudo do tema Polynomial regression e Bayesian Regression
[x] Intents, actions e templates criados do tema Polynomial regression e Bayesian Regression
[x] Cenários/Histórias criadas do tema Polynomial regression e Bayesian Regression

Documento de estudo finalizado.

Pull request aberto


text:
US 14: Visualizar perfil de usuário

US 14: Visualizar perfil de usuário
Descrição
Eu como funcionário do DSTI gostaria de visualizar meu perfil para verificar se as informações estão corretas
Tarefas

[ ] #127

Critérios de Aceitação

[ ] Critério 1;

Critérios de Aceitação

o usuário poderá visualizar o menu contendo os seus dados pessoais;
o usuário não poderá alterar seus dados pessoais, apenas redefinir a sua senha;
para redefinir a senha, o usuário deverá informar a senha atual, em seguida digitar a nova senha, e digitar novamente a confirmação da nova senha;
somente o usuário administrador poderá alterar os dados pessoais dos outros usuários;

authors: AlineLermen guilhermepupak


text:
micropython?

Hay firmware para programar en micropython? Gracias.

Si, Thonny, https://thonny.org/
De nada
------------------------------
Federico Coca
Maker, open source, 3D, Friki, FPGAWars
------------------------------
Organizador de la feria de micro robótica e innovación GranaBot
@fgcoca
e-NABLE volunteer
------------------------------
+34 658914135
El dom, 10 nov 2024 a las 13:36, planetacomputer @.***>)
escribió:

Hay firmware para programar en micropython? Gracias.
—
Reply to this email directly, view it on GitHub
https://github.com/fgcoca/ESP32-micro-STEAMakers/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AE73YHTQKX53R4KGBDMNOP3Z75HOLAVCNFSM6AAAAABRQFNRJCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DOMJYG4ZTGNA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

authors: fgcoca planetacomputer


text:
🛑 Novios PE is down

In 5890ae9, Novios PE (https://www.noviosfalabella.com.pe/novios-pe/public/inicio.do) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Novios PE is back up in 49057cf.

repo: fhonores/upptime


text:
Added arm-gcc-10-2020-q4 revision

The new stable version of gnu-arm toolchain is available. Because of some C++ features and bugfixes that are supplied with 10.2 gcc version it would be fine to update the existing GitHub action for adding the support of the new compiler.

@ValentiWorkLearning thank you!

@gretel I've no idea, how to fix the issue with NodeJS download, because of passed build for Mac OS. How to reproduce these failed tests locally? I want to fix them and prepare this PR to be merged, because some essential fixes are supplied only from GCC 10.2( Especially  some of upcoming stable C++20 features ).

@gretel I've no idea, how to fix the issue with NodeJS download, because of passed build for Mac OS.

not sure if i get you right. this error happens sometimes because github actions is using docker. there is nothing you can do to change that. but there is a workaround which i have added on my branch (Take the trash out step). please check the action running fine on my fork.

How to reproduce these failed tests locally? I want to fix them and prepare this PR to be merged, because some essential fixes are supplied only from GCC 10.2( Especially some of upcoming stable C++20 features ).

one step at a time. we did port all what is required to have this working inlcuding on osx now.
it is not any different for the platforms when they actually use the same compilers. i also don't think any more abstraction (like build containers) should be put in place cause this would just add more hidden complexity and requires additional maintenance efforts.
the test suite completes fine. now, the tests have to test the right things.
nobody has taken any care in regards to unit testing since.. the original fork. all the changes, all features, the dozens of little experiements eventually got merged without working on the tests. the betaflight project is not accepting any PRs without the tests to complete fine - and this project would be better of doing same.
you just can't fix that on your own in a couple of days. the contributors of this project have to accept the need for unit testing and continue to work on their submissions. or, as some prefer - abandon their previous hackings and work on betaflight instead.

@ValentiWorkLearning thanks, there is nothing you can do. the post gets done automatically on reference - it's just how github works.
but, i was mixing up context cause what you wrote als matched the actual issue i was trying to comment on 😕

@fiam howdy! can you check on this please?

@gretel seems these issue will be here for a long. If you need a quick temporary fix- these can be used:
    - name: Get the latest arm-gcc-none-eabi-gcc
      uses: wei/wget@v1
      id: download-arm-gcc
      with:
        args: 'https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2'

    - name: Unpack arm-gcc-compiler
      run: |
        mkdir toolchain
        tar -xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 --directory ${{ github.workspace }}/toolchain

It's not a cross-platform approach, but having the latest compiler is more important, imho.
P.S. I used this for my project because arm-gcc-none-eabi is used only under linux environment.

@ValentiWorkLearning many thanks.

It's not a cross-platform approach

this is something i can change 😸

I think Windows if failing because the new Windows .zip file now has a top level gcc-arm-none-eabi-10-2020-q4-major directory like the Mac and Linux .bz files. It didn't have the before.
The tar extractor has an option to strip this top level extractor = tar.x({strip: 1, C: directory}) but the unzipper doesn't have this option extractor = unzipper.Extract({path: directory}) See https://github.com/ZJONSSON/node-unzipper/issues/109

So maybe the solution is to not await fs.promises.mkdir(directory, {recursive: true}) except for on older windows .zip files and remove the strip option from the tar unzipper. Then after the files are extracted, rename the directory to the shorter name.

I resolved this in a fork by checking the presence of the bin directory in the zip to decide how to set the path: https://github.com/fiam/arm-none-eabi-gcc/compare/master...ryanwinter:master

I resolved this in a fork by checking the presence of the bin directory in the zip to decide how to set the path: https://github.com/fiam/arm-none-eabi-gcc/compare/master...ryanwinter:master

@dlech thanks! How to properly integrate your fixes into the existing PR for passing the checks?

@dlech thanks! How to properly integrate your fixes into the existing PR for passing the checks?

How to properly integrate your fixes into the existing PR for passing the checks?

I think @ryanwinter did something like this already in their fork.

How to properly integrate your fixes into the existing PR for passing the checks?

I think @ryanwinter did something like this already in their fork.

Seems issue is fixed now in master branch by the action maintainer.

authors: ValentiWorkLearning dlech gretel ryanwinter

repo: fiam/arm-none-eabi-gcc


text:
Add docs on disabling lazy loading in relation managers

RM's are lazy loaded by default. This causes an issue with pagination in Livewire per this discussion on discord and this PR in LW.
You can disable lazy loading in RMs by passing 'lazy' => false to the properties. This PR adds this to the docs.

[ ] Changes have been thoroughly tested to not break existing functionality.
[X] New functionality has been documented or existing documentation has been updated to reflect changes.
[ ] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Maybe it makes sense to add the same API as widgets have (an $isLazy property)?

@zepfietje It would keep things consistent. However, AFAIK you can't pass properties to widgets like you can for RM. This means there could be a conflict if a dev were to pass both the property but also use the API. I would just need to know which should take precedence.

Widgets do allow passing arguments to their make() method.
There was actually an issue or PR the other day caused by a conflict like you described I believe.
Let's leave this up to @danharrin to decide.

authors: archilex zepfietje

repo: filamentphp/filament


text:
Integrate a go-legs publisher endpoint to publish dealbot metadata

The metadata in dealbot is already represented as DAG and exposed via graphQL here. It would be useful to integrate a go-legs publisher such that the same DAG is retrievable via a go-legs subscriber.
For example, this would be useful as the way to ingest dealbot metadata into a side chain reputation system.

[x] Integrate go-legs into updates persisted by state db.

[x] Upgrade imld-prime.
[x] Upgrade Filecoin API.

[x] Bootstrap go-legs libp2p host with Pando.
[x] Configure runtime parameters and re-deploy dealbot.
[x] Set up external IPs for libp2p host on dealbot controller and configure as listen addresses
[x] Register dealbot as a provider in Pando
[ ] Confirm data is flowing on Pando side.

This represents the current plan to export dealbot data into pando

Requires IPLD dependency upgrade first, being worked on in #343

We now have dealbot libp2p exposed and serving legs sync requests.
Dealbot is also registered as a provider on Pando side. The instance of dealbot registered is the one running on mainet production cluster.

authors: dkkapur masih

repo: filecoin-project/dealbot


text:
Client Allocation Request for: codex8080

Client Allocation Questions
Core Information

Name: codex8080
Website / Social Media: https://gitee.com/codex8080
Region: Greater China
DataCap Requested: 100TiB
Addresses to be Notarized: f3qebbkqspq4w6deouaubtngt4bmaada76uqs3omy3tki6hoeocpgxyplknev5u3oi5e7xnltobrvgxnpa3qga
Notary Requested: neogeweb3

@codex8080 Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

Hey @codex8080, thanks for the request. I have some questions regarding your request. Please describe answers as much specificity as you can.

Can you introduce yourself? Where can I find you online? (Github, Twitter, Linkedin handle, Wechat, etc.)
If you represent an organization, what is the name, nature, registration country, time since inception, and named officers of your organization?
In which region(s) do you intend to use the DataCap?
What is your use case for the DataCap being requested?
Do you plan to specify advanced features when utilizing a DataCap in your storage deal? If so, please specify the feature.
How many miners do you plan on allocating the DataCap? If you have a specific miner(s) you would like to allocate a DataCap, please specify.
Do you agree on providing transparency of DataCap allocation decisions & execution details in public to prevent excessive/unfair (20% of DataCap allocation) self-dealing?

Moreover, I encourage you to take a look of my allocation strategy  and flow which shows how I utilize the assessment. Thanks.

Can you introduce yourself? Where can I find you online? (Github, Twitter, Linkedin handle, Wechat, etc.)
I am a filecoin software developer, and I can provide my development homepage：  https://gitee.com/codex8080

If you represent an organization, what is the name, nature, registration country, time since inception, and named officers of your organization?
i represent myself.

In which region(s) do you intend to use the DataCap?
China.

What is your use case for the DataCap being requested?
I will participate in the slingshot repair project.
https://docs.google.com/spreadsheets/d/1UYmVtwtJUIAwlogZmLSZB_nZxWrVlID6ryfqrB0jBjw/edit#gid=1779251844
https://docs.google.com/document/d/1ZH4URWaNYtlddZwZMyqcSnc3GRsR3zCqnW0RfkkNlr8/edit#
https://filecoinproject.slack.com/archives/C01AK1J7TF1/p1639610324028700

Do you plan to specify advanced features when utilizing a DataCap in your storage deal? If so, please specify the feature.
i have no plan to do that.

How many miners do you plan on allocating the DataCap? If you have a specific miner(s) you would like to allocate a DataCap, please specify.
According to the rules of the game, I will distribute the data set from slingshot to 5 different miners.

Do you agree on providing transparency of DataCap allocation decisions & execution details in public to prevent excessive/unfair (20% of DataCap allocation) self-dealing?
yes， i agree.

Hey @codex8080, thanks for waiting while I touch base with PL. In order to better support this Slingshot Restore project, I will make an exception for this first-time allocation, which is different from my ordinary strategy.
Your identity is verified with the Slingshot Restore client list, however, I don't see your LDN application. You will need 5 replicas for 100TiB of ‘common-crawl - sept 2021' dataset, and it's really hard to get 500TiB DataCap allocation from notaries. I will grant you 20TiB to get started while you work on your LDN application. Come back for more if you use up the DataCap and your LDN is not approved yet.

Allocation went through successfully: https://filfox.info/en/message/bafy2bzaceccvz2x4dcxpywf4hjytjsx6csnprtv7nvktpjbyaf3wilrvkeke2


text:
Client Allocation Request for: Coresight

Client Allocation Questions
Core Information

Name: Coresight
Website / Social Media: http://www.coresight.io/
Region: Asia excl. Greater China
DataCap Requested: 30TiB
Addresses to be Notarized: f1fk4jpp6sn6tqxdnrsyppl6jdtymm3hharvzd7fi
Notary Requested: ozhtdong

@Coresight Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

What's your name and your position in your company?
Please introduce yourself and your team briefly. How many team members do you have in your R&D or core team? Could you provide several Github accounts or email addresses of them?
For your organization, Please describe its business, its history since inception, registration country, scale, employee counts, operation regions, named executive officers, relevant projects, industry reputation, etc.
Please show us some of your web pages, Github, social media accounts such as Twitter, Facebook, Naver blog, WeChat official account, etc. Please include as many relevant details to provide contextual information (with external links) to show your Web3 reputation or external reputation.
Please provide your company's business registration license. If you have any presentation documents about your business, please provide them to us.
How long have the team core members been engaged in development?
What types of data do you plan to store with the DataCap and how many do you need? Could you please send us some of your sample data?
Regarding the data you intend to store, What’s the original source of those data, and do you have any proof of the ownership or authorization?
Where is your data stored now? Whether the data is stored on a server or a cloud service provider?

Please apply to your local notary.

authors: Coresight ozhtdong


text:
Add recursive option for fs.mkdir to match node.js

Recently the node.js project added a PR to enable fs.mkdir to accept an Object as the second argument.  This options object can include recursive: true to allow for mkdirp style creation of directories.  It would be nice if Filer also worked like this.

I'm going to work on this with my class.  Assigning to myself.

repo: filerjs/filer


text:
Save view as default

What's the Problem?
No response
Solution/Idea
It would be awesome if there were a "save view as default" button. Here's two scenarios this would be really awesome:

If I wanted to always see my folders using the column view, I would have to manually change to that view every time I enter a "root" folder. This is not that painful because we don't really have many "paths" we use daily as we tend to go the same folders over and over again. But it would be helpful anyway.
The name column is too short on my window and I have to make it bigger in every single folder. That is really painful. Lol. Here's an example:

Thanks a lot for the effort in making Files.
Alternatives
Not sure
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
2.1.5.0
Windows Version
Windows 11 21H2 22000.434
Comments
No response

Thanks for the report. You should be able to set a view as default by:

Turning off "enable individual preferences" in Settings > Preferences > Files and folders
Setting the desired view mode on any folder
Optionally turn the above option back on

Right. It works for the view mode change, but not for the width of the name column. Is there any way of changing that?

Currently there's a bug preventing that, tracked in #6448.

It seems that #6448 was closed but doesn't, when "enable individual preferences" is off, save the user custom width for the current folder to all the others. When "enable individual preferences" is disabled, it seems to me to always restore the default width when changing folders. Therefore, when enabling "enable individual preferences", the default for all folders that haven't been manually changed, is the app default.
I think as the OP that it would be great to set a custom default width, when "enable individual preferences" is enabled. That is, set a custom width different than the app default, to all folders that do not already have a custom width. It doesn't seem possible in preview version 2.1.41.0
For me there are two ways to go about this:

enable changing the default app width, wether "enable individual preferences" is on or off
only when "enable individual preferences" is on, have a way to set a specific default custom preference to all folders that don't already have one set by the user.

authors: gave92 hiharry theophanemayaud

repo: files-community/Files


text:
Feature/location finder test

Tests finalized

Nice job! It's really similar with the answers branch 🎉
https://github.com/filhodanuvem/treinando-unit-tests-php/blob/respostas/tests/LocationFinderTest.php

Nice job! It's really similar with the answers branch
https://github.com/filhodanuvem/treinando-unit-tests-php/blob/respostas/tests/LocationFinderTest.php

Thank you, what books do you recommend to study php?

Honestly books about programming languages have a common problem of being quickly outdated. If you already know any programming language and would like to jump into php world, use the official documentation or even the site https://phptherightway.com/ are good options.

Honestly books about programming languages have a common problem of being quickly outdated. If you already know any programming language and would like to jump into php world, use the official documentation or even the site https://phptherightway.com/. They are good options.

humm, thank you very much

authors: filhodanuvem tiagobrunoBFR

repo: filhodanuvem/treinando-unit-tests-php


text:
signalbot.api.ReceiveMessagesError: server rejected WebSocket connection: HTTP 200

Hey,
I got problems receiving anything from the rest-api server.
Note: i tried to remove personal info from the logs.
Situation:

Example code does not work.
rest-api server words via curl command, at least sending.

Minimal setup:
        config = {
            "signal_service": signal_service,
            "phone_number": phone_number,
            "storage": None,
            }

        bot = SignalBot(config)

        bot.start()

Logs:
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:tzlocal:/etc/timezone found, contents:

DEBUG:tzlocal:/etc/localtime found
DEBUG:tzlocal:2 found:
WARNING:root:[Bot] Could not initialize Redis. In-memory storage will be used. Restarting will delete the storage!
INFO:apscheduler.scheduler:Scheduler started
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:root:[Bot] Producer #1 started
INFO:root:[Bot] Consumer #1 started
INFO:root:[Bot] Consumer #2 started
INFO:root:[Bot] Consumer #3 started
DEBUG:websockets.client:= connection is CONNECTING
DEBUG:websockets.client:> GET /v1/receive/+000000000000 HTTP/1.1
DEBUG:websockets.client:> Host: localhost:18080
DEBUG:websockets.client:> Upgrade: websocket
DEBUG:websockets.client:> Connection: Upgrade
DEBUG:websockets.client:> Sec-WebSocket-Key: ?????????????????????
DEBUG:websockets.client:> Sec-WebSocket-Version: 13
DEBUG:websockets.client:> Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
DEBUG:websockets.client:> User-Agent: Python/3.10 websockets/10.4
DEBUG:websockets.client:< HTTP/1.1 200 OK
DEBUG:websockets.client:< Content-Type: text/plain; charset=utf-8
DEBUG:websockets.client:< Date: Mon, 02 Oct 2023 09:00:09 GMT
DEBUG:websockets.client:< Content-Length: 2
DEBUG:websockets.client:! failing connection with code 1006
DEBUG:websockets.client:x half-closing TCP connection
DEBUG:websockets.client:= connection is CLOSED
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-1' coro=<SignalBot._produce_consume_messages() done, defined at RandomPath/.venv/lib/python3.10/site-packages/signalbot/bot.py:219> exception=SignalBotError('Cannot receive messages: server rejected WebSocket connection: HTTP 200')>
Traceback (most recent call last):
  File "RandomPath/.venv/lib/python3.10/site-packages/signalbot/api.py", line 20, in receive
    async with self.connection as websocket:
  File "RandomPath/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 642, in __aenter__
    return await self
  File "RandomPath/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "RandomPath/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 666, in __await_impl__
    await protocol.handshake(
  File "RandomPath/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 332, in handshake
    raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "RandomPath/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 234, in _produce
    async for raw_message in self._signal.receive():
  File "RandomPath/.venv/lib/python3.10/site-packages/signalbot/api.py", line 25, in receive
    raise ReceiveMessagesError(e)
signalbot.api.ReceiveMessagesError: server rejected WebSocket connection: HTTP 200

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "RandomPath/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 226, in _produce_consume_messages
    await asyncio.gather(*producers)
  File "RandomPath/.venv/lib/python3.10/site-packages/signalbot/bot.py", line 249, in _produce
    raise SignalBotError(f"Cannot receive messages: {e}")
signalbot.bot.SignalBotError: Cannot receive messages: server rejected WebSocket connection: HTTP 200

The rest-api server gives me this:
[GIN] ---------------- | 200 |  6.429480357s |      172.17.0.1 | GET      "/v1/receive/+000000000000000"

any thoughts?

Of course not! :D

repo: filipre/signalbot


text:
Initial Decoders

Decoders for Standard Value types such as

[x] Option
[x] String
[x] Short
[x] Int
[x] Long
[x] Float
[x] Double
[x] Defined JSON type
[ ] java.sql.Timestamp
[ ] java.sql.Date
[x] Boolean
[x] Char
[ ] Array

See java.sql.Types for base Java information and Postgresql Types for information about Postgresql Types.

Numeric Decoders were added by #53

Boolean decoders added by #54

Char decoders added by #55

JSON handled by #56

This has been completed by #58

repo: finagle/roc


text:
Create barline_set.lua

A nice simple script making sensible use of RGP 0.62 AdditionalMenus feature.

I have no objection to adding these, however you realize there is already a function the does this more conveniently than a plugin/script if you right click the bar?

Of course, but I really, really don't like using the mouse that much, always preferring a simple key click (or two) to invoke menu items. (Especially popups). If you think it seems a silly option then don't bother, but the speed of my workflow owes much to the simplification of regular actions.

@cv-on-hub You beat me to it! This was one of the scripts I was going to add, but happy to see that you've gone ahead and wrote it up!
On my end, I have several of these barline scripts broken out into separate scripts (before RGP v0.62 launched with this feature), and haven't gotten around to combining them into a single script.
Approving and merging.

authors: Nick-Mazuk cv-on-hub rpatters1

repo: finale-lua/lua-scripts


text:
CTECH-1586: Adds whitespace to check forked PR flow.

Signed-off-by: Paul Saunders paul.saunders@finbourne.com
Pull Request Checklist

[x] Read the contributing guidelines
[x] Tests pass

Description of the PR
Test MR to check that the forked PR process works. Close unmerged is expected when everything works.

/LGTM

/LGTM

Close. Looking good.

repo: finbourne/scheduler-sdk-java-preview


text:
Change Mouse hover on top-left Logo from Select to Hand [FTM & Makers]

Users need a clear way to navigate back to the main map from subpages. Currently that is not clear on both FTM and FTMakers.
Context
When you are on a Subpage and want/need to navigate back to the map, the UX is to click on the top-left logo to go back to the map.
Right now, the mouse hover is a Select Tool (capital I-looking thing) which does not clearly indicate the top-left logo is clickable. Also the logo text becomes grey upon hover, further confusing whether the logo is clickable or not.
Asks:

change the mouse hover over the logo from Select to Hand on both findthemasks.com and findthemakers.com
change the hover text to be not-grey

actually, clicking the logo doesn't even do it! You have to click the text "Findthemasks" right now. I'll make the whole thing clickable.
I'm not sure about the logo text becoming gray, I don't see that behaviour. What browser @linderr? it may have changed since you created the issue.

I fixed the "going gray" part with the navbar rewrite so I think the new scope is just making the logo clickable

Lol! Great catch @ngottlieb & thanks for doing that @nburt - looks like we’ll close this one pretty quick. Thank you, guys!!

authors: linderr nburt ngottlieb

repo: findthemasks/findthemasks


text:
Added file output to data-{country}.csv in Google storage

Added an output to google cloud storage by creating a string in functions/index.js:snapshotData() and writing it out, follow the pattern for the JSON file upload.
I don't currently have a functioning test environment for this step.

This isn't correct either. JSON has different escaping rules than CSV. To escape a quote in JSON you do \", in CSV you do "". There are CSV libraries for Javascript you should be using.

switched to csv-stringify, tested that it escapes as requested. Tested creating csv file. You can download here: https://console.cloud.google.com/storage/browser/_details/findthemasks-dev.appspot.com/data-us.csv?project=findthemasks-dev&folder&organizationId&supportedpurview=project
Opened file in Excel and terminal to confirm formatting.

sure...merged...but why?  Can't we just do json -> CSV locally in a simple script?

authors: awong-dev marcuscollins


text:
Disable "View Query Usage..." button if extra query usage not configured

Summary

Disable "View Query Usage..." button if extra query usage not configured to improve UX so users don't click the button just to see an empty window saying no query usages available.
How did you test this change?

[x] Test(s) added
[x] Manual testing (please provide screenshots/recordings)
[ ] No testing (please provide an explanation)

GIF of button disabled when no extra query usage configured:

Changeset and code checks need to be fixed. otherwise looks good to me.

authors: MauricioUyaguari travisstebbins

repo: finos/legend-studio


text:
Паузы в OnTransReply

http://smart-lab.ru/blog/371302.php#comment6662037

[x] Добавить ArrayPool к JSON.NET
[x] Изменить настройки GC на server concurrent в app.config
[x] (?) Входить в no gc region во время ожидания ответа на транзакции

Этот коммит не протестирован, @Pr0phet1c можете пожалуйста проверить, что он работает? У меня сейчас нету рабочего Квика под рукой.

Ping/Pong тесты работают OK

Еще можно использовать RecyclableMemyrStream, читать сообщения как байты и десериализовать напрямую из потока, но в ближайшее время я это делать не буду. Пример есть тут.
GC статистика показывает, что основной мусорщик - JSON.NET, с этим ничего не поделать. Добавление ArrayPool должно были сильно снизить объем мусора.

Третья строчка - сильно много некешированных лямбд. Но это мелочи и gen0.

Попытка провести тест "на скорую руку" (скачал в отдельную папку и скомпилил, а потом обновленные длл-ки тупо подсунул своему роботу) ошибок не выявила. Более того, чисто визуально показалось, что инициализация параметров по списку инструментов (19 наименований) прошла раза в два быстрее, чем это происходило обычно. Позже буду мержить со своей рабочей веткой и запускать все с полным перекомпилированием проектов.

В общем, перекомпилил все свои проекты - работает.

Супер, спасибо!

repo: finsight/QuikSharp


text:
预测精度acc时报错

FileNotFoundError: [Errno 2] No such file or directory: ../data/eval/mype . json'
大佬，是不是我处理数据的时候导致的问题，这个json文件要怎么生成

参考readme有数据转换的操作说明

FileNotFoundError: [Errno 2] No such file or directory: ../data/eval/mype . json' 大佬，是不是我处理数据的时候导致的问题，这个json文件要怎么生成

你解决了吗？应该怎么改呢


text:
Facebook Login requires FB SDK dependency

Hi,
We get the below messgae:
java.lang.RuntimeException: Facebook provider cannot be configured without dependency. Did you forget to add 'com.facebook.android:facebook-android-sdk:VERSION' dependency?
After adding the right compile statement, it does compile (yet with ~22 warnings), but notice this step is not coumented anywhere nor is it clear what it is needed if the login process goes through the Firebase backend ...
Queskr

It is documented here: https://github.com/firebase/FirebaseUI-Android/tree/master/auth

@Queskr by firebase backend do you mean custom authentication using your own server? If so, look here for android reference: https://firebase.google.com/docs/auth/android/custom-auth
and here for the server: https://firebase.google.com/docs/auth/admin/create-custom-tokens

@Queskr If you want to check if user is logged in, look here: https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#using-firebaseui-for-authentication

Thanks @krisu7 for jumping in!

It is documented here:
https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#configuration

It should perhaps be mentioned here as well -> https://firebase.google.com/docs/auth/android/facebook-login

repo: firebase/FirebaseUI-Android


text:
[fs-bq-import-collection] Error importing Collection to BigQuery: TypeError: Cannot read property 'forEach' of undefined

fs-bq-import-collection
Works fine on one collection, try it on another one of mine and consistently get this:
Error importing Collection to BigQuery: TypeError: Cannot read property 'forEach' of undefined

Updated PR. #946 will fix this by checking if errors exist before logging.

repo: firebase/extensions