text:
keras crashing when using convolutions

hi all,
recently updated to theano 0.9 and cudnn v5, things broke. downgraded 0.8.2 and things were moderately working again ( I could import theano... ). But then I tried to run some things and ran into the issue pasted below.  I pull the master branch from keras and it still happens. I tried it with a lasagne mnist example, and it doesn't happen.  I haven't tried downloading theano or cudnn yet.
(DL)cogniton [examples] $ python imdb_cnn.py
Using Theano backend.
Using gpu device 0: GeForce GTX 980 (CNMeM is disabled, cuDNN 5004)
Loading data...
Downloading data from https://s3.amazonaws.com/text-datasets/imdb.pkl
33218560/33213513 [==============================] - 1s
20000 train sequences
5000 test sequences
Pad sequences (samples x time)
X_train shape: (20000, 400)
X_test shape: (5000, 400)
Build model...
Traceback (most recent call last):
  File "imdb_cnn.py", line 84, in <module>
    validation_data=(X_test, y_test))
  File "/home/cogniton/research/code/keras/keras/models.py", line 405, in fit
    sample_weight=sample_weight)
  File "/home/cogniton/research/code/keras/keras/engine/training.py", line 996, in fit
    self._make_test_function()
  File "/home/cogniton/research/code/keras/keras/engine/training.py", line 676, in _make_test_function
    **self._function_kwargs)
  File "/home/cogniton/research/code/keras/keras/backend/theano_backend.py", line 517, in function
    return Function(inputs, outputs, updates=updates, **kwargs)
  File "/home/cogniton/research/code/keras/keras/backend/theano_backend.py", line 503, in __init__
    **kwargs)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/compile/function.py", line 320, in function
    output_keys=output_keys)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/compile/pfunc.py", line 479, in pfunc
    output_keys=output_keys)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/compile/function_module.py", line 1777, in orig_func
tion
    defaults)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/compile/function_module.py", line 1641, in create
    input_storage=input_storage_lists, storage_map=storage_map)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/link.py", line 690, in make_thunk
    storage_map=storage_map)[:3]
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/vm.py", line 1003, in make_all
    no_recycling))
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py", line 256, in make_thunk
    compute_map, no_recycling)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/op.py", line 970, in make_thunk
    no_recycling)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/op.py", line 879, in make_c_thunk
    output_storage=node_output_storage)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cc.py", line 1200, in make_thunk
    keep_lock=keep_lock)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cc.py", line 1143, in __compile__
    keep_lock=keep_lock)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cc.py", line 1595, in cthunk_factory
    key=key, lnk=self, keep_lock=keep_lock)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cmodule.py", line 1142, in module_from_key
    module = lnk.compile_cmodule(location)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cc.py", line 1506, in compile_cmodule
    preargs=preargs)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/sandbox/cuda/nvcc_compiler.py", line 410, in compile
_str
    return dlimport(lib_filename)
  File "/home/cogniton/anaconda/envs/DL/lib/python2.7/site-packages/theano/gof/cmodule.py", line 299, in dlimport
    rval = __import__(module_name, {}, {}, [module_name])
RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{algo='small', inplace=True}(GpuContiguous.0,
 GpuContiguous.0, GpuAllocEmpty.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv', precision='float32'}
.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{algo='smal
l', inplace=True}(<CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(flo
at32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]")

Fixed the issue.  The bug was due to drivers.
B.

Can you tell more? I have see a few report of this, it could help other.
Can you tell what your GPU was, what is the driver version you had problems
and which one worked well?
On Tue, May 10, 2016 at 5:54 AM, Brian McMahan notifications@github.com
wrote:

Fixed the issue. The bug was due to drivers.
B.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/2678#issuecomment-218111540

@braingineer I also have weird errors because I updated the drivers (see Theano/Theano#4495). Do you have a working solution to this bug?

short version:

I have a gtx 980
originally (last year) started with linux display drivers then upgraded to cuda 7.0
yesterday, upgraded to cudnn v5 and cudnn v5 assumes cuda 7.5
tried to then upgrade cuda to 7.5
if cuda 7.5 got mucked for any reason, it creates issues
assuming the  cuda 7.5 install not being exactly what cudnn v5 expects,  my only (desperate last attempt) solution was to completely wipe the os and reinstall to 7.5 from a fresh install

uninstalling cuda drivers to get a fresh install seems to be problematic (according to cuda forum posts)

longer version:
The only reported case I could find for CUDNN_STATUS_NOT_INITIALIZED was here: https://github.com/karpathy/neuraltalk2/issues/57
So that lead me to believe I had the wrong cuda version.    It turns out cuDNN is for 7.5 or later. cuDNN v5 Release Candidate (RC) (April, 2016), for CUDA 7.5 and later..    So, I tried to upgrade.  This lead to some other issues because installing the cuda 7.5 install script wasn't quite working.
For me, most of the difficulty stemmed from a crappy attempt to get ethereum working and even before that, having originally installed the drivers specific to my card (the display drivers) rather than the cuda drivers.   The internet (and accumulating frustrating experiences) pointed at having to just completely wipe the OS and reinstall because of residual traces of the drivers.  (which, it wasn't so bad because I have a separate partition for the os contents..).
Hope that helps.

authors: braingineer nouiz tboquet

repo: fchollet/keras


text:
Hessian-free optimization?

Just probing here a little bit to see if there was an interest for a Hessian-free optimizer, as e.g. in theano-hf by boulanni. Don't know the Keras code much yet, but I'd like to get some input if that's doable in a reasonable amount of time...

It would definitely be possible to add it as an Optimizer (see keras/optimizers.py).
It's not a priority, since HF has been shown to underperform RMSprop and Adagrad, while being more computationally intensive.

Oh OK, wasn't aware of that... can you point me to a paper etc. with some benchmarks etc?

Can't find any paper, but what I would recommend you do is simply to implement it in Keras (should be quick to adapt boulanni's code) and benchmark it (time and accuracy) against other optimizers. Then you can answer the question without having to rely on what I remember reading about.
The fact is, nobody uses Hessian-Free optimization. If there was any advantage to it, everybody would be using it.

Just a FYI to everybody seeing this: a paper by Sutskever et al discusses Heassian-free vs. momentum methods here:
http://machinelearning.wustl.edu/mlpapers/paper_files/icml2013_sutskever13.pdf
Quote: "Momentum-accelerated SGD, despite being a firstorder
approach, is capable of accelerating directions
of low-curvature just like an approximate Newton
method such as HF. Our experiments support the idea
that this is important, as we observed that the use of
stronger momentum (as determined by µ) had a dramatic
e↵ect on optimization performance, particularly
for the RNNs. Moreover, we showed that HF can be
viewed as a first-order method, and as a generalization
of NAG in particular, and that it already derives some
of its benefits through a momentum-like mechanism."
So yeah, probably Hessian-free is not very useful...

For what it's worth (responding to an old thread) the above quote by @harpone does not establish the conclusion.  Actually the 2013 ICML paper quoted above demonstrates that careful use of momentum  methods almost closes the gap in performance that existed between HF-based methods and other first-order methods.  That is, as of 2013, the HF-based methods of Martens + Sutskever were still better than the momentum methods employed in the 2013 paper. (at least for a number of important tasks, esp. training SRNs)
Perhaps the conversation subsequently evolved to the point that HF-based methods no longer tops after the advent of Adam and others.  But that requires more reading.  Perhaps I will find the paper Chollet refers to about Adagrad and RMSprop as I read further.

I also have a need for a HF optimizer for estimating RNN parameters.   I have played around with various first order optimizers but I am seeing too much noise,  I was wondering if anyone has build a HF optimizer for Keras yet or whether I need to build one from scratch.   I am currently looking at the Optimizer class to figure out what needs to be done.

source: gharchive/issue

authors: fchollet geminatea harpone quantlearn

license_type: permissive

license_source: github-api


text:
Return decay from get_config of all optimizers

This commit adds the decay strength to the config dicts of all optimizers where it was not present.

LGTM, thanks

source: gharchive/pull-request

authors: fchollet jayanthkoushik


text:
Add link headers to versioned resources

Resolves both:
https://jira.duraspace.org/browse/FCREPO-1975 and
https://jira.duraspace.org/browse/FCREPO-1974

It seems that most of this involves adding headers using javax.servlet. When the response is generated, though, we are using javax.ws.rs.
This certainly works, but I wonder why we wouldn't just use JAX-RS for everything? That would mean using the JAX-RS API such as ok(...).header(...).header(...).build() rather than relying on changing the state of the internal servletResponse field.

That is a good point, however, this PR is actually a very minor change to FedoraVersions with some refactoring of the location of existing private and protected methods. I definitely think there would be value in re-examining/refactoring our use of JAX-RS.

I'm OK with using the servlet-api as is currently the case. I'm more noting the fact that we should evaluate our use of JAX-RS along the lines of this much neglected ticket that has my name on it: https://jira.duraspace.org/browse/FCREPO-1664

Merged via 15a0b2687156498a1c4722abe182fcdca9dde154

authors: acoburn awoods


text:
airsdk compress swf not be used

all fws

Can you explain more?

adobe air sdk 25
setting optimize bytecode =true.not use.
my proj get  swf 3M size.
and i addtional compiler options -compress=true,
i get swf 1M size.

This setting only works in release mode.

@matrix3d This issue can be considered solved?

authors: Neverbirth SlavaRa matrix3d

repo: fdorg/flashdevelop

license: MIT


text:
Comment:Step-Basic-Real-time

The link is invalid for server code:
https://github.com/feathersjs/feathers-docs/blob/master/examples/step/01/WebSocket/1.js
The link that worked for me was:
https://github.com/feathersjs/feathers-docs/blob/master/examples/step/01/websocket/1.js

Thanks for the catch! There's a PR waiting to fix this.
On Sat, Apr 22, 2017 at 7:09 AM, Damian Phillips-king <
notifications@github.com> wrote:

The link is invalid for server code:
https://github.com/feathersjs/feathers-docs/blob/master/
examples/step/01/WebSocket/1.js
The link that worked for me was:
https://github.com/feathersjs/feathers-docs/blob/master/
examples/step/01/websocket/1.js
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/feathersjs/feathers-guide/issues/9, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABezn4t0Q-nvDVJCWqkzOu6D66rKqgjyks5ryd_TgaJpZM4NFDYH
.

authors: eddyystop imdpk

repo: feathersjs/feathers-guide

license: mit

license_source: bigquery


text:
Gateway detection and support for internal payments within a Mint

Enable gateways to detect payments internal to a mint, and resolve these without paying itself (the gateway) over the LN network.
To detecting internal payments when attempting to pay an invoice (outgoing contract), the gateway uses the invoice hash to requests for any existing offer from the gateway. Existence of such an offer indicates that the payment is internal to a gateway, otherwise gateway should treat this invoice as a normal external route.
On detecting an internal payment from an invoice, the gateway attempts to buys the offer and then proceeds to request a decryption of the preimage from the offer it bought. With decrypted preimage, the gateway proceeds to claim the original outgoing contract, thereby collecting fees for it's work facilitating this internal payment.
Additional:

If a gateway does not get a decrypted preimage after paying the offer, it can proceed to claw back funds from the offer

Closes #461, Closes #486

Codecov Report

Merging #495 (477a1c8) into master (2a02caa) will decrease coverage by 0.12%.
The diff coverage is 51.68%.

@@            Coverage Diff             @@
##           master     #495      +/-   ##
==========================================
- Coverage   72.74%   72.62%   -0.13%
==========================================
  Files          83       83
  Lines       10637    10862     +225
==========================================
+ Hits         7738     7888     +150
- Misses       2899     2974      +75

Impacted Files
Coverage Δ

ln-gateway/src/ln.rs
0.00% <0.00%> (ø)

ln-gateway/src/lib.rs
38.36% <44.44%> (-3.07%)
:arrow_down:

client/client-lib/src/lib.rs
86.13% <68.42%> (-2.16%)
:arrow_down:

fedimint-api/src/db/mem_impl.rs
84.48% <0.00%> (-2.19%)
:arrow_down:

fedimint/src/consensus/mod.rs
92.90% <0.00%> (-2.03%)
:arrow_down:

client/client-lib/src/mint/mod.rs
81.64% <0.00%> (-0.95%)
:arrow_down:

modules/fedimint-mint/src/lib.rs
90.38% <0.00%> (-0.37%)
:arrow_down:

fedimint/src/net/peers.rs
92.68% <0.00%> (-0.23%)
:arrow_down:

... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

On our group call list week didn't we agree to have the gateway do it all?
It seems here everything is happening in the client?
Doing it all in the client is very straightforward: When the /pay_invoice method is exercised, check if you can buy the preimage from the federation before doing any RPC calls with your lightning node.

It seems here that internal payment detection is happening in the client? I don't think this is necessary.

I'm currently doing this within the Gateway client, which I believe runs as a core part of the gateway right? I may not have fully understood the boundaries of client apps!

@okjodom We should probably have an integration test for this, I could help you modify the test fixtures to create one.

@okjodom We should probably have an integration test for this, I could help you modify the test fixtures to create one.

Excellent! IMO the biggest gaps I came across with the fixtures as they are is that

GatewayTest has a  public user : UserTest that has been sufficient for validating sends through gateway, but now we need two users independent and a gateway?
I'm not sure how to associate an invoice from LightningTest with a receiving  UserTest so we can simulate a 3-step hop between user to gateway to user, in validating an internal payment

Possibly other gaps I haven't realized. I'd love to pair program at your next availability to add tests

This is my attempt at internal routing btw, not tested yet, just wanted to see how I'd architect it: bf083967c83c85abf6aa570681730577790891cd

This is my attempt at internal routing btw, not tested yet, just wanted to see how I'd architect it: 11c451ffedb675651b1c5c4099faf436fa9243b6
EDIT: I got more of an appreciation for some of the choices you made btw 😄 it's a hard-ish problem to do it elegantly

😎 I hope we learn more to do solve it better with future iterations.

This is my attempt at internal routing btw, not tested yet, just wanted to see how I'd architect it: 11c451ffedb675651b1c5c4099faf436fa9243b6
EDIT: I got more of an appreciation for some of the choices you made btw 😄 it's a hard-ish problem to do it elegantly

@elsirion , your proposal works nearly out of box! I adopted most of it, leaving out the fallback where you would attempt routing as external if routing as internal payment failed. My primary reasoning is that it's better to just fail early because cln would still fail us in self-payment scenario.
The utils are not necessary if we don't need the fallback behavior.
Much cleaner!

Just for completeness from yesterday's chat:
The use case for fallback is: someone has a private channel with our LN node and thus adds it as a routing hint. When they want to receive it looks like a federation-internal payment but isn't and CLN would succeed routing it.

Closing current PR in favor of #533

authors: codecov-commenter elsirion jkitman justinmoon okjodom

repo: fedimint/fedimint


text:
Bump fh-wfm-workflow-angular version

Related to https://github.com/feedhenry-raincatcher/raincatcher-workflow-angular/pull/4

Outdated. Closing

authors: nialldonnellyfh wtrocki


text:
Upgrade version of fh-sync-js

Jira link(s)
https://issues.jboss.org/browse/RHMAP-20023
What
Update version of fh-sync-js to 1.3.2
Version bump to 3.0.10
Changelog update
Why
To pull in this fix: https://github.com/feedhenry/fh-sync-js/pull/45

/restest

retest this

repo: feedhenry/fh-js-sdk


text:
Completion popup should not move with the cursor, but stay with the beginning of the completed text

In most cases the completion does its best to not move with the cursor. However, due to some limitations in the editor it may not always be the case

authors: girba syrel

repo: feenkcom/gtoolkit


text:
这个软件如何安装呢？

我往在readme里注明下：GOPATH的设置，如何安装

你可以直接先go get github.com/feilengcui008/tcplayer，然后进入cmd目录go build


text:
Page admin showing each extension twice, breaks admin page

We've just started setting up a FeinCMS based blog, but have encountered a small problem.
We set up the Page model in the normal way, and register a few extensions like this:
Page.register_extensions(
    'feincms.module.extensions.datepublisher',
    'feincms.module.page.extensions.excerpt',
    'feincms.module.page.extensions.relatedpages',
)

The extensions appear to only be loaded once - that line of code is run once, no "AlreadyRegistered" exceptions, and the migrations all work fine which implies the model is being created properly.
However, the admin shows two tabs for each extension. The tabs contain the same content, but only one (non-deterministic) tab will work at any time, which means you have to enter data twice in the admin to be sure that it will save. Also some widgets in the repeated tabs just don't work, an example of this is the multiple selection widget for the "relatedpages" extension.
I don't know enough about FeinCMS to know where to even begin looking for what might be causing this. Does anyone have any ideas about what might be causing this, or even a good place to start looking?

Thanks for the report! Which version of FeinCMS and Django are you using?
Sounds like something that should be immediately fixed.

Hi, Django 1.9.1 and FeinCMS 1.11.4. I can test on 1.9.2 soon as well, but I don't remember anything in the release notes that would affect this.

Thanks! I'll have a look at this later today.

Does the browser Javascript Console show any errors?

@mjl Yes, when I use "relatedpages", I get the following error:
Uncaught TypeError: Cannot read property 'id' of null
    window.SelectFilter.init	@	SelectFilter2.js:24
      (anonymous function)	@	VM5379:1

This appears to be an issue with there being two of the same multiple selection widgets on the page, but I'm not certain.

It seems that for some reason the initialization of the selectbox is run twice.
SelectFilter2.js renames the old select box to <name>_old, therefore the element cannot be found anymore, and that's the reason for the JavaScript error above. Probably Django's addEvent is run twice:

First when parsing the HTML
Afterwards when reinserting the HTML when building the tabbed interface (https://github.com/feincms/feincms/blob/master/feincms/static/feincms/item_editor.js#L398) — @mjl we should probably not reinsert the HTML, but instead reinsert the DOM nodes directly with $.fn.append or node.appendChild...

... unfortunately I still can't reproduce the problem with extension tabs appearing twice.

It seems that for some reason the initialization of the selectbox is run twice.

I've seen that message in the console for quite some while, it doesn't appear to be harmful though. More a red herring I'm afraid.

Some more info that might help... We override item_editor.html to add a conditional on whether there are translations available, since we a) don't use translations, and b) raise template syntax errors on any missing template variables, however this doesn't appear to make a difference (I've tried not overriding it, and we still have the issue).

If I modify relatedpages.py to call add_extension_options twice I get the same problem. But why should relatedpages.Extension.handle_modeladmin and friends be called twice?

Ok, I think I'm getting closer to finding the issue. I haven't confirmed this yet, but:
FeinCMS registers the Page with the default admin site, however we use a custom admin site instance. When autodiscover is on for admin modules, Django reads in FeinCMS's admin.py and causes the registration to happen to the default site, which we don't use. Our own registering to our custom admin site is then a second load, which is causing the extensions to be loaded twice.
I'm not sure what the solution here is. We are trying to disable autodiscover as we don't want it, but I guess the ultimate aim for FeinCMS would be to support custom admin sites, with and without autodiscover.

Great! Is there a reason why you can't just set FEINCMS_USE_PAGE_ADMIN = False in your settings?
This would of course still mean that FeinCMS pages cannot be used in more than one admin site at the same time...

Ah, that looks perfect! We hadn't seen that in the documentation. Thanks!

It's not even mentioned in the page documentation, only under settings. Does it work?

@danpalmer Does it work for you now? If yes we should document this, and also document FEINCMS_USE_PAGE_ADMIN.

The TypeError above is fixed in https://github.com/feincms/feincms/commit/ed973ac9c3ccbfca5c8b8bbc11e02c68d9978933.
Some documentation has been added in https://github.com/feincms/feincms/commit/94ffa872ac0a3addca8a8f8b26860b96f66826bd#diff-3fd23e085e479501733d484b109d838aR91
Closing this issue. @danpalmer Please reopen if things do not work for you. Thanks!

authors: danpalmer matthiask mjl

repo: feincms/feincms


text:
Failed to resolve: com.github.felHR85:UsbSerial:6.1.0 when move to Artic Fox

Hi,
I upgrade to Artic Fox 2020.3.1 Patch2 (built Aug 26, 2021)
the error resolving UsbSerial appears:
Failed to resolve: com.github.felHR85:UsbSerial:6.1.0
Project Gradle:
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
and Module Gradle:
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdk 30
defaultConfig {
applicationId "com.jcastano.testserialport_1"
minSdk 29
targetSdk 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.felHR85:UsbSerial:6.1.0'
}
Regards

Facing same issue in Android Studio Arctic Fox | 2020.3.1 Patch 3
@felHR85  can you please help us here.

The config bellow works for me.
in root build.gradle:
buildscript {
    ...
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
    ...
}

in settings.gradle:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}

in module build.gradle:
dependencies {
    implementation 'com.github.felHR85:UsbSerial:6.1.0'
}

authors: UnisonControls farmisen jorgeEA3HKZ


text:
error: expose_camera_stream_source - Integration

Hi There
Trying to implement this and get my TUYA cam in grigate :)
when i update my configuration.yaml i get thoe below error at restart.
First i just pasted "expose_camera_stream_source:" into the end of my config ...thats not working.
then "expose_camera_stream_source: camera.denver_shc_150" ...thats not working.
so i am a bit usunre what i am doing wrong?
Failed to restart Home Assistant
The system cannot restart because the configuration is not valid: Integration error: expose_camera_stream_source - Integration 'expose_camera_stream_source' not found.

Install from HACS
Restart HA
Add expose_camera_stream_source: in your configuration.yaml (do not add anything else)
Restart HA

Can you double check you followed these steps?

First i just pasted "expose_camera_stream_source:" into the end of my config ...thats not working.

If it continues to fail here, let me know what exactly is not working. Check your HA logs for hints.

the issue is that i cant restart HA after update of config.
i bet that i am doing something wrong it just says:
Failed to restart Home Assistant
The system cannot restart because the configuration is not valid: Integration error: expose_camera_stream_source - Integration 'expose_camera_stream_source' not found.

Are you sure you restarted HA after installing from HACS?

Oh, of course, remove expose_camera_stream_source: from your configuration.yaml if you have added it before restarting after installing with HACS.

ok sorry about that!
it seems that it where NOT isntalled even though i where sure that i installed it.
Thank you!

Weird. Anyway, let me know if you managed to add your Tuya camera to Frigate after all. :)

so folowing the guide: https://github.com/felipecrs/hass-expose-camera-stream-source
I guess that the ip...is the IP of my homeassistant installation keeping the port as that is the port of the RTSP stream that you create?
in my case my home assistant in running on 192.168.0.24 i guess i could be using "homeassistant.local"
so it should be as below?
frigate.yml
my_camera:
ffmpeg:
inputs:
- path: rtsp://192.168.0.24:8554/my_camera

Your example seems correct to me. I'm not sure if homeassistant.local would work, feel free to test though.

ill give it a try if /when all is working

i got Frigate running though the feed is just green.
Sanity check:
should i be able in like VLC player to open:
rtsp://192.168.0.24:8554/camera.denver_shc_150
"camera.denver_shc_150" is the entity name i HA

Yes you should be able to view the RTSP link in VLC first. But the URL should have the name of the stream you configured in go2rtc, not the name of the HA camera. Unless you configured the name in go2rtc to be exactly equal the name in HA.

go2rtc.yaml
streams:
my_camera:
- echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.denver_sho_110
So in thise case it will be:
rtsp://192.168.0.24:8554/my_camera

Correct.
Em sáb., 19 de nov. de 2022 18:23, tommymogensen @.***>
escreveu:

go2rtc.yaml
streams:
my_camera:

echo:bash
/config/custom_components/expose_camera_stream_source/get_stream.sh
camera.denver_sho_110

So in thise case it will be:
rtsp://192.168.0.24:8554/my_camera
—
Reply to this email directly, view it on GitHub
https://github.com/felipecrs/hass-expose-camera-stream-source/issues/1#issuecomment-1320972623,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHBWMEJOMTO4OS7K5DYVEG3WJFAODANCNFSM6AAAAAASFO5XVE
.
You are receiving this because you commented.Message ID:
@.***
com>

i got it working in frigate now!
How do i send you a beer?

Hahaha. Great! I'm happy it worked for you!
If you can star the repo that would be already awesome. Thanks!

authors: felipecrs tommymogensen


text:
Re: Issue #10

Contribution to issue #11

Hello, friend!
@aadityakhare can you describe a little bit what you are adding? Thank you so much and good Hacktoberfesting!

Well, I'd been working on a repository to add algorithms in 3 languages: C, Java, Python.
some of them are not in all 3 languages.
My addition has algorithms on the following:

Searching and sorting (Binary, Radix, Selection, Shell, etc.
Math (Armstrong no., tower of Hanoi, Integration, etc.)
Cryptography ciphers (atbash, vigenere, etc.)
Robotic Locomotion (PID, a*)

@aadityakhare that is awesome! C is a powerful beast, we love it here at my college.
I'm still a newbie to cryptography myself, what was your study strategy? Textbooks, internet resources? Have you used it in real world problems?
Thanks for the pull-request, I'll definitely take a look at the code. 👍

@felipecustodio Yeah I love C too. Since my majors is Electronics and Communication, my resources for studying anything including cryptography in coding were mainly from the internet. Study strategy: never just read up on a concept and leave it there, do implement it and see how it works, what it does. I hunt for problems on sites like hackerrank and codechef and implemt it there.

authors: aadityakhare felipecustodio

repo: felipecustodio/algorithms


text:
Testing and Debugging - Backend and Frontend

Test the backend routes using a tool like Postman to ensure they handle CRUD operations correctly. Test the frontend components and services to verify their integration with the backend API. Debug and fix any issues or errors that arise during testing.

Branch: feature/testing
Branch: bugfix/debugging-issues

repo: felipesud/temple-finder-app


text:
R interpreter for zeppelin

Hello Felix,
I saw your talk on youtube about SparkR + Zeppelin at the Seattle Spark meetup and I wanted to inquire how you set up the R interpreter for zeppelin. Is it officially supported in Zeppelin-0.5 or 0.6?
Let me know.
Thanks,
Daniel

Hello!
R interpreter is not currently merged to a Zeppelin release yet.
You are welcome to join the Zeppelin community for discussions/questions/requests: http://zeppelin.incubator.apache.org/community.html

@felixcheung Seriously?

I just watched the youtube video, Felix.  Wow.  Really, just wow.

@elbamos I'm not sure what you are saying, but you are welcome to talk to me directly, since you have my contacts.

@felixcheung Well, it looks like you took code that you didn't write -- where you had threatened to (falsely) claim the code was stolen from you, unless you were listed as a developer, even though you hadn't done any work -- and passed it off toward the user group as though it were your own.

@felixcheung
No Felix, you are lying.  You passed off my code as your own to the user's group.  And now you are trying to cover it up.  This belongs in your repo for discussion because you are the wrongdoer.

Since you have been trying to delete comments, here's one of the key ones:

@felixcheung Well, it looks like you took code that you didn't write -- where you had threatened to (falsely) claim the code was stolen from you, unless you were listed as a developer, even though you hadn't done any work -- and passed it off toward the user group as though it were your own.

To clarify, my implementation is completely my own and has been made available on day-1 as documented on my slides in my fork on github. I have not made a PR and do not plan to update it further.
The Zeppelin community is welcome to follow up on the best implementation and discuss as I've pointed out above.
Thanks, more community contribution is welcome!

@felixcheung That's a lie Felix.  You never wrote a working interpreter.
Your code never implemented the "interpret" function.  It was an empty shell that said it was an interpreter but actually did absolutely nothing.
You demanded to participate with me when you saw how much progress I'd made.  Then, when you failed to make any contribution at all or do even the slightest work, and I told you I would make the PR without you, you threatened to claim the code was stolen unless I credited you as the author.

And since you were caught, you've been going around doing demos passing off the code I wrote as your own.  Then, when people try to go to your git and they can't get the code working, you've been ignoring them or making up excuses.

authors: Emaasit elbamos felixcheung

repo: felixcheung/vagrant-projects


text:
GPUFluidApp.obj : error LNK2019: unresolved external symbol

Hi, I've just started to use Cinder, and thanks for the project, it works pretty fine on my Mac.
But, I have some trouble with the PC version.
I'm using VS 2015. After debugging, I got errors like:

Do you know how to fix this? Thanks!

I havent tried it on windows yet but have you definitely added the .cpp files to visual studio project so they compile? It looks like it cant find the GPUFluid class / implementation which means they probably havent been added to the VS solution.

hey im trying to compile this on linux  but i got this
build] FAILED: Debug/GPU-Fluid/GPU-Fluid  [build] : && /usr/bin/c++ -g -rdynamic CMakeFiles/GPU-Fluid.dir/home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp.o -o Debug/GPU-Fluid/GPU-Fluid  /home/jacos/Cinder/lib/linux/x86_64/ogl/Debug/libcinder.a  -lGL  -lGLU  -lSM  -lICE  -lX11  -lXext  -lXcursor  -lXinerama  -lXrandr  -lXi  -lz  -lcurl  -lfontconfig  -lpulse  -lmpg123  -lsndfile  -lgobject-2.0  -lglib-2.0  -lgstreamer-1.0  -lgstbase-1.0  -lgstapp-1.0  -lgstvideo-1.0  -lgstgl-1.0  -ldl  -lpthread && : [build] /usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset 6232a [build] CMakeFiles/GPU-Fluid.dir/home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp.o: in functionGPUFluidApp::update()':
[build] /home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp:81: undefined reference to GPUFluid::step()' [build] /usr/bin/ld: CMakeFiles/GPU-Fluid.dir/home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp.o: in function GPUFluid::splatRgb(glm::vec<2, float, (glm::qualifier)0>, cinder::ColorAT, float)':
[build] /home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluid.h:25: undefined reference to GPUFluid::splatFbo(std::shared_ptr<cinder::gl::Fbo>&, glm::vec<2, float, (glm::qualifier)0>, glm::vec<4, float, (glm::qualifier)0>, float)' [build] /usr/bin/ld: CMakeFiles/GPU-Fluid.dir/home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp.o: in function GPUFluid::splatVelocity(glm::vec<2, float, (glm::qualifier)0>, glm::vec<2, float, (glm::qualifier)0>, float)':
[build] /home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluid.h:26: undefined reference to GPUFluid::splatFbo(std::shared_ptr<cinder::gl::Fbo>&, glm::vec<2, float, (glm::qualifier)0>, glm::vec<4, float, (glm::qualifier)0>, float)' [build] /usr/bin/ld: CMakeFiles/GPU-Fluid.dir/home/jacos/Cinder/sketches/GPU-Fluid/src/GPUFluidApp.cpp.o: in function void __gnu_cxx::new_allocator::construct<GPUFluid, glm::vec<2, int, (glm::qualifier)0> const&, float>(GPUFluid*, glm::vec<2, int, (glm::qualifier)0> const&, float&&)':
[build] /usr/include/c++/10.2.0/ext/new_allocator.h:150: undefined reference to GPUFluid::GPUFluid(glm::vec<2, int, (glm::qualifier)0>, float)' [build] collect2: error: ld returned 1 exit status
any idea what it is

@cyrstem Hi there. I eventually switched back to mac system and it worked. I failed to solve anything in the end. Sorry.

@AliceLeon  @felixfaire   fun fact  that took way to long to figure it out ........ if you just copy the full  class GPUFluid to GPUFluidApp.cpp and delete the other  2 files  it  compiles  on linux and windows

authors: AliceLeon cyrstem felixfaire

repo: felixfaire/GPU-Fluid


text:
Get id of value

How can iget selected id from autocomplete_textfield ?

This id my code :
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'User.dart';
import 'dart:convert';
import 'package:autocomplete_textfield/autocomplete_textfield.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
AutoCompleteTextField searchTextField;
GlobalKey<AutoCompleteTextFieldState> key = new GlobalKey();
static List users = new List();
bool loading = true;
//https://jsonplaceholder.typicode.com/users
void getUser() async {
try {
final response =
await http.get("https://jsonplaceholder.typicode.com/users");
if (response.statusCode == 200) {
users = loadUser(response.body);
setState(() {
loading = false;
});
} else {
print("Error!");
}
} catch (e) {
print("Error!");
}
}
static List loadUser(String jsonString) {
final parsed = json.decode(jsonString).cast<Map<String, dynamic>>();
return parsed.map((json) => User.fromJson(json)).toList();
}
@override
void initState() {
getUser();
// TODO: implement initState
super.initState();
}
Widget row(User user) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
user.name,
style: TextStyle(fontSize: 16.0),
),
SizedBox(
width: 10.0,
),
Text(
user.email,
style: TextStyle(fontSize: 16.0),
),
],
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
loading
? CircularProgressIndicator()
: searchTextField = AutoCompleteTextField(
key: key,
clearOnSubmit: false,
suggestions: users,
style: TextStyle(color: Colors.black, fontSize: 16.0),
decoration: InputDecoration(
contentPadding: EdgeInsets.all(8.0),
hintText: "Search box",
hintStyle: TextStyle(color: Colors.blueAccent),
),
itemFilter: (item, query) {
return item.name
.toLowerCase()
.startsWith(query.toLowerCase());
},
itemSorter: (a, b) {
return a.name.compareTo(b.name);
},
itemSubmitted: (item) {
setState(() {
searchTextField.textField.controller.text = item.name;
});
},
itemBuilder: (context, item) {
return row(item);
},
),
Text(searchTextField.textField.controller.text)
],
),
);
}
}


text:
[Bug]: Google Chat (Hangout chat) Text input focus lost

Preflight Checklist

[X] I have read the Contributing Guidelines for this project.
[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Ferdium Version
6.2.0
Recipe Name
hangoutschat
Recipe Version
1.6.0
Last Known working version of the recipe
n/a
Steps to reproduce

Open any char window
The focus remain on editor box for a second and then focus is lost.

Expected Behavior
Focus should remain on text input.
Actual Behavior
Focus is lost
Screenshots
Not applicable
Additional Information
No response

Same thing with Teams

repo: ferdium/ferdium-recipes


text:
Skype & Discord icon update

Pre-flight Checklist
Please ensure you've completed all of the following.

[x] I have read the Contributing Guidelines for this project.
[x] I agree to follow the Code of Conduct that this project adheres to.

Description of Change

Updated the Skype and Discord logos to their current forms.

Hi @Arthur-Huan thanks for the PR. In order for the change to be pushed to users, the version of the recipe in their corresponding package.json need to be increased (by adding 1 to the patch number for each of them).

authors: Alphrag Arthur-Huan


text:
Duodecimals functions

Complete
src>>fermulerpy>>elementary>>duodecimals.py

no need

repo: fermulerpy/fermulerpy


text:
CI/deploy for search index (data.json)

@karthik2804 and I were discussing the following pain point: Currently, this website's search index (static/data.json) needs to be updated in each applicable PR (any PRs updating documentation content, no matter how small, are applicable).  There is a command to do so (npm run build-index) and a note/reminder on the PR template, but it is still an extra step for contributors -- not to mention it introduces the common scenario of merge conflicts occuring to in-flight PRs as others are merged in.
Therefore, we'd like to find a solution where CI/automation does this chore work in the background, removing the need for contributor PRs to update this file (and eliminating the frequent merge conflict potential).
In brainstorming with @karthik2804, these are the top candidates that seemed preferable to some other scenarios discussed.
Context
Currently, the website itself is published to bindle as a Spin app after cloning this repo at a configured branch and/or commit.  The live website consists of a spin up --bindle-id command using the published bindle ID.
Publish/deploy from OCI registry reference
Added below, bumped up to top potential candidate (bonus: dogfoods Spin's newly-added OCI reference support):
On every push to main, an automation agent (eg GH action) would clone the repo and run npm run build-index, then publish the website (Spin app) to an OCI registry (obvious choice: ghcr.io/fermyon/developer) via spin registry push.  We'd remove Bindle from the equation and the website Nomad job would be updated to run from the pushed image reference, eg spin up -f ghcr.io/fermyon/developer:<tag>.  As the search index is commited in the form of an image, we'd .gitignore the file.
Considerations: To achieve parity with current deployment workflows, which allow for deploying from arbitrary branches/commits on the fermyon origin, we'd perhaps want to add publishing of images on PRs (again just for branches on the fermyon org).  Or, we could decide that ad hoc/out-of-band publishing by those with access to this repo's container registry is sufficient prior to non-main deploys.  For the default website image, we could use a mutable tag like latest that would be updated on every push to main.  Alternatively, we could follow the convention of using unique/"immutable" tags but would want to look into storage costs and/or automated cleanup.
Alternative:
Deploy website from branch other than main
This retains current behavior of tracking the search index in git, albeit via a different branch from main.
On every push to main, an automation agent (eg GH action) would clone the repo and run npm run build-index.  To avoid churn from then having the agent push to main again (if so, we'd have one automation commit paired with every contributor commit to main), automation would push its changes to a separate branch, say, deploy (where static/data.json will still be tracked by git, as opposed to on main where we'd .gitignore it).
The website would then be deployed from the deploy branch, similar in spirit to the classic gh-pages approach.  The deploy action would be updated to watch push events to this branch and the publish/website jobs would be updated similarly.
Thoughts/feedback @tpmccallum, others?

You know what, @karthik2804, we could also have the GH action publish the site to an OCI registry (obvious choice: ghcr.io/fermyon/developer) and then we could just remove bindle from the mix and update the website Nomad job to run from the reference, eg spin up -f ghcr.io/fermyon/developer:<tag>.  We wouldn't need a separate deploy branch as the data.json changes would only be committed in the form of said image.

That sounds like a good idea to me @vdice.

Thanks @karthik2804, I updated the original issue description w/ the OCI approach.  Added a note around your question (out-of-band) around deploying arbitrary branches/commits and potential storage costs of accrued OCI tags -- good points to raise.

I would love to see this.  data.json is one of the banes of my life.

Is the "Deploy website from branch other than main" approach able to be implemented in the short term to trial?
I really like this idea.
@vdice @karthik2804 is there anything you need from me; testing/usage?
I think implementing a solution to the data.json file conflicts would be epic.

@tpmccallum I can revise https://github.com/fermyon/developer/pull/423 to allow deployments from branches other than main (which is possible today using the bindle-based approach, so it would be maintaining feature parity).
Apologies for having the draft PR sit so long.  To utilize GHCR, which is the most convenient container registry for this purpose, it being provided/paired to this self-same repo, we need a future release of the spin cli with its oci client updated (primarily to get concurrent pushes and pulls, so we don't time out attempting to push this Developer website app, what with its many layers of static assets).  @karthik2804 and I were talking about this today, actually, and we should be good to update the cli to use our fork of this oci library (see https://github.com/fermyon/oci-distribution).
Alternatively, we could utilize fermyon's DockerHub account and move this forward.  This would take a bit more config (eg passing in credentials for signing in to the registry) but certainly do-able.
While we mull over the preferred registry approach, I can update the draft PR with the changes mentioned in the first paragraph above...

authors: itowlson karthik2804 tpmccallum vdice

repo: fermyon/developer


text:
Verify developer docs subdomain

Signed-off-by: tpmccallum tim.mccallum@fermyon.com

Fixed by https://github.com/fermyon/developer/pull/426


text:
Question on (error) logging

I have a catch clause:
        catch (Exception ex)
        {
            // TODO: how to log this properly? (Console?)
            exception = ex.ToString();
        }

https://github.com/christophwille/SpinHello/blob/27ee9a28351866fd167ed10039829ba6b8e704eb/src/Handler/Handler.cs#L84
I remember the comparison to CGI with error console out; does this apply/work in .NET that way too?

Console.WriteLine works — Spin captures both standard output and standard error and sends them to log files in ~/.spin/<application-name>/logs/.
You can also run spin up --follow-all to get the logs directly.

Ok, so basically one more thing to properly wrap to be to unit test "Did it log error conditions properly?" Maybe I can reuse ConsoleLogger/ILogger.

My idea with doing a standard ILogger didn't fly, I documenting it here if someone else has the same idea:
        var loggerFactory = LoggerFactory.Create(builder =>
        {
            builder.AddFilter("spin", LogLevel.Debug)
                   .AddConsole();
        });

        Logger = loggerFactory.CreateLogger("spin");

  Unhandled Exception:
  System.TypeInitializationException: The type initializer for 'SpinHello.Handler' threw an exception.
   ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
     at System.Threading.Thread.ThrowIfNoThreadStart()
     at System.Threading.Thread.Start(Boolean captureContext)
     at System.Threading.Thread.Start()
     at Microsoft.Extensions.Logging.Console.ConsoleLoggerProcessor..ctor()
     at Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider..ctor(IOptionsMonitor`1 options, IEnumerable`1 formatters)
     at System.Reflection.RuntimeConstructorInfo.InvokeNonEmitUnsafe(Object obj, IntPtr* byrefParameters, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr)
     at System.Reflection.ConstructorInvoker.InvokeUnsafe(Object obj, IntPtr* args, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr)
     at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSiteMain(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSite(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSiteMain(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSite(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSiteMain(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSite(ServiceCallSite callSite, RuntimeResolverContext argument)
     at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
     at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
     at System.Collections.Concurrent.ConcurrentDictionary`2[[System.Type, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Func`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope, Microsoft.Extensions.DependencyInjection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetOrAdd(Type key, Func`2 valueFactory)
     at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
     at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
     at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[ILoggerFactory](IServiceProvider provider)
     at Microsoft.Extensions.Logging.LoggerFactory.Create(Action`1 configure)
     at SpinHello.Handler..cctor()
     --- End of inner exception stack trace ---

I added logging like this https://github.com/christophwille/SpinHello/blob/abef0de9810abe2894f1906e5dd740e672f19b34/src/Handler/Handler.cs#L98 (implemented via https://github.com/christophwille/SpinHello/blob/abef0de9810abe2894f1906e5dd740e672f19b34/src/Handler/SpinLogger.cs). That also allows me to mock the thing.

Thanks for working through this and taking the time to document your solutions - really appreciate it!

authors: christophwille itowlson radu-matei

repo: fermyon/spin-dotnet-sdk


text:
Update Headers Env Routes Integration Test to use Rust SDK.

Following up on #534 for #216, this updates the headers-env-routes-test test binary used by spin's integrations.
Signed-off-by: elias elias.jm.garcia@gmail.com

Realizing I jumped the gun because the integration is now failing. I probably won't have the time to sit down and correct the test behavior until tomorrow night or Tuesday (so apologies on my part) but my debugging seems to indicate that I entirely failed to insert the headers??? :upside_down_face:

Hi @ejmg, thank you for your help in updating tests to use the SDK.  We've now closed out the issue tracking these updates (https://github.com/fermyon/spin/issues/216) and so I'll close this Draft PR.  (Thanks for laying the groundwork in this PR as well!)

authors: ejmg vdice

repo: fermyon/spin


text:
feat(apps): add password hasher app

Adds a password hasher app with toggles for cpu (iterations), mem usage, password value and sleep

Ok, sounds like we're fine to get this in as-is and tweak/tune as needed.

repo: fermyon/spinkube-performance


text:
fix: treat multipart form as form

adds a more robust way to parse and check media types (case-insensitive, and aware of parameters, i.e. charset=utf-8)
updates parseFileUploadRequest to check if the media type is a multipart formdata rather than isFile=true

@abvthecity looks like an ete test is failing, otherwise this looks great

authors: abvthecity dsinghvi

repo: fern-api/fern


text:
function expression vs statement

I was wondering about folks preference in regards to expression vs statements.
Clearly it's important to understand the differences between the two in regards hoisting and also the use cases of each but there are often times where either could be used.
I can't find a recommendation - is there a guideline or for this in standardjs?
I see there's the "Enforce Function Style (func-style)" rule in ES Lint. I don't think I'm suggesting this be implemented but it would be nice to have an official line on the preferred approach.
Many thanks
Dave

Could you post some example code?  Probably easier to self-parse and understand what you're referring to?

Hi Daniel,
Thanks for your reply.
I'm generally referring to 'private' helper type functions that don't have value outside of their enclosing function. Take the save function below.
Here a function expression or declaration would suffice. For consistency, which one should I opt for?
/*
 * Example adding a comment with an optional replyToId
 */
function addComment (body, inReplyToId, callback) {
  // Define the save function with a function declaration
  function save (comment) {
    comment.save(function (err) {
      if (err) {
        callback(err)
      }
      callback(null, comment)
    })
  }

  // The above function could have been a function expression...
  // var save = function (comment) {
  //   comment.save(function (err) {
  //     if (err) {
  //       callback(err)
  //     }
  //     callback(null, comment)
  //   })
  // }

  if (inReplyToId) {
    Comment.findById(inReplyTo, function (err, doc) {
      if (err) {
        callback(err)
      }
      save(new Comment({ body: body, inReplyTo: doc.id }))
    })
  } else {
    save(new Comment({ body: body }))
  }
}

Hope this helps
Dave

I personally opt for function save,  but I don't think there is a hard-rule for this in standard.
Maybe there should be.
@feross ?

xo has one. I don't mind it.

Likewise I have opted for function save () {...} in the past. This is the also the advice from Crockford.
More recently I have noticed people using var save = function () {...} quite a lot.
While I don't have a strong preference, I would like to see some consistency within code base/across teams.

More recently though I have noticed people using var save = function () {...} a lot more.

Probably because you have to use that syntax if you are using context capturing lambdas:
var save = () => {}

I use arrow functions with callbacks or when I need to preserve context.
I'm not sure this holds true anymore, since it seems most engines have improved this by now... But it used to be that the following would give you worse stack traces:
// Anonymous function
const foo = function () {}

// Could be fixed by giving it a name
const foo = function foo () {}

With babel the default behavior seems to be to name the function:

Function declarations are preferred.
Function declarations have more intuitive hoisting behavior, i.e. you can use the function anywhere that's in-scope. With function expressions, only the variable is hoisted, so you can only use the function after the line where the assignment occurs.

Just tried enabling func-style to enforce function declarations, while making an exception for arrow function expressions, and got this result:
# tests 427
# pass  331
# fail  96

Full output: https://gist.github.com/feross/0d57fdddde82f55d618a
It's a high number, so leaning toward not enabling this. Much as I like it. Maybe if we do standard-strict?

For documentation, here's the rule I tested with:
"func-style": [2, "declaration", { "allowArrowFunctions": true }]

@feross how about V6?   I think it is a reasonable enough change and absolutely in the spirit of our existing rules.

@dcousens Agreed, but it's quite a bit of breakage (22% of the ecosystem).

@feross its also a break that could probably be resolved with a regex expression.

%sno/var \(\.\+\) = function \.\*(/function \1 (/gc

closing - we can move discussion of potential "next gen" or big breaking rule to the standard-strict issue: https://github.com/feross/standard/issues/382

authors: cesarandreu davidjamesstone dcousens feross rstacruz

repo: feross/standard


text:
Republish with updated NPM

The version of module which is currently published in npm registry appears to be affected by this npm bug:
https://github.com/npm/npm/issues/16734
Which prevents the application using this module (indirectly) from being deployed on Amazon AWS:
https://github.com/aws/aws-cli/issues/2639
Republishing the module using newer (or stable) version of npm should resolve the issue.

Installed the latest Node.js LTS and npm and republished. Hope this fixes the issue for you.
node -v
v8.10.0

npm -v
5.7.1

Published as 3.1.5.

repo: feross/typedarray-to-buffer


text:
Create issue templates

Add issue templates, see https://github.com/Skullians/ferrumc/issues/new/choose for a demo.

I approve

sick

authors: Skullians Sweattypalms

repo: ferrumc-rs/ferrumc


text:
🛑 Documentation is down

In 476912a, Documentation ($DOCUMENTATION) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Documentation is back up in 89ad6ad.

repo: ferry-develops/status-page


text:
Error when starting

Platform (Hardware/OS):
Unbuntu 16
Node version:
8.9.4
MagicMirror version:
2.2.2
Module version:
Lastest Master
Description of the issue:
when starting it intializes then goes right to ERROR
When run in debug: true it says undefined.
I ran the command line and my mic is 0.....
Not sure what's undefined but I've tried the mic at 0 and 1......still get ERROR

Not sure how I missed that. Thanks, homie.

hi fewieden, i tried the two commands:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ldconfig
but nothing showed up. i check the file directory and i cant seem to find any ldconfig file (also in hidden mode). it is missing somewhere?

It starts from initializing then ready choose a mode and immediately goes to ERROR, i checked the error.log it shows 1 1 1 1 1 1 ...

authors: adbeem cowboysdude mikeb8319

repo: fewieden/MMM-voice


text:
使用setCotent出错

ueditor编辑器bug建议修复：
版本：1.4.3.3和1.4.3.2都有此bug
错误：ueditor.all.js:7320 Uncaught TypeError: Cannot set property 'innerHTML' of undefined
备注：onload的事件中调用setContent设置内容时出错，但是onClick事件中调用setContent设置内容时又是正常的，真实奇葩的bug，请求修复！

我也是，后来这样就没报错了。
ue.ready(function(){ue.setContent(v);});

repo: fex-team/ueditor


text:
Markdown interpretation caching

Now every time an article gets loaded, its markdown content is compiled to html, and this makes the page flickers for a moment just after the click.
Possible solutions:

Compile the markdown to html on app loading, and cache everything (client side). Downside: long app loading time.
"Memoize" the markdown compilation, so compiling it only the first time and caching the result (client side). Downside: still flickering.
Compile everything server side. Downside: there's the possibility of having to send two copies of the data (one with html, and one without - for searching)

Is this really necessary?

repo: ff-/markiki


text:
Auto detection of Noise and servers spitting the same stuff at u

say we are doing enum I see this so much a host would spit nonsense back at us
cart                    [Status: 200, Size: 49144, Words: 2617, Lines: 11]
partner                 [Status: 200, Size: 49144, Words: 2617, Lines: 11]
tv                      [Status: 200, Size: 49144, Words: 2617, Lines: 11]
demo                    [Status: 200, Size: 49144, Words: 2617, Lines: 11]
employment              [Status: 200, Size: 49144, Words: 2617, Lines: 11]
trans                   [Status: 200, Size: 49144, Words: 2617, Lines: 11]
board                   [Status: 200, Size: 49144, Words: 2617, Lines: 11]
local                   [Status: 200, Size: 49144, Words: 2617, Lines: 11]
45                      [Status: 200, Size: 49144, Words: 2617, Lines: 11]
if it was python i know what i would do but go i do not do that
if its a 200 status code and the size is the same as well as the words and the size and status code alone could be used as a moc  noise reducer could u consider adding this?

or say host is responding with the same content for  all 200's seems like a fake response or firewall or something or if its does what did  i miss lol

Manually detect what are "fake positives" or "noisy", stop ffuf and run again with more calibration:
ffuf -acc local

It will fetch local, then add this to filtering config.

Yeah, if you are ok with the preconfigured requests (some random strings etc.), you can use -ac as well.
I'm closing this issue as I feel that it's resolved, in case you disagree, let me know and I'll open it again to continue the discussion.

authors: bsysop devcoinfet joohoi

repo: ffuf/ffuf


text:
[US02] Recuperar senha

Descrição
Eu, como Cuidador, desejo recuperar minha senha para que eu possa fazer login na plataforma, caso perca o acesso a senha cadastrada.
Nessa tarefa, deve haver um botão de esqueci minha senha na tela de login, ao clicar neste botão o usuário é encaminhado para uma tela onde informará seu email para que receba um link. Ao clicar neste link será encaminhado para uma tela onde será possível cadastrar a nova senha.
Pré-requisitos

#53

Critérios de Aceitacao

[ ] Deve haver a opção "Esqueci minha senha" na tela de login.
[ ] Ao clicar no botão "Esqueci minha senha", o usuário deve ser redirecionado para uma tela onde poderá informar seu email.
[ ] A tela de recuperação de senha deve incluir um campo para o usuário inserir seu email.
[ ] Deve haver um botão "Enviar" na tela de recuperação de senha.
[ ] Se o campo de email estiver vazio ou não contiver um formato de email válido, uma mensagem de erro apropriada deve ser exibida (ex: "Por favor, insira um email válido").
[ ] Ao inserir um email válido e clicar em "Enviar", o sistema deve enviar um email para o endereço fornecido.
[ ] O email deve conter um link para a página de redefinição de senha.
[ ] A tela de redefinição de senha deve incluir campos para "Nova Senha" e "Confirmar Nova Senha".
[ ] Os campos de senha devem seguir a política de segurança (ex: mínimo de 8 caracteres, pelo menos uma letra maiúscula, uma minúscula, um número e um caractere especial).
[ ] Deve haver um botão "Redefinir Senha".
[ ] Se a validação for bem-sucedida, a nova senha deve ser salva e o usuário deve ser notificado com uma mensagem de confirmação (ex: "Sua senha foi redefinida com sucesso").
[ ] Se houver erros na validação, mensagens de erro apropriadas devem ser exibidas.

Protótipo
Tela inicial

A tela de cadastro de nova senha será adicionada no protótipo

Adicionar a sincronizaçao do user
Refatorar o banco pra ficar igual o banco do serviço de user
Fazer estratégia de login (logar de fato)


text:
TS62 - Inconsistência na especialização do usuário

Concertar bug na especialização do usuário.

Sobre o que fizemos:
Precisávamos impedir a múltipla especialização de um usuário em todas as models. Pra resolver isso nós adicionamos um novo atributo na model_user que é um bool falso por padrão, um contador inicializado em 0 que continua 0 se o user base não tem especializações e aumenta 1 pra cada especialização (mas isso não vai ocorrer). E sobrescrevemos o método def clean() que é um validador do django: ele checa o contador citado anteriormente e atribui falso pro bool se ele for 0, true se for 1 e erro se >1.
Nas models especializadas adicionamos um post_delete (na verdade foi o Sconetto) que após uma especialização ser deletada ele seta o user base dessa especialização pra ter o valor de has_specialization (o bool que adicionamos) de volta pra False.
O que deveria acontecer:
Ao criar um usuário especializado o has_specializations vai para True. Ao deletá-lo o has_specializations deveria voltar para False.
O que está acontecendo:
Está inconsistente então vamos por model:
Na doctor ele muda o has_specialization para True na criação mas não volta pra False na deleção.
Na employee ele muda o has_specialization para True na criação mas não volta pra False na deleção.
Na patient e no responsible ele NÃO muda o has_specialization para True na criação, o que faz o user ainda ser listado como possível usuário a ser especializado. Porém se você tentar reespecializar esse user você não consegue ( o que é um bom sinal). Ao excluir o bool continua falso mas você pode especializar o user base novamente (ou seja, comportamento correto).
O que deve ser alterado:
Doctor & employee: fazer o bool ir para false na deleção.
Patient & Responsible: fazer o bool ir para true na criação.
Observações:
~Doctor & employee tiveram o método delete sobrescrito, mas o Patient & Responsible não. Isso é algo que pode indicar o caminho por onde ir.~
update:consegui fazer model Patient e Responsible setarem o  bool pra True, mas eles não retornam pra false na exclusão (estão iguais doctor e employee agora). Pra fazer isso é só adicionar


text:
Animated in wkwebview does not rotate

under certain circumstances,Animated in wkwebview does not rotate

@theodorejb Oh man, I am using a very old version. It doesn't even have a version. Just: Copyright (c) 2011-2013 Felix Gnass. I am also using the jquery.spin.js as well. This is for an old project started in 2013... I have this spinner everywhere. I really don't want to refactor. Can you think of anything I could try to fix it?

@fgnass @theodorejb I am looking to upgrade to the latest https://spin.js.org/spin.umd.js, but I would love to use the old jquery.spin.js interface...
Any thoughts on how I might modify the old jquery interface to work with the new spin.umd.js? Right now its throwing and error: Error: Spin.js not present
/**
 * Copyright (c) 2011-2013 Felix Gnass
 * Licensed under the MIT license
 */

/*

Basic Usage:
============

$('#el').spin(); // Creates a default Spinner using the text color of #el.
$('#el').spin({ ... }); // Creates a Spinner using the provided options.

$('#el').spin(false); // Stops and removes the spinner.

Using Presets:
==============

$('#el').spin('small'); // Creates a 'small' Spinner using the text color of #el.
$('#el').spin('large', '#fff'); // Creates a 'large' white Spinner.

Adding a custom preset:
=======================

$.fn.spin.presets.flower = {
  lines: 9
  length: 10
  width: 20
  radius: 0
}

$('#el').spin('flower', 'red');

*/

(function(factory) {

  if (typeof exports == 'object') {
    // CommonJS
    factory(require('jquery'), require('spin'))
  }
  else if (typeof define == 'function' && define.amd) {
    // AMD, register as anonymous module
    define(['jquery', 'spin'], factory)
  }
  else {
    // Browser globals
    if (!window.Spinner) throw new Error('Spin.js not present')
    factory(window.jQuery, window.Spinner)
  }

}(function($, Spinner) {

  $.fn.spin = function(opts, color) {

    return this.each(function() {
      var $this = $(this),
        data = $this.data();

      if (data.spinner) {
        data.spinner.stop();
        delete data.spinner;
      }
      if (opts !== false) {
        opts = $.extend(
          { color: color || $this.css('color') },
          $.fn.spin.presets[opts] || opts
        )
        data.spinner = new Spinner(opts).spin(this)
      }
    })
  }

  $.fn.spin.presets = {
    tiny: { lines: 8, length: 2, width: 2, radius: 3 },
    small: { lines: 8, length: 4, width: 3, radius: 5 },
    large: { lines: 10, length: 8, width: 4, radius: 8 }
  }

}));

@benmcmaster I think you would have to replace window.Spinner with window.Spin.Spinner.

@theodorejb Ah cool. Thanks! I actually ended up just setting window.Spinner = Spinnerin spin.js and everything worked perfectly.

authors: benmcmaster elandTong theodorejb


text:
Swimlane filters not working consistenly in (Board, List or Gantt Views)

Hello,
I may have found a bug.  I have stood up kanboard on a Ubuntu 14.04 LTS box with postgres as my database backend.  While working on some tasks with my team I found that I was not able to isolate tasks by swimlanes in any of the views consistently.  Below our examples of the filters I used.
Did Not Work
status:open swimlane:"Relocation and Consolidation Project"
Worked
status:open swimlane:"*Management Tasks" - Worked
status:open swimlane:default
After further review there appears to be some type of string limit on the length of the swimline filter.  Also, I currently have 9 Swimlanes and growing on the board this issue was discovered.
Thank You

maybe related. on a fresh install, created private project, created two tasks (with a start and other with due date). i closed one task. then to show it, filter by "closed tasks". then "clear filter".
if i then navigate to list or gant, it somehow re-applies some filter. It took some time, and selecting other filters before it started showing task and working again.
ps. love the amazing software, kuddos.

authors: GDmac seancarson

repo: fguillot/kanboard


text:
adding start to budgeting

We will definitely need help from Sandy etc. to make sure we aren't summarizing this incorrectly and to make it more understandable to people who are less familiar with grant language.
I pulled some directly from the websites and I find it a bit confusing still, but at least this gives people something to review.

@cansavvy  this is interesting... the url page is blank yet it says there is a broken url

@cansavvy this is interesting... the url page is blank yet it says there is a broken url

It’s telling me ‘no broken urls’ in the comment above.

@cansavvy this is interesting... the url page is blank yet it says there is a broken url

It’s telling me ‘no broken urls’ in the comment above.

huh ok I guess it just didn't refresh that for me - I made an issue about this in the reports repo

I guess maybe we would just want to tell people to refresh then


text:
Feature Request: Shortened URL

I'd like to see an option to have a shorter URL, basically a hash of the nevent1, similar to PasteBin.
So in paralel to the https://njump.me/nevent1qqs... scheme maybe something like https://njump.me/s/YA9FX4
This option would also enable to direct someone to the note or stuff by phone, for example.
Love njump, helps easing the path to Nostr, keep up the good work!

You mean people say these characters with their voice over a phone? Have you ever done that?

I don't think it's good for njump to integrate link shortening, it's important to keep the URL paths common, and if any njump goes down, we can easily get information about the event via the URL path. Short links are good for humans to read and dictate, but they can lead to Link Rot that can't be remedied later.

Here is a njump nevent link rendering from telegram:

The first 40% real estate is gibberish. I support at the least an option to for gibberish reduction.
cc @dtonon

Here's an implementation by nostr dev @jinglescode https://github.com/jinglescode/nostr-url-shortener

just add a GET request
GET https://w3.do/get?url=<url>

For example: https://w3.do/get?url=https://github.com/jinglescode/nostr-url-shortener

Here is a njump nevent link rendering from telegram:

The first 40% real estate is gibberish. I support at the least an option to for gibberish reduction.
cc @dtonon

So the Instant View if Telegram is not enabled?
That means the 'Open Graph' tags are missing.
Will make an Issue for that.

I agree with @cxplay.

The first 40% real estate is gibberish.

This gibberish is necessary to avoid making event retrieval too complex or fragile.
If someone really needs a short url, they can use a layer 2 such as w3.do, also based on Nostr.

I agree with @cxplay

I also agree

authors: alltheseas cxplay dtonon fiatjaf henkvantijen jinglescode

repo: fiatjaf/njump


text:
Tracing UI with hackadoo "Spans"

The goal of this PR is to massage the existing MizuTrace model into something that also contains spans, and can ultimately render a UI like this:

Took data modeling inspo from Otel conventions as well as the open PR on the rust side of things to ingest otel traces

Summary

TODO

There are some improvements possible like for instance limiting the response that is being displayed atop the request details and making some other sections collapsible

yes yes - very good catch. i just made the summary response section have a max height and be scroll-auto

repo: fiberplane/fpx


text:
No jsx/tsx files found - despite using a valid include glob:

So i get the following error when trying to run npx figma connect
npx figma connect
No jsx/tsx files found. Please update the include/exclude globs in your config file and try again.
Please raise any bugs or feedback at https://github.com/figma/code-connect/issues.

Code Connect CLI version - 1.0.1
Operating system - MACOS 14.5 (23F79)

code connect config file (packages/react/figma.config.json):
{
  "codeConnect": {
    "include": ["src/**/*.figma.tsx"],
    "exclude": [],
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

ts config file:
{
  "extends": "@repo/ts-config/react-library.json",
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": [
    "src",
    "../../externalTypeOverides.d.ts",
    "./index.d.ts",
    "jest-setup.ts"
  ],
  "exclude": ["dist", "build", "node_modules"]
}

test code connect file:
// packages/react/src/components/Clickable/Buttons/Button.figma.tsx
import { figma } from "@figma/code-connect";

import { Button } from "@/components/Clickable/Buttons";

figma.connect(
  Button,
  "https://www.figma.com/design/oHsoXoDsvnhjlbpzSIbHvU/BIOME?node-id=3158-32243&m=dev",
  {
    props: {
      children: figma.string("Any ReactNode content"),
      variant: figma.enum("Variant", {
        Primary: "primary",
        "Primary/Fatal": "primary/fatal",
        "Primary/Inverse": "primary/inverse",
        Secondary: "secondary",
        "Secondary/Fatal": "secondary/fatal",
        Tertiary: "tertiary",
        "Tertiary/Inverse": "tertiary/inverse",
      }),
    },
    example: () => {
      return <Button>aciton</Button>;
    },
  },
);

Could someone help me understand what im doing wrong here? Or is this a bug?

turns out changing the include glob to:
"include": ["src/**/*.tsx"],

fixes the errors. 🤔

repo: figma/code-connect


text:
Text, md file inside Resource directory throws error

Package
filament/filament
Package Version
2.0
Laravel Version
9
Livewire Version
2.10.6
PHP Version
8
Problem description
When i have some other files e.g. txt, md inside the resources directory it throws error. It should only include PHP files and ignore all other extensions.

Expected behavior
There should be no error
Steps to reproduce
Just add any text or md file inside Resources directory
Reproduction repository
Invalid
Relevant log output
ReflectionException:
Class "App\Filament\Resources\CompanyResource\RelationManagers\Readme.md" does not exist

  at /Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/filament/filament/src/FilamentServiceProvider.php:145
  at ReflectionClass->__construct('App\\Filament\\Resources\\CompanyResource\\RelationManagers\\Readme.md')
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/filament/filament/src/FilamentServiceProvider.php:145)
  at Filament\FilamentServiceProvider->registerComponents()
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/filament/filament/src/FilamentServiceProvider.php:81)
  at Filament\FilamentServiceProvider->packageRegistered()
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/spatie/laravel-package-tools/src/PackageServiceProvider.php:36)
  at Spatie\LaravelPackageTools\PackageServiceProvider->register()
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:686)
  at Illuminate\Foundation\Application->register(object(FilamentServiceProvider))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load(array('Illuminate\\Auth\\AuthServiceProvider', 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 'Illuminate\\Bus\\BusServiceProvider', 'Illuminate\\Cache\\CacheServiceProvider', 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Illuminate\\Cookie\\CookieServiceProvider', 'Illuminate\\Database\\DatabaseServiceProvider', 'Illuminate\\Encryption\\EncryptionServiceProvider', 'Illuminate\\Filesystem\\FilesystemServiceProvider', 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', 'Illuminate\\Hashing\\HashServiceProvider', 'Illuminate\\Mail\\MailServiceProvider', 'Illuminate\\Notifications\\NotificationServiceProvider', 'Illuminate\\Pagination\\PaginationServiceProvider', 'Illuminate\\Pipeline\\PipelineServiceProvider', 'Illuminate\\Queue\\QueueServiceProvider', 'Illuminate\\Redis\\RedisServiceProvider', 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', 'Illuminate\\Session\\SessionServiceProvider', 'Illuminate\\Translation\\TranslationServiceProvider', 'Illuminate\\Validation\\ValidationServiceProvider', 'Illuminate\\View\\ViewServiceProvider', 'Akaunting\\Money\\Provider', 'Barryvdh\\Debugbar\\ServiceProvider', 'BladeUI\\Heroicons\\BladeHeroiconsServiceProvider', 'BladeUI\\Icons\\BladeIconsServiceProvider', 'Filament\\FilamentServiceProvider', 'Filament\\Forms\\FormsServiceProvider', 'Filament\\Notifications\\NotificationsServiceProvider', 'Filament\\Support\\SupportServiceProvider', 'Filament\\Tables\\TablesServiceProvider', 'Inertia\\ServiceProvider', 'Laravel\\Sail\\SailServiceProvider', 'Laravel\\Sanctum\\SanctumServiceProvider', 'Laravel\\Tinker\\TinkerServiceProvider', 'Livewire\\LivewireServiceProvider', 'Carbon\\Laravel\\ServiceProvider', 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider', 'Termwind\\Laravel\\TermwindServiceProvider', 'Spatie\\LaravelIgnition\\IgnitionServiceProvider', 'Spatie\\Permission\\PermissionServiceProvider', 'App\\Providers\\AppServiceProvider', 'App\\Providers\\AuthServiceProvider', 'App\\Providers\\EventServiceProvider', 'App\\Providers\\RouteServiceProvider', 'Spatie\\Permission\\PermissionServiceProvider', 'Barryvdh\\Debugbar\\ServiceProvider'))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:663)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:239)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/public/index.php:52)
  at require_once('/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/public/index.php')
     (/Users/khanakia/D1/www/projects/gamerapp/gamer_laravel/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php:16)

@danharrin the issue is within in the main repo so there is no need to create a reproduction repo.
All you have to do is create any non-PHP files e.g README.md under app/Filamnet/Resources directory. that's all

repo: filamentphp/filament


text:
Custom Action File Upload - Cannot read properties of null (reading '__livewire')

Package
filament/filament
Package Version
v2.0
Laravel Version
v9.19
Livewire Version
No response
PHP Version
PHP 8.0.27
Problem description
The problem is that whenever I tried to upload a csv file using my custom ImportService by calling it inside the action() in my FileUpload, it shows the error below:
Uncaught (in promise) TypeError: Cannot read properties of null (reading '__livewire')

Here is my custom action to import CSV:
Actions\Action::make('Import Student')
             ->action(fn ($data) => (new ImportService())->import($data['csv']))
                ->form([
                    FileUpload::make('csv')
                        ->acceptedFileTypes(['text/csv', 'application/csv'])
                        ->directory('upload-attachments')
                ])

My Service:
<?php

namespace App\Services;

use App\Imports\StudentImport;
use Illuminate\Support\Facades\Storage;

class ImportService
{
    public function import($file)
    {
        $filePath = "public/$file";
        $import = new StudentImport();

        $import->import(storage_path("app/$filePath"));

        Storage::disk('public')->delete($file);
    }
}

My Laravel excel import:
<?php

namespace App\Imports;

use App\Models\Student;
use Maatwebsite\Excel\Concerns\ToModel;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\SkipsFailures;
use Maatwebsite\Excel\Concerns\SkipsOnFailure;
use Maatwebsite\Excel\Concerns\WithHeadingRow;
use Maatwebsite\Excel\Concerns\WithValidation;

class StudentImport implements ToModel, SkipsOnFailure, WithValidation, WithHeadingRow
{
    use SkipsFailures, Importable;
    /**
     * @param array $row
     *
     * @return \Illuminate\Database\Eloquent\Model|null
     */
    public function model(array $row)
    {
        return new Student([
            'lrn' => $row['lrn'],
            'student_no' => $row['student_no'],
            'email' => $row['email'],
            'first_name' => $row['first_name'],
            'middle_name' => $row['middle_name'],
            'last_name' => $row['last_name'],
            'suffix' => $row['suffix'],
            'birthday' => $row['birthday']
        ]);
    }

    public function rules(): array
    {
        return [
            'lrn' => 'required|digits:12|min:12|max:12|unique:students,lrn',
            'student_no' => 'required|unique:students,student_no',
            'email' => 'required|email|unique:students,email',
            'first_name' => 'required|string',
            'middle_name' => 'required|string',
            'last_name' => 'required|string',
            'suffix' => 'nullable|string',
            'birthday' => 'required|date'
        ];
    }
}

Expected behavior
I can upload the file successfully and see the records in my table so I can say that it's sucess.

Steps to reproduce
Clone my the Reproduction repository:
https://github.com/199ocero/filament-school

And just:
composer install

Reproduction repository
https://github.com/199ocero/filament-school
Relevant log output
Uncaught (in promise) TypeError: Cannot read properties of null (reading '__livewire')
    at SupportAlpine.js:53:36
    at Object.get (module.esm.js:398:16)
    at Object.get (module.esm.js:308:14)
    at getUploadedFileUrlsUsing (eval at r (module.esm.js:471:14), <anonymous>:13:17)
    at Proxy.<anonymous> (module.esm.js:23921:40)
    at c (module.esm.js:2:1)
    at Generator.<anonymous> (module.esm.js:2:1)
    at Generator.next (module.esm.js:2:1)
    at Ic (module.esm.js:2:1)
    at a (module.esm.js:2:1)

We're using the filament/forms package to generate custom forms on a Laravel application and we meet the exact same issue.
If the form contains a file upload field/component, at submission, the same console error message appears. The file is uploaded but it polutes our sentry log with the same error message.

Also having this issue. I have a Table component, which has 2 forms (create and edit). In this forms, I upload images.
When I edit a model and I upload and store an image, I get this:
SupportAlpine.js:49 Alpine: Cannot reference "$wire" outside a Livewire component.
(anonymous) @ SupportAlpine.js:49
get @ module.esm.59f83f7d.js:1
get @ module.esm.59f83f7d.js:1
getUploadedFileUrlsUsing @ VM2658:13
getUploadedFileUrls @ module.esm.59f83f7d.js:227
getFiles @ module.esm.59f83f7d.js:227
(anonymous) @ module.esm.59f83f7d.js:227
(anonymous) @ module.esm.59f83f7d.js:5

SupportAlpine.js:53 Uncaught (in promise) TypeError: Cannot read properties of null (reading '__livewire')
    at SupportAlpine.js:53:36
    at Object.get (module.esm.59f83f7d.js:1:4836)
    at Object.get (module.esm.59f83f7d.js:1:3594)
    at getOptionsUsing (eval at <anonymous> (module.esm.59f83f7d.js:5:653), <anonymous>:12:29)
    at Proxy.getOptions (module.esm.59f83f7d.js:294:3695)
    at Proxy.getChoices (module.esm.59f83f7d.js:294:3515)
    at module.esm.59f83f7d.js:294:3135
    at module.esm.59f83f7d.js:5:22761

Not much we can do about this, it's an Alpine-Livewire communication bug. We will revisit this thread when Livewire v3 is released to see if it is fixed by the new version.

I'm getting the same error
I'm using table and form builder components. I have a table that has parent - child relationships. I have created a select box and listed its parents data.  It is working as expected. And it shows no error at first click.
But somehow when I close the modal and open another one , It shows the error below.

Got the same error.

Fixed by Livewire v3.


text:
Table Action triggered before form

Package
filament/tables
Package Version
v3.0.0-beta25
Laravel Version
v10.16.1
Livewire Version
v3.0.0-beta.5
PHP Version
PHP 8.2.7
Problem description
When defining a closure action within the Table Action definition, it is called correctly after submitting the form. But if I reference the function with a string - it calls the action before the form is shown.
Result : Unable to resolve dependency [Parameter #1 [  array $data ]]
Expected behavior
The form should show before the action is called. The data of the form passed to the action function
Steps to reproduce
(The commented variations work correctly)
Filament\Tables\Actions\Action::make('Payment')
->button()
// ->action(fn(Attendance $attendance, array $data) => dd($data))
// ->action(function(Attendance $attendance, array $data) {
//     dd($data);
// })
->action('payment')
->form([
TextInput::make('amount')
->numeric()
->required(),
public function payment(Attendance $attendance, array $data)
{
    dd($data);
}

Reproduction repository
https://github.com/mrgla55/filament-testing
Relevant log output
No response

Hey, where in the docs does it say this is supported? Because it isn't, as far as I know

Ok. Just checked the docs, its always Closures, but the action function is defined to accept string
public function action(Closure | string | null $action): static

I had used the string previously in v2 to separate the action logic from the action definition

Okay, we have actually changed it in v3 so that the string gets fed directly into the wire:click, which is something you couldn't do before. And that explains why the modal doesn't open, because we can't intercept it. To do what you want to accomplish, try ->action(Closure::fromCallable([$this, 'payment']))


text:
RelationManager toggaleable() with many columns renders offscreen.

Package
filament/filament
Package Version
3.0
Laravel Version
10.10
Livewire Version
3.0
PHP Version
8.1
Problem description
When using a relation manager with many columns that use toggleable(), the widget draw sometimes renders vertically off the screen and is unusable.  It appears to only be an issue when the widget button is close the the bottom of the page so it tries to render the draw upward and off screen.
Expected behavior
Either:

The top of the draw should never go above the top of the page (or the bottom of the header if using the  ->topNavigation()
If the panel is taller than the viewport, split into multiple columns.
Allow for the toggles to appear in a modal window with multiple columns.

Steps to reproduce

Download the repo
Change directory to the root
Create a sail/docker instance: ./vendor/bin/sail up -d
Start docker: ./vendor/bin/sail start
Install the composer dependencies: ./vendor/bin/sail composer install
Install the NPM dependencies: ./vendor/bin/sail npm install
Run the builder: ./vendor/bin/sail npm run build
Create database: ./vendor/bin/sail artisan migrate:fresh --seed
In your browser go to http://localhost/admin
Log in with 'admin@none.com' 'password'
navigate to http://localhost/admin/roles/1/edit
Click the toggle columns button on the relation manager. NOTE: This will work correctly as there are many records int eh relation
navigate to http://localhost/admin/roles/2/edit
Click the toggle columns button on the relation manager. NOTE: This will show the breakage as there are few records but many columns. The toggle columns button will not snap to it's lower position and the top controls are inaccessable.

Reproduction repository
git@github.com:uqjohart/filamentphp-issue-9468.git
Relevant log output
No response

I have updated this ticket with a repo
git@github.com:uqjohart/filamentphp-issue-9468.git


text:
Select does not save null values when options no longer exist

Package
filament/filament
Package Version
v^3.0-stable
Laravel Version
v10.10
Livewire Version
v3.0
PHP Version
PHP 8.1.0
Problem description
If the Select has options and the user has saved the form with an option selected, the data is submitted to the database - as expected.
If the Select no longer has any options i.e. an empty state with the placeholder "Select an option", this should save a null value back to the database but it doesn't.
It still has the data saved in the db that existed before. Even though the Select is empty, it does not override this to return to null.
Expected behavior
Values should save as null when no options exist.
Steps to reproduce
Steps to recreate
Must be using MySQL 8.0 or greater due to nullable json column.

Clone this repo
composer install
Clone .env.example, set up your database creds
php artisan migrate
php artisan make:filament-user
Login at /admin/login
Go to Post resource
Create a post with all fields filled in - Title, Body, Category, Author
Check database has all these fields
Go to App\Filament\Resources\PostResource
Remove select options so you are left with:

Forms\Components\Select::make('category')
->options([]),

and
Forms\Components\Select::make('author')
->options([]),

Now go back to the post you created at /admin/posts/1/edit
Check no options exist in either select
Save resource
See that the database values have not changed for category and the author json.

This is not expected behaviour. If values no longer exist this should save the fields as null, just as when a user selects the placeholder manually.
Reproduction repository
https://github.com/joshembling/filament-select-bug
Relevant log output
No response

This isn't the desired behaviour IMO. It could result in data loss, if the options failed to load from the server for whatever reason. If you want this behaviour, you should implement it in an observer, shouldn't be too bad.

how to implement that observer? I'm running into the same issue

authors: danharrin joshembling maurorepuesto


text:
Toggle column - Empty tooltip fix and theme tooltip color when theme is changed

Empty tooltip fix and theme tooltip color when theme is changed

[x] 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.
[x] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Thanks for the PR, @leandrocfe.
The toggle column is one of the final components I'm still revamping.
Someone brought up the empty tooltip issue just a couple hours ago. I would have fixed it with the revamp (as I had for other columns), but decided to apply a quick fix on 3.x already. This hasn't been released yet. Since you made this PR from 3.x, are you sure the issue is still present?
Regarding the theming issue, could you elaborate on that?
Other components are using a similar approach, and I've thoroughly tested switching themes.

Hey @zepfietje, since we have a validation message:
https://github.com/filamentphp/filament/assets/3833889/deaacf87-7fff-4552-b896-8494aa8f53f3
This is the suggestion to fix it
@theme-changed.window="
    if (error) {
        error.theme = $event.detail
    }
"

Glad it's fixed!

authors: leandrocfe zepfietje


text:
Auto-generate Python client from our swagger.json

This is a sub-task of https://github.com/filecoin-project/bacalhau/pull/1383

Duplicate of https://github.com/filecoin-project/bacalhau/issues/1481

repo: filecoin-project/bacalhau


text:
Bug: Can't pin OneDrive Desktop to favorites

Description
I keep my dekstop in the cloud on OneDrive. I can pin any folder in my OneDrive to my favourites except my desktop, so I have managed to recreate every link from my Quick Access list in Windows Explorer in Files, all except the desktop, but I've no idea why
Steps To Reproduce
Go to OneDrive
Right click the Desktop icon
Select 'Add to Favourites'
Requirements
Make OneDrive Dektop folder pinnable to Favourites
Files Version
3.0.8.0
Windows Version
10.0.22621.2715
Log File
debug.log

Thanks for the report, I've added this to the project board.

@KristianJ79 does it work if you pin it in File Explorer?

@KristianJ79 does it work if you pin it in File Explorer?

Hi @yaira2 You mean the Windows native File Explorer?
Yes it does.

Does it display in Files?

@yaira2 Yes. I can navigate to the folder and open it/access all the files etc. It just won't pin to the favourites bar no matter how many times I try!

I meant does it show in favorites in Files if you pin it in File Explorer?

@yaira2 Ah, I see what you mean, apologies. Yes, it's already pinned in File Explorer

@yaira2 No, that's the whole issue. It's pinned to Quick Access in Windows Explorer but won't pin to favourites in Files. I can navigate to and interact with the folder, I just can't pin it.

@yaira2 I don't know if someone has fixed the bug, but when I opened my laptop today, my Desktop icon is now magically pinned to favourites! Shall I close the matter or wait for someone else to confirm?

We recently released v3.0.15 so while we didn't specifically include a fix for this issue, it may have been fixed by another change.

repo: files-community/Files